dead link / wrong redirects

Description
Link redirects to the wiki site are returning 404 on github and on the phala.network domain most of the sublinks returns to:
https://wiki.phala.network/en-us/general/phala-network/phala-network/
Steps to reproduce
Trying this page:
https://wiki.phala.network/en-us/docs/khala-mining/3-0-console/
https://wiki.phala.network/en-us/docs/khala-mining/4-0-faq/#confidence-level
https://wiki.phala.network/en-us/docs/phala-network/phala-network/
https://wiki.phala.network/en-us/docs/
Expected result
Should be landing into the specified hyperlinks.

@illyrianalien replace 'docs' with 'maintain' in all URLs and they should work.
This is a result of our updated wiki.
Aimed to be tackled in this PR https://github.com/Phala-Network/phala-wiki-next/pull/68

@hauni97
thanks a lot, will do!

FYI:
https://wiki.phala.network/en-us/maintain/khala-mining/ works fine.
but for example
https://wiki.phala.network/en-us/docs/khala-mining/4-2-how-to-fast-sync-node-use-snapshot/
to:
https://wiki.phala.network/en-us/maintain/khala-mining/4-2-how-to-fast-sync-node-use-snapshot/ doesn't.

@illyrianalien, where did you find this link?
This (https://wiki.phala.network/en-us/maintain/khala-mining/4-2-how-to-fast-sync-node-use-snapshot/) is, in general deprecated, and we no longer recommend users to use a snapshot when setting up a miner.

@hauni97 it was still crawled on search engines, then looked it up in the /content directory of the wiki here, then i saw it mentioned here: https://discord.com/channels/697726436211163147/756105753743458314/940186836280680458 which might have mislead me.
Thanks for the update!
I could find all the remaining link via the /maintain


Retrieve data from cognitive search by exluding keywords

Is your feature request related to a problem? Please describe.

Package Name: azure-search-documents
Package Version: 11.4.0b6
Operating System: Windows
Python Version: 3.10

I'm trying to perform a hybrid search (vector + text) on cognitive search with the aim of excluding some keywords from the search. The text to search for is the following: "renewable energies" -"h2o".
The data I want to receive from cognitive search are related to the words "renewable energies" but excluding where "h2o" is mentioned. I set the searchMode to "all" to cover all constraints at once but using the python library it also returns candidates with "h2o" in their text. By executing the same query from the portal (text only and without vectors) the results presented to me are correct. How can I implement this solution via the library?
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
I tried all the combinantion between query_type and search_mode and also all combination between search by text, vector or hybrid. Tested also with the use_sematioc_captions
Additional context
Portal query: "renewable energies" -"h2o"&$filter= search.ismatch('4289*', 'category', 'full', 'all')&searchMode=all&queryType=semantic
Python code:
query_text = "renewable energies" -"h2o"
filter= search.ismatch('4289*', 'category', 'full', 'all')
query_vector = [0.015146714635193348, -0.017691470682621002, -0.0020151627250015736, -0.0007525135879404843, -0.007498909719288349, 0.008940487168729305, -0.014266878366470337, -0.036303386092185974, -0.015999479219317436, -0.026327399536967278, 0.022131258621811867, 0.037142615765333176, 0.003006670158356428, -0.0022046659141778946, ...]
r = self.search_client.search(query_text,
                                        filter=filter,
                                        query_type=QueryType.SEMANTIC,
                                        query_language="en-us",
                                        query_speller="lexicon",
                                        semantic_configuration_name="default",
                                        top=3,
                                        query_caption="extractive|highlight-false" if use_semantic_captions else None,
                                        vector=query_vector,
                                        top_k=50 if query_vector else None,
                                        vector_fields="embedding" if query_vector else None,
                                        search_mode=SearchMode.ALL
                                      )

Thanks for reaching out.
This feature request needs to be added on the service side.
Please open a ticket for search service: https://azure.microsoft.com/support/create-ticket


Unique font id

The font loader should have an "Id" type that efficiently impl's PartialEq and Hash, that is guaranteed (with reasonably high confidence) to be equal when the fonts are equal. Such an Id is necessary for caching of any resource associated with a font (rendered glyphs, HarfBuzz font and face objects, table data, coverage bitmaps). Currently font-kit tends to use PostScript name for this purpose, but it's easy to see how this might fail uniqueness (for example, when a web font stack contains a different version of a font already present in the system). It should also be cheap to compute, because we will need it for every typeface that comes back from a fallback query.
Skia's SkTypeface has a uniqueID method. Its implementation largely rests on using a cache - when going from a native font object (for example, a DirectWrite font) to an SkTypeface, there's a comparison procedure to compare equality with existing fonts in the cache. An example for DirectWrite shows a fairly complex set of heuristics - it starts with pointer equality and other checks based on the way the font is loaded, then compares a bunch of name strings.
I'm not at all convinced font-kit should be based on a cache the way Skia does it, but it might be useful as a reference.
In any case, we should export the type, then implementations can refine the tactics to compare equality efficiently and reliably, without breaking client code. This is one reason I agree with @pcwalton it should be a type and not a small integer. Another reason is so the Debug formatting is informative.

Ooooops, meant to file this against font-kit.


deps: bump grpc-gateway: 1.9.4 -> 1.9.5

⚠ This time, we've got to expect trouble: the GRPC status
FailedPreconditon is now -- correctly, as it seems -- translated to HTTP
status 400 Bad Request.
I think we might rely on this being translated to 412 Precondition Failed in a few places, at least from grepping around.

Looks good in CI, we're probably OK 😃


Fix switching class name of full-screen control

This PR fixes a regression introduced with #3135. The CSS class name of the full-screen control button did no longer change from ol-full-screen-false to ol-full-screen-true (and the other way) when switching the full-screen mode. This behavior is useful to apply custom styles.
Closes #3390

LGTM, thanks

Thanks for the review.


[Feature] Gracefully handle PSPs in 1.25

Epic: https://github.com/rancher/rancher/issues/38701
SURE-5627
Step 1: Disabling and cleaning up features
Rancher's feature set around PSPs should be disabled starting in 1.25. Ideally everything would just silently not exist or operate. Controllers may be trying to create PSP objects or re-act to things, and those should act gracefully.

How I approach disabling any controllers related to PSP's for downstream clusters >=1.25.
Get a list of files and directories that have psp or podsecurity in their names.
I assume that the main thing that needs to be changed is the set of controllers that work with different resources as part of PSP management. The relevant directory is in bold. We need to check if the downstream cluster's version is 1.25 or greater, and, if yes, do not run code in the Register function.
Directories:

rancher/pkg/api/norman/customization/podsecuritypolicytemplate
rancher/pkg/api/norman/customization/podsecuritypolicybinding
rancher/pkg/controllers/managementuser/rbac/podsecuritypolicy
rancher/pkg/controllers/management/podsecuritypolicy

Files:

rancher/pkg/generated/controllers/management.cattle.io/v3/podsecuritypolicytemplateprojectbinding.go
rancher/pkg/generated/controllers/management.cattle.io/v3/podsecuritypolicytemplate.go
rancher/pkg/data/management/podsecuritypolicytemplate_data.go
rancher/pkg/controllers/managementuser/pspdelete/pspdelete.go

We must keep all the logic around Pod Security Policy Template and its Bindings (both local-cluster non-namespaced resources), because Rancher can still support downstream K8s clusters v1.24 and lower.

How controllers are registered
The controllers in the rancher/pkg/controllers/managementuser/rbac/podsecuritypolicy package.
The following are observations of events that occur when I provision a downstream cluster.

When I provision K8s 1.23 with PSP's enabled, Rancher registers the controllers.

When I upgrade the K8s version to 1.24, the controller registration does not run.

When I disable PSP and update the cluster, Rancher does not run de-registration, which might be bad, as there will be code that runs and even potentially modifying the state of the cluster unnecessarily.

When I enable PSP in 1.25 (tentatively allowed in the UI), my updated code does not run the controller registration.
But there is a provisioning error still. error syncing 'c-b7dfx': handler cluster-provisioner-controller: Failed to validate cluster: PodSecurityPolicy has been removed and can not be enabled since k8s v1.25, requeuing. This makes sense.

Validated following test cases:

To validate the issue on local k8s 1.25, we would need a rancher chart. Moving the issue to waiting for rc

Can be validated in Rancher v2.7.2-rc1

This needs additional work with the chart where the PSP is removed entirely for the chart used in v2.7.2.

QA Testing
Testing mostly consists of inspecting Rancher logs in the local cluster.
Scenario 1

Provision a new downstream cluster with K8s v1.25.
When the cluster is up, search Rancher logs in the local cluster for messages that pertain to starting PSP-related controllers in the local cluster. Specifically, Checking cluster [%s] compatibility before registering podsecuritypolicy controllers., insert cluster name or search for a substring of this message. Then ensure there is a message similar to will not register podsecuritypolicy controllers for cluster. This means Rancher correctly refused to register these controllers, since they are not needed to be run for downstream clusters with a K8s version >=1.25.
Ensure there are no PSP-related errors in the logs.

Scenario 2

Provision a new downstream cluster with K8s v1.24.
When the cluster is up, search Rancher logs in the local cluster for messages that pertain to starting PSP-related controllers in the local cluster. Specifically, Checking cluster [%s] compatibility before registering podsecuritypolicy controllers., insert cluster name or search for a substring of this message. Then search for a message that confirms Rancher has successfully registered those controllers: cluster [%s] compatibility for podsecuritypolicy controllers check succeeded.
Ensure there are no PSP-related errors in the logs.

Scenario 3 (continues from Scenario 2)

Now upgrade the downstream cluster to K8s v1.25.
Ensure there are no PSP-related errors in the logs.

Verified on v2.7-head ec67e31

Install rancher on v2.7-head
Create a downstream rke1 node driver 1.25 cluster
Verified no errors related to psp
Create a downstream rke2 custom hardened 1.24 cluster
Verified the following errors were seen in the rancher pod logs:

Checking cluster `c-id` compatibility before registering podsecuritypolicy controllers.

Disabled psp from rke2 custom cluster from yaml and setting the profile to None and protect-kernel-defaults: false
Upgraded the cluster from 1.24 to 1.25 and verified no psp related errors were seen in the rancher logs.

Verified upgrade from v2.7.0 to v2.7-head ec67e31

Install rancher on v2.7.0
Created a downstream rke1 node driver 1.24 non-hardened cluster and 1.24 rke2 hardened cluster
Upgraded rancher server to v2.7-head
Repeated steps 3 through 5 and verified no psp related errors were seen in the rancher pod logs.


[scaling]: Added an OTLP layer for the runtime

Description of change
This PR was essentially a manual cherry-pick of #1041 functionality related to the OTLP layer added to the runtime.
This PR awaits the addition of the same logger service added by #1041.
How has this been tested? (if applicable)
N/A, pending some more work.

Closing this in favor of #1139


[Feature]: Add Output in React.Js Course in Docs section

Related Issue
Fixes #3922
Description
[Feature]: Add Output in React.Js Course in Docs section
Type of PR

[ ] Bug fix
[x] Feature enhancement
[ ] Documentation update
[ ] Security enhancement
[ ] Other (specify): _______________

Screenshots / Videos (if applicable)

Screencast from 2024-07-27 13-38-12.webm
Screencast from 2024-07-27 13-38-31.webm
Screencast from 2024-07-27 13-41-38.webm
Checklist

[x] I have performed a self-review of my code.
[x] I have read and followed the Contribution Guidelines.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have followed the code style guidelines of this project.
[ ] I have checked for any existing open issues that my pull request may address.
[ ] I have ensured that my changes do not break any existing functionality.
[ ] Each contributor is allowed to create a maximum of 4 issues per day. This helps us manage and address issues efficiently.
[ ] I have read the resources for guidance listed below.
[ ] I have followed security best practices in my code changes.

Additional Context
[Include any additional information or context that might be helpful for reviewers.]
Resources for Guidance
Please read the following resources before submitting your contribution:

[x] Code Harbor Hub Community Features
[ ] Docusaurus Documentation
[ ] React.js Documentation
[x] Markdown Guide
[ ] MDX Documentation
[ ] Mermaid Documentation

Resources for DSA Features on Our Site:

[x] Tabs: Switch Languages
[ ] Line Numbering
[ ] Math Equations

Contribution Guidelines
Thank you for considering contributing to our project! To ensure smooth collaboration and effective contribution management, please adhere to the following guidelines:
Issue Creation

Limit on Issues:

Each contributor is allowed to create a maximum of 4 issues per day. This helps us manage and address issues efficiently.

Contribution Levels

Basic Contributions:

This project is primarily focused on documentation. Most of the setup has been completed, so contributors will generally need to work on basic code tasks, such as writing tests.
For these tasks, issues will be assigned the level1 label.

Acknowledging Hard Work:

If a contributor puts in significant effort on a task, the issue will be upgraded to level2. This is our way of recognizing and appreciating extra effort.

Feature Additions and Component Work:

Contributors working on new features or components using JSX/TSX will be assigned a level based on the complexity and quality of their work.
The more complex and valuable the contribution, the higher the level assigned.

Level Definitions

Level1:

Tasks are straightforward, such as fixing minor bugs, writing tests, or making simple documentation updates.

Level2:

Tasks require more effort, such as addressing complex bugs, improving existing features, or making substantial documentation improvements.

Level3:

Tasks are highly complex and involve significant new feature development, major refactoring, or extensive contributions to the project’s core components.

We look forward to your contributions and appreciate your effort in helping us improve the project!

Hello @Ajay-Dhangar please merge this..

@sivaprasath2004, I think you'll need to debug your code and run the command npm run build. Can you try that and see if it helps?

Hello @Ajay-Dhangar , I will try to npm run build but this is show this error

If this is not work..

Hello @Ajay-Dhangar increase the limit it's can be work properly...


[ DISCUSSION ] Find a home for Qiskit platform support information

This section of the Qiskit install page doesn't yet have a home in onedocs: https://qiskit.org/documentation/getting_started.html#platform-support
Where should we put this information?

closed by #268


Websocket stuck on Launching liquidation websocket

Web socket stuck on this for hours

this is correct it will read this until there are liquidations found.


Need support TestMockSupport in .Net SDK like in powershell

Currently, we had to use Thread.Sleep in out APIs. We don't have API like TestMockSupport in .Net SDK to do sleep appropriately.

@pattipaka would this work?
Microsoft.Rest.ClientRuntime.Azure.TestFramework.Testutilities.Wait()
https://github.com/azure/azure-sdk-for-net/blob/AutoRest/src/TestFramework/Microsoft.Rest.ClientRuntime.Azure.TestFramework/Utilities/TestUtilities.cs#L84


I am going crazy with Chrome - It work at one page and not on other

Hi Team,
This issue i am facing is with Chrome.
I spend hell lot of time to understand why it is not working on this page.
Drop Down In Problem : Vehicle
Not Working
Working
Can anybody please help me out.
Thank you, Raj

"vehiclesType" is creating i suppose .As you don't have mention which one .
you have used "data-dropupAuto=true" , which is "beDefault" setting of the plugin .
As you container is not able to contain the container box of options list .
Do change it false while creating select tag .
Will solve your problem .
Cheers

What specifically isn't working? It appears to be working fine to me (can open the menu and select options).

Sorry Amit/Caseyjhol,
Forgot to mention it's Vehicle option not working.
I will try your suggested solution Amit and let you know, thank you for that.

Hrmmm...the Vehicle option is working for me.

It's working on home page and not working on other page in chrome and Mozilla.

Well, I'm confused. It seems to be working to me. What specifically about that field isn't working?

Ohh really? Problem is : when I try to select option from dropdown it does not show anything like others.

Hi @amitsquare ,
Perfect, i added that property and it worked fine.
Thank you so much for your help.
Raj


Adding CallFilter to pallet-utility.

Description
Adding CallFilter to pallet-utility. Issue https://github.com/paritytech/substrate/issues/13720
Motivation
The current form of the pallet uses frame_system::Config::BaseCallFilter, which does not allow to disable calls that should not be used in this particular pallet.
Behavior
This PR adds call filtering at the pallet level. Filtering rules are similar to frame_system::Config::BaseCallFilter:

For Root Origin, filtering is disabled.
For Signed Origin, the frame_support::traits::Contains::contains method is used. If the result is true, then sp_runtime::traits::Dispatchable::dispatch is called, otherwise the error frame_system::Error::CallFiltered is returned.

--
Polkadot companion: https://github.com/paritytech/polkadot/pull/6827
Cumulus companion: https://github.com/paritytech/cumulus/pull/2283

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2477674

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-each-crate
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2477688

Can you provide some context on why this is required?

Can you provide some context on why this is required?

Similar functionality is already provided in the utility pallet itself: the batch extrinsic can't batch other batches.
It looks reasonable to provide means to prevent other calls from executing in batch, e.g., when a parachain has some other means for batching like Ethereum contracts.

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2767975


Engage filter logic by account name/ number-allowance sub types

Definition of Ready

[x] Does this meet the INVEST criteria?
[x] Does this have a clearly defined user?
[x] Does this have an estimate?
[x] Does this have acceptance criteria?
[x] Does this have sufficient context for the specific functionality being developed (design, business rules, etc.)
[x] Does this have a dev link been provided in the design?
[x] Is this traceable to a feature, epic, or PI?

User Story
As a custom data download user I want the filter logic to engage when I select an account name/ number So that I can avoid producing an allowance query with no results
Acceptance Criteria
Given that a user has applied account info or allowance holdings as a data sub type
When the filter panel functionality is displayed
Then the filter logic is engaged
Given that a user has selected an allowance sub type (allowance holdings and account info)
When filter criteria is applied for account name/ number
Then all other filters are narrowed based on the applied account name/ number criteria (excludes account type)
Given that the filter logic is engaged
When new filter criteria is applied
Then all previously selected criteria that are still valid are maintained
Given that the filter logic is engaged
When the filter panel functionality is displayed
Then non applicable selections are removed from the combo box filter list
AND grayed out from the check lists
Given that the filter logic is engaged
When account name/ number criteria is removed (ex filter tags, filters)
Then the filters are narrowed based on the applied criteria
Given that the filer logic is engaged
When the the checklist functionality is displayed
Then the user can not select or apply filter criteria for greyed out items
Given that the filter logic is engaged
When the "select all" functionality is selected on the checklist component
Then the system selects criteria that is not greyed out
Given that the filter logic is engaged
When the checklist functionality is displayed
Then the select all functionality is disabled for groupings that only contain greyed out criteria
Development Notes
Does this Story require 508 Testing?

[ ] Implementing a new authoring tool that will produce code / content for the application
[ ] Implementing a 3rd party widget that will be part of the application
[x] Adding new / updating custom functionality
[ ] Adding new / updating a page template
[ ] Adding new / replacing existing functionality (unless the replacement has already passed 508 testing)
[ ] Full Site Review prior to a scheduled EPA 508 review
[ ] Planning a video that will appear on the application
[ ] Producing a video that will appear on the application
[ ] Producing Training materials
[ ] Producing documents

Context
(User journeys, design mockups, architectural diagrams, business rules, data element definitions)
Testing
Test Case: TC468
Tester: @JanellC
508 Testing:
Tester: @aprematta
Definition of Done

[x] Have all Acceptance Criteria been agreed to and validated by the scrum team?
[x] Has the code been unit tested and peer reviewed?
[x] Have the functional tests been executed?
[x] Have all defects been reviewed and dispositioned, resolved, or deferred?
[x] Is the user story ready to be deployed to the test/staging environments?

TC468 passed @tlageman-epa . This ticket is ready for 508 testing @aprematta


Added xDnsServerSetting closes #36

Added new module, xDnsServerSetting to allow the management of a DNS server properties.

This change is

Hi @jcwalker, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@jcwalker, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, MSBOT;

Review status: 0 of 7 files reviewed at latest revision, 3 unresolved discussions.

DSCResources/Helper.psm1, line 61 at r2 (raw file):

    )

    if($ReferenceObject -ne $null -and $DifferenceObject -ne $null)

