Compose file mapping not working with files without extension

Describe the bug
In a docker-compose.yml file.
This is working fine:
volumes:
- ./Caddyfile.txt:/etc/caddy/Caddyfile.txt
But this does not:
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
Caddyfile is really a text file but without extension.
When we try to start the service we get the following error:
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/Users/thierryleveque/Documents/dev/gf/Gf-Client-Frontend/docker/Caddyfile" to rootfs at "/etc/caddy/Caddyfile": mount /Users/thierryleveque/Documents/dev/gf/Gf-Client-Frontend/docker/Caddyfile:/etc/caddy/Caddyfile (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
When using the same docker-compose file on a real Docker installation, it works without an issue.
To Reproduce
Just follow the instructions on this Caddy page:
https://caddyserver.com/docs/running#docker-compose
Expected behavior
It should behave the same way as with a real Docker installation. The file without extension must be able to map.
Diagnostic report (REQUIRED)
OrbStack info:
Version: 1.6.2
Commit: 19bce6bc5e4b2d57ea2b7211538f50ae6f617c56 (v1.6.2)
System info:
macOS: 14.5 (23F79)
CPU: arm64, 8 cores
CPU model: Apple M1 Pro
Model: MacBookPro18,3
Memory: 32 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-06-14T15-07-32.001986Z.zip

Screenshots and additional context (optional)
No response

I can't reproduce this. Can you test on v1.6.3?

I'm hitting the same and I've tried everything.

@Schachte Can you share a way to reproduce this?


added a couple MOTD abbreviations, reverted midol

added motd in both forms. reverted midol as it's more commonly pronounced this way.

Thanks. Just merged it.


Create futminna.txt

futminna

@efikas I am sorry, I have to close this request without merging, because you requested to add a non-existent domain to this repository:
$ host futminna.edu
Host futminna.edu not found: 3(NXDOMAIN)

If your universtity students' email addresses end with @futminna.edu.ng, your university's email domain is futminna.edu.ng, and the file name which you wish to add to this repository shall be lib/domains/ng/edu/futminna.txt.
Please ensure you are familiar with this repository rules located at the bottom of this page and submit a new request with correct information. Thank you for the understanding!


Updating security contact email address

Aligning with various other redis projects, by updating the designated security contact.

@chayim this seems to be failing on API keys from Openai.. not sure why?

Looks like authentication failure. I don't have repo perms to see what secrets are defined.  I see a secrets.OPENAI_KEY in GH actions - and in the codebase.. what happens when you run locally? Clearly these aren't related (and IMHO merge away)
ERROR tests/integration/test_vectorizers.py::test_vectorizer_embed_many[OpenAITextVectorizer] - ValueError: Error authenticating with the OpenAI API: You didn't provide an API key. You need to provide your API key in an Authorization header using *** (i.e. Authorization: *** or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from


fix Revome "UNIQUE KEY (k1)" case for test_dynamic_partition_mod_distribution_key (#41002)

Proposed changes
pick: #41002

Remove "UNIQUE KEY (k1)" case, because for unique table hash column must be key column, but for that historical bugs, this case will fail if adding k2 unique key.
Seperate a p0 suite from docker suite because docker suite will not be triggered in community doris p0 CI.

run buildall


Refactored hasher, cacher to make things testable.

Coverage increased (+42.01%) when pulling 3aebf24becb11e6349a1be8534836f4a2ad7c635 on add-more-tests into 1c6b55a437b9fc15d1ffe927d5770268f88e03ae on master.

Coverage increased (+42.01%) when pulling b2d29463902b73a7688351d52d6095e2ca7a3f0a on add-more-tests into 1c6b55a437b9fc15d1ffe927d5770268f88e03ae on master.


Add experimental field to ServerCapabilities and format

I really thought this was in there already.

Releasing as 0.68


Jeff Schaller: Watch fnetrade.com

Jeff Schaller requests the watch of the watch_keyword fnetrade\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

fnetrade\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Eliah Kagan in Charcoal HQ


Where are the attention vectors built?

I'm trying to modify this project's code in order to simplify how its attention mechanism works. I don't want to get rid of the attention mechanism (which would be easy by just setting --attention=""). What I want is to find where the attention vectors are produced in order to modify them before they are used by the network to produce an output.
I'm able to get the attention matrix from _create_attention_images_summary in attention_model.py but (correct me if I'm wrong) I believe this is "the final result", and has already been used to produce an output, which means I can't modify it and have the network use my modified attention vectors.
I am using a unidirectional setup and scaled_luong attention (I could use a different attention if it makes modifying the attention vectors easier).
In which file/function should I take a look at in order to be able to modify the attention vectors before they are used by the decoder?
Thank you :)

I think you are looking for the function _compute_attention contained in the contrib/seq2seq/attention_wrapper.py file. It calls the attention mechanism function that computes the alignments for each "word". In your case, as you are using scaled_luong attention, it will call the __call__ method of the LuongAttention class, which will call the _luong_score function in order to compute the alignments.
To summarise, if you want to modify the alignment vectors, you should take a look at the contrib/seq2seq/attention_wrapper.py file, more specifically at the end of the file, where the _compute_alignments function is called. You can check the position of the current word in the state.time variable.
If I were you, I would create a new custom AttentionMechanism which I would leave almost empty, and I would place your new method for computing the alignments in the __call__ method of this new class.


OS overrides Application Selection

Hello,
Within latest v1.1.0 release, Applications is now available however OS Default overrides App selection.  App menu has a 'none' option to allow for default OS, however OS does not have a 'none' option to allow for default App.
At least this is the only conclusion I can see that would not allow App to install, as changing default OS corresponds with install.

Same for Location, it was overwritten with some numbering value.

And Backup allowed, was overwritten with backup not allowed.
If you bring upgrades, please make sure that existing customers will not be affected. Upgrades must work all the time without any issues. Without this sure, we can not use it in production.

@lonesync As per README: "If an application is selected then the operating system is ignored." but to minimize confusion the v1.1.2 will have "(None)" also for operating systems.

@UH-Nerion Yes, this is a BC break but was done intentionally as application support is a significant new feature. So, in this case, we decided to reorder module configuration fields by importance.


fix: pipelines

:tada: This PR is included in version 0.2.0-alpha.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add downloadFile function

WHY are these changes introduced?
Sometimes we need to download a file and store it in a specific place. So it's good to have a common way of doing it
WHAT is this pull request doing?

Add a new downloadFile function to the http module.
Initially this will be used from plugins
Expose some new fs functions

How to test your changes?

No way of testing yet

Measuring impact
How do we know this change was effective? Please choose one:

[ ] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
[ ] Existing analytics will cater for this addition
[ ] PR includes analytics changes to measure impact

Checklist

[ ] I've considered possible cross-platform impacts (Mac, Linux, Windows)
[ ] I've considered possible documentation changes
[ ] I've made sure that any changes to dev or deploy have been reflected in the internal flowchart.

Well, without the redirection logic it gets simpler, but we could add some tests anyway for the download function: check that it creates the folder, the file with the right content (mocking the nodeFetch response), that it raises an error when it fails... I wouldn't test anything about the other functions as they are just wrappers.

Simplified and added a test @gonzaloriestra
You were right that i could create a test that tests everything except the actual download 👌


Sentry source map not match stack trace

Hi!. I encountered a problem about source map not match stack trace on my self-hosted sentry instance.  I searched for many related issues, but still found nothing. when i use ip, anything is ok, but when i change config.yml system.url_prefix  to domain(www.example.com) ,then error was happened.
Can someone help? I struggled this for a few days.  Here is some information about my project.
"@sentry/electron": "^4.17.0", "@sentry/webpack-plugin": "^2.10.2"

I also test my .map files, it's no problem.

Can you try upgrading your self hosted instance and checking the logs of your self hosted instance? Make sure the symbolicator service is running!

Thanks u'r reply!
this is my symbollicator service logs


nixos/geoipupdate: Replace the old geoip-updater module

Motivation for this change
Our old bespoke GeoIP updater doesn't seem to be working anymore. Instead of trying to fix it, let's replace it with the official updater from MaxMind.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I'll merge this now - it feels rather uncontroversial and we're far from next stable, so there's plenty of time to address potential issues.


I lost my project

Today's I struggled a bit with my Enso package, as I got many "context lost". This includes multiple app restarts, with various sets of flags and refreshing the page with ctrl+shift+R shortcut.
At some point I realized I lost one of my project called "Daily_Bookclub_06_07". It wasn't on my project list anymore. I checked the enso/project directory, and where was a directory "Daily_Bookclub_06_07", but the package.yaml declared a "New_Project_10" instead and src/Main.enso was same as in newly created project. I tried to restore using VCS, but VCS also didn't have my old project in its history.
I don't know how to reproduce that, but losing a project entirely is very serious, so I put today's logs in hope someone from the engine will find the cause. Unfortunately, not all runs were with "verbose" flag, because - as I mentioned - I tried different flag configurations.
logs.zip

I spent a bit of time on those logs. Other than an unrelated problem refactored into a separate ticket I haven't noticed anything that  would cause the behaviour described. Since the config file seemed out-of-sync with the directory, I suppose that at some point a rename was attempted but nothing in the logs confirms that.
I agree that from the sounds of it, the ticket sounds worrying, but I'm also not really able to reproduce or extract anything useful from the number of logs provided. So to me this sounds like a won't fix.

I think we can't do much here, in case this appears again – let's reopen this issue.


[rtext] Valgrind complains about memory errors

[x] I tested it on latest raylib version from master branch
[x] I checked there is no similar issue already reported
[x] My code has no errors or misuse of raylib

Issue description
I'm using Raylib in my own game engine, and I want the latter to be as bug free as possible. After once again refactoring of my code, I'd ran Valgrind to check for memory errors. In the screenshot below, one can clearly see that it complains about memory loss in GenImageFontAtlas and LoadFontData. malloc is called somewhere and causes this.
Environment
Gentoo Linux 5.10.52-gentoo x86_64, OpenGL 3.3 (I think?), Radeon Vega 11 with AMDGPU drivers.
Issue Screenshot

