Support copying to clipboard on Wayland

Implement automatic copying of TOTP codes to clipboard on Wayland sessions.
Detection of Wayland vs X11 is done by checking the presence of the WAYLAND_DISPLAY environment variable.
The copy is performed using the wl-copy command from the wl-clipboard package, which is the same dependency that pass uses.
The clipboard type (primary/clipboard) is tweakable like for X11, with the same environment variable, and defaults to clipboard like for X11.

Related: https://github.com/WhyNotHugo/totp-cli/pull/19

Thanks


Arc-length parameterization

It'd be great if there was a built-in option to reparameterize the spline based on arc length, so that it has continuous velocity. See this page for an explanation.
I've implemented this, I'd be happy to submit a pull request, if you think it'd be useful.
Oh and just wanted to say thanks for this; it's by far the easiest and nicest-looking path smoothing solution out there, at least for the sorts of things I do!

You're welcome ! I'd love to know what you use it for !
I'm not sure I see how you're able to reparametrize from inside the interpolator, given it computes one point per call, but I'd love to see the code. Maybe this would fit better in another module that depends on this one, I'm not sure, but post the PR if you have it ready or post your impl in a gist and we'll talk about it !

sorry for the weird spacing, here's a gist: https://gist.github.com/jeremyabel/ce6040ea999218c6517c44eb658aff9a
So basically the issue is that in the raw b-spline, the distance covered on the spline between t = 0.1 and t = 0.2 might not be the same as the distance covered between 0.2 and 0.3. So if you imagine a car moving on the spline at some constant rate per frame, then the car will slow down on tight curves and speed up on straighter portions. In my application, the b-spline is being used as an animation path, so having control over the rate of change of the speed of whatever you're animating along the path is critical.
The solution to this is to reparameterize the spline in terms of it's arc length. So you'd say "I want to be 50% of the way along this spline" as opposed to saying "I want to be at t = 0.5 along this spline".