Ensure null is on left side of operator - https://github.com/PowerShell/DscResources/blob/master/BestPractices.md#ensure-null-is-on-left-side-of-comparisons

DSCResources/Helper.psm1, line 74 at r2 (raw file):

        }
    }
    elseIf ($ReferenceObject -eq $null -and $DifferenceObject -eq $null)

ensure null is on left side of operator - https://github.com/PowerShell/DscResources/blob/master/BestPractices.md#ensure-null-is-on-left-side-of-comparisons

Tests/Unit/MSFT_xDnsServerSetting.Tests.ps1, line 186 at r2 (raw file):

                foreach ($key in $getResult.Keys)
                {
                    if ($getResult[$key] -ne $null -and $key -ne 'Name')

ensure null is on left side of operator - https://github.com/PowerShell/DscResources/blob/master/BestPractices.md#ensure-null-is-on-left-side-of-comparisons

Comments from Reviewable

Review status: 0 of 7 files reviewed at latest revision, 3 unresolved discussions.

DSCResources/Helper.psm1, line 61 at r2 (raw file):
Previously, mgreenegit (Michael Greene) wrote…
> Ensure null is on left side of operator - https://github.com/PowerShell/DscResources/blob/master/BestPractices.md#ensure-null-is-on-left-side-of-comparisons

Done.

DSCResources/Helper.psm1, line 74 at r2 (raw file):
Previously, mgreenegit (Michael Greene) wrote…
> ensure null is on left side of operator - https://github.com/PowerShell/DscResources/blob/master/BestPractices.md#ensure-null-is-on-left-side-of-comparisons

Done.

Comments from Reviewable

Review status: 0 of 7 files reviewed at latest revision, 3 unresolved discussions.

Tests/Unit/MSFT_xDnsServerSetting.Tests.ps1, line 186 at r2 (raw file):
Previously, mgreenegit (Michael Greene) wrote…
> ensure null is on left side of operator - https://github.com/PowerShell/DscResources/blob/master/BestPractices.md#ensure-null-is-on-left-side-of-comparisons

Done.

Comments from Reviewable

Reviewed 1 of 2 files at r2, 1 of 6 files at r5, 1 of 6 files at r6, 3 of 5 files at r7, 8 of 8 files at r8.
Review status: all files reviewed at latest revision, 3 unresolved discussions.

Comments from Reviewable

@kwirkykat This PR has been updated to resolve merge conflicts and pass build tests.  What is the best way to get this PR approved?  Thanks.


Encountering "Techstack is invalid" when the Technology scan has no language level

Hello,
Please see issue found.
Issue: Encountering "Techstack is invalid" when the Technology scan has no language level
Steps to reproduce:

Generate a BSI where the Techstack has no language level (I used Objective C/C++)
Start a scan using Fodupload.jar.

Expected result: Scan will be created.
Actual result: Techstack is invalid
See screenshot below for your reference.

This issue only affects iOS Swift & Objective-C/C++

@cripher Please provide a screenshot of the place you generated this bsi url, I don't see how you could have generated this bsiURL without typing the TechStack in yourself.

@tcappetto, you can reproduce on any mobile application on the FoD portal trying to start a static scan selecting "iOS" for static scan. The generated BSI URL is similar to the one shown on the snapshot by @cripher

Jose and/or Able, please confirm this issue is resolved.  Thanks.

3.0.2


Feature Request: Multiple side-by-side tours

I would love to be able to use your library to view two sets of equirectangular imagery side-by-side, where pitch/yaw/fov changes to the left/top window are mirrored to the right/bottom.
Essentially the tour configuration would need each scene to have separate panorama, horizonPitch and horizonRoll parameters for the two viewports,
Thanks for the fantastic, easy to use library.

This would require an event for any movement of the viewport, which is tracker in #310.


These branches be automatically merged.

These branches can be automatically merged.

These branches can be automatically merged.


Data Table With Full Features and PHP/MySQL

Hi, I used the table shown in "Data Table With Full Features" example (class="table table-bordered table-striped") with data loaded by a PHP/MySQL loop and the and Search box, Show N entries, and Pagination disappeared.
What am I doing wrong?
Thanks in advanced
Regards, Felipe

Hey Felipe,
If your using PHP, then you should only use it to print out HTML records as "tr" with all the data and etc.
And then at the end of your page, you would have to write the JavaScript code needed to initialize your DataTable based on the ID given to the element, not the class name (or you can do that too but it's not recommended).
The JavaScript Code to initialize your DataTable can be found in this sample page:
Data Tables Sample Page in AdminLTE
Hope this helps,

Thanks, it worked.


BUG: There should be written "No  address or No wishlist found for new users who are not logged in"

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
There should be written No address or No wishlist found for new users who are not logged in. Instead of this  it is showing random wishlist and other things on the my profile section which is not good.

Therefore i suggest writing like Nothing found for this category.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Kindly assign this issue to me.


Error downloading installation file during automatic version upgrade

System information:

Windows 10 Enterprise, 1909
DBeaver version <IP_ADDRESS>103211229 (portable zip)
Java (built-in): openjdk version "11.0.5" 2019-10-15
Additional extensions: DBeaver Office Support

Describe the problem you're observing:
During the Upgrade to version 21.0.2 the new version seems to be downloading (the percentage is going up), then the following error message appears: "Error downloading installation file: Tag mismatch!".
Steps to reproduce, if exist:
Check for Updates then choose Upgrade ...
Include any warning/errors/backtraces from the logs
javax.crypto.AEADBadTagException: Tag mismatch!
at java.base/com.sun.crypto.provider.GaloisCounterMode.decryptFinal(Unknown Source)
at java.base/com.sun.crypto.provider.CipherCore.finalNoPadding(Unknown Source)
at java.base/com.sun.crypto.provider.CipherCore.fillOutputBuffer(Unknown Source)
at java.base/com.sun.crypto.provider.CipherCore.doFinal(Unknown Source)
at java.base/com.sun.crypto.provider.AESCipher.engineDoFinal(Unknown Source)
at java.base/javax.crypto.CipherSpi.bufferCrypt(Unknown Source)
at java.base/javax.crypto.CipherSpi.engineDoFinal(Unknown Source)
at java.base/javax.crypto.Cipher.doFinal(Unknown Source)
at java.base/sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.decrypt(Unknown Source)
at java.base/sun.security.ssl.SSLSocketInputRecord.decodeInputRecord(Unknown Source)
at java.base/sun.security.ssl.SSLSocketInputRecord.decode(Unknown Source)
at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(Unknown Source)
at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(Unknown Source)
at java.base/java.io.BufferedInputStream.read1(Unknown Source)
at java.base/java.io.BufferedInputStream.read(Unknown Source)
at java.base/sun.net.www.MeteredStream.read(Unknown Source)
at java.base/java.io.FilterInputStream.read(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)
at java.base/sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Unknown Source)
at org.jkiss.dbeaver.runtime.WebUtils.downloadRemoteFile(WebUtils.java:162)
at org.jkiss.dbeaver.runtime.WebUtils.downloadRemoteFile(WebUtils.java:123)
at org.jkiss.dbeaver.ui.app.standalone.update.VersionUpdateDialog$1.run(VersionUpdateDialog.java:268)
at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:105)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Also, based on the debug log it tries to download the "https://dbeaver.io/files/dbeaver-ce-latest-x86_64-setup.exe" file, which is not really useful to upgrade the portable zip version.