Code Example
Font* CreateFont(unsigned char* fontSource, unsigned int sourceSize, int baseSize, int charsCount, FontCreationMethod method)
{
    Font* font = (Font*)malloc(sizeof(Font));
    AllocError(font, "Failed to allocate pointer!");

    *font = (Font){0};
    font->baseSize   = baseSize;
    charsCount = (charsCount > 0) ? charsCount : 95;
    font->glyphCount = charsCount;
    unsigned char* font_data;
    switch (method)
    {
    case FONT_CREATION_METHOD_TTF:
        font->glyphPadding = 0; // FONT_TTF_DEFAULT_CHARS_PADDING
        font_data = LoadFileData((char*)fontSource, &sourceSize);
        break;
    case FONT_CREATION_METHOD_IMAGE:

        break;
    case FONT_CREATION_METHOD_RAW:
        font_data = fontSource;
        font->glyphPadding = 4;
        break;
    default:
        break;
    }
    font->glyphs = LoadFontData(font_data, sourceSize, font->baseSize, 0, font->glyphCount, FONT_DEFAULT);
    if (method != FONT_CREATION_METHOD_RAW)
        free(font_data);
    Image atlas = GenImageFontAtlas(font->glyphs, &(font->recs), font->glyphCount, font->baseSize, font->glyphPadding, 0);
    font->texture = LoadTextureFromImage(atlas);

    // Update chars[i].image to use alpha, required to be used on ImageDrawText()
    for (int i = 0; i < font->glyphCount; i++)
    {
        UnloadImage(font->glyphs[i].image);
        font->glyphs[i].image = ImageFromImage(atlas, font->recs[i]);
    }

    UnloadImage(atlas);

    //if (type == FONT_SDF)
    SetTextureFilter(font->texture, TEXTURE_FILTER_BILINEAR);
    AddFreeable(font);
    return font;
}

I did a quick check of LoadFontData() and GenImageFontAtlas() and the malloc() calls look correct to me:
// LoadFontData() malloc calls (2):
fontChars = (int *)RL_MALLOC(glyphCount*sizeof(int));
chars = (GlyphInfo *)RL_MALLOC(glyphCount*sizeof(GlyphInfo));

// GenImageFontAtlas() malloc calls (5):
Rectangle *recs = (Rectangle *)RL_MALLOC(glyphCount*sizeof(Rectangle));
stbrp_context *context = (stbrp_context *)RL_MALLOC(sizeof(*context));
stbrp_node *nodes = (stbrp_node *)RL_MALLOC(glyphCount*sizeof(*nodes));
stbrp_rect *rects = (stbrp_rect *)RL_MALLOC(glyphCount*sizeof(stbrp_rect));
unsigned char *dataGrayAlpha = (unsigned char *)RL_MALLOC(atlas.width*atlas.height*sizeof(unsigned char)*2);

It could be a false-positive but someone with more experience than me should review it, I could be missing some point...
GlyphInfo is a complex struct and there could be some memory alignment concern, it should be tested on a 32bit OS to verify if that could be the issue.

@raysan5
Somebody in Raylib Discord channel suspected that these mallocs could be forgotten to be freed.

@Teashrock I double checked the functions and all required free() are called, are you calling UnloadFont() in your code?

@raysan5
No, but I've written my own freeing system, which frees everything marked when the program closes.

UPDATE: The same screenshot, but with numbers of the problem lines in Raylib.

@Teashrock You must call it when the font is not required any more, usually at the end of the program execution. Keep it mind that you must use UnloadFont() to match the same allocator used to load it (the one internally used by raylib). Using your own free() call over the data could be using a different library allocator. Actually, MemFree() is provided for those cases.

it would be of great help to provide a simple example replicating any issue, you're using your own memory freeing system which could well be the issue, valgrind can and does have false positives, especially with GPU drivers (libGL) and X11 for example...

@chriscamacho

@Teashrock Actually, checking the problematic lines specifically, in both cases refer to data allocated internally by raylib that is returned and should be freed by the user. That could be related to the allocators used: internal malloc() vs external free()

@raysan5
If this is really the case, then I should rewrite my memory handling system. This issue is frozen until further info, then.

@Teashrock I would recommend trying a quick test using MemFree() or RL_FREE() directly in your code to unload the Font data returned by LoadFontData() and GenImageFontAtlas().

screenshots are of limited use, can you please provide a simple self contained source that demonstrates the issue. thanks.

your freeable will not free allocated items inside structs, you should really have some kind of type field and based on that call the raylib unload function before releasing the memory that the whole structure uses.

@Teashrock I'm closing this issue as it seems user-related, I can't find any issue on raylib sources in the mentioned code points.
As a side note, UnloadFontData() is provided by raylib to make sure data loaded by its allocators is unloaded by the same allocators. In the case of data allocated with GenImageFontAtlas() it should be de-allocated using UnloadImage().


Swift Package Manager not supported

The installation with the Swift Package Manager in Xcode 11.3.1 fails with the error "The package dependency graph can not be resolved; unable find any available tag for the following requirements: ..."

@taeger
this issue should be fixed in v.5.0.0.
Please let me know if you have further issues.


[QUESTION] Can I access the dependant name in a dependancy?

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
import uvicorn
from fastapi import FastAPI, Request, Depends

def func(request: Request):
    # do something that depends on the endpoint that was accessed
    routes = request.app.routes
    path = request.url.path

app = FastAPI(dependencies=[Depends(func)])

@app.get("/")
async def root():
    return {"message": "this is the root"}

@app.get("/someroute")
async def someroute():
    return {"message": "this is some route"}

if __name__ == "__main__":
    uvicorn.run("main:app", host="<IP_ADDRESS>", port=8080, reload=True)

Description
I would like to make my dependency func behave differently depending on the endpoint that is being accessed. I can figure out which endpoint was called (i.e. the name of the callback function) by matching the path to one of the routes manually. However, since FastAPI has already done the matching, I would prefer to access that matched endpoint from within the dependency, instead of doing the matching again.
The dependency is called from solve_dependencies in fastapi/dependencies/utils.py, which contains an object dependant, which contains the name of the callback function. Is this accessible from the dependency, for example in a similar way like the request object is accessible? I tried to just do def func(request: Request, dependant: Dependant) but that doesn't work.
Some context: I am writing a dependency to implement RBAC security, which should grant a user access if that user's roles match an externally stored list of required roles. These roles depend on the endpoint. Since I don't want to write a new dependency for each endpoint, the dependency needs to know which endpoint is being called, so it can look up the roles from the list. Manually matching seems a little sketchy and inefficient, since it depends on the order of the routes (if there is more than 1 match) and since FastAPI technically already knows which callback function it will execute after the dependency.
Operating System
Linux
Operating System Details
No response
FastAPI Version
0.72.0
Python Version
3.9.5
Additional Context
No response

Have you thought about doing this in a middleware and not a dependency?

@robteeuwen You could use a router for each endpoint, this way this dependency injection will behave exactly like you want. Take a look at: https://fastapi.tiangolo.com/tutorial/bigger-applications/

Thanks for your comments. I'm not sure how either of these suggestions would solve my problem though.
@jgould22, I don't use middleware because the dependency has a subdependency that validates an access token and returns the user's roles. I don't think I can do that in middleware because it can't interact with dependencies. But regardless of that, how would I access the matched endpoint from middleware?
@lucastosetto, I'm not sure what you mean. My application already uses routers, but I think they face the same problem. Or is there a way to access the matched endpoint from a dependency on a router that doesn't exist in dependencies on an entire app object?

I noticed that the __call__ method of the Router object (in starlette/routing.py) handles the matching, and stores the callback function of the matched endpoint in the ASGI connection scope (scope), which is attached to the request object that the dependency also has access to. So accessing the name of the callback function that will be executed is as simple as request.scope['endpoint'].__name__. Hope it helps someone.


How to know execution time when all relevant test cases are executed for project

I want to know the execution time required when all relevant test cases of a project version are executed on buggy or fixed version of it.
Will it make a difference if execution is done on buggy and fixed version.
How to note the execution time of all relevant test cases and a reduced test suite given by user.
Please any one suggest as early as possible

If you already know how to run the tests on the buggy or fixed version, you can use the Unix time command.

i have used test command to execute relevant test cases by using command
defects4j test -w /home/hp/checkout/Time/Time_1 -r
It executed. But i wanted to know that while execution test covered only modified class or whole code. Because it hardly took a minute to run 4000 test cases.
Because when i give command like
defects4j test -w /home/hp/checkout/Time/Time_1 -r -i /home/hp/checkout/Time/Time_1/inst_class
it gives error.

hi,nehagupta12 . i think your questions are of my need also. i would like to know whether you succeeded in running individual test cases. if yes, then please let me know how? Thanks. Besides, can u please help me with ur Email Id. i would like to learn from you. i am new to defects4j.

@nehagupta12, if your goal is to run only the tests relevant to the bug, then the notion of classes to instrument does not apply. The set of classes loaded is determined by the set of tests.
What does make a difference is whether you are running all tests or only the relevant tests -- that is, running defects4j test vs. defects4j test -r. For most bugs in Defects4J, however, the entire test suite still finishes fairly quickly.

@mudasirhw, you can run an individual test case with defects4j test -t <class name>::<method name> .


#4 Turn blender-fake-addon project into blender-addon-tester importable Python package

I have no clue yet how to fix the too many blender founds error within Travis. On the other side, the Github actions do work: see here: https://github.com/douglaskastle/blender-fake-addon/actions

Hey man, great work so far. I am off all work at the moment so I can't look into this too much.
However, here is a case of lazy reporting on my part, there is either one correct blender found, or a fail, with the error message being deceptive.
There is no blender returned, and the empty list is the list of all the blenders found, which is zero.
I am hoping to get some time over the next few days to look at this, I don't want you go way off on my, very loose, vision of how this this should work, or at least throw in my 2c.

Github actions (coverage.xml artifacts & blender releases cache) & travisCI builds do work OK!!

Seems mergeable to me, or maybe is some more documentation needed...