I get it. I got "speed control" implemented using pseudo-knots in another module (https://github.com/thibauts/cubic-hermite-spline). You wouldn't get constant speed though, if that's what you're looking for.
Looking at your code I think it would fit better in another module that layers on this one. This module doesn't precompute anything, each point being evaluated upon call with a specific t.
In a perfect world I (or somone else) would have implemented Nth-order derivatives using the blossoms approach (a twist on De Boor's algorithm) and you could do something like integrate it's absolute value to get a direct time / arclength map, but I'm not even sure it would lead to better or faster results.
Anyway, what could be nice would be 2 modules :

one returning an array of raw interpolated points given curve params and a tesselation precision (nSegments), named like tesselate-bspline.
a second using the first one and resampling it based on arclength. Maybe reparametrize-bspline though the name probably wouldn't be very discoverable.

These are only broad suggestions based on my own habits but I think this would maximize reuse and separation of concerns.

+1 :)


How to install php-protobuf  in xamp (Window) .

Hi please help me i want to install php-protobuf in xamp on window.but i have no idea how it will be installed .when i run protoc-php.php its show "requires protobuf extension installed to run". how can i install this extension ??
Thanks

try this
https://github.com/chobie/php-protocolbuffers/wiki/Tutorial

@mrjoebudi  its show "phpize is not recognized as an internal or external command ??

I have compiled the binaries to both thread safe and non-thread safe. I don't know if you still need them but here they are anyway.
https://www.dropbox.com/s/3d9g9ozxq0z9h3x/php-protobuf_x86.zip?dl=0
Binaries are compiled for PHP 5.6 x86
Here's the virustotal:
https://www.virustotal.com/en/file/22be40d7acb4eb43a4a14205d68726bba4e6de66a367f65566029d349e365825/analysis/1451938893/
SHA256: 22be40d7acb4eb43a4a14205d68726bba4e6de66a367f65566029d349e365825

@Gielert  You've wrote new config.w32 right? If yes can I see your config.w32 script? :)

ARG_ENABLE("protobuf", "whether to enable protobuf support","no");

if(PHP_PROTOBUF != "no") {
	AC_DEFINE("HAVE_PROTOBUF", 1, "Whether you have protobuf extension");
	EXTENSION("protobuf", "protobuf.c reader.c writer.c", true);
}

Here you go :D

How can I intall DLLs Gilbert? Help Please!

@Gielert can you please build for php5.6 64bit please, And I need curve25519 too

Sure thing. I will try to build the 64bit versions.
On Mar 31, 2016 08:52, "dswtech"<EMAIL_ADDRESS>wrote:

@Gielert https://github.com/Gielert can you please build for php5.6
64bit please, And I need curve25519 too
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/allegro/php-protobuf/issues/56#issuecomment-203787679

@Gielert can I use on OSX 64 bit? please guide

If you're on osx, you could just follow the original install guide. You
should have installed PHP and compilers. This can be accomplished with
homebrew for mac.
On Apr 3, 2016 16:25, "Adnan Siddiqi"<EMAIL_ADDRESS>wrote:

@Gielert https://github.com/Gielert can I use on OSX 64 bit? please
guide
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/allegro/php-protobuf/issues/56#issuecomment-204985052

@Gielert I am using MAMP. Are you suggesting to install php-protobuf via Brew?

Try this: http://verysimple.com/2013/11/05/compile-php-extensions-for-mamp/
On Apr 3, 2016 19:48, "Adnan Siddiqi"<EMAIL_ADDRESS>wrote:

@Gielert https://github.com/Gielert I am using MAMP. Are you suggesting
to install php-protobuf via Brew?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/allegro/php-protobuf/issues/56#issuecomment-205021258

@Gielert Did you ever compile an x64 version for 5.6 XAMP?

@oneleft @dswtech As per request, I have compiled the x64 versions as well. Both the Thread-safe and Non Thread-safe are in the zip.
https://www.dropbox.com/s/lfhox1rm80xidw6/php-protobuf_x64.zip?dl=0
Here's the virustotal:
https://www.virustotal.com/nl/file/2a09a2e4259379d228c73ee0b1c524132b79fdc80d11b0ac96ee39c38efdb854/analysis/1463844140/
SHA256: 2a09a2e4259379d228c73ee0b1c524132b79fdc80d11b0ac96ee39c38efdb854

@Gielert Did you latest compile x86 and x64 ..  .. thank you if you have it

不错

is it still working for XAMP ?
im trying to setup chat api but it is not working for me,
I have a 32 bit environment and I've done the below:
1- update the chat api package to receive the WA Password (fix 'old version' issue)
2- downloaded the dlls you share and place it in the xamp/php/ext folder
3- edit php.ini & add extention=protobuf & extention=curve25519
but still not able to connect to google to get the contact numbers & not able to send Whatsapp
could you please help ?

@Gielert Hi sir,
Any compiled version for PHP7.2.7 and x64 ? Windows 7.
Thank you


fix: return risk level after questionnaire response is submitted

This changes the workflow for generating a questionnaire response risk summary. New workflow:

After a questionnaire response is submitted, calculate the scores
Based off the score, generate a risk summary
Store the risk summary as FHIR RiskAssessment resource
Return the risk summary i.e either High Risk / Low Risk (For now)

Review Checklist

Summary*

[ ] fix: Bug fix for Add the items tackled here as checklists
[x] feat: Completed task
[ ] chore: Incomplete task

[ ] test: Sub-task 1

Structure*

[ ] The Pull Request has a proper title that conforms to our MR title standards
[ ] The Pull Request has one commit, and if there are more than one, they should be squashed
[ ] The commit should have a proper title and a short description
[ ] The commit must be signed off
[ ] Unused imports are not present
[ ] Dead code is not present
[ ] Ensure dry running library to confirm changes

Tests

[ ] Proper and high quality unit, integration and acceptance(if applicable) tests have been written
[ ] The coverage threshold should not be lowered

Sign off*

[ ] All comments have been resolved by the reviewers
[ ] Approved by Czar {replace_with_czar_name}
[ ] Signed off by second reviewer {replace_with_name}
[ ] Ensure all checks are done before merging :warning:
[ ] All PRs needs to be signed before merging :warning:

N/B:

Add a checklist if more than one item is done.
Add screenshots and/or images where necessary
Indicate any breakages caused in the UI :exclamation:
Where necessary, indicate which issue the Pull Request solves (Closes #)
Any new files are updated in the folder structure in the README

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

-3 of 69 (95.65%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.01%) to 83.35%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/clinical/usecases/clinical/questionnaire_response.go
65
68
95.59%

Files with Coverage Reduction
New Missed Lines
%

pkg/clinical/usecases/clinical/questionnaire_response.go
1
97.09%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
6668

Relevant Lines:
8000

💛  - Coveralls


Complete issue-credential functionality

Background
As a tenant of the Aries VCR Issuer Agency, I want to be able to issue credentials to the Registry. One of the more complex aspects of issuing credentials using Aries Cloudagent Python is handling the asynchronous nature of credential issuance: once a request to issue a credential is submitted to the agent, the controller will receive updates on the process in two ways:

an immediate response to the request, stating whether the request was accepted or not
one or more asynchronous updates to the state of the workflow received by the controller in the form of a webhook.

To simplify the workflows that a tenant needs to implement in order to issue credentials, we want to hide the asynchronous nature of credential issuance and map it to a regular API request so that:

a request is made to the issuer agency controller to issue one or more credentials
the controller starts processing the requests, and does not respond to the calling tenant until it is able to compute whether all the credentials submitted have been successfully issued or not (or a sufficiently long timeout has expired)
a response is then compiled and sent back to the calling tenant

Proposed Solution
The proposed solution is a high-level description of how the above scenario could be handled in the issuer controller using custom events.

The issuing tenant submits a request to the issuer controller
In a before hook, the controller creates and registers a new custom event (naming to be defined, it could use the tenant's canonical name + a timestamp or a UUID to be uniquely identifiable), and adds its identifier to the current request context.
A global object with the same name of the event is registered at the level (e.g.: this.app.set('my-custom-event', { credentials: [], results: [] });): the object will contain a list of strings representing each credential issue request, as well as a results object that will e populated as the credentials are issued.
For each credential that was requested to be issued, a sub-event will be created, registered, and added to the list of custom events corresponding to the current request. The credential exchange id can be used as the identifier that is added to the named event array.
In a after hook, the handler will check whether the list of sub-events is empty: this would mean the request is ready to be completed and a response sent back to the issuer. If it is not empty, a retry after some time would be added: this process would continue until all of the credential events are cleared. Event handling triggering the response if the main event is fired would also need to be implemented.
The webhooks endpoint would take care of firing each credential issuance event, which would cause the update of the global events object by removing the credential that was processed, and adding the appropriate result to the array of results.
At the end of the process, the issuing tenant would receive the response containing the results for all of the credentials that it tried to issue.

Additional Notes
As stated, this is a rough idea of how things could be handled and there are additional considerations that can be made as the development work proceeds:

it may be possible to do away at least partially with having to maintain a shared state, and rather use native JS events for everything other than tracking the final result.
the final result must respect the same ordering in which the credentials were received, for reconciliation purposes. This means, that if the request was something like ['cred1', 'cred2', 'cred3'] the corresponding result must be something like ['cred1res', 'cred2res', 'cred3res'].
the possibility of using a queueing system to store the state should be considered, although it does not need to be implemented right now. Ideally, this would be a plug-in configuration (e.g.: if a queue is configured use it, otherwise handle things in-memory).
an appropriate timeout after which a request might be considered rejected should be considered and managed (it could be a configuration).
it might be a good idea to add a limit to the number of credentials that can be submitted in the same request, anything over this limit would be immediately returned with the indication that it was not processed.
another option is to limit issuance to one credential per time and deal each request as a single event (this may simplify event handling, but potentially generate additional load on the system).

Adding a beautifully drawn draft of the architecture @amanji and I have been brainstorming this morning for reference.

@amanji I believe we can close this as the work was merged in #8, correct?


Performance optimizations for mysqlconn.

Mostly around re-using buffers for reading and writing packets.
Also by-passing the BufferWriter for some obvious cases.
Also in this change:

Using copy() directly for strings into []byte.
Adding a benchmark.
Adding ComQuit support. Mostly to avoid error message on server side.

At a high level, this change looks pretty complex. I'm more worried about the fragility, like how easily the code could break if we made changes. Did the benchmarks show substantial improvements?

I think you'll benefit from using sync.Pool instead: https://golang.org/pkg/sync/#Pool. It should be more efficient, and also safer because you may not have to treat a pool from the buffer much differently than an allocated pool. Here's how fmt uses it: https://golang.org/src/fmt/print.go?s=4772:4849#L127.

@sougou I added the check we talked about, so we don't read from the ephemeral buffer if we're writing into it. The other way around would mean changing readEphemeralBuffer() into startReadingEphemeralBuffer() and add a stopReading() to reset the state. I think that's a bit too cumbersome and overkill... What do you think?


Translated using Weblate (Basque)

Currently translated at 90.7% (842 of 928 strings)
Translation: plone/volto
Translate-URL: https://hosted.weblate.org/projects/plone/volto/eu/

@weblate you need to sign the Plone Contributor Agreement to merge this pull request.
Learn about the Plone Contributor Agreement: https://plone.org/foundation/contributors-agreement


[3.0] Placing Enderchests places different blocks depending on facing

Per title, it places dirt, blackstone or birch planks it seems

Fixed


Delete Selected Photos?

Hi,
First of all, Thank you very much for this library. I want to know how can I ask the user if he wants to delete selected photos from camera roll or not. I already knew how we can do it with default ImagePickerController but not with this library.
I know there is one issue related this question but I didn't get it.
Thank you in advance.

Hi again,
Sorry to bother you but I found the solution so I will close this issue. I attached the code so if other want to do the same they can use it.
var tempPHAssets : [PHAsset] = []
//...
pickerController.didSelectAssets = { (assets: [DKAsset]) in
for asset in assets{
self.tempPHAssets.append(asset.originalAsset!)
}
PHPhotoLibrary.sharedPhotoLibrary().performChanges( {
PHAssetChangeRequest.deleteAssets(self.tempPHAssets)
},
completionHandler: { success, error in
print("Finished deleting asset. %@", (success ? "Success" : error))
})
}

👍


Add try / catch to examples. Fixes #617

Fixes #617
Checklist

[x] I have made a material change to the repo (functionality, testing, spelling, grammar)
[x] I have read the [Contribution Guide] and my PR follows them.
[x] I updated my branch with the master branch.
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation about the functionality in the appropriate .md file
[ ] I have added in line documentation to the code I modified

Adds try / catch for all call examples in /examples

Nice, thanks @hjmsw! This is on our backlog for implementation.

Hello @hjmsw,Thanks again for the PR! We appreciate your contribution and look forward to                                              continued collaboration. Thanks!                                             Team SendGrid DX


Platform view scenario test race has condition when creating the view

The scenario app uses a map to indicate if a PlatformView id is in using (https://github.com/flutter/engine/blob/1833429a63ab1a40fc1040d0386ae71891a77473/testing/scenario_app/lib/src/platform_view.dart#L1780).
The map, however, is populated asynchronously during the "create" Platform channel call: https://github.com/flutter/engine/blob/1833429a63ab1a40fc1040d0386ae71891a77473/testing/scenario_app/lib/src/platform_view.dart#L1857-L1883
So a new addPlatformView is invoked before the first one completes, it will override the previous PlatformView. This cause a race condition and potential flaky test.
The Flutter framework prevents this situation from happening but the engine should still be resilient of this situation. A separate issue is created to track the engine fix: https://github.com/flutter/flutter/issues/125913

Fixed by https://github.com/flutter/engine/pull/47575


Rename iot-device-registry to iot-device-registry-file

@enmasse-ci run tests testcase=standard.SmokeTest profile=systemtests-smoke


Bug with two parameters in route

Hey there, just giving this a whirl but there seems to be a bug when trying to use two {...} parameters in a route. I tried this code:
$router = new \RapidRoute\Router($compiledRouterPath, function (\RapidRoute\RouteCollection $routes) {
	$routes->get('/', 'News@index');
	$routes->get('/news/page/{slug}', 'News@article');
	$routes->get('/news/feed', 'News@article');
	$routes->get('/news/{num}/{slug}', 'News@article'); // bug here
});

$router->setDevelopmentMode(true);
$result = $router->match('GET', '/news/123/hello');

When I run it I get an error:

Notice: Undefined offset: 1 in /.../vendor/timetoogo/rapid-route/src/Compilation/TreeBasedRouterCompiler.php on line 221
Parse error: syntax error, unexpected ']' in /.../cache/RapidRouter.php on line 49

RapidRouter.php is my cache file. The code around line 49 is this, you can see the 'slug' array key does not have a value.
if ($s1 !== '') {
    switch ($method) {
        case 'GET':
        case 'HEAD':
            return [2, 'News@article', ['num' => $s1, 'slug' => ]]; // line 49
        default:
            $allowedHttpMethods[] = 'GET';
            $allowedHttpMethods[] = 'HEAD';
            break;
    }
}

Hope this helps :)

Thanks for pointing this out in such detail.
This issue should now be resolved.


Fix for RmlUIComponent::SetResource() re-entry crash in editor

In the editor, If a scene has an RmlUIComponent in it, the second time it is loaded in play mode it will crash when binding because its DataModelConstructor has already been created. Returning the pre-existing DataModelConstructor solves this.

@plumgames I am uncomfortable with working around our bugs in 3rdparty code. This is a problem that should be fixed, but this is not the way to achieve that. It does not even solve the underlying problem of sharing data models, it only un-crashes it.
Let this PR stay open as a reminder of this issue.

Closing this because I later discovered this was an error on my part, I wasn't unloading the scene the component belonged to.


Fix hover cards

@ZzRanger Could you approve the deployment but not merge? Want to see if there's lag issues, thanks.

Looks good, can you add the course title in the hover card too?


Add stripe payment gateway

This PR adds stripe payment gateway to saleor.

[x] The code is ready
[ ]  Still working on the tests and docs.

Screenshots
Here is the screenshot with stripe gateway's default configurations:

Pull Request Checklist

[x] Privileged views and APIs are guarded by proper permission checks.
[x] All visible strings are translated with proper context.
[x] All data-formatting is locale-aware (dates, numbers, and so on).
[x] Database queries are optimized and the number of queries is constant.
[x] Database migration files are up to date.
[ ] The changes are tested.
[ ] The code is documented (docstrings, project documentation).
[x] GraphQL schema and type definitions are up to date.

No, it is basically a porting from django-payments with several minor enhancements.

Pretty happy to see a stripe payments PR.
@jxltom
Is this using stripe-elements, does the credit card data never touch the saleor server - are there some stripe docs I could read somewhere that show the flow that this PR follows?

@stephenmoloney The frontend is not using stripe-element currently, though you can implement it easiely no matter in saleor or saleor-storefront. The frontend is using stripe's checkout.js, tokenize credit card information, and pass it to saleor's backend API via payment_token. The sensitive card info will never touch the backend and then it is PCI compliant.
For more info about checkout.js, you could refer to https://stripe.com/docs/checkout. Basically it is a convenient wrapper of stripe.js.

thanks @jxltom

Update: The tests and docs are added. The only issue in codeclimate can be marked as WONTFIX.
This PR is ready for review. @maarcingebala @patrys @Pacu2 @NyanKiyoshi or whoever, reviews or any comments/thoughts/concerns are appreciated, thanks!

Thanks @jxltom!


Update wstest

Codecov Report

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

@@          Coverage Diff           @@
##           master    #961   +/-   ##
======================================
  Coverage    61.8%   61.8%
======================================
  Files          71      71
  Lines       12729   12729
  Branches     2030    2030
======================================
  Hits         7867    7867
  Misses       4182    4182
  Partials      680     680

Continue to review full report at Codecov.

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


Front vite Transform setting error

Bug Report
npm create vite@latest vite-react -- --template react-ts
cd vite-react
npm install
npm i -d<EMAIL_ADDRESS>npm i typia
npx typia setup
npm i -d rollup-plugin-typescript2

npx setup > npm , tsconfig.json
vite.config.ts > https://typia.io/docs/setup/#vite
play npm run dev

npm create vite@latest vite-react -- --template react-ts
cd vite-react
npm install
npm i -d<EMAIL_ADDRESS>npm install rollup-plugin-typescript2 typescript tslib --save-dev

vite.config.ts > https://typia.io/docs/setup/#vite
play npm run dev

bug that should probably be in rollup-plugin-typescript2... sorry.
I'd love to see this guide revised.!
Summary
OS : Window 11
Node : v18.14.0.
Code occuring the bug

I thought it wasn't a library for front, so I tried it with node and didn't succeed
I was wondering if you could look at
The repository is here


Adding few more courses and updating index

PR created for contribution in Hacktoberfest 2020
Hacktoberfest notes:

due to volume of submissions, we may not be able to review PRs that do not pass tests and do not have informative titles.
please read our contributing guidelines
be sure to check the output of Travis-CI for linter errors
if this is your first open source contribution, make sure it's not your last!

What does this PR do?
Add Resource(s) |  Add info | Improve Repo
For resources
Description
Added few more courses in Hindi
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
It contains  course lists
Checklist:

[x] Not a duplicate
[x] Included author(s) if appropriate
[x] Lists are in alphabetical order
[x] Needed indications added (PDF, access notes, under construction)

For youtube, we prefer "playlist" links and the name of the producer/creator.


Bump lambda_http dependency of aws-smithy-http-server to 0.8.0

This patch also removes the unneeded dependency on lambda_runtime by
aws-smithy-http-server-python.
This patch also refactors LambdaHandler's convert_event to avoid
cloning the URI path when not needed.
This is a breaking change. See #2676 why.
Checklist

[x] I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates

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

In CI, cargo +nightly-2022-11-16 minimal-versions check --all-features on aws-smithy-http-server fails with:
Checking mime v0.3.0
...
error[E0599]: the method `as_display` exists for reference `&FromStrError`, but its trait bounds were not satisfied
  --> aws-smithy-http-server/src/rejection.rs:18:13
   |
18 |     #[error("invalid `Content-Type` header value mime type: {0}")]
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `&FromStrError` due to unsatisfied trait bounds
   |
  ::: /opt/cargo/registry/src/github.com-1ecc6299db9ec823/mime-0.3.0/src/lib.rs:72:1
   |
72 | pub struct FromStrError {
   | ----------------------- doesn't satisfy `FromStrError: std::fmt::Display`
   |
   = note: the following trait bounds were not satisfied:
           `FromStrError: std::fmt::Display`
           which is required by `&FromStrError: DisplayAsDisplay`

Indeed, we require mime::FromStrError: std::fmt::Display, but said trait was first implemented in this commit, which first made its way out in mime 0.3.4. As to why minimal-versions is now picking mime 0.3.0 with this patch, it's because in lambda_http 0.7.3, they had mime = "0.3.16", and in lambda_http 0.8.0, they've now relaxed that to mime = "0.3".
I'll go ahead and bump the dependency of aws-smithy-http-server on mime to 0.3.4 and update the PR description.


using underscore vs dashes in page filename

how do I get grav to use underscore _ instead of dashes - in the pages filename?  I noticed that grav uses dashes in the page name when there are spaces or on default. I prefer underline.  Is there an admin panel option for this?
I see the option to put .html at the end of the page.  But it seems spaces in filename default to - instead of _ .  Any ideas?

@4evermaat no there's no such option at the moment. Add it to the Admin Plugin issues to be considered https://github.com/getgrav/grav-plugin-admin/issues/new


Refactor calls to super to python3 style

Coverage decreased (-0.01%) to 94.426% when pulling c23df743f5d77e8d412a1d2174e4b87aeb59fb8f on super-refactor into 9f948a0cc9f761925535e3f042e06c47cf3fd01d on master.


cannot apply on kubernetes - Message: Unauthorized! Token may have expired! Please log-in again. Unauthorized1]

Description
I'm trying to deploy simple spring boot app to Azure Container Service (AKS) while following simple tutorial: https://docs.microsoft.com/en-us/java/azure/spring-framework/deploy-spring-boot-java-app-using-fabric8-maven-plugin
For some reason the last part which is to apply deployment on cluster fails:  mvn fabric8:apply
However I can access the cluster and view its details so kubectl works fine but fabric8 doesn't, I can also run kubectl run gs-spring-boot-docker --image=acrdevwe.azurecr.io/gs-spring-boot-docker:latest and it also works fine.
Could you please advise how can I specify credentials that fabric8 should use to access kubernetes cluster ?
I'm running this on windows 10.
Error
[WARNING] F8: Cannot access cluster for detecting mode: Failure executing: GET at: https://<MY_CLUSTERNAME>.hcp.westeurope.azmk8s.io/. Message: Unauthorized! Token may have expired! Please log-in again. Unauthorized.
[DEBUG] Trying to configure client from Kubernetes config...
[DEBUG] Found for Kubernetes config at: [C:\Users\user.name.kube\config].
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.003 s
[INFO] Finished at: 2018-03-27T20:05:13+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.30:apply (default-cli) on project gs-spring-boot-docker: Failure executing: GET at: https://<MY_CLUSTERNAME>.westeurope.azmk8s.io/. Message: Unauthorized! Token may have expired! Please log-in again. Unauthorized. -> [Help 1]
Info
OS: WIndows 10

fabric8 v: 3.5.30
Maven version (mvn -v) : Apache Maven 3.5.3

Kubernetes / OpenShift setup and version :
If it's a bug, how to reproduce :
If it's a feature request, what is your use case :
Sample project : [GitHub Clone URL]

That's quite an old version of fabric8-maven-plugin. Which version of Kubernetes are you using? If by any chance you're on openshift/minishift; What does oc whoami return to you?
Also are you able to apply artifacts generated by fmp on your cluster directly(via kubectl apply -f ...)?

Hi,
Sending answers:
That's quite an old version of fabric8-maven-plugin. Which version of Kubernetes are you using?
I'm running this on kubernetes 1.9.2
If by any chance you're on openshift/minishift; What does oc whoami return to you?
No I only created AKS cluster in Azure and run everything there.
Also are you able to apply artifacts generated by fmp on your cluster directly(via kubectl apply -f ...)?
Yes I used mvn fabric8:resource which then produced file target\classes\META-INF\fabric8\kubernetes.yml then I run kubectl apply -f kubernetes.yml and it successfully apply all resources in kubernetes:
output:
secret "mysecrets" created
service "gs-spring-boot-docker" created
deployment "gs-spring-boot-docker" created
So it looks like f8 just can't authenticate even thought kubectl is in right context and I have permissions on k8  I wonder if there is a way to provide credentials like I've done it with images registry by specifying server in settings.xml... I also did not specified any env variables.

Hi,
I also updated fabric8 to v 3.5.38 however still have same error:
[INFO] --- fabric8-maven-plugin:3.5.38:apply (default-cli) @ gs-spring-boot-docker ---
[WARNING] F8: Cannot access cluster for detecting mode: Failure executing: GET at: https://.hcp.westeurope.azmk8s.io/. Message: Unauthorized! Token may have expired! Please log-in againd! Please log-in again. Unauthorized.

Hm, Are you able to reproduce this error locally on your machine i.e. on minikube? Otherwise, it might be some problem in your cluster configuration. Looking at the documentation, I also don't see any way to provide Kubernetes credentials; Although they have specified about logging into Openshift but simply via oc login command.

ok so this is something with AKS as it worked fine when installed on Kubernetes cluster installed through docker for windows:
[INFO] --- fabric8-maven-plugin:3.5.38:apply (default-cli) @ gs-spring-boot-docker ---
[INFO] F8: Using Kubernetes at https://localhost:6445/ in namespace default with manifest C:\Temp\gs-spring-boot-docker\complete\target\classes\META-INF\fabric8\kubernetes.yml
[INFO] Using namespace: default
[INFO] Using namespace: default
[INFO] Creating a Secret from kubernetes.yml namespace default name mysecrets
[INFO] Created Secret: \target\fabric8\applyJson\default\secret-mysecrets.json
[INFO] Creating a Service from kubernetes.yml namespace default name gs-spring-boot-docker
[INFO] Created Service: \target\fabric8\applyJson\default\service-gs-spring-boot-docker.json
[INFO] Using namespace: default
[INFO] Creating a Deployment from kubernetes.yml namespace default name gs-spring-boot-docker
[INFO] Created Deployment: \target\fabric8\applyJson\default\deployment-gs-spring-boot-docker.json
[INFO] F8: HINT: Use the command kubectl get pods -w to watch your pods start up
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.009 s
[INFO] Finished at: 2018-03-28T19:41:53+01:00

ok it was fixed after I installed Docker for windows 18.03.0-ce-win58 (16761) and enabled kubernetes.
Might be that it overwritten kube config file but not sure


Some confuse on data augmentation part

Hi ,first thing first, thanks for your incredible work !
There still some qustion confused me, one of them is the data augmentation part,
according to code, it seems that every original sentence is mixed with anothor sentence then count the loss to regulate model.
It's more like add noise than data augmentation to me, cuz after augmentation, n sentence is still n sentence,
so i wanna figure out if the original sentence is used during training, thanks a lot !

Hi, thanks for your interest in our work. your understanding is correct, and that is what we intended to do. One thing to notice is that, after augmentation, there are still n sentences, but each sentence is somehow mixed with another sentence, which is helpful to training.
About the original sentences, they are not directly used during training. They are all mixed before training.

Thanks for your reply!
have a nice day


Remove the conclusion type parameter of InferenceJustifier

I do not see much use for the conclusion type parameter  of InferenceJustifier.
Since there is no type parameter for type of inferences, a justifier should work with arbitrary inferences (over given conclusions). But any meaningful implementation of this interface would need to check the type of inferences (over concrete conclusions), and the conclusion type parameter will not be really used. Two possible fixes I see:

Either use a generic inference parameter <I extends Inference<?>>:
J getJustification(I inference);
Or do not use any input parameter:
J getJustification(Inference<?> inference);

Alternatively on can use guava's Functor instead of Justifier

Alternatively on can use guava's Functor instead of Justifier


ios: fix: initial error value for apple pay

I made a correction in the STPApplePayContext.swift due to the guard statement being triggered by nil values.
Here is the relevant:
https://github.com/stripe/stripe-ios/blob/6a12711bfffae39034608b7fa4ad36cf90cdbe59/StripeApplePay/StripeApplePay/Source/ApplePayContext/STPApplePayContext.swift#L556

Thanks!


bug: "main" invalid in package.json

https://github.com/indentjs/objectorarray/blob/debc681042391f9af620d7f26f70a46511f729b3/package.json#L5

Duplicate of #3, and PR #4 to fix this


How to set SocketTimeout longer

Caused by: java.net.SocketTimeoutException: failed to connect to XXXX/XX.XX.130.150 (port 443) from /XX.XX.3.122 (port 41780) after 5000ms
how can I set SocketTimeout longger

@philos3 are you using sentry or sentry_dart?
If sentry, that's not possible since https://pub.dev/packages/http does not support this configuration.
If sentry_dart, we'd need to expose these 2 configs on the Dart SDK first.
https://github.com/getsentry/sentry-java/blob/4a9c176e62e67746928d2d4ab455330cdb879c83/sentry/src/main/java/io/sentry/SentryOptions.java#L241
Would you like to submit a PR?

I suspect iOS does not have such configurations, it might be needed to be exposed first (NSURLSessionConfiguration).
@philipphofmann or @brustolin to confirm.

We will need to expose this property first in Cocoa SDK. But its possible.

I would like to understand your underlying problem, @philos3. When do you get the error? Why do you think you can solve it by increasing the socket timeout?

SocketTimeoutException

Well if you have an unstable connection, maybe 5s (default) isn't enough for a big portion of your customers, it's a known problem worldwide, so it should be at least configurable, obviously, this is remediation.

Well if you have an unstable connection, maybe 5s (default) isn't enough for a big portion of your customers, it's a known problem worldwide, so it should be at least configurable, obviously, this is remediation.

I think we should come up with a solution that works out of the box. We should guarantee that the SDKs send the events to Sentry under such conditions. I think we shouldn't solve this problem by making it configurable.

@philipphofmann I'm not sure I follow your comment, we cannot do much anything, the problem isn't in the SDK, it's in people's connection.
This is the OS trying to connect to the host.

5000ms  was too short in unstable connection ,and  my network is fine. It's just because of a timeout, so i wish I can set the timeout config myself

the problem isn't in the SDK, it's in people's connection.

Yes, but we could use a longer socket timeout if we get a SocketTimeoutException, or maybe retry.

this SocketTimeoutException is cause by the sentry sdk when in unstable connection. Sentry fail to report after 5000ms,and throw SocketTimeoutException(default 5000ms,I can't do anything) ,it is not my business code SocketTimeoutException，so  I wish to set sentry SDK  SocketTimeout longer ,maybe 7s can avoid receiving a lot of SocketTimeoutException

Created https://github.com/getsentry/sentry-cocoa/issues/2658

The default timeout of NSURLSession is 60 seconds. So I don't think this is an issue on iOS. Can't we increase the default value on Java to solve this issue for all users instead of exposing options to configure? The option has the downside of users having to be aware of it and we need to maintain it.

We can add those 2 values on SentryFlutterOptions and add property docs that this is Android only, iOS is 60s by default.


Errno::EINVAL: Invalid argument after Bundle Install

What did you do?
I ran the command /usr/local/bin/bundle install

What did you expect to happen?
I expected Bundler to...

What happened instead?
Instead, what happened was...

Error details
Errno::EINVAL: Invalid argument
  /usr/local/Cellar/ruby/2.3.1_1/lib/ruby/2.3.0/securerandom.rb:56:in `clock_gettime'
  /usr/local/Cellar/ruby/2.3.1_1/lib/ruby/2.3.0/securerandom.rb:56:in `gen_random'
  /usr/local/Cellar/ruby/2.3.1_1/lib/ruby/2.3.0/securerandom.rb:99:in `random_bytes'
  /usr/local/Cellar/ruby/2.3.1_1/lib/ruby/2.3.0/securerandom.rb:118:in `hex'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/fetcher.rb:191:in `user_agent'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/fetcher.rb:259:in `connection'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/fetcher.rb:84:in `initialize'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/source/rubygems.rb:234:in `new'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/source/rubygems.rb:234:in `block in fetchers'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/source/rubygems.rb:232:in `map'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/source/rubygems.rb:232:in `fetchers'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/source/rubygems.rb:337:in `block in remote_specs'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/index.rb:10:in `build'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/source/rubygems.rb:336:in `remote_specs'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/source/rubygems.rb:83:in `specs'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/definition.rb:263:in `block (2 levels) in index'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/definition.rb:261:in `each'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/definition.rb:261:in `block in index'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/index.rb:10:in `build'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/definition.rb:258:in `index'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/definition.rb:252:in `resolve'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/definition.rb:176:in `specs'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/definition.rb:164:in `resolve_remotely!'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/installer.rb:225:in `resolve_if_need'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/installer.rb:78:in `run'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/installer.rb:24:in `install'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/cli/install.rb:71:in `run'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/cli.rb:189:in `install'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/cli.rb:20:in `dispatch'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/cli.rb:11:in `start'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/exe/bundle:34:in `block in <top (required)>'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.1/exe/bundle:26:in `<top (required)>'
  /usr/local/bin/bundle:23:in `load'
  /usr/local/bin/bundle:23:in `<main>'

Environment
Bundler   1.13.1
Rubygems  2.5.1
Ruby      2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
GEM_HOME  /usr/local/lib/ruby/gems/2.3.0
GEM_PATH  /usr/local/lib/ruby/gems/2.3.0:/Users/USERHOME/.gem/ruby/2.3.0:/usr/local/Cellar/ruby/2.3.1_1/lib/ruby/gems/2.3.0
Git       2.10.0
  Bundler settings

jobs
Set for the current user (/Users/USERHOME/.bundle/config): "7"
local.someproject_core
Set for the current user (/Users/USERHOME/.bundle/config): "/Users/USERHOME/workingspace/someproject/someproject_core"
local.someproject_read_plugin
Set for the current user (/Users/USERHOME/.bundle/config): "/Users/USERHOME/workingspace/someproject/someproject_read_plugin"

@KelseyDH this is likely the same issue as https://github.com/rubygems/rubygems/issues/1726#event-809521202

Closing as a duplicat3e of https://github.com/Homebrew/homebrew-core/issues/5413


Override core model not in effect

Created app/Http/Customer.php

<?php

namespace App\Http;

use Webkul\Customer\Models\Customer as CustomerBaseModel;

class Customer extends CustomerBaseModel
{
    /**
     * Get the customer full name.
     */
    public function getNameAttribute() {
        return 'MY CUSTOM NAME';
    }
}

In app/Providers/AppServiceProvider.php added

    public function boot()
    {
        $this->app->concord->registerModel(
            \Webkul\Customer\Contracts\Customer::class, \App\Http\Customer::class
        );

        Schema::defaultStringLength(191);
    }

Laravel doesn't give any error my any place I do dd($customer) it gives me old Webkul\Customer\Models\Customer model.
As on screenshot customer has still default name

@jyoti-webkul Anyone? It has been reported by other people

Hi @accountmine
Your whole code is correct instead of dumping whole customer, try to dd($customer->name), because you have created Accessor for name.
For more detail, please go through with this article - https://laravel.com/docs/5.8/eloquent-mutators#defining-an-accessor
Thanks

@accountmine You need to have a default ModuleServiceProvider dedicated to models that you making in App namespace.
And those models too should implement their contracts as in packages and type hint their proxy class with them.
Please go through with the directory structure of Customer package and specifically models, contracts and the module service provider.
Note: The module service provider you will make for your models inside App namespace should also be in configuration of concord.php also.
That is all, if you face any issue we won't mind ever to help.
Regards,
Prashant.

@prashant-webkul Would you mind update documentation with a working example.
It means overridden Modal will be available only in my new module? Not thought default webkul endpoints?

@accountmine yes, the modal will be override for your new package. Also, we will soon update the documentation with a  working example.
Thanks

Still don't understand how to override the core model. Im' trying to add a trait to bagisto's customer model and couldn't figure it out for 2 days.

Same here. I'm following the Bagisto docs: https://devdocs.bagisto.com/override-core-model.html and it is not working. Some help?


Specify how background tasks are handled on behalf of the function being async or not

First check

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

Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.
I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.
Implement a Pull Request for a confirmed

Example
import time
import asyncio

from fastapi import FastAPI, BackgroundTasks

app = FastAPI()

def sync_bg_task(name: str) -> str:
    time.sleep(5)
    return f"Hello {name}"

async def async_bg_task(name: str) -> str:
    await asyncio.sleep(5)
    return f"Hello {name}"

@app.get("/{name}")
async def hello_name_sync(name: str, background_tasks: BackgroundTasks):
    background_tasks.add_task(sync_bg_task, name)
    return "OK"

@app.get("/async/{name}")
async def hello_name_async(name: str, background_tasks: BackgroundTasks):
    background_tasks.add_task(async_bg_task, name)
    return "OK"

Description
The internal behaviour of background tasks changes on behalf of the function being defined as async or not. In the docs, it says that it can be an async def or normal def function, FastAPI will know how to handle it correctly. However, that is disguising some information.
As explained in this other issue, an async function background task will run in asyncio loop (thus, everything that doesn't use "await" will block); however, a normal function background will run in a threadpool.
Can this be explicitly written in the docs? I do not consider it as a bug but as a very important detail the developer must know.
Environment

OS: macOS
FastAPI Version: 0.65.1
Python version: 3.9.1

Additional context
There is a related thread where this is pointed as a bug.

ok , open a Pull Request

I'd follow someone's path and had found a hacking way: add asyncio.sleep(0.001) as a backgroung task before others async functions, which eventually make it behalf like sync background tasks. Perhaps you may consider to add this in the docs. :)
ref. https://github.com/tiangolo/fastapi/issues/1313#issuecomment-751355711

Afaik BackgroundTask is just a proxy to Starlette' one.
So the behaviour is pretty straightforward, and existing explanation is pretty descriptive.
(https://github.com/encode/starlette/blob/master/starlette/background.py#L6-L20)
class BackgroundTask:
    def __init__(
        self, func: typing.Callable, *args: typing.Any, **kwargs: typing.Any
    ) -> None:
        self.func = func
        self.args = args
        self.kwargs = kwargs
        self.is_async = asyncio.iscoroutinefunction(func)

    async def __call__(self) -> None:
        if self.is_async:
            await self.func(*self.args, **self.kwargs)
        else:
            await run_in_threadpool(self.func, *self.args, **self.kwargs)


 onboarding step

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: v9.0.43-3 (HybridApp)
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @trjExpensify
Slack conversation: https://expensify.slack.com/archives/C036QM0SLJK/p1727901034273459?thread_ts=1727720726.113539&cid=C036QM0SLJK (#wave-collect thread)
Action Performed:
Prerequisite: must be using the HybridApp and be on the hybridAppRedirect beta

Sign up with a new account on HybridApp
Choose "Manage my team's expenses"
Add a work name > next
Add a first name/last name > confirm
Observe the confirm button is unresponsive
Click the back caret <
Observe the back caret is unresponsive

Expected Result:
You should be able to complete the onboarding steps on HybridApp. For comparison, here's the same version on the NewDot standalone app:
https://github.com/user-attachments/assets/86b60dc0-28a1-4b3c-a7ea-93efbf32cfaf
Actual Result:
Can't complete the "What's your name?" step:
https://github.com/user-attachments/assets/ba435ba1-76a2-4f1a-a51c-e1cce9c0002d
Workaround:
I killed the app, reopened it, and it seemed to have then completed guided setup, created the workspace and added the onboarding tasks:

Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[x] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
In line above.

View all open jobs on GitHub

I'm on it!

I've just tested if the bug exists on this PR, and it will solve the issue!

Fix for this has merged, closing.


Upgrade web-console 3.4.0

Coverage remained the same at 100.0% when pulling 297a3ab75cfd18a3845d69c733c9d13711542f1a on fix/upgrade-web-console-3.4.0 into f63142928940940383cc5d7d9793f65f7be3eeac on master.


Code Quality Improvement - @Override annotation should be used on any method overriding

This pull request is focused on resolving occurrences of Sonar rule
squid:S1161 - "@Override annotation should be used on any method overriding". You can find more information about the issue here: https://dev.eclipse.org/sonar/rules/show/squid:S1161.
Please let me know if you have any questions.
Christian

Done! Removed /** {@inheritDoc} */ for overrides change.

Great, :+1:

Thanks


ERROR_WRONG_LABEL

Hello everyone I get this error when trying to print, the papersize has few options. Can anyone help me?
Print Result: {isBatteryMounted: {name: Unknown, id: -1}, labelId: -1, maxOfBatteryResidualQuantityLevel: -1, labelType: -1, errorCode: {name: ERROR_WRONG_LABEL, id: -1}, isACConnected: {name: Unknown, id: -1}, batteryLevel: -1, batteryResidualQuantityLevel: -1}
var printer = new Printer();
var printInfo = PrinterInfo();
printInfo.printerModel = Model.QL_820NWB;
printInfo.printMode = PrintMode.FIT_TO_PAGE;
printInfo.isAutoCut = true;
printInfo.port = Port.NET;
// Set the label type.
printInfo.paperSize = PaperSize.CUSTOM;

Hi @Andre-Coelhoo ,
Thanks for reaching out about this. This looks to be an exact duplicate of your other report https://github.com/CodeMinion/another_brother/issues/58 so I am going to close this so we can keep the conversation in one place.
Thanks again for reaching out about this.


Refusing To Deploy - Railway

🐞 Describe the bug
Used the one-click deployment to railway. Set the username and password as expected but getting the following error while deploying.
18: Pulling from heroku/buildpacks
Digest: sha256:122bb39f566a1943bf5558b4b792fc040480204e5ce3e455a32b830fbe0e15d1
Status: Image is up to date for heroku/buildpacks:18
18: Pulling from heroku/pack
Digest: sha256:05192dbbef44c70d9a1d93a49ce05182b90266fb7c5b5ac7f863a24ac27597d5
Status: Image is up to date for heroku/pack:18
===> DETECTING
======== Output<EMAIL_ADDRESS>========
no
err<EMAIL_ADDRESS>(1)
ERROR: No buildpack groups passed detection.
ERROR: failed to detect: buildpack(s) failed with err
ERROR: failed to build: executing lifecycle: failed with status code: 101

📚 To Reproduce
Click the deploy button in the documentation, enter your username and password. This error message will come on the right-hand side.
💡 Expected behavior
It should deploy.
🖼 Screenshots

⚙ Environment

Installation: Railway
Ackee version: [e.g. v2.1.0]

@FarazPatankar Do you have any idea? You've once added Railway to the guide. I'm personally not using Railway so I can't offer any help.

Thanks for the tag, @electerious. @JaiRelan did you use the Railway starter for this? You can deploy Ackee directly on Railway from here!

@FarazPatankar Hmm, that's odd. The link which you gave in the comment seems to do the trick. However, when I used the link mentioned here 2 days ago, it gave me the error which I screenshotted above.

Whoops, we've moved the starter since then. Any chance you could create a PR to update that link? :)

This is probably like my first serious PR so I'm super pumped. Done and dusted! Thanks a ton again

@electerious I think we can close this now?


fix: Handle Vyper exceptions

fixes issue handling vyper exceptions by wrapping the exception in a try and except

looks like flake8 is complaining about line length

looks like flake8 is complaining about line length

Yeah, black sometimes doesn't properly fix lines like this, so usually if it's a comment I put it on the line above or something

looks like this is passing checks now. Please let me know any additional thoughts or things I need to change?

the test is now faililng, I believe that I need to invert the integration.

branch is passing but that is only because tests are commented for non failing contracts. need to rework conftest and folder structure

this is passing checks now 🎉


Readme improvements

Fix typos
Add bash to code relevant code blocks
Use list for install methods

behaviour is the English spelling of behavior 😅, but 👍


Document additional Objective-C syntax highlighting spelling

Bug/issue #, if applicable: rdar://120922219
Summary
This documents both "objective-c" and "objectivec" as supported spellings for syntax highlighting in code listings.
Dependencies
None
Testing
None.
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.

~[ ] Added tests~
[x] Ran the ./bin/test script and it succeeded
[x] Updated documentation if necessary

@swift-ci please test


Files opens behind other windows with keyboard shortcut when maximized

Description
please note: I have searched logged issues, but I can only find people complaining that other apps are launching behind Files.. those issues describe different behaviour to what I'm seeing.
I have enabled the option to "Set Files as the default file manager" under the "Experimental" tab in settings.
I do not have any other third-party window management apps installed.
this also does not affect the app when launched from the Start menu or any other file-based shortcut, this only affects the Win+E shortcut.
this only affects Files if it was maximized when last open. if the last state was "windowed", then it launches in front of other apps, as expected.
Steps To Reproduce

launch Files and maximize the window
make sure "Set Files as the default file manager" is enabled (possibly not related to this bug, but required for the keyboard shortcut to work)
close the Files application
hit Win+E
Files launches, the window is not visible, and the taskbar icon sits there flashing...

Expected behavior
newly launched apps, including Files, should always launch on top of any other currently open applications (unless there are third-party systems with rules that "tweak" this behaviour, of course).
Files Version
Version: <IP_ADDRESS> OS Version: 10.0.22000.856
Windows Version
Edition	Windows 11 Pro Version	21H2 Installed on	2022/07/04 OS build	22000.856 Experience	Windows Feature Experience Pack 1000.22000.856.0
Relevant Assets/Logs
debug.log
debug_fulltrust.log

just my luck, immediately after logging this, I opened Files with the same keyboard shortcut and... it was in front of my other apps. 🤦🏼
I'll drop a comment here if I find out anything more..

This seems to be resolved in the latest preview build

This seems to be resolved in the latest preview build

confirmed.. no longer happens for me with <IP_ADDRESS>. 👍🏼


Add ability to specify packwiz gh auth token

Blocked by https://github.com/packwiz/packwiz-installer-bootstrap/pull/5

Why is an auth token needed? The linked PR doesn't provide any explanation either.

Github API has an anonymous rate limit, after some queries it returns
{
    "message": "API rate limit exceeded for <ip>. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)",
    "documentation_url": "https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"
}

The limit is like 60, and I run upwards of 10 minecraft servers off my single dedicated using infrared, so this limit gets hit reasonably quickly especially if a tenant breaks their config and it crashloops. I'd like to run with tokens at the docker level and have them provided to packwiz and the script's own curl commands so this doesn't happen, authenticated rate limit is like 5000.
I don't think this script quite works, some of the jq stuff needs to be meddled with below my change, but it's overall blocked by the packwiz --bootstrap-update-token opt being broken so I'll fix this up when I can actually test against working packwiz.

Thanks for clarifying.


add ForgetLeader

This patch adds ForgetLeader(), which causes a follower to forget its current leader, changing it to None. It remains a leaderless follower in the current term, without campaigning.
This is particularly useful with PreVote+CheckQuorum, if the caller has strong reason to believe the leader is dead, since it will grant prevotes but also revert to follower if it hears from the leader. A quorum of such leaderless followers can thus allow a pre-candidate to hold an election if they believe the leader to be dead.
Signed-off-by: Erik Grinaker<EMAIL_ADDRESS>cc @pavelkalinnikov @tbg
See https://github.com/cockroachdb/cockroach/pull/105126 for a CockroachDB change that depends on this (there will be a couple more along the same lines).

we'd like to avoid waiting for election timeouts when the leader removes itself

This isn't really the motivating case -- we handle that by calling an immediate election on the leaseholder, bypassing prevote since we know there is no leader to disrupt (https://github.com/cockroachdb/cockroach/pull/104969).
The motivating case is when we unquiesce a range to find a dead leader according to liveness gossip -- if a quorum of replicas consider the leader dead according to liveness we'd like to elect a new leader immediately rather than waiting out the election timeout. We only want to do this when a quorum agrees though, and without disrupting a current leader, since it's possible for individual replicas to have stale or incorrect views of liveness. ForgetLeader provides these properties.

Overall looks good to me, great work! The only minor concern is the users of the raft library might not be very clear when and how to use ForgetLeader. So suggest to add an example in the comment.


Deps issue + container inconsistency

Describe the bug
That's a tough one.
I see 2 big problems here:

the contrainers do not reproduce correctly. This blitz works fine for me, but it doesn't work for my colleagues (they get a runtime error with an infinite loop). Apparently, there's a problem with Vite/esbuild distro

actually, the blitz itself didn't work the first time, but only because it took 30+ minutes to install deps. For additional context: it takes less than 30 seconds locally on my machine to install these deps with all 3 major dep.management tools. In StackBlitz it always chokes on the last 4 or 5 deps in all 3 major browsers.

Link to the blitz that caused the error
https://stackblitz.com/edit/vitejs-vite-8edzcr?file=src%2Fmain.tsx
Steps to reproduce
It differs for everybody.
For the deps issue it is:

open the url in any browser but Chrome, that has all the deps cached
the deps never fetch

For the app issue it is:

open the url
get the app working fine, whereas people say it shows blank screen

Expected behavior

deps should download consistently
the app itself should be consistent and either not work everywhere or work everywhere

Parity with Local

[X] I have run the project in my local machine and I could not reproduce the issue.

Screenshots
No response
Platform
Browser name  = Chrome
Full version  = <IP_ADDRESS>
Major version = 110
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 98537990,
  "usedJSHeapSize": 96172262,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Hash = abcb1808b9d66cb4c839249966f76781042b9b08

Additional context
No response

For some reason it fixed itself! Will close for now.


Inconsistent TPU Core Detection on v5p-8 Instance

Description
Hello JAX team,
I am encountering an issue with JAX where only 4 TPU cores are being detected on a Google Cloud Platform TPU VM instance configured with 8 cores (type v5p-8). This issue persists even after ensuring proper installation and configuration.
Environment:

TPU VM Type: v5p-8 (supposedly 8 cores) (preemptible)
JAX version: [0.4.23]
JAXlib version: [0.4.23]
Python version: [3.10]
Google Cloud SDK version: [460.0.0]

Steps to Reproduce:

Created a TPU VM on GCP with --accelerator-type=v5p-8.
Installed jax[tpu] followed by other project dependencies.
Ran import jax; print(jax.devices()) in Python and consistently found only 4 TPU devices listed.

Expected Behavior:
JAX should detect and utilize all 8 TPU cores as per the TPU VM configuration.
Actual Behavior:
Only 4 TPU cores are being detected by JAX, leading to ValueError: each shard needs a separate device, but device count (4) < shard count (8) when attempting to distribute work across 8 cores.
Additional Context:

The issue occurs irrespective of using a virtual environment.
The Google Cloud Console confirms the TPU VM is configured with 8 cores.

I am looking for guidance on why JAX is only detecting 4 cores and how I can resolve this to utilize all 8 cores as expected. Any help or insights you can provide would be greatly appreciated.
Thank you for your assistance!
What jax/jaxlib version are you using?
No response
Which accelerator(s) are you using?
No response
Additional system info?
No response
NVIDIA GPU info
No response

Hello!
The Cloud TPU v5p chip contains 2 tensorcores and 4 sparsecores as mentioned in the doc: https://cloud.google.com/tpu/docs/v5p-training#system-architecture
On a v5p-8 machine, I would imagine that 8 refers to the number of tensorcores on that machines. Here, JAX talks to 4 TPU devices/chips, essentially 2x2x1 (https://cloud.google.com/tpu/docs/v5p-training#v5p_tpu_configurations) = 4 but not every single TensorCores.
If you run jax.device_count(), it should return 4 instead of the number of tensorcores of a v5p-8 machine. You should define your mesh/sharding based on the actual device number.

Please take a look at this code example. Hope it helps:
https://cloud.google.com/tpu/docs/run-calculation-jax#display_the_number_of_tpu_cores_available

@yliu120 Thank you for your quick reply. I set up v5p-16 (2 workers) and it detected "8 devices" as intended.


[Question] - Referencing inputs in child terragrunt.hcl

Hi, I have a question I can't really wrap my head around
I have the following structure for a set of openstack resources:
../
|-- empty.yaml
|-- region-mon
|   |-- region01
|   |   |-- network-wiring
|   |   |   |-- internal
|   |   |   |   |-- net
|   |   |       |   `-- terragrunt.hcl
|   |   |   |   `-- secgroup
|   |   |       |   `-- terragrunt.hcl
|   |   |   `-- mgmt
|   |   |       |-- net
|   |   |       |   `-- terragrunt.hcl
|   |   |       `-- secgroup
|   |   |       |   `-- terragrunt.hcl
|   |   `-- region.yaml
`-- terragrunt.hcl

In my root terragrunt.hcl I have some common config for backend etc but also reference common vars for region, somewhat following this:
...
inputs = merge(
  yamldecode(
    file("${get_terragrunt_dir()}/${find_in_parent_folders("region.yaml")}"),
  ),
)
...

In region.yaml I have a couple of variables that will be sent in as input to child terragrunt.hcl files:
---
openstack_cloud: region01
external_network_name: xx
dns_nameservers: [xxx, yyy]

Question is if it's possible in a good way to reference the variables set in region.yaml i child terragrunt.hcl files.
Scenario:
In one of the terragrunt.hcl files under region01 directory, I have a input called name, but I want to prefix that name with openstack_cloud and potentially accessing other values as well, without the need to put that logic in the module(s) themselfs
Child terragrunt.hcl:
include {
  path = find_in_parent_folders()
}

terraform {
  source = "../../../../modules/os-network"
}

inputs = {
 #  Psuedo code for what I'm trying to achieve
  name = join(region_var.openstack_cloud, "mgmt-net")
}

I've tried play around with locals to no avail:
locals {
   name1 = join(get_env("TF_VAR_openstack_cloud "default"), "mgmt-net")
   name2 = join(var.name, "mgmt-net")
}

inputs = {

  name = local.name1
  name = local.name2
}

I'm I planning up repo structure completely wrong, trying to share variables? (in this case based in region or geographic location)

I just realized that putting this particular logic inside the modules makes more sense...
The questions still remains though, is there a way to reference parent inputs in child terragrunt.hcl files?

Not currently, but this is an active feature request. See the conversation on globals (https://github.com/gruntwork-io/terragrunt/issues/814) and the related PR (https://github.com/gruntwork-io/terragrunt/pull/858) for the latest.

Closing as duplicate.


Add support for setting authority with permission level

Change Description
Following patch of #6583. This PR allows users to set authority with permission level during not only account creation (cleos create account) but setting account permission (cleos set account permission).
However, by allowing this, the possibility of locking up account by mistake can increase like #4033. It seems that there's already progress about this issue (#4037), so feel free to reject this if this PR conflicts with someone's work.
Consensus Changes
None.
API Changes
None.
Documentation Additions
Both cleos create account and cleos set account permission can set authority by public key, permission level, JSON string or file. This needs to be added to documentation.

This PR is being closed due to inactivity or incompatibility.  If you feel this has been done in error please feel free to open a related issue for discussion.
For PRs that are labeled as CONSENSUS that are not implemented according to the system introduced in v1.8.x future submissions and issues will need to be compatible with this system in order to be accepted in the future.  This system allows existing deployments of EOSIO-based blockchains to maintain backwards compatibility and forwards upgradability in a consistent manner.


Add Detailed Readme file for the project

As a new developer who is willing to contribute to the project, it would of great help if we have a readme which would guide them on how to bootstrap the project on their local machine and all the information that would help them with the app development (like dependencies, libraries need to be pulled in, compatibility, setting up the development environment etc).

Sorry for inconvenience.
I added some commands instructions to README.md.
@sujaysudheenda Could you try with the new README.md? If you have some trouble with building Lily project, let me know :)  I will modify it.
Thank you!

Hi @YusukeIwaki thank you for taking it up! I appreciate the effort! one thing that I had to do after all the steps mentioned in readme is to comment this line from app/build.gradle. can you add this to the readme file too!

@sujaysudheenda Thank you for your report. I will add some description about app/build.gradle.


Hotfix: require error

Replacing require to require_relative to add the error class file and avoid below error:
/usr/local/lib/ruby/3.3.0/bundled_gems.rb:75:in `require': cannot load such file -- error (LoadError)
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:75:in `block (2 levels) in replace_require'
	from /usr/local/bundle/ruby/3.3.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:27:in `require'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/core_ext/kernel.rb:34:in `require'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/ruby_whatsapp_sdk-dd1e23b3e1f1/lib/whatsapp_sdk/resource/errors.rb:3:in `<main>'
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:75:in `require'
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:75:in `block (2 levels) in replace_require'
	from /usr/local/bundle/ruby/3.3.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/core_ext/kernel.rb:26:in `require'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/cref.rb:57:in `const_get'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/cref.rb:57:in `get'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader/eager_load.rb:173:in `block in actual_eager_load_dir'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader/helpers.rb:47:in `block in ls'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader/helpers.rb:25:in `each'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader/helpers.rb:25:in `ls'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader/eager_load.rb:168:in `actual_eager_load_dir'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader/eager_load.rb:17:in `block (2 levels) in eager_load'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader/eager_load.rb:16:in `each'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader/eager_load.rb:16:in `block in eager_load'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader/eager_load.rb:10:in `synchronize'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader/eager_load.rb:10:in `eager_load'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader.rb:413:in `block in eager_load_all'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader.rb:411:in `each'
	from /usr/local/bundle/ruby/3.3.0/gems/zeitwerk-2.7.0/lib/zeitwerk/loader.rb:411:in `eager_load_all'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/application/finisher.rb:79:in `block in <module:Finisher>'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/initializable.rb:32:in `instance_exec'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/initializable.rb:32:in `run'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/initializable.rb:61:in `block in run_initializers'
	from /usr/local/lib/ruby/3.3.0/tsort.rb:231:in `block in tsort_each'
	from /usr/local/lib/ruby/3.3.0/tsort.rb:353:in `block (2 levels) in each_strongly_connected_component'
	from /usr/local/lib/ruby/3.3.0/tsort.rb:434:in `each_strongly_connected_component_from'
	from /usr/local/lib/ruby/3.3.0/tsort.rb:352:in `block in each_strongly_connected_component'
	from /usr/local/lib/ruby/3.3.0/tsort.rb:350:in `each'
	from /usr/local/lib/ruby/3.3.0/tsort.rb:350:in `call'
	from /usr/local/lib/ruby/3.3.0/tsort.rb:350:in `each_strongly_connected_component'
	from /usr/local/lib/ruby/3.3.0/tsort.rb:229:in `tsort_each'
	from /usr/local/lib/ruby/3.3.0/tsort.rb:208:in `tsort_each'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/initializable.rb:60:in `run_initializers'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/application.rb:440:in `initialize!'
	from /rails/config/environment.rb:5:in `<main>'
	from config.ru:3:in `require_relative'
	from config.ru:3:in `block (2 levels) in <main>'
	from /usr/local/bundle/ruby/3.3.0/gems/rack-3.1.8/lib/rack/builder.rb:108:in `eval'
	from /usr/local/bundle/ruby/3.3.0/gems/rack-3.1.8/lib/rack/builder.rb:108:in `new_from_string'
	from /usr/local/bundle/ruby/3.3.0/gems/rack-3.1.8/lib/rack/builder.rb:97:in `load_file'
	from /usr/local/bundle/ruby/3.3.0/gems/rack-3.1.8/lib/rack/builder.rb:67:in `parse_file'
	from /usr/local/bundle/ruby/3.3.0/gems/rackup-2.1.0/lib/rackup/server.rb:354:in `build_app_and_options_from_config'
	from /usr/local/bundle/ruby/3.3.0/gems/rackup-2.1.0/lib/rackup/server.rb:263:in `app'
	from /usr/local/bundle/ruby/3.3.0/gems/rackup-2.1.0/lib/rackup/server.rb:424:in `wrapped_app'
	from /usr/local/bundle/ruby/3.3.0/gems/rackup-2.1.0/lib/rackup/server.rb:326:in `block in start'
	from /usr/local/bundle/ruby/3.3.0/gems/rackup-2.1.0/lib/rackup/server.rb:382:in `handle_profiling'
	from /usr/local/bundle/ruby/3.3.0/gems/rackup-2.1.0/lib/rackup/server.rb:325:in `start'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/commands/server/server_command.rb:38:in `start'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/commands/server/server_command.rb:145:in `block in perform'
	from <internal:kernel>:90:in `tap'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/commands/server/server_command.rb:136:in `perform'
	from /usr/local/bundle/ruby/3.3.0/gems/thor-1.3.2/lib/thor/command.rb:28:in `run'
	from /usr/local/bundle/ruby/3.3.0/gems/thor-1.3.2/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/command/base.rb:178:in `invoke_command'
	from /usr/local/bundle/ruby/3.3.0/gems/thor-1.3.2/lib/thor.rb:538:in `dispatch'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/command/base.rb:73:in `perform'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/command.rb:65:in `block in invoke'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/command.rb:143:in `with_argv'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/command.rb:63:in `invoke'
	from /usr/local/bundle/ruby/3.3.0/bundler/gems/rails-e00943030911/railties/lib/rails/commands.rb:18:in `<main>'
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:75:in `require'
	from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:75:in `block (2 levels) in replace_require'
	from /usr/local/bundle/ruby/3.3.0/gems/bootsnap-1.18.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
	from bin/rails:4:in `<main>'

Strange! it is working for me 🤔

After I updated yesterday my system couldn't boot itself. I'm using Ruby 3.3.5 and Rails 8.

I ran manual tests with different versions and used the Example script , and it works after your changes. Thanks.

@guizaols The version 1.0.1 contains the fix. Thanks!


Singularity failing to create slave on Rancher with RHEL 7 instances

I'm trying to deploy Singularity on Rancher with a set of RHEL 7.3 (3.10.0) instances. Everything else works fine but the slave node keeps failing to start giving the following error.

Failed to create a containerizer: Could not create MesosContainerizer: Failed to create launcher: Failed to create Linux launcher: Failed to determine the hierarchy where the subsystem freezer is attached

How can I resolve this?

Hi @mkum9469 , it seems that is a problem with the configuration of mesos slave itself, not with Singularity. There is a similar thread I found here that might be able to help you diagnose the error. That thread is specifically ubuntu-related, but I'm guessing similar isolation/cgroups settings apply.

Going to close this out since it is not specifically Singularity-related, but feel free to send questions to the mailing list on the README and someone in the community can likely help you out 👍

This your link and my answer to my question on StaskOverflow says to add some commands into restricted/host. But where I should do this? Can I put in on docker-compose.yml?
https://stackoverflow.com/a/46646733/1190184

That depends how you are running the mesos-slave/mesos-agent process. Those are arguments for mesos, not for singularity.

I just realized you may be talking about the docker-compose in this repo. That docker-compose is mainly meant for trying out singularity on your local machine, not necessarily for production use. If you need to add those areguments/environment variables, it would go in this section https://github.com/HubSpot/Singularity/blob/master/docker-compose.yml#L19-L31

Oh! I see. How are we supposed to run Singularty for production, the idea way?

You can use the same images from the docker compose yaml, but you'll need to configure the mesos agents to fit your own needs. We provide a mesos slave image preloaded with out custom executor and a few basic libraries, but companies like mesosphere also provide mesos agent images you can use. Generally they can be configured by environment variables or arguments


Fix invalid xliff for Ukrainian translation

I'm sorry, it's my fault! I missed it in https://github.com/symfony/symfony-demo/pull/284 :(

@bocharsky-bw no worries! I missed it too during the review. Thanks for the quick fix.

@javiereguiluz What about adding a test that validates the translation files?

@xabbuh  :+1:

We could define a ver simple "smoke test" that loads the homepage in all the available translations.


Travis, tox, pytest, etc.

I added a minimal .travis.yml and tox.ini to run py.test script on Python 2.7 and 3.5. This should be enough to get us started on writing the test suite.
I used this nice package that makes configuring Travis for tox much easier:
https://github.com/ryanhiebert/tox-travis

Travis should now be active for this repo, could you push another commit to test that it works?

Well, it does work on my work, so it will defbtely work here too. I don't know what to modify..

I think James means pushing again so Travis builds this PR, git commit --amend should rehash.

ok done. I'm off -- it's 10pm over here.
cheers!

Thanks!


Fixed Bazel compile command

build is missing from bazel command
Unknown Bazel startup option: '-c'.

Thanks. That was a silly typo. :)


Renamed googlecloud.json to googlecloudinfo.json

The code for Google Cloud authentication module fetches the credentials from a file named "googlecloudinfo.json". However, the examples mention the use of a file named "googlecloud.json" leading to authentication errors.

great work,  shlok.


 This adds the ability to shut down from any mode.
See other commits for changes necessary to support this feature.

added in v1.1.0


unable to access postgresStore from langgraph store

Checked other resources

[X] This is a bug, not a usage question. For questions, please use GitHub Discussions.
[X] I added a clear and detailed title that summarizes the issue.
[X] I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
[X] I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.

Example Code
from langgraph.store.postgres import PostgresStore

Error Message and Stack Trace (if applicable)
No Module found called (PostgresStore) in langgraph.store.postgres

Description
I am writing to bring to your attention an issue I encountered while using the recent version of the LangGraph package (0.2.59).
In a previous version(0.2.56 and 0.2.58), I was able to use the following import statement:
"from langgraph.store.postgres import PostgresStore"
However, in the latest version (0.2.59), it seems that the postgres module is no longer available in the langgraph store package.
System Info
NA

You need to install langgraph-checkpoint-postgres. Will close the issue but let me know if that doesn’t solve your problem

It is working, thank you.
You can close the issue.
Regards,
Sharath S Rao
Head of LLM Integration & AI Strategy at Zysk Tech
Bangalore, India |<EMAIL_ADDRESS>| +91<PHONE_NUMBER>
Websitehttps://zysk.tech/ | LinkedInhttps://in.linkedin.com/in/sharath-s-rao

From: Vadym Barda @.>
Sent: Friday, December 13, 2024 6:23 PM
To: langchain-ai/langgraph @.>
Cc: Sharath S Rao @.>; Author @.>
Subject: (External)Re: [langchain-ai/langgraph] unable to access postgresStore from langgraph store (Issue #2749)
CAUTION: EXTERNAL EMAIL: Use caution with links and attachments.
You need to install langgraph-checkpoint-postgres. Will close the issue but let me know if that doesn’t solve your problem
—
Reply to this email directly, view it on GitHubhttps://github.com/langchain-ai/langgraph/issues/2749#issuecomment-2541402556, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A62HDYFN3JQWAZIINXLTTYT2FLKGJAVCNFSM6AAAAABTRKXPP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBRGQYDENJVGY.
You are receiving this because you authored the thread.Message ID: @.***>

This confidential communication is intended solely for the recipient. If received in error, please refrain from using it. Unauthorized access is prohibited. Kindly notify the sender, delete all copies, and ensure attachments are virus-free before opening. Zysk Technologies Pvt Ltd cannot guarantee the email's integrity, completeness, or accuracy. If you have received this email in error, please notify to your IT Support Administrator.

www.zysk.tech


sql2json does not support INSERT INTO ... VALUES(a,b), (c,d) syntax #11 by galz was closed on Aug 30 2016

http://www.csvjson.com/sql2json/4ab2f3433f4f6a320988ee11b8f9428e
Same problem.
sql2json does not support INSERT INTO ... VALUES(a,b), (c,d) syntax
#11 by galz was closed on Aug 30 2016
You could tell me how to add low commas without the app separating them like fields. The link that you put to solve the issue 11, the save state is not operative.
Thank you very much for your application.

Duplicate of #25 and fixed.


docs/crd: Support master RCs in schema bump script

Add support for release candidates in Documentation/check-crd-compat-table.sh
so that we can remove one more manual step from the release checklist.

Seems like required reviews are in, feel free to mark this as ready to merge.


集成的终端里，五笔输入法一码直接上屏了

VSCode Version: 1.3.1
OS Version: macOS 10.11.5

Steps to Reproduce:
集成的终端里，五笔输入法一码直接上屏了。
shell: zsh
输入法：系统自带五笔

I'm assuming this is to do with the integrated terminal IME support. This was added recently to the Insiders build. https://code.visualstudio.com/insiders


gatk-protected should tag releases using annotated tags rather than unannotated tags.

Since using unannotated tags causes a straightforward git describe to fail.

we should sign them too...

Issue moved to broadinstitute/gatk #2953 via ZenHub


Declaration of 2 variables in for loop treated as assignment

It is similar to https://github.com/chipsalliance/Surelog/issues/1540
The problem is the same, but now occurs for the second variable.
Declaration of b is treated as assign_stmt without vpiRhs.
Code:
module top(output int o);
   function automatic int theta();
      for (int x = 0 ; x < 5 ; x++) begin
         int a, b;
         a = 1;
         b = 2;
         return a + b;
      end
      return 0;
   endfunction : theta

   assign o = theta();
endmodule : top

Part of uhdm:
        |vpiStmt:
        \_begin: (work@top.theta), line:3:37, endln:8:10<EMAIL_ADDRESS><EMAIL_ADDRESS>          |vpiStmt:
          \_assign_stmt<EMAIL_ADDRESS>            |vpiLhs:
            \_int_var: (work@top.theta.b), line:4:10, endln:4:13<EMAIL_ADDRESS>              |vpiName:b
<EMAIL_ADDRESS>          |vpiStmt:
          \_assignment: , line:5:10, endln:5:15<EMAIL_ADDRESS>            |vpiOpType:82
            |vpiBlocking:1
            |vpiRhs:
            \_constant: , line:5:14, endln:5:15
              |vpiConstType:9
              |vpiDecompile:1
              |vpiSize:64
              |UINT:1
            |vpiLhs:
            \_ref_obj: (work@top.theta.a), line:5:10, endln:5:11<EMAIL_ADDRESS>              |vpiName:a
<EMAIL_ADDRESS>              |vpiActual:
              \_int_var: (work@top.theta.a), line:4:10, endln:4:13<EMAIL_ADDRESS>                |vpiName:a
<EMAIL_ADDRESS>          |vpiStmt:
          \_assignment: , line:6:10, endln:6:15<EMAIL_ADDRESS>            |vpiOpType:82
            |vpiBlocking:1
            |vpiRhs:
            \_constant: , line:6:14, endln:6:15
              |vpiConstType:9
              |vpiDecompile:2
              |vpiSize:64
              |UINT:2
            |vpiLhs:
            \_ref_obj: (work@top.theta.b), line:6:10, endln:6:11<EMAIL_ADDRESS>              |vpiName:b
<EMAIL_ADDRESS>              |vpiActual:
              \_int_var: (work@top.theta.b), line:4:10, endln:4:13<EMAIL_ADDRESS>          |vpiStmt:
          \_return_stmt: , line:7:10, endln:7:16<EMAIL_ADDRESS>            |vpiCondition:
            \_operation: , line:7:17, endln:7:18
              |vpiOpType:24
              |vpiOperand:
              \_ref_obj: (work@top.theta.a), line:7:17, endln:7:18
                |vpiName:a
<EMAIL_ADDRESS>              |vpiOperand:
              \_ref_obj: (work@top.theta.b), line:7:21, endln:7:22
                |vpiName:b
<EMAIL_ADDRESS>          |vpiVariables:
          \_int_var: (work@top.theta.a), line:4:10, endln:4:13<EMAIL_ADDRESS>          |vpiVariables:
          \_int_var: (work@top.theta.b), line:4:10, endln:4:13<EMAIL_ADDRESS>

Fixed by #2126


[Device Support Request] Do quirks / support for devices start automatically?

[Device Support Request] Do quirks / support for devices start automatically?
I have a TS0601 TRV valve that is not support by ZHA - but I think should be with quirks? How do I get it working?

Look in the  tuya TRV matrix and if you device is one clone of one supported ones you can adding your device in the quirk and testing if its working OK.
https://github.com/zigpy/zigpy/discussions/653#discussioncomment-314395

Do as @MattWestb suggests above and either open a PR if it works or if you are uncomfortable with that you can open a device support requests with all of the necessary data.


Rename to trust-manager

This PR replaces github.com/cert-manager/trust with github.com/cert-manager/trust-manager
And replaces cert-manager-trust with trust-manager.
I also manually changed some remaining names & changed folder names.
Shortly after/ before this change, we should rename the GH repo.
fixes #40

/lgtm
/approve


[AIRFLOW-4583] ERROR - a bytes-like object is required, not 'str' while using gcp_conn_id and python3

Hello,
Here is an ticket related to GCP on Jira:
https://issues.apache.org/jira/browse/AIRFLOW-4583
Related community PR:
https://github.com/apache/airflow/pull/5333
Love

Addressed in https://github.com/apache/airflow/pull/5612


Trivia: timestamp trivia questions, version the database

Preparation for moving this to a SQLite database later. This will make
it easier to delete old questions once the order the questions will
appear in /trivia qs and /trivia review will become arbitrary.

Versioning is way overkill. This is a chat plugin, not core code. Support upgrading from one previous version, which is easy enough.

Forget about this then. I'll add timestamps when I move trivia data to SQLite databases so I'll only have to worry about the one format trivia-data.json uses rather than both the old one and this version with timestamps.


Error during signup while entering password

Describe the bug
When we signup for the first time and we are asked to enter the password.
So, it says minimum character should be 6. And when we enter 6 digit password, it shows that password should be of minimum 8 characters.
Would you like to work on the issue?

[x] Yes
[ ] No
Other:

I would love to fix this issue.

Go ahead


Handle request errors

Adding .on('error') handler for https requests, as socket hang ups can crash an app. Pull request incoming.

Published in version 2.2.1. Thanks again @rfink :)


Can not activate by tapping on activation code

Describe the bug
I created a 'ehrenamts' card, copied the pdf to real android device and emulator, open it with pdf reader.
On device nothin happens
On emulator get message 'Aktivierung nur in der App möglich ...'
Expected behavior
App should open and shows the aktivated QR-code Variante 2

@Docmale can you add some specifications like device model, os version and the pdf reader you used

i've tested couple of times in browserstack and it seem to happen only on some devices/android versions
How this can be checked

Install app on device
Go App Info
Advanced
Open Default
Check supported links (staging and production url should be included)

@Docmale
i believe the issue is that by installing the apks attached from release that they are unsigned and by default the associated links are not trusted.
If you install an app from the play store (signed apk) or use a signed apk file, this should not happen.
Not sure if its worth the effort to provide signed apk just for setting these links default. But you could just recheck this issue with the apk i send you

Since the mechanism does not work with every PDF reader/viewer and system version, I am closing the bug. However, the text should include a note that clicking does not always work and an alternative should be given.


Azure: Use an apiserver port that ends with 443 to make conformance tests happy

There are some build-related conformance tests0 that currently extract
the apiserver url from the oc status command using a regeex that
termiantes on 443 which doesn't work when using port 6444. Work around
by defaulting to port 7443 instead.

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #
Checklist

[ ] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/lgtm


Issue with Manual Entry of Dates in Date Picker Field

Prerequisites

[X] I have searched for duplicate or closed issues
[X] I have read the contributing guidelines

Describe the issue
I'd like to bring attention to a specific issue related to manually entering dates in the date picker field, rather than selecting them from the calendar. In such cases, I've observed the following problems:
Incorrect Handling of Invalid Dates: When entering an invalid date like "31-09-2023," the calendar interprets it as "01-09-2023." This behaviour is inaccurate, and it would be more appropriate to implement validation that highlights or notifies users about such errors.
Handling of Invalid Dates like 30-02-2023: Similarly, when inputting an invalid date like "30-02-2023," the calendar interprets it as "02-03-2023." and it would be beneficial to implement validation that either highlights the error or prevents the entry of such invalid dates during manual input.
I believe addressing these issues would improve the accuracy and reliability of the date picker's manual input functionality. Thank you for your attention to this matter.
Reduced test cases
No response
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Chrome
What is the issue regarding ?
@trimble-oss/modus-web-components
What version of npm package are you using ?
No response
Priority
High
What product/project are you using Modus Components for ?
Document Management System (redesign using Modus)
What is your team/division name ?
Team: Fleetworks, Division: TTM EU
Are you willing to contribute ?
No
Are you using Modus Web Components in production ?
We are about to use for our upcoming release

Confirmed with Srinivasan Chandrasekaran, his team will be able to contribute by Jan 2024

@cjwinsor Check what work was done since this ticket was opened to establish if this is still an issue  or what needs to be done to correct if not.

Goal is to verify 100% that this is no longer an issue so this ticket can be closed.  The assumption is that a past ticket may have resolve this by handling formatting.

Goal is to verify 100% that this is no longer an issue so this ticket can be closed. The assumption is that a past ticket may have resolve this by handling formatting.

@cjwinsor
The issue doesn't exist in the latest version ,validation is handled .
https://github.com/trimble-oss/modus-web-components/assets/122255626/e91a008d-b50c-421a-bdfe-d663171ec38d
Verified in storybook


Help with this

i use this config:
preprocess: function(img) {
img.opaque();
img.binarize(200);
img.colorRegions(50, true);
},
blob_min_pixels: 50,
blob_max_pixels: 1000,
pattern_width: 50,
pattern_height: 50,
pattern_maintain_ratio: true

So the original CAPTCHA image is just a single letter with no distortion? What problems are you running into?

my problem is the image show o and not D when preprocess

I'd need to see more of your code and more examples images. Also it looks like you made some modifications since the opaque method doesn't exist in the base library.

here more image same problem, maybe some wrong in the config the preproccess

you may test this images??

the code is very simple,
function breakCaptcha(imgId) {
return new Promise(resolve => cbl.solve(imgId).done(resolve));
}

sorry this the original image

Did you train a model? The solve method won't do anything unless you've loaded a model. And I'm not sure what the opaque method in your code does, but it's probably unnecessary.
I only see small sections of your code, so I'm not sure where you problem might be. Here's an example of generally what you should be doing. You'll need to train on at least one example of every possible letter, both lower and upper case.

Also, make sure you have allow_console_log enabled to provide helpful debugging information to the console.


[5.3] Eloquent : withCount() overrides the $columns on get()

Laravel Version: 5.3.6
PHP Version: 5.6.15
Database Driver & Version: Mysql 5.6.31

Description:
When using withCount() from eloquent Builder it ignores the $columns passed to the get() method and select all the columns.
Steps To Reproduce:
User::withCount('someRelation')->get(['id', 'name']);

Ping @barryvdh
withCount() selects * on the parent query, it prevents any further column selection, is there a way around this?

That is what I mentioned in the PR as possible problem, which I don't have a nice solution for. We need to add a select, if we just add the new column, the default '*' gets ignored (which is more common). See replies from here: https://github.com/laravel/framework/pull/13414#issuecomment-217875410
I think it should work when you explicitly use a select() call before the count.
User::select(['id', 'name'])->withCount('someRelation')->get();

Yes it works this way.
@shadoWalker89 Check the reply above.

Yes it works the way barryvdh said.
Maybe you could add the fix for this as 5.4 milestone ?

Or perhaps add this to a note to the withCount docs?

You could also use the "addSelect" instead of "select", that way you can put it after the "withCount".
User::withCount('someRelation')->addSelect(['id', 'name'])->get();

There should be a note regarding this. I spent over an hour trying to figure this out why get([fields]) isn't working with withCount.
@Luis-Goncalves-Searchprof addSelect is not working after withCount.

@clytras we're always welcoming PR's that improve the docs 👍

@driesvints I'm not aware of the Notes Markdown format that I sould use to add one in Counting Related Models.
If you do, please provide it here and I will make a PR for this.

$query->paginate() overrides the select() method and brings everything. Any way around for paginated results?


Error on Version History with ID in UUID format

Describe the bug

Define a table with a UUID identifier and set Version History on;
Insert a record on that table;
The main record is stored;
The insert of the history data in the history table generates an error and history is not inserted;
Error:

Expected behavior
History tables accepts UUID identifier on main table
Screenshots

additional error messages

any progress?

should be closed by #2348


zulip followups

ensure DMs aren't in the data
filter out automated messages (currently GH issues)

DMs filtered in recent commits. I think just need to hardcode streamIds to ignore in the ETL code

also members are off by one, I think counting notification bot or some other system user


timeSlice support like in MultiStreamRecorder

any plans on adding timeSlice support for MediaRecorder?

There is a separate extracted (a little modified) repository:

https://github.com/streamproc/MediaStreamRecorder

My plan is to keep main-developments in RecordRTC repo however MediaStreamRecorder should run top over RecordRTC to make sure it uses latest codes/fixes.

as i understand to run MediaStreamRecorder top over RecordRTC there should be timeSlice param in recorder .start() function