Hello @ducklingasa,
Thanks for the report. I cannot reproduce this issue, maybe it was a temporary error.
I agree, we download installation file and run it, not respecting the type of current DBeaver installation.
I don't know what solution for zip would be better.

Hi @ShadelessFox,
Thanks for checking this out, I did several tests in the morning when I had the issue all the time, but now it's gone.
Though, will create a separate feature request for #11996 (comment).


Restore exec output stream

Is it possible to restore an exec output stream?
When starting an exec in a container it returns stream.Duplex with which I'm reading the output of the exec.
Is it possible to get access to this stream after a restart of my script when the exec is still running?
I've tried creating a new Exec instance and doing a start() on that, to try to get the stream, but that gives me the error:
can only start created exec sessions, while container <id> session <id> state is "stopped": exec session state improper

not relevant for this package, more for dockerode itself


Control Days to show in Month View

I want to be able to show maybe 2 weeks of events in month view. How would I go about doing that.

??? i can't catch your words. tell me more details. even some pics could be help

For instance in V1 of CalendarExt, we could do this
					daily: {
						position:
							"bottom_bar",
						timeFormat:
							"h:mm A",
						counts: 5
					},

And that would show a month view, but only 5 days, I am looking for that. I like the time format

You mean just to show 5 days (From Monday to Friday) in table view? Like this?

views: [
  {
    title: "1 Week View",
    name: "VIEW1",
    mode: "week",
    calendars: [],
    position:"bottom_bar",
    slotMaxHeight: "120px",
    showWeekends: false,
    slotCount: 1,
  },
],

that worked great, would be really nice to show different config examples


Added state file i/o in image driver.

Note that I am not finished testing this.  I am trying to ensure that VIC can read the state files produced by tonic (as well as its own state files).  But at least the code differences are visible now.

@tbohn - I just briefly looked through this and it looks good. Thanks for putting it together. We'll give it a full code review but you'll need to resolve the merge conflict first.

@tbohn : can you resolve the merge conflicts before I review?

@bartnijssen I will try my best to get to this in the next couple of days, but can't do it right away.