*: fix TestTransportErrorc

Fix #5210

so, slow CI? lgtm

@heyitsanthony Yes. Slow CI. The previous wait is 10ms, which is apparently too short.


[Feature]: Support snowflake_user TYPE property

Use Cases or Problem Statement
The existing snowflake_user resource does not have the TYPE property. This is a big limitation for us, since it prevents us from creating SERVICE users, which is a great security feature.
We are currently getting a number of Critical security warnings in Trust Center because of this issue.
Category
category:resource
Object type(s)
resource:user
Proposal
Add a type property that accepts PERSON | SERVICE | LEGACY_SERVICE | NULL
How much impact is this issue causing?
Medium
Additional Information
Commented on a related PR here:
https://github.com/Snowflake-Labs/terraform-provider-snowflake/pull/2947#issuecomment-2239850099
Would you like to implement a fix?

[ ] Yeah, I'll take it 😎

Hey, we will handle this as a part of user redesign (that is currently happening).
Most probably, we will split the resource into three different ones (snowflake_user for people; snowflake_service_user and snowflake_legacy_service_user for the two others).
Redesigned snowflake_user may be ready for the next release but snowflake_service_user and snowflake_legacy_service_user will most probably have to wait a version.

@sfc-gh-asawicki Hi Artur, any update on this?

Hey @mogren  👋
What exactly would you like to know? If you're asking about the user rework, it was released as part of v0.95.0. The rest of the user resources (service and legacy_service) have to still wait a little (after today's release, a version or two). Artur is on vacation right now, but I'm guessing that will be one of his priorities after he comes back next week.

Hi,
Following the Snowflake security update email we received yesterday we now have a deadline to update users to 'service users' by 30th September.
Is there any chance this is available in the TF by then?
Thanks

Hey 👋
As far as I know, starting in October, the only thing that will be enforced is multi-factor authentication (MFA), not service users. Nevertheless, the timeline of missing user types will be discussed on Monday. I'll let you know the outcome of those discussions.

Thanks @sfc-gh-jcieslak, yes, I was mainly wonderinga bout the service and legacy_service users. I'll continue to keep an eye on this ticket.

As @sfc-gh-asawicki mentioned above, additional user types will be separate resources. snowflake_user represents the regular (PERSON) user type. Additional resources that will give you ability to manage other user types will be added in next versions of the provider (right now only PERSON is available). The user_type field in the snowflake_user resource is a computed value, meaning it is only settable by the provider (it gets its value from Snowflake). Currently, this field will apply ForceNew logic (drop and create) whenever user_type is equal to anything else than PERSON. If you changed the user type to SERVICE or LEGACY_SERVICE and want to manage this user with snowflake_user, it may work, but we don't guarantee it will because different types of users may act differently in some cases. Setting lifecycle {{ ignore_changes = [user_type] }} is only a workaround to manage "non-person" users with snowflake_user.

Hey all.
I will focus on service and legacy service users this week, so they should be ready for next week's release.

hi @sfc-gh-asawicki
Any news regarding this issue?
Thanks! 😃

Hey @csp33, I was on sick leave, just got back to work, and this is my current priority. I expect to have it early next week.

Hey, we have just released v0.97.0 version of the provider (release notes, migration guide) containing the new user types in new separate resources snowflake_service_user and snowflake_legacy_service_user.

Thanks, I tested and 0.97.0 new users suffers of this bug as well:
https://github.com/Snowflake-Labs/terraform-provider-snowflake/issues/3125

I think the new snowflake_service_user resource is not setting the user type.
For example here's my code:
resource "snowflake_service_user" "nidal_testing_service_user" {
provider = snowflake.useradmin
name = "nidal_testing_service_user"
}
And here's the resulting created user:

Shouldn't the user have type="SERVICE"? Sorry if I am missing something obvious here.

Hey @nidal123.

What role do you use to run the SHOW command you have pasted? According to the Snowflake docs you need to have OWNERSHIP on the given user or the MANAGE GRANTS privilege on the account. Without them, it's possible you don't see the type.
Please run your config with TF_LOG=DEBUG environment variable; you should see a statement similar to CREATE USER "nidal_testing_service_user" TYPE = SERVICE (this is the output I get running a similar config now) which should confirm that the service user with proper type is being created.

Closing as completed. Please create a new issue if you encounter problems with the new user resources.


Rollback RocksDB to 7.6.0

Signed-off-by: Fabio Di Fabio<EMAIL_ADDRESS>

PR description
Fixed Issue(s)

Documentation

[ ] I thought about documentation and added the doc-change-required label to this PR if
updates are required.

Changelog

[ ] I thought about the changelog and included a changelog update if required.

Not needed the issues was another


Enable "!include($fileName)" parsing in before and after sections

This plugin is very useful.
I noticed the !include($fileName) replacement with json content is not enabled in the before and after sections of the artillery yaml. (In any flow section)
Is it possible to enable it?
Regards,

Noticed the same behaviour, the JSON content is not included if you use this plugin in a before or after section. Works fine in a scenario.

Sorry, not possible due to plugins lifecycles


Posix ac_thread we need to mark an ac_thread empty when it exits

One solution would be to add a trampoline routine which is returned to by the entry method. This would allow us to gain control and clean up. Another option would be to allow a ac_thread_exit() routine.

Fixed with https://github.com/winksaville/sadie/commit/f50840589c8f1128f95182541687b339054a94e6 by adding the trampoline and a bunch of other stuff!


Add statement search

Add statement search and extended statement search results.

Current dependencies on/for this PR:

main

PR #10   👈

This stack of pull requests is managed by Graphite.


Changing the tool class and updating the langchain tools

Is your feature request related to a problem? Please describe.
The current tools under langchain are limited to langchain, and to implement in other frameworks, work needs to be done
Describe the solution you'd like
To fix this, we implement an action interface
interface Action {
  name: string;
  similes: string[];
  description: string;
  examples: ActionExample[][];
  handler: Handler;
  validate: Validator;
}

inspired from eliza, which will make it easier for future development
This can now be plugged into langchain / vercel, given the structure for it
Additional context
https://elizaos.github.io/eliza/docs/core/actions/

Working on this.

@thearyanag can you review my pr?

#72 looks light weight and more modular. I think that might be the solution you're looking for @thearyanag

#72 looks light weight and more modular. I think that might be the solution you're looking for @thearyanag

yes, just waiting for a couple of changes

Was this already solved ?

#101 seems like a duplicate of #72, no?

#101 seems like a duplicate of #72, no?


remove teleport

It isn't currently actually used, that call will never be run, and I don't think we are certain it ever will be.
I'm guessing we are more likely to either just use disterl or to reuse the client/server code that is already there for the kafkaesque support.

Ignore, including in another PR.


Fatal EOF error

Doesn't matter which version I run, I get the following error:
time="2024-07-19T19:57:51-04:00" level=fatal msg=EOF
Works perfectly fine on a VM, not sure as to why I'm getting this error. I've disabled my anti-virus and firewall entirely and it does not want to work no matter what I do.

Doesn't matter which version I run, I get the following error:
time="2024-07-19T19:57:51-04:00" level=fatal msg=EOF
Works perfectly fine on a VM, not sure as to why I'm getting this error. I've disabled my anti-virus and firewall entirely and it does not want to work no matter what I do.

What OS are you running, and what version, please? Also have you tried running it in a completely new folder, with a freshly downloaded copy, etc.

Windows 10, the past 3 versions have not worked (haven't tested others) and I've tried fresh installs in multiple different folders.

Looks like there are a sum total of 12 different places that could be fatally erroring out. I've sent you a friend request on Discord, so that I can provide you with a modified binary that should narrow down exactly which is causing the problem.

I don't believe I received the friend request, my username on discord is a little different from here. My discord username is just Shadoyama, or user ID<PHONE_NUMBER>54142208.

Thanks to log outputs from a couple of people, it would appear that Lorca is the root cause of this issue.
Issue open here
PR open here
Copying over from that issue

Just wanted to add I have 1 person seeing this as well on Windows but 15 others not seeing it with the same application. Seems to be persistent for that person. This is just a standard launch with Windows of the exe that launches Lorca with data.

Given I have my own fork of lorca that's already heavily edited, I'm going to do my best to implement the fixes suggested over there, however, given I have been unable as of yet to replicate this issue on my end, and there seems to be no surefire way to get this issue to present, testing that the fix worked may prove to be rather tedious.


access to CCD images from QuEra

Currently you provide access to bitstrings from the measured final state of AHS evolution.
job = AwsQuantumTask(arn=task_arn, poll_timeout_seconds=30)
rawBitstr=job.result().get_counts()

For debugging purposes I'd like to have access to the CCD image from each shot
rawCCD_mages=job.result().????() --> shape [numShots, 1K,1K]

Thank you for adding this feature request!


Laravel Mix issues

I am trying to run laravel mix, however I am a bit confused on this.
I guess we have to run npm install for all modules individually am I correct? Sadly this would make add 130mb just for one module to the project, If I have multiple modules it will get to 500mb only for a few of them.
Maybe I am understanding this wrong but I just want to make sure I understood this correct.

@virgiltu Yes, you correct to understand. I do in my project in each ENABLED modules to make npm install or  yarn

I'll close this as there hasn't been a reply in a while, feel free to comment if needed.


INTENG-3144 remove css from previous banner

A partner noticed that when clicking to a new page, a new banner would render, but some of the css was still on the page cause the content to get pushed down further than expected.
This code checks for the existence of #branch-banner-iframe style tag and removes it if it exists. Should not change any other functionality.

👍

👍  just tested and it works


Medics can examine pills to see their chemical composition

About the PR

Add a new component, ReagentExaminationRequiresSkillComponent. This component applied to an entity with reagent holder allows trained personnel to see the chemical composition of said reagent holder.
Why / Balance

Fixes #2179
Media

https://github.com/CM-14/CM-14/assets/89804215/7334cc04-e93a-4072-8ba4-dbe6bb5a0728

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

:cl: blueDev2

add: Medically trained personnel can examine pills to see their chemical composition


Remove '-Wno-non-virtual-dtor' from compiler flags

Problem
It seems like there is no reasons (at least in term of code in the tree) to use this flag.
Summary of Changes

Remove -Wno-non-virtual-dtor from build/config/compiler/BUILD.gn

Sorry I'm re-requesting a review because I realised -Wnon-virtual-dtor is not currently enabled. And in fact there is a few missing dtor...


Update Wiki

The Wiki for this project is severely out of date. It will need to be updated.

Completed


Suggestion: wiki page with steps to get this working regardless of stack.

Hello,
I am trying to achieve the same development flow. But I don't use Redux.
That said, I think most people already know how to build a react app.
Instead, I ended up here to find how to have the same workflow with Electron.
I'd find really useful to have documentation about how to setup webpack config and which module you use and what they do. I know you use this: webpack-target-electron-renderer . It would be nice to know the "what" and "how" so that anyone can use and setup any webpack based build to get it working with electron. Such guidelines would work even for an angular app for example.

Thanks for you suggestion!
This should covers some of important webpack mechanism, and I will take care of it next week.

Thank you for all the work :)
If I can help you with it, let me know.

