random connection errors while connect azure sql server

Describe the bug
hi. I got random errors while connect AzureSQL from production servers
Microsoft.Data.SqlClient.SqlException (0x80131904): A transport-level error has occurred when receiving results from the server
Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired
we have no issue when SqlClient 3.1.31 (FileVersion 4.700.22.51706)
after update to 5.2.0, it occurs randomly and <IP_ADDRESS>52.3 still have problems
finllaly, I found same issues below
https://github.com/dotnet/SqlClient/issues/2640
https://github.com/dotnet/SqlClient/issues/2621
https://github.com/dotnet/SqlClient/issues/2471
https://github.com/dotnet/SqlClient/issues/2400
Exception message:
Stack trace:

To reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
Partial code listings, or multiple fragments of code, will slow down our response or cause us to push the issue back to you to provide code to reproduce the issue.
Console.WriteLine("Hello World!");

Expected behavior
A clear and concise description of what you expected to happen.
Further technical details
Microsoft.Data.SqlClient version: (found on the nuget or Microsoft.Data.SqlClient.dll)
.NET Core 8.0.3 / <IP_ADDRESS>52.3
Microsoft Azure SQL
Windows Server 2022 (Azure VM)
Additional context
Add any other context about the problem here.

<add name="" connectionString="Data Source=windows.net;Initial Catalog=User ID=;Password=;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultipleActiveResultSets=False;MultiSubnetFailover=False;ConnectRetryCount=0;Pooling=False;Max Pool Size=100"
  providerName="Microsoft.Data.SqlClient" />


Android Port

Not an issue but I wanted a fast response to this query so adding as an issue. Please don'e report me.
Q: Does an Android port of this library exist? Has anyone tried it? If so, can someone please point me (with a hyperlink) to the right resources?

I am not aware of any Android ports. Would be interesting to know if anyone tried to make that work ..

Android port will be particularly hard given the hostile nature Google has towards OpenCL.


Support for YouTube setting management

Is your feature request related to a problem? Please describe.
Allow users to manage settings for the YouTube feature.
Describe the solution you'd like
Have a way to represent a saved channel with the associated channel image, name and the Discord channel. In addition, when clicked it should show the message and allow the user to change the Discord channel it is sent in. It should also be possible to delete the followed channel altogether.
Describe alternatives you've considered
An alternative would be to have a page where each individual setting was simply listed without any support for multiple channels. The downside of this is that, like it says already, it would be additional work to make it support multiple channels.
Additional context
It should be taken into account that at some point in the future this feature will be expanded to support multiple channels. Support to add a new channel to be followed will be part of a separate issue.

I've ran into a little bit of a problem. The select element styling is limited to only a few properties and the others are managed by the user's OS - this means that it cannot be fully styled. Therefore, the idea was to have a select element which would simplify the handling of the data but now that it cannot be fully styled it might be a better idea to create a custom select menu from multiple div elements.


suggest to add pages, volume and issue to refs.tsv / refs.csv

          > about `volume`, `issue`, `pages` fields - can you please elaborate on what the original / source of this data is?

this is what I recommend in the metadata and in the csv file. I would expect, that this data is in Zotero which then is package and published in Zenodo Batlit. If this is not happening, then we need to include this.
Building towards a research data life cycle and FAIR data, it is essential to have a standard bibliographic data set.
Originally posted by @myrmoteras in https://github.com/plazi/Biodiversity-Literature-Repository/issues/106#issuecomment-2540067312

from https://batlit.org/#example-of-tracked-zotero-record , the following Zotero metadata is available:
"data": {
    "key": "376ZATI8",
    "version": 62023,
    "itemType": "bookSection",
    "title": "Phylogeography and biogeography of the horseshoe bats (Chiroptera: Rhinolophidae)",
    "creators": [
      {
        "creatorType": "author",
        "firstName": "A.",
        "lastName": "Guillen-Servent"
      },
      {
        "creatorType": "author",
        "firstName": "C. M.",
        "lastName": "Francis"
      },
      {
        "creatorType": "author",
        "firstName": "",
        "lastName": "Ricklefs, Robert E."
      }
    ],
    "abstractNote": "",
    "bookTitle": "Horseshoe bats of the World (Chiroptera: Rhinolophidae) Shropshire",
    "series": "",
    "seriesNumber": "",
    "volume": "",
    "numberOfVolumes": "",
    "edition": "",
    "place": "Shropshire",
    "publisher": "Alana Books",
    "date": "2003",
    "pages": "",
    "language": "",
    "ISBN": "",
    "shortTitle": "",
    "url": "",
    "accessDate": "",
    "archive": "",
    "archiveLocation": "",
    "libraryCatalog": "",
    "callNumber": "",
    "rights": "",
    "extra": "",
    "tags": [],
    "collections": [
      "UAWY6DNP"
    ],
    "relations": {},
    "dateAdded": "2024-12-05T16:49:47Z",
    "dateModified": "2024-12-05T16:52:11Z"
  }

so, pages, and volumes are present, but issue is not.
How do you propose to extract issue from this metadata?

I've updated refs.csv and associated to include type, pages, volume as below -
as generated via
curl --silent https://batlit.org/refs.csv\
 | head -2\
 | mlr --icsv --oxtab cat

authors      Douglas
date         1967
title        Article: The Natural History of the Ghost Bat, Macroderma Gigas (Microchiroptera Megadermatidae), in Western Australia
journal      Western Australia. The Western Australian Naturalist
type         journalArticle
volume       10
pages        125-138
doi
id           https://www.zotero.org/groups/bat_literature_project/items/M5MZ6NSB
attachment   https://api.zotero.org/groups/5435545/items/223GU789
attachmentId hash://md5/5e3f7fac483550be7983c6096e9e9800
corpusId     hash://md5/ce1e7618f237ff56e74d51f496e811a3

and, with associations with Zenodo deposit,
curl --silent https://batlit.org/zenodo/refs-on-zenodo.csv\
 | head -2\
 | mlr --icsv --oxtab cat

produces -
authors                Douglas
date                   1967
title                  Article: The Natural History of the Ghost Bat, Macroderma Gigas (Microchiroptera Megadermatidae), in Western Australia
journal                Western Australia. The Western Australian Naturalist
type                   journalArticle
volume                 10
pages                  125-138
doi
id                     https://www.zotero.org/groups/bat_literature_project/items/M5MZ6NSB
attachment             https://api.zotero.org/groups/5435545/items/223GU789
attachmentId           hash://md5/5e3f7fac483550be7983c6096e9e9800
corpusId               hash://md5/ce1e7618f237ff56e74d51f496e811a3
alternativeDoi         10.5281/zenodo.13521017
alternativeDoiUrl      https://doi.org/10.5281/zenodo.13521017
zenodoResponseCorpusId hash://md5/fe634ab84d48b6a9b58adc9e038ecd86

Added issue also  - turns out that Zotero records to have "issue" if define, but is left out otherwise.
authors                Habersetzer | Storch
date                   10/1992
title                  Cochlea size in extant chiroptera and middle eocene microchiropterans from messel
journal                Naturwissenschaften
type                   journalArticle
volume                 79
issue                  10
pages                  462-466
doi                    10.1007/BF01139198
id                     https://www.zotero.org/groups/bat_literature_project/items/CW2QNHBB
attachment             https://api.zotero.org/groups/5435545/items/27BYEN3Z
attachmentId           hash://md5/c8bf64ffa7640b3deedf5b6c159f98de
corpusId               hash://md5/ce1e7618f237ff56e74d51f496e811a3
alternativeDoi         10.5281/zenodo.13421446
alternativeDoiUrl      https://doi.org/10.5281/zenodo.13421446
zenodoResponseCorpusId hash://md5/fe634ab84d48b6a9b58adc9e038ecd86


Line Breaks only appear after manually editing/saving ad

First off - the reposter works great. It was easy to use for someone with minimal knowledge.
However, I notice that when it posts/reposts an ad, the live view of the ad doesn't have empty line breaks. I'm not sure what it is called exactly.
Example:
"This is my ad.
I am located at X.
Please contact me at:<PHONE_NUMBER>."
It'll show as:
"This is my ad.
I am located at X.
Please contact me at:<PHONE_NUMBER>."
Once you edit the ad that was posted, it shows proper formatting and will reflect it only if you Save Changes.