OK, I've merged the latest commits from develop into this branch and resolved merge conflicts.  So, it's ready for a more thorough review.

Okay, I've reviewed everything here.  @bartnijssen will need to followup with a detailed review as well.
The changes in vic_store were so long that github wont show the diff.  I did review that diff on my local machine and I just had one comment.

make sure the writing of the lake variables is in an if block as well.

OK, will do.  Thanks for the review.

Actually, the lake variables in both vic_restore() and vic_store() are all within if (options.LAKES) blocks.  So, no change needed for them.


Fix warning in user_crate::build

I do remember seeing this in the conversations: https://github.com/tcdi/plrust/pull/184#discussion_r1087272357
Is this relevant?

Dropping this in favor of #188


Disable unread notifications for message reactions

Option to disable unread message notifications in chat rooms for message reactions (i.e. get unread notifications only for new messages) would be nice.

Closing as the new UI has been developed after this issue was opened and this issue relates only to the old UI.
(In the new UI, reactions are attributes to messages, not entirely new messages)


Support multiple project directories

Atom supports multiple directories for a project. Additional directories can be added via File -> Add project folder.... It would be great if advanced-new-file would be aware of multiple project directories.
For instance, instead of setting the context for file and directory paths to the first project's directory, the context could be the set of project directories.

Hi, this is definitely good suggestion, but first I have to find time to write test for whole package. This is bit tricky and I worry ti can affect quite a lot so I want to write test first. Hopefully I will do that in next week or two.

A useful thing, i am looking forward to this feature :)


Dino catalog

Don't merge. Just wanted to complete the rest of the requirements from last code review.

It seems strange that you create something called "CSVDataMapper" and use it like the catalog. More specifically, do you really want to mix parsing (and handling those weird edge cases) with the same app logic as the find method?
This exercise is a bit cruel in how it forces you to parse the csv's e.g. What "CONTINENT" are the african_dinosaur_export.csv from? This may make it clear to separate parsing logic from app logic.

@geekaholic, made some comments. I hope they help!

A

Thanks Ashton definitely great feedback. The CSV class started out in me
trying to separate out parsing driver (SQL DB vs CSV) and thinking (at the
time) the filter implementation would depend on the underlying driver.
But after normalizing the data I agree with you that it should be separated
out.
As for using send vs have the dinosaur handle it I'll think about. I did
want to not get too OOO and complicate it. Wanted a simple generic
implementation.
As for the find_large method, that's a one off to accommodate Joe's need to
find big Dino's. Thought the 2ton definition didn't need much customization
via params.
Bud
On Tuesday, February 3, 2015, Ashton Thomas<EMAIL_ADDRESS>wrote:

@geekaholic https://github.com/geekaholic, made some comments. I hope
they help!

A

—
Reply to this email directly or view it on GitHub
https://github.com/jmmastey/level_up_exercises/pull/476#issuecomment-72655992
.

--
Bud
Geek with an Attitude
Blog: http://geekaholic.org
twitter: @geekaholic


Add theme files for Dracula, Facebook, and Firewatch

Oh wow, I forgot that I should be updating this and Materialize-White-Panels every time I add a new theme. Thanks a lot for this, it's really appreciated! I'll push your changes to Package Control in a few hours once I get home.


Fix preload type regression

reverts a change made in https://github.com/godotengine/godot/pull/69471
fixes https://github.com/godotengine/godot/issues/70121

Thanks!


Add file drag over event emitter on enter and leave

Add an event emitter to be able to modify drop zone css when moving the file over:
(fileOver)="fileOverDropZone($event)"

Hi @AdrianPasalega, thank you for your PR. That looks alright, but nobody will know about usage of this. Can you please also add this to the README with the example and I will accept it? Thanks.

Hi @jkuri , yes, you are right :), I add an example, let me know if it is ok.

Thanks! Merged and published new version to npm.


Catalogue doesn't have a favicon

The Polymer Element catalog doesn't have a favicon. https://elements.polymer-project.org/favicon.ico renders a 'shell' page.

Update to this - I noticed that when you fork the repo and run locally, the icon does show up. But on your production site the shell page hides the icon.


Possible to get time based on city / country

Hello.
I would like to be able to do the following queries:
"time in Madrid" -  Would display the current time in Madrid
"15h in India" - Would display my local time when is 15h in India.
Google search allows you to do this.
Maybe using some webservice or Google TImezone API?

I will look into the first suggestion "time in Madrid" soon.
Please open a second issue regarding "15h in India" support.


move() method smearing on KitKat with snackbar.

The FAB seems to be smearing (leaving a image trail behind) under certain conditions in KitKat when move is called.
I'm using your FAB in conjunction with nispok's Snackbar library https://github.com/nispok/snackbar,
and when the snackbar slides up, I move my FAB up by the snackbar height. However, when I SWIPE AWAY the snackbar (very important detail), the FAB comes back down, but it leaves a trail of itself.
I made my own translation animation and the smearing is gone, so it's a good chance that it's a bug in your library. I thought it should be something you should look at.
Note: I've only tested this on the emulator. ICS and Lollipop work fine.
Edit: Jellybean works fine, did not test ICS.

Hi marcochin,
Sure, I'll have a look at this
Please, provide the ActionButton configuration (xml or code) and the method calls to Snackbar and ActionBar libraries
Have you tried also to move ActionButton on KitKat without Snackbar library?

This only happens when you SWIPE AWAY the snackbar. If you dismiss the snackbar by clicking the snackbar action button, the animation will work properly. And no I haven't tried it without the snackbar library, dunno if I can reproduce it without swiping away the snackbar.
ActionButton in xml
<com.software.shell.fab.ActionButton
        android:id="@+id/floating_action_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        fab:button_color="@color/fab_normal_state"
        fab:button_colorPressed="@color/fab_pressed_state"
        fab:image="@drawable/ic_add"
        fab:image_size="30dp"
        />

Snackbar configuration in java:
 SnackbarManager.show(
                Snackbar.with(getActivity())
                        .text(R.string.snack_bar_text_item_removed)
                        .actionLabel(R.string.snack_bar_action_undo)
                        .actionListener(new ActionClickListener() {
                            @Override
                            public void onActionClicked(Snackbar snackbar) {
                                int position = mDataProvider.undoLastRemoveItem();
                                mMyCustomAdapter.notifyDataSetChanged();
                                mRecyclerView.scrollToPosition(position);
                                mEmptyListMsg.setVisibility(View.INVISIBLE);
                            }
                        })
                        .colorResource(R.color.snackbar_bg_color)
                        .textColorResource(R.color.snackbar_text_color)
                        .actionColorResource(R.color.snackbar_action_color)
                        .duration(5000)
                        .type(SnackbarType.SINGLE_LINE)
                        .swipeToDismiss(true)
                        .eventListener(new EventListener() {
                            @Override
                            public void onShow(Snackbar snackbar) {
                                float snackbarHeight = DpPxConversionUtil.convertPixelsToDp(snackbar.getHeight(), getActivity());
                                mFloatingActionButton.moveUp(snackbarHeight);
                            }

                            @Override
                            public void onShowByReplace(Snackbar snackbar) {

                            }

                            @Override
                            public void onShown(Snackbar snackbar) {

                            }

                            @Override
                            public void onDismiss(Snackbar snackbar) {
                                float snackbarHeight = DpPxConversionUtil.convertPixelsToDp(snackbar.getHeight(), getActivity());
                                mFloatingActionButton.moveDown(snackbarHeight);
                            }

                            @Override
                            public void onDismissByReplace(Snackbar snackbar) {

                            }

                            @Override
                            public void onDismissed(Snackbar snackbar) {

                            }
                        })
        );

DpPxConversionUtil Class if you're interested:
public class DpPxConversionUtil {

    public static float convertDpToPixel(float dp, Context context){
        return dp * context.getResources().getDisplayMetrics().density;
    }

    public static float convertPixelsToDp(float px, Context context){
        return px / context.getResources().getDisplayMetrics().density;
    }
}