I added some explanation for webpack-target-electron-renderer:
https://github.com/chentsulin/webpack-target-electron-renderer#how-this-module-works

t would be nice to know the "what" and "how" so that anyone can use and setup any webpack based build to get it working with electron.

@AoDev This is a really good idea. So in a sense, this boilerplate would be more helpful if it was more like a 'todo-mvc' app but with explanations. @chentsulin Would a PR for short explanations for parts of the boilerplate be welcome? I think we should plan this out.

Adding this to next release


⚠ ClamAV has degraded performance

In 5a1e6ec, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 549 ms

Resolved: ClamAV performance has improved in c492737.


Styling cards

I checked on mine, and it didn't seem to matter if there were 2 button in there or not. but i'll go through it again and remove one from all of them.


re-add codecov step to ci

I rule and have completed some work on Case Manager that's ready for review!
We stopped codecoving when we moved to github actions in #2361 - this (hopefully) restores it.
This pull request makes the following changes:

add codecov step to CI

no views
It relates to the following issue #s:

Fixes #2401

For reviewer:

Adjust the title to explain what it does for the notification email to the listserv.
Tag this PR:

feature if it contains a feature, fix, or similar. This is anything that contains a user-facing fix in some way, such as frontend changes, alterations to backend behavior, or bug fixes.
dependencies if it contains library upgrades or similar. This is anything that upgrades any dependency, such as a Gemfile update or npm package upgrade.

If it contains neither, no need to tag this PR.

godmode since not user facing


Plugin E2E: Update selectors

What this PR does / why we need it:
As part of https://github.com/grafana/grafana/issues/78412, many of the selectors used in this repo are being changed, causing some of the scenarios to fail. This PR updates some selectors, which should unblock some of the open PRs for plugin e2e.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

📦 Published PR as canary version: Canary Versions

:sparkles: Test out this PR locally via:
npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>

This fix accidentally made its way into https://github.com/grafana/plugin-tools/pull/616 which is already merged, so closing this PR.


[CI][C++] Add a GHA job for macOS ARM

Describe the enhancement requested
GitHub added availability of macOS ARM (M1) runners a couple of weeks ago for Open Source projects:
https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/
It would be good to add a CI check for Arrow C++ on those runners.
Component(s)
C++, Continuous Integration

@raulcd @kou @assignUser

Wow!
It seems that @raulcd already opened an issue for this: GH-40082
I close this as duplicated.

What does  #40072 have to do with this?

I think this isn't a duplicate. As I understand it #40077 is about replacing the crossbow self-hosted runners with gh runners and this issue is about adding an M1 job to PR ci in apache/arrow (e.g. in cpp.yml)

What does #40072 have to do with this?

Sorry... I used wrong issue number. GH-40077 is what I want to use.

I think this isn't a duplicate. As I understand it #40077 is about replacing the crossbow self-hosted runners with gh runners and this issue is about adding an M1 job to PR ci in apache/arrow (e.g. in cpp.yml)

Ah, I understand. Sorry for my wrong close.

Issue resolved by pull request 40456
https://github.com/apache/arrow/pull/40456


Brackets not launching via GUI not shows in applications in  Linux

Hi,
I have installed brackets on Kali Linux but it isn't opening via GUI . It also does not show in applications. Not even when I search for it . It only opens via terminal . I have attached 2 screenshots . Please solve my problem. This is happening ever since I installed it.

@Zainzakie try alternative installers here https://github.com/zaggino/brackets-electron/releases

Thank you so much. It has solved my problem. But, can you tell me why the original brackets is not working?
The previous versions of the "original" brackets were working on Kali Linux but this one isn't. Why?

@Zainzakie Official Brackets builds use Chromium Embedded Framework (CEF) and especially the Linux builds use very old version of it. It's quite buggy and there doesn't seem to be anyone skilled enough with CEF and Linux to fix these bugs people are running into.

Oh. Thanks @zaggino  .
My problem is solved .


The user should be able to add a new address.

Steps To reproduce--
1. log in as a user
2. Click on address inside profile on the top-right corner
3. Click on the add address
4. Fill all the required fields
5. Click on the Save button
Actual result: The user is not able to add a new address. Please find the below screenshot.
Expected result: The user should be able to add a new address.

@devansh-webkul
Thanks, Now this issue is fixed. I have attached some screenshots for future reference.


Rename input table schema file

Pull request details
Describe the changes made in this pull request

rename input tables schema file as pointed out by Abel
List of related issues or pull requests

#122

Collaboration confirmation
As a contributor I confirm

[x] I read and followed the instructions in README.dev.md
[x] The documentation is up to date with the changes introduced in this Pull Request (or NA)
[x] Tests are passing
[x] Lint is passing

Address in #132


[editorial conventions] make insertion of space after : language dependent

code:

 ...
<lb n="4r9" break="no"/>ṅin-aṅinan· ṅuniveḥ kǝbvanya blaḥ <num value="1">1</num> yathānya tan pamuhara pramāda magǝ:ṁ I sira, ...

display after application of editorial conventions:

@ajaniak : can you modify the editorical conventions so that insert of space after ":" either (a) applies only when language is English, French or German, or (b) does not apply when xml:lang="kaw-Latn" or xml:lang="kaw-osn"?

Thanks!

sorry, as this may not be evident for you, I explain that ":" is part of the (strict) transliteration system and should not be considered a "colon" in that context. see TF §2.5.

If I understood correctly this rule should be applied on the edition div and not only for @xml:lang="kaw-Latn" or @xml:lang="kaw-osn" right?

Maybe not only in div type=edition, because the use of ":" as element of our transliteration system might also occur in div type=apparatus, and conceivable even in div type=commentary .
The only languages where this use of ":" is liable to occur are @xml:lang="kaw-Latn" or @xml:lang="kaw-osn".
By the way, is the default language in aaparatus that of the edition or of the root of the file?

Ok, so I will linked it to those two values of the @xml:lang
The apparatus works with the default language declared at the root of the file.

If that is the case in apparatus, then linking the rule concerning non-insertion of space after ":" to the values of @xml:lang will not work, because we are liable to have some cases of ":" in apparatus for editions of texts in @xml:lang="kaw-Latn" or @xml:lang="kaw-osn", but those language values are not declared in the apparatus were the machine thinks the current language is the one declared at the root of the file.
Why not scrap the space-insertion rule altogether? Is it that common for people who write in English, French or German to forget to insert a space after a colon?

I think another solution would be better: taking the apparatus following the edition with  @xml:lang="kaw-Latn" or @xml:lang="kaw-osn"and applying the rules to the descendant, i.e. lemand rdg. It allows to keep both set of rules and coverts all the cases.

Will that not be difficult to implement, at least in theory, given the fact that the value of xml:lang may change in the course of the edition and even within a line of text? If I am not mistaken, this means that at any time the relevant language at a @loc cannot be known unless it is encoded manually into the <app>.
That said, in practice the number of multilingual texts involving any parts with @xml:lang="kaw-Latn" or @xml:lang="kaw-osn" where those languages are not the value assigned to the
 will be extremely small, if not non-existent. So practically, your solution could work.

As this time, code like Umaṁsə: taṁ jnu skar· still leads to display like this:

have your tweaks of August 2021 failed to work?
I am still inclined to advise to drop the space removal rule altogether.

I have remove the rule.


added my profile

Added my profile to /public/data

👍

Hi, do I need to change the milestone icons to default available ones?

Hi, do I need to change the milestone icons to default available ones?

No, there is an automatic default built in. However, you should open an issue asking for them to be added. Once they’re added they’ll automatically show correctly

That's great !
👍


FileNotFoundError is not defined in python2.7

When using this with python2.7 (so it does by default when installing with pip in my 14.04 ubuntu system), it fails with:
No handlers could be found for logger "compdb.includedb"
Traceback (most recent call last):
  File "/home/marco/.local/bin/compdb", line 9, in <module>
    load_entry_point('compdb==0.1.1', 'console_scripts', 'compdb')()
  File "/home/marco/.local/lib/python2.7/site-packages/compdb/cli.py", line 280, in main
    command.execute(config, args.args)
  File "/home/marco/.local/lib/python2.7/site-packages/compdb/cli.py", line 89, in execute
    included_by_database = builder.build(database)
  File "/home/marco/.local/lib/python2.7/site-packages/compdb/includedb.py", line 263, in build
    pp.preprocess(compile_command)
  File "/home/marco/.local/lib/python2.7/site-packages/compdb/includedb.py", line 52, in preprocess
    quote, header_name = next(iter_stack[-1])
  File "/home/marco/.local/lib/python2.7/site-packages/compdb/includedb.py", line 109, in _iter_includes
    except FileNotFoundError as exc:
NameError: global name 'FileNotFoundError' is not defined

Defininig it as an IOError works as expected:
try:
    FileNotFoundError
except NameError:
    FileNotFoundError = IOError

Ah, and in order to see errors, I also needed to add to includedb.py logging.basicConfig()