This is a known issue (#52) which we still don't have a solution for. One suggestion is to add an additional line break which works as a band-aid solution for now.


Fixed performance issue

Fixed performance issue caused by ng zone being triggered(cd detection trigger) for every mouseover event on the map.

@PKromhout thanks! can you fix the whitespace error and change the commit message to "perf(AgmMap): run resolve outside angular zone" ?

I have no idea how i can adjust my pr. So i have created a new one: https://github.com/SebastianM/angular-google-maps/pull/1391


Update Nix stuff

Motivation

Flakes are faster, especially when one is using direnv
Python 3.9 usage is deprecated in favour of 3.12

Changes

Migrate to Nix flakes
Provide backwards compatible shims for non-flake usage
Move to Python 3.12
Add CI to check for any regression

Test locally with:

[optional if nixpkgs is installed] curl -L https://nixos.org/nix/install | sh -s -- --daemon
nix flake show
nix-shell + ./build.sh -i runner + ./run.sh TEST_THE_TEST
nix develop + ./build.sh -i runner + ./run.sh TEST_THE_TEST

Test in CI, the workflow needs access allowed to these actions:

DeterminateSystems/nix-installer-action@main
DeterminateSystems/magic-nix-cache-action@main

Workflow

⚠ Create your PR as draft ⚠
Work on you PR until the CI passes (if something not related to your task is failing, you can ignore it)
Mark it as ready for review

Test logic is modified? -> Get a review from RFC owner. We're working on refining the codeowners file quickly.
Framework is modified, or non obvious usage of it -> get a review from R&P team

:rocket: Once your PR is reviewed, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist

[ ] If PR title starts with [<language>], double-check that only <language> is impacted by the change
[ ] No system-tests internal is modified. Otherwise, I have the approval from R&P team
[ ] CI is green, or failing jobs are not related to this change (and you are 100% sure about this statement)
[ ] A docker base image is modified?

[ ] the relevant build-XXX-image label is present

[ ] A scenario is added (or removed)?

[ ] Get a review from R&P team

Split CI away in https://github.com/DataDog/system-tests/pull/3266 upon @robertomonteromiguel 's request.


How to enforce a single data cursor in a figure with several plots

The following code (derived from your examples/basic.py) reproduces a problem I see in my current project: It gives me one data cursor per plotted line, but I would like to have only one data cursor in the whole figure. Changing the display option does not help.
import matplotlib.pyplot as plt
import numpy as np
from mpldatacursor import datacursor

fig, ax = plt.subplots()
ax.set_title('Click somewhere on a line')

for line in range(1, 5):
    data = np.asarray(range(10)) * line

    lines = ax.plot(data)

    datacursor(lines)
#    datacursor(lines, display='single')
#    datacursor(lines, display='one-per-axes')

plt.show()

I also unseccessfully tried to create one common datacursor for all axes:
import matplotlib.pyplot as plt
import numpy as np
from mpldatacursor import datacursor

fig, ax = plt.subplots()
ax.set_title('Click somewhere on a line')

axe_list = []

for line in range(1, 5):
    data = np.asarray(range(10)) * line

    lines = ax.plot(data)
    axe_list.append(lines)

datacursor(axes=axe_list)

plt.show()

Ok, the 2nd try was nonsense, lines are not axes. Bear with me, I am quite new to matplotlib.

@anntzer recently fixed this bug in #63. My apologies for not realizing what you were asking!
As far as I can tell, this issue is the same one you were running into, so I'm going to go ahead and close this.
Thanks again for reporting it!

Thank you for informing me! I will test at a later time.


Introduce functionality to write JSON-configurations from ConfigObjects

Currently the library provides read-only access to JSON configuration-files.
I would be lucky to see the ability to save single ConfigObjects as JSON-files again to persist configuration changes made by the application.

I'd love that, too. Would require to write a custom JSON parser as we don't actually use pure Json (comments should be preserved when changing config values).

What about using Json.Net -- I believe it maintains comments as long as you use JObject


Skip df astype tasks when type already set

Closes #6868

[ ] Tests added / passed
[x] Passes black dask / flake8 dask

I originally was going to loop through the dtype items and pop out the ones that didn't cause a change, but I realised that Pandas probably had a clever optimisation to handle that anyway.
I'll have a quick look at their code/run a quick test to verify this. If needed I can open a second PR with that change, but this one solves the case when none of the dataframe's dtypes change after the .astype()

With my changes,https://github.com/dask/dask/blob/de2c7b5bb1cedc04977ddc6f2d562c93c1bc99e6/dask/dataframe/io/tests/test_parquet.py#L2190-L2197 reads the id column in as object, not float from the parquet file.
I'll investigate why when I get a chance (this is not a contribution done on my employers time, so my availability is sporadic)

🤔
dd.read_parquet(
  tmp_path, dataset={"validate_schema": True}, index=False, engine="pyarrow"
).dtypes

leads to
timestamp    datetime64[ns]
id                   object
name                 object
dtype: object

but when I trigger the compute back to pandas before inspecting dtypes I get:
timestamp    datetime64[ns]
id                  float64
name                 object
dtype: object

I think that failure points to a bigger issue with this PR. If you notice in https://github.com/dask/dask/blob/de2c7b5bb1cedc04977ddc6f2d562c93c1bc99e6/dask/dataframe/io/tests/test_parquet.py#L2184 the dataframe is being assigned to, but the meta is not being updated. After that line ddf2.dtypes still has a float64 for id, but ddf2.compute().dtypes has object for id.
We can fix that in the dataframe __setitem__ code, but the bigger issue is that there are cases in the code where the dtypes in meta do not always exactly match .compute(). In those cases, I suspect the workaround is to call astype to get them back in sync.

We can fix that in the dataframe __setitem__ code, but the bigger issue is that there are cases in the code where the dtypes in meta do not always exactly match .compute(). In those cases, I suspect the workaround is to call astype to get them back in sync.

Thank you for the comment Julia!
To make sure I understand you:

modifing __setitem__() would help in this particular case
but you believe there are (many?) other situations where this will cause failures?

If so, I'm happy to close out this PR, and I'll keep my eyes out for anywhere else I can contribute instead.

We can fix that in the dataframe __setitem__ code, but the bigger issue is that there are cases in the code where the dtypes in meta do not always exactly match .compute(). In those cases, I suspect the workaround is to call astype to get them back in sync.

Thank you for the comment Julia!
To make sure I understand you:

modifing __setitem__() would help in this particular case
but you believe there are (many?) other situations where this will cause failures?

If so, I'm happy to close out this PR, and I'll keep my eyes out for anywhere else I can contribute instead.

Exactly. I am not sure how many other places this might occur. But when those situations do occur the fix would be to call astype to coerce the dtype. So I am wary of having that method do something too clever that might not ensure the expected outcome. Yeah I think closing this PR makes sense. Thanks for understanding.

Exactly. I am not sure how many other places this might occur. But when those situations do occur the fix would be to call astype to coerce the dtype. So I am wary of having that method do something too clever that might not ensure the expected outcome. Yeah I think closing this PR makes sense. Thanks for understanding.


go.mod: upgrade to go 1.21

Have you considered golang v1.22?

Upgrade to go 1.22 in https://github.com/intel/memtierd/pull/85, thanks~


[WAC] - pop-out windows don't utilise all available real-estate

2211: 1.4.2212.08003
Not a bug, more an annoyance... especially for a remote desktop session where you want all available space
To Reproduce
Steps to reproduce the behavior:

Click any 'pop-out' icon to open a function in a new window from the server/workstation/etc. For instance RDP.
The html element for the feature being 'popped out' doesn't fill the window. The section container that would hold the navigation items in the main screen is still present, so empty space is being taken up.
If you inspect the whitespace element, you can delete it and receieve full use use of the window.

Expected behavior
The full window area being used.
Screenshots & Additional context
Empty space:

Element responsible:

Hi @fr0mtheinternet,
Thanks for bringing this to our attention. I've raised this with the design team. In the meantime, let me switch this from a bug to an enhancement.
Kind regards,
Rebecca.

+1
This would be a great enhancement, what about adding the possibility to make an RDP window Fullscreen?


Fix typo

Small documentation fix

@cllns please add a changelog entry and if it's your first time feel free to add yourself to https://viewcomponent.org/#contributors


user's roles or GrantedAuthorities are not wrapped into JwtAuthenticationToken's authorities field

Summary
user's roles or GrantedAuthorities are not wrapped into JwtAuthenticationToken's authorities field, so that PreAuthorize with hasRole always return false.
there is only Scope exists below the authorities field of JwtAuthenticationToken.
user's roles or GrantedAuthorities is that which are granted to user itself.
Version
spring-boot-starter-security:2.1.3.RELEASE

I dug into the source code, and found JwtAuthenticationConverter::extractAuthorities which is causing this problem.
`protected Collection<GrantedAuthority> extractAuthorities(Jwt jwt) {
     return this.getScopes(jwt)
        .stream()
        .map(authority -> SCOPE_AUTHORITY_PREFIX + authority)
        .map(SimpleGrantedAuthority::new)
        .collect(Collectors.toList());
}`

when it comes the time we create AbstractAuthenticationToken, the method here just getScopes of the Jwt, which is losing all the authorities of the claims.
if anyone knows the source code, please help to fix it.


SSH into server

With Dashboard-Interface it should be possible to ssh into a server and run a script which installs docker and dashboard-server-docker. When this is installed everything else should be controllable from the interface


Can I use this to add blog to a cms

I have a cms I like but it has no blog function. Can I use pagemark to add it? I'm not a coder so would it be too hard?

Yeah if you are not a coder, I think this would be a bit difficult to add yourself.


Add message about switch to bash in upgrade guide

@bot-gradle test this

OK, I've already triggered ReadyForMerge build for you.


Update scalacheck to 1.14.1

Updates org.scalacheck:scalacheck from 1.13.5 to 1.14.1.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalacheck", artifactId = "scalacheck" } ]

Applied Migrations

github:typelevel/scalacheck/v1_14_1?sha=3fc537dde9d8fdf951503a8d8b027a568d52d055

labels: semver-minor, scalafix-migrations

Codecov Report

Merging #695 into develop will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           develop    #695      +/-   ##
==========================================
+ Coverage    89.47%   89.5%   +0.02%
==========================================
  Files          112     112
  Lines         8943    8943
  Branches       314     314
==========================================
+ Hits          8002    8004       +2
+ Misses         941     939       -2

Impacted Files
Coverage Δ

.../src/main/scala/com/twitter/algebird/ExpHist.scala
95.55% <0%> (-1.12%)
:arrow_down:

.../main/scala/com/twitter/algebird/HyperLogLog.scala
92.6% <0%> (-0.39%)
:arrow_down:

.../main/scala/com/twitter/algebird/BloomFilter.scala
93.8% <0%> (ø)
:arrow_up:

.../main/scala/com/twitter/algebird/Successible.scala
91.66% <0%> (ø)
:arrow_up:

...c/main/scala/com/twitter/algebird/MapAlgebra.scala
75.67% <0%> (+0.9%)
:arrow_up:

...src/main/scala/com/twitter/algebird/Interval.scala
80.86% <0%> (+2.6%)
:arrow_up:

Continue to review full report at Codecov.

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


chore: update version to 1.4.1

This PR updates Biome version 1.4.1 .
We can do this kind task automatically.

I'd like to use latest as biome version in this doc. What do you think? @nhedger
https://biomejs.dev/recipes/continuous-integration/

I'd like to use latest as biome version in this doc (current 1.2.2). What do you think? @nhedger
https://biomejs.dev/recipes/continuous-integration/

Sounds good!


Why is punctuation and capitalization different when running against cloud and local containers for Swedish?

When we use the cloud service we receive punctuation and capitalization correctly but when using the Swedish docker container locally (latest version 2.9.0) we do not receive any punctuation and the capitalization behaves differently, particularly capitalizing the last letter of a word and merging it with the next.
This is an example where the container version behaves weirdly:
{
  "text": "eric bergströMP fyra sjuhärad",
  "lexicalForm": "eric bergström p fyra sjuhärad",
  "normalizedForm": "eric bergströMP fyra sjuhärad",
  "maskedNormalizedForm": "eric bergströMP fyra sjuhärad",
  ...
}

And this is how it looks when running against the cloud:
{
  "text":"Erik bergström, p 4 sjuhärad."
  "lexicalForm":"bergström p fyra sjuhärad",
  "normalizedForm":"erik bergström p 4 sjuhärad",
  "maskedNormalizedForm":"",
  ...
}

Why is punctuation and capitalization different when running against cloud and local containers for Swedish?

@DanielFalkSR Thanks a lot for your query. We will get back to you asap.

@amitkumarshukla Thanks for your query!
The current local speech container has limited display (capitalization, punctuation and etc.) support on some locales like Swedish. The team is working on delivering more accurate displays as what Cloud speech provides today.
Please stay tuned. And again really appreciate your feedback!

Thank you! Since we for security reasons need to run on premise, and the transcripts are quite hard to read as is for the users, we are really interested in the time frame. When do you estimate you will release this on Swedish locale?

Thank you! Since we for security reasons need to run on premise, and the transcripts are quite hard to read as is for the users, we are really interested in the time frame. When do you estimate you will release this on Swedish locale?

@anthonsu Can you please provide any estimate of the release time frame?

There is no clear estimate of the release yet.
I will try post it here when any new updates coming.
Thanks!

Closing the item since improvements have been identified and work is in progress, release information will be provided when known.


Allow OIDC to be used

Hello!
The PKS team will need to be able to use OIDC as the auth provider while running the DRATS tests.
As far as I'm aware, all that needs to be added is the following library for the client-go library to work with OIDC:
_ "k8s.io/client-go/plugin/pkg/client/auth" // load oidc auth

Hi @neil-hickey
That sounds good to us. Please could you submit a PR?
Many thanks
Josh and @aclevername

Closed due to lack of activity


test(deploy): add the bundle as a new deployment tool

ping @SteveMattar @skitt

I updated the branch

ping @SteveMattar @skitt

I approved the PR on July 16, and stand by that ;-).
@dfarrell07 and @mkolesnik could you update your review?