So, I found a possible place to fix within a library, which ActionButton depends on.
However, KitKat emulator is a sort of hard way to test the fix, because of the rendering (actually I can't get even smooth animation on it).
Will you have a possibility to check the fix on your side if I build the sample application and send you the .apk file?

Yea, but I can also only test it on an emulator. I had a real KitKat device, but I recently updated it to lollipop..

Fixed in version 1.1.2
Please check && confirm

I've ran it on my emulator and seems to be fixed


[sandbox] (optional uint) shown as uint

Describe the bug
A contract has a parameter of type (optional uint), but the transaction is sent as uint.
To Reproduce

On testnet, use contract ST2PABAF9FTAJYNFZH93XENAJ8FVY99RRM4DF2YCW.boom-pool-nfts-v1 function delegate-stx
enter stacker: ST2PABAF9FTAJYNFZH93XENAJ8FVY99RRM4DF2YCW, amount: 100, until-burn-ht: 10000000
click "call function"
confirm in stacks web wallet
see error BadFunctionArguments

node response:
{"error":"transaction rejected","reason":"BadFunctionArgument","reason_data":{"message":"TypeError(OptionalType(UIntType), UIntType)"},"txid":"4d05aefb7c94f64341e6996b023c46a04150fe516cb16cbe5f873014e82014a2"}

Screenshots

until-burn-ht shown as uint

Additional Context
Contract deployment: https://explorer.stacks.co/txid/ST2PABAF9FTAJYNFZH93XENAJ8FVY99RRM4DF2YCW.boom-pool-nfts-v1?chain=testnet
Line 68:

@obycode is this still a thing on the sandbox?

You can use this contract on testnet for a simple reproducer:
ST1SJ3DTE5DN7X54YDH5D64R3BCB6A2AG2ZQ8YPD5.nearby-magenta-termite


HHVM Fails

For some reasons, unit tests in HHVM stops running.

hash_pbkdf2 is already available in HHVM, skipping those tests solved the issue.


Order by date schedules

Currently we don't order it by date but we should order it in the schedules page and in the availability modal on the publishers page

Fixed on https://github.com/MarckFp/ppoc-gen/commit/821f6c7f6ac511669dbfb0dfed536456875ddbb8


Improved Docs Update README.md

@pranjalbansal1916 Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

We love it so much we are reporting your account to GitHub!

This is a Hacktoberfest PR spam as far as we can tell. Reporting as such.


No permissions to write in /var/lib/

Gitea version (or commit ref): 1.12.5
Git version: 2.20.1
Operating system: debian buster
Database (use [x]):

[x] PostgreSQL
[ ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist: 2020/10/08 16:28:10 ...eue/queue_wrapped.go:75:setInternal() [W] [Attempt: 236768] Failed to create queue: unique-level for repo_stats_update cfg: queue.LevelUniqueQueueConfiguration{ByteFIFOQueueConfiguration:queue.ByteFIFOQueueConfiguration{WorkerPoolConfiguration:queue.WorkerPoolConfiguration{QueueLength:20, BatchLength:20, BlockTimeout:0, BoostTimeout:0, BoostWorkers:0, MaxWorkers:1}, Workers:1, Name:"repo_stats_update-level"}, DataDir:"/var/lib/gitea/data/queues/repo_stats_update"} error: mkdir /var/lib/gitea/data/queues/repo_stats_update: permission denied

Description
The /lib/gitea/log/gitea.log is filled with similar entries as above. The files cannot be created because of a permission issue. the owner of the var/lib/gitea/data Folder and subfolders and files is git. Apparently gitea tries to write with a different user. Which user is that? Should I allow this user to write in the folders or should I change the writing user to git. If the latter where do I make that adjustment?
Thanks in advance and best regards

Gitea runs as the user that runs Gitea.
So what user is running Gitea?
You can check by going to /admin/config and looking for Run As Username

You can check by going to /admin/config and looking for Run As Username
Where should I look? There is no /admin/config.

I am running it as a sytemd service using the appropriate guide. in that service file I got
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/var/lib/gitea

My apologies, /admin/config as a URL from your base URL. I realize now it looks like a unix path. 🤦♂

Yeah I looked for a unix/linux path.
The admin/config page says what I expected:
Run As Username   git
I think I found the issue. gitea/data/queues is owned by root instead of git. I have no idea how that happened. I didn't even manually create that folder. Should I simply change ownership to git?

It may have been that you ran Gitea as root to test it out or something before setting up the service. 🙂
I'm going to close this since we found the permission issue.

It may have been that you ran Gitea as root to test it out or something before setting up the service. 🙂

Yup, that was exactly it. Thanks for the help.


Cannot define property:children, object is not extensible.

Hi!
I've tried to add preact-compat to my app and it failed with this error.
It happens when I use this construct:
<Posts {...this.props.posts} />

I was able to resolve it by replacing with:
<Posts items={this.props.posts.items}
    isLoading={this.props.posts.isLoading} />

P.S. I wasn't able to reproduce this issue with some minimal code snippet
but it happens in my boilerplate app:
https://github.com/slmgc/preact-baobab-template/blob/dev/src/controllers/posts.js#L15

Hi @slmgc - was this with preact 5.0.1-beta.9, or a newer version?  I will see if I can reproduce the children error locally.

@developit I've tried it with:
"preact": "5.1.0-beta.19",
"preact-compat": "1.8.1",

Some of my components use higher-order wrappers that's why it's not easy to reproduce.

@slmgc The error is happening because props.posts is created by Baobab as frozen/sealed.  Normally that's not an issue, but this code ends up passing that object into Preact as the props for the Posts component, breaking preact-compat's additions:
<Posts {...this.props.posts } />
// because, as an optimization in Babel, this transforms to no copy:
h(Posts, this.props.posts);

I was able to work around the issue by changing the code to this:
// clone the object first:
<Posts {...{ ...this.props.posts }} />

// add any property to have babel do the clone for you:
<Posts foo {...this.props.posts} />

// clone explicitly:
let posts = Object.assign({}, this.props.posts);
<Posts {...posts} />

I think we can at least catch this in preact-compat and work around it, but it's a bit of an odd case.

Seems to be working nicely now with<EMAIL_ADDRESS> Sorry for the wait!

@developit works smoothly, thanks a lot!


Wont conenct to Wifi

Use one of the two templates below and delete the rest.
8<------------------------ BUG REPORT -----------------------------------------
Expected behavior
Should connect to Wifi
Actual behavior
Stuck in loading screen for wifi connection
Weather Station Color version
Which branch are you on? If you know the Git revision then add it here as well.
Hardware
Describe whether you run the code on the ThingPulse Weather Station Color kit or on some custom hardware.
8<------------------------ END BUG REPORT -------------------------------------

Does your router support 2.4 ghz + has it on? The ESP8266 chip does not support 5ghz WiFi.

I have unfortunately overwriten the SW, after flashing the old Thingpulse SW again I also lost the Wifi. Something in the WiFi libary changed and the ESP8266 is not connecting anymore....

Got it working by setting WIFI_HOSTNAME to something shorter like "wstation". The default string is probably too long.


[CMake]: Could not find a configuration file for package "absl" that is compatible   with requested version ""

Describe the issue
At this point I'm doing cross-compilation on other platforms.
I use "find_package" to  access absl lib.
When I write "find_package(absl REQUIRED)"  in the CMakeLists.txt, The following error occurred:
CMake Error at cartographer/CMakeLists.txt:91 (find_package):
Could not find a configuration file for package "absl" that is compatible
with requested version "".
The following configuration files were considered but not accepted:
/usr/local/lib/cmake/absl/abslConfig.cmake, version: 20211102 (64bit)

But I didn't specify any version.
Steps to reproduce the problem
After successfully built ABSL,The absl library is referenced.
What version of Abseil are you using?
git checkout 215105818dfde3174fe799600bb0f3cae233d0bf # 20211102.0
What operating system and version are you using?
Ubuntu20.04
What compiler and version are you using?
I don't know
What build system are you using?
i686-pc-linux-gnu
Additional context
No response

Compare
...  version: 20211102 (64bit)
with
i686-pc-linux-gnu
The latter is 32bit.


Signing Tezos transactions client side

Hello. I would like to use ConseilJS to integrate my app with Tezos, but it is necessary that I'm able to sign transactions on the client side and then to just submit a signed transaction to blockchain.
What I have in mind is something similar to eztz's  sign method .
Is there such feature in ConseilJS? My guess is there's not, since there is no relevant type in TezosP2PMessageTypes . In such case, are you planning to implement that?
If you are not, I would be interested in creating a fork and writing it myself as it sounds like a relatively easy task, not requiring much of a project context. Do you think this could be facilitated and then, merged into Conseil and reasonably maintained? If  such fork was not to be maintaned by Conseil team, it is probably not worth it since I can just interact with Tezos Node's REST API.
Thanks,
Kris

ConseilJS enables fully trustless operations against the Tezos platform, down to contract encoding.
For your specific question, take a look at TezosNodeWriter.signOperationGroup() and how it uses CryptoUtils.signDetached(). If you have follow-up questions, please reach out on the Riot dev chat.


[Sign in] Show warning message when offline

Exact UX TBD, would likely hide the sign in button and replace it with a message eg "Sign in unavailable while offline."

Details in #2131


Add support for connections FROM elbs. Includes fixing ELB ARNs

Added a few commands to collect_commands.yaml to pull in ALB/NLB info on target groups and some code in prepare to go through those target groups to add connections from the ELBs to their respective instances.

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

Thank you! Were the targets not showing up as accessible from the Security Groups?  I guess in the case of an ELBv2, even if an EC2 has a Security Group that would allow the ELBv2 to communicate with it, it won't unless the ELBv2 is configured that way.

IIRC, the ELBs (well, ALB/NLB) were being skipped in the node connection checks for not having IPs associated with them. The targets for ELBs and ALBs aren't listed in the describe-load-balanancer API calls - you have to get the target group IDs and then ask for the target health(s) for each target group, which then lists the IP and/or IDs (not sure why it varies there, but it does) of the instances that are load balanced. I didn't put the load balancer target link code "inside" the checks for the --no-internal-links check, btw. Maybe it's a preference thing for the use case I was after, but I like that output where the ELBs connect to their instances, even w/o the instance-to-instance connections. (in our case, about 12 EC2 are in a private subnet and all can connect to each other - which is a bit "noisy" - what I wanted to see was "which instance fulfills which role" in our system, which the ELB targets cleanly show)

I added in some of the updates from this PR, but not the main functionality you were actually adding. I want to keep CloudMapper focused on drawing the edges of what can talk to what based on Security Groups.  This PR was doing something different, as it was showing what the ELB's were configured to talk to, but not what their Security Groups allowed. Technically, an ELB is not going to talk to anything it is not configured for, but to avoid having to explain edge cases in understanding the maps this produces, I want this project to be based on the Security Groups only for now.


[FR] Light Theme

The current dark theme is hard on the eyes for me.

Thanks for the feedback @NightMachinery


BAEL-2193 - Merge 2 java.util.Properties objects

Yes you are right, good catch. I've updated the PR. I think it was the automatic creation of the test methods in eclipse using a shortcut. Thanks for pointing that out. ;-)


Make titles (and their formatting) consistent

Made titles and formatting consistent using the following as guides:

-- (Comment) (Transact-SQL)
+ (String Concatenation) (Transact-SQL)
Percent character (Wildcard - Character(s) to Match) (Transact-SQL)

Changes:

Made all titles use " (Transact-SQL)" where some had "-Transact-SQL". In most cases the correct formatting was in the "title" meta-data.
Renamed "Add EQUALS" (i.e. += for numbers) to be "Add and Assignment" since = is assignment, and "equals" implies a test (i.e. IF) which this isn't.
Renamed "Slash Star Comment" to be "Slash Star (Block Comment)" because that is, well, what it is ;-)
Renamed "+= (String Concatenation - equal)" to be "+= (String Concatenation and Assignment)" since = is assignment, and "equal" implies a test (i.e. IF) which this isn't.
See notes in next comment re:

Add -> Addition, Multiply -> Multiplication, etc
Modulo -> Modulus

Improvements to the "See Also" section across various pages

Hold on. I found more changes that need to be made. I had not realized earlier the extent of the compound assignment operators. The naming really should be consistent with pretty much all other languages out there. Here are several examples, all from Microsoft, most of it being within this new "docs" library:

JScript: Addition Assignment Operator (+=)
C: C Compound Assignment
C#: += Operator
JavaScript: Addition Assignment Operator (+=)
C++: Assignment Operators

There are too many changes for the moment. I will resume again tomorrow and post a message indicating when complete.

ALL DONE! (or so I believe 😉 ).

@craigg-msft Just FYI: I am all done this PR now (unless you or a reviewer finds something to change).

@srutzky thank you very much.  @v-thepet will review before the end of the week. Apologies for the delay been it has been a busy week with Connect() and your pr contains a fair number of files.  Thank you again @srutzky for all the time.

@craigg-msft You are quite welcome. And no need to apologize about taking a few extra days. I completely understand, and nobody is waiting for these changes :wink: . It is definitely a lot of files so I didn't expect that it would get pushed through quickly.

@srutzky : Thanks for your contribution to the SQL documentation! The author, @"BYHAM", has been notified to review your proposed change.

@srutzky Thakns again for all the work.  There are a few formatting things we want to edit and a bit of TOC edits but nothing seems critical. The easiest thing is to merge and then we can work the few remaining issues. on our side.  @v-thepet I am merging and thanks again for the review.

@craigg-msft Yer welcome, and sounds good. Whatever you feel is best. Just out of curiosity, would it have worked to merely edit the files directly in branch of my fork? When I created the PR, I made sure that the "allow owners (or whoever) to make changes" was checked.


Updated tags endpoints to use checkCookieToken

The paths /api/sessions/addtags and /api/sessions/removetags uses the checkHeaderToken middelware instead of checkCookieToken which most state changing endpoints uses. checkCookieToken requires that the x-arkime-cookie header is present, which makes it secure from CSRF attacks, but checkHeaderToken does not.
This PR removes the checkHeaderToken function and updates the tags endpoints to use checkCookieToken instead.
Note: This will break the the API from "being used from places other than just the UI" as specified in the in-line comment as the reason for this functions existence. I'm not sure if there's still a use-case for this, but if this still needs to be supported, we need to come up with another soltuion.
License
I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Works as designed


NotImplementedError: Wrong number or type of arguments for overloaded function '_vertcat'.

Hey Eric,
do you remember which version of casadi you used? I tried to run the example but I get this error
C:\Users\morabito\Documents\Repos\UKF-SNMPC\venv\lib\site-packages\casadi\casadi.py:168: FutureWarning: In the future `np.object` will be defined as the corresponding NumPy scalar.  (This may have returned Python scalars in past versions.
  if m.dtype!=np.object: return None
Traceback (most recent call last):
  File "C:\Users\morabito\Documents\Repos\UKF-SNMPC\Simulation_UKF_SNMPC.py", line 6, in <module>
    UKF_SNMPC                = UKF_SNMPC()
  File "C:\Users\morabito\Documents\Repos\UKF-SNMPC\UKF_SNMPC.py", line 42, in __init__
    self.set_inequality_constraints_UKF()
  File "C:\Users\morabito\Documents\Repos\UKF-SNMPC\UKF_SNMPC.py", line 483, in set_inequality_constraints_UKF
    Sigmapoints_a[k] = Sigma_points(x_hat[k-1],Sigma_chol[k-1],nun,sqrt_CovP,MeanP,nd,lambda_ukf,n_L)
  File "C:\Users\morabito\Documents\Repos\UKF-SNMPC\UKF_SNMPC.py", line 393, in Sigma_points
    x_hat_a_previous = vertcat(x_hat_before,MeanP)
  File "C:\Users\morabito\Documents\Repos\UKF-SNMPC\venv\lib\site-packages\casadi\casadi.py", line 466, in vertcat
    def vertcat(*args): return _vertcat(args)
  File "C:\Users\morabito\Documents\Repos\UKF-SNMPC\venv\lib\site-packages\casadi\casadi.py", line 20204, in _vertcat
    return _casadi._vertcat(*args)
NotImplementedError: Wrong number or type of arguments for overloaded function '_vertcat'.
  Possible prototypes are:
    _vertcat([Sparsity])
    _vertcat([DM])
    _vertcat([SX])
    _vertcat([MX])
  You have: '((np.array(SX),np.array(float)))'

It's due to the fact that you vertcat a SX variable with a numpy array. Maybe in older versions of casadi it was possible?

Hi Bruno,
hope you are doing well :). To be honest I have no clue, but I fixed the issue. It should now run again with the newest Casadi version.
It seems before I was vercat a SX variable with a numpy array filled with SX variables, which apparently it used to treat as a SX variable.


Create new collection

Currently I am unable to find the control to create a collection. Does it exist?

In the iRODS cloud browser, there is a trail of "bread crumbs" that lists the collection hierarchy at the top of the file/collection list.
The last collection in the list has a pull down menu, which includes an action to create a directory.
Reagan Moore
From: burnce <notifications<EMAIL_ADDRESS>Reply-To: DICE-UNC/irods-cloud-browser <reply<EMAIL_ADDRESS>Date: Monday, March 14, 2016 at 9:24 AM
To: DICE-UNC/irods-cloud-browser <irods-cloud-browser<EMAIL_ADDRESS>Subject: [irods-cloud-browser] Create new collection (#143)
Currently I am unable to find the control to create a collection. Does it exist?

Reply to this email directly or view it on GitHubhttps://github.com/DICE-UNC/irods-cloud-browser/issues/143.

Got it, thanks :)


Set up CI with Azure Pipelines

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


Install Thorium as a system app on windows

Is there's a way to install Thorium as a system app on windows?
If not, can you add this option, please.

@Tarek-Hasan You can do exactly that by running the installer from the command line with.
thorium_mini_installer.exe --system-level

Thanks.
But, a system level installer would have been nice. Or, triggering system level install by running the installer as administrator.

@Tarek-Hasan Changing the installer means re-linking the main executable, which takes a long time. Making it do it if it is run as administrator poses problems for people with User Account Control turned off (like me), where user processes are run with Administrative levels.


Hide approve/pay buttons if the report contains violations

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/50479
PROPOSAL: https://github.com/Expensify/App/issues/50479#issuecomment-2400712506
Tests

Create two accounts: User A and User B.
In User A, create a workspace and invite User B.
Go to workspace settings > More Features and toggle on the Workflows and Rules  options.
Go to the workflow page and assign User B as the first approver.
Create an expense report with a high amount, ensuring that it triggers a violation, then submit the report for approval.
Open the expense report and verify that a violation error is displayed appropriately.
In User B's account, go to the submitted expense report and ensure that the Approve  button is not visible both in the report preview and the report header.

Offline tests

Same as tests
QA Steps

Same as tests
PR Author Checklist

[X] I linked the correct issue in the ### Fixed Issues section above
[X] I wrote clear testing steps that cover the changes made in this PR

[X] I added steps for local testing in the Tests section
[X] I added steps for the expected offline behavior in the Offline steps section
[X] I added steps for Staging and/or Production testing in the QA steps section
[X] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[X] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[X] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[X] I included screenshots or videos for tests on all platforms
[X] I ran the tests on all platforms & verified they passed on:

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

[X] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[X] I followed proper code patterns (see Reviewing the code)

[X] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[X] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[X] I verified that comments were added to code that is not self explanatory
[X] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[X] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[X] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[X] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[X] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[X] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[X] I verified the JSDocs style guidelines (in STYLE.md) were followed

[X] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[X] I followed the guidelines as stated in the Review Guidelines
[X] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[X] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[X] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[X] I verified that if a function's arguments changed that all usages have also been updated correctly
[X] If any new file was added I verified that:

[X] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[X] If a new CSS style is added I verified that:

[X] A similar style doesn't already exist
[X] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[X] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[X] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[X] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[X] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[X] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[X] I verified that all the inputs inside a form are aligned with each other.
[X] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[X] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[X] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

MacOS: Desktop

There are some conflicts @abzokhattab

We have conflicts again 😅

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.


Blurry fullscreen in games with set "nearest" default filtering

Hi, again!
It seems that "Love2D" project on HTML5 doesn't respect filtering set to "nearest" when I press "Go Fullscreen" button. Checked Chrome, Firefox and Edge browsers. All of them give "blurry" fullscreen. Do I need to add some additional instructions or it isn't supporting "nearest" default filter intended for pixel art games?

But when I press Esc, I have rescaled game to entire page! It doesn't return to the previous resolution. Is this another issue?


generated component created css file instead of scss file

Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.2
node: 6.10.2
os: darwin x64
@angular/animations: 4.4.3
@angular/common: 4.4.3
@angular/compiler: 4.4.3
@angular/core: 4.4.3
@angular/forms: 4.4.3
@angular/http: 4.4.3
@angular/platform-browser: 4.4.3
@angular/platform-browser-dynamic: 4.4.3
@angular/router: 4.4.3
@angular/cli: 1.4.2
@angular/compiler-cli: 4.4.3
@angular/language-service: 4.4.3
typescript: 2.3.4
macOS Sierra 10.12.6
Repro steps.

create new angular project with command:
ng new my-project --style=scss
then create new component with command:
ng g component test
it create css file instead of scss.
The log given by the failure.

Desired functionality.

I think it should create scss file, right? Because when create this project I set the style use --style=scss
Mention any other details that might be useful.

AFAIK, this bug is fixed in ver 1.4.3. please update CLI and try again.

Fixed by https://github.com/angular/angular-cli/pull/7648.

I am now facing this issue.
angular.json
{
  "$schema"<EMAIL_ADDRESS>  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "abraxio": {
      "root": "",
      "sourceRoot": "src",
      "projectType": "application",
      "prefix": "abx",
      "schematics": {
        "@schematics/angular:component": {
          "style": "scss"
        }
      },
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "dist/abraxio",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "src/tsconfig.app.json",
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ],
            "styles": [
              "src/styles.scss"
            ],
            "scripts": [],
            "es5BrowserSupport": true,
            "stylePreprocessorOptions": {
              "includePaths": [
                "src/app/configurations/styles"
              ]
            }
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "aot": true,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "2mb",
                  "maximumError": "5mb"
                }
              ]
            }
          }
        },
        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "options": {
            "browserTarget": "abraxio:build",
            "port": 8080
          },
          "configurations": {
            "production": {
              "browserTarget": "abraxio:build:production"
            }
          }
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
            "browserTarget": "abraxio:build"
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "src/test.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "src/tsconfig.spec.json",
            "karmaConfig": "src/karma.conf.js",
            "styles": [
              "src/styles.scss"
            ],
            "scripts": [],
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ]
          }
        },
        "lint": {
          "builder": "@angular-devkit/build-angular:tslint",
          "options": {
            "tsConfig": [
              "src/tsconfig.app.json",
              "src/tsconfig.spec.json"
            ],
            "exclude": [
              "**/node_modules/**"
            ]
          }
        }
      }
    },
    "abraxio-e2e": {
      "root": "e2e/",
      "projectType": "application",
      "prefix": "",
      "architect": {
        "e2e": {
          "builder": "@angular-devkit/build-angular:protractor",
          "options": {
            "protractorConfig": "e2e/protractor.conf.js",
            "devServerTarget": "abraxio:serve"
          },
          "configurations": {
            "production": {
              "devServerTarget": "abraxio:serve:production"
            }
          }
        },
        "lint": {
          "builder": "@angular-devkit/build-angular:tslint",
          "options": {
            "tsConfig": "e2e/tsconfig.e2e.json",
            "exclude": [
              "**/node_modules/**"
            ]
          }
        }
      }
    }
  },
  "defaultProject": "abraxio",
  "cli": {
    "defaultCollection": "@datorama/akita"
  }
}

