Python bindings build accesses internet: Failed to establish a new connection: [Errno 8] Name does not resolve')': /simple/ortools/

What version of OR-tools and what language are you using?
Version: 8.1
Language: Python
What operating system (Linux, Windows, ...) and version?
FreeBSD 12.2
It builds with internet connection, but fails without it:
[414/414] cd /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1 && /usr/local/bin/python3.7 -m venv /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv && /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv/bin/python -m pip install --find-links=/wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/dist ortools && /usr/local/bin/cmake -E copy /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/test.py.in /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv/test.py
FAILED: CMakeFiles/python_package.util python/venv
cd /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1 && /usr/local/bin/python3.7 -m venv /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv && /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv/bin/python -m pip install --find-links=/wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/dist ortools && /usr/local/bin/cmake -E copy /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/test.py.in /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv/test.py
Looking in links: /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/dist
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x802fa2b10>: Failed to establish a new connection: [Errno 8] Name does not resolve')': /simple/ortools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x802fc4810>: Failed to establish a new connection: [Errno 8] Name does not resolve')': /simple/ortools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x802ff0350>: Failed to establish a new connection: [Errno 8] Name does not resolve')': /simple/ortools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x802ff0510>: Failed to establish a new connection: [Errno 8] Name does not resolve')': /simple/ortools/

My guess is python/venv/bin/python -m pip install --find-links=/wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/dist ortools still check pypi.org :thinking:
@yurivict could you try to run by hand each part of the command to be sure which one is responsible for the issue
cd /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1
/usr/local/bin/python3.7 -m venv /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv
/wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv/bin/python -m pip install --find-links=/wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/dist ortools
/usr/local/bin/cmake -E copy /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/test.py.in /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv/test.py

[yuri@yv /usr/ports/math/py-or-tools/work-py37/or-tools-8.1]$ /usr/local/bin/python3.7 -m venv /wrkdirs/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv
Error: [Errno 13] Permission denied: '/wrkdirs'
[yuri@yv /usr/ports/math/py-or-tools/work-py37/or-tools-8.1]$ /usr/local/bin/python3.7 -m venv /usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv

[yuri@yv /usr/ports/math/py-or-tools/work-py37/or-tools-8.1]$
[yuri@yv /usr/ports/math/py-or-tools/work-py37/or-tools-8.1]$ /usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv/bin/python -m pip install --find-links=/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/dist ortools
Looking in links: /usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/dist
WARNING: Url '/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/dist' is ignored. It is either a non-existing path or lacks a specific scheme.
ERROR: Could not find a version that satisfies the requirement ortools (from versions: none)
ERROR: No matching distribution found for ortools
WARNING: Url '/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/dist' is ignored. It is either a non-existing path or lacks a specific scheme.
WARNING: You are using pip version 20.1.1; however, version 20.3.3 is available.
You should consider upgrading via the '/usr/ports/math/py-or-tools/work-py37/or-tools-8.1/python/venv/bin/python -m pip install --upgrade pip' command.

Version 7.7 didn't have such problem.

strange, maybe add a --no-index here:
https://github.com/google/or-tools/blob/687bdd636a93656a8ca27b759f7121600e8a0809/cmake/python.cmake#L209
ref: https://pip.pypa.io/en/latest/reference/pip_install/#cmdoption-no-index

It fails to find the package:
ERROR: Could not find a version that satisfies the requirement absl-py>=0.11 (from ortools) (from versions: none)
ERROR: No matching distribution found for absl-py>=0.11 (from ortools)

despite it being installed:
$ pkg info | grep absl-py
py37-absl-py-0.11.0            Abseil Python Common Libraries