ping @SteveMattar @skitt

I approved the PR on July 16, and stand by that ;-).
@dfarrell07 and @mkolesnik could you update your review?

Ah sorry, my bad ;)

This is awesome/exciting @SteveMattar, thank you! If we add "bundle" to the deploy script tests I think we'll start getting interesting test coverage. https://github.com/submariner-io/shipyard/blob/devel/.github/workflows/scripts.yml#L46

I'm still hesitant to approve this without test coverage, given that we've recently agreed to require test coverage for new features (as part of CNCF Sandbox process). I see https://github.com/submariner-io/submariner-operator/pull/1476/commits/144e0029cc2bb36afb7cae010292950a1be0bd72 makes various fixes to make testing possible, and also adds periodic jobs. Maybe the fixes and (at least) an E2E job should be a part of this PR?

I'm still hesitant to approve this without test coverage, given that we've recently agreed to require test coverage for new features (as part of CNCF Sandbox process). I see submariner-io/submariner-operator@144e002 makes various fixes to make testing possible, and also adds periodic jobs. Maybe the fixes and (at least) the deploy scripts job quoted above should be a part of this PR? Or if you don't want to mess with this PR, at least add the deploy scripts job as a dependent PR so we can see it working and have it ready to merge at the ~same time.

@dfarrell07 sure, I can add the new deploytool here

@dfarrell07 the bundle is part of the deploy script tests but there are no tags for this branch so currently the bundle deployment tests are failing.


App updates for new search service

The new search service will return channel names and offer type based filtering. The app must be updated to accommodate these features (and possible signature changes).

The current apiDoc is located at: https://lbryio.github.io/lighthouse/

Nice docs!

Search server is live at lighthouse.lbry.io:50005

@lyoshenka is there any reason we put it on a weird port?

Ports above 1024 dont require root to bind. Plus that's the port lighthouse
was on before.
On Fri, Sep 29, 2017 at 3:10 PM, Jeremy Kauffman<EMAIL_ADDRESS>wrote:

@lyoshenka https://github.com/lyoshenka is there any reason we put it
on a weird port?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lbryio/lbry-app/issues/557#issuecomment-333213070,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWJIHt9rLjMg_iGjPVMubqP-41s_KPAks5snUCogaJpZM4PUtSO
.


[FEATURE] [DRAFT] Add support for storing multiple Group IDs in an event.

Is your feature request related to a problem? Please describe.
This is needed for supporting sending an event to multiple groups.
Describe the solution you'd like
We need to make createdByGroupId field a list. A user should be an admin of all the groups in the createdByGroupId field to make changes (PUT, PATCH, and DELETE).
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Latest version of this issue is #1016. Closing this issue.


Create the units tests of API

Development of units tests with JUNIT in the Class Java of project Spring Boot

Create Tests Units full


Added random possible moves in def moveAgents()

In this modified method, all eight possible directions have been added to give the agents more freedom of movement. Now each movement is randomly selected from the possible movement directions. This allows agents to move in all directions in space, not just downwards to the right.

allright, checks are succesfull and code is working


Ledger Support

Hi. What's the status of the Ledger Support? 👀
I saw you implemented it but commented out the Menu entry for "UI tweaks"

The ledger app cannot be loaded on a nano S at this point. There is no way to use it.


Support for new React Native architecture

Hi there,
Just a short follow-up question about the support of the React Native new architecture that is already being released and comes with the new Expo 52 SDK. Have you planned to support the new architecture or is the library already supporting it?
Namely I have questions about running the functions in "worklet" for example for customizing labels and similar? I believe that with the new architecture the need to run on "worklet" shouldn't be there anymore.

I'd love to know as well!


Analyze defrecords as Name, ->Name, map->Name

potential approach to fixing the warning mentioned in https://github.com/nextjournal/clerk/issues/121 where
(defrecord Node [v l r])

results in Clerk outputting
Multiple definitions found in form, using first one:
:form (defrecord Node [val left right]) :used-var day-0003/->Node

because (defrecord Node ...) macroexpands to several defn forms including ->Node and map->Node
This PR

adapts the analysis to include a defrecord special case where the defrecord name is used instead of the first defn form.
creates an explicit dependency from the defrecord name to ->RecordName and map->RecordName such that if the record body changes, any usages of ->RecordName or map->RecordName will register as needing to be re-evaluated

Not sure if such a special case is acceptable or if we should re-do the dependency analysis to more holistically deal with expressions with multiple defs in them

Thanks, a more generic approach in #159 went surprisingly well so going with that instead.


Fix definitions of hasNumerator, hasDenominator, hasMultiplier, hasMultiplicand

In gist 11.0.0 we removed the domains and ranges of these properties but neglected to change the text definitions.
The definitions we currently have could be examples, but not definitions.
E.g., hasNumerator is defined as "Relates a RatioUnit such as meter(s)/second to the numerator Unit (e.g. meter)."
hasMultipler is defined as "Relates a ProductUnit such as square mile to the first of two units multiplied together (e.g. mile)."

DECISION: Fix per above recommendation.

Postpone to do with new units and measures model.

@philblackwood How does this fit into the new units and measures model?


Concurent safe set used for share static in after class

GitHub issue resolved: #3519
Briefly describe the changes proposed in this PR:
Use a concurrent safe set implementation for a field that may be accessed by multiple threads during junit testing.

PR Author Checklist (see the contributor guidelines for more details):

[x] my pull request is self-contained
[ ] I've added tests for the changes I made
[x] I've applied code formatting (you can use mvn process-resources to format from the command line)
[ ] I've squashed my commits where necessary
[x] every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

Hmm, passed in eclipse but not on the CLI ;(

Collections.synchronizedSet(...) would have been fine too ;) as long as it is safe :D i have no real preference, I went with the first in autocomplete and that let me astray.


Support block IN instructions

A user reported it via email that that's critical for their use.

Supported.


[UNDERTOW-2335] Add an example of the PredicatesHandler and specifically the predicate handler parser

https://issues.redhat.com/browse/UNDERTOW-2335

Looks good.


Remove Travis CI config

Bug Description:
We no longer use Travis CI, so we can safely remove the service's configuration file from the repo root: .travis.yml.

Steps to Reproduce:
N/A

Additional Information

Operating System:
Theia Version:

Hi @Atharva321 ,
Yes. You will need to sign the Eclipse Foundation ECA for us to be able to accept your contribution. We'll help guide you on the PR if needed.


Upload Privacy Policy

Apple says "Starting May 1, 2024: You'll need to include approved reasons for the listed APIs used by your app's code to upload a new or updated app to App Store Connect."
Please add privacy policy

@sumit-vts also make minor changes with header name:
MagicPieLayer.h renamed to MagicPie.h


Fix Webpack 'vue-loader' Module not found error

Every time that I upgrade one of my older projects to Laravel Mix 6 I have run into this MODULE_NOT_FOUND bug due to version 15.9.7 of vue-loader being installed. This bumps the default version of vue-loader for Vue 2 to 15.9.8.
Version 15.9.7 has a bug where Webpack cannot find the module:
https://github.com/vuejs/vue-loader/issues/1859
Version 15.9.8 fixes that:
https://github.com/vuejs/vue-loader/releases?q=v15.9.8&expanded=true

Thanks!


spark_optimize_delta_tables does not work on databricks