results in :

I am also facing the same issue as mentioned above. It started few weeks ago.

@hamzazaidi in case it helps, I found it was because of the schematics being installed by other libraries such as Akita. You have to set up your angular.json file to the angular schematics, and it should work again.
This issue can be closed I think (I forgot about it)


Is it possible to do batch generate?

So, I'm trying to do batch generate using code made by oogabooga in text generation webui by calling generate method of ExllamaHF. But, error was thrown. I guess because Exllama only recognize the first sequence of the batch and that raise an error when the GeneratorMixin is trying to concatenated the past sequence to the next token value.
Is there any way to do batch generation using exllama?

ExLlama can do batch generation, but ExLlamaHF was written by ooba as a wrapper specifically for TGW. I don't know how batches are normally handled in TGW, so I can't really say why they're not being (as it seems) correctly forwarded to ExLlama.

Could you give an example input for batch generation? Because I recall that we need input_ids padded on left side, attention_mask, and position_ids set. I guess the attention_mask in Transformers means input_mask for exllama. But, how about position_ids?

There's an example in example_batch.py. It just calls generate_simple with a list of input strings rather than a single string, and then it returns a list of outputs instead of a single output.
If you want to call the forward pass directly, you need to specify a mask to go along with the batch, yes. You would call tokenizer.encode on a list of strings with return_mask = True, and it will return an int tensor with a batch of right-aligned token IDs, along with a boolean mask tensor of the same shape (False to indicate padding tokens). Then send those two to the forward pass and the model will output a batch of logits, pretty much like a HF model.
One thing to note is that, in either case, the cache needs to accommodate the batch size you intend to use.

