Exception is getting buried

I'm attempting to get an oauth server running and at one point it was working.  I however did the vs2015 updates and a lot of stuff changed.
Essentially I have an endpoint that has the AuthorizeAttribute.  If I remove the attribute I can get to the endpoint.  However with the attribute the server returns a useless 500 exception.
Everything else appears to be working.  I can login and receive tokens, I just can't get at the resource api.
Can anyone please provide a way to step through the code and figure out what is going on?  I need at the very least a true stack trace.  I would love to be able to place a breakpoint on the server before it returns the error page through UseDeveloperExceptionPage.

FYI, the JWT bearer middleware shouldn't throw in the latest bits: https://github.com/aspnet/Security/issues/411 for more information.

I'm gathering something is wrong with the token since it's throwing a 500.  Which means I've configured something wrong most likely.
Client
            app.UseCookieAuthentication(options => {
                options.AutomaticAuthenticate = true;
                options.AutomaticChallenge = true;
                options.AuthenticationScheme = "ClientCookie";// "LIS.Cookie";
                options.CookieName = CookieAuthenticationDefaults.CookiePrefix + "ClientCookie";//"LIS.Cookie";
                options.ExpireTimeSpan = TimeSpan.FromMinutes(5);
                options.LoginPath = new PathString("/signin");
            });

            app.UseOpenIdConnectAuthentication(options => {
                options.AuthenticationScheme = OpenIdConnectDefaults.AuthenticationScheme;
                options.RequireHttpsMetadata = false;

                // Note: these settings must match the application details
                // inserted in the database at the server level.
                options.ClientId = "myClient";
                options.ClientSecret = "secret_secret_secret";
                options.PostLogoutRedirectUri = "http://localhost:51282/";

                // Use the authorization code flow.
                options.ResponseType = OpenIdConnectResponseTypes.Code;

                // Note: setting the Authority allows the OIDC client middleware to automatically
                // retrieve the identity provider's configuration and spare you from setting
                // the different endpoints URIs or the token validation parameters explicitly.
                options.Authority = "http://localhost:57856/";

                // Note: the resource property represents the different endpoints the
                // access token should be issued for (values must be space-delimited).
                options.Resource = "http://localhost:57856/";
            });

Server
            // Create a new branch where the registered middleware will be executed only for API calls.
            app.UseWhen(context => context.Request.Path.StartsWithSegments(new PathString("/api")), branch =>
            {
                branch.UseJwtBearerAuthentication(options =>
                {
                    options.AutomaticAuthenticate = true;
                    options.AutomaticChallenge = true;
                    options.RequireHttpsMetadata = false;

                    options.Audience = "http://localhost:57856/";
                    options.Authority = "http://localhost:57856/";
                });
            });

I've been able to debug up to and past "InvokeCryptographyEndpointAsync" but after that it disappears into the DNX void and throws the 500.

I guess you're using RC1 (and not the nightly builds)? Try enabling logging.

UseOpenIdConnectAuthentication isn't setting SignInScheme = CookieAuthenticationDefaults.AuthenticationScheme

The issue was in the Accept method.
            properties.SetResources(new[] {
                "http://localhost:57856/"
            });

I figured it was configuration.  I'm happy to hear in the future it will send a 401 instead of a 500!

Logging helped me figure it out.  Thanks again!


date and time in php

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@micromarket Thank you for submitting a pull request (PR). I have closed the PR because the changes you have made is either stylistically inconsistent with other files in the repository or do not improve anything.

Note for collaborators: this PR was not reviewed in order because it was not labelled by the bot.


Wrap the Query and UI as an OpenTelemetry Collector extension

For v2, the Query and the UI are going to be packaged in two ways:

Wrapped as part of an otelcol extension, to be used with the all-in-one distribution
On its own binary, like today

The business code is pretty much the same, as the extension would just use the same HTTP handlers.

Closing as it is a "low level" issue related to V2 which might take a different approach.


Make the definition of is_primary_replica clearer

There's been some confusion of is_primary_replica indicating 1 on both geo-primary and the geo-secondary database. That is expected as this flag is used for local availability group, not a distributed availability group or active geo-replication.

@btasdoven : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@btasdoven - thanks for clarifying!
#sign-off


Revert "BUG Fix duplicate files being included in case of flush"

Reverts silverstripe/silverstripe-framework#4720

@hafriedlander your revert didn't revert the 3.1 branch properly. :D

@tractorcow how come this got reverted? Is the original bug still present?

Because the solution was wrong; This fix works fine for static files, but would break on any php minified scripts. E.g. /minifier.php?script=myfile.js

Fun stuff! so we've identified this as a bug and know the cause, we just need a fix, yes?
Do we have an open issue?

I've re-opened https://github.com/silverstripe/silverstripe-framework/issues/4553


Running Issue

Hi, I am interested in this project.
But there is some questions.

How can I check existing and create table when api start.
I can't see any execution from mysql/db/00_user_table.sql

I need fetch data from third party api.
but I can't import requests.

...
import requests
...

In terminal
fast_api | Process SpawnProcess-49:
fast_api | Traceback (most recent call last):
fast_api |   File "/usr/local/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
fast_api |     self.run()
fast_api |   File "/usr/local/lib/python3.10/multiprocessing/process.py", line 108, in run
fast_api |     self._target(*self._args, **self._kwargs)
fast_api |   File "/usr/local/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started
fast_api |     target(sockets=sockets)
fast_api |   File "/usr/local/lib/python3.10/site-packages/uvicorn/server.py", line 59, in run
fast_api |     return asyncio.run(self.serve(sockets=sockets))
fast_api |   File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
fast_api |     return loop.run_until_complete(main)
fast_api |   File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
fast_api |     return future.result()
fast_api |   File "/usr/local/lib/python3.10/site-packages/uvicorn/server.py", line 66, in serve
fast_api |     config.load()
fast_api |   File "/usr/local/lib/python3.10/site-packages/uvicorn/config.py", line 471, in load
fast_api |     self.loaded_app = import_from_string(self.app)
fast_api |   File "/usr/local/lib/python3.10/site-packages/uvicorn/importer.py", line 24, in import_from_string
fast_api |     raise exc from None
fast_api |   File "/usr/local/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
fast_api |     module = importlib.import_module(module_str)
fast_api |   File "/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
fast_api |     return _bootstrap._gcd_import(name[level:], package, level)
fast_api |   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
fast_api |   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
fast_api |   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
fast_api |   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
fast_api |   File "<frozen importlib._bootstrap_external>", line 883, in exec_module
fast_api |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
fast_api |   File "/app/main.py", line 4, in <module>
fast_api |     import requests
fast_api | ModuleNotFoundError: No module named 'requests'

If it is possible, please kindly answer.
Thanks and regards.

@richforest0506
Hi, thanks for your feedback.
You are using Docker, right?
If so, the requests lib is not pre-installed, as you can see in the requirements.txt.

https://github.com/qlawmarq/fastapi-mysql-docker/blob/main/api/requirements.txt

requests must be added to requirements.txt as follows:
requests==2.30.0

Then try a re-build and see.
docker-compose build

Sorry for the delay in answering your MySQL question.
The current code seems to cause an error in starting up the MySQL container, but I have fixed it.
You will see the following log when launching the MySQL container, so you can confirm that the query was executed with that.
mysql     | 2023-05-17 00:28:48+00:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/00_user_table.sql

You can also check the table by actually executing a query using the following command.
docker-compose exec mysql bash
mysql -u root -p
mysql> USE fastapi_app;
mysql> SHOW TABLES;

Thanks for your kindly answers.
But when run "docker-compose up", docker doesn't create predefined tables in mysql/db.
When I check in mysql bash, the database is empty. I have to run it manually.
I'm sorry but let's ask one more time.

@richforest0506
Perhaps there is a volume that was created when the Docker was last started, so MySQL is reading the existing data (but empty) without initializing it.
Please try the following:
docker-compose down -v
docker-compose build
docker-compose up

Ref: https://docs.docker.com.zh.xy2401.com/v17.09/compose/reference/down/
Also, It would be effective to drop the instance once from the Docker management console, delete the volume, and then restart it.

yeah. running now.
Thank you very much.


Reduce Session size in database.

This is to Reduce the Needed stored size in the database to the minimal of what is needed.
Mostly
Data HashMap and LongTerm bool.
the rest are not needed to be stored in the database.

#
Fixes the above issue.


thunderbird loses accounts on update