I have to apply this patch to make it build w/out internet access:
--- ortools/python/setup.py.in.orig	2020-12-30 17:40:00 UTC
+++ ortools/python/setup.py.in
@@ -42,8 +42,8 @@ setup(
     version='@PROJECT_VERSION@',
     packages=find_packages(),
     install_requires=[
-        'protobuf >= 3.14.0',
-        'absl-py >= 0.11',
+        #'protobuf >= 3.14.0',
+        #'absl-py >= 0.11',
     ],
     package_data={
         '@PROJECT_NAME@':[$<$<NOT:$<PLATFORM_ID:Windows>>:'.libs/*', '../$<TARGET_SONAME_FILE_NAME:ortools>'>],
--- tools/setup.py.in.orig	2020-12-09 16:30:21 UTC
+++ tools/setup.py.in
@@ -42,8 +42,8 @@ setup(
     version='VVVV',
     packages=find_packages(),
     install_requires=[
-        'protobuf >= 3.14.0',
-        'absl-py >= 0.11',
+        #'protobuf >= 3.14.0',
+        #'absl-py >= 0.11',
     ],
     package_data={
         'ortools.constraint_solver' : ['_pywrapcp.dll', '*.pyi'],

It was the same way before 8.1, so this isn't a regression.

Building without internet access is not (won't be)  a goal.
I'm happy you find a way to hack it !


[BUG] Prepend class number to the attached file, instead of the identifier.

Description
Attached files are not downloaded by putting the class number in front of the chapter to which it belongs (as it does with videos); only a strange ID is prepended to the filename, but nothing that relates it to the class, where it was added by the instructor.
Expected behavior
It would be nice if the script, rename the attachments to something like this:
001 Videoclass1.mp4
001 attached file.zip
002 Videoclass2.mp4
002 iampdf.pdf
...
**Desktop:
OS: [Windows 10, Linux Centos 8.5 Stream]
Python: [v3.9.1, v3.6.8]

Give the new commit a try (60eee56233fa89e012d6598862c7ef6ed55ea45e)

Give the new commit a try (60eee56)

You just removed the ID, the class number would be nice, preceded by the file name. I repeat the example:
001 Videoclass1.mp4
001 attached file.zip
002 Videoclass2.mp4
002 iampdf.pdf

Ah, my bad, I understand what you are saying now.

Alright, Lecture ids are prepended to asset names now in commit b26c8f4b5b8aca62538172928619c3f65abeb238


Talon ID cannot be 99

https://github.com/KSHS-Robotics-Club/BasicFRCJava/blob/f22c4f2640d164c2cebc4a6eb853c8b4cc8164b6/src/main/java/frc/robot/Robot.java#L29C19-L29C26
Talon ID must be within [0,62].  Tuner X also does not let you set it to 99.

I know we don't have a robot at this point so I have it set to 99 so people know it needs to be updated


feat(#740): Add hints for local bruno setup

Fixes: #740

Custom error when opening bruno in the browser

Custom error when starting electron without the web server running

Force Next dev server to use port 3000

Added -p 3000 to next dev command

This is cool! You just saved a lot of future github issues :P
Thanks @Its-treason !


Proposal for (epoch) rewards on execution/consensus split architecture

OP stack is adhering to the execution/consensus split from Ethereum after the merge with op-geth handling execution and op-node taking care of consensus.
We need to create a proposal for the epoch rewards in this new environment.

duplicate of #19


Feature/chapter user progress

Fixes #448

much better :-) great
Ah you haven't tested the user chapter view when observing a user :-( ? It seems it does not work.

I could not test it either, I tried to watch this user and go to a chapter of one of his groups
But the backend call responds 403: insufficient access rights


Feedback for: engine/reference/commandline/images.md

File: engine/reference/commandline/images.md
There are no longer references to the Go template format of docker images.

See https://docs.docker.com/engine/reference/commandline/images/#filtering


Feedback form after purchase

Feedback form

When an order is rejected or completed, the buyer should be presented with a feedback form to evaluate the seller.
The evaluation consists of:

Rating stars ?/5
Comment for seller
Report button -> takes you to a report page (since we don't have one for now, it can redirect to the Contact Us form page)

The form can be accessed later from the "My orders" page (implemented in #68)

Design 1
Design 2


Intellisense Suggestion Methods/Properties While Implementing Interface

Issue Description
Intellisense do not show methods and properties which we should implement when we had inherited from an interface.
Steps to Reproduce

Create new dotnet project
Define an interface with any property or methods
Define an class which is an implementation from our interface
Try to override method with it's name (Press CTRL + SPACE)

Expected Behavior
Show methods and properties should implement from our interface.
Actual Behavior
No suggestion!
This behavior also appears in abstract class fields.
Logs
OmniSharp log
[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 10.0.19043.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
[info]: OmniSharp.Services.DotNetCliService
        Using the 'dotnet' on the PATH.
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: .NET Core SDK 6.0.402 17.3.2 - "C:\Program Files\dotnet\sdk\6.0.402\"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: .NET Core SDK 6.0.402 17.3.2 - "C:\Program Files\dotnet\sdk\6.0.402\"
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectSystem
        No solution files found in 'd:\dev\.NET\InterfaceTesting'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'd:\dev\.NET\InterfaceTesting\InterfaceTesting.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'd:\dev\.NET\InterfaceTesting'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Did not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'd:\dev\.NET\InterfaceTesting' on host 7584.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: d:\dev\.NET\InterfaceTesting\InterfaceTesting.csproj
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file 'd:\dev\.NET\InterfaceTesting\InterfaceTesting.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project 'd:\dev\.NET\InterfaceTesting\InterfaceTesting.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Update project: InterfaceTesting
Received response for /v2/getcodeactions but could not find request.
Received response for /v2/getcodeactions but could not find request.
Received response for /v2/getcodeactions but could not find request.
Received response for /v2/getcodeactions but could not find request.
Received response for /completion/resolve but could not find request.
Received response for /v2/getcodeactions but could not find request.
Received response for /v2/getcodeactions but could not find request.
Received response for /v2/getcodeactions but could not find request.
Received response for /completion/resolve but could not find request.
Received response for /quickinfo but could not find request.
[warn]: OmniSharp.Roslyn.CSharp.Services.Navigation.FindUsagesService
        No symbol found. File: d:\dev\.NET\InterfaceTesting\Program.cs, Line: 10, Column: 15.
Received response for /completion/resolve but could not find request.
C# log
Post the output from Output-->C# here
Environment information
VSCode version: 1.72.2
C# Extension: 1.25.0
Dotnet Information
.NET SDK (reflecting any global.json):
 Version:   6.0.402
 Commit:<PHONE_NUMBER>
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.19043
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\6.0.402\
global.json file:
Not found
Host:
Version:      6.0.10
Architecture: x64
Commit:       5a400c212a
.NET SDKs installed:
6.0.402 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Download .NET:
https://aka.ms/dotnet-download
Learn about .NET Runtimes and SDKs:
https://aka.ms/dotnet/runtimes-sdk-info

Visual Studio Code Extensions

Extension
Author
Version

csharp
ms-dotnettools
1.25.0

es7-react-js-snippets
dsznajder
4.4.3

git-graph
mhutchie
1.30.0

hexeditor
ms-vscode
1.9.9

powershell
ms-vscode
2022.8.5

prettier-vscode
esbenp
9.9.0

theme-dracula
dracula-theme
2.24.2

We would need this to be supported by Roslyn.  Tracking issue in roslyn - https://github.com/dotnet/roslyn/issues/63872
Closing as external


Problem with GetServerSideProps and ServerSideTranslations

I am using getServerSideProps instead of getStaticProps on my page. When using it in a dev server it works, but when I deploy in Vercel that page gives me 500: internal server error.
Versions:
i18nexus-cli: "^2.0.2"
next: "12.0.3"
next-i18next: "^10.0.1"
react: "17.0.2"
THIS CODE WORKS IN MY PROJECT

THIS CODE NOT WORK

NOTE: I need to use getServerSideProps because I have dynamic routes (/example/[id])
Here my "next-i18next.config":

Any recommendation or configuration to be able to use getServerSideProps? Thanks.

Duplicate of #1552, and many others before it.

Thanks for help. It worked for me!


Overall Editorial Theme

Hi @brudgers  I missed out on your comment on my HN post, and now there is no way to contact you. The editorial theme I have mentioned in the readme document here, is there more information required on that?
What prompted writing this book:
While learning web dev with Go it was very difficult to understand real life examples, most of all the tutorials/books I read gave some ridiculously simple examples and then somehow expect the total newbie to understand all the complicated logic that goes with an actual real life webapp.
Also PRs are welcome!

Updated wiki pages, https://github.com/thewhitetulip/web-dev-golang-anti-textbook/wiki/

@brudgers Updated wiki pages

Sorry I missed your notification. I don't use Github very often currently. I tend to use bitbucket because of the free private repositories (which meets a couple of my typical use cases: academic class work and confidential projects). However, there is an email in my Hacker News profile. I would be happy to chat. Ben

I didn't find an email in your HN profile!

It's not in there directly...it's the 'now with gmail'. Sorry about the confusion. Ben

I emailed your username at gmail.com. I hope it is the correct email!

It's my full name.

Okay :+1:

I emailed you yesterday.


Filesystem rule logic, archetype refactor, remote config server

:tada: This PR is included in version 1.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Create toolbar

Check with Leticia where to find and place icons (same approach as mongo modeler).
Place the options (check mocks ui)
Reuse controls defined in Mongo Modeler.
When clicking on every option just display a console log with the name of the option

Duplicated


It creates a nice graphical representation of even a larger JSON File

It took me a moment to understand how to actually do something with it - but when I got my JSON file (>250kB Text) opened in it, it actually presented very quickly a nice Object diagram of it.
I have yet not found any way to get the graphical representation out, so one could make use of it, but the representation is nice.
An export possibility to some Image, SVG  or PDF format would be on my wishlist

Currently one can download the representation in the form of images with support for svg, png and jpeg. svg export may be a little buggy. And not sure whether pdf exports would make sense for the representation.
Hence closing this issue for now. But if there is still any interest for pdf export maybe another issue can be created later on.


Can't open file not ending with ".db"

If the db file is ending with ".db", the plugin performs correctly.
But if it isn't, AS won't open the file automatically when u double click it.

@gitofleonardo any idea on how to fix this? my db file ends with .sqlite

If you have Kotlin, you can change this line from db to sqlite and build the project.
However, I decided to use an external application instead.


integration with ASP.NET Core MVC not working

Actual behaviour
I am using DatePicker in a input control that is binding to model using asp-for tag helper but that date after selecting, often times not going to the POST result in the code after I press submit button
Datepicker version used
1.9.0.
Example code
Jsfiddle example to reproduce the problem.

I am able to solve the problem by changing the format option.

How did you able to solve your issue? I am facing with the format option now. Here is the link: https://github.com/uxsolutions/bootstrap-datepicker/issues/2648


Unpack id when populating all calendar list

To address #313: lack of ID field populating in "all calendar" request.  I included fall-back in case the URL isn't as I expect.

Sorry, I forgot about this one


debug module with dynamic behavior (enable/disable in runtime)

Hi, I've sent a PR to the debug module project adding the capability of dynamic debug instances that can be enabled/disabled in runtime (this is, without having to restart the application):

https://github.com/visionmedia/debug/pull/209

I expect this to be also useful for express applications, so I wonder if you could provide some feedback on the PR :)

I am pretty indifferent, as we'll use whatever the default we get (i.e. we'll only ever use the require('debug')('<name') method unless we can't any more. If this requires us to pass in a new option, then we'd pass, because the only way we could promote this well would be a massive updating of all our dependents.


feat: rewrite archive

fixes #124

@Kidswiss can you have a look at this PR when you a minute, please? I'm not entirely happy with it, so I'd really appreciate your feedback

Haven't tested it yet, but looks more or less like the other job implementations. I think the parts you're not happy about are the same that Michael already mentioned, correct?

@Kidswiss not really, the parts I'm not that happy with are more the parts I added from the other branch that I'm not sure if that was needed. For example: BuildTagArgs or the setupEnvVars

I actually assume that the tag handling got lost while I implemented the backup case. So it should be there actually. I'd even say it should be already handled in the GetGenericJob() method as all the jobs can accept a list of tags.
As for the envVars: It looks good, but looking through the code I found an issue.  Archive (and restore for that matter) may need two sets of S3 credentials:

for the backup location
for the restore location

You only call RestoreMethod.S3.EnvVars() so that will only create the one set of the S3 credentials. But the bigger issue I found is that RestoreMethod.S3.EnvVars() will produced the same set of envVars as Backend.S3.EnvVars() would. Which would overwrite the other set. RestoreMethod.S3.EnvVars() should create envVars named like:
RESTORE_S3ENDPOINT
RESTORE_ACCESSKEYID
RESTORE_SECRETACCESSKEY
RESTORE_DIR # this one would be used for the restore/archive restoreMethod folder

See https://github.com/vshn/wrestic/blob/master/restic/restic.go#L37
and for the restore method: https://github.com/vshn/k8up/blob/master/apis/backup/v1alpha1/restore.go#L36
So it needs to check if the restore method is folder or s3. If it's S3 set above envVars.
I hope it's somewhat clear what I'm trying to say :) if not we can do a zoom call.


WebExtension - New tab moves to the beginning of the visible tab bar

I'm testing the new beta and opening a new tab has the effect of moving the tab bar to the first position of the new tab.
For example, let's say tab 12 is the active tab:
| tab 10 | tab 11 | tab 12 (active) | tab 13 | tab 14... 30 |
If I open a new tab, then the tab bar becomes:
| tab 13 (new tab) | tab 14 | tab 15 | tab 16 | tab 17... 30 |
I much prefer the older XUL method of the tabbar not moving:
| tab 10 | tab 11 | tab 12 | tab 13 (new tab) | tab 14 | tab 15... 30 |
This is probably a limitation of the new WebExtension API, but thought I'd post an issue about this.

There is and was nothing that I actively do about the positioning of the tabbar. I only move the tab once it's opened. I assume the webextension API kicks in a little later so the tab is actually opened at the end, so the tabbar is moved to the end and when I move the tab, it's scrolled back enough so the tab stays visible. The only thing I could do is moving it before tab 10 in your example and then move it to the final place, but it would be more guesswork than anything else, there is nothing to control the tabbar position directly. BTW, I don't have this problem because I set up my tabs so they are always visible and shrink like they do in Chrome. Having not all my tabs visible would be very annoying for me...

BTW, I don't have this problem because I set up my tabs so they are always visible and shrink like they do in Chrome. Having not all my tabs visible would be very annoying for me...

This wouldn't work for me since I have ~100 tabs in my current window :sweat_smile:
I think I might have to stick with Firefox 56 just so I can keep using the XUL version of your addon.

The new version just went through review, if you want to keep the old one, you'll have to disable automatic updates.

I have this problem exactly, when I have many tabs.
Open Tabs Next to Current 2.0.2
Firefox 53.0.2 (64-bit)
I don't have this problem with tab-deque v1.1.5


Update mrtk-porting-guide.md

 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: ms738 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Docs Build status updates of commit 20449b2:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/mrtk-porting-guide.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit 608c754:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/mrtk-porting-guide.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Whether LLVM JIT mode supports invoking the export function with results or not

I have a binary wasm file with a return value. When I execute it using 'iwasm filea2.wasm --heap-size=0 -f main --llvm-jit', the result is as follows:
[06:52:18:872 - 7F5B183DB740]: WASM execute application failed: invalid main function type.

Exception: invalid function type of main function

Please try iwasm --heap-size=0 -f main --llvm-jit file2.wasm

I have tested this , but the result is :

I have tried placing file2.wasm in every possible location, but each attempt resulted in an issue. @lum1n0us

Guess you are using a self-building iwasm and it is compiled with interpreter only option. In that case, --llvm-jit is not necessary.
The root cause of the original problem, invalid function type of main function, is putting iwasm command options, --heap-size=0 -f main --llvm-jit in your case, behind the Wasm file path, filea2.wasm in your case, which tells that those options are for the Wasm file.
To be exactly,
iwasm filea2.wasm --heap-size=0 -f main --llvm-jit means running file2.wasm. --heap-size=0 -f main --llvm-jit are options for filea2.wasm.
It should be
iwasm --heap-size=0 -f main --llvm-jit filea2.wasm. --heap-size=0 -f main --llvm-jit are options  for iwasm.


npm install - no such package available : @types/express

I just git clone the repo and do npm install
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/pengkiat/.nvm/versions/node/v6.9.2/bin/node" "/Users/pengkiat/.nvm/versions/node/v6.9.2/bin/npm" "install"
npm ERR! node v6.9.2
npm ERR! npm  v3.10.9
npm ERR! code E404
npm ERR! 404 no such package available : @types/express
npm ERR! 404
npm ERR! 404  '@types/express' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'feathers'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/pengkiat/chatserver/projectee/npm-debug.log

manage to fix it myself. previously i connect to my own sinopia repository
i not sure what is happen, after i changed to registry=https://registry.npmjs.org/ it works pefectly


Update Composer dependencies (2024-04-24-00-05)

Visual regression test passed!
View the visual regression test report


Import from TeslaFi Does Not Appear to do Anything?

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
Downloaded a years worth of TeslaFi csvs.
Copied them to the docker container, in a 'temp folder.
Stopped Teslamate container
Copied the files into the ./import directory.
Started the Teslamate container.
Expected Behavior
The documentation says to navigate to the /admin page of Teslamate and there will be an import screen, detailing  the files.
Steps To Reproduce
Download TeslaFi csvs.
Copied to the docker container, in a 'temp folder.
Stopped Teslamate container
Copied the files into the ./import directory.
Start the Teslamate container.
Relevant log output
2, soc: 81, elevation: 25, est_heading: 41, est_lat: 56.051043, est_lng: -4.532245, power: 2, shift_state: "R", range: 211, est_range: 166, heading: 221}
teslamate-1  | 2024-01-11 16:17:23.115 car_id=1 [info] Driving / Start
teslamate-1  | 2024-01-11 16:27:22.411 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (180.853 ms)
teslamate-1  | 2024-01-11 16:27:22.903 [info] GET https://nominatim.openstreetmap.org/reverse -> 200 (488.411 ms)
teslamate-1  | 2024-01-11 16:27:22.917 [info] End of drive initiated by: %TeslaApi.Vehicle.State.Drive{gps_as_of:<PHONE_NUMBER>, heading: 84, latitude: 56.063771, longitude: -4.450848, native_latitude: 56.063771, native_location_supported: 1, native_longitude: -4.450848, native_type: "wgs", power: 2, shift_state: "P", speed: 0, timestamp:<PHONE_NUMBER>149}
teslamate-1  | 2024-01-11 16:27:22.917 car_id=1 [info] Driving / Ended / 7 km – 10 min
teslamate-1  | 2024-01-11 16:27:22.917 car_id=1 [info] Start / :online
teslamate-1  | 2024-01-11 16:28:57.911 car_id=1 [info] Received stream data: :inactive
teslamate-1  | 2024-01-11 16:30:39.430 [info] GET https://owner-api.teslamotors.com/api/1/vehicles/929640529449945/vehicle_data -> 408 (73.107 ms)
teslamate-1  | 2024-01-11 16:30:49.583 car_id=1 [info] Start / :asleep
teslamate-1  | 2024-01-11 16:30:49.589 car_id=1 [info] Disconnecting ...
teslamate-1  | 2024-01-11 16:57:27.989 [info] GET /geo-fences/new
teslamate-1  | 2024-01-11 16:57:27.994 [info] Sent 200 in 4ms
teslamate-1  | 2024-01-11 16:58:09.468 [info] GET /geo-fences/new
teslamate-1  | 2024-01-11 16:58:09.473 [info] Sent 200 in 4ms
teslamate-1  | 2024-01-11 17:00:58.941 [notice] SIGTERM received - shutting down
teslamate-1  |
teslamate-1  | 2024-01-11 17:01:44.159 [info] Migrations already up
teslamate-1  | 2024-01-11 17:01:46.897 [info] System Info: Erlang/OTP 26 (jit)
teslamate-1  | 2024-01-11 17:01:46.897 [info] Version: 1.28.2
teslamate-1  | 2024-01-11 17:01:47.746 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (807.845 ms)
teslamate-1  | 2024-01-11 17:01:47.746 [info] Refreshed api tokens
teslamate-1  | 2024-01-11 17:01:47.752 [info] Scheduling token refresh in 6 h
teslamate-1  | 2024-01-11 17:01:47.754 [info] Running TeslaMateWeb.Endpoint with cowboy 2.10.0 at :::4000 (http)
teslamate-1  | 2024-01-11 17:01:47.756 [info] Access TeslaMateWeb.Endpoint at http://localhost
teslamate-1  | 2024-01-11 17:01:47.909 [info] Starting logger for 'Williams'
teslamate-1  | 2024-01-11 17:01:47.920 [info] MQTT connection has been established
teslamate-1  | 2024-01-11 17:01:47.992 [info] GET /
teslamate-1  | 2024-01-11 17:01:48.003 car_id=1 [info] Start / :asleep
teslamate-1  | 2024-01-11 17:01:48.011 [info] Sent 200 in 18ms
teslamate-1  | 2024-01-11 17:01:48.103 [info] GET /geo-fences
teslamate-1  | 2024-01-11 17:01:48.107 [info] Sent 200 in 4ms
teslamate-1  | 2024-01-11 17:01:53.009 [info] GET /geo-fences
teslamate-1  | 2024-01-11 17:01:53.013 [info] Sent 200 in 3ms

Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
1.28.2

You say

Copied them to the docker container, in a 'temp folder.

and then

Copied the files into the ./import directory.

but the instructions say to "Copy the exported CSV files into a directory named import next to the docker-compose.yml".  That is on the docker host, not in the docker container.  It gets mounted in the container by docker.
If that's not enough to solve it, then the output of:
docker exec teslamate-1 ls -la import

would be useful (replace teslamate-1 with the name of the TeslaMate container).

It's not explicitly called out, which is annoying, but you look at the filenames in the example in the docs and see they're all prefixed with "TeslaFi". If you rename your files by adding that prefix, but leave the rest of the filename as is, it should work.
However...you will likely need to edit every single line in your csv files to change the 5th field, "car id" I think, to a value of 1 to get them to import properly.
So, two tasks to import:

Rename all files to add TeslaFi as a prefix
Add car id of 1 to field 5 in all rows of all csvs.
Note: DO NOT let excel modify the date format of the date fields or it'll also fail. Excel will do this automatically. I do not know how to prevent it. I used a text editor and regex to handle my car id field.

Thanks damccull, it now recognises that there are files to import. The import fails with an invalid date format now though:
2024-01-16 10:06:46.647 [error] Task #PID<0.2591.0> started from TeslaMate.Import terminating
** (MatchError) no match of right hand side value: {:error, {:invalid_date_format, "30/12/2022 22:32"}}
(teslamate 1.28.2) lib/teslamate/import/line_parser.ex:80: TeslaMate.Import.LineParser.into_vehicle/3
(stdlib 5.1.1) maps.erl:416: :maps.fold_1/4
(teslamate 1.28.2) lib/teslamate/import/line_parser.ex:20: TeslaMate.Import.LineParser.parse/2
(elixir 1.15.7) lib/task/supervised.ex:101: Task.Supervised.invoke_mfa/2
(elixir 1.15.7) lib/task/supervised.ex:36: Task.Supervised.reply/4
Function: &:erlang.apply/2
Args: [#Function<7.111590375/1 in TeslaMate.Import.create_event_streams/2>, [%{"charge_energy_added" => "", "outside_temp" => "", "elevation" => "", "rear_seat_heaters" => "", "fan_status" => "", "scheduled_charging_start_time" => "", "spoiler_type" => "", "id" => "", "max_range_charge_counter" => "", "locked" => "", "gui_temperature_units" => "", "battery_range" => "", "vin" => "", "idleNumber" => "0", "calendar_enabled" => "", "rhd" => "", "rear_seat_type" => "", "heading" => "", "seat_heater_right" => "", "charger_phases" => "", "outside_tempF" => "", "rerunning" => "0", "trip_charging" => "", "fast_charger_present" => "", "car_type" => "", "calendar_supported" => "", "gui_distance_units" => "", "driver_temp_setting" => "", "gps_as_of" => "", "right_temp_direction" => "", "notifications_supported" => "", "sun_roof_installed" => "", "api_version" => "", "seat_heater_rear_right_back" => "", "charging_state" => "", "gui_range_display" => "", "remote_start_enabled" => "", "seat_heater_rear_left_back" => "", "ft" => "", "eu_vehicle" => "", "df" => "", "charge_current_request_max" => "", "is_front_defroster_on" => "", "gui_charge_rate_units" => "", "valet_mode" => "", "pf" => "", "running" => "0", ...}]]
2024-01-16 10:06:46.647 [error] Task #PID<0.2590.0> started from TeslaMate.Import terminating
** (MatchError) no match of right hand side value: {:error, {:invalid_date_format, "30/12/2022 22:21"}}
(teslamate 1.28.2) lib/teslamate/import/line_parser.ex:80: TeslaMate.Import.LineParser.into_vehicle/3
(stdlib 5.1.1) maps.erl:416: :maps.fold_1/4
(teslamate 1.28.2) lib/teslamate/import/line_parser.ex:20: TeslaMate.Import.LineParser.parse/2
(elixir 1.15.7) lib/task/supervised.ex:101: Task.Supervised.invoke_mfa/2
(elixir 1.15.7) lib/task/supervised.ex:36: Task.Supervised.reply/4
Function: &:erlang.apply/2
Args: [#Function<7.111590375/1 in TeslaMate.Import.create_event_streams/2>, [%{"charge_energy_added" => "", "outside_temp" => "", "elevation" => "", "rear_seat_heaters" => "", "fan_status" => "", "scheduled_charging_start_time" => "", "spoiler_type" => "", "id" => "", "max_range_charge_counter" => "", "locked" => "", "gui_temperature_units" => "", "battery_range" => "", "vin" => "", "idleNumber" => "0", "calendar_enabled" => "", "rhd" => "", "rear_seat_type" => "", "heading" => "", "seat_heater_right" => "", "charger_phases" => "", "outside_tempF" => "", "rerunning" => "0", "trip_charging" => "", "fast_charger_present" => "", "car_type" => "", "calendar_supported" => "", "gui_distance_units" => "", "driver_temp_setting" => "", "gps_as_of" => "", "right_temp_direction" => "", "notifications_supported" => "", "sun_roof_installed" => "", "api_version" => "", "seat_heater_rear_right_back" => "", "charging_state" => "", "gui_range_display" => "", "remote_start_enabled" => "", "seat_heater_rear_left_back" => "", "ft" => "", "eu_vehicle" => "", "df" => "", "charge_current_request_max" => "", "is_front_defroster_on" => "", "gui_charge_rate_units" => "", "valet_mode" => "", "pf" => "", "running" => "0", ...}]]
2024-01-16 10:06:46.651 [error] GenStateMachine TeslaMate.Import terminating
** (FunctionClauseError) no function clause matching in anonymous fn/1 in TeslaMate.Import.create_event_streams/2
(teslamate 1.28.2) anonymous fn({:exit, {{:badmatch, {:error, {:invalid_date_format, "30/12/2022 22:21"}}}, [{TeslaMate.Import.LineParser, :into_vehicle, 3, [file: ~c"lib/teslamate/import/line_parser.ex", line: 80]}, {:maps, :fold_1, 4, [file: ~c"maps.erl", line: 416]}, {TeslaMate.Import.LineParser, :parse, 2, [file: ~c"lib/teslamate/import/line_parser.ex", line: 20]}, {Task.Supervised, :invoke_mfa, 2, [file: ~c"lib/task/supervised.ex", line: 101]}, {Task.Supervised, :reply, 4, [file: ~c"lib/task/supervised.ex", line: 36]}]}}) in TeslaMate.Import.create_event_streams/2

That's almost guaranteed to be because you opened it in Excel to add the 1 to the car id column and saved it. Excel saves dates in it's own format which is not going to match what the files originally had. That's why I mentioned that I used a regex find and replace in a text editor to do mine. Explaining that is beyond my available time though... You will need to find a way to edit the csv file without using Excel, or a way to tell excel to leave the existing date columns intact.

thats kinda what i expected you to say... ive redownloaded and checked the format, all fields 'appear' to be in the same format...
then again, i am using Excel for both (shrug)

Open the raw csv in notepad or, better, vs code or another fancy editor instead of Excel. Excel will display the pretty date in the cell you see, but underneath converts it to an integer. It is likely the number of seconds since a specific time defined by Microsoft. Anyway, open a csv saved by Excel and the raw one from teslafi and look at the differences in the dates.
You can probably use any of the tons of free online or installed csv editors out there to do it though. Just Google "csv editor" and add "online" or your operating system.

Miller is your friend here... although that involved remembering how to drive it!
All sorted... thanks for the help.


fix: move references to amplitude key to after .env loading

Previously, the environment variable containing the amplitude API key was referenced before loading the .env file. This has been changed so that the key does not have to be set outside the .env file.

I also think that we should make this key entirely optional since people might want to deploy without using amplitude.
Created a linear issue.

idk if we want to initialize amplitude in each server call? probably only want to start it when the server starts

idk if we want to initialize amplitude in each server call? probably only want to start it when the server starts

I agree, but if we do it like now the server crashes if the env variable is not set since we try to access it before loading the .env file. So this is more of a hot fix for that.

What we could do instead is check for that env variable before initializing amplitude and only log things when it's set. This would also not log events when developing locally and might be the preferable option.

I changed the implementation to use a singleton object. This also checks if there is a tracking key at all.


CLI Improvements -> ARTEMIS-4384 and ARTEMIS-4384

this new cli command will verify if the topology is matchin on every cluster member.

@gemmellr I addressed all the changes.. thanks for your review


[FLINK-17520] [core] Extend CompositeTypeSerializerSnapshot to support migration

What is the purpose of the change
Previously, the abstraction provided by CompositeTypeSerializerSnapshot only allows a mismatch in the outer configuration of composite serializers to be resolved as incompatible (restore fails) or compatible (restore continues as is). The resolution logic is captured as a isOuterSnapshotCompatible method, returning a flag.
A requirement to additionally allow migration based on the outer configuration has came up in https://issues.apache.org/jira/browse/FLINK-16998.
This PR extends functionality of the abstraction by deprecating the old boolean isOuterSnapshotCompatible(serializer), in favor of a new OuterSchemaCompatibility resolveOuterSchemaCompatibility(serializer).
The change is backwards compatible - existing subclasses are not broken API / behaviour wise.
Brief change log

2454f70 Deprecates old method in favor of new resolveOuterSchemaCompatibility method
56f21c3 (not main change) Simplifies CompositeTypeSerializerSnapshotTest
43c1758 Adds new unit test to verify that migration due to outer snapshot is respected
1a2747b Remove all implementations of deprecated isOuterSnapshotCompatible in Flink
c91cdd3 Update docs

Verifying
Existing tests (e.g. subclasses of TypeSerializerUpgradeTestBase) should cover this change.
An additional unit test in CompositeTypeSerializerSnapshotTest was also added for this.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): NO
The public API, i.e., is any changed class annotated with @Public(Evolving): YES
The serializers: YES
The runtime per-record code paths (performance sensitive): NO
Anything that affects deployment or recovery: NO
The S3 file system connector: NO

Documentation

Does this pull request introduce a new feature? YES
If yes, how is the feature documented? DOCS + JAVADOCS

Thanks, did another test run and have passed, merging this now!


ODPI-5. Integrate Ambari packaging into Bigtop

This is initial patch, not for the immediate merge into odpi-master branch. I would appreciate if people can go ahead and use my ambari-integration branch to build and test the Ambari packaging. It could be done by running
./gradlew -Dbomfile=odpi.bom realclean ambari-pkg

to produce package for your platform. The build needs to have a development environment configured, which could be either achieved by running ./gradlew toolchain or by using official docker container as ODPI CI does. In both cases, Ambari build requires Maven 3.0.3 to be separately installed.

Any feedback?

@rvs Can you lead this work? Also curious if this should be done in upstream BigTop versus ODPi specifically.

Yesterday we've agreed that the next step for this PR is to be reviewed by the HDP Ambari team leads.
I'd be more than happy to coordinate an overall effort though to get this in.


Release 0.2.0

Hey @KaneCohen :),
can you make a v0.2.0 release?

@prisis done.
Not 0.2.0 though. I've added minor changes since last PR, so I've bumped version to 0.2.1.
Tag is v0.2.1

thx :)


[Servicebus] Improve span context propagation

When creating span links, this adds a fallback to check for Diagnostic-Id if for some reason traceparent doesn't exist when extracting trace context in message application properties.

API change check
API changes are not detected in this pull request.


[BUG] EventProcessorClient - Can't create session when the connection is closing.

I'm using EventProcessorClient in my service to monitor multiple EventHubs. I register error handler with my client using EventProcessorClient.ProcessErrorAsync += EventProcessor.ProcessErrorAsync;
In ProcessErrorAsync method, I print the content of ProcessErrorEventArgs errorEventArgs.
Occasionally, ProcessErrorAsync is invoked for a specific EventHub (different one every time). With exception message: "Can't create session when the connection is closing."
Once this exception occurs for one EventHub, it keeps happening periodically on that same EventHub.
I have not noticed any service degradation, and events seem to still be picked up and processed successfully but I'm not sure about this part since I don't have rigorous tests for my service yet.
Exception Details
Message
Can't create session when the connection is closing.
Operation
Reading events from the Event Hubs service.
Exception Call stack:
System.InvalidOperationException:
   at Azure.Messaging.EventHubs.Consumer.EventHubConsumerClient+<>c__DisplayClass46_0+<<PublishPartitionEventsToChannelAsync>g__performCleanup|0>d.MoveNext (Azure.Messaging.EventHubs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Messaging.EventHubs.Consumer.EventHubConsumerClient+<ReadEventsFromPartitionAsync>d__37.MoveNext (Azure.Messaging.EventHubs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Messaging.EventHubs.EventProcessorClient+<>c__DisplayClass94_0+<<RunPartitionProcessingAsync>b__0>d.MoveNext (Azure.Messaging.EventHubs.Processor, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Messaging.EventHubs.EventProcessorClient+<>c__DisplayClass94_0+<<RunPartitionProcessingAsync>b__0>d.MoveNext (Azure.Messaging.EventHubs.Processor, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Messaging.EventHubs.EventProcessorClient+<>c__DisplayClass94_0+<<RunPartitionProcessingAsync>b__0>d.MoveNext (Azure.Messaging.EventHubs.Processor, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Messaging.EventHubs.EventProcessorClient+<>c__DisplayClass94_0+<<RunPartitionProcessingAsync>b__0>d.MoveNext (Azure.Messaging.EventHubs.Processor, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Messaging.EventHubs.EventProcessorClient+<StopPartitionProcessingIfRunningAsync>d__102.MoveNext (Azure.Messaging.EventHubs.Processor, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)

Environment:

Assembly Azure.Messaging.EventHubs.Processor, Version=<IP_ADDRESS>
Service running in Azure VMSS.

Hi @TarekAljabban.  Thanks for reaching out, and we regret that you're experiencing difficulties.  This is a known issue that was fixed for v5.1.0 of the library.   The newer version of the library is backwards compatible without breaking changes; if you're able to upgrade, I'd recommend doing so as we refined the EventProcessorClient quite a bit in that release.
The underlying issue that you're seeing is a race condition that occurs when the AMQP link to the service was disconnected but the protocol library had not finished cleaning up when it began reconnecting.  This should not impact the operation of the processor in terms of resilience or performance, but will cause some noise in logs.

Thank you @jsquire. I will make the upgrade to 5.1.0.


First pass at inserting reviewed content.

@denzel-morris any feedback on how to integrate this copy-content given your model will helpful.

This is ready for review. The final htmlproofer errors in travis will be fixed once submitted.

Thank you for the review!!

Adding cla: yes label, as the PR author is a googler at the time of this PR was created.


[RESTEASY-1398, RESTEASY-1369] false "multiple matching endpoints" logged

https://issues.jboss.org/browse/RESTEASY-1398 - warning message logged when it shouldn't be
https://issues.jboss.org/browse/RESTEASY-1369 - adding more details to log message
Upstream PR: https://github.com/resteasy/Resteasy/pull/838

Again, thank you.


Wrong license on gallery.technet.microsoft.com (MIT)

Hi
Thank you very much that you released this script under GPLv2. Unfortunately the script is listed at gallery.technet.microsoft.com as MIT software. Also, you might want to add either the license file into the zip archive on gallery.technet.microsoft.com or include:
{description}
Copyright (C) {year}  {fullname}

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

into the script.

Sorry, wrong repository. Reopened here: https://github.com/cunninghamp/Get-DAGHealth.ps1/issues/1


Get Tenant Id, Failed to Process Channel Data

Using Bot Framework Emulator and running from localhost via Visual Studio I get an error when attempting to chat with the bot.
"{  "message": "An error has occurred.",  "exceptionMessage": "Failed to process channel data in Activity",  "exceptionType": "System.ArgumentException",  "stackTrace": " at Microsoft.Bot.Connector.Teams.ActivityExtensions.GetTenantId(IActivity activity)\r\n at Microsoft.Teams.TemplateBotCSharp.MessagesController.<Post>d__0.MoveNext() in C:\\Users\\rneal\\Documents\\QuoteRush - Dev\\Projects\\Samples\\Teams Sample Complete\\template-bot-master-csharp\\src\\controllers\\MessagesController.cs:line 53\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__31.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()"  }"
I've found some information regarding Tenant Id as a form of authorization when hosting from Azure, but it's unclear if this should be testable from VS using a change to the configuration file or if it's only applicable once hosted.

+1 unable to use this sample :(


Git Reports Issue

Submitter: Richi
Email<EMAIL_ADDRESS>Today I tried to blink my MAL as always but a dialogue appears before ends: "Encountered incorrectly encoded content" with the anime list, not manga. I just add one anime, Suisei no Gargantia, since the last blink. My MAL is @kriogenia, if you need to look it.

Fixed itself long ago. Sometimes there are problems on MAL end.


.Create ramjasschool.txt

@codebreaker627 I am sorry, I have to close the request without merging. Please ensure you are familiar with this repository rules located at the bottom of this page and submit a new request with correct information. Thank you for the understanding!


Help with EnsureNotAuthenticated

Hi,
Not sure if your docs need updating? However I can't make head's or tails as to how to get Guardian.Plug.EnsureNotAuthenticated to work?
Could someone please advise me on any additional examples. I've set up a pipeline in my router.ex, I can see from the logs that it's being used. But for some reason it can never find the token in my request headers.
Thanks in advance and apologies. I'm still fairly new to Phoenix.

Nevermind. Typo on my part :P


tensorflow 2.0.0 doesn't work in efficientnet

this is the traceback
AttributeError                            Traceback (most recent call last)
 in
1 import efficientnet
2
----> 3 model = efficientnet.EfficientNetB3(weights=None)
~/anaconda3/envs/py36/lib/python3.7/site-packages/efficientnet/model.py in EfficientNetB3(include_top, input_shape, input_tensor, weights, classes, pooling)
441         weights=weights,
442         classes=classes,
--> 443         pooling=pooling,
444     )
445
~/anaconda3/envs/py36/lib/python3.7/site-packages/efficientnet/model.py in _get_model_by_name(model_name, input_shape, input_tensor, include_top, weights, classes, pooling)
367         input_tensor=input_tensor,
368         include_top=include_top,
--> 369         pooling=pooling,
370     )
371
~/anaconda3/envs/py36/lib/python3.7/site-packages/efficientnet/model.py in EfficientNet(input_shape, block_args_list, global_params, input_tensor, include_top, pooling)
214     # Stem part
215     if input_tensor is None:
--> 216         inputs = KL.Input(shape=input_shape)
217     else:
218         if not K.is_keras_tensor(input_tensor):
~/anaconda3/envs/py36/lib/python3.7/site-packages/keras/engine/input_layer.py in Input(shape, batch_shape, name, dtype, sparse, tensor)
176                              name=name, dtype=dtype,
177                              sparse=sparse,
--> 178                              input_tensor=tensor)
179     # Return tensor including _keras_shape and _keras_history.
180     # Note that in this case train_output and test_output are the same pointer.
~/anaconda3/envs/py36/lib/python3.7/site-packages/keras/legacy/interfaces.py in wrapper(*args, **kwargs)
89                 warnings.warn('Update your ' + object_name + ' call to the ' +
90                               'Keras 2 API: ' + signature, stacklevel=2)
---> 91             return func(*args, **kwargs)
92         wrapper._original_function = func
93         return wrapper
~/anaconda3/envs/py36/lib/python3.7/site-packages/keras/engine/input_layer.py in init(self, input_shape, batch_size, batch_input_shape, dtype, input_tensor, sparse, name)
37         if not name:
38             prefix = 'input'
---> 39             name = prefix + '_' + str(K.get_uid(prefix))
40         super(InputLayer, self).init(dtype=dtype, name=name)
41
~/anaconda3/envs/py36/lib/python3.7/site-packages/keras/backend/tensorflow_backend.py in get_uid(prefix)
72     """
73     global _GRAPH_UID_DICTS
---> 74     graph = tf.get_default_graph()
75     if graph not in _GRAPH_UID_DICTS:
76         _GRAPH_UID_DICTS[graph] = defaultdict(int)
AttributeError: module 'tensorflow' has no attribute 'get_default_graph'
maybe lets make an update to requirements.txt?

Hi, please update library to 1.* verison and read README file, thanks.

Do you plan to upgrade in future on TF2.x?

@Borda
Does not see any limitations, if TF2 support tf.keras it should work. If you have any troubles please report an error stack trace.

When I was working on YOLO detector using Keras I had some issue with newly release Keras 2.2.5 which was falling because of
AttributeError: module 'keras.backend' has no attribute 'control_flow_ops'


Automate Text Summarization with OpenAI and PowerShell

PR Summary
Automating tasks is the core of PowerShell scripting. Adding artificial intelligence into the mix takes automation to a whole new level. In this post, I am simplifying the process of connecting to OpenAI's powerful text summarization API from PowerShell.
PR Checklist

Do you want this post to be published on a specific date?: Y/N [Specify date]:
[X] I have read the contributors guide and followed the style and process guidelines
[X] PR has a meaningful title
[X] Includes content related an open issue

see Closing issues using keywords.

[X] This PR is ready to merge and is not Work in Progress

@microsoft-github-policy-service agree


Twitter archive -> Mastodon fails with "KeyError"

After setting up config according to documentation, I am failing to perform the migration with the following error:
  File "/home/px/.local/lib/python3.10/site-packages/pleroma_bot/cli.py", line 556, in main
    user = User(user_item, config, base_path, posts_ids)
  File "/home/px/.local/lib/python3.10/site-packages/pleroma_bot/cli.py", line 289, in __init__
    self.mastodon_enforce_limits()
  File "/home/px/.local/lib/python3.10/site-packages/pleroma_bot/_utils.py", line 547, in mastodon_enforce_limits
    if len(self.display_name[t_user]) > 30:
KeyError: 'zeptobars'

Config file:
pleroma_base_url: https://techhub.social
max_tweets: 10
users:
- twitter_username: zeptobars
  pleroma_username:<PHONE_NUMBER>22890422
  pleroma_token: [TOKEN_CENSORED]
  signature: false
  archive: twitter.zip
  bio_text: "\U0001F916 BEEP BOOP \U0001F916 \n I'm a bot that mirrors {{ twitter_username }} Twitter's account.\n \n "
  fields:
      - name: "\U0001F426 Birdsite"
        value: "{{ twitter_url }}"
      - name: "Status"
        value: "I am completely operational, and all my circuits are functioning perfectly."
      - name: "WWW"
        value: "{{ website }}"

Hi!
Could this be the same issue as #119?
Which version are you on?
You can check by running:
pleroma-bot --version

The latest release candidate as of now is v1.2.1rc20, which you can install like so:
pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pleroma-bot==1.2.1rc20

Yep, looks like that's it (it was also on 1.2.0). RC version fails further on pinned tweets (as I don't have one)... Will investigate. Thanks for quick feedback!


Add PVC read/write support

Describe the bug
Add PVC read/write support.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of uname -a or ver
No response
Output of java -version
No response
TrustyAI version or git rev
No response
Additional information
No response

Closed with #74


ASAA-17 Arch Demo Commit List

Requirements:
-Update Nav Drawer to conditionally show source and commit options
-Simple List of Commits from Repo
-Document Process to add Tabs to NavDrawer in the README.md
-Create defaults in Routes.kt for RepoBrowser and RepoFile to help with matching
Solution:
-Updated code to get commits from the Bitbucket API
-Added new composables for the Commit List Screen and Commit List Item
-Added a new route for commit screen
-Implemented default values for routes with args to help with matching
-Implemented nestedMenuItems in NavItemState to support nesting menu lists
-Added assets relating to commits and source items
-Updated the README.md to include documentation on adding items to the Nav Drawer

Added new composables for the Commit List Screen and Commit List Item

@LuisRocketRangel Would you mind adding a few sample screenshots of these screens with test data?

Added new composables for the Commit List Screen and Commit List Item

@LuisRocketRangel Would you mind adding a few sample screenshots of these screens with test data?

Hey @br-jared-stockton Where do I place the screenshots?

Added new composables for the Commit List Screen and Commit List Item

@LuisRocketRangel Would you mind adding a few sample screenshots of these screens with test data?

Hey @br-jared-stockton Where do I place the screenshots?

Editing the description and dragging/dropping into the text input would be ideal. If that doesn't work for some reason, you could just create a new comment and drag/drop them there :)


Fix nightly exported_priv_warning test.

Error messages have slightly changed due to https://github.com/rust-lang/rust/pull/73996 to not include the full path.  I used a [..] match just in case anyone is still using a slightly older nightly, or if it changes again in the future.

r? @alexcrichton
(rust_highfive has picked a reviewer for you, use r? to override)

@bors: r+

:pushpin: Commit fd257186600b4374aeedfb542afdc704393b966f has been approved by alexcrichton

:hourglass: Testing commit fd257186600b4374aeedfb542afdc704393b966f with merge f40f7a78f8193a3ed5e86934e98f17a3c9dccecb...

:sunny: Test successful - checks-actions
Approved by: alexcrichton
Pushing f40f7a78f8193a3ed5e86934e98f17a3c9dccecb to master...


foreignObjectRendering fails to render image.

[V] You are using the latest version

Bug reports:
Hey, I'm using the latest version of html2canvas to take screenshots of the current state in my application.
My configuration is set with foreignObjectRendering: true, and my website includes images from the same source.
Images aren't being rendered inside the screenshot, can anyone guide me to how can I display those img tags since I haven't found related issues?
Specifications:

html2canvas version tested with: 1.0.0-rc.5
Browser & version: Chrome 83.0.4
Operating system: os X

hey same problem i am facing

hey same problem i am facing

hey facing similar problem any idea?

Better solution is use back-end node js technology for capturing screen-shot


Small fixes to commandline args parsing

the default value of some args is printed twice in the help
the sqlite version could be rendered better
the error returned by the parse method is not managed

This is potentially a break of retrocompatibility, but I cannot really see it as a serious one.

Released in v0.14.0


Invalid VirtualService in istio.networking.v1alpha3.html

I copied the foo/reviews-route VirtualService from https://preliminary.istio.io/docs/reference/config/istio.networking.v1alpha3.html and sent it to the istioctl (HEAD from April 16).  It fails with
...
 unknown field "host" in v1alpha3.Destination```

It should be host according istio/api for the sha used by istio master.
to https://github.com/istio/api/blob/bf7eff00d3dede110dbe8b2f8fb09d778c9948ce/networking/v1alpha3/virtual_service.proto#L282
I expect it was just out of sync. Please try again with master.

This was a mistake.  I was using an older version of istioctl.


Check for www.sub.domain.com too

Hi,
It would be great if SubOver can also append www. in front of list provided and then check them to see if it gives different result.
Reference : https://www.freelists.org/post/bugbounty/Bug-bounty-tip-The-www-subdomain-takeover-trick
Regards,
@bugbaba

Great idea. I will work on this in future.

Sorry for the late response, actually the public project is discontinued. Please check https://github.com/haccer/subjack. I am not maintaining this at the moment.


KeysManager not freeing memory after use

With xmlsec==1.0.9, this function uses ~1MB of memory for xmlsec.KeysManager() on each call, that is never freed. With xmlsec==0.6.1, the memory seems to be freed when exiting the function.
def _encrypt_usernametoken(self, envelope):
    """Encrypt the ``UsernameToken`` element in the ``envelope``."""
    header = envelope.find(ns(SOAP_NS, 'Header'))
    security = header.find(ns(WSSE_NS, 'Security'))

    # Create a keys manager and load the cert into it.
    manager = xmlsec.KeysManager()
    key = xmlsec.Key.from_file(self.recipient_cert, xmlsec.KeyFormat.CERT_PEM)
    manager.add_key(key)

    # Encrypt the UsernameToken
    target = security.find(ns(WSSE_NS, 'UsernameToken'))

    # Create the EncryptedData node we will replace the target node with,
    # and make sure it has the contents XMLSec expects (a CipherValue node,
    # a KeyInfo node, and an EncryptedKey node within the KeyInfo which
    # itself has a CipherValue).
    enc_data = xmlsec.template.encrypted_data_create(
        envelope,
        xmlsec.Transform.DES3,
        type=xmlsec.EncryptionType.ELEMENT,
        ns='xenc',
    )
    xmlsec.template.encrypted_data_ensure_cipher_value(enc_data)
    key_info = xmlsec.template.encrypted_data_ensure_key_info(
        enc_data, ns='dsig')
    enc_key = xmlsec.template.add_encrypted_key(
        key_info,
        # MedImpact requires RSA 1.5 encryption, which is the same as RSA
        # PKCS1.
        xmlsec.Transform.RSA_PKCS1,
    )
    xmlsec.template.encrypted_data_ensure_cipher_value(enc_key)

    enc_ctx = xmlsec.EncryptionContext(manager)
    # Generate a per-session DES key (will be encrypted using the cert).
    enc_ctx.key = xmlsec.Key.generate(
        xmlsec.KeyData.DES, 192, xmlsec.KeyDataType.SESSION)
    # Ask XMLSec to actually do the encryption.
    enc_data = enc_ctx.encrypt_xml(enc_data, target)

    # XMLSec inserts the EncryptedKey node directly within EncryptedData,
    # but WSSE wants it in the Security header instead, and referencing the
    # EncryptedData as well as the actual cert in a BinarySecurityToken.

    # Move the EncryptedKey node up into the wsse:Security header.
    security.insert(0, enc_key)

    # Create a wsse:BinarySecurityToken node containing the cert and add it
    # to the Security header.
    cert_bst = create_binary_security_token(self.recipient_cert)
    security.insert(0, cert_bst)

    # Create a ds:KeyInfo node referencing the BinarySecurityToken we just
    # created, and insert it into the EncryptedKey node.
    enc_key.insert(1, create_key_info_bst(cert_bst))

    # Add a DataReference from the EncryptedKey node to the EncryptedData.
    add_data_reference(enc_key, enc_data)

    # Remove the now-empty KeyInfo node from EncryptedData (it used to
    # contain EncryptedKey, but we moved that up into the Security header).
    enc_data.remove(key_info)

It also looks like our signing function leaks ~0.1MB/call with xmlsec==1.0.9:
def _sign(self, envelope):
    """Sign the ``soap:Body`` and ``wsu:Timestamp`` of ``envelope``."""
    # Insert the Signature node in the wsse:Security header.
    header = envelope.find(ns(SOAP_NS, 'Header'))
    security = header.find(ns(WSSE_NS, 'Security'))

    cert_bst = create_binary_security_token(self.sender_cert)
    security.append(cert_bst)

    # Create the Signature node.
    signature = xmlsec.template.create(
        envelope,
        xmlsec.Transform.EXCL_C14N,
        xmlsec.Transform.RSA_SHA1,
    )
    key_info = create_key_info_bst(cert_bst)
    signature.append(key_info)
    security.append(signature)

    # Perform the actual signing.
    ctx = xmlsec.SignatureContext()
    ctx.key = xmlsec.Key.from_file(self.sender_key, xmlsec.KeyFormat.PEM)
    _sign_node(ctx, signature, envelope.find(ns(SOAP_NS, 'Body')))
    _sign_node(ctx, signature, security.find(ns(WSU_NS, 'Timestamp')))
    ctx.sign(signature)

@rouge8 I prepare patch to fix this issue, could you check branch fix_memory_leaks, it should fix memory leak in first function.

@bgaifullin this is definitely an improvement. it still seems to be leaking some memory, but my guess is that's in signing rather than encryption?

@rouge8 I found and fixed yet another leak. Could you please check again ?

Yeah, #64 seems to fix the leaks I was seeing! Thanks!

@rouge8,  thank you for help. I release new version as soon as http://pythonhosted.org will be recovered.

@bgaifullin looks like it's back. It was down for several days which is a little worrying 😱

Fix in version: 1.1.0


feat: use pvs for user sessions

This PR closes #464 and addresses #106 by providing a PV for each running interactive session. The change touches on many different aspects of interactive sessions functionality.

the PVCs use the "temporary" storage class which uses the DELETE retention policy - this means that once the PVC is deleted, the underying PV itself is also deleted
the PV is only deleted if the session is terminated via the renku UI - otherwise the PVC remains untouched - this includes if the pod is removed by jupyterhub due to inactivity
due to the fact that PVs are preserved in the case of an unwanted session termination, autosave branches are disabled if PVs are turned on - when the session starts, we check if a PVC for this user/project/commit already exists and if so we reuse it. If it does not we create a new one.
a new server launch option "disk size" is introduced - this can be set by the instance admin like all of the other options

Note that a cluster role for PV creation has to be created for the service account - it is currently added to the helm templates, which means that if the deployment with PVs is attempted by a non-admin user it will fail.
This PR also closes #466 by providing PVs that will survive a node crash and be automatically reused when necessary.
Two things to note:

this PR will probably need to be followed up by some mechanism to clean up zombie PVs, i.e. ones that a user created once and never came back to. We should decide what the appropriate policy for this would be.
The auto save branch functionality is completely disabled by the changes here, if PVs are used. This means that if something potentially goes wrong with the PV itself, the unsaved work will be lost. IMHO this is a small price to pay for avoiding the verbosity of autosave branches, but perhaps a middle-ground is possible.

This is currently deployed in https://rok.dev.renku.ch - because it requires a cluster role (see above) and a value change, I have not added it as a default to CI yet.

Thanks @olevski for the review! I think I've addressed most of it - I've made a follow up issue for the file size refactoring and another one for tests (https://github.com/SwissDataScienceCenter/renku-notebooks/issues/583).

A few other things I saw with playing around with this:

Should we update the script that makes the values.yaml file for developers? If we make the default here for pvs to be used then devs will need admin privileges to deploy this.
Should we update the script in the renku repo that makes a sample of a values.yaml file? I guess this is optional since the default is not using pvs for user sessions?
If I have unsaved work and then close my session with the UI, there is no backup and the work is fully gone. This does not occur when not using pvs because a branch to back things up is made in this case - but with the pvs this does not happen anymore.

@rokroskar I am ok to approve the PR without resolving the things I mentioned above right now. I can make follow up issues for them.
One final thing we discussed is the validation of the disk space request and the ability to bypass it by making a direct api call. However this is currently not the case. This line in the code currently prevents accepting any server option request that does not validate against the server options file. So if we want to make this possible we need to edit the code in the line I linked to allow this. Let me know what you think.

@rokroskar I ran the acceptance tests on this locally through docker. They all passed except the one that usually fails locally which is related to seeing and making isses/PRs in the renku ui. When I test this functionality manually everything works though.
The last thing that is outstanding is Anreas' comment above though. If you address that I can retest and approve.
[info] ScalaTest
[info] Run completed in 30 minutes, 50 seconds.
[info] Total number of tests run: 11
[info] Suites: completed 10, aborted 0
[info] Tests: succeeded 10, failed 1, canceled 0, ignored 0, pending 0
[info] *** 1 TEST FAILED ***
[error] Failed: Total 11, Failed 1, Errors 0, Passed 10
[error] Failed tests:
[error]         ch.renku.acceptancetests.MergeRequestsAndIssuesSpec
[error] (Test / test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 1899 s (31:39), completed Mar 22, 2021, 3:16:14 PM

Thanks a lot @olevski!! Regarding the comment from @ableuler - I consolidated the rbac needed for PVs into a single file here.


Add a license to the repository

I recently came across your project Qiskit-feedback and I noticed that the repository github.com/2lambda123/Qiskit-feedback currently does not have a license specified.
Why Adding a License is Important?
As GitHub documents

Public repositories on GitHub are often used to share open source software. For your repository to truly be open source, you'll need to license it so that others are free to use, change, and distribute the software.

Would be possible to add a valid license to this repository? Probably something really OpenSource such as the Apache 2.0 license would fit really well.
Thanks!

Just to let you know this is some kind of bot action by this user and others across thousands of repos encouraging Apache2 licensing for some kind of campaign. See https://tinyurl.com/3ba4b6j4 and https://github.com/B00TK1D/qiskit-playground/issues/1


Config File Validation- R002

Implement validations for the configurations. List of all validations.
Assumption: Failed validation should generate error log for the failed fields

Ingestion config file validator service (API and synchronous ) which will validate the configuration file and update the existing ones.

Subtasks for this issue

[ ] issue 450
[ ] issue 451
[ ] issue 452
[ ] issue 454

This problem will be addressed in cQube v5.0.

This is related to cQube v4.1 beta


Improve HTTP header errors

This improves error messaging for HTTP header related errors.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

strongly recommend adding some tests of invalid headers and ensuring that you get errors that help to trace back to the source.

I still don't fully understand where the error is coming from. I'd like to release what I have because I expect it to help and then I'll work on tracking down the source afterwards.


Update to Bracket Pair Colorizer 2

First, thanks for such a cool resource! Just ran into an issue yesterday where VS Code can get bogged down by Bracket Pair Colorizer. This simply updates the link and package.json field to version 2 which is much faster.

Thanks!


Zero trust shared api proposal

Proposal for Implementing Secure Data Sharing in Streamlit
Objective:
The objective of this proposal is to outline the implementation of a secure data sharing system within Streamlit, ensuring robust security, user-friendliness, and extensibility. This system will allow users to securely share sensitive data with each other, adhering to a Zero Trust security model.
Implementation Details:
1. Data Sharing Mechanism:

Users will input their sensitive data (e.g., personal access tokens, project information) into a Streamlit application.
The application will generate a secure binary blob that encrypts this data using a symmetric encryption algorithm.

2. Password Protection:

Users will set a personal password known only to them to encrypt the binary blob.
This password will be used as a secondary authentication factor to unlock their data.

3. Storage of Encrypted Blobs:

Encrypted binary blobs will be stored securely on a server or cloud storage.
Access to these blobs will be controlled via robust access controls and authentication mechanisms.

4. User Interface:

The Streamlit application will have a user-friendly interface.
Users will input their sensitive data, set a personal password, and initiate the encryption process.
They will receive a unique link to their encrypted blob.
To access their data, users will enter their personal password.

5. Extensible Security Model:

The system will allow for an extensible security model by:

Allowing users to generate multiple encrypted blobs for different purposes.
Supporting multiple personal passwords for each encrypted blob.
Implementing strong encryption algorithms and secure storage mechanisms.
Encouraging best practices in password management and security.

6. Zero Trust Principles:

The system aligns with Zero Trust principles by requiring users to provide their personal password for access, even within the same organization.
No implicit trust is assumed, enhancing security.

Benefits:

Enhanced security through encryption and secondary password protection.
User control over sensitive data sharing.
Alignment with Zero Trust principles.
Extensibility to accommodate evolving security needs.

Conclusion:
Implementing this secure data sharing system within Streamlit will provide users with a robust and user-friendly platform for sharing sensitive data while maintaining high levels of security. The extensible security model will allow for customization and adaptation to changing security requirements.

Creating a textual sequence diagram with emoji representations is a bit challenging due to the limitations of text-based representation.
The blob is stored in the secrets.toml file on the server.
The server manages the blob storage and retrieval.
The user shares a blob link and sets a secondary password.
The user can later unlock and retrieve the blob from the session storage.

Please note that emojis are used to represent the various actions and entities in the diagram. The actual implementation would involve code for encryption, storage, and retrieval, as discussed in the previous messages.

Certainly! Here's a sequence of steps from the null session to sharing with emojis:

🚶 User starts with a null session.
📥 User interacts with Alice's Streamlit app as a visitor.
🗝 Session is established with only session state.
📋 User interacts with options presented by Alice.
📝 Logs are generated and stored in the session.
🔐 Logs are signed and encrypted with a private key.
📂 State file is created and stored in the session.
🌐 User shares the app URL with others.
🔑 Each visitor gets their private key upon visiting.
🕵 Visitors can see public data initially.
📩 Visitors request access to private data.
🗝 Bob, the requestor, gets a private key.
🔍 Alice approves Bob's request.
📥 Bob accesses private data within the session.
🔄 Visitors can send requests to Alice.
🧩 Alice can share subkeys with Bob.
🤝 Bob uses shared keys for data access.
📬 Alice sends Bob a signed ZKP (Zero-Knowledge Proof).
🔍 Bob applies the ZKP to access more data.
🔐 Encrypted API keys can be shared securely.
🗂 Users can collaborate through secure data sharing.
🌐 Collaboration extends to multiple apps.
🪝 Apps in iframes for secure interaction.
🕊 Alice trusts Bob's app in full-screen.
🔄 Control transitions between apps.
🧪 Proof of concept (POC) in Streamlit.
🧩 Abstract and less-abstract nodes defined.
📜 YAML models for A and B created.
🌐 Models shared and signed as an agreement.
🛠 Generic microservice calls based on agreement.
📦 All data types included in one packet.

This sequence outlines the steps from a null session to secure sharing, incorporating emojis to represent various actions and concepts.

Using an iframe to integrate the JWT generation process for users is a good idea. Here's a general overview of how this flow might work:

Your Streamlit app provides a "Sign In" button.

When a user clicks "Sign In," an iframe is loaded within your app. This iframe contains a form where users can input their PAT.

Users enter their PAT in the iframe and submit the form.

The iframe communicates with the jwtjwt tool to generate a JWT using the provided PAT.

Once the JWT is generated, the iframe can redirect the user back to your Streamlit app with the JWT as a parameter in the URL.

Your Streamlit app receives the JWT from the URL and validates it against the stored PAT to authenticate the user.

This flow ensures that users can securely sign in and authenticate with your app. Just make sure to handle any errors or edge cases gracefully, and it should provide a smooth user experience.
If you have specific questions about implementing any part of this process or encounter any challenges along the way, feel free to ask for assistance.

example url https://jwtjwt.streamlit.app/?embedded=True&_jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXNvdXJjZSI6IlRoZSBBbnN3ZXIgdG8gdGhlIFVsdGltYXRlIFF1ZXN0aW9uIG9mIExpZmUsIHRoZSBVbml2ZXJzZSwgYW5kIEV2ZXJ5dGhpbmciLCJleHAiOjE2OTQ2OTczNTl9.vq9DpBxAAHGbW9rnRK7guo-IxPYJd16caFrk6RjydJc&expiration=60&resource=The+Answer+to+the+Ultimate+Question+of+Life%2C+the+Universe%2C+and+Everything&secret=42

Yes, you can create an outbound approval queue that compiles all pending approvals into a file, bundle, or even as URLs for easy management and sharing. This allows you to efficiently handle and distribute pending approval requests to the relevant parties.
Here's how you can implement it:

Maintain a list or database of pending approval requests, each associated with a unique identifier (e.g., request ID).

Periodically check this list for pending approvals that require action.

Compile these pending approvals into a structured format, such as a file (e.g., CSV, JSON), a bundle of files, or a collection of URLs.

Provide options to send this outbound approval queue to the relevant parties. This can be done via email, messaging apps, or any other communication channels your users prefer.

Include information about each pending approval, such as the request ID, requester details, intent, and any relevant context.

Allow recipients to review and act upon these approvals as needed.

Once the approvals are processed, update their status in your system accordingly.

By organizing and centralizing pending approvals, you can streamline the approval workflow, maintain clear records, and facilitate collaboration among users involved in decision-making processes.
Remember to implement proper access controls and authentication to ensure that only authorized users can view and act upon pending approvals.

Absolutely, you can leverage Streamlit's shared session state to create approval workflows where one user has the JWT token for authorization. Here's a high-level overview of how you can implement this:

Shared Session State: Create a shared session state variable to store the approval queue. This approval queue will contain approval requests generated by users who have access tokens (JWT).

User Interaction: Users with JWT tokens can initiate approval requests by interacting with your app. They can specify the details of the request, such as the action to be approved and any associated information.

Queue Management: When a user with a JWT token submits an approval request, you add that request to the shared session state queue. Each request should include information about the action to be taken and the user's identity.

Approval Workflow: Implement logic in your app to manage the approval workflow. This logic can involve checking the JWT token to verify the user's identity and permissions. If the user is authorized to approve the request, mark it as approved and execute the associated action.

Real-Time Updates: Utilize Streamlit's real-time capabilities to update the UI in real-time as approvals are granted or denied. Users can see the status of their requests and any changes made by others in real-time.

Notifications: You can also implement notifications or messages within your Streamlit app to inform users about the status of their approval requests.

Here's a simplified code snippet to give you an idea of how to structure the approval queue using Streamlit's shared session state:
import streamlit as st

# Define a shared session state variable to store the approval queue
if 'approval_queue' not in st.session_state:
    st.session_state.approval_queue = []

# User with JWT token initiates an approval request
if user_has_jwt_token:
    action_to_approve = st.text_input("Enter action to approve:")
    if st.button("Request Approval"):
        # Add the request to the queue
        st.session_state.approval_queue.append({
            'user': user_identity,
            'action': action_to_approve,
            'status': 'Pending'  # Initially set as pending
        })

# Display the approval queue
st.write("Approval Queue:")
for request in st.session_state.approval_queue:
    st.write(f"User: {request['user']} | Action: {request['action']} | Status: {request['status']}")

This is a basic illustration, and you can expand upon it to include user authentication, JWT verification, approval logic, and real-time updates to suit your specific workflow requirements. Streamlit's shared session state will help you manage the state of approval requests effectively within your app.

Absolutely, allowing users to request approval for both individual URLs and patterns of URLs with a range of allowed values is a flexible and powerful feature. Here's how you can enhance the approval workflow to accommodate such requests:

Request Types: Define two types of approval requests:

Individual URL: Users can request approval for specific URLs.
Pattern-based URL: Users can request approval for a pattern of URLs using wildcard characters or regular expressions.

User Input: In your Streamlit app, provide input fields where users can specify the type of request (individual or pattern-based) and the details accordingly.

Request Processing: When a user submits an approval request, examine the request type. If it's an individual URL, add it directly to the approval queue. If it's a pattern-based request, validate the pattern and generate a list of matching URLs.

Range of Values: Allow users to specify a range of allowed values for the approved URLs or patterns. For example, they can specify a wildcard pattern like *.example.com or a regular expression like ^https://example\.com/.*$.

Approval Logic: Implement approval logic based on the type and allowed values:

For individual URLs, check if the URL matches exactly.
For pattern-based requests, compare the generated list of URLs with the approved pattern and range.

Approval Queue: Maintain the approval queue with details such as user identity, request type, requested URL(s), and approval status.

Real-Time Updates: Ensure that the approval queue updates in real-time to reflect the status of requests, including whether they've been approved, denied, or are pending.

Here's an example of how you can adapt the code snippet from the previous response to handle both individual and pattern-based URL approval requests:
import streamlit as st

# Define a shared session state variable to store the approval queue
if 'approval_queue' not in st.session_state:
    st.session_state.approval_queue = []

# User input fields
request_type = st.selectbox("Request Type", ["Individual URL", "Pattern-based URL"])
request_details = st.text_input("Enter URL or Pattern")

# User with JWT token initiates an approval request
if user_has_jwt_token:
    if st.button("Request Approval"):
        # Add the request to the queue
        st.session_state.approval_queue.append({
            'user': user_identity,
            'type': request_type,
            'details': request_details,
            'status': 'Pending'  # Initially set as pending
        })

# Display the approval queue
st.write("Approval Queue:")
for request in st.session_state.approval_queue:
    st.write(f"User: {request['user']} | Type: {request['type']} | Details: {request['details']} | Status: {request['status']}")

This code allows users to select the request type (individual or pattern-based) and specify the details accordingly. Depending on the type, you can implement your logic to generate and validate URLs and perform approvals accordingly.

Certainly, you can implement a maximum request count limit as part of your approval workflow. Setting a maximum request count limit can help manage the number of approval requests a user or a system can make within a certain timeframe. Here's how you can incorporate this feature:

User Input for Request Count: Provide an input field where users can specify the maximum allowed request count. This input can be part of the request form.

Request Processing: When a user submits an approval request, check their request count against the specified limit.

Request Count Limit Logic: Implement logic to compare the user's request count with the allowed maximum. If the request count exceeds the limit, prevent further requests from that user until the limit resets.

Request Count Reset: To reset the request count, you can use a timer mechanism or a specified time interval, after which the user can make new requests.

Here's an example of how you can update the code snippet from the previous response to include a maximum request count:
import streamlit as st

# Define a shared session state variable to store the approval queue
if 'approval_queue' not in st.session_state:
    st.session_state.approval_queue = []

# Define a shared session state variable to track the user's request count
if 'request_count' not in st.session_state:
    st.session_state.request_count = 0

# Maximum allowed request count per user
max_request_count = st.number_input("Maximum Allowed Request Count", min_value=1, value=10)

# User input fields
request_type = st.selectbox("Request Type", ["Individual URL", "Pattern-based URL"])
request_details = st.text_input("Enter URL or Pattern")

# User with JWT token initiates an approval request
if user_has_jwt_token:
    # Check if the user has reached the maximum request count
    if st.session_state.request_count < max_request_count:
        if st.button("Request Approval"):
            # Add the request to the queue
            st.session_state.approval_queue.append({
                'user': user_identity,
                'type': request_type,
                'details': request_details,
                'status': 'Pending'  # Initially set as pending
            })
            # Increment the user's request count
            st.session_state.request_count += 1
    else:
        st.warning("You have reached the maximum request count. Please try again later.")

# Display the approval queue
st.write("Approval Queue:")
for request in st.session_state.approval_queue:
    st.write(f"User: {request['user']} | Type: {request['type']} | Details: {request['details']} | Status: {request['status']}")

In this code, users can specify the maximum allowed request count. If a user reaches the limit, they are informed, and further requests are temporarily prevented until the limit resets. Adjust the max_request_count value as needed for your specific use case.


No real_val file.

Hi.
Thanks for sharing the code.
In step 1 of the Dataset part of Read me, it said to download four datasets from the NOCS dataset.
However, when I download those four files, I don't have the "real_val" file mentioned in step 2.
Has the dataset been renamed?
CAMERA Dataset Training--------unzip-------→train/
Real Dataset Training--------unzip-------→real_train/
Real Dataset Test --------unzip-------→real_test/
Ground truth pose annotationVal&Real_test--------unzip-------→gts/

Hello,
you can simply rename the real_test to the name real_val.

！
I see .
Thank you.


moving app to a different computer

Hello,
I trying to make my java app (base on TDlib) on a different computer but I get  the well know error "java.lang.unsatisfiedLinkError  ... tdjni.dll: can't find dependent libraries"
I've already read similar Issues here  and I think I have copied all involved dll in c:\windows\system32 for avoiding troubles but it doesn't work
I've copied these dll but I think I've forget something
libcrypto-3-x64.dll
libssl-3-x64.dll
tdjni.dll
tdjson.dll
zlib1.dll
zlibd1.dll
legacy.dll
What do you think?
Culex

by the way, I'm using version to 1.8.22

You can use https://github.com/lucasg/Dependencies to find the missing dependencies.
If you built a debug version, then you must also install Visual C++ Redistributable package.

Hello levlam,
It is strange, it was related with  Visual C++ Redistributable package but after installing them from here 'https://learn.microsoft.com/es-es/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version'  the problem still
Anyway, with the tool for finding the missing dependencies I have been able to fix it
Thank you very much.


add log channel

This sets the log channel to the current crate name and removes some redundant information.
Loglines now look like this:
log::info!("Loading addon");

will produce:
2024-03-20 14:02:54[nexus_example_addon]     [INFO] Loading addon
ingame:

Thanks!


Fix gorse go client

Score had wrong datatype (is already fixed in version 5, but needs to get fixed in 4 too)
Added Recommend with Offset

Thank you!


Docker container might cause computer system  restart

when I use docker I encounter many times system restart ,I find that when I export a system variable and when I run a virtual machine  and then run a docker container sometimes it also might cause my computer restart ,dose anybody have some method  to solve this question

Hi!
If you are reporting a new issue, PLEASE make sure that does not have any duplicates already open.
We would like to take this time to remind you of the information we need to debug the problem you are seeing. This is an automated response so if this ticket is not about a bug, do not fret.
If you fail to provide this information within 7 days, we will close this because we cannot debug your issue. We can reopen whenever the information is provided.
Thank you.
Please see:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues
Description of problem:

`docker version`:

`docker info`:

`uname -a`:

Environment details (AWS, VirtualBox, physical, etc.):

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual Results:

Expected Results:

Additional info:

#ENEEDMOREINFO

uname  -a
Linux fenghaixiong-pc 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.3.3
Git commit (client): a8a31ef/1.5.0
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.3.3
Git commit (server): a8a31ef/1.5.0
docker info
Containers: 22
Images: 349
Storage Driver: devicemapper
Pool Name: docker-8:18-1054466-pool
Pool Blocksize: 65.54 kB
Backing Filesystem: extfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 18.6 GB
Data Space Total: 107.4 GB
Metadata Space Used: 23.12 MB
Metadata Space Total: 2.147 GB
Udev Sync Supported: true
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.89-RHEL6 (2014-09-01)
Execution Driver: native-0.2
Kernel Version: 2.6.32-431.el6.x86_64
Operating System:
CPUs: 8
Total Memory: 15.52 GiB
the kernel crash log is:
<4>Pid: 3181, comm: docker Tainted: P           ---------------    2.6.32-431.el6.x86_64 #1 Dell Inc. OptiPlex 7020/08WKV3
<4>RIP: 0010:[]  [] list_del+0x10/0xa0
<4>RSP: 0018:ffff8804064cfdc8  EFLAGS: 00010092
<4>RAX: dead000000200200 RBX: ffff8803b86c0858 RCX:<PHONE_NUMBER>000010
<4>RDX:<PHONE_NUMBER>000002 RSI:<PHONE_NUMBER>000003 RDI: ffff8803b86c0858
<4>RBP: ffff8804064cfdd8 R08:<PHONE_NUMBER>000010 R09:<PHONE_NUMBER>000000
<4>R10:<PHONE_NUMBER>000000 R11:<PHONE_NUMBER>000246 R12: ffff8803b86c0840
<4>R13: ffff880405762f18 R14:<PHONE_NUMBER>000010 R15:<PHONE_NUMBER>000000
<4>FS:  00007fb112bfd700(0000) GS:ffff880028340000(0000) knlGS:0000000000000000
<4>CS:  0010 DS: 0000 ES: 0000 CR0:<PHONE_NUMBER>050033
<4>CR2: 00007fa776b9be78 CR3:<PHONE_NUMBER>531000 CR4:<PHONE_NUMBER>1407e0
<4>DR0:<PHONE_NUMBER>000000 DR1:<PHONE_NUMBER>000000 DR2:<PHONE_NUMBER>000000
<4>DR3:<PHONE_NUMBER>000000 DR6: 00000000ffff0ff0 DR7:<PHONE_NUMBER>000400
<4>Process docker (pid: 3181, threadinfo ffff8804064ce000, task ffff8804145be040)
<4>Stack:
<4><PHONE_NUMBER>000001 ffff8803b86c0880 ffff8804064cfe08 ffffffff810c9fe2
<4><PHONE_NUMBER>000004 ffff8803bb2edd38<PHONE_NUMBER>000000 ffff8803bb2edd50
<4> ffff8804064cfe58 ffffffff81054839<PHONE_NUMBER>000000<PHONE_NUMBER>000001
<4>Call Trace:
<4> [] cgroup_event_wake+0x42/0x70
<4> [] __wake_up_common+0x59/0x90
<4> [] __wake_up+0x48/0x70
<4> [] eventfd_release+0x2d/0x40
<4> [] __fput+0xf5/0x210
<4> [] fput+0x25/0x30
<4> [] filp_close+0x5d/0x90
<4> [] sys_close+0xa5/0x100
<4> [] system_call_fastpath+0x16/0x1b
<4>Code: 89 95 fc fe ff ff e9 ab fd ff ff 4c 8b ad e8 fe ff ff e9 db fd ff ff 90 90 90 90 55 48 89 e5 53 48 89 fb 48 83 ec 08 48 8b 47 08 <4c> 8b
00 4c 39 c7 75 39 48 8b 03 4c 8b 40 08 4c 39 c3 75 4c 48
<1>RIP  [] list_del+0x10/0xa0

You need to update your system using yum update. The kernel you're running is old and such a bug is expected.


Show the trending containers side by side

Seems like Travis CI is not running on PR. @stevemart Can you enable it in Travis to run for all PRs

weird, it was already enabled for PRs...

Looks good Thanks for this.


Error savelevel

Description:

/sw set arena
settings -> savelevel = error
13:14:17] [Server thread/CRITICAL]: Error: "Call to a member function saveMap() on null" (EXCEPTION) in "plugins/SkyWars/src/vixikhd/skywars/SkyWars" at line 149

Server version:
PMMP 1.12.1 last bild (stable)

Pls see #56

Also first enable arena then do savelevel


docs: add slides link in README

Motivation

Modifications

Checklist

[ ] Format your code according to the Contributor Guide.
[ ] Add unit tests as outlined in the Contributor Guide.
[ ] Update documentation as needed, including docstrings or example tutorials.

preview https://github.com/sgl-project/sglang/tree/zhyncs/doc?tab=readme-ov-file


operator hive-operator (1.2.4287-227c259)

operator hive-operator (1.2.4287-227c259)

/merge possible

/merge possible