But how did it handle the position of sequence? Like for example, because the padding on the left, the value for sin and cos array must not start from the beginning. Because it will not see the bos token as the first value of the sequence. HF model handle it with position_ids. What about exllama? It seems that exllama just multiply the value of sin and cos to query and key states without seeing where is the position of sequence.

Well, rotary position embeddings are supposed to be position-independent, i.e. they affect attention between positions m and n in a way that depends only on the difference, n - m. So padding the sequence on the left should have no effect as long as the padding tokens are masked out.
That's the theory, at least. It does seem to produce correct output, too. Whether it still holds in extreme cases, with rounding errors etc., hard to say. But I haven't had any issues in testing.

Okay, I'm gonna test it. Because let say there are two sequences that we want to batch generate together but the first sequence is extremely long and the second one is short. I'm afraid that the result generated for the second sequence will be impacted since the position of the first token of the sequence is near to the maximum sequence length.

@turboderp This is my script to do my test
import torch, os, sys
from pathlib import Path
from typing import Optional, List, Union
from transformers import AutoTokenizer
from transformers.models.llama.configuration_llama import LlamaConfig
from transformers.generation.utils import GenerationMixin, GenerationConfig
from transformers.modeling_outputs import CausalLMOutputWithPast

BASE_DIR = Path(os.path.abspath('.'))

class RelativeImport:
    def __init__(self, path):
        self.import_path = BASE_DIR / Path(path)

    def __enter__(self):
        sys.path.insert(0, str(self.import_path))

    def __exit__(self, exc_type, exc_value, traceback):
        sys.path.remove(str(self.import_path))

with RelativeImport('exllama'):
    from model import ExLlama, ExLlamaCache, ExLlamaConfig
    from lora import ExLlamaLora

class ExLlamaForCausalLM(GenerationMixin):

    def __init__(
        self,
        config: LlamaConfig,
        generation_config: GenerationConfig,
        exllama_config: ExLlamaConfig,
        model: ExLlama,
        lora: ExLlamaLora,
        **kwargs
    ):
        self.config = config
        self.generation_config = generation_config
        self.exllama_config = exllama_config
        self.model = model
        self.lora = lora

        self.main_input_name = 'input_ids'

    def can_generate(self):
        return True

    @property
    def device(self) -> torch.device:
        return torch.device(0)

    def prepare_inputs_for_generation(self, input_ids, **kwargs):
        return {'input_ids': input_ids, **kwargs}

    def __call__(self, *args, **kwargs):
        return self.forward(*args, **kwargs)

    def forward(
        self,
        input_ids: torch.LongTensor,
        attention_mask: Optional[torch.Tensor] = None,
        past_key_values: Optional[List[torch.FloatTensor]] = None,
        labels: Optional[torch.LongTensor] = None,
        use_cache: Optional[bool] = None,
        return_dict: Optional[bool] = None,
        **kwargs
    ):
        use_cache = use_cache if use_cache is not None else self.config.use_cache
        return_dict = return_dict if return_dict is not None else self.config.use_return_dict

        if labels is None:
            if past_key_values is None:
                past_key_values = ExLlamaCache(self.model, input_ids.shape[0])
                self.model.forward(input_ids[...,:-1], past_key_values, preprocess_only=True, lora=self.lora, input_mask=attention_mask[...,:-1].to(torch.bool))

            logits = self.model.forward(input_ids[...,-1:], past_key_values, lora=self.lora, input_mask=attention_mask[...,-1:].to(torch.bool)).to(input_ids.device)
        else:
            if past_key_values is None:
                past_key_values = ExLlamaCache(self.model, input_ids.shape[0])

            logits = self.model.forward(input_ids, past_key_values, lora=self.lora, input_mask=attention_mask.to(torch.bool))

        loss = None
        if labels is not None:
            # Shift so that tokens < n predict n
            shift_logits = logits[..., :-1, :].contiguous()
            shift_labels = labels[..., 1:].contiguous()
            # Flatten the tokens
            loss_fct = torch.nn.CrossEntropyLoss()
            shift_logits = shift_logits.view(-1, logits.shape[-1])
            shift_labels = shift_labels.view(-1)
            # Enable model parallelism
            shift_labels = shift_labels.to(shift_logits.device)
            loss = loss_fct(shift_logits, shift_labels)

        if not return_dict:
            output = (logits, past_key_values if use_cache else None)
            return (loss,) + output if loss is not None else output

        return CausalLMOutputWithPast(logits=logits, past_key_values=past_key_values if use_cache else None, loss=loss)

    @classmethod
    def from_pretrained(
        cls,
        pretrained_model_name_or_path: Union[str, os.PathLike],
        gpu_split: Optional[str] = None,
        lora_path: Optional[Union[str, os.PathLike]] = None
    ):
        if isinstance(pretrained_model_name_or_path, str):
            pretrained_model_name_or_path = Path(pretrained_model_name_or_path)

        if isinstance(lora_path, str):
            lora_path = Path(lora_path)

        config = LlamaConfig.from_pretrained(pretrained_model_name_or_path)

        generation_config = GenerationConfig.from_pretrained(pretrained_model_name_or_path)

        exllama_config = ExLlamaConfig(pretrained_model_name_or_path / 'config.json')
        exllama_config.max_seq_len = config.max_position_embeddings
        if config.rope_scaling is not None:
            if config.rope_scaling['type'] == 'linear':
                exllama_config.compress_pos_emb = config.rope_scaling['factor']
            elif config.rope_scaling['type'] == 'dynamic':
                exllama_config.alpha_value = config.rope_scaling['factor']
                exllama_config.calculate_rotary_embedding_base()
        if gpu_split is not None:
            exllama_config.set_auto_map(gpu_split.replace(' ', ','))
            exllama_config.gpu_peer_fix = True

        if torch.version.hip:
            exllama_config.rmsnorm_no_half2 = True
            exllama_config.rope_no_half2 = True
            exllama_config.matmul_no_half2 = True
            exllama_config.silu_no_half2 = True

        weight_path = None
        for ext in ['.safetensors', '.pt', '.bin']:
            found = list(pretrained_model_name_or_path.glob(f"*{ext}"))
            if len(found) > 0:
                weight_path = found[-1]
                break
        assert weight_path is not None, f'could not find weight in "{pretrained_model_name_or_path}"'

        exllama_config.model_path = str(weight_path)

        model = ExLlama(exllama_config)

        lora_model = None
        if lora_path is not None:
            lora_model = ExLlamaLora(model, str(lora_path / "adapter_config.json"), str(lora_path / "adapter_model.bin"))

        return cls(config, generation_config, exllama_config, model, lora_model)

