New theme - Bootstrap4

I created a new theme for flask-admin.
This theme is compatible with bootstrap4 and based on the work of pull request #1674.
I added a navigation menu on the left, a global search bar (But it's not functional, if someone has an idea to make it work that would be great) and a disconnect button.
I am open to any suggestions to improve this theme and make it available to all.

I add a favicon parameter because it seems that admin_static.url only looks in the static flask-admin folder and I want to have the possibility to replace the favicon only for the administration interface.

We did the same thing. 😢
Maybe we can complete it together. 😸

It's a good idea to complete our themes because I use #1674 to make my bootstrap4-left, and the theme is not complete (modals...) and does not provide bootswatch support.
Do you have a good ressource to use bootswatch (I don't know how to integrate it)?
PS: You have the right to commit on my repo if you want to merge your bootstrap4 theme (I think you can totaly replace bootstrap4, my theme bootstrap4-left is independant)
PS2: I will add example for bootstrap4-left

It's a good idea to complete our themes because I use #1674 to make my bootstrap4-left, and the theme is not complete (modals...) and does not provide bootswatch support.
Do you have a good ressource to use bootswatch (I don't know how to integrate it)?
PS: You have the right to commit on my repo if you want to merge your bootstrap4 theme (I think you can totaly replace bootstrap4, my theme bootstrap4-left is independant)
PS2: I will add example for bootstrap4-left

My bootstrap4 theme and the support of bootswatch is similar to the bootstrap3 theme and I almost finish them. 😸
PS: Maybe we should update the branch of bootstrap4. 😺

Thanks for this @Fomys.
I'm not merging, because I don't want to include a whole new set of static files in the repo, just for moving the navigation controls from the top to the side. What would be great is if you could help get the regular bootstrap4 implementation (on the bootstrap4 branch) onto the same level as you've got here, and then perhaps update the 'custom-layout' example to show how the controls can be shifted, and a search control can be added to the navbar.


Feature request to add a list of installed software and their versions

Feature description
When users need community support sometimes it helps if they just had a quick debug file to hand over to the community.
For the initial feature this debug file can just be a list of all the installed components (such as operators) and their version numbers. The idea is this information would appear in a downloadable file after they click an information request button. This button can be labeled anything need to talk about what to call it.

Would be good if we can do this via CLI  / CLI-service as well.  Perhaps we need an epic...  For now i opened https://github.com/kabanero-io/kabanero-command-line/issues/184


[BUG] ImportError: cannot import name 'get_terminal_size' from 'click.termui'

Software Versions:

Operating System: macOS 10.15.7
Python version: 3.9
BusyLight version: 0.14.0

General Type of Problem

[ ] Installation
[x] Command-line
[ ] Integrating into another project
[ ] Web API
[ ] other

Describe the Problem
The busylight CLI command always fails with an import error on get_terminal_size from click.termui because get_terminal_size was removed in click v8.1.
I was able to work around this issue by downgrading click to v8.0 via:
% pip3 install --upgrade click==8.0
Expected Behavior
Expected busylight CLI commands to work "out of the box" without having to downgrade click.
Error Output
Traceback (most recent call last):
  File "/usr/local/bin/busylight", line 5, in <module>
    from busylight.__main__ import cli
  File "/usr/local/lib/python3.9/site-packages/busylight/__main__.py", line 8, in <module>
    import typer
  File "/usr/local/lib/python3.9/site-packages/typer/__init__.py", line 12, in <module>
    from click.termui import get_terminal_size as get_terminal_size
ImportError: cannot import name 'get_terminal_size' from 'click.termui' (/usr/local/lib/python3.9/site-packages/click/termui.py)

Thanks for the bug report! Looks like I got too cavalier about versions of dependencies. Thank you for the workaround and I'll see about getting that fixed.

Looks like this is a known problem and not necessarily a bug on my part. There is a pull request pending to for typer linked in that issue which fixes the problem.  As soon as it's available I'll push out a release referencing the updated version.

@jsavin could you try installing 0.15.2 of busylight-for-humans and see if that fixes the problem for now?

@JnyJny I had the same issue as @jsavin with busylight-for-humans v0.15.2 from pip (Arch Linux, Python 3.10.4). I also used the same workaround (installing click v8.0) successfully.
I removed click v8.0 and upgraded busylight-for-humans to v0.15.3 from pip, which is working great for now.
Thank you for resolving this so promptly.

Thanks for the report @gavinhungry, I'm always leery to close issues until it's independently confirmed that the resolution is working for people other than me.

Sorry for the delay: I also tested here with click v8.1 and busylight-for-humans v 0.15.3 and it worked for me. Thanks for the quick fix!

Thanks for the double confirmation! If only all my bugs were this easy to address :)

I just released Typer 0.4.1 that should handle this. :rocket: :nerd_face:

@tiangolo thank you so much for all you do, big fan of your work.

Published version 0.15.4 with latest dependencies.


Add support for setting security context into ephemeral container specs

As a kubectl-netshoot user,
In order to use strace to debug a program (e.g. infering data sent over an encrypted connection)
I need an kubectl-netshoot option to craft the ephemeral container with a security context such as "securityContext": {"capabilities": {"add": ["SYS_PTRACE"]}},or
More background into
https://betterprogramming.pub/debugging-kubernetes-pods-deep-dive-d6b2814cd8ce

Unfortunately, I didn’t find a way to pass extra permissions to the ephemeral container from kubectl command. So we will construct and send an HTTP request to kube API server without the use of kubectl command.
curl -v -XPATCH -H "Content-Type: application/json-patch+json" \
'http://<IP_ADDRESS>:8001/api/v1/namespaces/default/pods/nginx-8f458dc5b-wkvq4/ephemeralcontainers' \
--data-binary @- << EOF
[{
"op": "add", "path": "/spec/ephemeralContainers/-",
"value": {
"command":[ "/bin/sh" ],
"stdin": true, "tty": true,
"image": "nicolaka/netshoot",
"name": "debug-strace",
"securityContext": {"capabilities": {"add": ["SYS_PTRACE"]}},
"targetContainerName": "nginx" }}]
EOF

Now, You can strace without getting permission denied.

Note that this feature is being worked on in kubectl debug as part of https://github.com/kubernetes/kubectl/issues/1108 through a --profile option: Debugging profile. Options are "legacy", "general", "baseline", or "restricted".

Since the plugin is basically a thin layer over kubectl, I would wait for the --profile option to be supported in kubectl debug.

Hi, debugging profile has been released at Kubernetes v1.27.

Added "general", "baseline", and "restricted" debugging profiles for kubectl debug. (https://github.com/kubernetes/kubernetes/pull/114280, @sding3) [SIG CLI]

Added "netadmin" debugging profiles for kubectl debug. (https://github.com/kubernetes/kubernetes/pull/115712, @wedaly) [SIG CLI]

However:

Some securityContext settings were missing in the restricted profile. It has been fixed and will be released at v1.28.

CAP_NET_RAW seems to be missing in the netadmin profile. It's disscussed here and I try to fix it.

In addition, custom profile are also being considered here.
FYI:
I actually made a PoC to be able to apply securityContext custom profiles to EphemeralContainer like this:
$ kubectl debug -it nginx --image=ubuntu --target=nginx --security-context='{"capabilities":{"add":["NET_BIND_SERVICE"],"drop":["all"]}}' -- /bin/bash
Targeting container "nginx". If you don't see processes from this container it may be because the container runtime doesn't support this feature.
Defaulting debug container name to debugger-5sgx7.
If you don't see a command prompt, try pressing enter.
root@nginx:/#
root@nginx:/# grep Cap /proc/$$/status
CapInh:<PHONE_NUMBER>000000
CapPrm:<PHONE_NUMBER>000400
CapEff:<PHONE_NUMBER>000400
CapBnd:<PHONE_NUMBER>000400
CapAmb:<PHONE_NUMBER>000000

$ kubectl get po nginx -oyaml
apiVersion: v1
kind: Pod
...
  ephemeralContainers:
  - command:
    - /bin/bash
    image: ubuntu
    imagePullPolicy: Always
    name: debugger-5sgx7
    resources: {}
    securityContext:
      capabilities:
        add:
        - NET_BIND_SERVICE
        drop:
        - all
...

https://github.com/kubernetes/kubernetes/compare/master...mochizuki875:kubernetes:ec-custom-security-context?expand=1#diff-e961c6c329b92e6595113a179583cddc9192bcf00d3ee2ad721b029aff6957bc
However, they seem to be targeting a broader scope than just securityContext.
Thanks.


[ENH] parallel instance support

A typical case is public vs private dashboards:

unbake streamlit container name to allow multi instance
move st port to ENV for easier .env

Document

recipe for COMPOSE_PROJECT_NAME
ports
launch
multiple vol mounts

Closed with https://github.com/graphistry/graph-app-kit/pull/10


Feature/enabling by overload

godbolt-example with this branch: https://godbolt.org/z/zMP5zefh3

There is actually a drawback to this approach. Consider you have a typo and you have
template<> struct boost_enable_flags<ice_cream_flavours> : std::true_type {};

In the old approach, this led to an error message.
For the new approach, this would be
static constexpr bool boost_enable_flags(ice_cream_flavours) { return true; }

which does not lead to any error message.
A similar problem arises with the #include <boost/flags.hpp. If you have a large project, you don't want to include flags.hpp everywhere, so you include it from some central header file. You then assume it is available everywhere. The you define
static constexpr bool boost_flags_enable(ice_cream_flavours) { return true; }

and everything seems to be fine, when in fact, nothing happened because you lack the include.
So it would be nice if you could provide some way to make sure the registration worked. Something like
static_assert(boost::flags::is_registred(ice_cream_flavours));.
However, this makes the usage of this library a bit ugly. You then have two lines of code for each enum-registration.

So it would be nice if you could provide some way to make sure the registration worked. Something like static_assert(boost::flags::is_registred(ice_cream_flavours));. However, this makes the usage of this library a bit ugly. You then have two lines of code for each enum-registration.

You can already write
static_assert(boost::flags::enable<ice_cream_flavours>::value, "ice_cream_flavours not enableb for Boost.Flags");
which would static-assert in the first case, and cause a compilation error, when the include is missing.
Yes, it is a small drawback that typos with boost_flags_enable do not cause errors, but

You'll get an error on the first flag-like usage of your enum - hopefully in your tests ;)
You can still use the "old" enabling style: template<> struct boost::flags::enable<my_enum> : std::true_type{};
boost_flags_enable has the hugh advantages

it can be defined in the same namespace as the enum (e.g. right after it) - no need to close and reopen the current namespace, which is very annoying
you can enable it even within classes by using a friend function (no way to do this with template specialization)

IMHO, if you want to be on the safe-side, you could write
static constexpr bool boost_flags_enable(my_enum) { return true; }
static_assert(boost::flags::enable<my_enum>::value, "");

Maybe you can add the option to do
static constexpr bool boost_flags_enable(my_enum) { return true; }
static_assert(boost::flags::enable<my_enum>::value, "");

to the documentation. I think it's essential for the following user story:
Assume you have a few million lines of code which you'd like to improve using boost::flags. The approach would be to:

Include boost/flags.hpp in a central place
Identify enums which seem to be flags, say you find around 30 different enums of this kind.
Add the code snippet above for each enum
Fix all compilation errors which arise.

In this story, there is no "first flag-like usage" of your enum, because your codebase compiled just fine before. So any spelling mistake in boost_flags_enable without the static_assert() would just go unnoticed.


Update relevant files in docker-edgex-consul for Go 1.13.

Fix #22

The file go.mod was already using go 1.13 so it was not modified.
And the file Jenkinsfile  was was not modified after confirming with DevOps. The comment below is for a separate project (docker-edgex-consul) but with the same situation as here, and applies here equally:

- Ernesto Ojeda  3:15 PM
edgeXBuildDocker depends only on the Dockerfile in the repo. It only cares about doing a docker build . So for docker-edgex-mongo, the only thing you would have to update is this file: https://github.com/edgexfoundry/docker-edgex-mongo/blob/master/cmd/Dockerfile#L19 (edited)

@michaelestrin , I am not a committer on this repo. You are, so you will need to do the merge. Note that the failing verify is the old pipeline that is not longer blocking merge.


How to write Many2Many fields? (ODOO V12)

Hi, i have a problem for write some fields that are many2many fields
In this case, i'm creating a Invoice
That invoice has invoice lines where each line has an array of taxes lines
Using the library i set the tax ids but after create the invoice line the taxes not appear
This is an example of Invoice created from ODOO V12 using web browser

And this is an example of Invoice created from ODOO V12 using library PortaCapena

I'm using this table "account.invoice"

with one2many relation to "account.invoice.line"

Then i set the tax_ids for this invoice lines in field "invoice_line_tax_ids" (This field is a many2many field type)

I'm setting the tax_id correctly
This is my code (My repo is here https://github.com/luke92/OdooNetFramework)
The variable taxesId is getting from the product model
First i create the invoice

After that i save each invoice line setting the id of invoice

How can i save the "account.invoice.line" with "invoice_line_tax_ids" ?
In case of doubt, I am at your disposal
Thanks,
Regards,

@patricoos  I have a solution for this!
Here is my solution
https://github.com/luke92/OdooNetFramework/blob/main/OdooIntegration/OdooIntegration.ConsoleApp/Many2ManyHelpers/OdooMany2ManyService.cs
Basicallly i authenticate with {baseUrl}/web/session/authenticate
Sending a json for authenticate and get session_id
{"jsonrpc":"2.0","params":{"db":"database","login":"username","password":"pass"}}
And then send a json structure to this url: {baseUrl}/web/dataset/call_kw
{   "jsonrpc": "2.0",   "method": "call",   "params": {     "args": [       [         60191       ],       {         "invoice_line_tax_ids": [             [                 6,                 false,                 [                     3                 ]             ]         ]       }     ],     "model": "account.invoice.line",     "method": "write",     "kwargs": {     }   },   "id": 12 }
The trick is replace the content of property args

Also for invoices, is necessary add taxline to invoice (add taxes in invoice line not generate taxes for invoice)

Congratulations! Good job, luke92
In the future, I will implement web client to my library, based on your example
Thanks a lot!


Unexpected emoji picker search results

Submit feature requests to http://www.mattermost.org/feature-requests/. File non-security related bugs here in the following format:
Summary
Emoji search does not return the expected emojis
Environment Information

Device Name: Samsun galaxy s10e
OS Version: Android 10
Mattermost App Version: 1.37.0 build 3000334
Mattermost Server Version: 5.26.0 build 5.26.2

Steps to reproduce

Try to add a reaction to a message, click on the button to open the emoji search picker
Type check in the search field

Expected behavior
I would expect to see all emojis whose code contains check, and especially the :white_check_mark: as I always forget its full code.
This expected behaviour is followed by the Mattermost webclient's emoji picker, that return the expected:

:checkered_flag:
:ballot_box_with_check:
:heavy_check_mark:
:white_check_mark:

Observed behavior
On the Android app, the search results are as follow:

:checkered_flag:
:chicken:

This list not only lacks the wished-for :white_check_mark:  emoji, but also throws in a mysterious, funny and yet sadly unwanted :chicken: .
Possible fixes
If you can, link to the line of code that might be responsible for the problem.

Thanks, opened a ticket: https://mattermost.atlassian.net/browse/MM-30994


Fix cms form reset on failed ajax form submission

1. Why is this change necessary?
In #3753, I inadvertently introduced the bug described in #4422.
2. What does this change do, exactly?
Instead of always clearing the form after the content is submitted, we only clear it when the submission was actually successful.
3. Describe each step to reproduce the issue or behaviour.

Go to the contact form.
Enter all the information.
Ensure the server-side validation fails, e.g. by mis-typing the captcha.
The form is being reset (which it shouldn't be).

4. Please link to the relevant issues (if any).

Original bug: #3719
Original bugfix: #3753
Introduced bug: #4422

5. Checklist

[x] I have rebased my changes to remove merge conflicts
[x] I have written tests and verified that they fail without my change
[x] I have created a changelog file with all necessary information about my changes
~[ ] I have written or adjusted the documentation according to my changes~
~[ ] This change has comments for package types, values, functions, and non-obvious lines of code~
[x] I have read the contribution requirements and fulfil them.

Hi @hype09 your changes were merged to trunk: https://github.com/shopware/shopware/commit/955209902e1cf3608590ab8dcdcae4d4b2de220d
Thank you for your contribution.


Fix parse error on empty flow containers

As reported in the issue #347, the latest parser mistakenly emits the parse errors on empty flow containers like:
foo: {}
bar: []

They are caused because the PR #350 lacked implementation for empty flow containers.
So, this PR has fixed them by adding the missing implementation and added some test cases to validate the changes.

Pull Request Checklist
Read the CONTRIBUTING.md file for detailed information.

[x] Changes are described in the pull request or in a referenced issue.
[x] The test suite compiles and runs without any error.
[x] The code coverage on your branch is 100%.
[x] The documentation is updated if you added/changed a feature.

Please don't

The C++11 support varies between different compilers and versions. Please note the list of supported compilers. Some compilers like GCC 4.7 (and earlier), Clang 3.3 (and earlier), or Microsoft Visual Studio 13.0 and earlier are known not to work due to missing or incomplete C++11 support. Please refrain from proposing changes that work around these compiler's limitations with #ifdefs or other means.
Please refrain from proposing changes that would break YAML specifications. If you propose a conformant extension of YAML to be supported by the library, please motivate this extension.
Please do not open pull requests that address multiple issues.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

12 of 12 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3897

Relevant Lines:
3897

💛  - Coveralls


Session support using state

Attempting to upgrade my application from:
"feathers": "^2.0.0",
"feathers-authentication": "^0.7.10",

to:
"@feathersjs/feathers": "^3.1.4",
"@feathersjs/authentication": "^2.1.5",

Among other Feathers upgrades.
My application uses a Reddit login via passport-reddit. Reddit requires a state parameter passed in the URL string, but this seems to be causing an issue for  Feathers.
Upon arriving at my redirect url - something like: example.app/auth/reddit/callback?state=[STATE]&code=[CODE], I hit a server error and get the following error message on server log:
OAuth 2.0 authentication requires session support when using state. Did you forget to use express-session middleware?
I've read through a number of issues and threads regarding sessions but I've yet to find a way to resolve this.

Have you tried adding the express-session middleware? I would recommend to first upgrade the old feathers-authentication to a 1.x version and then update everything else.
That's kind of how was intended since there has been over a year between auth 1.0 and Feathers Buzzard (where authentication didn't really change much).

I've tried making use of express-session but unclear exactly how to implement. The /auth/reddit/callback endpoint is being created by @feathersjs/authentication and isn't something I've previously had to modify. Auth worked more or less out-of-the-box in the previously used version.
Did previous versions of feathers authentication have express-middleware baked in? Would any such versions still be compatible with feathers core @ 3.x, or what's the simplest way to get express-middleware running on the auth endpoints?
Have tried creating a new feathers app with latest versions via generator just to figure out this auth piece, but I'm hitting the same issue and confused about the specifics of implementation.

If it was there were probably good reasons why it was removed. Sessions can be enabled and used like any other Express middleware though by just adding
var session = require('express-session')

app.use(session());

Somewhere before app.configure(authentication()).

This got me further. I did have to pass in a secret:
app.use(session({secret: app.get('auth').secret}));

And now I'm getting a FeathersError:
Forbidden: Unable to verify authorization request state.

This seems to originate in the passport-oauth2 module.

Did you find a solution? I can still look into it with a repository to reproduce the problem.

@davejtoews I just solved this in my own app while getting passport-auth0 to work. It also requires express-session to support a state parameter.
My solution was to add express-session in the src/authenticate.js file that is normally generated by feathers. (An example of this file can be found in the chat example)
Before the app.configure(authentication(config)); line I added the following:
  app.use(session({
    secret: config.secret,
    resave: false,
    saveUninitialized: false
  }));

I reuse the secret from the config (which should avoid that error you got initially). the rest of the config is documented and may require specific values for your provider.
Hopefully that helps you out

@ccummings Thanks. That didn't work for me though. I get the same result whether this code is in app.js or authentication.js.

@ccummings Doesn't that mean your auth requests must be routed to the same instance?

Has anyone been able to solve this? I'm running into the same issue.
{ Forbidden: Unable to verify authorization request state.
    at new call (/Users/reyre/Code/example/node_modules/@feathersjs/errors/lib/index.js:107:17)
    at req.app.authenticate.then (/Users/reyre/Code/example/node_modules/@feathersjs/authentication/lib/express/authenticate.js:57:31)
    at processTicksAndRejections (internal/process/next_tick.js:81:5)
  type: 'FeathersError',
  name: 'Forbidden',
  message: 'Unable to verify authorization request state.',
  code: 403,
  className: 'forbidden',
  data: { message: 'Unable to verify authorization request state.' },
  errors: {} }

It seems like if you use a state parameter you have to be able to pass it to the authenticate call in passportjs.

For example, passport.authenticate('strategy', { state: true }), but I'm unsure how to get the options into that call through FeathersJS.

Feathers v4 authentication no longer uses Passport but allows to fully customize the authentication flow (including custom Passport strategies). Please see the migration guide for more information. Closing this issue in order to archive this repository. Related issues can be opened at the new code location in the Feathers main repository.


Fuzzer doesn't adjust function names or LitmusIDs when deleting functions

Observe the following output from a fuzzer run:
C SBSC

{
    iSTVWu0PW = -362;
    QDuEO8OibYwf = -2147483648;
    CLQ2FaUXOX3 = 438966;
    I5ez4Q = 32487;
    pAbVAxkp = 86706;
    SPYl53okzl = -2147483648;
    PgM2rwhrEn1 = 1842531;
    BDB8xlzjIfin = -186754;
    x = 0;
    y = 0;
}

void
P1(int *BDB8xlzjIfin, atomic_bool *CLQ2FaUXOX3, int *I5ez4Q,
   bool *PgM2rwhrEn1, atomic_int *QDuEO8OibYwf, atomic_bool *SPYl53okzl,
   int *iSTVWu0PW, atomic_int *pAbVAxkp, atomic_int *x, atomic_int *y)
{
    int a;
    atomic_store_explicit(x, 1, memory_order_relaxed);
    a = atomic_load_explicit(y, memory_order_relaxed);
}

void
P2(int *BDB8xlzjIfin, atomic_bool *CLQ2FaUXOX3, int *I5ez4Q,
   bool *PgM2rwhrEn1, atomic_int *QDuEO8OibYwf, atomic_bool *SPYl53okzl,
   int *iSTVWu0PW, atomic_int *pAbVAxkp, atomic_int *x, atomic_int *y)
{
    int a;
    atomic_store_explicit(y, 1, memory_order_relaxed);
    atomic_store_explicit(QDuEO8OibYwf, 180, memory_order_relaxed);
    a = atomic_load_explicit(x, memory_order_relaxed);
}

exists (0:a == 0 /\ 1:a == 0)

Note that:

P0 is missing (it's been deleted);
the postcondition still refers to 0 and 1, despite the threads actually being called 1 and 2;
both of these taken together confuse the absolute Fanny Cradock out of litmus.

The fuzzer needs to take more care when dropping empty programs, and needs to remember to revise litmus IDs upwards and downwards whenever it changes the program list.

It does now, to the best of my knowledge.


there is issue in the top of design

in the top of visual studio the button of close the program is up the file list inside of section and view

Hard to tell from your description, and you didn't give version or platform information, but maybe what you're seeing is https://github.com/microsoft/vscode/issues/159813#issuecomment-1234863008

Closing as a duplicate of #159813

Hard to tell from your description, and you didn't give version or platform information, but maybe what you're seeing is #159813 (comment)

thank you very much that the solve of problem


Arizona Parkways, Historic and Scenic Roads

The Arizona Parkways, Historic and Scenic Roads program posts distinctive shields along its routes, many of which are concurrent with state routes. The design is apparently in the public domain based on its inclusion in Arizona’s MUTCD supplement. In OSM, these routes are tagged network=US:AZ:Scenic.

The two images above differ in the color of the sky and the shapes of the mountains and cactus. Responses from Discord point out that the shield on the left is an older one, while the shield on the right is ADOT’s current official design.

I'm finally getting around to contributing the AZ Scenic shield, but I'm not so good at Git. Should I create a new branch and push shield_us_az_scenic.svg and an update to shield_defs.js?

Yes, exactly. You could do it entirely online from within GitHub, but building it locally allows you to see what it’ll look like. Once you push your branch, create a pull request out of it; the PR will automatically build a preview that we can all examine.

It all sounds so easy, but I have failed at every attempt to do this.

Want to pair on this over screen sharing tomorrow during the noon EST slot? We were going to have an Americana workshop then but had to cancel because the repo wasn’t quite where we needed it to be for that workshop. But helping you make this contribution would be the least we could do instead.

Thanks for the offer. Noon ET today won't work, but I'll follow up on Slack. The closest I've been able to get is creating a local branch off main, updating the two files, and staging and committing them. I'm getting 403 error on the push even though my login to Github looks fine.
I did look for the options to do this on the Github web site, but the documented methods to add a branch don't seem to be present (anymore? just in this project? because I don't have permissions?).


[Bug] Git project https://github.com/apache/incubator-tvm listed in .gitmodules doesn't exist

It has been renamed to https://github.com/apache/tvm

I think it's not a bug. you can just use  https://github.com/apache/incubator-tvm.git as the url in .gitmodules.


A selection should not be allowed to point to a non existing surface

This should be checked when setting the selection.
On the other hand it might happen that a surface is removed while having the selection.

After doing some analysis and thinking, I come to the conclusion, that it is even pretty common to have selections with a not yet valid surface id -- because model is always changed first, and surfaces rendered later. Another use-case is headless execution.
Instead the code must be robust against potentially unavailable Surfaces.


Dev 8789 device tracking

make demo device spin around
add device tracking when pressing the recenter button, this auto tracking stops when you move the camera

https://github.com/FormantIO/3d-viewer-module/assets/116584958/1f4ea56d-5a2c-4a47-89af-50b9b28d2ba7

Super cool :)


Fix copyto with non-contiguous multidevice

This fixes an error when dealing with multiple devices and a non-contiguous copy.
https://github.com/cupy/cupy/blob/550133201e379168ca21217ef9eee5e9fd3087be/cupy/_core/core.pyx#L552-L557
Here, if the array is non-contiguous astype creates a new array and in  elementwise_copy it uses the with device context manager.
Before doing this we have changed the device manually  using runtime.setDevice so when that context manager exits, a wrong device is set as the current one.
Easy reproducer to see the issue
import cupy

class manual:

    def __init__(self, dev):
        self._dev = dev

    def __enter__(self):
        self._prev = cupy.cuda.runtime.getDevice()
        cupy.cuda.runtime.setDevice(self._dev)  # Manual change

    def __exit__(self, *args):
        cupy.cuda.runtime.setDevice(self._prev)  # Manual change

def works():
    with cupy.cuda.Device(0):
        with cupy.cuda.Device(1):
            with cupy.cuda.Device(0):
                with cupy.cuda.Device(0):
                    pass
                print('works: current_device', cupy.cuda.runtime.getDevice())

def fails():
    with cupy.cuda.Device(0):
        with cupy.cuda.Device(1):
            with manual(0):
                with cupy.cuda.Device(0):
                    pass
                print('fails: current_device', cupy.cuda.runtime.getDevice())

works()
fails()

output
works: current_device 0
fails: current_device 1

Originally reported by @kmaehashi

Jenkins CI test (for commit c8b4d03a4dc0c14b4c476f68a5fd45658e75d3df, target branch master) succeeded!


update(OWNERS): add Aldo Lacuku (alacuku) to owners as reviewer

Signed-off-by: Aldo Lacuku<EMAIL_ADDRESS>
What type of PR is this?
/kind documentation
Any specific area of the project related to this PR?

What this PR does / why we need it:
As we descussed in the last (September 7th 2022) Falco community call and given the positive feedback from other current mainteneirs I would like to propose myself as a reviewer.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: alacuku
Once this PR has been reviewed and has the lgtm label, please assign issif for approval by writing /assign @issif in a comment. For more information see:The Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

The following users are mentioned in OWNERS file(s) but are untrusted for the following reasons. One way to make the user trusted is to add them as members of the falcosecurity org. You can then trigger verification by writing /verify-owners in a comment.

alacuku

User is not a member of the org. Satisfy at least one of these conditions to make the user trusted.

/verify-owners

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: alacuku, leogr
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 9085bbe2b51e548f632ee0178554876dd3231a20

PS
@alacuku helped me a lot when refactoring the Falco helm chart, and he's always up for reviewing PRs. So I want also to say a big thank you to him :heart_decoration:


consider multi-stage docker builds

https://docs.docker.com/develop/develop-images/multistage-build/

might be useful for workflows where we actually build a separate image for each R project (aka "bring-your-own-dockerfile"), but it's not terribly useful otherwise

obsolete or done in the new yml-based GitHub actions.


autocompletion scripts

Would be nice to generate autocompletion scripts for bash/zsh/fish/nushell etc, like clap-rs: https://github.com/clap-rs/clap/blob/master/clap_complete/examples/completion.rs

This is definitely on the feature list, but due to college, I do not have much time to work on it this year. If anyone is willing to contribute, I am open to it.


Vortex Boss crash

Zenkerdus and MightyC7 have both had issues with boss
MightyC7
[Zenkerdus] (https://discord.com/channels/315426192817651714/956075715244195870/1275220004647866460)

Repo'd a bug with Vortex, have a bizhawk log to puzzle through.

Stack is getting smashed somehow,  between lines 24824 and 24847 in log trace.


A way to "unset" queryParams

Hi,
It'd be usefull to be able to unset params via setQueryParams, by setting undefined, or null ?

Yes it is.
see: https://github.com/meteorhacks/flow-router/pull/60


docTest caues segfault with ghci and runghc

If docTest is used with ghci or runghc, it causes segfault:
*Main> docTest ["../Data/RBTree.hs"] ["-i.."]
zsh: segmentation fault  ghci Test2.hs
This is very inconvenient because "runghc Test.hs", for exmaple causes segfault, where
Test.hs contains test-framework-doctest.
Are there any work around on this?
I'm using GHC 7.0.4 on Mac.

I'm not aware of that issue.  Does the doctest test suite run flawlessly on your system? Say, the following reports no errors:
cabal configure && cabal build && ./tests/runtests.sh

Btw, thx for reporting this!

No errors were reported with runtests.sh. In my environement, compiled "Test.hs" can work well.

BTW. My plan is to integrate doctest to test-framework-th. I have already implemented it and doctest really enpowers test-framework. I will release the package in this week. Thank you for your work on doctest!

I think it is critical to make this work with runhaskell.  I can not reproduce this on Linux (with GHC 7.0.4).  I think it would be nice if we'd have a test case, that provokes this error.  Can you try if runhaskell tests/Main.hs from the test-framework-doctest repository provokes this on your system?
Btw: Have you tried with doctest HEAD, or only with the latest release?

I tested both on Linux Mac:
   0.4.2 HEAD

Linux  OK    OK
Mac    NG    NG
NG means bus error or seg fault or "Too late for parseStaticFlags: call it before newSession".
I guess this bug is specific to Mac.

I forgot to write what I did:
Prelude> :m Test.DocTest
Prelude Test.DocTest> getDocTests [] ["Data/RBTree.hs"]

We can forget test-framework-doctest. Let's just think about doctest.

The "Too late for parseStaticFlags: call it before newSession" issue is a limitation of GHC (yes, GHC uses global state, see the code, if you are inclined).  You can only run getDocTests once per process.  So you have to start a new ghci session after a call to getDocTests.  This is why I recommend to test this with runhaskell only.
Maybe you are affected by GHC bug #5031/#5132.  Can you try one of the minimal test cases given in the tickets?

Thank you for your info.
Due to this bug, I cannot install GHC 7.4.0 on my Mac at this moment.
http://hackage.haskell.org/trac/ghc/ticket/5726

Can you verify that test-framework-doctest works with runhaskell once http://hackage.haskell.org/trac/ghc/ticket/5726 gets fixed?  In that case I'd leave the ticket open until we have checked that.

I keep this issue in mind. I will try this with GHC RC2.

@kazu-yamamoto any new findings on that?

Good timing. I have tried GHC 7.4.0 rc2 just before but many packages including doctest and xhtml limit version of "base" and "ghc". I was tiered to fix them and stopped this confirm job...


perf: change one instance in coprods of groups

This fixed a simp failure in #6803 . If it is defined like this, then there is no need to unfold Con.monoid when checking defeq.

Two other possibilities:

reducible (not sure how much you have to make it though)
{ Con _ with} should do what you did manually

Two other possibilities:

reducible (not sure how much you have to make it though)
{ Con.monoid _ with } should do what you did manually

{ Con.monoid _ with } doesn't do the same thing, because it doesn't use the existing MulOneClass instance to fill in the Mul and One fields, so you still have to unfold Con.monoid to check the defeq.
I think Con.monoid should already be reducible since it's an instance.

It looks like lean4#2478 will fix the timeouts in #6803 without modifying the instance (it was probably unifying against something that was improperly unfolded to start with). There is #7257 to test out yourself in case I merged something oddly.

I did try merging my amalgamated products PR into #7257. It seemed to fix the timeout at the end, but not the simp failure nearer the start of the file. It still failed to simplify inl 1 to 1.

bors r+


Disable all tests with --watch

Testing cli this way is completely
unreliable. A new method of testing
is needed.

:+1:
On 25 Oct 2015 8:20 am, "Marcin Cieślak"<EMAIL_ADDRESS>wrote:

Testing cli this way is completely
unreliable. A new method of testing
is needed.
You can view, comment on, or merge this pull request online at:
https://github.com/sass/node-sass/pull/1216
Commit Summary

Disable all tests with --watch

File Changes

M test/cli.js
https://github.com/sass/node-sass/pull/1216/files#diff-0 (11)

Patch Links:

https://github.com/sass/node-sass/pull/1216.patch
https://github.com/sass/node-sass/pull/1216.diff

—
Reply to this email directly or view it on GitHub
https://github.com/sass/node-sass/pull/1216.

Looks like you missed one?
 1) cli "before all" hook for "should return a correct version info":
     Error: timeout of 2000ms exceeded. Ensure the done() callback is being called in this test.
      at null.<anonymous> (C:\projects\node-sass\node_modules\mocha\lib\runnable.js:189:19)

Looks like node 5.x has watching broken on my favourite OS https://github.com/nodejs/node/issues/3541

this before all hook checking libsass version must be rewritten in an async way. Will fix of course.

I believe this has been done.


Not Issue. question about tx

is it possible to make a minimum power of about 100-200 MW, tell me how to implement it?

It is not entirely trivial. All happens around function FREQUENCY_CalculateOutputPower. But it uses factory calibration values which are different for each radio. Also there are 3 calibration points for each combination of band and power level. I wouldn't touch without an RF power meter.

Didn't you help 1o11 do the power reduction mod?

My code is a fork of 1o11. The file where the change is is identical. I pushed the change to the repo. Do you have power meter?

yes, of course, what variables can be changed?

You have to activate the ENABLE_REDUCE_LOW_MID_TX_POWER mod. and the code that it activates divide the calibration values by 5 and by 3. You have to change dividers.
I'm also interested in what values you will get, before the mod, with mod and after your changes. It would be good to do the measurements on the beginning, middle and end of the VHF and UHF band. So whatever results you get please share.

not sure where yet

Right there, but you didn't pull last changes.

 frequencyBandTable[Band].lower,
	(frequencyBandTable[Band].lower + frequencyBandTable[Band].upper) / 2,           //  3 or 5?

Did you pull the git repository?

yes i did

I see you didn't, what is the last commit?

Now you did, I hope now it's obvious what to change?

Well I can see it isn't obvious :)
So not there where you changed it. The dividers between #ifdef and #endif

change the number under the fraction , I suppose . in the direction of increase

Yes, it already lowers the power by 5 and by 3, if you want to decrease the power, you have to change it to higher numbers. It is repeated 3 times because those are the 3 calibration points for different frequencies on in the band: lower bound, middle and upper

DUCE_LOW_MID_TX_POWER  -I D:/Downloads/uv-k5-Egzumer-firmware-custom-main/ -I D:/Downloads/uv-k5-Egzumer-firmware-custom-main//external/CMSIS_5/CMSIS/Core/Include/ -I D:/Downloads/uv-k5-Egzumer-firmware-custom-main//external/CMSIS_5/Device/ARM/ARMCM0/Include -c radio.c -o radio.o
radio.c: In function 'RADIO_ConfigureSquelchAndOutputPower':
radio.c:519:6: error: 'p_vfo' undeclared (first use in this function)
519 |  if (p_vfo->output_power == OUTPUT_POWER_LOW) {
|      ^~~~~
radio.c:519:6: note: each undeclared identifier is reported only once for each function it appears in
radio.c:520:3: error: 'TX_power' undeclared (first use in this function)
520 |   TX_power[0] /= 5;
|   ^~~~~~~~

Ups sorry, 1o11 changed some names and I didn't check that. you have to change p_vfo to pInfo

thank you very much

There were some other changes, I did push force, if you don't know how to pull that:

git fetch
git reset --hard origin/master

lats try

fixed

all work  thanks!

I will provide you with the data after the measurement

measurement data before firmware: H =4.5 , M=3 w ,L=1.2 data after firmware : H=4.5 w , M <1 w, L < 0.5 m .  The measured power in low mode is about 200 MWt, the switch device shows only a slight presence of transmission.  Thank you so much for your help!


error opening bot framework emulator in Ubuntu 14.04

bot emulator install as a root user and aslo try to install as a normal user  in  last three version i have tryed..
1.botframework-emulator_4.0.15-alpha_amd64.deb
2.botframework-emulator_4.0.14-alpha_amd64.deb
3.botframework-emulator_4.0.13-alpha_amd64.deb

Installation done successfully all version .
My ubuntu version is 14.04 and Codename : trusty and x86_64
but when i open the bot framework emulator using commad line bot framework emulator successfully
but  it's show error on the console in ubuntu terminal like ..

Failed to read file: /home/xyz/.config/botframework-emulator/botframework-emulator/server.json SyntaxError: Unexpected end of JSON input

HttpError: 404 Not Found
"method: undefined url: https://github.com/Microsoft/BotFramework-Emulator/releases/download/v4.0.15-alpha/latest-linux.yml\n\nPlease double check that your authentication token is correct. Due to security reasons actual status maybe not reported, but 404.\n"

Just gave it a try, apart from seeming quite slow (interface not responsive), I also get this latest-linux.yml message. Is there anything I could do, or is the Linux emulator just broken?
$ botframework-emulator
Adding extension JSON
Adding extension LUIS
Adding extension QNAMaker
{ HttpError: 404 Not Found
"method: undefined url: https://github.com/Microsoft/BotFramework-Emulator/releases/download/v4.0.15-alpha/latest-linux.yml\n\nPlease double check that your authentication token is correct. Due to security reasons actual status maybe not reported, but 404.\n"
Headers: {
  "cache-control": [
    "no-cache"
  ],
  "content-encoding": [

@nlw0 I believe that error is just from our Auto-Updater polling GitHub for the latest version of the emulator, and then coming back with a 404. Errors from the Auto-Updater shouldn't prevent the emulator from starting. So I would just ignore that message for now.
If you're emulator isn't starting then there is some other error that's occurring during startup.
We have just published an updated Linux build that is months ahead of v4.0.15-alpha, so I would install that version and give it a try and see if you still get the same issue.
Link:
https://github.com/Microsoft/BotFramework-Emulator/releases/tag/v4.0.0-preview-2-linux

Just tried the newest version (v4.0.0-preview-2-linux) on Ubuntu 16.04.5 LTS and it is working.

You will still get that same error within the terminal, but it should not stop the Emulator from starting.

Just tried it on Ubuntu 14.04.5 LTS as well and it also works.


Listing all possible overloaded functions is unpractical. EOM.

File: docs/reference/pkg/nodejs/pulumi/kubernetes/yaml/_index.md

We should consider for docs generation purposes limiting the number of overloads to 10 or something like that - and showing ... with a link to sources.


Upgrade to Django 1.11

Codecov Report

Merging #484 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #484   +/-   ##
=======================================
  Coverage   80.08%   80.08%
=======================================
  Files          37       37
  Lines        2511     2511
  Branches      156      156
=======================================
  Hits         2011     2011
  Misses        453      453
  Partials       47       47

Impacted Files
Coverage Δ

cabot/settings.py
89.55% <ø> (ø)
:arrow_up:

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 976e263...6e887fd. Read the comment docs.

Living on the edge!

Wow I never thought we would get here! And only days after it was released ;)


Warning when installing or updating template

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
When installing or updating Bootstrap.Blazor.Templates, dotnet warns that "The following templates use the same identity 'BootstrapBlazorWebApp'."  and said there is a conflict.
Although this has not caused any usability trouble, I think this may not be an expected behavior of the package.
here is the log:
dotnet new install Bootstrap.Blazor.Templates::*
The following template packages will be installed:
Bootstrap.Blazor.Templates::*
Warning:
The following templates use the same identity 'BootstrapBlazorWebApp':
? 'Bootstrap Blazor Web App Auto(Global)' from 'Bootstrap.Blazor.Templates::8.1.4'
? 'Bootstrap Blazor Web App Auto(Per page/component)' from 'Bootstrap.Blazor.Templates::8.1.4'
The template from 'Bootstrap Blazor Web App Auto(Per page/component)' will be used. To resolve this conflict, uninstall the conflicting template packages.
Success: Bootstrap.Blazor.Templates::8.1.4 installed the following templates
Expected Behavior
No conflict warn,  I guess.
Steps To Reproduce
Just run dotnet new install Bootstrap.Blazor.Templates::* in the dotnet 8 environment where the template is not installed.
Exceptions (if any)
No response
.NET Version
8.0.201
Anything else?
dotnet --info
.NET SDK:
Version:           8.0.201
Commit:            4c2d78f037
Workload version:  8.0.200-manifests.5638171e
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.22631
OS Platform: Windows
RID:         win-x64
Base Path:   C:\Program Files\dotnet\sdk\8.0.201\
.NET workloads installed:
[wasm-tools]
Installation Source: SDK 8.0.200
Manifest Version:    8.0.2/8.0.100
Manifest Path:       C:\Program Files\dotnet\sdk-manifests\8.0.100\microsoft.net.workload.mono.toolchain.current\8.0.2\WorkloadManifest.json
Install Type:              Msi
Host:
Version:      8.0.2
Architecture: x64
Commit:       1381d5ebd2
.NET SDKs installed:
8.0.101 [C:\Program Files\dotnet\sdk]
8.0.201 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.26 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86   [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found

@NullDict release v8.1.5


Support SqlLite

I have a customer that needs SqlLite support for their RN4W application.

I'd suggest your customer can hire someone to implement this


Fix formatting of OpenID Connect examples

Why:
There are a few small formatting issues on this page of documentation.
Closes: n/a (small copy fix only)

What's being changed (if available, include any code snippets, screenshots, or gifs):

One code sample is missing an opening ` symbol
Other code samples have mismatched " symbols

Check off the following:

[x] I have reviewed my changes in staging, available via the View deployment link in this PR's timeline.

For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.

[ ] For content changes, I have completed the self-review checklist.

@afairb Thanks so much for submitting a PR! I'll get this triaged for review :zap:

@afairb Apologies, I just need to confirm internally we can make an exception on this one before merging, as a matter of course, as it's one of the articles that normally requires approval from another team.

@afairb Apologies, I just need to confirm internally we can make an exception on this one before merging, as a matter of course, as it's one of the articles that normally requires approval from another team.

No problem - I didn't realise these files were in that list before raising the PR and seeing the bot comment!


Change DI sample to use IHttpClientFactory

HttpClient cannot be directly injected into a function class like this. See here for the explanation: https://github.com/Azure/azure-functions-host/issues/4520#issuecomment-498770795

@brettsam : Thanks for your contribution! The author, @craigshoemaker, has been notified to review your proposed change.

@brettsam : Thanks for your contribution! The author, @craigshoemaker, has been notified to review your proposed change.

Thanks, @brettsam! #sign-off


multiple slot drag handling

add support for multiple slot dragging by divide component by its slot.

single slot nested drop handling

https://user-images.githubusercontent.com/29588646/148869916-93f7e02a-3877-492e-b2db-a5466de46cb2.mp4

multiple slot drop handling

https://user-images.githubusercontent.com/29588646/148869940-6d57ce41-16fd-4b7a-8292-2e37fc42ab87.mp4

Could you post a demo video of this new feature? @Sczlog

@Yuyz0112 demo updated


Add a initial page option

Please add a key function to pagerdata and a initial page option
for example:
const data = {
  title: "Demo"
  key: "DemoKey"
  component: DemoComponent,
}

<ViewPager
 data={this.data}
 initialPage={{key:"DemoKey}}
 ....
       />

has been implemented in the way described above

is available in version 0.1.13-rc.1


AZ CLI  does not consider cross-resourcegroup network rules on: az keyvault network-rule add

Describe the bug
If you execute the following cmdlet:
az keyvault network-rule add --name ContosoKV --vnet-name ContosoVnet --subnet default
And the Vnet/Subnet are in a different Resource Group (RG) within the same subscription. It will fail with the following error:
DEBUG: cli.azure.cli.core.sdk.policies: {"error":{"code":"VirtualNetworkNotValid","message":"Operation on Virtual Network could not be performed. StatusCode: 404 (NotFound). Error Code: ParentResourceNotFound. Error Message: Failed to perform 'action' on resource(s) of type 'virtualNetworks/taggedTrafficConsumers', because the parent resource '/subscriptions/*****/resourceGroups/*******/providers/microsoft.network/virtualNetworks/VnetName' could not be found.."}}
Adding a network rule with a Vnet/Subnet in different RG than the KV's one is possible and supported. Through the GUI it gives no error.
Through further investigation, I found out that if you run the command including '--vnet-name' + 'subnet', CLI makes an assumption that the Vnet is part of the same KV's RG and looks for that Vnet in that RG, and as the Vnet/Subnet exist in different RG, it returns the above error.
A workaround was to use the subnet ID instead by running the cmdlet like this which ran successfully and somehow "demonstrates" it's a valid operation at service-level:
az keyvault network-rule add --name ContosoKV --subnet "/subscriptions/xxxxxxxxxxx/resourceGroups/non-AKV-RG/providers/Microsoft.Network/virtualNetworks/non-AKV-RG-Vnet/subnets/non-AKV-RG-subnet"
Related command
az keyvault network-rule add
Errors
DEBUG: cli.azure.cli.core.sdk.policies: {"error":{"code":"VirtualNetworkNotValid","message":"Operation on Virtual Network could not be performed. StatusCode: 404 (NotFound). Error Code: ParentResourceNotFound. Error Message: Failed to perform 'action' on resource(s) of type 'virtualNetworks/taggedTrafficConsumers', because the parent resource '/subscriptions/*****/resourceGroups/*******/providers/microsoft.network/virtualNetworks/VnetName' could not be found.."}}
Issue script & Debug output
DEBUG: cli.azure.cli.core.sdk.policies: {"error":{"code":"VirtualNetworkNotValid","message":"Operation on Virtual Network could not be performed. StatusCode: 404 (NotFound). Error Code: ParentResourceNotFound. Error Message: Failed to perform 'action' on resource(s) of type 'virtualNetworks/taggedTrafficConsumers', because the parent resource '/subscriptions/*****/resourceGroups/*******/providers/microsoft.network/virtualNetworks/VnetName' could not be found.."}}
Expected behavior
CLI should not assume KV and Vnet RG is the same and allow the operation with no error.
Environment Summary
azure-cli                         2.32.0 *  (But also reproducible on latest version 2.51.0)
core                              2.32.0 *
telemetry                          1.0.6 *
Dependencies:
msal                              1.16.0
azure-mgmt-resource               20.0.0
Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\fagonza.azure\cliextensions'
Python (Windows) 3.8.9 (tags/v3.8.9:a743f81, Apr  6 2021, 13:22:56) [MSC v.1928 32 bit (Intel)]
Additional context
No response

Thank you for opening this issue, we will look into it.

By design. Using --subnet $subnetID is the right way to add subnet in different resource group.


Support for avg and count functios in computed fields

Now it is possible to use avg and count functions in computed entity fields.

@wszymanowski great stuff! Would love to see doc PR on that as well!


arangosh and UTF-8

I'm trying to input UTF-8 symbols into tty version of the arangosh [v2.8.8 || devel] with no success. Only ASCII characters can be typed. So seems like JS version of the arangosh have been disappeared at devel branch.

I am unable to reproduce this locally.
I can type non-ASCII characters in the arangosh in both 2.8 and devel.
What environment are you using (platform, terminal encoding etc), and what kind of character do you try to type? Does pasting the characters into arangosh work?

Oops, appeared I'm having non-UTF8 terminal with UTF8 locale ;)


How to get the error code from the server for every file when uploading failed?

I want to access error code in slot="files", but I see just 'status' property with value "error"
Can you help with this if possible?
Thanks

I solved the problem through error event


Can you describe typical bandwidth usage for this?

Make sure you have a stable network connection. During the plotting phase of farming, it can be network intensive.

This may impact your network usage so please check your network connection if you have a hard data limit.

This is unclear, is this 100GB/m? 1TB/m?, 10TB/m?
Could you estimate
1TB flash storage = XGB of bandwidth used?

@nazar-pc is an estimation here possible at all? I expect there are too many variables to set an accurate expectation?
@randywessels is this something you monitor on your setup?
Discord could be the best place to canvass bandwidth usage to get a feel for example real-world usage statistics.

It is not possible to have such estimation. There are multiple factors and it would not help much if I explain all of them.
Users should have 10 Mbps+ reliable unmetered connection. If connection is metered you probably shouldn't run the software.


Normalize DrugBank/other source concept IDs that omit namespaces

Eg, for search term DB04050, since it can be matched against a simple regex we should be able to try it as drugbank:DB04050 if it otherwise fails to normalize. This is something we already perform within the search/ endpoint and may be relevant to other normalizers as well.

Good idea! We should include a warning that contains the query we tried and found a match for.

I think this is a reasonable default, but given the warning, I wonder if we should provide an API option to override this? like force_exact=true means that there's no attempt to search with an inferred namespace.

Resolved in #200


Handling of OMP Sentinels

Some UM files contains OMP sentinels for use statements, e.g. control/grids/p_to_t_vol.F90:
!$ USE compute_chunk_size_mod, ONLY: compute_chunk_size  ! Note OpenMP sentinel

Since fparser does not support this, FAB misses this dependency (and compilation fails). While I have a patch more or less ready to go (https://github.com/hiker/fab/tree/13_omp_sentinels), I have discussed this in our telco, and we agreed that this would be a useful feature for fparser to support, see https://github.com/stfc/fparser/issues/443. So I'll add this support to fparser, and once this has been released, we just need to enable this feature in FAB (it will be disabled by default in order not to break compatibility).

I have just submitted https://github.com/stfc/fparser/pull/444 to get support for omp conditional sentinels into fparser. I have confirmed that fab now detects the dependencies in the original case when setting the fparser flag to handle them:
diff --git a/source/fab/parse/fortran_common.py b/source/fab/parse/fortran_common.py
index 0ed4f3f..8b987d8 100644
--- a/source/fab/parse/fortran_common.py
+++ b/source/fab/parse/fortran_common.py
@@ -142,7 +142,8 @@ class FortranAnalyserBase(ABC):

     def _parse_file(self, fpath):
         """Get a node tree from a fortran file."""
-        reader = FortranFileReader(str(fpath), ignore_comments=False)
+        reader = FortranFileReader(str(fpath), ignore_comments=False,
+                                   omp_sentinel=True)
         reader.exit_on_error = False  # don't call sys.exit, it messes up the multi-processing

         try:

This obviously needs a new fparser release

https://github.com/stfc/fparser/pull/444.  has been merged, so once we do the next fparser release we can support these statements. As part of the improved compiler support I am also improving the handling of openmp, so FAB will 'know' whether openmp is enabled or not.


ErrorBag content lost after FormRequest redirect

Hi,
If I use my own custom FormRequest with validation there, if data is not valid, redirect back is made by FormRequest itself, and after rendering page with 200 status, errors bag from session is cleared and I can't display corresponding error messages in the view.
https://stackoverflow.com/questions/54005142/laravel-requests-validation-loose-errors-on-redirect

I think there's something wrongly configured in this case because you should have access to your errors after a validation redirect from a request class. Can you try a few more places besides StackOverflow? Particularly the Laracasts forums will probably provide some help for you.

Laracasts Forums
Laravel.io Forums
Discord
Larachat
IRC
StackOverflow

Wrapping everything in routes/web.php to "Route::group(['middleware' => ['web']], function () {" fixed the issue. But shouldn't everything in web.php file be assigned to "WEB" middleware?
app/Providers/RouteServiceProvider.php I see, that it is already named as "web".
Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
Is it really OK that I have to wrap all my routes?

Can you possibly reproduce on a fresh app and push to github so we could take a look. You definitely shouldn't have to add the "web" middleware to your web.php routes. The service provider takes care of that.


Update trace4cats-dynamic-sampling, ... to 0.12.0-RC1+191-347e4fc7

Updates

io.janstenpickle:trace4cats-dynamic-sampling
io.janstenpickle:trace4cats-filtering
io.janstenpickle:trace4cats-fs2
io.janstenpickle:trace4cats-inject
io.janstenpickle:trace4cats-log-exporter
io.janstenpickle:trace4cats-rate-sampling
io.janstenpickle:trace4cats-tail-sampling

from 0.12.0-RC1+146-d193db1e to 0.12.0-RC1+191-347e4fc7.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.janstenpickle" } ]

labels: library-update, semver-build-metadata

Superseded by #13.


New version: k6.k6 version 0.54.0

Checklist for Pull Requests

[ ] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the directory's name containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Installation failed with exit code -1978335187
2024-09-30 03:49:06.743 [FAIL] Installer failed security check. Url: https://github.com/grafana/k6/releases/download/v0.54.0/k6-v0.54.0-windows-amd64.msi Result: 0x80004005

Automated error analysis suggests -1978335187 may mean Installer failed security check. Another script should retry this every 18 hours.
Automated error analysis suggests 80004005 may mean Resource missing
(Automated response - build 896.)

@wingetbot run


New url handler: symbol [PAXURL-53]

Toni Menzel created PAXURL-53
This came just out of some observation: sometimes, you require an artifact that is pretty much denoted by an identifier only. But there are many (environment dependent) ways to get this artifact.  Example: referal:org.foo.bar where the url hander just picks up org.foo.bar and passes it forward to another, environment specific "resolver". This resolver for example could pick up this artifact from a local folder with substituting the following conversion: org.foo.bar --> [file:bundles/org.foo.bar.jar](file:bundles/org.foo.bar.jar)
Another resolver could translate it to an ordinary mvn protocol: org.foo.bar --> mvn:group/org.foo.bar/1.0 where group and version here comes from the configuration of the resolver.
Most important thing i wanted to make here: the user of the refereal can just predict a "symbolic" name, and does not have to know about anyhting more. If you want, this would be an " enduser programmable" url handler.
Any questions ?

Votes: 0, Watches: 0

@tonit @adreghiciu how time flies... Do you remember this one after 14 years? :)


New Publisher PostItemJnlLineAppliedToList in Codeunit 5817 Undo Posting Management

Please add a new publisher event OnAfterPostItemJnlLine (In codeunit 5817 Undo Posting Management, function “PostItemJnlLineAppliedToList” as shown below:

New publisher Event:
[IntegrationEvent(false, false)]
local procedure OnAfterPostItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; TempApplyToItemLedgEntry: Record "Item Ledger Entry" temporary)
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Allow passing props for the Menu component in NestedMenuItem

Hi,
Would it be possible to allow the passing of props for the Menu component located in NestedMenuItem?  I'm trying to change the bgcolor of .MuiMenu-paper under the Menu component, but don't have a way to set the sx prop on the Menu
Thanks

Hey @ARupertBMI,
Good point, looks like the interface has already allowed for it, it just hasn't been passed along.
Would you like to create a PR for it?

Sure I'll work on it.  Thanks!

Hey @ARupertBMI, just checking in to see if you were still keen to PR this one. I can probably do it tomorrow otherwise :)

Published to NPM as 2.0.4


Prepare for Reactor 4.x

Reactor 4.x will baseline on JDK 17. Look into how we can support SxS support for Azure client libraries.

Summary in https://gist.github.com/kasobol-msft/d24067ae9dbcd76b9a0f7ddfc6995c6a


Remove hostname validation

This is linked to https://github.com/docker/docker/issues/28985 and the associated PR(s) in docker/docker https://github.com/docker/docker/pull/28988 (and the same for 1.12.x).
This is to take care/discuss https://github.com/docker/docker/pull/28988#issuecomment-264281765
Ideally, if this is merged, should also be backported to 1.12.x :angel:.
/cc @stevvooe @tiborvass @aluzzardi
🐸
Signed-off-by: Vincent Demeester<EMAIL_ADDRESS>

SGTM, thanks!

Current coverage is 54.97% (diff: 100%)

Merging #1788 into master will decrease coverage by 4.85%

@@             master      #1788   diff @@
==========================================
  Files            74        102     +28
  Lines         11541      16871   +5330
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           6905       9275   +2370
- Misses         3817       6438   +2621
- Partials        819       1158    +339

Powered by Codecov. Last update 5fad392...cb47365

ping @aaronlehmann @aluzzardi we should include it in 1.12.x

LGTM

@aaronlehmann sorry I aldread merged https://github.com/docker/docker/pull/29047 can you make another one once this one is merged ?

LGTM

1.12 doesn't have the code in question. Changing milestone to 1.13.


MintoCrypto | Turn your ideas into investments

Project Abstract
Turn your ideas into investments with MintoCrypto. Ideas are essential to the tech industry. But ideas are just as fragile as they are valuable. We want to disrupt the market with MintoCrypto aims to make it easy for anyone to mint their idea, a trademark, a phrase, or even a new feature for an existing product on the block chain.
Grant level

[x] Level 1:  Up to $10,000, 2 approvals

Application Checklist

[x] The application template has been copied and aptly renamed (MintoCrypto.md).
[x] I have read the application guidelines.
[x] A BTC, Ethereum (USDT/USDC/DAI) or Polkadot/Kusama (aUSD) address for the payment of the milestones is provided inside the application.
[x] The software delivered for this grant will be released under an open-source license specified in the application.
[x] The initial PR contains only one commit (squash and force-push if needed).
[x] The grant will only be announced once the first milestone has been accepted (see the announcement guidelines).
[x] I prefer the discussion of this application to take place in a private Element/Matrix channel. My username is: @therealroomio:matrix.org

Closing in favour of https://github.com/w3f/Grants-Program/pull/1227


145 꿈 판매 완료

Closes #145

Codecov Report

Merging #148 (b0f7353) into main (ae17cf8) will decrease coverage by 0.73%.
The diff coverage is 5.00%.

@@             Coverage Diff              @@
##               main     #148      +/-   ##
============================================
- Coverage     69.01%   68.28%   -0.74%
  Complexity      400      400
============================================
  Files           111      111
  Lines          1307     1321      +14
  Branches          9       10       +1
============================================
  Hits            902      902
- Misses          400      414      +14
  Partials          5        5

Impacted Files
Coverage Δ

...a/app/jg/og/zamong/controller/DreamController.java
17.77% <0.00%> (-0.83%)
:arrow_down:

...jg/og/zamong/entity/dream/selldream/SellDream.java
6.66% <0.00%> (-3.34%)
:arrow_down:

...on/business/ForbiddenStatusSellDreamException.java
0.00% <0.00%> (ø)

...among/service/dream/sell/SellDreamServiceImpl.java
1.85% <0.00%> (-0.28%)
:arrow_down:

...ain/java/app/jg/og/zamong/exception/ErrorCode.java
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


inquirer.ui.BottomBar() cannot be registered to outputStream

I was trying to use the bottom bar printing, but when I try to register inquirer.ui.BottomBar() my node process finishes there. Here's my code.
const inquirer = require('inquirer')
const ui = new inquirer.ui.BottomBar()
console.log(ui)
outputStream.pipe(ui.log)
...

It immediately exits on line 4

Wrong repo


Leverage the HF cache for models

🚀 The feature, motivation and pitch
torchchat currently uses the hf hub which has it's own model cache, torchchat copies it into it's own model directory so you end up two copies of the same model.
We should leverage the hf hub cache but not force users to use that location if they're using their own models.
Alternatives
No response
Additional context
From r/localllama
"One annoying thing is that it uses huggingface_hub for downloading but doesn't use the HF cache - it uses it's own .torchtune folder to store models so you just end up having double of full models (grr). Just use the defaul HF cache location.”
RFC (Optional)
No response

Great job bringing these back as issues! Is this also a problem with torchtune given that we're using .torchtune for this? cc @kartikayk ?

Going to add that we can use hf_transfer to "potentially double the download speed"
https://huggingface.co/docs/hub/models-downloading
https://huggingface.co/docs/huggingface_hub/v0.25.1/package_reference/environment_variables#hfhubenablehftransfer
This is an option to use a rust-based downloader. HF claims it's production ready, but just has a slightly worse UX. The 80/20 of this is that a majority people should get much faster download speeds (super useful for LLMs), and those who run into errors could fallback to the Python implementation with a quick pip install


I am facing issue in redirecting to SSO authentication in datahub using keycloak

Hi Team,
I have deployed datahub into kubernetes cluster using helm charts and trying to use keycloak for datahub authentication, I have created realm and client in keycloak. But, it is giving error in redirecting to SSO please contact your administrator
and in the developer logs it is showing as "you are not authorized to access the page".
Client id, client secret and discovery URI details. please help us in recommend or suggest in fixing the issue.

i got this issue from v0.13.0+. It worked on on v0.11.0 and v0.12.1


Explicitly build for linux, so local builds do not fail

This allows make zedbox to work. If you run it in docker or on a Linux box, it always works, with or without this, so that isn't an issue. This just ensures consistency.
At some point, it would be good to get zedbox working on other OSes, so we can test things out without booting a VM. For now, this will do.
cc @rvs

I think we should commit it the way it is, but in general as I made a comment to @nordmark just now -- trying to keep native (non containerized) builds going here is not something that's super interesting to me at least.
The speed of a containerized build is pretty much the same (especially on Linux) and the amount of environment setup than needs to be documented/checked if we want to keep it going for real can't be justified by the perceived benefits.
Agreed?

Makes sense to check this doesn't disrupt his workflow

Yup. Any comments @kalyan-nidumolu ?

This makes some assumptions about the installed go. Would make sense to document those. I see this error

Yes, that definitely indicates go<1.11. It is explicit in the Makefile, but we probably should make it in the top-level BUILD.md. I will open a PR for that forthwith.

I think we should commit it the way it is, but in general as I made a comment to @nordmark just now -- trying to keep native (non containerized) builds going here is not something that's super interesting to me at least.

Indeed. It used to be to me, less so now. The buildkit stuff coming out now - with target-arch builds - almost removes the last piece. You should see some of the Makefile-fu I had to do to make that kind of thing work. :-)
However, as long as: a- it doesn't hurt (adding GOOS=linux doesn't hurt) and b- it makes things more explicit; I am in favour of it.
In this case, we implicitly assumed we were building for linux by running it inside a docker container (which was assumed to be Linux). I am much happier being explicit about it. Stating GOOS=linux may be unnecessary, but it doesn't hurt, and acts as a form of documentation (as @eriknordmark stated above about go version).

I stand corrected, @eriknordmark , it already is in the README.

I stand corrected, @eriknordmark , it already is in the README.

@deitch ch I don't see any explicit mention of 1.11 in the eve nor pkg/pillar READMEs nor docs/*

Here it is https://github.com/lf-edge/eve/blob/master/README.md

Sorry, this https://github.com/lf-edge/eve/blob/master/README.md#how-to-use


POST data not transferred to PHP

The request body is not being read by php-fpm, and so the PHP $_POST variable is always empty (other PHP global variables seem ok).
To observe, adjust the homepage example test to send some valid form data, eg:
    PayloadData =  <<"form_key=eoZJWUwdnkCqklGx&login%5Busername%5D=donkey&dummy=&login%5Bpassword%5D=kong">>,
    ByteSize = byte_size( PayloadData ),

...

    {"REQUEST_METHOD", "POST"},
    {"CONTENT_LENGTH", integer_to_list( ByteSize ),

...

    erl_fastcgi:run(FastCGIConnection, ARandomRequestId, [
        ....
        ], PayloadData ).

and then examine $_POST from php - it's always empty for me.
Any ideas?
Unbuntu 16.04 with repo standard php 7 & php-fpm, Erlang/OTP 20

Hi!
Can you try with the latest master? I fixed an issue with data padding.


updating to version 1.7.73 crashes and does not update.

Ripme version:1.7.72

Java version: no clue.

Operating system: macOS high sierra

Exact URL you were trying to rip when the problem occurred: no URL just trying to update from 1.7.72 to 1.7.73

Please include any additional information about how to reproduce the problem: have not been able to update version for the last couple updates. i end up having to redownload the .jar file and deleting the old one because it crashes and when i open the program again it has not updated.

Expected Behavior
update as normal
Detail the expected behavior here.
update to the new version
Actual Behavior
i hit yes to update and the program crashes and does not update.
i have to download the new .jar file from here to get new version and delete old .jar file

Can you run ripme from the terminal (with java -jar ripme.jar) and post the output generated whemn you try to update

i have not used ripme with terminal before but tried it and i got this Error: Unable to access jarfile ripme.jar .  i use the guide from https://github.com/ripmeapp/ripme/wiki/How-To-Run-RipMe

thank you cyian-1756, you have been so awesome. very quick with your replies and always so helpful. opening it in terminal updated it with no issue.

opening it in terminal updated it with no issue.

Weird. I have no idea why that worked but updating normally didn't.


[WFLY-14780] fix log message at container shutdown when EJB subsystem defines enable-graceful-txn-shutdown

https://issues.redhat.com/browse/WFLY-14780

@bstansberry @darranl do you think this could be merged?


misc: assert_post_action: Treat POSIX arch like others

(I missed #12732)

After #12732,<PHONE_NUMBER>3b9e97bb8974a22bb83637520f61c1
asserts call k_panic.
Before this, the POSIX arch had its own hack in the
__ASSERT_POST implementation to terminate the process instead
of spining forever.
But the POSIX arch does implement k_panic properly, so there
is no need anymore for this hack.
=> Remove the special treatment for POSIX ARCH
Signed-off-by: Alberto Escolar Piedras<EMAIL_ADDRESS>

@andrewboie : It feels a bit overkill to have that new file just for this assert_post_action() function instead of calling k_panic directly from assert.h.. Anyhow, here I just remove the, not anymore needed, POSIX code. But, I would not mind changing this PR to call directly k_panic() from __ASSERT_POST(). You decide

Codecov Report

Merging #13007 into master will increase coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master   #13007      +/-   ##
==========================================
+ Coverage   53.84%   53.84%   +<.01%
==========================================
  Files         238      238
  Lines       27023    27022       -1
  Branches     6578     6578
==========================================
  Hits        14551    14551
+ Misses       9780     9779       -1
  Partials     2692     2692

Impacted Files
Coverage Δ

lib/os/assert.c
0% <0%> (ø)
:arrow_up:

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 6904501...a5e37f8. Read the comment docs.


Shared Directories don't work for macOS 12 guests

Describe the issue
You can setup shared directories for macOS guests but they don't actually work for macOS 12.
Configuration

UTM Version: 4.1.0
macOS Version: 13.0
Mac Chip (Intel, M1, ...): M1

Upon checking Apple documentation, it seems shared directories only work if macOS 13 guests.

It'd be less confusing if we can hide the setting for shared directories for macOS < 13 guests.

Follow up question: I was able to share files with the guest macOS using File Sharing (SMB), but it's a relatively slow solution and you can see smbd using 100% of the CPU power:

Is there any better/faster solution to share files with the guest macOS?

Shared directories are not available for 13.x guests with 12.x hosts, either

Added clarifying note about macOS guest support. Also added the following documentation page clarifying how shares work: https://docs.getutm.app/guest-support/macos/


pbfusion error

Hi :
when  i run  pbfusion ,i got a  error ：
thread 'main' panicked at 'Error: cowardly refusing to overwrite binary output file.', src/bin/pbfusion.rs:84:9 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
software version
conda install pbfusion=v0.4.0
command ：
/pbfusion gff-cache --gtf GRCm39.gtf -b GRCm39.gtf.bin
How can I solve this problem。

If you've previously made your cached gtf, you'll need to delete it before re-making it


arabic doesn't working

language : swift 3.1
pod v 1.1.1
esseract-OCR-iOS 4.0.0
using ara.traineddata   file
error
actual_tessdata_num_entries_ <= TESSDATA_NUM_ENTRIES:Error:Assert failed:in file tessdatamanager.cpp, line 53

The current version of eng.traineddata linked above on GitHub will not work with the current version of the Tesseract-OCR-iOS.
The installation instructions posted on GitHub work perfectly if you've got the right .traineddata file.
I discovered this after dragging the eng.traineddata from Lyndsey Scott's brilliant Tesseract tutorial on Ray Wenderlich.
This repo contains the eng.traineddata file I needed to get Tesseract working. I'm not sure if that applies to all languages.

thank you it's working

Hi @ahmedAlmasri ,
I am working on ara.traineddata and it is not working for me. Can you tell me how you made it working please and also did you used cube data to make it working ?

Hey @scubess and @ahmedAlmasri
I'm getting the same error, I tried the following:
version [5.0.1] with ara.traineddata
and without cube data
version [5.0.1] with [ara.traineddata](https://github.com/tesseract-ocr/tessdata/tree/4.00)
and included cube data from there
version [4.0.0] with [ara.traineddata
and without cube data
version [4.0.0] with [ara.traineddata
and included cube data from there
I made sure to set engineMode: .cubeOnly
your help is much appreciated


Resource count and size are not displayed correctly

I created a project and a collection. Then I've uploaded a directory to the collection (via S3), which was created as a "dataset" with several "object" children. In the web UI, the project, collection and dataset always show "count 1" and "size 0 B". Only a single object shows an actual size.

Thanks for reporting. I have moved this to the Server repo because technically this is not a visual bug.
Re-calculation of sizes / counts is not implemented yet for higher level resources.
There were on-going discussions if it is feasible to update this ad-hoc, the current proposed solution will implement a cron that updates stats periodically (~every 5 minutes), so that they will eventually show the correct stats. Immediate updates would have a cascading effect for higher level resources that might drastically hurt performance especially if many objects get uploaded in parallel.

He Martin,
we have now implemented a solution that corresponds to the proposal already presented by @St4NNi.
The statistics of higher level resources are now updated at a fixed interval (currently 15 seconds) to avoid the possible cascading effect of on-demand updates. In addition, the ArunaServer instances synchronize with each other when the last update was started to avoid nonsensical concurrent attempts to start the update.
I'm closing this issue for now, but feel free to leave any kind of feedback here. We'd appreciate it.

On dev.aruna-storage.org I still see "count 1" and "size 0B" for everything but the objects.

Thanks for the feedback, with e68946e this issue should be finally resolved.


split a multi-page pdf file into multiple pdf files

Feature request

A description of the feature you would like to have
As the title implies, a feature to save a pdf file by page. Each page can be saved as a pdf file.

If relevant, the context that you are in. What are you trying to achieve?
generic feature, no specific context needed. It would be very valuable in cases, such as when users are only interested in certain pages. Or when file conversion is wanted but converting a pdf file with too many pages is not effective.

If possible, an example of what you want to achieve. Include the PDF that you are working on. Include the output that you would like to have.
For instance, split below pdf into pdfs per page.
AR19_MEDIA_Transcript_FINAL.pdf

FYI I use PyPDF2 for this.

PyPDF2 does not support new encryptions. I got here through pdfplumber which has implemented pdfminer. It would be great to get a simple example on how to open a pdf file and not save the text itself, but the unencrypted pdf file or even the single pages of the pdf file in separate files.

@BigAndini PyPDF2 recently added decryption support for new encryptions :-)

pdfminer.six is for extracting text from a PDF, you cannot use it to split a PDF.


Override poll_write_vectored?

At present, poll_write_vectored is not overridden:

https://docs.rs/tokio-rustls/latest/src/tokio_rustls/client.rs.html#134-244
https://docs.rs/tokio-rustls/latest/src/tokio_rustls/server.rs.html#94-129
https://docs.rs/tokio-rustls/latest/src/tokio_rustls/lib.rs.html#522-553
https://github.com/rustls/tokio-rustls/blob/6df177a7515d9fb2d3e8ba900ba833c5830b4136/src/common/mod.rs#L290-L324

I think it would make sense to do so though. At the moment, the implementation of poll_write will perform IO as soon as the buffer is written (which makes sense). However, if the application would have more data to send that sits in different buffers, performing IO after every poll_write might lead to multiple TCP packets being sent.
The only way around this (I think?) would be to re-design the upper layer to be able to provide a single byte buffer. That is not always feasible and/or desirable. Additionally, that is exactly what poll_write_vectored is for. A proper implementation of would send all packets down to the rustls session and only perform IO once that buffer is either full or we've written all buffers passed to us.
I've created a basic draft in https://github.com/rustls/tokio-rustls/pull/25.

I agree with impl write_vectored as the optimization over current situation.
Currently, rustls does not provide backpressure https://github.com/rustls/rustls/blob/v/0.21.8/rustls/src/conn.rs#L232 . If we want to impl buffer write without rustls support, we can treat rustls writer as an infinite buffer and set a reasonable buffer length ourselves.
But this is a huge behavior change. and if rustls hopes to provide a write-through API in future, it would be reasonable to keep current behavior. https://github.com/tokio-rs/tls/issues/136#issuecomment-1558899102
cc @djc

I don't think I am following you there. Isn't that orthogonal to vectored writes? For poll_write_vectored to make sense, I think we simply need to first write all buffers and then ask the session wants_write.
The docs for poll_write_vectored state that it needs to behave as if poll_write was called with a concatenated buffer. How is internal buffering in rustls related to that?

Yes, they are orthogonal. the buffer writer is just a related discussion of this line.

A proper implementation of would send all packets down to the rustls session and only perform IO once that buffer is either full or we've written all buffers passed to us.

The write-through API is currently being worked on. https://github.com/rustls/rustls/pull/1420

With https://github.com/rustls/rustls/pull/1640 this could make sense to have. I may find some time to look into it.


fix: make migration idempotent

What kind of change does this PR introduce?

the information_schema.check_constraints view doesn't show information about the primary key on the mfa_amr_claims table so we should use the information_schema.table_constraints view instead

@hf don't think so, i just tried with a project using the supabase_auth_admin role and i'm able to read the information_schema fine


Support for pg 7.4.X version

After investing plenty of time on trying to make XRay tracing work for our Postgress client we realised that, it might be a version compatibility issue between aws-sdk and pg library.
We are using
"aws-xray-sdk": "1.2.0",
"pg": "7.4.1",

and the below code snippet to enable tracing for our PG Client
const AWSXRay = require('aws-xray-sdk');
const pg = AWSXRay.capturePostgres(require('pg'));
client = new pg.Client(config);
AWSXRay.capturePromise();

But we get error with our client instance when invoked on AWS saying,
{ TypeError: query.on is not a function
at Client.captureQuery [as query] (/var/task/node_modules/@gdw/postgres-client/node_modules/aws-xray-sdk-postgres/lib/postgres_p.js:67:13)
at PostgresClient.findBy (/var/task/node_modules/@gdw/postgres-client/lib/PostgresClient.js:130:28)
at CustomerRepository.findActiveCustomers (/var/task/lib/CustomerRepository.js:68:35)
at CustomerService.findCustomerAccounts (/var/task/lib/CustomerService.js:109:40)
at /var/task/lib/Customers.js:76:38
at /var/task/node_modules/@gdw/postgres-client/lib/PostgresClient.js:176:20
at /var/task/node_modules/@gdw/postgres-client/node_modules/continuation-local-storage/context.js:84:17
...

Can you please confirm is there is an version compatibility limitation between pg and aws-sdk?

Hi,
This might be similar to #19. Are you invoking the pg client by using await client.query() or other syntax?

Are there any plans on adding support for newer versions of postgres?

Hi @daniel-cottone @hannesj , support for pg 7.x is in our backlog. We will fix the peerDeps for now and update this issue once we make progress on the new pg major version support. Thank you for your patience. A PR is always welcome.

+1 for this.
We are facing the same issue.
Thanks

I created #64 to address this.

This is released as part of v2.1.0 thanks for #64 from @jafl

Reopening. #64 added support for using pg with the promise-based API, but not the callback-style API.
So the following will work:
client.connect()
        .then(() => {
            return client.query('select * from foo');
        })
        .then((data) => {
            console.log(data);
            return client.end();
        });

but this will still cause an error (when using xray):
client.connect(function(err) {
        if (err) {
            throw err;
        }
        client.query('select * from foo', function(err, results) {
            if (err) {
                console.error(err);
            } else {
                console.log(results);
            }
            client.end();
        });
    });

I found the issue:  client.query return null when not using promises.  I submitted #77
This is tested with pg 7.7.1


Support color profile sensitive GIF hashing, and don't convert gifs to jpegs when compressing

See here for discussion: https://github.com/phseiff/github-flavored-markdown-to-html/pull/53#issuecomment-889340214
I quote:

I think it would also be good to add the GIF's color profile to the hash, since a two-colored red-and-yellow image and a two-colored black-and-white image with the same motive might otherwise result in the same hash. But I can do that after I merged the pull request, so no need to add this to your PR if you don't want to. :)
I should also probably disable the optional image compression for GIFs since I can't foresee what it will do for animated ones, and since converting GIF to JPEG is probably actually worse for compression.

This is fixed alongside #52 now; as stated in https://github.com/phseiff/github-flavored-markdown-to-html/pull/53#issuecomment-890421052:

I released a new version v1.17.6 (to which you can update e.g. via pip3 install --upgrade gh-md-to-html>=1.17.6).
The new version

supports hashing of GIFs by converting them from paletted color mode to RGBA before creating the hash (therefore properly distinguishing between GIFs that differ in their color palette whilst displaying the same shapes and forms, and properly recognizing two identical GIFs with a differently indexed color palette as identical),
supports hashing animated GIFs (framerate-sensitive), and supports saving animated GIFs correctly,
doesn't try to compress GIFs if image compression is enabled anymore.


Error an illegal memory access was encountered at line 90 in file /src/csrc/ops.cu

Please check that this issue hasn't been reported before.

[X] I searched previous Bug Reports didn't find any similar reports.

Expected Behavior
Normal inference
Current behaviour
When trying to infer, an error message happens, Error an illegal memory access was encountered at line 90 in file /src/csrc/ops.cu
Steps to reproduce

Build image based on winglian/axolotl-cloud:main-latest
Run accelerate launch -m axolotl.cli.train config.yml
Run inference with python -m axolotl.cli.inference config.yml  --lora_model_dir="./out"

Config yaml
base_model: google/gemma-2b
model_type: AutoModelForCausalLM
tokenizer_type: AutoTokenizer

load_in_8bit: false
load_in_4bit: true
strict: false

datasets:
  - path: duarteocarmo/lusiadas
    type: alpaca
hub_model_id: duarteocarmo/lusiaidas
val_set_size: 0.1
output_dir: ./out

adapter: qlora
lora_r: 32
lora_alpha: 16
lora_dropout: 0.05
lora_target_linear: true

sequence_len: 4096
sample_packing: true
eval_sample_packing: false
pad_to_sequence_len: true

wandb_project: lusiaidas
wandb_entity:
wandb_watch:
wandb_name:
wandb_log_model: checkpoint

gradient_accumulation_steps: 3
micro_batch_size: 2
num_epochs: 4
optimizer: adamw_bnb_8bit
lr_scheduler: cosine
learning_rate: 0.0002

train_on_inputs: false
group_by_length: false
bf16: auto
fp16:
tf32: false

gradient_checkpointing: true
early_stopping_patience:
resume_from_checkpoint:
local_rank:
logging_steps: 1
xformers_attention:
flash_attention: true

warmup_ratio: 0.1
evals_per_epoch: 4
eval_table_size:
eval_max_new_tokens: 128
saves_per_epoch: 1
debug:
deepspeed:
weight_decay: 0.0
fsdp:
fsdp_config:
special_tokens:

Possible solution
Training goes well, no problem. model gets uploaded to HF.
However, trying to inference after:
root@C.10334496:/workspace/axolotl$ python -m axolotl.cli.inference config.yml  --lora_model_dir="./out"
[2024-03-30 19:28:43,374] [INFO] [datasets.<module>:58] [PID:1558] PyTorch version 2.1.2+cu118 available.
[2024-03-30 19:28:44,562] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to cuda (auto detect)
                                 dP            dP   dP
                                 88            88   88
      .d8888b. dP.  .dP .d8888b. 88 .d8888b. d8888P 88
      88'  `88  `8bd8'  88'  `88 88 88'  `88   88   88
      88.  .88  .d88b.  88.  .88 88 88.  .88   88   88
      `88888P8 dP'  `dP `88888P' dP `88888P'   dP   dP

[2024-03-30 19:28:45,776] [DEBUG] [axolotl.normalize_config:79] [PID:1558] [RANK:0] bf16 support detected, enabling for this configuration.
[2024-03-30 19:28:46,092] [INFO] [axolotl.normalize_config:182] [PID:1558] [RANK:0] GPU memory usage baseline: 0.000GB (+0.456GB misc)
[2024-03-30 19:28:46,093] [INFO] [axolotl.common.cli.load_model_and_tokenizer:50] [PID:1558] [RANK:0] loading tokenizer... google/gemma-2b
[2024-03-30 19:28:47,332] [DEBUG] [axolotl.load_tokenizer:250] [PID:1558] [RANK:0] EOS: 1 / <eos>
[2024-03-30 19:28:47,332] [DEBUG] [axolotl.load_tokenizer:251] [PID:1558] [RANK:0] BOS: 2 / <bos>
[2024-03-30 19:28:47,332] [DEBUG] [axolotl.load_tokenizer:252] [PID:1558] [RANK:0] PAD: 0 / <pad>
[2024-03-30 19:28:47,332] [DEBUG] [axolotl.load_tokenizer:253] [PID:1558] [RANK:0] UNK: 3 / <unk>
[2024-03-30 19:28:47,332] [INFO] [axolotl.load_tokenizer:264] [PID:1558] [RANK:0] No Chat template selected. Consider adding a chat template for easier inference.
[2024-03-30 19:28:47,332] [INFO] [axolotl.common.cli.load_model_and_tokenizer:52] [PID:1558] [RANK:0] loading model and (optionally) peft_config...
Gemma's activation function should be approximate GeLU and not exact GeLU.
Changing the activation function to `gelu_pytorch_tanh`.if you want to use the legacy `gelu`, edit the `model.config` to set `hidden_activation=gelu`   instead of `hidden_act`. See https://github.com/huggingface/transformers/pull/29402 for more details.
[2024-03-30 19:28:50,461] [INFO] [accelerate.utils.modeling.get_balanced_memory:965] [PID:1558] We will use 90% of the memory on device 0 for storing the model, and 10% for the buffer to avoid OOM. You can set `max_memory` in to a higher value to use more memory (at your own risk).
Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:01<00:00,  1.07it/s]
[2024-03-30 19:28:53,072] [INFO] [axolotl.load_model:651] [PID:1558] [RANK:0] GPU memory usage after model load: 1.929GB (+0.005GB cache, +1.446GB misc)
[2024-03-30 19:28:53,080] [INFO] [axolotl.load_model:697] [PID:1558] [RANK:0] converting PEFT model w/ prepare_model_for_kbit_training
[2024-03-30 19:28:53,082] [INFO] [axolotl.load_model:706] [PID:1558] [RANK:0] converting modules to torch.bfloat16 for flash attention
[2024-03-30 19:28:53,084] [INFO] [axolotl.load_lora:850] [PID:1558] [RANK:0] found linear modules: ['gate_proj', 'v_proj', 'q_proj', 'down_proj', 'k_proj', 'up_proj', 'o_proj']
[2024-03-30 19:28:53,084] [DEBUG] [axolotl.load_lora:887] [PID:1558] [RANK:0] Loading pretrained PEFT - LoRA
trainable params: 39,223,296 || all params: 2,545,395,712 || trainable%: 1.540950816216351
[2024-03-30 19:28:54,700] [INFO] [axolotl.load_model:751] [PID:1558] [RANK:0] GPU memory usage after adapters: 2.075GB (+1.894GB cache, +1.446GB misc)
================================================================================
Give me an instruction (Ctrl + D to submit):
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Escreve uma estrofe ao estilo de Os Lusíadas

### Response:========================================
<bos>Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Escreve uma estrofe ao estilo de Os Lusíadas

### Error an illegal memory access was encountered at line 90 in file /src/csrc/ops.cu

Which Operating Systems are you using?

[X] Linux
[ ] macOS
[ ] Windows

Python Version
3.10.14
axolotl branch-commit
winglian/axolotl-cloud:main-latest
Acknowledgements

[X] My issue title is concise, descriptive, and in title casing.
[X] I have searched the existing issues to make sure this bug has not been reported yet.
[X] I am using the latest version of axolotl.
[X] I have provided enough information for the maintainers to reproduce and diagnose the issue.

I can confirm that this is the problem with docker latest image https://hub.docker.com/layers/winglian/axolotl-runpod/main-latest/images/sha256-e476401ab682bd0e3b5d1858679e6a986185ef4cba69ad0242d4ab953607e8da?context=explore


What type of update are you requesting?
A new version of an existing package
Current Package Identifier
XnSoft.XnViewMP
Package Version
1.5.5
Please describe the changes you would like to see
XnViewMP 1.5.5 is now available.
Download link: https://download.xnview.com/XnViewMP-win-x64.exe

Resolved by #119562