dbt run-operation spark_optimize_delta_tables
06:24:27 Running with dbt=1.8.5
06:24:28 Registered adapter: databricks=1.8.5
06:24:29 Found 235 models, 17 snapshots, 83 data tests, 6 seeds, 142 sources, 5 exposures, 785 macros
06:24:30 Encountered an error while running operation: Runtime Error
Runtime Error
[PARSE_SYNTAX_ERROR] Syntax error at or near '''': missing 'LIKE'. SQLSTATE: 42601 (line 2, pos 29)
== SQL ==
/ {"app": "dbt", "dbt_version": "1.8.5", "dbt_databricks_version": "1.8.5", "databricks_sql_connector_version": "3.1.2", "profile_name": "liseberg-databricks", "target_name": "dev", "connection_name": "macro_spark_optimize_delta_tables"} /
show table extended in like ''
-----------------------------^^^
I have created an issue here: https://github.com/dbt-labs/spark-utils/issues/38
But since I do not know where the real problem is I create an issue in this repo as well.

dbt --version
Core:

installed: 1.8.5
latest:    1.8.5 - Up to date!

Plugins:

databricks: 1.8.5 - Up to date!
spark:      1.8.0 - Up to date!

python --version
Python 3.11.6

packages.yml
packages:

package: dbt-labs/dbt_utils
version: 1.2.0
package: dbt-labs/dbt_external_tables
version: 0.9.0
package: dbt-labs/spark_utils
version: 0.3.0

Since we have no code for that operation, I suspect the fix would have to come from them.

This problem is caused by a change in dbt-spark. https://github.com/dbt-labs/dbt-spark/issues/1048
It should be fixed there.
Closing this issue.


[RefreshIndicator] Fix timer leaks

We can end up with many current timers running when the component is quickly updated.
Fix https://github.com/callemall/material-ui/issues/3970.
@TobyEalden Can you have a look at this one? Thanks.

That works for me - thanks!


Usability Testing

Ask User 2 on their thoughts of the landing pages (usability testing)

User 2: Rudys
Along with user 1, user 2 also agrees that there can be some changes to the landing page. The user agrees that landing page 1 has more potential then landing page 2, however there are some elements that can be implemented from the second landing page. For instance adding a bit of color to the landing page. Also changed the text on the hero section is a big one.


tokenview view changes when keyboard hide.

Whenever keyboard hides, tokenview background removes and looks simple text with comma seperator. whenever I showing any alert its view is changing and not looking good please provide solution for keyboard hides view should remain same.  @khawars  reply fast.

I got solution.


print sysroot without any escaping

@bors r+

:pushpin: Commit 62f56b4f4387cda5c8999beb1a4c93f775eebc65 has been approved by RalfJung

:hourglass: Testing commit 62f56b4f4387cda5c8999beb1a4c93f775eebc65 with merge efeb7308916bbe46775d0ae5818862c95015b471...

@JOE1994 once this lands, would be nice if you could test on Windows again.

@bors r+

:pushpin: Commit 324fed316f019a24b7a442a7759040fdd650b69f has been approved by RalfJung

:hourglass: Testing commit 324fed316f019a24b7a442a7759040fdd650b69f with merge fccb2398248802a268fcda544ff3945247ef2119...

:sunny: Test successful - checks-travis, status-appveyor
Approved by: RalfJung
Pushing fccb2398248802a268fcda544ff3945247ef2119 to master...

@JOE1994 once this lands, would be nice if you could test on Windows again.

This version is also working properly as expected in my Windows machine 👍

Great, thanks for checking. :)


Success always returns false

I have a recaptcha that will not work for a specific site and I can't figure why. On my host it works fine, but when I test on an iPage host, it always returns false, even with a simple test form, it is always false.
I have tried re-doing keys. I even made the very basic of forms as you can see below, but always returns false. And no errors.
http://legionoffoam.com/new/example-captcha.php
This is the same example that is present in the current repository.
reponse:
POST data

array (
  'ex-a' => 'foo',
  'ex-b' => 'bar',
  'g-recaptcha-response' => '03AHJ_VuutwM4UK3X48XUo5hfm8CG9nW4B8_Ugka3r1AvlHVt8VMYHn-g__qZk7iVWRF1KsQZ-RLDTPKlc4P0c4DvR4lT8oXrgJ67zw_4wDUiv8VwCLmJA10SJQDtFwW-CG-PRE5flWWs9ohA4kgojlElrIFhnPvLwGjWwh4fQrwM024ZiSr121UiQgiscnc--Ui14DJN_iTdOheBSd650BSghusU1VUe7l1VCr0DjQrm4PE7XeXu1XqGRYKnq_4nrtBZtv5sdiCAp97yp5ZWSMMohqtEdQJ6hecThwm9Pl_HBCdLwgrpTbEPeWpXzVUXjGwgfk7gxANjaHS-nGeseek6tc9W3CZmsDIJGKV2mUBJ8gQM5B93jJI4p82-pQV7JgmWOdpOkShA1inDz0LcBT2lFQqeHtiximyJ_gpFIBA5Gc1KseicSxGPxBC4dPuf1eg7Y6AIvqiIWM2EgRjeR_kRL5FNyTdihQTe8X5psOgY_v5B00hpCo39Z3csZz_cbmzNwnGyrgd_3oigHKnfPmVQmPB5Eg4dodA15CH9oO1GqNZZdg16dzGBgVGS8GTi8dDzy5SaXroOQ8ZmNCp__Wm9JfOX3l50hEbtqjfQW2vxCOFIOpkewvVaeom0qqHDTyK8SJ_cjxWIdcLJZGfUnhuyhSSLsR1FAbvATGGlV9I2EbikxY7txknrP1wJwNhH17q3FriCG3hzILBJwPkM8xpcibdX1u65LqutSInE3ZqC3T7UXyzpYaPP3-AoF3ssxTZfA34UoKA6FYZiRuipEwdF6tEYnOCWX8Xdik84p4nH0X3BwJfAXkmOo3G_Cgcjms5zMTI1UNRx0j_-dBUZZQu9YQpH2jkmPCXV0DSMrL_-ngALHY4kc6fT9tm052xyQOquEYyQhkr-_RV2DFbCyS2tn-AUbFXadZAFioz56yJyKj0kpWDvRuE_xVlqRzsbz3wWDhxMBzS9NfSbMFne3_bDO3qDiYRTODdurVUL4znvKPlcxXfikzpTza4OjBQ2PmkPvlW1ySA2LI9BV4edo5J8VK4VqWsVW4G9FTEiGLSE3IzXKUufL66o',
)
Something went wrong

The following error was returned: invalid-json

Check the error code reference at https://developers.google.com/recaptcha/docs/verify#error-code-reference.

Note: Error code missing-input-response may mean the user just didn't complete the reCAPTCHA.

Try again

EDIT: Updated to work with the current repository.

$recaptcha = new \ReCaptcha\ReCaptcha($secret, new \ReCaptcha\RequestMethod\CurlPost());
The above fixed my issue.
http://stackoverflow.com/questions/30106668/nocaptcha-returning-error-invalid-json


onClick triggers popup for Gantt Label items which are not truncated

Describe the bug
onClick triggers popup for Gantt Label items which are not truncated.
To Reproduce
Steps to reproduce the behavior:

Go to https://engineering.cerner.com/carbon-graphs/#/gantt/bar-types
Click on 'track label' for any gantt chart.
See error

Expected behavior
onClick should not trigger popup for Label which are not truncated.
onClick should be triggered only for the truncated Label items.
Screenshots

:tada: This issue has been resolved in version 1.10.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Primitive projections are not registered when defining a record

A problematic consequence is that it triggers anomaly when unquoting.
From Coq Require Import Strings.String.
From MetaCoq.Template Require Import All.

Set Primitive Projections.

(* Generated from
Record T := { t : bool }.
*)
Definition T_mentry :=
{|
   mind_entry_record := Some (Some "Build_T");
   mind_entry_finite := BiFinite;
   mind_entry_params := nil;
   mind_entry_inds := {|
         mind_entry_typename := "T";
         mind_entry_arity := tSort (NEL.sing (Level.lSet, false));
         mind_entry_template := false;
         mind_entry_consnames := "Build_T" :: nil;
         mind_entry_lc :=
            tProd (nNamed "t")
                  (tInd {| inductive_mind := "Coq.Init.Datatypes.bool";
                           inductive_ind := 0 |} nil)
                  (tRel 1) :: nil
      |} :: nil;
   mind_entry_universes :=
      Monomorphic_ctx
         ({|LevelSet.this := nil;
            LevelSet.is_ok := LevelSet.Raw.empty_ok |},
         {| ConstraintSet.this := nil;
            ConstraintSet.is_ok := ConstraintSet.Raw.empty_ok |});
   mind_entry_private := None
|}.

Run TemplateProgram (tmMkInductive T_mentry).
(*The command has indeed failed with message:
t: Not a projection *)
Fail Definition x := {| t := true |}.
Quote Definition test := (fun z => t z).
(*Anomaly "Uncaught exception Not_found."
Please report at http://coq.inria.fr/bugs/.*)
Run TemplateProgram (tmUnquote test).

On Coq 8.9, metacoq from opam package 1.0~alpha+8.9

Are there any plans for fixing this issue? It seems that there is no way to unquote a record with projections, since it always ends up being "with primitive projections" enabled and no actual projections are generated.
The example in demo,v https://github.com/MetaCoq/metacoq/blob/coq-8.16/examples/demo.v#L183 produces a variant instead of a record:
Variant Point (A : Set) : Set :=  mkPoint : forall (_ : A) (_ : A), Point A.

I've tested with the coq-8.14 branch, however, maybe it's different in other branches.


Downloading from plain https URL

$ ./bin install https://github.com/denoland/deno/releases/download/v1.30.2/deno-x86_64-unknown-linux-gnu.zip
   • Getting v1.30.2/deno-x86_64-unknown-linux-gnu.zip release for denoland/deno
   ⨯ command failed            error=GET https://api.github.com/repos/denoland/deno/releases/tags/v1.30.2/deno-x86_64-unknown-linux-gnu.zip: 404 Not Found []
$ ./bin install<EMAIL_ADDRESS>   ⨯ command failed            error=Can't find provider for url<EMAIL_ADDRESS>$ ./bin install https://geo.mirror.pkgbuild.com/community/os/x86_64/caddy-2.6.2-1-x86_64.pkg.tar.zst
   ⨯ command failed            error=Can't find provider for url https://geo.mirror.pkgbuild.com/community/os/x86_64/caddy-2.6.2-1-x86_64.pkg.tar.zst

This is my first time using this, but I don't think I know how to use this yet.

Try with bin install GitHub.com/denoland/deno
sent from mobile
Em sex., 3 de fev. de 2023 22:15, 즈눅 @.***> escreveu:

$ ./bin install https://github.com/denoland/deno/releases/download/v1.30.2/deno-x86_64-unknown-linux-gnu.zip
• Getting v1.30.2/deno-x86_64-unknown-linux-gnu.zip release for denoland/deno
⨯ command failed            error=GET https://api.github.com/repos/denoland/deno/releases/tags/v1.30.2/deno-x86_64-unknown-linux-gnu.zip: 404 Not Found []
$ ./bin install @.***/linux-x64/-/linux-x64-0.17.5.tgz
⨯ command failed            error=Can't find provider for url @.***/linux-x64/-/linux-x64-0.17.5.tgz
$ ./bin install https://geo.mirror.pkgbuild.com/community/os/x86_64/caddy-2.6.2-1-x86_64.pkg.tar.zst
⨯ command failed            error=Can't find provider for url https://geo.mirror.pkgbuild.com/community/os/x86_64/caddy-2.6.2-1-x86_64.pkg.tar.zst
This is my first time using this, but I don't think I know how to use this
yet.
—
Reply to this email directly, view it on GitHub
https://github.com/marcosnils/bin/issues/154, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMBLWXDR2WKVDHIXM36GCLWVWUTZANCNFSM6AAAAAAUQ3MNQM
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

deno is language runtime like go or python, I think the best practice is to use rtx or asdf manage them.

Also related to #214, #215, #179


Raptor Error when managing tabs in GUI.

This is the error log that comes in a popup:
Error occured! We are trying to make Raptor bug free and we need your help! Please take a moment to report this issue by selecting the menu:
  Help -> Report Issue

Error in execute
IllegalArgumentException: Argument not valid
java.lang.IllegalArgumentException: Argument not valid
	at org.eclipse.swt.SWT.error(Unknown Source)
	at org.eclipse.swt.SWT.error(Unknown Source)
	at org.eclipse.swt.SWT.error(Unknown Source)
	at org.eclipse.swt.custom.CTabFolder.removeTabControl(Unknown Source)
	at org.eclipse.swt.custom.CTabFolder.setTopRight(Unknown Source)
	at org.eclipse.swt.custom.CTabFolder.setTopRight(Unknown Source)
	at raptor.RaptorWindow$RaptorTabFolder.updateToolbar(RaptorWindow.java:326)
	at raptor.RaptorWindow.restoreFolders(RaptorWindow.java:2623)
	at raptor.RaptorWindow$51$1.execute(RaptorWindow.java:2249)
	at raptor.util.RaptorRunnable.run(RaptorRunnable.java:51)
	at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at raptor.Raptor.main(Raptor.java:235)

Hi,
Could you please provide more details about the platform you are using
(windows, linux, mac...) and what you were trying to do in the application?
(meaning: how to get to the point of error)
Thanks.
On Wed, Jul 1, 2015 at 11:47 AM, Unihedron<EMAIL_ADDRESS>wrote:

This is the error log that comes in a popup:
Error occured! We are trying to make Raptor bug free and we need your help! Please take a moment to report this issue by selecting the menu:
Help -> Report Issue
Error in execute
IllegalArgumentException: Argument not valid
java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.custom.CTabFolder.removeTabControl(Unknown Source)
at org.eclipse.swt.custom.CTabFolder.setTopRight(Unknown Source)
at org.eclipse.swt.custom.CTabFolder.setTopRight(Unknown Source)
at raptor.RaptorWindow$RaptorTabFolder.updateToolbar(RaptorWindow.java:326)
at raptor.RaptorWindow.restoreFolders(RaptorWindow.java:2623)
at raptor.RaptorWindow$51$1.execute(RaptorWindow.java:2249)
at raptor.util.RaptorRunnable.run(RaptorRunnable.java:51)
at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at raptor.Raptor.main(Raptor.java:235)
—
Reply to this email directly or view it on GitHub
https://github.com/evilwan/raptor-chess-interface/issues/5.

--
I think I've got the hang of it now... :w :q :wq :wq! ^d X exit X Q
:quitbye
CtrlAltDel ~~q :~q logout save/quit :!QUIT ^[zz ^[ZZ ZZZZ ^H ^@ ^L ^[c
^# ^E
^X ^I ^T ? help helpquit ^D ^d ^C ^c helpexit ?Quit ?q ^Kx /QY sync
halt


Teleport does not work for elements controlled by vue itself

What problem does this feature solve?
Oftentimes I find myself writing components that semantically belong where they are but need to be displayed somewhere else in my app. Teleport is there to solve the problem - but you can only port outside of the app. Whenever I target an element which is rendered by vue itself it echos a warning that the element needs to be mounted first. Unfortunately, not every usecase can be rewritten in a way, that it falls into the simply modal-button category.
I opened a stackoverflow issue with a reproduction: https://stackoverflow.com/questions/63652288/does-vue-3-teleport-only-works-to-port-outside-vue
What does the proposed API look like?
Either have a teleport target component as in portal-vue or allow targeting ids of other components

I think the following approach should work correctly:
createApp({
  setup() {
    const refDom = ref(null)

    return () => [
      // ref the DOM
      h('div', { ref: refDom }),
      h(Teleport, {
        // set the target to refDom
        to: refDom.value,
        // disable teleport when refDom is not set
        disabled: !refDom.value
      }, h('h1', 'hcy'))
    ]
  }
}).mount('#app')

But that will still get warning messages:

[Vue warn]: Invalid Teleport target: null
[Vue warn]: Invalid Teleport target on mount: null (object)

Maybe we need to improve it.

Interesting approach. But it becomes more complicated when you dont have access to the dom ref because the target is in some different component. How would you go about that?

works well
  const useTele = () => {
    const target = ref(null)
    return () => target
  }

  const useThisTele = useTele()

  createApp({
    setup() {
      return { target: useThisTele() }
    },
    template: `

App

 target = d">

      <parent-comp/>

`
  }).component('parent-comp', {
    template: `

    <child-comp/>

`
  }).component('child-comp', {
    setup() {
      return { target: useThisTele() }
    },
    template: `

      <Teleport :to="target" :disabled="!target">
        Hello From Portal
      </Teleport>

`
  }).mount('#app')

That still a bit fragile, however.
When the target's parent gets removed from the DOM, the portal content is removed from the DOM with it - but the source component won't be informed about this and consequently, in it's vdom, it assumes that the elements still are in the DOM. That will likely result in update errors when the source component does update later.

@unbyte so you basically pass (or import) useThisRef to the components which define it and which uses it as target. Is that correct? (so in easy terms you pass around a reference)

@LinusBorg , this discussion might help, where the terminology "reparenting" is used:
Generally the discussion (incl. linked gists+rfc) revolves around the use of keys/instances to map components to their destinations but two libraries also stick out there lately:

react-reverse-portal, which uses wrapping portals to move components around the VDOM.
react-reparenting, which uses the underlying fiber API in react to move a fiber to a new place in the VDOM.
Both make it possible to move components around without remount/rerender.

Do you see any benefits Vue3's Teleport has over React's Portals in this area or do they have the same functionality when it comes to this?
Has vue considered "global" key props - similar to the typical "key" prop sibling-components receive when iterating over an array?
Do we have the API to safely move a VDOM block (component and its descendants) around, to aid the runtime?

Has any similar discussion taken place in vue or its rfcs or is there even a vue lib that solves this problem already?

@unbyte
but,   don`t work!
Link: https://github.com/vuejs/vue-next/issues/3142#issue-798032619
Should it be fixed?

@unbyte but, "" don`t work!, as below,Should it be fixed?
Link: #3142 (comment)

Tooltips with Vue 3 Teleport

@unbyte but, <teleport to='#elementId'> dont work!, as below,Should it be fixed? Link: #3142 (comment)

Tooltips with Vue 3 Teleport

`

@unbyte
<teleport to='#elementId'>  don`t work
https://github.com/vuejs/vue-next/issues/3142#issue-798032619
Should this problem should be fixed?

Is there an accepted best practices approach to this issue that's different from the solution provided in https://stackoverflow.com/a/63665828/1764728?

@kadiryazici the example @unbyte provided is a good solution. It maybe looks a bit complicated but it boils down to:

create a reference somewhere and fill it with the dom node via ref="someVar"
use that reference as target in teleport<teleport :to="someVar" v-if="someVar">

With the v-if you make sure, that the teleport renders only when someVar is filled (say: the target was mounted by vue).

I've bundled @Fuzzyma  solution in to a component:
TeleportWrapper.vue
<template>
    <teleport :to="target" :disabled="!target || disabled">
      <slot></slot>
    </teleport>
</template>

Then you can use it like this:
<teleport-wrapper to="#some-id">
   my content here
</teleport-wrapper>

// somewhere else in your page

@patforg super useful thanks!

Modified @patforg's component to use mutation observer to make it work when teleport wrapper component gets mounted before the target:
<template>
    <Teleport :to="target" v-if="target" :disabled="!target || disabled">
      <slot></slot>
    </Teleport>
</template>

Wrapper hack works well. Thank you @patforg @Obapelumi
One more alternative with pooling querySelector in interval.
In my case element is found on 3-4 run

I think we we should have vue-safe-teleport built-in.
Johnson Chu tweet reply.


Remove the IsA bound on Builder::get_object

BTW, since Buildable isn't a useful bound and is only relevant when implementing subclasses, it seems we should remove it.

Agree than Buildable mainly for "internal" use and can disabled


TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Jenkins-Crumb"]

Wanted to try out this extension, but without no luck.
}
  "jenkins.pipeline.linter.connector.crumbUrl": "https://jenkins.example.com/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,%22:%22,//crumb)",
  "jenkins.pipeline.linter.connector.url": "https://jenkins.example.com/pipeline-model-converter/validate",
  "jenkins.pipeline.linter.connector.user": "vscode-jenkins-pipeline-linter",
  "jenkins.pipeline.linter.connector.pass": "2391d2db4z8fe92307b8b789f57a4328cf",
  "jenkins.pipeline.linter.connector.token": "2391d2db4z8fe92307b8b789f57a4328cf",
  }

I have pretty secure http2 proxy in front of my Jenkins, but i assume that https should work just fine with this extension.
Postman GET https://jenkins.example.com/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,%22:%22,//crumb) initially returns just 500 with:
<!DOCTYPE html>
<html class="">

<head resURL="/static/4cbb666e" data-rooturl="" data-resurl="/static/4cbb666e" data-extensions-available="true"
   data-unit-test="false" data-imagesurl="/static/4caa677e/images" data-crumb-header="Jenkins-Crumb"
   data-crumb-value="a0f12091a9580ff88e74wwy457jikl092354d4d9515c9b2b16e89e754012a128">

.... the rest of some page

Jenkins logs of Postman error:
2021-01-06 20:34:12.240+0000 [id=6403]	WARNING	h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID 1e699b43-ad36-4888-847f-7dbd7a3095a2
org.dom4j.InvalidXPathException: Invalid XPath expression: concat(//crumbRequestField,":",//crumb) HTTP/1.1 Unexpected 'HTTP/1.1'

which tells me that Postman somehow automatically appended  HTTP/1.1 to the xpath query parameter (not sure why).
After manually removing it i get response 200 with:
Jenkins-Crumb:a0f12091a9580ff88e74wwy457jikl092354d4d9515c9b2b16e89e754012a128

Which tells me that my Jenkins instance is healthy.
But the extension still does not work.
I have no way to test http only and i am not sure is it relevant there at all.
Similar issues: https://github.com/janjoerke/vscode-jenkins-pipeline-linter-connector/issues/1 https://github.com/janjoerke/vscode-jenkins-pipeline-linter-connector/issues/2 https://github.com/janjoerke/vscode-jenkins-pipeline-linter-connector/issues/13
P.S Keys are faked. 😃

I had got it worked only as http and public Jenkins IP address. So there is something to deal with ... proxy, TLS termination, God knows what else.

I had got it worked only as http and public Jenkins IP address. So there is something to deal with ... proxy, TLS termination, God knows what else.

Detect Jenkinsfile syntax, output No Jenkinsfile specified

+1

+1

+1

Did anyone get this problem fixed?
Some work around suggest setting up env variables but no luck ...

I've got it working by setting the connector.url, connector.user and connector.token only. When you set the connector.token you do not need the connector.pass and connector.crumbUrl.
If you got the following error: Error: unable to verify the first certificate then make sure to set the connector.strictssl to false.
Hope it helps.

I confirm solution proposed by @sapipeti worked like a charm. Thank You!


4.0.0-beta3 kotlin extensions on jitpack is a jar

DBFlow Version: 4.0.0-beta3
Issue Kind (Bug, Question, Feature): Bug
Description:
It seems that there is some issue with the kotlin-extensions artifact of 4.0.0-beta3 on jitpack.
This works fine with 4.0.0-beta2.
The error message when running gradle build is Module 'com.github.Raizlabs.DBFlow:dbflow-kotlinextensions:4.0.0-beta3' depends on one or more Android Libraries but is a jar
If I navigate to the gradle caches there is indeed a jar file in there and the pom file for kotlin extensions looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.github.Raizlabs.DBFlow</groupId>
  <artifactId>dbflow-kotlinextensions</artifactId>
  <version>4.0.0-beta3</version>
  <dependencies>
    <dependency>
      <groupId>com.github.Raizlabs.DBFlow.dbflow-kotlinextensions</groupId>
      <artifactId>dbflow</artifactId>
      <version>4.0.0-beta3</version>
      <type>aar</type>
    </dependency>
    <dependency>
      <groupId>com.github.Raizlabs.DBFlow.dbflow-kotlinextensions</groupId>
      <artifactId>dbflow-core</artifactId>
      <version>4.0.0-beta3</version>
    </dependency>
    <dependency>
      <groupId>com.github.Raizlabs.DBFlow.dbflow-kotlinextensions</groupId>
      <artifactId>dbflow-kotlinextensions</artifactId>
      <version>4.0.0-beta3</version>
      <type>aar</type>
    </dependency>
    <dependency>
      <groupId>com.github.Raizlabs.DBFlow.dbflow-kotlinextensions</groupId>
      <artifactId>dbflow-processor</artifactId>
      <version>4.0.0-beta3</version>
    </dependency>
    <dependency>
      <groupId>com.github.Raizlabs.DBFlow.dbflow-kotlinextensions</groupId>
      <artifactId>dbflow-sqlcipher</artifactId>
      <version>4.0.0-beta3</version>
      <type>aar</type>
    </dependency>
  </dependencies>
</project>

If I clear the gradle cache it will start downloading com.github.Raizlabs.DBFlow.dbflow-kotlinextensions:dbflow-core , com.github.Raizlabs.DBFlow.dbflow-kotlinextensions:dbflow-processor etc.

hmmm looks like its an issue with either jitpack, the new kotlin version 1.0.5 I updated to, or something else. Have you tried this?
compile "com.github.Raizlabs.DBFlow:dbflow-kotlinextensions:${dbflow_version}@aar"

To be honest I didn't think of trying it before, but I did now (since you mentioned it) and it seems to work properly.
Thank you.

cool. ill close it as the readme has been updated.


[UI] Dark mode for Contributing to Open Source Page

Category

[ ] Resource Addition
[ ] Documentation
[ ] Codebase
[x] User Interface
[ ] Feature Addition

Description

Sure, @rnavaneeth992. You're assigned!

Hey @Sriparno08 ,I have a potential solution for this, can you assign it to me.

Hey @prashantrai-30, this issue has been closed as the changes from the assignee has already been merged.


There seems to be a problem in the admin interface element for users.

I'm using the latest chrome on Ubuntu 22.04. It's also the same in my other computers. There's not much space.

Hi, I'll change the design a bit but you should still be able to scroll horizontally, Thanks!

Ok.


Fix ftp compile and test issues

Signed-off-by:
Pre-Checklist
Note: Please complete ALL items in the following checklist.

[x] I have read through the CONTRIBUTING.md documentation.
[x] My code has the necessary comments and documentation (if needed).
[x] I have added relevant tests.

Purpose

Some description about what this PR wants to do.
Approaches

Some description about how this PR achives the purpose.
Related Issues

e.g. Close #796
New Behavior (screenshots if needed)

N/A

Hi jliao07, thanks for your contribution to the BitSail community. we build a group for all contributor.Here is the QR code. If it expires, you can add WeChat ID<PHONE_NUMBER>7. Look forward to your arrival! @jliao07


5.3 blu_event

I tried to subscribe the ScriptEventEmitter like in the Demo.
But it seams not to work in UE 5.3.
Update:
After debugging the event i regonize that the Type & the Name etc. keeps "Empty".
With a for loop i stored all the Strings in a array.
But also there all values are empty.

are you emitting it via blu_event?


Allow to choose security protocol to avoid errors in log

Allow to choose security protocol to avoid errors in log
Fixes BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1272041

ems cloud angular form:

ems infra non angular form:

This feels like it overlaps a little with the verify_ssl checkbox that is implemented in the Foreman provider, and requested in other providers.  I wonder if it would be better / more consistent to blend the two concepts.
In the providers table, there is a verify_ssl column which right now is an integer (as thus able to hold the OpenSSL::VERIFY_* constant), but I wonder if we can expand that or reuse that for this case.  I wish it was on EMS, but it isn't, but since OpenStack has a provider, that might work out for now.  @blomquisg Thoughts?  Care to discuss?

@Fryguy this approach was used in SCVMM, where you can pick between SSL and kerberos. I guess it make sense for OpenStack too, for the future, the amount of options can be bigger than binary.
That is if we want to use this field for it, same as for SCVM, or it should change? Theoretically those are different things, you can have non-ssl with kerberos (but not sure who would use it :-)) .

I think I'm ok with this for now, given there's a precedent in another provider.  I still think it needs a consoldiation though.  @blomquisg Let's put it on the list :D

Just to add a comment, a common "SSL || No-SSL || SSL-without-validation" scenario model would be great. This will be a common choice made across all provider integrations.

@gpjonesii what would be the SSL-without-validation ? Currently there is only peer verification option, that is disabled now for ssl.
E.g. SCVMM is using options SSL || Kerberos, would this be the way forward?

SSL without validation would be for Proof of Concept/ Lab / Development Environment scenarios where the integration points are using self-signed certificates that can't be validated, or FQDNs mismatch.

@gpjonesii right, so it seems we now default to ssl without validation, which seems bad
seems like the peer verification is exactly that, let me prepare these 3 options then, @mcornea hopefully help me to create evns for this, so later, we will be testing this also in CI

@blomquisg does it mean we will change to default SSL, now we have SSL without validation from what I see.

@Ladas, unfortunately, I still think we should default to "SSL (without validation)".  Then, users can select "SSL" if they choose.  But, we'll have to document what's entailed for them to get real SSL validation somewhere.
@kbrock has looked at this some and might be able to at least give us some pointers on what's required to validate the providers' SSL certs.

@blomquisg important question. Should it still do the fallback to non ssl when ssl in not there? If not, it will not be backwards compatible. But I think when ssl is chosen, it should never send unencrypted data.

This looks nice.
@blomquisg you are referring to my (pipe) dream that we would store the ssl certificate for the server in the database. The ui displays the fingerprint in the ui, giving the user the ability to 'accept' the certificate. This allows us to send a 'custom ssl certificate' to provider connections, allowing us to handle self signed certs securely.
Soon... Soon...

@kbrock @blomquisg What is the status of this PR?

@chessbyte it's merged :smile:

@gpjonesii @kbrock @Ladas @blomquisg Do we have any instructions to import root CA certificates to the applance? I'd like to put together some docs on how to do it. Thanks.

@mcornea Did you get any information from https://access.redhat.com/articles/1124753 ?

@kbrock I'm not sure it helps. What I'm trying to do is to create a CA that I'll use to sign the Openstack endpoints certificates and then import the root certificate to ManageIQ. Something similar to adding the cert to the system-default CA bundle in /etc/pki/tls/certs/ca-bundle.crt but I don't know where ManageIQ stores the trusted CAs.

@kbrock I think I found it in /opt/rh/cfme-gemset/gems/excon-0.45.4/data/cacert.pem

@mcornea ooh. yes. that is a feature I really want. Since we mostly use openssl, I would have thought the cacert would be in a more central location like /etc/openssl or something. /cc @blomquisg

@kbrock the path can be changed here https://github.com/excon/excon/blob/75d85a7e304cbd1c9dc3c7c40c6de5a995f5cd04/lib/excon/ssl_socket.rb#L36

@Ladas does that need to contain all pems, or just the additional root one?

@kbrock I believe just the root one, there is only one filename path.


Training on a new dataset

Hai sir,
I want to train ReDet on VisDrone dataset. For VisDrone dataset, the ground truth object segmentation details are not provided in annotation files.
The annotation format for VisDrone is like this:
"<bbox_left>,<bbox_top>,<bbox_width>,<bbox_height>,,<object_category>,,"
which is different from HRSC and DOTA datasets that have OBB annotations.
Can I train ReDet on VisDrone only using the BBOX information??

Yes. Our models use the standard COCO style annotation. You can transform your data to COCO's json annotation.

Thank you for the reply. yes, I converted VisDrone data to COCO's json format. But the problem is ground truth segmentation details are not given for VisDrone dataset.
Using the given  [x,y,w,h] format, I added segmentation as [x,y,x,y+h,x+w,y+h,x+w,y] and trained the model. The training code ran without any issue. The losses also reduced with the epochs.
I ran test.py and got the prediction results.
I modified DOTA_devkit/dota15_evaluation_task2.py code to work for the VisDrone data.
But the AP for all the classes turned out to be 0. I tried to understand why this happened but I couldn't figure it out.
Any idea why it could have happened?
Thank you.

Since you have converted visDrone to COCO's style, I suggest to evaluate your model with COCOEval directly. But you need to convert the RBOX results to BBOX.
Another way, you can convert visDrone's annotations to DOTA format:
x1, y1, x2, y2, x3, y3, x4, y4

Then you can convert them to COCO style by DOTA_devkit/DOTA2COCO.py.
So we can train, test and evaluate the model with the converted dataset.

Okay, thank you very much for the reply. I will try your suggestions and let you know if it worked for me.

Sir, one last question!
I converted VisDrone annotations to DOTA format (x1,y1,x2,y2,x3,y3,x4,y4,class_name,difficult) and then used DOTA_devkit/DOTA2COCO.py to generate COCO format json files.
One point to note is that, VisDrone has HBBs. The given annotations are of type x,y,w,h. And using them I created
(x1 = x, y1 = y, x2 = x+w, y2 = y, x3 = x+w, y3 = y+h, x4 = x, y4 = y+h).
Example: 708 471 782 471 782 504 708 504 car 0
Training ran well. The loss during training constantly went down. Then I used tools/test.py to generate predictions and tools/parse_results.py to parse the results.
I noticed that the generated results are not HBBs.
One of the results:
0000194_00625_d_0000122.jpg 0.336 702.937 337.499 702.924 369.846 655.261 369.827 655.275 337.480 0.336
Is this normal? Shouldn't the generated results be HBBs?
And using these results, when I did evaluation, I am getting mAP as 0.
Could you please let me know what I might have done wrong.

It would be normal. Check your work_dirs/your_config_name and you can see a folder Transed_Task2_results_nms after parse_results.py. The folder contains the HBB results converted from OBB.


You should set 'COOKIE' in 'Config.conf' file for the Claude or login with a browser to Claude.ai account.

I had set cookie value in the 'Config.conf', but it still failed.

INFO:root:claude_routes.py
INFO:root:gemini_routes.py
INFO:root:v1_routes.py
INFO:root:http_routes.py
INFO:root:http_routes.py.initialize_cookies
INFO:root:utility.py./getCookie_Claude
{'Error': "You should set 'COOKIE' in 'Config.conf' file for the Claude or login with a browser to Claude.ai account."}
INFO:root:utility.py./getCookie_Gemini
Traceback (most recent call last):
File "/home/colin/workspace/WebAI-to-API/webai2api/webai2api/utils/utility.py", line 118, in getCookie_Gemini
cookie = get_cookiestring("Google")
File "/home/colin/workspace/WebAI-to-API/webai2api/webai2api/utils/utility.py", line 66, in get_cookiestring
domain = domains[service_name]
KeyError: 'Google'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/colin/workspace/WebAI-to-API/webai2api/run.py", line 3, in
from webai2api.main import app
File "/home/colin/workspace/WebAI-to-API/webai2api/webai2api/main.py", line 5, in
from .routes.http_routes import web_ui_middleware
File "/home/colin/workspace/WebAI-to-API/webai2api/webai2api/routes/http_routes.py", line 32, in
initialize_cookies()
File "/home/colin/workspace/WebAI-to-API/webai2api/webai2api/routes/http_routes.py", line 27, in initialize_cookies
COOKIE_GEMINI = utility.getCookie_Gemini()
File "/home/colin/workspace/WebAI-to-API/webai2api/webai2api/utils/utility.py", line 127, in getCookie_Gemini
cookies = browser_cookie3.load(domain_name=domain)
File "/home/colin/anaconda3/envs/claude/lib/python3.10/site-packages/browser_cookie3/init.py", line 1233, in load
for cookie in cookie_fn(domain_name=domain_name):
File "/home/colin/anaconda3/envs/claude/lib/python3.10/site-packages/browser_cookie3/init.py", line 1160, in chrome
return Chrome(cookie_file, domain_name, key_file).load()
File "/home/colin/anaconda3/envs/claude/lib/python3.10/site-packages/browser_cookie3/init.py", line 626, in init
super().init(browser='Chrome', cookie_file=cookie_file,
File "/home/colin/anaconda3/envs/claude/lib/python3.10/site-packages/browser_cookie3/init.py", line 416, in init
self.__add_key_and_cookie_file(**kwargs)
File "/home/colin/anaconda3/envs/claude/lib/python3.10/site-packages/browser_cookie3/init.py", line 431, in __add_key_and_cookie_file
USE_DBUS_LINUX).get_password(os_crypt_name)
File "/home/colin/anaconda3/envs/claude/lib/python3.10/site-packages/browser_cookie3/init.py", line 232, in get_password
return self.__get_secretstorage_password(os_crypt_name)
File "/home/colin/anaconda3/envs/claude/lib/python3.10/site-packages/browser_cookie3/init.py", line 247, in __get_secretstorage_password
return self.__methods_map.get('secretstorage')(schema, os_crypt_name)
File "/home/colin/anaconda3/envs/claude/lib/python3.10/site-packages/browser_cookie3/init.py", line 303, in __get_secretstorage_item_jeepney
with _JeepneyConnection(*args) as connection:
File "/home/colin/anaconda3/envs/claude/lib/python3.10/site-packages/browser_cookie3/init.py", line 195, in enter
self.__connection = open_dbus_connection()
File "/home/colin/anaconda3/envs/claude/lib/python3.10/site-packages/jeepney/io/blocking.py", line 342, in open_dbus_connection
sock = prep_socket(bus_addr, enable_fds, timeout=auth_timeout)
File "/home/colin/anaconda3/envs/claude/lib/python3.10/site-packages/jeepney/io/blocking.py", line 310, in prep_socket
with_sock_deadline(sock.connect, addr)
File "/home/colin/anaconda3/envs/claude/lib/python3.10/site-packages/jeepney/io/blocking.py", line 307, in with_sock_deadline
return meth(*args)
FileNotFoundError: [Errno 2] No such file or directory

have the same problem

me too, it seems the claude session cookies have changed format

Hmm, interesting.
Actually, I found a bug here. The script never uses the config.conf file. It's always trying to load by the web browser session, but it's working.
Could you check your sessions at http://localhost:8000/WebAI?
Can you see sessions for Claude and Gemini?

There is a way to authenticate using a config file.  if you look in the utils/utility.py file. You will see
gemini_session_names = {
"bardts": "__Secure-1PSIDTS",
"bardcc": "__Secure-1PSIDCC"
}
default_gemini_session_name = "__Secure-1PSID"
I am assuming those would be the values you would be from the session. Which you can find under the Ppplication tap of the developer options on chrome. Under cookies.  Try to authenticate manually?

same here, like to many bugs not clean coding. hope have func to choose gemini or claude or openai


Measuring tasks execution time

Q
A

Issue Type
Question, Feature Request

Deployer Version
3.3

Local Machine OS
OSX

Remote Machine OS
Debian

Description
I just want to measure execution time of each task defined in recipe and store it e.g in syslog.
example:  user | task_name | server | execution_time
In verbose mode i see times in output but how to catch these data while processing recipe?
Thank you.

Hi, what you want to measure?

We have large amount of servers and some of tasks in recipes take a lot of time to finish(git, builders, compressors etc) so that's why i want to store all tasks's execution times in  DB(syslog) for statistics usage.
ex:
user | deploy:prepare | 2s | server | timestamp
user | deploy:release  | 3s | server | timestamp
user | deploy:update_code  | 40s | server | timestamp
user | builder  | 30s | server | timestamp
etc...

@elfet Anton, maybe it'd be more convenient to add profiling feature in verbose mode? Or as optional parameter --profile?

Yes this is good solution ---profile option. Need to figure out how it will be combined with coming logging feature.
What open formats of profile is there?

Composer also use the --profile flag, which enables debugging mode on it's IO instance. That simply prepends the memory usage and time before the actual message, in all writes.

See https://github.com/composer/composer/blob/86c887b5e4455222b0728ab4c8a6a932c06c075d/src/Composer/IO/ConsoleIO.php#L151-L157

I was thinking this would be nice, so I could focus my efforts on what is the slowest operation instead of eyeballing it!  Is it my rsync or composer or git clone tasks that are taking their sweet time.  Knowing how long each one took could allow me to focus my attention a bit better to the main culprit.

Done!
dep deploy --profile profile.tsv

@antonmedv I can't find where this feature has been implemented. What is the profile.tsv used for?

For getting a time of execution.

Ok, is profile.tsv an empty file? While using version 6.8 and running dep deploy staging --branch=master --profile I get the following error: The "--profile" option does not exist.

This option was added in deployer v7


Set up parallel gem for testing

http://makandracards.com/makandra/1241-how-to-run-your-tests-in-parallel-to-speed-up-test-execution

Agreed


exists('plugin#function') is false, if declared in NeoBundleLazy

Hi Shougo,
thanks for your plugins, they're truly awesome.
I'm having an issue with the NeoBundleLazy command. I'm importing the vim-fugitive plugin this way:
NeoBundle 'tpope/vim-fugitive', {
            \ 'augroup' : 'fugitive',
            \ 'commands': [
            \   'Git', 'Gdiff', 'Gstatus', 'Gwrite', 'Gcd', 'Glcd',
            \   'Ggrep', 'Glog', 'Gcommit', 'Gblame', 'Gbrowse'
            \ ],
            \ 'functions' : [ 'fugitive#head', 'fugitive#extract_git_dir' ],
            \ 'autoload': {
            \   'filetypes': 'all'
            \ }}

As you can see there's the fugitive#head function declared, but when other plugins (in particular vim-airline) try to see if that function exists or not, echo exists('*fugitive#head') returns 0.
Is this the expected behavior?
Thanks for you support!

Unfortunatelly, it is feature.
If you use :NeoBundleLazy, the plugin is not loaded until :NeoBundleSource.
If you want to use fugitive and vim-airline, you should not use NeoBundleLazy.

Ok, thank you anyway. Have a nice day!


Checking user data type in modules?

I'm attempting to integrate modules with sol. My first test case is a module that modifies a window's style. The module works fine if I treated the HWND as a number (Win64 still uses 32-bit window handles) but I am having trouble storing it as userdata, which will be better for cross-platform compatibility, since Linux and Mac use pointers for window handles, which cannot fit in a Lua number.
In the main program:
struct LuaWindowHandle {};

L->new_usertype<LuaWindowHandle>("HWND");

L->new_usertype<Window>(
	"WindowClass",
	"GetHandle", [](Window& w) { return (LuaWindowHandle*)w.GetHandle(); },// Uses a pointer, which will work for Linux and Mac
	//"GetHandle", [](Window& w) {return uint32_t(w.GetHandle()); },// This works for win32 only
}

Window::GetHandle returns a win32 HWND, which I cast to a LuaWindowHandle pointer so that sol recognizes the type.
In my Lua module, I have this code:
static int SetWindowZenMode(lua_State* L)
{
    HWND hwnd = (HWND)luaL_checkudata(L, 1, "HWND");
    //HWND hwnd = (HWND)luaL_checkinteger(L, 1);// This works for win32 only
    int state = luaL_checkint(L, 2);

luaL_checkudata is producing a type error.  I don't know what that number is, but it isn't the HWND.
Can you tell what I am doing wrong?

This is what the metatable looks like. I tried "UltraEngine::Window::BindClass::LuaWindowHandle" and "UltraEngine::Window::BindClass::LuaWindowHandle*" for the name, to no avail.
https://imgur.com/a/qelNT1w

Let me try to confirm my understanding. In the example code you try to cast the return value of GetHandle to an arbitrary struct pointer to make the code work on all platforms.
However, the code does not work.
The problem seems to be at least the way you cast from userdata into HWND.
Also the metatable name may or may not be correct.
The pointer returned by checkudata function is not the pointer you return from GetHandle. It is a pointer to the userdata that contains the pointer. So you should be using something on the lines of
LuaWindowHandle** udataptr = (LuaWindowHandle**)luaL_checkudata(L, 1, "sol.LuaWindowHandle*");
LuaWindowHandle* udata = *udataptr;
HWND hwnd = (HWND)udata;

Here is a small code I whipped up to try show how it could probably work.
https://godbolt.org/z/3YhvPr3rn

#define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>

#include <cstdint> // std::uintptr_t, uint32_t, uint64_t
#include <limits> // std::numeric_limits
#include <unordered_map> // std::unordered_map
#include <iostream> // std::cout, std::endl

// Try changing this
// typedef uint32_t HWND;
typedef uint64_t HWND;

// Mock window
struct Window {
    HWND GetHandle() const { return value; }

    HWND value = std::numeric_limits<HWND>::max();
    int state = 0;
};
std::unordered_map<HWND, Window*> windows;

// The helper struct to try ensure type safety in some way I guess
struct LuaWindowHandle {
    LuaWindowHandle() = delete;
    ~LuaWindowHandle() = delete;
};

// Your module
static int SetWindowZenMode(lua_State* L)
{
    // Get with metatable name (without sol)
    // Note that we need to dereference the void pointer before we cast it, since luaL_checkudata returns a pointer to the userdata
    // and the userdata contains the actual pointer that we returned to lua.
    // You may also want to take a look at this https://sol2.readthedocs.io/en/latest/api/usertype_memory.html
    HWND hwnd1 = static_cast<HWND>(reinterpret_cast<std::uintptr_t>(*(LuaWindowHandle**)luaL_checkudata(L, 1, "sol.LuaWindowHandle*")));
    // Get using state view (sol) if you have access to the LuaWindowHandle
    // Not sure if I should use sol::stack::get or sol::stack::get_usertype, but both probably work
    // The former does not work in modules I guess.
    // https://sol2.readthedocs.io/en/latest/api/stack.html?highlight=stack#stack-get-usertype
    HWND hwnd2 = static_cast<HWND>(reinterpret_cast<std::uintptr_t>(sol::stack::get_usertype<LuaWindowHandle*>(L, 1)));

    // Some test prints
    std::cout << hwnd1 << std::endl;
    std::cout << hwnd2 << std::endl;

    int state = luaL_checkinteger(L, 2);
    // Just a mock to see that it works
    windows[hwnd1]->state = state;
    return 0;
}

// Your program
int main() {
    // Set up lua
    sol::state lua;
    lua.open_libraries();

    // Set up functions and methods
    lua["SetWindowZenMode"] = SetWindowZenMode;
    lua.new_usertype<LuaWindowHandle>("HWND");
    auto ut = lua.new_usertype<Window>("WindowClass");
    ut["GetHandle"] = [](Window& w) { return (LuaWindowHandle*)w.GetHandle(); };

    // Test the code
    Window w;
    windows[w.value] = &w;
    std::cout << w.value << std::endl;
    lua["w"] = &w;
    lua.script("print('metatables:', w, w:GetHandle())"); // You can easily see the metatable names by printing the values
    std::cout << "state before: " << w.state << std::endl;
    lua.script("SetWindowZenMode(w:GetHandle(), 42)");
    std::cout << "state after: " << w.state << std::endl;

    return 0;
}

You may also be interested in lightuserdata
https://sol2.readthedocs.io/en/latest/api/user.html?highlight=light
https://www.lua.org/pil/28.5.html
They are just void* pointers that you can pass around through lua. But they provide no typesafety or metatables and thus no methods either.

Since you are making a module, which I guess is a DLL or SO or similar, take a look at this:
integrating into existing code
https://sol2.readthedocs.io/en/latest/tutorial/existing.html

It did not occur to me that sol might actually be able to handle void*. I am using this now and it works great.
I don't expect I will actually need to expose any C++ classes to a Lua module. I can't think of any reason it would be necessary.
Thanks for your help.


Creating Asset

While creating an asset, in the description field I filled in the following description "'@#$ - Thamar - '@#$", or something like that. I think that did kill the chain.
Sorry :-)
Found the following in the logs:
db1      | STATEMENT:  insert into "asset" ("tid", "name", "timestamp", "desc", "maximum", "precision", "quantity", "issuerId", "_version_") values ('b73aad548a70d6c7724452059c0c594036989ae05be2ff12815c96e1fee42b49', 'thamar.THMR', 67715841, '&!@#' - Thamar tést coin - &!@#'', '50000000000000000', 8, '0', 'G2oyuwFiRQvd3QvXQtxMnYf4br5rb', 1);

This should give you enough info.

This bug can be fixed with the RegExp /^([A-Za-z]+ )+[A-Za-z]+$|^[A-Za-z]+$/

This RegExp must be used with a check for null or undefined

Unfortunately RegExp is casting all input to strings. Therefore in a node.js REPL:
> /^([A-Za-z]+ )+[A-Za-z]+$|^[A-Za-z]+$/.test(undefined);
> true // because undefined gets casted as a string
> /^([A-Za-z]+ )+[A-Za-z]+$|^[A-Za-z]+$/.test(null);
> true // because  null gets casted to a string

This bug can be fixed with the RegExp /^([A-Za-z]+ )+[A-Za-z]+$|^[A-Za-z]+$/

This RegExp must be used with a check for null or undefined

Unfortunately RegExp is casting all input to strings. Therefore in a node.js REPL:
> /^([A-Za-z]+ )+[A-Za-z]+$|^[A-Za-z]+$/.test(undefined);
> true // because undefined gets casted as a string
> /^([A-Za-z]+ )+[A-Za-z]+$|^[A-Za-z]+$/.test(null);
> true // because  null gets casted to a string

Closed with PR: #63
Thanks @ThamarD for reporting!

Closed with PR: #63
Thanks @ThamarD for reporting!


Normalize feature permissions in an intetermediate stage before copying them to the final container

Resolves #153.
Since the underlying problem was that the permissions for features sources became corrupted and invalidated the cache, I added a new build stage that serves only to COPY the features sources and chmod them to 0600. This way, by the time the actual work of installing the features is performed the permissions will have been normalized, allowing subsequent runs to use the install layers as cache.
I tested this manually by

Building a devcontainer image with this version of the CLI and pushing it to Docker Hub
Clearing the buildkit cache (docker buildx prune -af)
docker pulling the built image back onto my machine from Docker Hub
Building the same image with the release version of the CLI and a --cache-from on the image from Docker Hub, to validate that the cache is not used by the release version. I canceled this build before it could finish, once it was clear the cache was not being used.
Building the image with a --cache-from again, but using this version of the CLI (the cache was used successfully)

This might be worth adding to tests, but it'd be a bit awkward -- you'd have to basically recreate the process above and then run regexes on the output to see if you got a cache hit. I can take a crack at that, if that's a blocker for merging.
Side note: in case anybody's curious why I used an additional stage instead of simply adding a RUN chmod -R 0600 /tmp/build-features after the COPY, it's because you don't get the cache without the extra stage -- BuildKit is apparently smart enough to identify when two contexts are equal, but doesn't seem to have the same capability at the individual layer level. This demo shows this in action.

@microsoft-github-policy-service agree [company="Weights and Biases"]

@microsoft-github-policy-service agree company="Weights and Biases"

Hey! Sorry for the delay but it does look ok to me!

Thank you! Would you mind merging it for me?

@chrmarti wanted to take a quick look now that he is back.  This look good Christof?


add cacheable ParquetResponseEmptyError in first-rows-from-parquet

Part of https://github.com/huggingface/datasets-server/issues/1443
Currently, we have { _id: { cause: 'ParquetResponseEmptyError' }, count: 303 }, records in cache collection with UnexpectedError because of ParquetResponseEmptyError.
Actually, we have two definitions of ParquetResponseEmptyError: one in parquet_utils.py https://github.com/huggingface/datasets-server/blob/main/libs/libcommon/src/libcommon/parquet_utils.py#L29 and another in https://github.com/huggingface/datasets-server/blob/main/libs/libcommon/src/libcommon/exceptions.py#L424.
SplitFirstRowsFromParquetJobRunner should throw the cacheable version of ParquetResponseEmptyError but currently it is not handling the noncacheable exception leading to an UnexpectedError.
After this PR, I will refresh the cache of the 303 records.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (67459d2) 90.45% compared to head (194867a) 87.45%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2101      +/-   ##
==========================================
- Coverage   90.45%   87.45%   -3.01%
==========================================
  Files         248      118     -130
  Lines       15204     4447   -10757
==========================================
- Hits        13753     3889    -9864
+ Misses       1451      558     -893

Flag
Coverage Δ

jobs_cache_maintenance
95.33% <ø> (+0.03%)
:arrow_up:

jobs_mongodb_migration
86.69% <ø> (ø)

libs_libcommon
?

services_admin
86.56% <ø> (-1.08%)
:arrow_down:

services_api
87.09% <ø> (ø)

services_rows
85.49% <ø> (ø)

services_search
80.48% <ø> (ø)

services_sse-api
94.21% <ø> (ø)

services_worker
?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


snowflake_share share only can share in same region

Terraform CLI and Provider Versions
Terraform: 1.7
Provider: 0.87
Terraform Configuration
resource "snowflake_share" "SHARE_OUTBOUND" {
  name     = "SHARE__OUTBOUND"
  comment  = "We are using this to share data back"
  accounts = ["xx.SANDBOX","xxx.ABI"]
}
where the accounts are in a different region, you can do that in the interface without creating manual replication, but from the terrafrom, we cannot setup a share with an account in a different region.

Expected Behavior
like the UI, we should be able to share with different regions and snowflake builds the replication behind the sene
Actual Behavior
getting this error message: Following accounts cannot be added to this share: xxx.SANDBOX, xxx.ABI.
Steps to Reproduce

terraform apply

How much impact is this issue causing?
High
Logs
No response
Additional Information
It is blocking us from moving forward and we are stuck

Hey @baabaakz. Thanks for reaching out to us.

Our provider is following the docs for SHARE creation (i.e. https://docs.snowflake.com/en/sql-reference/sql/create-share and https://docs.snowflake.com/en/sql-reference/sql/alter-share). I don't see any usage note stating that something else has to be done to share for different regions. I do see a warning about the availability but I assume you verified that first with Snowflake Support. Can you share the set of all SQL statements you run to achieve the desired state manually without the terraform?
Please share the logs of the invocation by running terraform with the TF_LOG=DEBUG enabled. If there is any sensitive data (e.g. you marked org with xs) you do not want to share, please reach out to your account manager and ask them to pass the logs to our team (or myself directly).

Hey @bob-zarkoob, did you happen to take look on the questions above?

@sfc-gh-asawicki 👋,
Sorry I forgot to reply. What I am trying to do is explained here:
https://other-docs.snowflake.com/en/collaboration/provider-listings-creating-publishing#:~:text=Create a free private listing¶
the part that I have issue with is the section 12 of the "Create a free private listing".
I can add more details if required.

Closing because of inactivity. Please create a new issue with the details enquired above.

Hi, I have been trying to test this out and it failed, when I looked at the query history I see this:
GRANT REFERENCE_USAGE ON DATABASE "TEMP_XX_SNOWFLAKE_SECURE_SHARE_1_1724695515" TO SHARE "XX_SNOWFLAKE_SECURE_SHARE_1"
Operation not allowed for share 'XXX_OUTBOUND_SNOWFLAKE_SECURE_SHARE_1', which is attached to auto-fulfillment enabled listing.

Hey @bob-zarkoob.
The error you mention now is related to the old code (https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/c1b53f3c6472467e675cd137671c48f27432646c/pkg/resources/share.go#L96), which will soon be reworked as part of https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/v1-preparations/REMAINING_GA_OBJECTS.MD.
As the current alternative, you can use https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/unsafe_execute.