Thank you for reporting the issue.
I used your fix.
Regarding the logging configuration, I had a commit pending locally (0cd1de34b469b68296d9a9c4338a8c98969db312) which I also pushed too.


Water Leakage Bug

Hi.
I had a water leakage few days back. The meter showed the drop icon untill I have solved the proble.
From the log I can see the water leakage indicator popped up 3 days before I realy got a notification from my municipaly.
Furthermopre, the leagage was fixed and the drop icon no longer appears at the meter nor in my municipaly water company but it is showes its on in the binary sensor.
That looks like a bug.

can you please share screenshot / diagnostic file / logs?
not sure I understand the issue as the integration doesn't calculate leak by itself, only sensor available is for alert under the account

Hi.
The water meter showed the drop icon when the leakage was true.  The binary
sensor is still on and was on before it all started. I have verified it
with Meniv Rishon Lezion. Now the binary sensor is still on although Meniv
sees it is off and I see no drip icon on the meter.
If you still need logs, I will do that later. The on start on the 12th
while the message arrived from Meniv on the morning of the 15th and is
still on. No leakage at the 16th noon time where I have fixed the leakage.
Nir
בתאריך יום ו׳, 18 באוק׳ 2024 ב-10:17 מאת Elad Bar @.***

:

can you please share screenshot / diagnostic file / logs?
not sure I understand the issue as the integration doesn't calculate leak
by itself, only sensor available is for alert under the account
—
Reply to this email directly, view it on GitHub
https://github.com/maorcc/citymind_water_meter/issues/83#issuecomment-2421624048,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYPXNQ3FMA7RVT45K3NPNLZ4CYZDAVCNFSM6AAAAABQFIXUF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRRGYZDIMBUHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Which meter icon?
Please be more accurate, sensor name / diagnostic file / logs,
your terms are not aligned with the name of sensors,
In addition, i'm not guessing what happened in your physical meter nor integration , without actual data I cannot assist,
Once you will be next to it, pls share the missing details
Thanks

Hi. I thought you know the display of the meter. Adding an image. נשלח מה-iPhone שליב-18 באוק׳ 2024, בשעה 11:15, Elad Bar @.***> כתב/ה:
Which meter icon?
Please be more accurate, sensor name / diagnostic file / logs,
your terms are not aligned with the name of sensors,
In addition, i'm not guessing what happened in your physical meter nor integration , without actual data I cannot assist,
Once you will be next to it, pls share the missing details
Thanks
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

The top line has a flow sensor on the left hand side, an icon that shows there is a flow and its direction and a leakage icon on the right hand side. The picture was taken during the leakage time frame. Now the drop icon is no longer on but the binary sensor of the integration is still on. Hope this helps. Nirנשלח מה-iPhone שליב-18 באוק׳ 2024, בשעה 11:15, Elad Bar @.***> כתב/ה:
Which meter icon?
Please be more accurate, sensor name / diagnostic file / logs,
your terms are not aligned with the name of sensors,
In addition, i'm not guessing what happened in your physical meter nor integration , without actual data I cannot assist,
Once you will be next to it, pls share the missing details
Thanks
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

BTW, the  meter model is ARAD LR9 D and or TAVOR 20-Z (both appear on the meter).

Did you share a picture? Asking because it's not attached.
In addition, as I understand you are talking about the meter UI itself, not related to HA, is that correct?

Now doing it.

This is a repo for integration between Arad portal (cloud) and Home Assistant.
If something is not working well between the the meter itself to notifcations configured in the portal, please ask you municipality to address it with Arad.
If something is not aligned between Arad portal and the integration, please provide logs and diagnostic file,
Otherwise, I cannot assist.
Please don't describe what happens in the meter, it is not relevant, as what important is just the cloud service.