I have installed Thunderbird via the extras bucket. Every time I update Thunderbird via Scoop all accounts I added are lost and I have to add them again. Also Thunderbird keeps asking whether the user wants to set it as the default email application upon every startup (that doesn't bother me, just thought it could be helpful 😇 ).
(Sorry for not adding more details but I just don't know which information could help to fix this.)
What can I do to persist my email accounts across updates of Thunderbird?
Thanks in advance for the help. :)

Yeah i have the same issue. Thunderbird on scoop is worthless if it doesn't retain configuration from version to version.

DISCLAIMER: I don't have thunderbird installed via scoop.
Not sure if this makes the difference but I noticed that thunderbird-portable has a persist property for the profile folder whereas thunderbird does not. Which one are you guys using?
Reference:

thunderbird-portable
thunderbird

Side note: This PR describes the history behind why both exist.

I'm using the thunderbird one.

I'm also using the thunderbird package.

If you haven't yet you guys might want to try using thuderbird-portable instead. Hopefully that gets around the problem for now.
As for the actual problem at hand: I'm not really sure what causes it unfortunately. I remember having similar issues with firefox when I tried installing it via scoop. I know thunderbird utilizes the profiles folder located at %APPDATA%\Thunderbird\Profiles though.
Some conjecture:
Maybe each profile folder in %APPDATA%\Thunderbird\Profiles is in some way tied to each Thunderbird application install? If that's the case, and because scoop simply does a move/replace (instead of modifying a current install like the Thunderbird installer does), profiles could be becoming unrecognizable. Therefore, scoop's thunderbird could be assuming none exist which means each new install will prompt you to import new profiles.

@joegreene Okay, I'll try thunderbird-portable, thanks.
I can confirm that Thunderbird uses %APPDATA%\Thunderbird\Profiles and (at least on my machine) creates a new profile after each update. In the newer versions it has even begun to show a popup telling the user that a new profile has been created.
Now I would like to test whether using thunderbird-portable solves the problem for now. Is there a way to force an update of an app in scoop?

Thanks for the update @lx4r and I'm glad it's become a viable option. Does using thunderbird-portable work for you too, @mads256h?
In any case, I hope there's a way to fix thunderbird so it can retain profiles too. Perhaps link stuff from %APPDATA%\Thunderbird\Profiles to the persist folder? Seems like too much of a hack to get working though, so maybe not that. Otherwise, it seems like more of an annoyance to use than anything else.

See https://github.com/lukesampson/scoop-extras/issues/4377#issuecomment-669390275 for the real cause.

I'm using thunderbird and having this issue. My current workaround is right after the upgrade, start the app with thunderbird -p in command-prompt and select the previous profile.


3D buildings from a lidar dataset

Is your feature request related to a problem? Please describe.
In most cities around the world, 3D buildings doesn't exist on Google Earth. That makes recreating buildings as part of the BTE project quite difficult, and it makes it undesirable for some people to recreate said buildings.
Describe the solution you'd like
However, if there is Lidar data available for the area of interest, there should be a workaround for the lack of 3D in Google Earth, by extracting the building heights from an existing lidar dataset, and displaying it ingame by raising the ingame OSM brick outline to the height that's outputted. This is done by subtracting the digital surface model (absolute height of lidar points) by the digital elevation model (height of the ground points).
Describe alternatives you've considered
If it's not possible to render 3d buildings ingame, there should be another tool where you could show the heights of buildings on a 2D map, that could be shareable in some form.

this is beyond the scope of terra++ (imo the building outlines are already out of scope, but they were already there when i took over development so now i have to keep them), but there's nothing stopping you from making an addon mod which does that.


Release gax-java v1.45.0

This pull request was generated using releasetool.
05-15-2019 16:14 PDT
Implementation Changes

Set rpcTimeout to be totalTimeout for non-retried methods (#712)

Dependencies

Update protobuf dependency to v3.7.1 and grpc to 1.20.0 (#709)

Internal / Testing Changes

Fix Bazel build dependencies (#710)

@vam-google PTAL


[AutoPR authorization/resource-manager] update readmeTS for arm-authorization path

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/5603

This PR has been merged into https://github.com/Azure/azure-sdk-for-js/pull/2181


[DataFrame][minor] cleanup unapply methods in DataTypes

Merged build triggered.

Merged build started.

Test build #32492 has started for   PR 6079 at commit 48e201f.

Test build #32492 has finished for   PR 6079 at commit 48e201f.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Merged build triggered.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32492/
Test FAILed.

Merged build started.

Test build #32493 has started for   PR 6079 at commit 7d90a05.

Test build #32493 has finished for   PR 6079 at commit 7d90a05.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32493/
Test PASSed.

Merged build triggered.

Merged build started.

Test build #32505 has started for   PR 6079 at commit 40da442.

Test build #32505 has finished for   PR 6079 at commit 40da442.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/32505/
Test PASSed.

Thanks. Merging in master and branch-1.4.


feat(backstage-plugin-jira): support custom jql queries

Signed-off-by: Thomas Bourrely<EMAIL_ADDRESS>
:heavy_check_mark: Checklist

[ ] Added tests for new functionality and regression tests for bug fixes
[ ] Screenshots of before and after attached (for UI changes)
[ ] Added or updated documentation (if applicable)

Thanks, I've started to go through it, one thing that now I understand that this change would mean we would differ from the base backstage schema, since we are expecting/ can act on our custom metadata fields. I do not understand this 100% yet ig there are other possible solution to cover this without introducing the metadata.jira keys on the component entity.

Ref https://github.com/RoadieHQ/roadie-backstage-plugins/issues/387

@tbourrelovh I'll contact the usptream backstage folks to get some insights about this if it makes sense to put these into the metadata.

Hey @kissmikijr,
I did this after reading https://backstage.io/docs/features/software-catalog/descriptor-format#common-to-all-kinds-the-metadata. Where the following is said :
In addition to these, you may add any number of other fields directly under metadata,
but be aware that general plugins and tools may not be able to understand their semantics

There is another part of the doc about this : https://backstage.io/docs/features/software-catalog/extending-the-model#adding-new-fields-to-the-metadata-object
The other way it could be done is by using annotations like : jira-custom-query-title-part: query, but i'm not really a fan of parsing the annotation key to extract the query title.
I'll wait for you to get an answer from the backstage team, there may be some other ways I'm not aware of 🙂

Yea It can be done, I am not 100% sure what can be a con in this case. My question is should we do it here and commit for a schema extension.

@tbourrelovh There are a lot of unrelated style changes that make the PR a bit tougher to grok. Optimally you want PRs to be as small and focused as possible.

@tbourrelovh There are a lot of unrelated style-only changes that make the PR a bit tougher to grok. Optimally you want PRs to be as small and focused as possible.

any updates?

@tbourrelovh We are happy to close this. Is there an issue for this so its not forgotten?

@punkle It is indeed linked to #387 , I should've linked it earlier 🙂

@tbourrelovh feel free to close this pull request if you like. :) we will be happy to review it again when you get the time.


Wireframe init requires navigationController not viewController as current

Another SS:
https://scr.infinum.co/adis/SettingsWireframe.swift__Edited_2018-03-23_11-56-10.png

This happened because you were using v1 base classes and v2 template. Since v2 introduced breaking changes, do you think we should rename base classes and templates in v1 or in v2?

This happened because you were using v1 base classes and v2 template. Since v2 introduced breaking changes, do you think we should rename base classes and templates in v1 or in v2?

Nah, let's leave it as it is atm.


SourceID + SourceLocation tests

Includes #113
Adds tests for SourceLocation, tidies up tests for SourceID.

Current coverage is 47.78% (diff: 79.43%)

Merging #114 into master will decrease coverage by 0.15%

@@             master       #114   diff @@
==========================================
  Files            95         95
  Lines          4612       4604     -8
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           2211       2200    -11
  Misses         2205       2205
- Partials        196        199     +3

Powered by Codecov. Last update 58cd340...b87eb5f


Added a CircleCI config file

Added a CircleCI config file based on the neon-js repo's config.

Fixes #11

AFong doesn't have merge permissions right now, but saw this change.


Deploy devon4quarkus application on AKS rancher

Deploy devon4quarkus application on AKS rancher.
Acceptance criteria:

Deploy devon4quarkus application on AKS rancher.
Both rancher and devon4quarkus application should be up and running and accessible.
Access devon4quarkus application using domain.

Created new nginx ingress service and deployed quarkus application and created ingress by using domain. facing issue while accessing application using ingress controller domain. Error: 503 service temporarily unavailable, troubleshooting it.

Create nginx ingress controller service for second domain:

Import already existed nginx controller service in to yaml
CMD: kubectl get svc nginx-ingress-nginx-ingress-controller -n nginx-ingress -o yaml > filename.yml
modify the service file by removing unnecessary context.
Create domain for nginx ingress service external IP.
Redeploy service with minor changes.
CMD: kubectl apply -f filename.yml -n nginx-ingress
Setup ingress host with nginx ingress controller service domain to access application using domain.
host: xxx.xxx.xx.com
deploy all manifest files and access application using domain.


Add Dark support

Add Dark support to vcpkg_find_acquire_program().
Dark is decompiler for installer that made by WiX.
It is used to extract files from installer that made by WiX such as Kinect for Windows SDK 2.x.
How to use are as follows.
# Find Acquire Dark
vcpkg_find_acquire_program(DARK)

# Extract WiX Installer using Dark
vcpkg_execute_required_process(
    COMMAND ${DARK} -x <EXTRACT_DIR> <WIX_INSTALLER>
    WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}
    LOGNAME extract_log
)

LGTM, thanks for the PR!


Rust Logging Levels

Seems like there's an inconsistency: the log levels for the WRITE operations are INFO, but they don't show up in STDERR with the Python logs.
{"timestamp":"2024-06-01T20:49:33.792561Z","level":"INFO","fields":{"message":"Indexer initializing..."},"target":"counterparty_rs::indexer::handlers::new"}
{"timestamp":"2024-06-01T20:49:33.793194Z","level":"INFO","fields":{"message":"12 BitcoinClient workers started"},"target":"counterparty_rs::indexer::workers"}
{"timestamp":"2024-06-01T20:49:33.793217Z","level":"INFO","fields":{"message":"Connecting to database: /Users/adam/Library/Application Support/Bitcoin/fetcherdb"},
"target":"counterparty_rs::indexer::handlers::new"}
{"timestamp":"2024-06-01T20:49:33.799430Z","level":"INFO","fields":{"message":"Connected"},"target":"counterparty_rs::indexer::handlers::new"}
{"timestamp":"2024-06-01T20:49:33.799448Z","level":"INFO","fields":{"message":"Initialized"},"target":"counterparty_rs::indexer::handlers::new"}
{"timestamp":"2024-06-01T20:49:33.799598Z","level":"INFO","fields":{"message":"First database op: GetMaxBlockHeight..."},"target":"counterparty_rs::indexer::utils"
}
{"timestamp":"2024-06-01T20:49:33.799720Z","level":"INFO","fields":{"message":"First database op: GetMaxBlockHeight took 108.875µs"},"target":"counterparty_rs::ind
exer::utils"}
{"timestamp":"2024-06-01T20:49:33.799890Z","level":"INFO","fields":{"message":"First Bitcoin client op: GetBlockchainHeight..."},"target":"counterparty_rs::indexer
::utils"}
{"timestamp":"2024-06-01T20:49:33.800637Z","level":"INFO","fields":{"message":"First Bitcoin client op: GetBlockchainHeight took 734.708µs"},"target":"counterparty
_rs::indexer::utils"}
{"timestamp":"2024-06-01T20:49:33.800655Z","level":"INFO","fields":{"message":"Starting at block height: 278270"},"target":"counterparty_rs::indexer::handlers::sta
rt"}
{"timestamp":"2024-06-01T20:49:33.800666Z","level":"INFO","fields":{"message":"Targeting block height: 846104"},"target":"counterparty_rs::indexer::handlers::start
"}
{"timestamp":"2024-06-01T20:49:33.800687Z","level":"INFO","fields":{"message":"1 Producer workers started"},"target":"counterparty_rs::indexer::workers"}
{"timestamp":"2024-06-01T20:49:33.800744Z","level":"INFO","fields":{"message":"6 Fetcher workers started"},"target":"counterparty_rs::indexer::workers"}
{"timestamp":"2024-06-01T20:49:33.800782Z","level":"INFO","fields":{"message":"3 Extractor workers started"},"target":"counterparty_rs::indexer::workers"}
{"timestamp":"2024-06-01T20:49:33.800809Z","level":"INFO","fields":{"message":"1 Orderer workers started"},"target":"counterparty_rs::indexer::workers"}
{"timestamp":"2024-06-01T20:49:33.800826Z","level":"INFO","fields":{"message":"1 Writer workers started"},"target":"counterparty_rs::indexer::workers"}
{"timestamp":"2024-06-01T20:49:33.800844Z","level":"INFO","fields":{"message":"1 Reporter workers started"},"target":"counterparty_rs::indexer::workers"}
{"timestamp":"2024-06-01T20:49:33.800853Z","level":"INFO","fields":{"message":"Fetcher started"},"target":"counterparty_rs::indexer::handlers::start"}
{"timestamp":"2024-06-01T20:49:34.803619Z","level":"INFO","fields":{"message":"Write","height":278399,"max_height":846104,"progress":"9314692.21","avg_bps":"129.52
","avg_eps":"129.52","total_elapsed":"1","remaining_hrs":"1.22","f_c_len":32,"e_c_len":0,"o_c_len":0,"w_c_len":0,"r_c_len":0,"c_c_len":0,"total_num_entries":130},"
target":"counterparty_rs::indexer::workers::reporter"}
{"timestamp":"2024-06-01T20:49:35.806629Z","level":"INFO","fields":{"message":"Write","height":278597,"max_height":846104,"progress":"9314692.64","avg_bps":"163.46
","avg_eps":"163.46","total_elapsed":"2","remaining_hrs":"0.96","f_c_len":32,"e_c_len":0,"o_c_len":0,"w_c_len":0,"r_c_len":0,"c_c_len":29,"total_num_entries":328},
"target":"counterparty_rs::indexer::workers::reporter"}
{"timestamp":"2024-06-01T20:49:36.806674Z","level":"INFO","fields":{"message":"Write","height":278776,"max_height":846104,"progress":"9314693.02","avg_bps":"168.64
","avg_eps":"168.64","total_elapsed":"3","remaining_hrs":"0.93","f_c_len":32,"e_c_len":0,"o_c_len":0,"w_c_len":0,"r_c_len":7,"c_c_len":64,"total_num_entries":507},
"target":"counterparty_rs::indexer::workers::reporter"}

Looked into this and find it very weird. These reporter logs are actually using debug! macro so their level should be "DEBUG". They are this level so that they do not appear in and pollute the STDERR logs. So actually everything is working as intended except that in the log file they are showing up as INFO level instead of DEBUG. For the file writer I am using the default, library provided, formatter. I'll keep digging though. But the intent is that we do not want these to appear in the STDERR logs. So I don't think this is a release blocking issue.

I'm also unable to reproduce this on my machine. Maybe these logs are from an older release? These logs used to be info level but now they are debug. Anyways going to close this.


Add schema for SNS and SNS event notification for S3.

This looks pretty good!
I do think there are 2 features here: sns notifications and sns support. Let's start with only notifications and split out the sns support to a separate PR (and even ticket).
In the ticket you are working on (please add a link to it in the description) we only need notifications (the sns topic is created out of our tools).
For notifications, I would rather see something like this schema:
notifications:
  sqs_identifier: ...
  sns_identifier: ...

So it would probably make sense to start with only changing the sqs (before adding support for sns). This will be a good exercise in schema migration and will allow easier reviews and faster iterations.
WDYT?

Thank you for the review! So I'm working on the schema update like you describe to manage event notifications as a whole for both SNS and SQS.
My plan was to get the functionality for both supporting the SNS notification and SNS resource management. The reason being I want to get something out for them to use sooner then later, but I have no problem reorganize the work like you asked.


CSV Export numberFormatter

New Pull Request
We needed the numbers in a csv export to be formatted correctly with a comma as a decimal separator. So I thought it would be a good way to implement a numberFormatter like the dateFormatter for the CSV Export.
Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Sorry, I don't know how to write unit tests.

@ggrote Thanks for the contribution. Shouldn't you also set the numberFormatter here as well? ln#307 and ln#387

I thought these lines are only for categories. But you are right they can be numbers too.

I think that should be it. Any chance to integrate the changes?
And maybe you can answer my question at vue3-apexcharts (https://github.com/apexcharts/vue3-apexcharts/issues/106)?

Okay, how do you want to know which value should be formatted? By type?
Anything I can help you with?

instead of dateFormatter and numberFormatter, I have used the correct namings.
The new properties will be categoryFormatter for x value and valueFormatter and y values
chart: {
   toolbar: {
       export: {
            csv: {
              categoryFormatter: (cat) => (cat),
              valueFormatter: (val) => (val),
            },
        },
    }
}

Docs will be updated after the new release


Allow gollum installs with different root URLs to delete files

Update file_view.rb to allow gollum installations with different root urls than / to delete files by making the deleteFile path relative.

Could you elaborate on your use case? Also, this produces six errors in the test suite which will need to be fixed before we can merge.

So, I'm mounting Gollum at a /wiki route instead of the normal root path route. When I did that, I noticed that the file delete url was an absolute URL from / instead of relative, like most of this project's URLs.
I'll close the PR since this is pretty specific to my use case. But maybe it will help somebody else in the future!

I hadn't realized that the delete route deviated from the others. I'm in favor of handling all routes uniformly, so we might just re-implement your fix. 👍

@bartkamphorst cool! Glad to advise but don't have tons of time for the patch. Good luck :D

I'm in favor of handling all routes uniformly, so we might just re-implement your fix.

So this PR should be merged in combination with a change of the router gollum? The failing tests should also be fixed.


[WIP] Add NullAway itself as a JMH benchmark

Do not land; still cleaning things up

Pull Request Test Coverage Report for Build #855

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 92.075%

Totals

Change from base Build #851:
0.0%

Covered Lines:
4810

Relevant Lines:
5224

💛  - Coveralls


(WIP) Adding docker and docker-compose

This PR adds support for running the Project Gutenberg site in a Linux container using Docker and docker-compose (or any alternative OCI compliant tooling, ie podman) to make it easier to start working on the site.
Running the site is now as simple as
$ docker compose up --build

Then open http://localhost:4000 to see the site!
Motivation
I am not a Ruby native and do not have Ruby, Bundler or Jekyll installed on my local machine. To start working on Project Gutenberg I need to install tools directly onto my host machine and may end up using a different version of Ruby, Bundler, libssl (OpenSSL), libxml, etc. All of these difference could result in different behavior when I try to build the site.
The solution to this is to support running the site in a Linux container and version controlling the Linux container build config as a Dockerfile. This allows us to describe the environment used to build the site in source control and gives us stronger guarantees of reproducible builds.
I also think that Docker is much more common than Ruby, and it is more likely someone looking to contribute to Project Gutenberg will have Docker installed than Ruby.
In the 2024 Stack Overflow Developer Survery only 5.2% of respondents reported doing extensive work in Ruby over the past year, while 53.9% of respondents reported using Docker for extensive development work in the past year. In fact Docker was the most popular tooling listed.

@eshellman @gbnewby mind taking a look at this next when you have time? I updated the PR description to describe the motivation for the change, rebased the branch so the diff is much smaller, and updated the README to include updated instructions. Thank you :pray:

Are you proposing to use this as a dev environment? a test environment?
Docker is a good solution for certain types of deployment, but I personally find it cumbersome as a dev environment. in a dev environment you want to make the modify-run cycle as simple as possible, but this makes it more complicated.
For the gutenberg website, we'd love some better automation for deployments. But this is missing autocat3, and the database. (and Python, PHP, and the file systems.) Easy working with branches for example; as it is, switching branches means editing the dockerfile? Shouldn't the you have a shared mapping so you can easily inspect the built pages without going through the docker cli?
I'd like to see Greg have a more robust and direct dev/test/deploy workflow for the pieces that are in this repo. He can describe what he does (if he has time). Adding the github actions for testing/CI is part of this, but it can be cumbersome in development.
I'm not a rubyist either, but I'm pretty sure that environment management tools exist; there's all sorts of ruby stuff on my machine and they don't conflict at all.
Finally, getting "stronger guarantees of reproducible builds" won't help much if the deployment environment is not controlled in the same way; I'm not sure that's possible for us.
Ruby is pretty ubiquitous; you can't really use if for containerization. I have a dockerized ebookmaker that I've used for massive builds in the cloud. I get annoyed at it when debugging things that don't work.
Are you using Docker yourself for gutenbergsite?
I guess my bottom line is I'd like to better understand the use case. Who would use it and what would they want to do with it?

Are you proposing to use this as a dev environment? a test environment?

I am proposing adding Docker as a local dev environment.

in a dev environment you want to make the modify-run cycle as simple as possible, but this makes it more complicated.

Agreed, I think this does increase complexity because I did not consider the database or PHP. I really only focused on making it easier to run Jekyll, which would make it harder to run everything together.
Regarding your questions

Easy working with branches for example; as it is, switching branches means editing the dockerfile?

No, you don't need to edit the Dockerfile in this setup. In the docker-compose.yml file there is a volume bind mount that mounts the working directory into the container, so a git checkout on the host will change the files contents in the container. The main container process is jekyll build ... --watch so as soon as you checkout jekyll will automatically rebuild the static site.

Shouldn't the you have a shared mapping so you can easily inspect the built pages without going through the docker cli?

Yes, I can also add a bind mount volume for the build pages so they are visible in the host file system without going through the container like you mentioned.

Are you using Docker yourself for gutenbergsite?

I am starting to because I am still learning and getting comfortable with the project structure.

Who would use it and what would they want to do with it?

I think that developers that want to contribute to Project Gutenberg could use Docker to run the site locally with as little setup as possible. With Docker we really should be able to make it as easy as running docker-compose up to build the site and bring up all of the components locally.
My real motivation
My larger motivation is to improve Project Gutenberg on mobile. I live in country where most people don't have computers and their only access to the internet is through a mobile device over slow network connections. I think that these are the places where people could really benefit from literary access that their local governments otherwise don't provide.
Right now I am really just trying to understand how to run the project better, and I think that I can add tooling to make it easier for anyone who comes after me.
Improvements
I am going to mark this PR as a draft for now and make some more improvements. How does this sound?

Update the Jekyll container to build to a bind mount syncing compiled pages to the host
Run a web server (Apache, Nginx, whatever the project is hosted on) to serve the built pages
Add a fast-cgi or other PHP container to run the PHP code. Proxy it through the web server
Add a database container to host the database
Optionally add a command to pull data to prepopulate the database

This should get it closer to running the full site, including PHP and the database, and it should still be one command (docker-compose up) to run the entire site. I'll need help to figure out what web server is running and how it is configured, what database is running, etc.
Any links are appreciated and of course I'll do my homework and start reading :pray:

That sounds great! We agree work is needed. A "WIP" label would be better than draft. To increase availability, I suggest we create a branch in this repo for this work, you can target that branch with a PR. Hopefully anyone with interest can then have access to that branch and propose improvements.

@eshellman I can't add labels to the PR or create branches in this repo because I am not a collaborator on this repository. I'm happy to be added as a collaborator but I'm sure you'd like to see more from me first :slightly_smiling_face:
Could you please add the WIP label for me and create a new branch? We could call the branch experiment/docker or exp/docker. Once the branch is created I'll update this PR to point to it.
Regarding the database
I also saw that the database is managed here gutenbergtools/pgdb and that this PR is outstanding. Are the schemas for the database otherwise up to date?
To support being able to run the entire Gutenberg site in a single docker compose up command I will need to create a container for the DB. I'm thinking I can add a Dockerfile to gutenbergtools/pgdb and Github Actions to automatically build the database container (without data, but applying all migrations) and publish the database container to the project's Github Container Registry on merges into the main branch.

Hi @dawson. I am not seeing how your goal of creating the entire site in a
Docker container is viable.
I do think it's viable to have the pages generated by Jekyll - you have
demonstrated that. Here is an overview of what else is involved in having a
fully functional copy of the www.gutenberg.org website:
First, the two sets of content, currently including 7.7M files in nearly
3TB. This cannot go to github: it's too much content, and also a
significant portion of the content (around half) is updated every month.
See the "mirroring how-to" at https://www.gutenberg.org for details.
Second, the app server. As you might have seen, Jekyll only manages around
70 pages. There are nearly 75000 other "pages" that are dynamically
generated by autocat3 from the database. Those pages are cached by our web
infrastructure, but otherwise they do not exist as static files. autocat3
generates many of the pages for things like latest books, top 100, etc.
dynamically.
Third, the catalog database psql dump is just under 1GB, and changes
multiple times per day. I don't know how you will plan on distributing and
ingesting it. It's not currently publicly available, but it could be made
publicly available. I don't want to take responsibility for putting it into
github, though we could publish it.
Fourth, there is a lot of crufty customization of our .htaccess files,
which are currently actually named .acl.gutenbergweb. Also we have some
customization in our Apache config files. I think we could make these
available as part of the Jekyll collection, but they are not currently
published anywhere.
Finally, there are around a dozen cron jobs, around 100K symlinks, and
various other components that keep the site complete and up to date. Most
of that stuff is not under revision control and it would be a lot of work
to try to get it there. As an example, our "top 100" page ultimately comes
from some daily jobs that parse the Apache logs and make entries of
download counts to the database. Many of these jobs were set up over 10
years ago by long-departed personnel, and we have no documentation and
little inspiration to make it suitable to run in arbitrary environments.
I realize these are large challenges, and it's why we haven't tried to make
the entire website portable. There are opportunities to do some work to
address the last two paragraphs above, for example, but the substantial
size and # of files for the first, second and third items mean that it will
always be a very big task to stand up a copy.
For your interest in an app, what I'm thinking is you really need an API to
access what is already provided by www.gutenberg.org. In fact we have an
outdated version of OPDS running, and we hope to upgrade to the new version
soon (Eric might have a prognosis on this).
I hope this long explanation is helpful.
On Tue, Dec 3, 2024 at 4:12 AM Dawson @.***> wrote:

@eshellman https://github.com/eshellman I can't add labels to the PR or
create branches in this repo because I am not a collaborator on this
repository. I'm happy to be added as a collaborator but I'm sure you'd like
to see more from me first 🙂
Could you please add the WIP label for me and create a new branch? We
could call the branch experiment/docker or exp/docker. Once the branch is
created I'll update this PR to point to it.
Regarding the database
I also saw that the database is managed here gutenbergtools/pgdb
https://github.com/gutenbergtools/pgdb and that this PR is outstanding
https://github.com/gutenbergtools/pgdb/pull/4. Are the schemas for the
database otherwise up to date?
To support being able to run the entire Gutenberg site in a single docker
compose up command I will need to create a container for the DB. I'm
thinking I can add a Dockerfile to gutenbergtools/pgdb
https://github.com/gutenbergtools/pgdb and Github Actions to
automatically build the database container (without data, but applying all
migrations) and publish the database container to the project's Github
Container Registry
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry
on merges into the main branch.
—
Reply to this email directly, view it on GitHub
https://github.com/gutenbergtools/gutenbergsite/pull/43#issuecomment-2514249967,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFQRDLWCJLYRAH5GEHOUSWD2DWGZJAVCNFSM6AAAAABSPN7QRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJUGI2DSOJWG4
.
You are receiving this because you were mentioned.Message ID:
@.***>

It might be useful to create a "toy" version of the website in a docker container. With data and files for ~10 books. Still a huge project to bring together the missing pieces. Might be best to attempt it in a separate repo.
The pgdb repo is being used to snapshot the db schema, not to maintain it. The db was designed before managed migrations were a thing.
I've added a "docker" branch and relabeled the PR.

Since Greg mentioned it, if you know some python, creating an OPDS 2.0 feed based on the existing OPDS feed (a pre-1.0 version) might be interesting for you.
https://github.com/gutenbergtools/autocat3/blob/master/templates/results.opds
https://drafts.opds.io/opds-2.0.html

I'm happy to take on the OPDS 2.0 feed. I think it will be a good opportunity for me to get an understanding of autocat3. It will probably take me a couple days to get comfortable making changes in the project.
Regarding containerizing the site, my goal would be a toy version of the site with limited data to run locally to support local development. I want it to be really easy to start working on Project Gutenberg. I have some ideas about how to address Greg's concerns that I'll list below

First, the two sets of content, currently including 7.7M files in nearly 3TB

Locally I would look into running an FTP or HTTP proxy. This way you don't need to download all of the files. The files would be pulled and cached on demand without having to update any of the links in the site.

Second, the app server. As you might have seen, Jekyll only manages around 70 pages. There are nearly 75000 other "pages" that are dynamically generated by autocat3 from the database

I'll need to containerize autocat3 in the future as well, and have it run alongside the Jekyll and Apache containers. I am not familiar with autocat3 yet so I am not sure how challenging this will be, but I should have a better understanding of this once I am done implementing OPDS 2.0

Third, the catalog database psql dump is just under 1GB, and changes multiple times per day. I don't know how you will plan on distributing and ingesting it

It would be great to get a copy of this for my own local work. As far as making this public, I agree that this shouldn't go in git. It could be hosted for download, but I also found garethbjohnson/gutendex that includes an updatecatalog script that populates the database from RDF data.
We could either

Publish the database dump + a slimmed down DB dump for local dev
Include a script to roughly populate the database from data feeds (like the updatecatalog script)

Fourth, there is a lot of crufty customization of our .htaccess files, which are currently actually named .acl.gutenbergweb. Also we have some customization in our Apache config files. I think we could make these available as part of the Jekyll collection, but they are not currently published anywhere.

It would be really nice to include these in the git repo. Otherwise it will be trial and error on my part to figure out how the web server is configured

Finally, there are around a dozen cron jobs, around 100K symlinks, and various other components that keep the site complete and up to date. Most of that stuff is not under revision control and it would be a lot of work to try to get it there.

Maybe this is something I can help with in the future as well :slightly_smiling_face:

Ultimately I think I need to start making small contributions so I can learn more. I don't think these challenges are insurmountable, I'll just have to tackle it one piece at a time.
I'm happy to start with the OPDS 2.0 feed, and I'll need some data dump from the DB to do this. Eric or Greg could you share this with me? Maybe you can just drop it in Google Drive or Drop box and send me a link, or I could share an SSH key if you want to drop it on a server so I can sftp it.

This all sounds pretty good.
I put a database dump at https://petascale.org/tmp/2024-12-03.pg_dump
(1130754856 bytes, md5sum 6d12c3d104ac0439b1fefd03cb714680)
I put our current .htaccess file at https://petascale.org/tmp/htaccess-pg
I'm happy to provide you all the details you could want about how things
work, and copies of things that aren't under git.
Your current plan of looking at OPDS, and looking at autocat3, seems sound.
Once you have autocat3 running behind Apache, along with the Jekyll-built
pages, you will have the bulk of the website.
You don't need most of the random cron jobs, because most of them result in
updates to the catalog database.
There are a relatively small number of browsing pages that are output from
those jobs. My hope is to retire them, in favor of pages generated from
autocat3. A static copy, including for latest_titles.html, might suffice.
Thanks! Greg
On Tue, Dec 3, 2024 at 8:44 PM Dawson @.***> wrote:

I'm happy to take on the OPDS 2.0 feed. I think it will be a good
opportunity for me to get an understanding of autocat3. It will probably
take me a couple days to get comfortable making changes in the project.
Regarding containerizing the site, my goal would be a toy version of the
site with limited data to run locally to support local development. I want
it to be really easy to start working on Project Gutenberg. I have some
ideas about how to address Greg's concerns that I'll list below
First, the two sets of content, currently including 7.7M files in nearly
3TB
Locally I would look into running an FTP or HTTP proxy. This way you don't
need to download all of the files. The files would be pulled and cached on
demand without having to update any of the links in the site.
Second, the app server. As you might have seen, Jekyll only manages around
70 pages. There are nearly 75000 other "pages" that are dynamically
generated by autocat3 from the database
I'll need to containerize autocat3 in the future as well, and have it run
alongside the Jekyll and Apache containers. I am not familiar with autocat3
yet so I am not sure how challenging this will be, but I should have a
better understanding of this once I am done implementing OPDS 2.0
Third, the catalog database psql dump is just under 1GB, and changes
multiple times per day. I don't know how you will plan on distributing and
ingesting it
It would be great to get a copy of this for my own local work. As far as
making this public, I agree that this shouldn't go in git. It could be
hosted for download, but I also found garethbjohnson/gutendex
https://github.com/garethbjohnson/gutendex that includes an
updatecatalog
https://github.com/garethbjohnson/gutendex/blob/master/books/management/commands/updatecatalog.py
script that populates the database from RDF data.
We could either

Publish the database dump + a slimmed down DB dump for local dev
Include a script to roughly populate the database from data feeds
(like the updatecatalog script)

Fourth, there is a lot of crufty customization of our .htaccess files,
which are currently actually named .acl.gutenbergweb. Also we have some
customization in our Apache config files. I think we could make these
available as part of the Jekyll collection, but they are not currently
published anywhere.
It would be really nice to include these in the git repo. Otherwise it
will be trial and error on my part to figure out how the web server is
configured
Finally, there are around a dozen cron jobs, around 100K symlinks, and
various other components that keep the site complete and up to date. Most
of that stuff is not under revision control and it would be a lot of work
to try to get it there.
Maybe this is something I can help with in the future as well 🙂
Ultimately I think I need to start making small contributions so I can
learn more. I don't think these challenges are insurmountable, I'll just
have to tackle it one piece at a time.
I'm happy to start with the OPDS 2.0 feed, and I'll need some data dump
from the DB to do this. Eric or Greg could you share this with me? Maybe
you can just drop it in Google Drive or Drop box and send me a link, or I
could share an SSH key if you want to drop it on a server so I can sftp it.
—
Reply to this email directly, view it on GitHub
https://github.com/gutenbergtools/gutenbergsite/pull/43#issuecomment-2516106893,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFQRDLR3ETMW5BNTDIVZIG32DZ3CXAVCNFSM6AAAAABSPN7QRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJWGEYDMOBZGM
.
You are receiving this because you were mentioned.Message ID:
@.***>


How to use mscclpp as a backend in pytorch

How to use mscclpp as a backend in pytorch? thx.

We don't support this right now. mscclpp not compatible with nccl interface and have no plan for this.

@Binyang2014 thanks. Another question, What are the key points for improving mscclpp compared to NCCL busbw?

As we motioned in README. 1. We provide light-weight API, which can be used to implement communication collectives. NCCL provides general interfaces which cannot be customized based on network topo and hardware spec. 2. Our API is 1-sided 0-copy, which means we don't introduce temp buffers. Also 1-side communication gives us the ability to overlap some ops. 3. NCCL only uses SM copy. We introduce DMA copy with proxy channel.  We can choose the best communication methods based on use-case.

@wangfakang  BTW, I think this PR #319 will support partial NCCL API. Pls follow the readme https://github.com/microsoft/mscclpp/blob/main/apps/nccl/README.md if you would like to try


proverb: adjusted difficulty to 3

Hey, I would suggest to change the difficulty of proverb to 3, as the exercise seems to be easy instead of medium for me

proverb is comparable to beer-song as it also has loops, formatting and stuff like that. beer-song even seems harder and is easy


io.dropwizard.metrics.MetricRegistry not supported for HikariDataSource

Hi,
Is there support for io.dropwizard.metrics.MetricRegistry in HikariDataSource? I can see from the code that only older version is supported (com.zaxxer.hikari.HikariConfig#setMetricRegistry):
... if (!UtilityElf.safeIsAssignableFrom(metricRegistry, "com.codahale.metrics.MetricRegistry") && !UtilityElf.safeIsAssignableFrom(metricRegistry, "io.micrometer.core.instrument.MeterRegistry")) {                     throw new IllegalArgumentException("Class must be instance of com.codahale.metrics.MetricRegistry or io.micrometer.core.instrument.MeterRegistry");                 } ...
Based on you docs, it should be there. Using 4.0.3 version.

Not an issue. We are using light4j and it bundled dropwizard within and renamed the package to external file name and note codahale one.


Import maps as Scenes

Each smart image will need to be created as a Scene.
Do we need to handle the "subset_mask" to modify the image? Can we set a mask on the Scene?
Images will have to be written into a directory on the server.
let scene= await Scene.create({
  name: "New Test Scene",
  img: "artwork/map-image.jpg",
  folder: folder.data._id,
  journal: entity_id,
  sort: 12000,
  data: {},
  visible: false,
});

Each map_pin will need to be created as a Note (so that it can link to the relevant JournalEntry).
Note.create({
  entryId: journalEntry.id,
  x: 1000,
  y: 1000,
  icon: "icons/my-journal-icon.svg",
  iconSize: 40,
  iconTint: "#00FF000",
  text: "A custom label",
  fontSize: 48,
  textAnchor: CONST.TEXT_ANCHOR_POINTS.CENTER,
  textColor: "#00FFFF"
});

Available in 0.2.1


BHBC-1958: Move side search bar into features directory

Overview
SideSearchBar.tsx currently lives under src/components/map/components, but really shouldn’t, as its not a feature used by MapContainer.
Links to Jira tickets
https://quartech.atlassian.net/browse/BHBC-1958
Description of relevant changes
Move SideSearchBar.tsx (and the tests) to src/features/map

One of the tests is failing, just needs a path update.
Otherwise looks good.


Fix compilation warnings of the DDT checks

Warnings like the following:
/opt/gcc/5.3.0/snos/lib/gcc/x86_64-suse-linux/5.3.0/../../../../lib64/libgomp.a(target.o): In function `gomp_load_plugin_for_device':
/tmp/peint/cray-gcc/BUILD/snos_objdir/x86_64-suse-linux/libgomp/../../../cray-gcc-5.3.0/libgomp/target.c:1109: warning: Using 'dlopen' in statically linked ap
plications requires at runtime the shared libraries from the glibc version used for linking

Also in DDT CUDA check:
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to
 suppress warning).

Internal issue: https://madra.cscs.ch/scs/reframe/issues/444

Test updated in https://github.com/eth-cscs/hpctools/tree/master/reframechecks/debug


TypeError: '<' not supported between instances of 'datetime.datetime' and 'NoneType'

After follow the steps the bellow, the script didn't show any erro but after accessing the route web site we get 500 error and log attached.
log-error.txt

oc version Client Version: 4.6.12 Server Version: 4.6.9 Kubernetes Version: v1.19.0+7070803
Any help?

Steps was:

git clone --recurse-submodules --branch 1.0 https://github.com/openshift-labs/lab-tekton-pipelines.git
oc new-project workshops
.workshop/scripts/deploy-spawner.sh

Same issue here.


Will the Azure Portal IPs ever change?

I'm using Terraform/ ARM to provision my Cosmos DB account. I want it accessible from Private IPs and from Azure portal.
Thus i've added the list of Azure Portal IPs as hard coded values:
<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>
Will these ever change? Is it possible to pull the values from an API somewhere? So that if they change I can use that value.
This would be useful. Could you possible update docs to explain this some more.
Thanks,
Sam :)

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

ID: 8d7a26cc-5853-7241-c918-4d758814baaf
Version Independent ID: 96790e64-f053-5194-cccb-2a66019a8f3f
Content: Configure an IP firewall for your Azure Cosmos DB account
Content Source: articles/cosmos-db/how-to-configure-firewall.md
Service: cosmos-db
GitHub Login: @markjbrown
Microsoft Alias: mjbrown

@sambyng-msft Please let us know if you need further help.

Could you provide more information on the Azure Portal IPS - will they ever change?
I'm looking to set up a Cosmos DB account using ARM outside of Azure portal, and not have to go in to azure portal.
Can i take the set of Azure Portal IPs to be fixed permenantly?
Worry is that the IPs change and I can no longer access my Cosmos DB account in the portal.

From: NavtejSaini-MSFT @.>
Sent: 13 May 2021 23:06
To: MicrosoftDocs/azure-docs @.>
Cc: Sam Byng @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Will the Azure Portal IPs ever change? (#75121)
@sambyng-msfthttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsambyng-msft&data=04|01|sambyng%40microsoft.com|1ba95796529f4413018d08d9165b5b2c|72f988bf86f141af91ab2d7cd011db47|1|0|637565403919827689|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=%2FcJcJX7tzRiqNhxIn%2FyiKU0Mo0deOXQnK75Qg4bos%2FQ%3D&reserved=0 Please let us know if you need further help.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F75121%23issuecomment-840862496&data=04|01|sambyng%40microsoft.com|1ba95796529f4413018d08d9165b5b2c|72f988bf86f141af91ab2d7cd011db47|1|0|637565403919837658|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=iGkK6ntWjR%2BDQqjXA3hsV6%2FMBpAP%2BBx%2B2niQRcJUQyU%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAT7QJDOQSW65PFYX5TZHNLLTNREOHANCNFSM44WCHOYA&data=04|01|sambyng%40microsoft.com|1ba95796529f4413018d08d9165b5b2c|72f988bf86f141af91ab2d7cd011db47|1|0|637565403919837658|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=w2Vf8UeyqHjQaRpsRMXcUfdGAqVdcJO%2BDtu73x1c8kM%3D&reserved=0.

@sambyng-msft Rest assured Microsoft will never make such a change without communicating to you about such a change and the steps for you to take regarding the same.
But still we are going to check with our doc author to confirm the same.
@markjbrown @SnehaGunda  Can you please confirm.

Confirmed these won't change.

Thank you for confirming @markjbrown
@sambyng-msft Please let us know if you have any other question.

Thank you for this.

From: NavtejSaini-MSFT @.>
Sent: 18 May 2021 17:32
To: MicrosoftDocs/azure-docs @.>
Cc: Sam Byng @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] Will the Azure Portal IPs ever change? (#75121)
Thank you for confirming @markjbrownhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmarkjbrown&data=04|01|sambyng%40microsoft.com|84ac9adba073421335b308d91a1a7abd|72f988bf86f141af91ab2d7cd011db47|1|0|637569523306391876|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=CL8d7BgeuoALmZjvdY9PTKnZ2aixBoG1kPCIR9cLsh8%3D&reserved=0
@sambyng-msfthttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsambyng-msft&data=04|01|sambyng%40microsoft.com|84ac9adba073421335b308d91a1a7abd|72f988bf86f141af91ab2d7cd011db47|1|0|637569523306391876|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=EcTAxY1gJ216x1oc81E8Jsy6v8etNs2NBWy5nzzwdPU%3D&reserved=0 Please let us know if you have any other question.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F75121%23issuecomment-843328696&data=04|01|sambyng%40microsoft.com|84ac9adba073421335b308d91a1a7abd|72f988bf86f141af91ab2d7cd011db47|1|0|637569523306401841|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=Q0i9fV4wyppyBwT15xdOe5Ujw5DQhLkICkhLij%2BPSUo%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAT7QJDJVCQKAIJ7U4AMBAADTOKJAPANCNFSM44WCHOYA&data=04|01|sambyng%40microsoft.com|84ac9adba073421335b308d91a1a7abd|72f988bf86f141af91ab2d7cd011db47|1|0|637569523306401841|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=aC6W2C3t4yQFkmts7mG%2BnNIqNjwcS7u6uMjAHlvQ34E%3D&reserved=0.

#please-close


[DOC] Added myself to zenodo.json

Closes # .

Changes proposed in this pull request:

The test failure is expected, and this looks good to me, so I'm going to merge now. Thank you!

Thanks Taylor!
On Mon, Feb 4, 2019 at 11:38 AM Taylor Salo<EMAIL_ADDRESS>wrote:

The test failure is expected, and this looks good to me, so I'm going to
merge now. Thank you!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/neurostuff/NiMARE/pull/101#issuecomment-460317990,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AmJSAiDg9G251EWvg1UJ5P3zpt5CgA-kks5vKGIEgaJpZM4ahh2J
.

--
Puck C. Reeders, B.S.
Ph.D. Student | Teaching Assistant
Cognitive Neuroscience
Florida International University
AHC4 - 317
Miami, Florida
email<EMAIL_ADDRESS>http://allenlab.fiu.edu


"Build from sources" instructions missing?

Hello,
after cloning kotao sources and building with ./gradlew build, I cannot find kotao / kotao.bat scripts. Are those files missing or should I generate them in some other way? Could you please add "Build from sources" instructions" section to README ?

Ok - will add the instructions;
In the meantime, to get the scripts do the following:
./gradlew distZip
Then take a look at build/distributions/kotao.zip

PS.
The distZip task was added only recently (yesterday) so make sure you have the latest version pulled from master.

Great! Thanks!


Repeated errors with PartitionRange caused by query timeouts

After running a migration for a table from Cassandra 2.1 to 4, one or more partitions keep on returning an error during the validation stage because the query keeps timing out:
24/09/11 14:01:00 ERROR DiffJobSession: Error with PartitionRange -- ThreadID: 121 Processing min:<PHONE_NUMBER>37584770019983589047024966756 max:<PHONE_NUMBER>72189462337300462084183807813
com.datastax.oss.driver.api.core.DriverTimeoutException: Query timed out after PT2M
        at com.datastax.oss.driver.api.core.DriverTimeoutException.copy(DriverTimeoutException.java:36)
        at com.datastax.oss.driver.internal.core.util.concurrent.CompletableFutures.getUninterruptibly(CompletableFutures.java:151)
        at com.datastax.oss.driver.internal.core.cql.MultiPageResultSet$RowIterator.maybeMoveToNextPage(MultiPageResultSet.java:101)
        at com.datastax.oss.driver.internal.core.cql.MultiPageResultSet$RowIterator.computeNext(MultiPageResultSet.java:93)
        at com.datastax.oss.driver.internal.core.cql.MultiPageResultSet$RowIterator.computeNext(MultiPageResultSet.java:81)
        at com.datastax.oss.driver.internal.core.util.CountingIterator.tryToComputeNext(CountingIterator.java:93)
        at com.datastax.oss.driver.internal.core.util.CountingIterator.hasNext(CountingIterator.java:88)
        at java.base/java.util.Iterator.forEachRemaining(Iterator.java:132)
        at com.datastax.oss.driver.internal.core.cql.PagingIterableSpliterator.forEachRemaining(PagingIterableSpliterator.java:120)
        at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
        at com.datastax.cdm.job.DiffJobSession.getDataAndDiff(DiffJobSession.java:153)
        at com.datastax.cdm.job.DiffJobSession.processSlice(DiffJobSession.java:124)
        at com.datastax.cdm.job.DiffJobSession.processSlice(DiffJobSession.java:54)
        at com.datastax.cdm.job.DiffData$.$anonfun$execute$5(DiffData.scala:33)                                                                                [0/693]
        at com.datastax.cdm.job.DiffData$.$anonfun$execute$5$adapted(DiffData.scala:31)
        at com.datastax.spark.connector.cql.CassandraConnector.$anonfun$withSessionDo$1(CassandraConnector.scala:104)
        at com.datastax.spark.connector.cql.CassandraConnector.closeResourceAfterUse(CassandraConnector.scala:121)
        at com.datastax.spark.connector.cql.CassandraConnector.withSessionDo(CassandraConnector.scala:103)
        at com.datastax.cdm.job.DiffData$.$anonfun$execute$4(DiffData.scala:31)
        at com.datastax.cdm.job.DiffData$.$anonfun$execute$4$adapted(DiffData.scala:30)
        at com.datastax.spark.connector.cql.CassandraConnector.$anonfun$withSessionDo$1(CassandraConnector.scala:104)
        at com.datastax.spark.connector.cql.CassandraConnector.closeResourceAfterUse(CassandraConnector.scala:121)
        at com.datastax.spark.connector.cql.CassandraConnector.withSessionDo(CassandraConnector.scala:103)
        at com.datastax.cdm.job.DiffData$.$anonfun$execute$3(DiffData.scala:30)
        at com.datastax.cdm.job.DiffData$.$anonfun$execute$3$adapted(DiffData.scala:29)
        at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563)
        at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561)
        at org.apache.spark.InterruptibleIterator.foreach(InterruptibleIterator.scala:28)
        at org.apache.spark.rdd.RDD.$anonfun$foreach$2(RDD.scala:1031)
        at org.apache.spark.rdd.RDD.$anonfun$foreach$2$adapted(RDD.scala:1031)
        at org.apache.spark.SparkContext.$anonfun$runJob$5(SparkContext.scala:2433)
        at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:93)
        at org.apache.spark.TaskContext.runTaskWithListeners(TaskContext.scala:166)
        at org.apache.spark.scheduler.Task.run(Task.scala:141)
        at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$4(Executor.scala:620)
        at org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally(SparkErrorUtils.scala:64)
        at org.apache.spark.util.SparkErrorUtils.tryWithSafeFinally$(SparkErrorUtils.scala:61)
        at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:94)
        at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:623)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)

But I took a look at the final record count and there are no mismatches or missing records, so it looks like the validation/migration ran perfectly?
24/09/11 14:02:36 INFO JobCounter: ################################################################################################
24/09/11 14:02:36 INFO JobCounter: Final Read Record Count: 144824
24/09/11 14:02:36 INFO JobCounter: Final Mismatch Record Count: 0
24/09/11 14:02:36 INFO JobCounter: Final Corrected Mismatch Record Count: 0
24/09/11 14:02:36 INFO JobCounter: Final Missing Record Count: 0
24/09/11 14:02:36 INFO JobCounter: Final Corrected Missing Record Count: 0
24/09/11 14:02:36 INFO JobCounter: Final Valid Record Count: 144824
24/09/11 14:02:36 INFO JobCounter: Final Skipped Record Count: 0
24/09/11 14:02:36 INFO JobCounter: ################################################################################################

I've tried validating those particular partitions but I still get the same error. I tried processing smaller chunks of the partitions but I still get the same error.
How do you deal with this issue? Also how can I be sure that the final record count is accurate if there was is an error with one or more partitions?
Any help would be appreciated, thank you!

Hi @lemalucau-r7
Can you use the latest version (4.3.10) of CDM, we had recently addressed the issue related to count mismatch when a partition error happens. As for the failure itself, I think you cluster may be having a large partition. I would recommend you use the below property to handle large partitions, you can go with a value of 100 (default is 1000) & check if it works. Let us know what you find.
spark.cdm.perfops.fetchSizeInRows                 100

Hi @lemalucau-r7,
When you ran with the new version of CDM, did it report the error counts for the failed partitions this time? It is likely that both validation & migration jobs are having trouble with a few partitions that are extra large, however, both the jobs should reports the correct error counts. Does it fail even when you use a very small value (e.g. 10) for fetchSizeInRows?
You could try to find the details about large partitions using the DSBulk tool.

After running with the latest version of CDM, it reported the error counts correctly which was useful. Yeah it's definitely having issues due to the partition sizes. I ended up leaving it since the data in the table wasn't very important, and I haven't had any large partition issues with other tables I migrated so I'm happy with closing this issue.
Thanks for taking a look and for the link to the DSBulk tool, if I run into the issue again I'll definitely use it to find out more about the large partitions.


Bounces on setstate

Running into this issue, see video.
https://user-images.githubusercontent.com/13068724/115477397-cc42b680-a211-11eb-8f9a-aa11b63b8148.mov
 Container(
    height: 50,
    child: ButtonsTabBar(
      radius: 30,
      physics: NeverScrollableScrollPhysics(),
      contentPadding: EdgeInsets.only(left: 12, right: 12, top: 5, bottom: 5),
      controller: this.controller,
      labelSpacing: 5,
      backgroundColor: Styles.MAIN_COLOR_ACCENT,
      unselectedBackgroundColor: Styles.MAIN_COLOR_LIGHT,
      unselectedLabelStyle: TextStyle(color: Colors.black),
      labelStyle: TextStyle(color: Colors.white, fontSize: 14),
      tabs: [
        Tab(
          text: "YouTube",
        ),
        Tab(
          text: "Reddit",
        ),
        Tab(
          text: "Twitter",
        ),
      ],
    ),
  ),

I am using this widget inside a vertical listview as one of the children.

yes I also have this issue :/

Thank you for bringing this up. I'll try to assess this issue this weekend.

https://user-images.githubusercontent.com/30601767/116000330-a4739a00-a5e7-11eb-80e8-e53b0f8b51e2.mp4
Hey!
I tried to recreate your problem, but I was not able to. The code I used was:
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black,
      body: SafeArea(
        child: DefaultTabController(
          length: 3,
          child: ListView(
            children: <Widget>[
              Container(
                height: 50,
                child: ButtonsTabBar(
                  radius: 30,
                  physics: NeverScrollableScrollPhysics(),
                  contentPadding:
                      EdgeInsets.only(left: 12, right: 12, top: 5, bottom: 5),
                  labelSpacing: 5,
                  backgroundColor: Color(0xff2280AE),
                  unselectedBackgroundColor: Color(0xff41505C),
                  unselectedLabelStyle: TextStyle(color: Colors.black),
                  labelStyle: TextStyle(color: Colors.white, fontSize: 14),
                  tabs: [
                    Tab(
                      text: "YouTube",
                    ),
                    Tab(
                      text: "Reddit",
                    ),
                    Tab(
                      text: "Twitter",
                    ),
                  ],
                ),
              ),
              SizedBox(
                height: 300,
                child: TabBarView(
                  children: <Widget>[
                    Center(
                      child: Icon(Icons.directions_car),
                    ),
                    Center(
                      child: Icon(Icons.directions_transit),
                    ),
                    Center(
                      child: Icon(Icons.directions_bike),
                    ),
                  ],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }

Closed due to inactivity. Feel free to re-open this issue if necessary.

I still face the same issue here, any help

Did you test the code that I shared above? With that example, I cannot reproduce the bouncing.

Sorry for the delay in answering this. I'll be reviewing everything in the next days.

Finally got this fixed!
Use version 1.3.2 :)
Sorry for the delay @jacksonw765 @Shahmirzali-Huseynov @chihuy105
Thank you @agostinofiscale for pointing out how to reproduce this issue!


Add color background

we can add colors to the background to make it more attractive

Please assign this issue to me under gssoc'24 EXTENDED with label gssoc'24 and hacktoberfest.

We can add colors to the background to make it more attractive as well as in div boxes.
please assign me this task.

we will look for this later and we don't require this for now, so i am closing this issue, Please Understand.


Add helper blurActiveElement

Motivation/Description of the PR
I created helper blurActiveElement to remove repeated code.
Applicable helpers:

[x] WebDriver
[x] Puppeteer
[x] Nightmare
[ ] REST
[ ] FileHelper
[ ] Appium
[ ] Protractor
[ ] TestCafe
[ ] Playwright

Applicable plugins:

[ ] allure
[ ] autoDelay
[ ] autoLogin
[ ] customLocator
[ ] pauseOnFail
[ ] puppeteerCoverage
[ ] retryFailedStep
[ ] screenshotOnFail
[ ] selenoid
[ ] stepByStepReport
[ ] wdio

Type of change

[ ] :fire: Breaking changes
[ ] :rocket: New functionality
[ ] :bug: Bug fix
[ ] :clipboard: Documentation changes/updates
[ ] :hotsprings: Hot fix
[ ] :hammer: Markdown files fix - not related to source code
[x] :nail_care: Polish code

Checklist:

[ ] Tests have been added
[ ] Documentation has been added (Run npm run docs)
[ ] Lint checking (Run npm run lint)
[ ] Local tests are passed (Run npm test)

Unfortunately, this breaks tests on CI

Please reopen if you will be able to fix that


Feature/link fixes and additions

For full context on this PR: https://github.com/microsoft/vscode/pull/98238
The PR was rejected due to adding the concept of workspace:// and project:// to links, which would be nice to have, but that PR did fix some other issues with handling of links with todays features as well.
This PR removes the workspace and project protocol link handling and instead fixes the bugs mentioned around display the links as well as clicking the links themselves when using @link.
General Features:

Fix for cases when using {@link https://www.google.com|Link Name} so it doesn't link to https://www.google.com|Link
Allow file:// protocol to use relative linking.  Today file://../file.ts would fail among other cases mentioned below.
Allow using the jsdoc @link syntax of {@link https://www.google.com A name for the link}
Fix handling of relative linking in hovers and popups where possible so they link relative to the file the type is defined in and not the file the person is viewing it from.  See https://github.com/microsoft/TypeScript/issues/38738 for issue which makes this impossible in some places.
In the places that it is impossible to derive the location of the type and a link is encountered, it will not be rendered as a link in the hover.  This occurs sometimes with completions (but not all the time).  So it handles this intelligently.
Intercept and rewrite markdown links if necessary (currently markdown links will not work in preview hover if they use file:// relative paths)
Allow the use of fragments for global-level and preview links (currently broken in vscode upstream) (allowing linking to specific line/column via file.ts#3,1)

Examples
Below is an example that can be used to check the various cases that this resolves.
/**
 * - file:///Users/user/file.ts <- Absolute FileSystem
 * - file://./index.ts <- Relative File
 * - file://../index.ts <- Relative File in directory above itself
 * - [Relative to index via file://./index.ts]( file://./index.ts ) <- Relative File
 * - {@link file://./index.ts Relative to index via @link and file scheme}
 * - {@link file://./index.ts#3,2|Link to index.ts line 3, column 2}
 * - {@linkcode https://www.google.com Google Link as linkcode}
 * - https://www.google.com
 * - [Link To Google](https://www.google.com)
 */
export const links = {}

Importantly, the links will properly resolve the relative paths when the hover/previewer is rendered from a path outside of the path links is defined within.

Extras

Would really like to get project path support in here if possible (and workspace would be nice as well).  Perhaps instead of a protocol we could go with the recommended method mentioned in the PR of using a magic string which is what is done by Flow team for handling these cases?  Something like {@link file://<PROJECT_PATH>/... or something along these lines.

I could have that working in a matter of hours since it would just need to adapt what I had already done with the protocol paths.

Hoping we can discuss and merge @mjbvz

Closing this since we'd like more community feedback before investigating the additional types of links proposed
The TypeScript team has committed to basic JSDoc @see and @link tag support (https://github.com/microsoft/TypeScript/issues/35524) so please also continue following  that issue

Closing this since we'd like more community feedback before investigating the additional types of links proposed
The TypeScript team has committed to basic JSDoc @see and @link tag support (https://github.com/microsoft/TypeScript/issues/35524) so please also continue following  that issue


Cannot cast [app] to IEndpointRouteBuilder on Startup.cs

Hello, on old API style (startup.cs) using app.UseFastEndpoints() causes an Exception: Cannot cast [app] to IEndpointRouteBuilder.
To solve I used directly endpoints.MapFastEndpoints() on app.UseEndpoints configuration
Maybe this could fix (untested)
public static IApplicationBuilder UseFastEndpoints(this IApplicationBuilder app, Action<Config>? configAction = null)
{
    switch (app)
    {
        case IEndpointRouteBuilder routeBuilder:
            MapFastEndpoints(routeBuilder, configAction);
            break;

        case IApplicationBuilder applicationBuilder:
            applicationBuilder.UseEndpoints(routeBuilder => MapFastEndpoints(routeBuilder, configAction));
            break;

        default: throw new InvalidCastException($"Cannot cast [{nameof(app)}] to IEndpointRouteBuilder");
    }

    return app;
}

yes you are meant to use MapFastEndpoints() directly in this situation:
https://github.com/FastEndpoints/FastEndpoints/blob/c9834c6cfadf4cfefd17194e71353910ced92d2c/Src/Library/Main/MainExtensions.cs#L47
also i don't think it's a good idea to do:
case IApplicationBuilder applicationBuilder:
    applicationBuilder.UseEndpoints(routeBuilder => MapFastEndpoints(routeBuilder, configAction));
    break;

because there's some instances that requires the UseEndpoints() as the last middleware in the pipeline. for example when doing UseSpa() like so:
var builder = WebApplication.CreateBuilder();
builder.Services.AddFastEndpoints();

var app = builder.Build();
app.UseRouting(); //should be before auth/cors/fastendpoints middlewares.
app.UseAuthorization();
app.UseFastEndpoints();
app.UseEndpoints(_ => { }); //should be right after UseFastEndpoints(). this is the terminating middleware for endpoint routes.

if (app.Environment.IsDevelopment())
    app.UseSpa(x => x.UseProxyToSpaDevelopmentServer("http://localhost:8001"));

app.Run();


update flask version in this repo, sync PR from odd-devfiles/python-ex

same reason refer to https://github.com/odo-devfiles/python-ex/pull/1

move to #3


Docker authentication issues (multiple agents on the same host and user)

Problem:
We're running seven agents on a single host under the same user. When jobs are instantiated, using Docker containers, pull randomly fails because all agents use the same (default) DOCKER_CONFIG=/home/${USER}/.docker.
##[section]Starting: Initialize containers
##[command]/usr/bin/docker version --format '{{.Server.APIVersion}}'
'1.40'
Docker daemon API version: '1.40'
##[command]/usr/bin/docker version --format '{{.Client.APIVersion}}'
'1.40'
Docker client API version: '1.40'
##[command]/usr/bin/docker ps --all --quiet --no-trunc --filter "label=8fa541"
##[command]/usr/bin/docker network prune --force --filter "label=8fa541"
##[command]/usr/bin/docker login --username "***" --password-stdin ***
WARNING! Your password will be stored unencrypted in /home/azure/.docker/config.json.
Login Succeeded
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

##[command]/usr/bin/docker pull ***.azurecr.io/***:496340
Error response from daemon: Get ***/v2/***/manifests/496340: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information.
##[warning]Docker pull failed with exit code 1, back off 7.8 seconds before retry.
##[command]/usr/bin/docker pull ***.azurecr.io/***:496340
Error response from daemon: Get ***/v2/***/manifests/496340: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information.
##[warning]Docker pull failed with exit code 1, back off 3.625 seconds before retry.
##[command]/usr/bin/docker pull ***.azurecr.io/***:496340
Error response from daemon: Get ***/v2/***/manifests/496340: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information.
##[command]/usr/bin/docker logout ***
Removing login credentials for ***.azurecr.io
##[error]Docker pull failed with exit code 1
##[section]Finishing: Initialize containers

Proposal:
Set DOCKER_CONFIG in systemd service unit on agent instantiation to different location, inside the agent root directory.

Still an issue

up how to solve this?

up how to solve this?

See the PR which I proposed but didn't get merged.


usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/lib/python2.7/dist-packages/turicreate/cython/cy_unity.so)

Hi,
While importing turi create in Linux i am seeing the following issue :-
import turicreate as tc
File "/usr/local/lib/python2.7/dist-packages/turicreate/init.py", line 30, in
from turicreate.data_structures.sgraph import Vertex, Edge
File "/usr/local/lib/python2.7/dist-packages/turicreate/data_structures/init.py", line 18, in

from . import sframe
File "/usr/local/lib/python2.7/dist-packages/turicreate/data_structures/sframe.py", line 16, in
from ..connect import main as glconnect
File "/usr/local/lib/python2.7/dist-packages/turicreate/connect/main.py", line 13, in
from ..cython.cy_unity import UnityGlobalProxy
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/lib/python2.7/dist-packages/turicreate/cython/cy_unity.so)
My setup.sh ::-
pip install --upgrade pip
sudo apt-get update
sudo apt-get install -y libblas3 liblapack3 libstdc++6 python-setuptools
pip install pandas
pip install turicreate==4.0
pip install numpy
pip install matplotlib
pip install sklearn

@suypadhye - I'm going to close this issue. Please reopen if you are stilling having an issue.

i have a the same issue when i try to run apt commands in the terminal like
apt-get
the result is :
apt-get: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.26' not found (required by /usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0)
`


Sections using RTL combined with paddings cause line artifacts in Outlook

Describe the bug
When using RTL and paddings with mj-section and 1 or more inner mj-column, Outlook renders vertical line artifact.
To Reproduce
Steps to reproduce the behavior:

Create a file with this MJML code or insert into the MJML web app:

<mjml>
    <mj-body background-color="#000">
          <mj-section direction="rtl" padding="16px" background-color="#fff">
              <mj-column>
                  <mj-text>

test

                  </mj-text>
              </mj-column>
              <mj-column>
                  <mj-text>

test

                  </mj-text>
              </mj-column>
          </mj-section>
    </mj-body>
</mjml>

Render it to HTML via CLI or MJML web app
Send the HTML to an email address with Litmus PutsMail
View email in Outlook
See error

Expected behavior
To render without artifacts
MJML environment (please complete the following information):

OS: Windows
MJML Version 4.9.3 (web app editor) and 4.14.1 (local/npm)
MJML tool used: Web app and npm package

Email sending environment(for rendering issues):

Platform used to send the email: PutsMail

Affected email clients (for rendering issues):

Email Client: Outlook 365
OS: Windows

Screenshots

Additional context
Works fine if RTL or padding are omitted.

Hi,
I've closed a similar issue about this recently : https://github.com/mjmlio/mjml/issues/2745#issuecomment-1720918281
It's a bug within outlook and not really in MJML. We can't really do anything about this, try to play with font-size/line-height/padding/...

Is there a setup/configuration that anybody knows how to prevent this reliably?


Map Freeze after doing pinch and scroll when something is open above map into the stack.

After loading the pins on the map if the user clicks on the pin we display the bottom sheet of pin information and if the user pinchs and closes the bottom sheet and again if the user scrolls into the map then the map freezes. We have to reload the map again to work properly.
Expected behavior
A map should run smooth scrolling.
Smartphone (please complete the following information):

IOS  > 16

Flutter version 3.19.5

I have faced a similar issue

I'm also facing the same issue.

I'm also facing the same issue, is it resolved or not ?

Same problem here, any news?


Filter search term highlight

Please add ability to highlight text matched by filter similar to search result highlighting in data tables. datatables.net/blog/2014-10-22

This has already been requested in #1527. We'll track it there. Thanks!

Hey, just implemented the global search but I'm not seeing anything regarding highlighting in issue #1527

It is possible to get the current filters state — both for the regular filters and for the global filter — inside the Cell method of the columns options.
They're available inside the state, so for the global filter we can get it like this (imagine this being inside the columns definition and having a highlight function that would do the work for you):
Cell: ({ cell: { value }, state: { globalFilter } }) => highlight(value, globalFilter)

If anyone looking for a highlighting implementation that might work well with right-to-left languages like Arabic and respects case of highlighted item then here is what I did:
import React from 'react';
import { CellProps } from 'react-table';

// if you use `dangerouslySetInnerHTML` you must sanitize your values most likely
import DOMPurify from 'dompurify';

export function HighlightableCell<T extends object>({
  cell: { value },
  state: { globalFilter: searchTerm },
}: CellProps<T, string>) {
  if (!searchTerm) {
    return
{value}
;
  }

  const searchRegex = new RegExp(`(${escapeRegExp(searchTerm)})`, 'ig');
  const highlightedText = value.replace(searchRegex, '$1');

  return
;
}

// from this line below is from lodash.escapeRegExp
const reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
const reHasRegExpChar = RegExp(reRegExpChar.source);

function escapeRegExp(string: string): string {
  return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, '\\$&') : string || '';
}

And in your table definition:
  const columns = React.useMemo(
    (): Column<YourMightyRowObject>[] => [
      {
        Header: 'Phone number',
        accessor: 'phoneNumber',
        Cell: HighlightableCell,
      },
      // ...
]);


Ability to choose source language

@xanderblinov could you reviews this PR? Templates isn't my competention =) Thx!


Reduce seemingly inactive / dead time

Is your feature request related to a use-case? Please describe.
Currently for larger repositories, the program blocks for quite a bit (~10s of seconds) and ultimately spits out all the output.
This sometimes poses the question if the program does anything at all and surely caused a few CTRL+C actions, when it actually was running just fine.
Describe the solution you'd like
Currently one giant documentation object is created and then displayed, but it would be much more flexible if we would work on a per document basis.
With that said, a worker pool could be utilized to do the actual checking and the output could be an async core just processing an mpsc channel.
Describe alternatives you've considered

Use rayon with a split into documents, that would reduce the time of initial blockage and would be a low hanging fruit.
Add a progress bar, but that would only add complexity to the codebase without any speedup, and adds an additional burden to impl it in the future.

So both alternatives are kind of :banana:

Relevant files:

documentation.rs
check.rs
main.rs

The rayon impl is already done, currently nlprule takes quite a bit of time to parse the inbaked rules data. So that's something left todo.

https://github.com/bminixhofer/nlprule/pull/66 remedies the nlprule upfront loadtime a bit, but not quite enough to close this

Now processing is async so, output is not bound to all the processing being complete anymore. The whole thing is now somewhat  latency optimized.
The remaining item is to cache the nlprule::Tokenizer so the initial loading time is kept to a minimum, which will require changes to nlprule and - if one wants to avoid regex recompilation - also to fancy_regex/regex.


Minor fixes in image registry docs

The image registry doc uses some outdated commands such as .. deploy registry and force-deploy. Small commit to fix them here.

fixed in #1661


Placements/Internships updates

Create a framework for uploading updates in the interviews app so that new news can be uploaded with Ease. Create a provision for filtering based on company as well

GitMate.io thinks a possibly related issue is https://github.com/monsij/StudentPortal/issues/26 (Screenshots update).

Hey @monsij !
Can you help me getting what is needed for this?
I mean do you need a page to upload the news and other things or something else?

Yes @gutsytechster . Will contain updates in a posts format each containing label of a company. Each post will contain some information, maybe the students selected or maybe the scheduled interview date and location.

Hey can I be assigned to it @monsij!

Assigned : @gutsytechster

Hey @monsij, this is how it looks if we use Django's admin panel to create entries for internships.
Though only admin would be allowed to do that. It means not even a login user to your system can do that. There would be other credentials for entering into django's admin panel created by django command python manage.py createsuperuser

Add more fields like dept open to, extra information

Yeah! this was just a prototype. I would add more fields as required.

Hey @monsij, how does this layout look to you? For detailed information, the user will click on the know more about it link and the page will be redirected to the page containing detailed information.
I have yet to design that page. Before that I want to make sure if this page looks good to you!

Awesome ! . Just change "know more about it" to "More" and squash your commits if you haven't done so.

Hey @monsij, this is how the details will be displayed. Does it look ok?

Or does it look better?
@monsij ^^

The previous one is better

Is the one to be displayed after clicking on "More details" ? @gutsytechster

Also are these parameter enough for placments?
I was thinking of adding job designation, qualification needed, experience needed, last date to apply.
What do you think about it?

Add them.will modify them later

Solved : #84


NO-JIRA:Bump CPO Read API budget to 4000 in EnsureApiBudget

Bump CPO Read API budget to 4000 in EnsureApiBudget to stay in sync with 4.15

/lgtm


Module build above gradle level 1 failed

Expected Behavior
gradle build , success
Current Behavior
···
FAILURE: Build failed with an exception.

Where:
Build file '/Users/say/git/industry-server/usercenter-spring-boot-starter/build.gradle' line: 24

What went wrong:
A problem occurred evaluating project ':usercenter-spring-boot-starter'.

Project with path ':usercenter-spring-boot-autoconfigure' could not be found in project ':usercenter-spring-boot-starter'.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org
···

Context

Steps to Reproduce
Module build above gradle level 1
Your Environment
gradle 5.6.2
java

It looks like you might be mixing up separate builds from multi-project builds.  To be able to refer to other projects by their path (:usercenter-spring-boot-autoconfigure), all of the projects need to be in the same build.  There should be only one settings.gradle in the root-most project of the build.

@big-guy That's not a stand-alone project.


Error when creating Conda environment on Linux

Problem
An error occurs when I attempt to create conda environment in Linux (Ubuntu 20.04). This is a known issue.
The reason this happens is because @blackrosedragon2 created the environment on his Windows machine and some packages may not be available for other platforms.
Here is the yaml I get when I export the environment after installing with requirements.txt:
name: adl_env
channels:
  - defaults
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=4.5=1_gnu
  - ca-certificates=2021.7.5=h06a4308_1
  - certifi=2021.5.30=py38h06a4308_0
  - ld_impl_linux-64=2.35.1=h7274673_9
  - libffi=3.3=he6710b0_2
  - libgcc-ng=9.3.0=h5101ec6_17
  - libgomp=9.3.0=h5101ec6_17
  - libstdcxx-ng=9.3.0=hd4cf53a_17
  - ncurses=6.2=he6710b0_1
  - openssl=1.1.1k=h27cfd23_0
  - pip=21.2.2=py38h06a4308_0
  - python=3.8.11=h12debd9_0_cpython
  - readline=8.1=h27cfd23_0
  - setuptools=52.0.0=py38h06a4308_0
  - sqlite=3.36.0=hc218d9a_0
  - tk=8.6.10=hbc83047_0
  - wheel=0.36.2=pyhd3eb1b0_0
  - xz=5.2.5=h7b6447c_0
  - zlib=1.2.11=h7b6447c_3
  - pip:
    - numpy==1.21.1
    - pillow==8.3.1
    - torch==1.9.0
    - torchvision==0.10.0
prefix: /home/crocoder/anaconda3/envs/adl_env

Just to compare, here is the current environment.yml:
name: adversarialDl
channels:
  - pytorch
  - defaults
dependencies:
  - blas=1.0=mkl
  - ca-certificates=2021.7.5=haa95532_1
  - certifi=2021.5.30=py38haa95532_0
  - cudatoolkit=10.2.89=h74a9793_1
  - freetype=2.10.4=hd328e21_0
  - intel-openmp=2021.3.0=haa95532_3372
  - jpeg=9b=hb83a4c4_2
  - libpng=1.6.37=h2a8f88b_0
  - libtiff=4.2.0=hd0e1b90_0
  - libuv=1.40.0=he774522_0
  - lz4-c=1.9.3=h2bbff1b_1
  - mkl=2021.3.0=haa95532_524
  - ninja=1.10.2=h6d14046_1
  - olefile=0.46=py_0
  - openssl=1.1.1k=h2bbff1b_0
  - pillow=8.3.1=py38h4fa10fc_0
  - pip=21.2.2=py38haa95532_0
  - python=3.8.11=h6244533_1
  - pytorch=1.9.0=py3.8_cuda10.2_cudnn7_0
  - setuptools=52.0.0=py38haa95532_0
  - sqlite=3.36.0=h2bbff1b_0
  - tk=8.6.10=he774522_0
  - torchvision=0.10.0=py38_cu102
  - typing_extensions=<IP_ADDRESS>=pyh06a4308_0
  - vc=14.2=h21ff451_1
  - vs2015_runtime=14.27.29016=h5e58377_2
  - wheel=0.36.2=pyhd3eb1b0_0
  - wincertstore=0.2=py38_0
  - xz=5.2.5=h62dcd97_0
  - zlib=1.2.11=h62dcd97_4
  - zstd=1.4.9=h19a0ad4_0
prefix: C:\Users\Harshit\Anaconda3\envs\adversarialDl

Possible Resolution
Most common resolution is to remove extra packages, and remove versions from those which are not hard requirements. This will be need someone to do it manually.
Another option is to create separate, platform-dependent environment files.

Thanks for mentioning that @gchhablani, do you want to take this up ?

@someshsingh22 Sure, how do you want to resolve this?

Using a separate file for each environment will be cumbersome, wdyt?

@gchhablani The error I am receiving is mentioned here so I think its not a good ide to use .yml lets rather stick to requirements.txt https://stackoverflow.com/questions/48439159/failed-to-create-anaconda-environment-resolvepackagenotfound

Removing environment.yml