def main(model_path):
    tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=True)

    tokenizer.padding_side = 'left'

    data = tokenizer(['My name is', 'Nama saya adalah'], padding=True, return_tensors='pt')

    model = ExLlamaForCausalLM.from_pretrained(model_path)

    generate_result = model.generate(**data, max_new_tokens=100)

    print('Batch result:', tokenizer.decode(generate_result[0]))

    data = tokenizer(['My name is'], padding=True, return_tensors='pt')

    generate_result = model.generate(**data, max_new_tokens=100)

    print('Non batch result:', tokenizer.decode(generate_result[0]))

if __name__ == '__main__':
    model_path = input('Your model path: ')
    main(model_path)

The generated result between batch generation and single generation is so big even if I'm using greedy search. There is posibility the reason is because of the position of sequence is not exact for padded sequence


Fix scheduler not being called when set during queue draining

We had a failing test in our test suite at @remix, which I was able to
track down to the scheduler not being called from async.js, because
_isTickUsed was not being set to false until after draining the queue.
I don't have time now to write a test case for this, so hopefully
someone can figure that out.
It might be helpful to note that we're using a custom scheduler that
uses setTimeout(fn, 0), but where setTimeout is mocked by Jasmine so
that we have control over asynchronous operations.

@janpaul123 hey, mind elaborating on why you're using setTimeout as a scheduler?

Yes, because it gets mocked by jasmine.clock so in our tests we don't have asynchronous calls, which can lead to pollution of state between tests if a call is executed after a test has finished.

On 18 apr. 2016, at 10:56, Benjamin Gruenbaum<EMAIL_ADDRESS>wrote:
@janpaul123 hey, mind elaborating on why you're using setTimeout as a scheduler?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

The scheduler must be asynchronous. If you are using mocha you can return promises from test functions that are awaited for before the next test begins.

@petkaantonov any chance we can warn against this?

@benjamingr we are warning against it... see the danger: http://bluebirdjs.com/docs/api/promise.setscheduler.html

I meant via an actual warning

Doesn't seem there is need for a runtime warning, it would affect performance too. The documentation is quite clear about it, it's an advanced function only needed once per application and the misues appears to be rare.

@petkaantonov: I think you're misunderstanding what I said on several points:

The scheduler is asynchronous, just in the same tick. I'm not setting the scheduler to (fn) => fn() or something, no, it's just mocked by Jasmine, but it will still behave similar to a true asynchronous scheduler. The scheduler will be called after all other code has been executed.

I know how to wait for promises in functions under test, obviously. The problem that I'm trying to solve for is if the code under test has some side effect that happens in a promise, and that the test writer didn't know about (maybe it was added later, etc). In that case you don't want that code to execute while the test has already finished.

But I see now how this PR isn't the solution either, and I was mistaken about what the problem was, and I still don't quite know.


[Tests] Reduce tests dimensions for released version

Description of changes
With this change we're reducing tests dimensions for released version.

when the test is verifying different OSes or architecture dimensions we're reducing dimensions keeping a single test as "AWS Api canary" (AD, CW, DCV, EFA).
when the test is verifying our code logic we are removing it because, once released our code and AMIs are stable so it's useless to test them.

Released version test changes (removes 30 tests):

Reduce dimensions of AD integration tests (4 --> 1)
Reduce dimensions of CloudWatch logging tests (6 --> 1)
Remove test of pcluster configure with bad subnets (1 --> 0)
Remove test of pcluster configure for a region without t2.micro (1 --> 0)
Remove test of pcluster configure for EFA/PG settings (1 --> 0)
Remove test of pcluster configure when EFA is not supported (1 --> 0)
Remove DCV tests for different ports and access-from (1 --> 0)
Remove cluster creation tests verifying internal logic (3 --> 0)
Reduce dimensions of DCV tests (4 --> 1)
Reduce EFA tests dimensions (4 --> 1)
Remove GPU health check test (1 --> 0)
Remove IAM Policy test(2 --> 0)
Remove IAM Roles test (4 --> 0)
Remove Intel HPC test (1 --> 0)

New instance type test changes:

Reduce EFA tests dimensions when testing a new instance type (3 --> 1)

Details in the commit messages.
Tests
Executed python -m test_runner develop.yaml ... --dryrun to verify number of tests and configuration syntax

released: pre: 258 tests, after: 239 tests

Changes are in line with the decision doc so I assume this difference is either a typo or a weird behavior in the mechanism that counts the tests.

Yes, the numbers are collected by pytest but they are not correct. My guess is that it depends by test dimensions or something else. Anyway I'm using the dryrun execution just to be sure syntax of integ test config file is correct.


add projectVPC reference for service types

Adds ResourceReferance feature. That makes possible to make certain resources to "wait" until "depended" resources are up and running.
With this PR comes ProjectVPC kind reference.

Also found a bug, when you do something like that:
kubectl apply -f test/e2e/projectvpc/projectvpc-ref/01-resources.yaml ;kubectl delete -f test/e2e/projectvpc/projectvpc-ref/01-resources.yaml
projectvpc.aiven.io/k8s-e2e-projectvpc-ref created
kafka.aiven.io/k8s-e2e-projectvpc-ref-kafka created
opensearch.aiven.io/k8s-e2e-projectvpc-ref-os created
redis.aiven.io/k8s-e2e-projectvpc-ref-redis created
projectvpc.aiven.io "k8s-e2e-projectvpc-ref" deleted
kafka.aiven.io "k8s-e2e-projectvpc-ref-kafka" deleted
opensearch.aiven.io "k8s-e2e-projectvpc-ref-os" deleted
redis.aiven.io "k8s-e2e-projectvpc-ref-redis" deleted

ProjectVPC resource delete function runs forever because it relies on the Status.ID, and if we try to delete ProjectVPC fast, like in the example from above status.ID never gets set.


No place to report a security issue

https://github.com/canonical/postgresql-operator/blob/602d9bc61010cdf5898eaa8069583b225b192fa6/README.md#L152-L153
The README suggests not to use this Github repository for reporting security issues. However, there is no information what exact Launchpad project to use for such a report.

I filed it under https://bugs.launchpad.net/postgresql-charm/+bug/2076956 for the time being.

Hi @nobuto-m , we have placed this information under the Contact form: https://charmhub.io/postgresql/docs/r-contacts

Report security issues through Launchpad

It is to involve Canonical  Security Team, to avoid early leaking and proper CVE handling when necessary.
We will keep this opened to handle the report https://bugs.launchpad.net/postgresql-charm/+bug/2076956
Thank you for helping us making our charm better!

Hi @nobuto-m , we have placed this information under the Contact form: https://charmhub.io/postgresql/docs/r-contacts

Report security issues through Launchpad

It is to involve Canonical Security Team, to avoid early leaking and proper CVE handling when necessary.

That's the exact point of this issue. The linked page states the following.

How to File
New security bugs should be created in the Ubuntu bug tracker (Launchpad). If you do not have a Launchpad account and prefer not to create one, you may send your report to<EMAIL_ADDRESS>We also accept GPG-encrypted mail.
To report a security vulnerability in an Ubuntu package, follow the regular bug-filing instructions, but take special note of the "Mark as security issue" check box near the bottom of the form:

And to report a security issue in Launchpad, this project has to be tracked in Launchpad. Because it's not about Ubuntu packages or anything like that.


creating node with  --skip-defaults  exit with error

Trying to startup different nodes, with different identities.    Guess the way to go now is to start the nodes with --skip-defaults and then create the vault, the  identitiy and then  startup the services manually.
Trying that, creating the node with  --skip-defaults  complains and exit with error code:
   $ ./ockam node create -s enroller1

Node Created!
encountered an error in command handler code

Although the node is created.   We can't list it neither:
$ ./ockam node list
encountered an error in command handler code

Error in  node logs:
2022-08-09T00:36:34.584466Z ERROR ockam_api::nodes::service: Failed to handle message err=Ockam Error [[Origin::Application; Kind::Unknown]] at implementations/rust/ockam/ockam_api/src/error.rs:12:9
--- Details ---
- Caused by: Identity doesn't exist
- possible root cause `&str`: Identity doesn't exist
  debug output:
    "Identity doesn't exist"
--- Captured Spantrace ---

--------------------------

after
pablo@t14:~/src/ockam/target/debug$ ./ockam  vault create -n enroller1
Vault created!
pablo@t14:~/src/ockam/target/debug$ ./ockam  identity create -n enroller1
Identity P42f72acdb844c164deed1dcfa2233d028cd5db2fc4920c1ec3b6c40795c2a894 created!

node can be listed again.

Outdated (that argument doesn't exist anymore).


Connector outdated

The problem
Good morning.
The Cloudflared connector service you are using is currently outdated and will soon need to be updated.

Thank you very much !
What version of Cloudflared has the issue?
4.0.9
What was the last working version of Cloudflared?
4.0.9
What type of installation are you running?
Home Assistant OS
Add-on YAML Configuration
No response
Anything in the logs that might be useful for us?
No response
Steps to reproduce the issue
Log in to your Cloudflare dashboard, check your named tunnels.
Additional information
No response

I have just published a new release (4.0.10) which includes the latest version of the tunnel.