Yjis [icture show 0.8m^3/h flow, positive flow (water consumption) and the drop icon which indicate there is a leakage (set by the meter itself). This correlates with the Meniv servers (Rishon LeZion).

Again, please provide logs and diagnostic file

OK.Checking how to do that. Anyway it looks like a mismach between Arad servers and the municipaly. The municipaly is OK related to the meter.

The question is whether you see the same details between Arad and HA,
If not, I will need the information to understand what causes it

Instruction how to do that are available in readme
https://github.com/maorcc/citymind_water_meter?tab=readme-ov-file#troubleshooting

Got the diagnostics (removed other intergrations entries)
config_entry-citymind_water_meter-01J246VDD33C989SDT46WKYPYP.json

Thanks.  Not at home to do that. Anyway the Read My Meter does not show any alert at this point.

Ok, so no issue for now?

I did not say that. The Readmymeter pro does not show any alert while the city-mind does show an alert as the leakage binary_sensor is on since 3 days before the real leakage popped up. Since than it was fixed so no leakage now but binary_sensor is still on.
I will submit logs later or tomorrow morning.

Now I have found some time to add the diagnostics. I have removed/altered all personal details.
Looking inside, it looks like a bug in Arad's cloud service.
The binary sensor turned on 3 days before the real leakage. The leakage was fixed by me and now the meter is fully alagned with the municipally and the ReadMyMeter app.
I have contacted Arad and they do not deal with end users. I have contacted the municipally and since they are on holiday this week I will ask them to bring the issue to Arad on upcoming working day.
config_entry-citymind_water_meter-01J246VDD33C989SDT46WKYPYP (1).json

I think you didn't understand the purpose of the binary sensor, it just reflacts the status of configuration whether to alert in case of leakage or not,
There is another sensor of alerts that tells you if there is a leak its name is Alerts

OK.  I will check. I might have missed it as I was looking for another binary sensor but did not find one. The strange thing is why was it changed on the 12th?
I did not do anything.
Thanks.

I have checked again. There is only one binary sensor in the list of entities of the integration. Th eone you are talking about is missing, at least from my entities list.


Update ghost.mdx

Description (required)
If using typescript, adding the @types/tryghost__content-api package is required.

Hello! Thank you for opening your first PR to Astro’s Docs! 🎉
Here’s what will happen next:

Our GitHub bots will run to check your changes.
If they spot any broken links you will see some error messages on this PR.
Don’t hesitate to ask any questions if you’re not sure what these mean!

In a few minutes, you’ll be able to see a preview of your changes on Vercel 🥳

One or more of our maintainers will take a look and may ask you to make changes.
We try to be responsive, but don’t worry if this takes a few days.

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

en
guides/cms/ghost.mdx
Source changed, localizations will be marked as outdated.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


[docs]Upgrade the docusaurus to 1.11.1

Fixes https://github.com/apache/pulsar/issues/4606
(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)
Master Issue: https://github.com/apache/pulsar/issues/4606
Motivation
Refine the framework and implement language-specific code tabs
Modifications
Upgrade the docusaurus version to 1.11.1 for support code tab
Verifying this change

[ ] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API: (yes / no)
The schema: (yes / no / don't know)
The default values of configurations: (yes / no)
The wire protocol: (yes / no)
The rest endpoints: (yes / no)
The admin cli options: (yes / no)
Anything that affects deployment: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

run cpp tests


Check if a user is spamming

How can i check if a user is spamming commands to my bot and block it for a certain time?

duplicate https://github.com/MrRoundRobin/telegram.bot.examples/issues/28

Sorry for my duplicate post!


raftstore: change some box_err to error in kvproto

Signed-off-by: Chunzhu Li<EMAIL_ADDRESS>What problem does this PR solve?
Issue Number: https://github.com/pingcap/br/issues/606
Problem Summary: BR needs to retry some errors.
What is changed and how it works?
What's Changed: change some box_err to error in kvproto https://github.com/pingcap/kvproto/pull/694
Related changes

Need to cherry-pick to the release branch

Check List
Tests

Unit test
Integration test

Release note

No release note

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

/merge
Please also update TiDB error usage in backoff.

/merge


General Availability and cost?

Azure Maps in Power BI is now GA:

https://techcommunity.microsoft.com/t5/azure-maps-blog/azure-maps-visual-for-power-bi-is-now-ga/ba-p/3828329
https://powerbi.microsoft.com/en-us/blog/power-bi-may-2023-feature-summary/#post-23312-_Toc134425712

Can it also be clarified on this page whether Azure Maps in Power BI is free no matter the number of tileset impressions or geolocation lookups?

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

ID: 2d2535a7-27df-d19f-48c9-c6d199bdaf43
Version Independent ID: 5e186501-8aa8-1e8b-7f63-5544b6033f4a
Content: Get started with Azure Maps Power BI visual - Microsoft Azure Maps
Content Source: articles/azure-maps/power-bi-visual-get-started.md
Service: azure-maps
GitHub Login: @deniseatmicrosoft
Microsoft Alias: limingchen

@otravers
Thanks for your feedback! We will investigate and update as appropriate.

Hi @otravers We have assigned this issue to our Content Team who will be reviewing the feedback and take appropriate action.
Thank you for bringing this to our attention.

Hi @otravers , yes, Azure Maps visual is free, it is included in your Power BI subscription.


289210 Description says "gets or sets" but this property only has a get

289210 Description says "gets or sets" but this property only has a get
Developers can add to the list, but can't set the list itself.  The underlying property is just has a getter.
Title
On the title describe
what you've fixed (or created) with this Pull Request (PR).
Summary
Insert a short (one or two sentence) summary here.
Fixes #Issue_Number

Note: The "Fixes #nnn" syntax in the PR description causes
GitHub to automatically close the issue when this PR is merged.
Remove that line if you don't have issues associated with this
PR. Click on the Guidelines for Contributing link above for details.

Details
Explain your changes, and why you made them. If that
information is already available in the issue referenced
above, just referencing the issue is preferred to copying
the text.
This may not be necessary depending on the scope of the PR
changes. For example, "fix typo in introduction.md" is
sufficient to describe that PR.
Suggested Reviewers
If you know who should review this, use '@' to request a review.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

LGTM. I'll resolve the work item (289210, assigned to me) once this is live.


Load policy list when url from Linking.getInitialURL is not available

Details
The url parameter is null when passed to our callback (see Linking.getInitialURL) when we open NewDot without using deeplink.
See slack conversation https://expensify.slack.com/archives/C9YU7BX5M/p1634263597215200?thread_ts=1634173120.171900&cid=C9YU7BX5M
Not sure if this is a good solution or if it could have some unwanted side effect. @roryabraham cc
Fixed Issues
$ https://github.com/Expensify/App/issues/5865
Tests / QA

Create an account in OldDot in web
Create a Free group policy in OldDot -> this will create a new Workspace in NewDot
Do that a few times (3 times? :) )
Log out of NewDot
Log in in new Dot
You should see the 3? workspaces you created

Tested On

[x] Web
[ ] Mobile Web
[ ] Desktop
[ ] iOS
[x] Android

Screenshots

Web

Mobile Web

Desktop

iOS

Android

Sorry, actually I'm un-approving this because it breaks the OldDot -> NewDot transition.

How is it breaking it?


Unable to extract video url for Instagram video

Checklist

[x] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dl version 2021.04.17
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.instagram.com/tv/BkfuX9UB-eK/', '--verbose']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2021.04.17
[debug] Python version 3.9.1 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 2021-02-13-git-d5d6751a55-full_build-www.gyan.dev, ffprobe 2021-02-13-git-d5d6751a55-full_build-www.gyan.dev
[debug] Proxy map: {}
[Instagram] BkfuX9UB-eK: Downloading webpage
ERROR: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on
 how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "D:\GitHub\SME-SM-CAS\YouTube_DL\youtube-dl_venv\lib\site-packages\youtube_dl-2021.4.17-py3.9.egg\youtube_dl\YoutubeDL.py", line 806, in wrapper
    return func(self, *args, **kwargs)
  File "D:\GitHub\SME-SM-CAS\YouTube_DL\youtube-dl_venv\lib\site-packages\youtube_dl-2021.4.17-py3.9.egg\youtube_dl\YoutubeDL.py", line 827, in __extract_info
    ie_result = ie.extract(url)
  File "D:\GitHub\SME-SM-CAS\YouTube_DL\youtube-dl_venv\lib\site-packages\youtube_dl-2021.4.17-py3.9.egg\youtube_dl\extractor\common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "D:\GitHub\SME-SM-CAS\YouTube_DL\youtube-dl_venv\lib\site-packages\youtube_dl-2021.4.17-py3.9.egg\youtube_dl\extractor\instagram.py", line 240, in _real_extra
ct
    video_url = self._og_search_video_url(webpage, secure=False)
  File "D:\GitHub\SME-SM-CAS\YouTube_DL\youtube-dl_venv\lib\site-packages\youtube_dl-2021.4.17-py3.9.egg\youtube_dl\extractor\common.py", line 1130, in _og_search_vi
deo_url
    return self._html_search_regex(regexes, html, name, **kargs)
  File "D:\GitHub\SME-SM-CAS\YouTube_DL\youtube-dl_venv\lib\site-packages\youtube_dl-2021.4.17-py3.9.egg\youtube_dl\extractor\common.py", line 1021, in _html_search_
regex
    res = self._search_regex(pattern, string, name, default, fatal, flags, group)
  File "D:\GitHub\SME-SM-CAS\YouTube_DL\youtube-dl_venv\lib\site-packages\youtube_dl-2021.4.17-py3.9.egg\youtube_dl\extractor\common.py", line 1012, in _search_regex

    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see
  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

Tried on couple of Instagram Video URL'S but not working for any. Checked the version its is latest (2021.04.17).

It seems like it has issue with all Facebook services (Facebook, Instagram, etc.) for some interval of time. Now it is working fine. But still its has to work as those video are available on Webpage.


Issue/5790 type inference uses is subclass in wrong direction

Description
closes https://github.com/inmanta/inmanta-core/issues/5790
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[ ] Attached issue to pull request
[ ] Changelog entry
[ ] Type annotations are present
[ ] Code is clear and sufficiently documented
[ ] No (preventable) type errors (check using make mypy or make mypy-diff)
[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
[ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see test-fixes for more info)

Processing this pull request

Merged into branches master, iso6 in c4d2c1e1df3c953a4fd369803f3c9611cb17a6e7


Add S3ContentsManager

Set up an S3ContentsManager for every S3 drive the user wants to open.
Implement the functionalities of:

mounting and unmounting a drive
getting contents of a drive -> if path is empty it retrieves the contents of the entire drive, otherwise we can specify the path of the contents we want to retrieve from within the drive
create a new file or directory -> whether the name is properly incremented automatically (untitled_1, untitled_2) is not clear yet
rename an exiting file -> s3contents does this by somehow moving the file, so it might not be what we want in the long run

The tests are currently not working well, as the mock S3 environment doesn't seem to work as expected.

Comment for the future, for now the code only allows to configure a single source of drives. In the future, this extension should evolve to allow a list of source configuration that may be based on different technology (like two providers are S3, another on is SSH,...)

Thank you for the thorough review and suggestions @fcollonval! It was very helpful.
And as you mentioned, once we reach the point on the frontend where we can add drives from multiple providers, we will also work on the functionality on the backend, but we will keep this in mind from now.

how the added handlers relate to the proposed OpenAPI spec in https://github.com/QuantStack/jupyter-drives/pull/1 ?

@trungleduc The ListJupyterDrives handler takes care of the GET request to list available drives, as well as the POST request to mount a drive and has the simple endpoint drives, while the ContentsJupyterDrives handler deals with the GET request of retriving the contents, the POST request of adding a new file and the PATCH request of renaming a file and has the endpoint of drives/drive_name/path.
The idea would be for the handlers to follow the proposed API spec, but I'm not sure if my implementation is the correct one, specifically for the contents handler.

Ideally, the API specs need to be fixed before implementing the handlers. Since we already had the handlers, you can add an openapi,yml file to describe your handler. This would make implementing the front-end client easier.

Thanks @DenisaCG

Thank you for the review and all the helpful suggestions @trungleduc! I will merge it with the current state and keep a list of possible improvements for the future.


Error: Could not set 'present' on ensure: undefined method `[]' for nil:NilClass

Hey guys,
We're running into a few issues here at BookingGo/Rentalcars recently regarding the module and I'm a bit at odds as to what it is. The requests seems to be evaluating incorrectly, particularly on checking if data exists.
Environment:
I've tried a few things already to see if this is on our side and a machine error, this includes multiple versions of Ruby. I essentially have 2 collectors at present and they are separated like so:
Environment 1 (Alfa):
[Thu Mar 01 15:11:46]<EMAIL_ADDRESS>agent]# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)

[Thu Mar 01 15:09:49]<EMAIL_ADDRESS>~]# ruby -v
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux]

Installed Path:
/usr/local/logicmonitor/agent/

Puppet version:
3.7.3

PuppetDB Enabled/Installed:
YES

Environment 2 (Bravo):
[Thu Mar 01 15:05:00]<EMAIL_ADDRESS>agent]# cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)

[Thu Mar 01 14:59:07]<EMAIL_ADDRESS>agent]# ruby -v
ruby 2.0.0p648 (2015-12-16) [x86_64-linux]

Installed Path:
/usr/local/logicmonitor/agent/

Puppet version:
3.7.3

PuppetDB Enabled/Installed:
NO

Error: Alfa
Environment 1 (Alfa) has successfully registered itself in the past as it has PuppetDB enabled, however we are currently not running PuppetDB in production. The second node has never therefore been registered, but was running previously without errors in the past. This environment has PuppetDB, therefore we are able to register nodes, this is me trying to register the device:
Debug: Device[watdev-01.dqs.traveljigsaw.com](provider=device): Creating device: "watdev-01.dqs.traveljigsaw.com"
Error: Could not set 'present' on ensure: undefined method `[]' for nil:NilClass
Error: Could not set 'present' on ensure: undefined method `[]' for nil:NilClass
Wrapped exception:
undefined method `[]' for nil:NilClass
Error: /Stage[main]/Logicmonitor::Master/Device[watdev-01.dqs.traveljigsaw.com]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined method `[]' for nil:NilClass

Error: Bravo
I put an extra debug in to eval the FQDN and that returns fine
Debug: Collector[lm-collector-02.ams4.traveljigsaw.com](provider=collector): Checking if Collector exists with description "lm-collector-02.ams4.traveljigsaw.com"
Debug: Collector[lm-collector-02.ams4.traveljigsaw.com](provider=collector): Checking contents of description... "lm-collector-02.ams4.traveljigsaw.com"
Error: /Stage[main]/Logicmonitor::Install/Collector[lm-collector-02.ams4.traveljigsaw.com]: Could not evaluate: no implicit conversion of nil into String
Notice: /Stage[main]/Logicmonitor::Install/Collector_installer[lm-collector-02.ams4.traveljigsaw.com]: Dependency Collector[lm-collector-02.ams4.traveljigsaw.com] has failures: true
Warning: /Stage[main]/Logicmonitor::Install/Collector_installer[lm-collector-02.ams4.traveljigsaw.com]: Skipping because of failed dependencies
Notice: /Stage[main]/Logicmonitor::Service/Service[logicmonitor-agent]: Dependency Collector[lm-collector-02.ams4.traveljigsaw.com] has failures: true
Warning: /Stage[main]/Logicmonitor::Service/Service[logicmonitor-agent]: Skipping because of failed dependencies
Notice: /Stage[main]/Logicmonitor::Service/Service[logicmonitor-watchdog]: Dependency Collector[lm-collector-02.ams4.traveljigsaw.com] has failures: true
Warning: /Stage[main]/Logicmonitor::Service/Service[logicmonitor-watchdog]: Skipping because of failed dependencies.

Do you have an input or suggestions for this? As something seems inherently wrong. I can't see much within the provider, but it seems that the POST is having difficulties actually being transmitted.  These runs are failing fairly recently, but I cannot manage to marry up any of the recent commits.
Thanks!

Hi @Skarzee ,
With respect to error alpha: This could be an issue related to how the device is defined on the manifest. Furthermore, for those logs, would it be possible to see any additional stacktrace that is printed?
For error bravo, we expect this, because puppet DB is a dependency of our integration module.
Thanks for reporting this issue.

Sam

Hey guys, I believe this can be closed now. I managed to get some time in today to work through these issues, and came up with the following realisation (both of the below points are with Alfa):

We have weird scoping set within our modules via an ENC. This means that we need to scope explicitly, as scoping is set, by default, to our company specific module path. This means that the above was unable to call the device class correctly, which makes sense now. We had to change this to ::logicmonitor::device. Afterwards, the class =! to nil.
Additionally, something else that I've learnt is that the exporting of resources to Puppet DB, is that they seem to be quiet when exporting to PuppetDB. So if you're looking to debug ( puppet agent -td) you're not going to see anything. Best way to do this debugging is to query the PuppetDB API directly: curl -X GET http://puppetdb:8080/v3/resources  --data-urlencode 'query=["=","exported", true]'
Thirdly, the work that is done, as discussed via email, is done only when the collector runs Puppet. I think this would be good to highlight. The Puppet run on a node (device) would simply store it to PuppetDB, and the collector would then harvest the devices and do the API communication to limit API calls as this is seemingly done through a single connection.

Thanks for you attention on this though!

Sounds good, thanks!


MAINTAINERS: add Fahed Dorgaa as a REVIEWER

@fahedouch has been making significant contributions: https://github.com/containerd/nerdctl/commits?author=fahedouch
So I'd like to invite him as a REVIEWER.
Welcome @fahedouch

@dmcgowan How many LGTMs do we need to merge this PR?
Also, after merging this PR, could you give @fahedouch Triage access so that he can manage issues and PRs?

I think we can merge this.
@fahedouch Could you LGTM this explicitly?

LGTM

Ping @dmcgowan 🙏


[ZEPPELIN-1832] Fixed a bug in zombie process when Zeppelin stopped.

What is this PR for?
When Zeppelin stops, there is a problem.
Sometimes this happens to the test as well.
It is related to releasing the resources of the remote remote interpreter, and its order has been modified.
What type of PR is it?
Bug Fix
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1832
How should this be tested?

Zeppelin start
run paragraph for interpreter (for example, %spark println("Hello world")
Zeppelin stop
check to zombie process

#jps

When Zeppelin exits, the RemoteInterpreter process should not exist.
Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? no

@minahlee @AhyoungRyu
Hello, could you please review for this pr?

@cloverhearts Nice! Thanks for the patch. Let me try

It works nicely. Thanks for the fixing @cloverhearts!

Test and It works very well!
It was really necessary for me. ! Thanks for taking care of it @cloverhearts

@AhyoungRyu @soralee Thank you :)

multiple ci test profile fails with the same error.
09:51:15,163 ERROR org.apache.zeppelin.interpreter.remote.RemoteInterpreterEventPoller:245 - Can't handle event RemoteInterpreterEvent(type:OUTPUT_UPDATE_ALL, data:{"noteId":"2C75F1GM3","paragraphId":"20170104-095114_1076613332","messages":[]})
java.lang.NullPointerException
	at org.apache.zeppelin.interpreter.remote.RemoteInterpreterEventPoller.run(RemoteInterpreterEventPoller.java:186)
09:51:15,226  INFO org.apache.zeppelin.interpreter.InterpreterGroup:145 - Close interpreter group 2C8ACKHEJ:shared_process
09:51:15,226  INFO org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcess:121 - shutdown interpreter process
09:51:16,226 ERROR org.apache.zeppelin.interpreter.remote.AppendOutputRunner:68 - Wait for OutputBuffer queue interrupted: null
09:51:17,657  INFO org.apache.zeppelin.interpreter.remote.RemoteInterpreterProcess:131 - Exception in RemoteInterpreterProcess while synchronized dereference, can safely ignore exception while client.shutdown() may terminates remote process
09:51:17,660  INFO org.apache.zeppelin.interpreter.remote.RemoteInterpreterManagedProcess:164 - Interpreter process exited 0

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received

The build has been terminated

@cloverhearts could you take a look?

@Leemoonsoo Yes, I will :)

That's sounds good! I agree with @cloverhearts.
In my opinion, first of all, the zombie process problem is very important so must be removed as soon as possible. Then we must gradually resolve other things!
Anyway, I tested again, it works as expected :+1:

@cloverhearts The last travis doesn't look related error.

Thx for the fix. I will merge this one as temporary fix, but I will keep the jira issue open until we come up with better solution.


Using an json cache instead of object cache for better performance and efficiency

Issue:
After the current implementation of marshmallow Object Validation, OpenHiven.py has shown that Object Creation and Instances create under masses heavy slowdowns and take up most of the initialisation time. Still, Validation is important to handle the data correctly and also check data. It might become unneeded in later versions, but currently, it seems like the best solution to remove unneeded code for checks.
Possible Solution:
A possible solution is a small redesign of the overall way OpenHiven.py handles data. That means possibly using JSON-data caches which save instead of objects just their data in dictionary format. That can remove the needed time of creating instances at the startup and move the object creation when needed. A new validation method could provide a high-speed solution to the data issue by postponing the objects' need to when they are actually needed and making the validation faster.
This would mean replacing the current cache and storing only JSON-data and letting instances be only 'fancy interfaces to interact with the data'. This would also mean that instances would be created when objects are fetched, events are received, and the user needs to have objects to use. That means most of the time the cache will store only JSON-data. These instances would then also contain a raw_data field for accessing the JSON data. The properties would then only represent the JSON-data that fetch the data instead of storing data using unneeded variables. This way, data is changed, fetched and stored using dictionaries and methods will only return instances if the user expects it to return. This way, only barely instances need to be created, and the data can be stored without any decrease in performance.
Additional Context:
Implementing such a system would then automatically also require for the sake of speed the entire removal of the ready_state system that is currently in place, so it does not trigger events where the instances would then automatically need to be created. This way only after initialisation instances would be created in events speeding up the startup by a lot, but also changes of data where dictionary fields only need to be modified

@Nxybi Got anything to add OwO

Possible implementation using compiled schemas that are used inside the files of the type classes. These schemas would serve as example base for all OpenHiven.py dict-data types, which can be easily passed as **kwargs into __init__. Would then likely be implemented with #55 since data would then be validated through pure JSON.

New Structure Plan for the Classes:

types/*.py classes will be objects to validate data and interact with the Hiven API:

raw: Raw Data that fetches the object itself
form_object: Function to validate data and transform it into the OpenHiven.py schema. If the object points to other objects it will only return standard ids instead of objects.
from_dict: Creates a new instance with functions to interact with the Hiven API. The data passed must be already validated using form_object
validate: Raw Validator that only checks if all data is present and usable!
update: Updates the raw data of the object

client/cache.py: Class used for adding data to the cache. Will utilise form_object to validate the data and update it appropriately


App crash manage main

App Crash Manage Main
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Hi, checking in from amazon location. Does this PR need approval. What is being waited on?


TypeError: array() takes 1 positional argument but 2 were given

https://colab.research.google.com/drive/1gfsLuugiqEgAbyj7P6_6trgiNaq1dAW2
I've tried downgrading Pillow to be 8.2.0 and 8.3.1 on my own machine, still not solving the problem,so it may be the tensorflow internal error.
Please teach me how to revise this code and let it run without bugs.
As I just paste the code onto the colab,I have no idea of the tf and python version, please help me check it.

Can you post the code to reproduce the error? Your Colab notebook is private so others cannot open it.

@collinzrj Sorry,I didn't realize that, first time to use colab
import numpy as np
import tensorflow as tf

import PIL
print(PIL.__version__)

class Foo:
    def __init__(self):
        self.storage = np.zeros((10, 3, 1))

    @staticmethod
    def get_value():
        return np.array([[1], [2], [3]])

    @tf.function
    def case1(self):  # works
        self.storage[0] = self.get_value()

    def case2(self):  # works
        self.storage[0] = tf.py_function(self.get_value, inp=[], Tout=tf.float32)

    @tf.function  # fails
    def case3(self):
        self.storage[0] = tf.py_function(self.get_value, inp=[], Tout=tf.float32)

if __name__ == '__main__':
    foo = Foo()
    foo.case1()
    foo.case2()
    foo.case3()

@Saduf2019 ,
I was able to reproduce the issue in tf v2.4,v2.5 and nightly.Please find the gist of it here.

@sjtusmartboy
Can you refer to this link with same error and let us know, also this link has worked for few users.

@Saduf2019 I've tried all these methods before posting this issue but none of these solutions worked. I think it's the tensorflow's internal error of combining tf.function and tf.py_function.

I am tracing the call stack and I found that in case3, tf.function generates the code as below
def outer_factory():

    def inner_factory(ag__):

        def tf__case3(self):
            with ag__.FunctionScope('case3', 'fscope', ag__.ConversionOptions(recursive=True, user_requested=True, optional_features=(), internal_convert_user_code=True)) as fscope:
                ag__.ld(self).storage[0] = ag__.converted_call(ag__.ld(tf).py_function, (ag__.ld(self).get_value,), dict(inp=[], Tout=ag__.ld(tf).float32), fscope) ## critical
        return tf__case3
    return inner_factory

While in case1, it generates the code as this
def outer_factory():

    def inner_factory(ag__):

        def tf__case1(self):
            with ag__.FunctionScope('case1', 'fscope', ag__.ConversionOptions(recursive=True, user_requested=True, optional_features=(), internal_convert_user_code=True)) as fscope:
                ag__.ld(self).storage[0] = ag__.converted_call(ag__.ld(self).get_value, (), None, fscope) ## critical
        return tf__case1
    return inner_factory

The line I marked critical in case3 produce the problem, while ag__.converted_call(ag__.ld(tf).py_function, (ag__.ld(self).get_value,), dict(inp=[], Tout=ag__.ld(tf).float32), fscope) evaluates to <tf.Tensor 'EagerPyFunc_1:0' shape=<unknown> dtype=float32> which does not contain value. But in case1, ag__.converted_call(ag__.ld(self).get_value, (), None, fscope) evaluates to a numpy array, so it proceeds correctly.
But I did not figure out why and whose the __array__ is called, any ideas?

I got the same error with, so this has little do do with py_function.
@tf.function
def case3(self):
     self.storage[0] = tf.constant(32.)

I think in this case we are supposed to get an error, because the right hand side is a 'symbolic' tensor (error occurs during tf.function's trace-compilation), and the left hand-side is a numpy container. These two are incompatible, since during trace-compilation we in general do not know the value of the symbolic tensor.
The error message is definitely confusing and looks like a bug. Something like 'cannot convert a symbolic tensor to a numpy array' might be more useful.

The Error message
TypeError: __array__() takes 1 positional argument but 2 were given

is thrown by numpy, when we set an item of a numpy ndarray to be an object like x[0] = y, the __array__ method of that object will be called, and a parameter will be passed to it,
import numpy as np
import tensorflow as tf

class Foo:
  def __init__(self):
    self.x = 3

  def __array__(self):
    print(x)
    return np.array([self.x, self.x, self.x])

x = np.zeros((10, 3))
foo = Foo()
x[0] = foo

If you run this code, the same error will be thrown
As I mentioned above

ag__.converted_call(ag__.ld(tf).py_function, (ag__.ld(self).get_value,), dict(inp=[], Tout=ag__.ld(tf).float32), fscope) evaluates to <tf.Tensor 'EagerPyFunc_1:0' shape= dtype=float32>

While the __array__ method of <tf.Tensor 'EagerPyFunc_1:0' shape=<unknown> dtype=float32> is defined as
def __array__(self):
  raise NotImplementedError(
      "Cannot convert a symbolic Tensor ({}) to a numpy array."
      " This error may indicate that you're trying to pass a Tensor to"
      " a NumPy call, which is not supported".format(self.name))

I guess the expected behavior is throwing the NotImplementedError, but since an extra parameter is passed to __array__, an error is thrown before entering the method. This is the direct cause of the error, while I don't know whether ag__.converted_call(ag__.ld(tf).py_function, (ag__.ld(self).get_value,), dict(inp=[], Tout=ag__.ld(tf).float32), fscope) evaluates to an empty tensor is an expected behavior.

Indeed. A fix has been committed to avoid the extra argument error:
https://github.com/tensorflow/tensorflow/commit/fc0f0e61ca9fe3ca3b9b58f51bcf00e0643ed9e3

@sjtusmartboy,
Could you please take a look at this commit where the implementation happened and also the changes are reflected in the respective files.
https://github.com/tensorflow/tensorflow/commit/fc0f0e61ca9fe3ca3b9b58f51bcf00e0643ed9e3
@def_function.function
    def g():
      # Raises during trace compilation.
      return np.array(constant_op.constant(32))
    with self.assertRaisesRegex(NotImplementedError,
                                "Cannot convert a symbolic Tensor"):
      f()
    with self.assertRaisesRegex(NotImplementedError,
                                "Cannot convert a symbolic Tensor"):

Thank you!


performance problems

Is there a problem with the code?
The performance of the model may be abnormal.
There may be some problems with the accuracy.
Epoch 35/150
3750/3750 [==============================] - 142s 38ms/step - loss: 0.0191 - Original_CapsNet_loss: 0.0106 - Generator_loss: 0.0217 - Original_CapsNet_multiAccuracy: 0.5635 - val_loss: 0.0138 - val_Original_CapsNet_loss: 0.0056 - val_Generator_loss: 0.0209 - val_Original_CapsNet_multiAccuracy: 0.5458
Epoch 36/150
3750/3750 [==============================] - 141s 38ms/step - loss: 0.0184 - Original_CapsNet_loss: 0.0100 - Generator_loss: 0.0215 - Original_CapsNet_multiAccuracy: 0.5591 - val_loss: 0.0133 - val_Original_CapsNet_loss: 0.0051 - val_Generator_loss: 0.0209 - val_Original_CapsNet_multiAccuracy: 0.5900
Epoch 37/150
3750/3750 [==============================] - 142s 38ms/step - loss: 0.0181 - Original_CapsNet_loss: 0.0098 - Generator_loss: 0.0212 - Original_CapsNet_multiAccuracy: 0.5619 - val_loss: 0.0132 - val_Original_CapsNet_loss: 0.0052 - val_Generator_loss: 0.0204 - val_Original_CapsNet_multiAccuracy: 0.5344

Hi. We actually found an error in the code that caused the usage of multiAccuracy, that is specifically conceived for the MultiMNIST dataset, with the original CapsNet on MNIST. This should be fixed now.
Thanks!


Add Molecule support

Thanks, looks good so far and appreciate all of the other little fixes as well.


Frontend Flowchart details Added

There's a merge conflict please review it.

Merge Conflict has been resolved


Donation System

Features:

Website rank + Forum
In-game
Discord
Credits to Discord Channel With Full Channel Permission
Maybe Teamspeak?

Todo:

[ ] Class for Forum
[ ] Class for Discord
[ ] Maybe A Class for Teaspeak

Resources:

https://teamreflex.github.io/DiscordPHP/Discord/Parts/User/Member.html#method_addRole
https://teamreflex.github.io/DiscordPHP/Discord/Parts/Channel/Channel.html#method_setPermissions

@dragonbornxxx

Create donator roles with certain permission
If we're going to use Teamspeak

@dragonbornxxx Waiting...


ARROW-10725: [Python][Compute] Expose sort options in Python bindings

@jorisvandenbossche Is this ready for review again?

@jorisvandenbossche Is this ready for review again?

I didn't yet update it regarding the discussion on the keyword arguments API above at https://github.com/apache/arrow/pull/8805#discussion_r542440135
We probably want to support the current "verbose" way of writing the options anyway? In which case it might be fine to defer a more ergonomic API to a follow-up JIRA (since this needs to get in this week)
Alternatively, I could add an order keyword on the python side (as mentioned in https://github.com/apache/arrow/pull/8805#discussion_r542510825), and then there translate something like sort_keys=["col1", "col2"], order="descending" to sort_keys=[("col1", "descending"), ("col2", "descending")] passed to the C++ options. In that case, you only need to full verbose API when wanting to sort with multiple columns with a different ascending/descending, and thus might already help for many common cases.

I didn't yet update it regarding the discussion on the keyword arguments API above at https://github.com/apache/arrow/pull/8805#discussion_r542440135
We probably want to support the current "verbose" way of writing the options anyway? In which case it might be fine to defer a more ergonomic API to a follow-up JIRA (since this needs to get in this week)
Alternatively, I could add an order keyword on the python side (as mentioned in https://github.com/apache/arrow/pull/8805#discussion_r542510825), and then there translate something like sort_keys=["col1", "col2"], order="descending" to sort_keys=[("col1", "descending"), ("col2", "descending")] passed to the C++ options. In that case, you only need to full verbose API when wanting to sort with multiple columns with a different ascending/descending, and thus might already help for many common cases.

We probably want to support the current "verbose" way of writing the options anyway? In which case it might be fine to defer a more ergonomic API to a follow-up JIRA (since this needs to get in this week)

Sounds fine.

We probably want to support the current "verbose" way of writing the options anyway? In which case it might be fine to defer a more ergonomic API to a follow-up JIRA (since this needs to get in this week)

Sounds fine.

Rebased, so if it passes, this should be ready for another review / merge.

Rebased, so if it passes, this should be ready for another review / merge.

Opened https://issues.apache.org/jira/browse/ARROW-11167 to track improving the usability for those options

Opened https://issues.apache.org/jira/browse/ARROW-11167 to track improving the usability for those options


Deploying 4DMOS on Robots

Hi, 4DMOS is excellent!
I would like to ask how I can deploy 4DMOS on a robot for real-time dynamic object segmentation, so that I can optimize mapping and localization in real-time. Could you provide some methods or suggestions? Thank you!

Hey, thanks!
This is hard to answer in general. Can you please provide more details on what you want to do? What is the software framework you are working with and which hardware are you using?

I'm using ROS1 Melodic, and I want to apply 4DMOS on a mobile robot platform. The desired outcome is to be able to dynamically remove objects in real-time using 4DMOS after launching the Velodyne 64-line LiDAR driver, and then perform mapping using Fast LIO.During the localization phase, I can also subscribe to the point cloud topic with dynamic objects removed and then perform NDT (Normal Distribution Transform) algorithm.

Do you have a GPU available? Otherwise, using the CPU build from the MinkowskiEngine will most likely be too slow for online operation.
In your case, one simple solution would be to wrap 4DMOS into a ROS node that publishes the static point cloud. If you plan to do that, please feel free to open a pull request :)
Best
Benedikt

Hi,thanks!
I have successfully implemented real-time registration of Velodyne 16-line LiDAR point clouds across multiple frames, and integrated them into the current frame. However, due to limitations in the accuracy and speed of the NDT registration, it is challenging to achieve pose estimation between frames comparable to the KITTI dataset. Therefore, directly applying 4DMOS to Velodyne 16-line LiDAR may not yield satisfactory results, even without considering the differences in data modes between Velodyne 16 and Velodyne 64.
Best
LBH

You should definitely try our odometry pipeline KISS-ICP which is also released as a ROS 1 package. You can find some discussions on how to modify it for very sparse sensors. It usually gives reasonable results without a lot of parameter tuning and I used it in our latest MOS work to retrieve the pose information.
You can also send me some recorded data and I will give it a try if you like.
Best,
Benedikt

Thank you! I will try kiss-icp.
Best
LBH


where is the  pre_trained model of  livox_detection V1.0

Hello,
where is the  pre_trained model of  livox_detection V1.0, I can't use the  model of  livox_detection V1.1.
Thanks!

The livox_detection V1.0 model is available in the alternate branch named detection_v1.0.  The direct link is here: https://github.com/Livox-SDK/livox_detection/tree/detection_v1.0.  You can also reach this by choosing the branches option on the code tab of GitHub.

I have not tested this, but I believe this to be the link to the old model. https://terra-1-g.djicdn.com/65c028cd298f4669a7f0e40e50ba1131/Showcase/model.zip
I found this by looking at older commits from this directory.