bad gateway after update NPM 2.9.12 to NPM 2.9.14

Script
nginx-proxy-manager
Describe the bug
Hello
After the NPM 2.9.14 update, I can't connect to the panel anymore and I get the message bad gateway when I click on the login button
I had no problem before this update
More info
The reverse proxy works but I can't manage it
fresh install works
I have successfully upgraded to 2.9.13
Upgrading from 2.9.13 to 2.9.14 does not work
Upgrading from 2.9.13 to 2.9.15 does not work
System info:

Proxmox Version: 7.1-8
Alpine Version: 3.12.9

Same issue.
Upgrading from 2.9.8

hey guys,
i have the same issue after upgrade to v2.9.15.
In the logfile i can see the following:

These messages occur about every second or so.
Btw, all sites i entered so far are working fine. But i have to enter others, so it would be ideal, if i could login again ;-)
Any idea on how to solve?

hello,
i have now restartet my alpine-vm under proxmox and no some sites are not working and result in "bad gateway".
just for info.

I ran the update command (https://github.com/ej52/proxmox-scripts/discussions/27) in the console in Proxmox since SSL certificates were not working.
Now I cannot access nginx at all, and my existing routes don't work either.

Same issue here after upgrading to 2.9.15
My upgrade shouted about an outdated pip version so I ran that update using:
/usr/bin/python3 -m pip install --upgrade pip before realising I had the Bad Gateway issue.

Same issue for me. After runnig update command(2.9.16) i had Bad Gateway issue and i cannot login.

Anyone have a fix for the bad gateway issue?  Same issue

hey guys,
i returned to docker-version.
If you use this version because of ipv6, then you have to add an ipv6 address to the docker-container that hosts npm. And add an ipv6 DNS entry for the ipv6-address you created for the container.
It worked for me.

After update i got this line in error.log:
error     Command failed: /usr/sbin/nginx -t -g "error_log off;"
nginx: [emerg] open() "/usr/local/openresty/nginx/conf/conf.d/include/letsencrypt-acme-challenge.conf" failed (2: No such file or directory) in /data/nginx/proxy_host/10.conf:22
nginx: configuration file /usr/local/openresty/nginx/conf/nginx.conf test failed

For me it worked this command:
cd /usr/local/openresty/nginx/conf && ln -s ../conf.d /usr/local/openresty/nginx/conf/
Maybe helps some one :wink:


Don't Merge! PR real time test for target branch full build

Docs Build status updates of commit 6367022:
:clock10: Full build: the average full build time is 5 min(s) 9 sec(s), this is based on the last 30 build(s) for this repository.

Docs Build status updates of commit 6367022:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-ref-conceptual/testing.md
:warning:Warning
View (azure-cli-latest) View (azure-cli-2017-03-09-profile) View (azure-cli-2018-03-01-hybrid)
Details

docs-ref-conceptual/testing.md

[Warning] Missing attribute: either ms.prod or ms.service is required. Use ms.prod for on-premise products, or ms.service for cloud services.
[Warning] Missing attribute: title.
[Warning] Missing attribute: either ms.prod or ms.service is required. Use ms.prod for on-premise products, or ms.service for cloud services.
[Warning] Missing attribute: title.
[Warning] Missing attribute: either ms.prod or ms.service is required. Use ms.prod for on-premise products, or ms.service for cloud services.
[Warning] Missing attribute: title.

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.


Codecov

This PR closes #11 in order to setup codecov
@raulraja could you please review? thanks!

Current coverage is 50.00% (diff: 100%)

No coverage report found for master at 592d1bb.

Powered by Codecov. Last update 592d1bb...29d8ec1

LGTM


Upgrade @angular/router to version 3.0.0

Recently announced by @StephenFluin in this blog post, version 2.0 of @angular/router has been deprecated. angular-cli still installs version 2.0.0-rc.1, and it should upgrade to  version 3.0.0-alpha.3.
We should try to keep up with changes so that angular-cli projects do not fall behind the curve.

@Trendy
You're absolutely correct.
I tried angular-cli for the first time today, and that part was not funny. Not a happy start for me and angular-cli. :-)
Anyway this project is damn cool. Thank you for all the work that you guys put into it!

I think the pull request #1077 resolves this

This was resolved by #1077


how to disable Remember Password popup?

how to disable Remember Password popup?

Could you share a screenshot or photo of what you’re referring to? Thanks!


Vary SDK by condition

I want to vary the SDK according to a condition.  When I build in Debug, I want to use Microsoft.NET.Sdk.WindowsDesktop.  When I build in Release, I want to use Microsoft.NET.Sdk.  However, I do not see any examples in the documentation that show how to do this.
Can such an example be added to the documentation?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: aa484235-d872-f50e-96fc-aa5b4a2a42fa
Version Independent ID: 871c22e0-65a2-f3a4-41b9-f050489dba7a
Content: .NET project SDK overview
Content Source: docs/core/project-sdk/overview.md
Product: dotnet-fundamentals
GitHub Login: @gewarren
Microsoft Alias: gewarren

There is an example of part of this here: https://docs.microsoft.com/en-us/dotnet/core/project-sdk/overview#project-files
You can specify the SDK by adding the <sdk> property:
<Project>
  <Sdk Name="Microsoft.NET.Sdk" />
  ...
</Project>

You'll have to dig into the MSBuild documentation, but I think you need use the Configuration setting with a condition. This way you can choose which SDK based on the condition: https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-conditional-constructs?view=vs-2019
<Project>
  <Sdk Condition="'$(Configuration)'=='Debug'" Name="Microsoft.NET.Sdk" />
  ...
</Project>

Also, please note that with .NET 5.0 as soon as you add <UseWPF> or <UseWindowsForms> you automatically get the Desktop SDK imported into your project, even if you just target Microsoft.NET.Sdk.
I believe this answers your question. Please feel free to reopen this if you need. Cheers!

Also, please note that with .NET 5.0 as soon as you add <UseWPF> or <UseWindowsForms> you automatically get the Desktop SDK imported into your project, even if you just target Microsoft.NET.Sdk.

That is good to know.  That means a workaround is to always use Sdk="Microsoft.NET.Sdk.WindowsDesktop".  When targeting net5.0-window, the logs output by the build include the line
C:\Program Files\dotnet\sdk\5.0.102\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets(376,5): warning NETSDK1137: It is no longer necessary to use the Microsoft.NET.Sdk.WindowsDesktop SDK. Consider changing the Sdk attribute of the root Project element to 'Microsoft.NET.Sdk'.

but that line is not actually considered a build warning (even though it includes the "warning"), so I can keep using
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

You'll have to dig into the MSBuild documentation, but I think you need use the Configuration setting with a condition. This way you can choose which SDK based on the condition: https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-conditional-constructs?view=vs-2019
<Project>
  <Sdk Condition="'$(Configuration)'=='Debug'" Name="Microsoft.NET.Sdk" />
  ...
</Project>

That is not my understanding nor my experience.
First, the Sdk element documentation does not say that Condition is a possible attribute.  For contrast, consider the ItemGroup element documentation, which does say that Condition is a possible attribute.
Second, my experience agrees with this documentation.  Given the following project file, I have the following build warnings.  You can try it for yourself by downloading this ZIP.  In particular, the warnings are the same even after removing the Condition attributes on the two Sdk elements.  This is further evidence that the Sdk element does not support the Condition attribute.
<Project>

  <Sdk Name="Microsoft.NET.Sdk.WindowsDesktop" Condition="'$(Configuration)' == 'Debug'"/>
  <Sdk Name="Microsoft.NET.Sdk" Condition="'$(Configuration)' != 'Debug'"/>

  <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <TargetFramework>net472</TargetFramework>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)' != 'Debug'">
    <TargetFramework>net5.0-windows</TargetFramework>
  </PropertyGroup>

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <DisableWinExeOutputInference>true</DisableWinExeOutputInference>
    <UseWPF>true</UseWPF>
  </PropertyGroup>

</Project>

MSB4011	"C:\Program Files\dotnet\sdk\5.0.102\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.props" cannot be imported again. It was already imported at "C:\Program Files\dotnet\sdk\5.0.102\Sdks\Microsoft.NET.Sdk.WindowsDesktop\Sdk\Sdk.props (18,3)". This is most likely a build authoring error. This subsequent import will be ignored.
MSB4011	"C:\Program Files\dotnet\sdk\5.0.102\Sdks\Microsoft.NET.Sdk\Sdk\Sdk.targets" cannot be imported again. It was already imported at "C:\Program Files\dotnet\sdk\5.0.102\Sdks\Microsoft.NET.Sdk.WindowsDesktop\Sdk\Sdk.targets (14,3)". This is most likely a build authoring error. This subsequent import will be ignored.

@dsplaisted Is it possible to reference a different SDK based on a condition?

It's not possible to put a condition on an Sdk element.  However, you can achieve the same thing using Import elements with Sdk attributes:
<Project>

  <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk.WindowsDesktop" Condition="'$(Configuration)' == 'Debug'"/>
  <Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" Condition="'$(Configuration)' != 'Debug'"/>

  <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <TargetFramework>net472</TargetFramework>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)' != 'Debug'">
    <TargetFramework>net5.0-windows</TargetFramework>
  </PropertyGroup>

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <DisableWinExeOutputInference>true</DisableWinExeOutputInference>
    <UseWPF>true</UseWPF>
  </PropertyGroup>

  <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk.WindowsDesktop" Condition="'$(Configuration)' == 'Debug'"/>
  <Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" Condition="'$(Configuration)' != 'Debug'"/>

</Project>

Note that in this case you need separate import statements for Sdk.props and Sdk.targets.

Thanks @dsplaisted.  That works.  I had considered that approach, but never tried it.  Thanks for the clear example.
What are the chances that support for Condition can be added to Sdk?
If anyone is curious, I am conditionally selecting the SDK because I am conditionally selecting the target framework because the XAML designer works better when targeting .NET framework.  See this issue.

I doubt we will add Condition support to the Sdk element.
However, the issue where you need to use the WindowsDesktop SDK when targeting .NET Framework should be fixed in VS 16.9: https://github.com/dotnet/sdk/issues/15194
So you shouldn't need the conditions then.

Thank you @dsplaisted!
I'm going to close the issue now, since I don't think it will be a common-enough scenario to warrant adding the example to the docs. Let me know if you think it should be added, though.

This is great. Thanks to both of you for being so helpful :)


Add contribution guidelines

Setting guidelines for repository contributors

https://docs.github.com/en/free-pro-team@latest/github/building-a-strong-community/setting-guidelines-for-repository-contributors

Motivation
Have clear process (workflow) for contributions
Samples:

https://github.com/atom/atom/blob/master/CONTRIBUTING.md
https://github.com/rails/rails/blob/master/CONTRIBUTING.md
https://github.com/opengovernment/opengovernment/blob/master/CONTRIBUTING.md

Added Branching strategy and Translation guidelines

Added Branching strategy and Translation guidelines


Union type for items not supported

{
                "type": "array",
                "items": {
                    "type": ["number", "string", "boolean", "object", "array", "null"]
                }
            }

This throws list is not hashable

Similar to #97, use the anyOf keyword for allowing multiple types of array items:
{
 "type": "array",
 "items" : {
   "anyOf": [
     {"type": "string"},
     {"type": "integer"},
     {"type": "boolean"}
    ]
 }
}

I believe I've answered your question. I'm going to close this issue for now. If you, however, still think it's not resolved, feel free to reopen.


Upgrade babel preset typescript to 7.0.0

This is a follow-up to https://github.com/zeit/next.js/pull/5042

Thanks for changing the base branch @timneutkens! The dropdown was not working for me for some reason 🤔

Hm. Do we need ^7.0.0 or shall I change the version to 7.0.0?


Trim last "/" from WOODPECKER_HOST config

https://youtu.be/dGwC_AxaWLo?t=770
( https://youtu.be/dGwC_AxaWLo?t=1020 )

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

:exclamation: No coverage uploaded for pull request base (main@4e0b0bd). Click here to learn what that means.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2538   +/-   ##
=======================================
  Coverage        ?   40.49%
=======================================
  Files           ?      185
  Lines           ?    11032
  Branches        ?        0
=======================================
  Hits            ?     4467
  Misses          ?     6212
  Partials        ?      353

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


Code Analysis Dictionary .NET Core 2 support

Seems like .NET Core 2 doesn't have "CodeAnalysisDictionary" build action at all. Do you have any plans to support it?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5c0c5937-e895-d2e3-0e14-655cf4e52d6a
Version Independent ID: abe9dea4-c830-c476-1e9d-fd2386d014c3
Content
Content Source

@gewarren Did you close the ticket because you have solution? Can you share it?

@BorisBoyko Currently there is no support for custom code analysis dictionaries in .NET Core projects. There is work planned to port some of the code analysis naming rules from FxCop to Roslyn analyzers, so once that happens you'll be able to create a custom dictionary.

This issue should remain open until a solution has been implemented.

@SeanHogg You can log an issue over at the Roslyn issues page, although they may already be tracking this work to port the naming rules to FxCop Roslyn analyzers. There is no plan to add support to binary FxCop analysis for .NET Core projects as far as I am aware.

Not sure how to ask the question, or make a statement. .Net Standard projects which consume the stylecop.analyzers can customize the rules via adding a XXX.stylecop configuration/rule file. Since .net standard projects and the latest nuget/nuspec configuration doesn't allow external files to be added. However, based upon this documentation we can add linked files (in this example: added 'stylecop.json' file as a linked file.
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/Configuration.md
This is great b/c we can distribute the stylecop.json file as part of the nuget and then include it as a linked file.
My question/Statement is, when i try to add the xxx.stylecop file as a link it doesn't recognize the rules. The file has to exist in the physical directory unlike the .json settings file.

@SeanHogg Sorry to keep sending you off to other issues pages, but I think this is more a question for the StyleCopyAnalyzers repo. Here's the issues page for that: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues


Prevent duplicity post of creating/replacing elyra secret

JIRA: https://issues.redhat.com/browse/RHOAIENG-10719
Description

Add a ref to prevent simultaneously creating/replacing the elyra secret, and rewrite the hook a little bit to make it more readable.
How Has This Been Tested?

Create a project
Configure a pipeline server
Make sure there is no 409 conflict error message in the console when creating ds-pipeline-config secret

Test Impact

N/A, needs e2e live test for that which https://github.com/opendatahub-io/odh-dashboard/pull/3028 will cover.
Request review criteria:

Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

[ ] Included any necessary screenshots or gifs if it was a UI change.
[ ] Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

[ ] The developer has tested their solution on a cluster by using the image produced by the PR to main

Tested locally
no 409 conflict, I see only one post request for the secret
/lgtm

/approve
/lgtm


question about Data Preprocessing

Hi author:
I changed my all_parser.py ccording to your instructions:
root_dir = '/home/name/Hi-C/deephic'
then I put my unzip HiCdata in /home/name/Hi-C/deephic/raw/SAMEA103989648
SAMEA103989648_1.fastq
SAMEA103989648_2.fastq
and I run python data_aread.py -c SAMEA103989648
I got error :
Start reading data, there are 0 files (10kb).
Output directory: /home/zhaoqianyi/Hi-C/deephic/mat/SAMEA103989648
Start a multiprocess pool with process_num=23 for reading raw data
All reading processes done. Running cost is 0.0 min.
I want to know should I use 23 nodes to solve this issue ?
looking forward to your answer
thanks

Hello, Sorry for such a long time no-replying. DeepHiC uses processed Hi-C matrices data as input, not raw unaligned .fastq files


Fix variable quoting in preview.sh for APIExports

Signed-off-by: Johnny Bieren<EMAIL_ADDRESS>

@dirgim fyi
If you try deploying without this fix, the apiexports are all added to the hacbs workspace, creating duplicates (and issues because of that)


Terminal error The terminal process terminated with exit code:<PHONE_NUMBER>

We have written the needed data into your clipboard because it was too large to send. Please paste.

What do you did to produce this error?

Hi @Tyriar
All i did is open up the terminal and it then states to press a key, which i did and then it closes it self and shows me that error

The error message seems to tell it all. You're probably pointing to bash.exe in your settings file but you don't have it installed. Open the command palette (F1) and run the select default shell command and use cmd or powershell (or install a WSL distro).

@CodingArcher the message is saying that you haven't installed it inside Windows. Follow the instructions in the message you saw:
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore

Modify User Settings in VS Code (File -> Preferences -> User Settings) and add the following within the settings.json pane:
"terminal.integrated.shell.windows": "C:\WINDOWS\sysnative\bash.exe",
"terminal.integrated.shell.windows": "bash.exe",


Issue Eboot.bin

In the enstone menu eboots there are only mw2 bo3 bo2 and mw3 which would be missing more eboots for ghost, aw and bo1 Since if I load it, if the eboot I get a trophy error and the ps3 restarts, if you could help me get those eboots

I was told those other games don't need custom eboots and the original eboot can be used. As for the trophy error and ps3 restarting it's because PS3 can't handle too much memory for example webman also running in tandum with RouLetteVshMenu so to fix that you need to unload webman.


Modular Templating engine

[ ] Remove symfony
[x] Default simple PHP templating engine
[ ] Modules should be able to make templates
[ ] Modules should be able to add templating engine

part of #9

We also need to make really simple default pages on custom css , we cant force any css choice on the user


After activating the module, my site was crashed

Hi there, I can see it in the module list, unfortunately, after activating the module, my site was crashed even if I tried clearing the cache with CLL Here is SSH response after clearing freescout cache with CLL https://prnt.sc/FcMYbRZeG6Pg

Thank you for sharing. Can attach debugging notes from the checklist here? https://github.com/fulldecent/freescout-sidebar-webhook#troubleshooting

Thank you for the reply, unfortunately, I am not a developer, I am not ability to perform this debug process. I just replaced the Webhook url according to your instruction such as  https://myfreescoutinstallationdomain.com/api/webhooks  and uploaded the unzipped folder to the directoy of freescout/Modules after activating the modile from the module list. the site gets crashed, here is the screenshot after performing clear cache CLI https://prnt.sc/_w09pXF2YUw3  Your addon is useful form me I can place and update contact information from my CRM. can you please help with debugging it, of course I will get a license. Thank you so much!

I had this same issue. Did you just git clone this repo into your Modules directory? If so, you need to rename the folder to SidebarWebhook before enabling.

Assuming that was the issue, please add more notes if available


Add types to Tailwind config

Tailwind config now supports adding types, using JSDoc or TS: https://tailwindcss.com/docs/configuration#type-script-types

Duplicates #237


Add the concept of missing passwords for Redshift

This also includes test coverage for the passwordless case for postgres and redshift dialects, ensuring that this case is properly supported.

Shipit


Pushed v<IP_ADDRESS> to CurseForge.


[stable/neo4j] Added resources to replica deployment and HPA.

What this PR does / why we need it:
Adding resources and HPA to read replica deployment.
Which issue this PR fixes
Without resources it cannot scale properly and it might take all the resources of the node, because there are no limits. Also withour Horizontal Pod Autoscaler deployment cannot scale in case of higher load.
Checklist

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @unguiculus

@mneedham Hello, could you please review this PR as well?

/ok-to-test


add support for setting 'become' when running Ansible module

Adds support for setting become when running an Ansible module:
host.ansible('service', 'name=docker-compose state=restarted', check=False, become=True)

The  sudo() context manger does not work for Ansible modules; calls to host.ansible() are passed to AnsibleRunner.run() without going through get_command (which is what sudo() monkey patches get_sudo_command in as). See test_ansible_module_become test for evidence of this.

Awesome !
Merged, thanks for this !


Phrase out trivia dependency

Trivia is (was?) a transitive dependency, possibly via ironclad via uuid.  It's definitely not from ascii-table, spark nor let-plus.  Mostly this is a reminder to check (is there a way to print the dependency tree with ASDF? That would be quite useful).

With PR #28 now merged, trivia is not a dependency of cl-duckdb anymore. I don't know whether a dependency tree can be printed with ASDF, but it would be indeed useful.


No bus clock speed monitoring/adjustment

There's no way to see or adjust bus clock speed and idk why, any other OC plugin has that and it can be significant especially for loading screens or data transfer via ftp and such, almost no software uses the highest clock speed for that either, so i like to set it to the maximum myself, apart from that this sure is like a version 2.0 from the original psvshell

CPU bus clock speed on Vita is always set to maximum possible value (222 MHz) unless application intentionally underclocks it, which can only be done by homebrew, not officially released applications. So adding option to adjust this clock speed is pointless.


octree dir: split content into smaller files

ptal! @nnmm
ptal! @feuerste
in this small PR I splitted the node and mod files of the src/octree into pieces to allow for a better overview.

@wally-the-cartographer merge

Merge requested by authorized user catevita. Merge queue now has a length of 1.


hide backup driver phone field if no backup driver

I am not sure if the View file (drivers.html.erb) is as streamlined as it could be. Happy to chat about this on Zoom for any improvements

@jocelynanderson The backup_driver_error_place.innerHTML should be emptied if a backup_driver is deselected.
Please try the following scenario:

Select a backup driver
Click Submit - see phone error
Deselect backup driver - the error is still there

A possible solution. Add to the hideBackupDriverPhoneField() function
var backup_driver_error_place = document.getElementById('backup_driver_error')
backup_driver_error_place.innerHTML = ''

And then empty it again (backup_driver_error_place.innerHTML = '') in the else part.

@britaumich Thanks for catching that - updated


Update README.md

On Laravel if you get Non-static method Xendit\QRCode::get() should not be called statically
use this method
$qr_code = new \Xendit\QRCode()
$qr_code = $qr_code->get('external_123');
dd($qr_code);

Hi @randhipp actually this is a mistake. It's backlogged here https://github.com/xendit/xendit-php/issues/103 and will be fixed soon


Stop copying LogicalPlan and Exprs in EliminateCrossJoin

Is your feature request related to a problem or challenge?
Part of https://github.com/apache/datafusion/issues/9637
As part of making the planner faster, we are updating the optimizer passes to avoid copying LogicalPlan and Expr (see https://github.com/apache/datafusion/issues/9637)
Describe the solution you'd like
I would like to reduce the amount of copying in this pass (even though it doesn't appear in current profiling)
Describe alternatives you've considered
Apply the model from @Lordworms  in https://github.com/apache/datafusion/pull/10166 to this pass
2. Update OptimizerRule::supports_rewrite` to return true

Update OptimizerRule to use rewrite
Update the pass itself to not copy the LogicalPlan (ideally using the TreeNode API) - it is implemented for LogicalPlan (API) and Expr (API)

Other examples: https://github.com/apache/datafusion/pull/10218
Additional context

I believe @Lordworms  is working on this -- https://github.com/apache/datafusion/issues/9637#issuecomment-2075311002

I am going to give this one a try

It is done over a few PRs but I have this change now working and I think it is looking quite good: https://github.com/apache/datafusion/pull/10431


Solve Captchas Issue

HI there,
could someone assist me with getting manual solve captchas to work correctly?
I'm using Selenium 3.0
Chromewebdriver 2.29 (latest)
c:\Mono>solve_captchas.py
Traceback (most recent call last):
File "C:\Mono\solve_captchas.py", line 168, in
loop.run_until_complete(main())
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python36-32\lib\asyncio\ba
se_events.py", line 466, in run_until_complete
return future.result()
File "C:\Mono\solve_captchas.py", line 58, in main
manager.connect()
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python36-32\lib\multiproce
ssing\managers.py", line 489, in connect
conn = Client(self._address, authkey=self._authkey)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python36-32\lib\multiproce
ssing\connection.py", line 485, in Client
c = PipeClient(address)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python36-32\lib\multiproce
ssing\connection.py", line 686, in PipeClient
_winapi.WaitNamedPipe(address, 1000)
FileNotFoundError: [WinError 2] The system cannot find the file specified
c:\Mono>chromedriver.exe
Starting ChromeDriver 2.29.461591 (62ebf098771772160f391d75e589dc567915b233) on
port 9515
Only local connections are allowed.
Thanks!

didn't know i had to run scan.py first (doh!)  it worked : )


Add Lilypond support

Add LilyPond support. Lilypond uses single % for comments and %{ and %} to start and stop block comments, respectively.

thx


java.lang.ClassNotFoundException is raised when referring to the flyway.callbacks property

Which version and edition of Flyway are you using?
6.4.2 CE
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Gradle plugin
Which database are you using (type & version)?
Postgres 12
Which operating system are you using?
mac OS Catalina 10.15.2
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)

clone repository
run docker-compose up -d
run ./gradlew flywayMigrate

I'm using Intellij IDEA 2019.3.3 for development.
I wanted to create tables in SQL and populate them with test data in Java.
This is because we wanted to change the test data by environment variables.
What did you expect to see?
The ability to perform Java callbacks and submit test data.
What did you see instead?
It's a stacktrace(./gradlew flywayMigrate --stacktrace).
[mahaker@mahaker-mbp] flyway-callback-java[master]$: ./gradlew flywayMigrate --stacktrace
> Task :flywayMigrate FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flywayMigrate'.
> Error occurred while executing flywayMigrate
  Unable to instantiate class db.migration.FillTestData : db.migration.FillTestData
  db.migration.FillTestData

* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':flywayMigrate'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$2.accept(ExecuteActionsTaskExecuter.java:121)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$2.accept(ExecuteActionsTaskExecuter.java:117)
        at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:184)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:110)
        at org.gradle.api.internal.tasks.execution.ResolveIncrementalChangesTaskExecuter.execute(ResolveIncrementalChangesTaskExecuter.java:84)
        at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:91)
        at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutionStateTaskExecuter.java:74)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:109)
        at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
        at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:93)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:45)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:94)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:63)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:46)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.flywaydb.core.api.FlywayException: Error occurred while executing flywayMigrate
Unable to instantiate class db.migration.FillTestData : db.migration.FillTestData
db.migration.FillTestData
        at org.flywaydb.gradle.task.AbstractFlywayTask.runTask(AbstractFlywayTask.java:550)
        at jdk.internal.reflect.GeneratedMethodAccessor373.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:48)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:705)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:672)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$4.run(ExecuteActionsTaskExecuter.java:338)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:327)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:312)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:75)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:158)
        at org.gradle.internal.execution.impl.steps.ExecuteStep.execute(ExecuteStep.java:46)
        at org.gradle.internal.execution.impl.steps.CancelExecutionStep.execute(CancelExecutionStep.java:34)
        at org.gradle.internal.execution.impl.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:69)
        at org.gradle.internal.execution.impl.steps.TimeoutStep.execute(TimeoutStep.java:49)
        at org.gradle.internal.execution.impl.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34)
        at org.gradle.internal.execution.impl.steps.CreateOutputsStep.execute(CreateOutputsStep.java:49)
        at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:42)
        at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:28)
        at org.gradle.internal.execution.impl.steps.CacheStep.executeWithoutCache(CacheStep.java:133)
        at org.gradle.internal.execution.impl.steps.CacheStep.lambda$execute$5(CacheStep.java:83)
        at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:82)
        at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:37)
        at org.gradle.internal.execution.impl.steps.PrepareCachingStep.execute(PrepareCachingStep.java:33)
        at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:38)
        at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:23)
        at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:95)
        at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:88)
        at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:52)
        at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
        at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:34)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:109)
        ... 37 more
Caused by: org.flywaydb.core.api.FlywayException: Unable to instantiate class db.migration.FillTestData : db.migration.FillTestData
        at org.flywaydb.core.internal.util.ClassUtils.instantiate(ClassUtils.java:59)
        at org.flywaydb.core.api.configuration.ClassicConfiguration.setCallbacksAsClassNames(ClassicConfiguration.java:1457)
        at org.flywaydb.core.api.configuration.ClassicConfiguration.configure(ClassicConfiguration.java:1842)
        at org.flywaydb.core.api.configuration.FluentConfiguration.configuration(FluentConfiguration.java:1054)
        at org.flywaydb.gradle.task.AbstractFlywayTask.runTask(AbstractFlywayTask.java:545)
        ... 78 more
Caused by: java.lang.ClassNotFoundException: db.migration.FillTestData
        at org.flywaydb.core.internal.util.ClassUtils.instantiate(ClassUtils.java:57)
        ... 82 more

* Get more help at https://help.gradle.org

BUILD FAILED in 0s
1 actionable task: 1 executed

Could it be a setup error on my part?
I would like to learn more about it.

So Gradle knows there is a Java migration called db.migration.FillTestData (so it's unlikely to be a configuration issue), but is unable to actually create the migration object. Does the class have a public zero-argument constructor - even an implicit one? Are you able to share the source code for the migration? If you would rather not post publically then you can email<EMAIL_ADDRESS>and mention issue #2829.

@juliahayward
Thanks for the reply!
I created a constructor, and the result was the same.
Here's migrations.
https://github.com/mahaker/flyway-callback-java/tree/master/src/main/resources/db/migration

We've managed to reproduce the issue, and are looking at developing a fix. Hopefully for the next patch.

Okay so on further investigation, this is actually simpler than we thought. The issue is occurring because the callback class has not yet been built. You can fix this in one of 2 ways.
Solution 1: Make the migrate task depend on the classes task. You can do this by adding flywayMigrate.dependsOn classes to the end of the build.gradle file. Note: If you do this, and you want to run clean or repair or any of the other tasks, you need to add flyway{TaskName}.dependsOn classes for each task.
Solution 2: Call gradle like so: ./gradlew classes flywayMigrate

@Lyeeedar
Thank you for very good solutions!
I've confirmed that it works as expected, for each solutions.


Options for lookup_key

Hi - I wanted to add a new lookup key provider (for Azure Key Vault). I've created the function in the provider package but the options map is empty when the function is called. Is this functionality implemented yet?
func AzureKeyVaultLookupKey(c hieraapi.ProviderContext, key string, options map[string]px.Value) px.Value {
	vaultName, ok := options[`vault_name`]
	if !ok {
		panic(px.Error(hieraapi.MissingRequiredOption, issue.H{`option`: `vault_name`}))
	}

When running this always fails with Missing required provider option 'vault_name'
The hiera.yaml is
---
version: 5
defaults:
  datadir: data
  data_hash: yaml_data
hierarchy:
  - name: secret
    lookup_key: azure_key_vault
    options:
      vault_name: xxx

It should be implemented but I don't think there's any tests for it so it might well be that they aren't passed on correctly. I'll take a look.

You might find these lines helpful. Here, the lookup key function customLK is added and made visible to the loader: https://github.com/lyraproj/hiera/blob/53ba20c48b33d8fe501945a2585c66605ad644c0/lookup/lookup_test.go#L208-L227

Amazing - thanks for the quick turnaround

@hbuckle are you thinking about putting up a PR for your provider? it'd be cool to have more built-in capabilities!  if you'd rather keep it separate that's fine too - i'd love to link to the code from the README at a minimum.

@ahpook - yes, hopefully should have something up this week


We'd love your feedback !

[EN] http://bit.ly/review-Cocorico
[FR] http://bit.ly/Cocorico-avis

Could there be a function for Askers to post what they want and Offerors could provide a quotation for them?

First, let me say thank you for having an open-source version.  This is helping our startup get to market faster.  I understand that you want to save the higher functionality for your paid enterprise version.  However, the community version is a bit of a mess.  First, the demos are misleading as it seems that those are for the CE version when they are for the paid version.   Second many basic things don't work.  For example, you have a contact page and an admin section to manage that, but you did not include a delete option on the message.  In fact, you have left the delete out of every list function in the admin.  This would be a huge improvement to have delete.  Also, things like the configuration in the admin does not do anything.  Basics like site name, colors etc would be great.

First, let me say thank you for having an open-source version. This is helping our startup get to market faster. I understand that you want to save the higher functionality for your paid enterprise version. However, the community version is a bit of a mess. First, the demos are misleading as it seems that those are for the CE version when they are for the paid version. Second many basic things don't work. For example, you have a contact page and an admin section to manage that, but you did not include a delete option on the message. In fact, you have left the delete out of every list function in the admin. This would be a huge improvement to have delete. Also, things like the configuration in the admin does not do anything. Basics like site name, colors etc would be great.

Actually I wonder if there are any plans to bring back to life the CE? The demo's are promising but if it's not working I'm afraid it's risky even to give it a go as a start (I was thinking about using this to create an MVP to try and see how it goes and upgrade later; before investing a few thousand euro's in a great platform with no users yet. I have to say, it looks very nice and I'd love to try it out on a nice market but at least basic functionality and payments must work and be secure..) Is anyone actualy using the CE version in a production environment?

barbatrucNL, we are using it on our MVP.  It was a little bit of work getting it set up not using the docker version but we got it working. We did have to write our own Stripe integration to have a usable payment system.  It is unfortunate that the demo is of the EE not CE versions seems a bit misleading.  For us, it was a cheaper option to write the missing code then pay the $70k a year for the EE version.   The admin is quite lacking too but again we will write that in as we need to.

I guess you mean 7k.. If you mean Hatch..

not following what you mean Hatch?  We were quoted around $70k a year for the EE of Cocorico marketplace platform with full features.

oh, I see they rebranded and changed their pricing.  When we started they were Cocorico and pricing was around 70k a year.  Not surprised by the price restructuring it was way overpriced.  The other issue with Hatch that we had was that the EE version is a saas platform so you do not have access to the code to do any custom work and are their mercy.  We prefer to have full control.

As Cocorico seemed to have stopped the opensource development, I'm looking into Shareatribe Flex as an alternative (opensource front end, api based SaaS). An api based architecture that decouples the front end from the back end  is attractive for more reasons. Unfortunately Flex itself is not opensource.

we looked at sharetribe when we were trying to find a platform for this project.  I did not like that its proprietary and you are stuck on someone else echosystem.  Flex is only free to build but once you start using it you have to pay.  We just branched cocorico and now have our own platform not beholden to any one else.

We have not yet.  Currently, the version we have is customized to our needs.  We may put it out at some point when we get it more stable.


Text clipping in buttons

I suspect there is some text clipping in the buttons in the UI:

Assuming top right should be "Query to CSV" - notice the "V" is clipped
Assuming bottom left should be "Current Path" - notice the "h" is clipped.
To be honest, not sure the bottom left button is even needed as you can highlight the text and either CTRL+C or right click in the and select copy from the menu.
Cheers.

Also note, the checkbox overlaps with the query text box.

I tried to fix this issue in my last commit, but since I never saw the issues on my own computer, only someone who previously saw them can tell me if they're gone. Sorry it took me so long to get around to this.
@vinsworldcom , when you submitted that issue about the URLs box in the JSON from files and APIs form, I noticed some more similar text clipping in the title and one of the labels. I'd really appreciate if you could look at my other forms (find/replace, JSON->CSV, JSON from files and APIs) and let me know if there's still any clipping there.

Looks better:

Notice some still misalignment, but no clipped text in buttons:

Cheers.

Should be better now.


Support Interix?

It no longer exists for windows 10: https://en.wikipedia.org/wiki/Interix
Any reason to keep it around?  Is anyone still using it?

There may be VJ users that still run Interix but I don't think we need to worry about it for OVJ users. I left it in just to avoid making any mistakes while removing it. I did not have a lot of time to re-test things. A Windows 10 development that would be interesting to investigate is if OVJ will run in their implementation of the bash / ubuntu shell: https://msdn.microsoft.com/en-us/commandline/wsl/about


Can't login when my raspberry is offline

Hi,
I can't login in Portainer when I use my raspberry pi (Geopoppy project) in offline mode + hotspot wifi.
When it is connected in ethernet no worries.
I use portainer to manage gps tracking containers via docker-compose, it is therefore important that users can start their container autonomously on land without connection ( at sea, in the countryside....)
Any ideas?
my docker-compose: https://github.com/jancelin/geo-poppy/blob/master/docker-compose-arm32.yml

Portainer 1.19.1 on :9000

Can you share the logs of the Portainer container? What's happening, you get some invalid credentials when trying to login? Could you explain the error in details?

I had to wait until the next day to recreate the bug...
If my rpi is connected to the web (ethernet) once a day, then I can log in all day.
In absence of web (as this morning, boot on battery) Portainer does not accept the connection and tells me: Your session has expired
No logs via docker logs except except yesterday's:
2018/09/04 14:18:32 Templates already registered inside the database. Skipping template import.
2018/09/04 14:18:32 Starting Portainer 1.19.1 on :9000

@jancelin what happens when you enter credentials and click on Login?

I'm working on a date update problem....he tells me I'm yesterday
pirate@geopoppy:~$ date
Tue Sep  4 15:29:56 UTC 2018

jancelin@jancelin:~$ date
mercredi 5 septembre 2018, 09:57:04 (UTC+0200)

That would be the cause of the session expiration issues. Could it be that when connected to internet your Pi will sync the date?
Closing as I do not think this is related to Portainer. Feel free to comment/re-open if needed.


Image tools

I would like to contribute to this project with image tools. Instead of having the image convertion inside a ViewController.
But for that i need the xcode 8 swift 3 branch merged.

Hey @jonasman! The library has now been updated and revamped.
Please see version 2.0.


Package request: megasync

It is the client for the mega cloud service
here is the source:
https://github.com/meganz/MEGAsync

Resolved by #63690


the code about CDR and GDA

Hello! Thanks for your excellent work~
I'm interested in your work on the two biomedical datasets CDR and GDA, could you share the relevant code?
Best wishes!
and how to convert them into the same format as DocRED? Is there any tool to help with this?

Hello!
After reading your paper, I am very interested in your code on CDR and GDA data sets. Could you please share it with me?
Thank you very much.

你好！
看完你的论文后，我对你在CDR和GDA数据集上的代码非常感兴趣。你能和我分享一下吗？
谢谢。


Error when using pip install mimblewimble: secp256k1-zkp-mw: finished with status 'error'

I get this error when installing using pip on Linux subsytems for Windows:
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-1kcu0m6s/coincurve/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-urtrob43-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-1kcu0m6s/coincurve/
It is rather non-descriptive unfortunately.

I also got prolblems when installing on Windows using pip:
 cl : Command line warning D9002 : ignoring unknown option '-g'
      lax_der_parsing.c
      C:\Users\anynomous\AppData\Local\Temp\pip-install-gvvmq687\secp256k1-zkp-mw_7295ed43b1404a1ebebb32e7f9dd4b2d\secp256k1-zkp\contrib\lax_der_parsing.c : fatal error C1083: Cannot open compiler generated file: '': Invalid argument
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for secp256k1-zkp-mw
  Building wheel for siphash-cffi (pyproject.toml) ... done
  Created wheel for siphash-cffi: filename=siphash_cffi-0.1.4-cp310-cp310-win_amd64.whl size=30033 sha256=34b2821df53c4fd8579d7cc51de931c98ab0b3da6ba8d97ed7b3f9fdead35a3b
  Stored in directory: c:\users\anynomous\appdata\local\pip\cache\wheels\0d\66\19\7e6e26301164ccb69e11e790755ef7313c0c078e1f5b47716a
Successfully built siphash-cffi
Failed to build secp256k1-zkp-mw
ERROR: Could not build wheels for secp256k1-zkp-mw, which is required to install pyproject.toml-based projects

I tried alternative way of installing, installing secp256k1-zkp-mw like this worked
cd secp256k1-zkp-mw
git submodule init
git submodule update
pip3 install .

Installing mimblewimble-py like this did unfortunately not work.
git clone https://github.com/grinventions/mimblewimble-py
cd mimblewimle-py
git submodule init
git submodule update
pip3 install .

Error:
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-insmsnl8/coincurve/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-dk383sh6-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-insmsnl8/coincurve/

Hi!
Sorry you encountered build errors. Can you try the following way as a temp solution?
Start by installing secp256k1-zkp-mw as you did
cd secp256k1-zkp-mw
git submodule init
git submodule update
pip3 install .

then simply
pip3 install mimblewimble-py

I think it is the dependency secp256k1-zkp-mw that fails, but if already satisfied then mimblewimble-py should succeed normally.
This is just a temp solution, let me know if it worked out for you.


DWARF import should parse debug_frame if present

Internal binary justle justiciar justin justly

Done in 4.2.6177-dev


Typo

@y-taka-23 please sign the CLA so we can merge this

@rsmitty Sorry for the late reply, now signed.


mcumgr: Allow to configure taskstat and echo commands support

Those commands are not required for OTA and disabling them saves
628 bytes of flash.
Signed-off-by: Szymon Janc<EMAIL_ADDRESS>

Codecov Report

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

@@           Coverage Diff           @@
##           master    #9903   +/-   ##
=======================================
  Coverage   52.28%   52.28%
=======================================
  Files         213      213
  Lines       25964    25964
  Branches     5598     5598
=======================================
  Hits        13576    13576
  Misses      10150    10150
  Partials     2238     2238

Continue to review full report at Codecov.

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

send to upstream mcumgr, will be updated in separate PR when synchronizing zephyr with mcumgr master
https://github.com/apache/mynewt-mcumgr/pull/13


adds missing properties to ehcache configuration

adds missing properties to ehcache configuration.  The configuration was missing the following properties:

server side resource pools
defaultResource

PR: https://github.com/ehcache/ehcache3/pull/2079

closed with successful PR


Make ELSA Multitenant

Enable multiple systems operating on the same ELSA instance (for Google docs and LPaaS). Currently only one organization can operate on a given ELSA instance

@liquidsteves @nyccto-rapicastillo @jisaf
Looking into this more, I'm not sure whether this is worth the overhead. We would need to manage users or namespaces and permission them appropriately, so anytime someone new wants to use ELSA, we'd need to create a new user and keep track internally of users in some database so that we can oversee user ids, permissions, and resource allocation/separation. On the other hand, if we have the Docker image available for people to pull and they run their own container, we don't need to worry about this (and can fill out the AWS setup section to fill the gap for infrastructure setup). Thoughts?

Best to keep things as simple as possible. Less work is good.

This logic makes sense at this point.
Out of curiosity, would turning this serverless and moving to lambda functions make spinning up new instances any easier?
Alternatively, what about passing a key in with each request that simply uses a different config for translation api keys. So we just store different config files or env keys as a half way solution. That was all processing is done on a single tenant, but billing is managed based on the key sent in (if, in the future, someone can dictate what translation service is used then possibly just allow for multiple billing keys for each service in the same way?)


refactor(bindingMode): replace oneWay with toView

Closes #629.

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

thanks @tdeschryver!


A way to customzie exception-messages / how errors are written to the response

Adds a new interface IErrorWriter that allows consumers to implement their own error-writing to the response (or something else). For instance if we want to follow the "ProblemDetails"-standard for writing errors we can do it using this new interface/service.
Ideally I think hooking in with UseExceptionHandler (example) would be ideal. But this might mean koralium doesn't catch any exceptions. Maybe it should be optional. For instance with a new method:
MapKoraliumJsonGet(this IEndpointRouteBuilder endpointRouteBuilder, string pattern, bool handleExceptions).
This is especially nice if the consumer of this package uses koralium as well as another technology (like controllers) in the same project.
(Koralium.Transport.Json-exceptions could also be dealt with using the "Exception Handler lambda". Which would allow customization using the IExceptionHandlerPathFeature. But we still would need a way to customize how the response is written.)
This is just small "suggestion" and maybe not the real solution, but something that enables a bit of discussion.
The solution for GRPC/arrow flight would be different I imagine :)

Maybe the "map" endpoint calls needs to be extended? so "MapKoraliumJson(string, opt)" and "MapKoraliumJson(opt)" where one can configure more on one endpoint, such as setting what type of exception handling, and we can also then have different exception handlers per protocol.
Even the default implementation could be handled by the interface?

Yep that could be nice


Implement the CRUD methods

Taken from exercise 3:

The web application is considered to be finished if it supports at least four distinct use cases which are specific to your business model. Furthermore, in addition to those use cases, your web application has to:

provide read and write access to your model, i.e., you have to implement the CRUD methods (Create, Read, Update, Delete) for at least one of your model classes

Currently we do not implement any Update or Delete method in our project.
This issue is for discussing the model we use as well as who is responsible for it.

Delete class including all attached homework and update the title and description of a homework

Updating classes would be dead simple and probably super straight forward as we just have to reopen the model dialogue with the right prop parameters.
Deleting a class is more of a hassle in the backend as deleting a class means:

homework deletion
delete all submissions to those homeworks
delete membership in all the users (teacher and student) that were part of the class
and finally deleting the class itself

Updating an homework would be way more complicated as reloading the modal dialogue with all the exercises seems more complicated.
Deleting a homework would be easier though, just deletion of submissions and the homework itself.

As we now have to add the students manually, please update the CRUD methods for the classes dialog

@tum-aweink
I refactored the ClassListView and ModalDialogNewClass component as best as I could
Imo it is way better structured than before, but I wanted to ask you whether you could integrate selectedItems of ModalDialogNewClass into classToAdd? Or is there a reason, why you didn't do it in the first place?

Of course you can integrate it - at the time i was implementing the adding students to a class, i kept it separate as we used the submit method in the parent component and therefore it was not necessary. If you have switched all state handling into the modal component you can of course simply use the class object.


Circleci project setup

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 3

Complexity increasing per file
==============================
- application/redis-mysql-helidon/src/test/java/webapp/tier/service/MysqlServiceTest.java  1
- application/consumer-kafka-quarkus/src/test/java/webapp/tier/service/KafkaSubscribeServiceTest.java  2
- application/producer-kafka-quarkus/src/test/java/webapp/tier/service/generator/MessageGeneratorTest.java  1
- application/consumer-kafka-quarkus/src/main/java/webapp/tier/service/KafkaSubscribeService.java  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 3

Complexity increasing per file
==============================
- application/redis-mysql-helidon/src/test/java/webapp/tier/service/MysqlServiceTest.java  2
- application/producer-kafka-quarkus/src/test/java/webapp/tier/service/generator/MessageGeneratorTest.java  2
- application/consumer-kafka-quarkus/src/test/java/webapp/tier/service/KafkaSubscribeServiceTest.java  2
- application/consumer-kafka-quarkus/src/main/java/webapp/tier/service/KafkaSubscribeService.java  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- application/redis-mysql-helidon/src/test/java/webapp/tier/service/MysqlServiceTest.java  2
- application/consumer-kafka-quarkus/src/test/java/webapp/tier/service/KafkaSubscribeServiceTest.java  2
- application/consumer-kafka-quarkus/src/main/java/webapp/tier/service/KafkaSubscribeService.java  1
- application/producer-kafka-quarkus/src/test/java/webapp/tier/service/generator/MessageGeneratorTest.java  2

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Complexity increasing per file
==============================
- application/consumer-kafka-quarkus/src/test/java/webapp/tier/service/KafkaSubscribeServiceTest.java  2
- application/consumer-kafka-quarkus/src/main/java/webapp/tier/service/KafkaSubscribeService.java  1
- application/producer-kafka-quarkus/src/test/java/webapp/tier/service/generator/MessageGeneratorTest.java  2
- application/redis-mysql-helidon/src/test/java/webapp/tier/service/MysqlServiceTest.java  2

See the complete overview on Codacy


Bump to RSpec 3.9.

The one test failure was caused by change in RSpec 3.9:
https://github.com/rspec/rspec-expectations/pull/1080

Thanks!
Can you please push-force to retrigger the build? Seems unrelated:
timed out (https://api.rubygems.org/specs.4.8.gz)

Grab this if you need some inspiration.
Come on, be brave!

Closing in favour of #76

Thanks for the prompt @voxik we've merged #76 which handles this how we'd prefer (which is checking all versions of rspec against this and gating on 3.9 for the changed output). You should be able to run this now with the environment variable set for your version. Note you'll need to emulate our test file if you're not using it, as it sets up cucumber correctly.

:+1: thx a lot


⚠ Bofrost.at has degraded performance

In a19f8d3, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2682 ms

Resolved: Bofrost.at performance has improved in e3c0656 after 18 minutes.


New repository set up

Description
We need a new developer facing CLI for creating and developing Kyma Modules.
Acceptance Criterias

Create new Repository for developer facing KLM CLI
Find suitable naming (@janmedrek)

Proposal and check with POs

Check security settings align with other kyma repos
Add Jellyfish team as Codeowners
Check template-repository and align
Create test-infra configuration

Merge-Strategy
Double check with existing repos what needs to be set up

New Repository has been created here: https://github.com/kyma-project/modulectl
Tide and Prow will not be configured, since it is already be deprecated and will be removed soon. Security settings and branch protection rules have been setup correctly.


Halt InferenceRulesEngine using Rule

Is there a recommended way for a Rule to halt the firing process of InferenceRulesEngine?
Currently I'm clearing out the Facts map with .asMap().clear() but this breaks encapsulation and the law of Demeter, so it isn't a satisfactory solution.
Example:
@Rule(name = "early_exit_rule", description = "Halt the InferenceRulesEngine early if we have sufficient info", priority = 99)
public class EarlyExitRule {

    private final Facts facts;

    public EarlyExitRule(Facts facts) {
        this.facts = facts;
    }

    @Condition
    public boolean when(@Fact("should_exit_early") boolean shouldExitEarly) {
        return shouldExitEarly;
    }

    @Action
    public void then() throws Exception {
        System.out.println("should_exit_early == true -> halt the InferenceRulesEngine");
        // Clear out all other facts to early-exit the inference process
        facts.asMap().clear();
    }
}

Inference rules engines are not designed to be halted. The idea is to continuously select and run candidate rules until no more rules are applicable. So trying to halt the engine in the middle of the inference process goes against the goal in the first place.
I believe a properly configured DefaultRulesEngine is more appropriate for this use case. For example, I see the priority of EarlyExitRule is set to 99, so your can set rulePriorityThreshold  to 98 for example to halt the engine when it reaches this rule.
Do you agree?

I believe a properly configured DefaultRulesEngine is more appropriate for this use case.

Actually I do want to use the inference engine in this case. The default rules engine applies rules to facts once and only once. I want to be able to repeatedly apply rules to facts in order to generate more facts and fire rules again as necessary, but only until a goal has been reached. I'm able to do that with my toy example above, but it's a hacky solution.

it's fine to use the inference engine if you need it, you can still use the rulePriorityThreshold parameter to stop execution at your EarlyExitRule. Have you tried that?
BTW, I see nothing wrong with clearing facts to halt the execution. By design, a rule's action is not a function in this type of systems, it is an action that might have a side effect on facts: it can add, modify or remove facts to drive the execution flow of subsequent rules. So according to your statement:

I want to be able to repeatedly apply rules to facts in order to generate more facts and fire rules again as necessary, but only until a goal has been reached

do your rules remove facts at some point? I don't know the details of your use case, but:

if your rules do remove facts, I think your goal should be designed as: "your current goal" or "no more facts".
Otherwise, clearing out the facts at your "exit" rule is ok IMO.

wdyt?

Yes, I agree, but directly manipulating the underlying map in the Facts object feels hacky to me (hence my original question). It breaks OO encapsulation. I would expect asMap to return an ImmutableMap copy in an ideal world, or only a KeySet.
How do you feel about adding a clear method to Facts, or halt to InferenceRulesEngine (or both)?

directly manipulating the underlying map in the Facts object feels hacky to me (hence my original question). It breaks OO encapsulation. I would expect asMap to return an ImmutableMap copy in an ideal world, or only a KeySet.

I agree, and I consider this as a bug so I opened #267 (same for Facts#iterator for which I opened #268).

How do you feel about adding a clear method to Facts, or halt to InferenceRulesEngine (or both)?

I already tried to introduce a halt method (see https://github.com/j-easy/easy-rules/commit/e2e4cef33e2e1ba6e4520c42bfd0dd9dcc832278) but the problem is that the call to fire is blocking:
rulesEngine.fire(rules, facts); // blocking call here
rulesEngine.halt(); // too late when reached..

Do you see? It is possible to launch the rules engine in a different thread and halt it from another thread, but I don't like this idea because it forces me to run the engine asynchronously to be able to use a "feature" (I'm a firm believer in "Leave concurrency to the caller" from the the zen of go).
I think adding a clear method to Facts + fixing #267 is a good start for now, because as I mentioned, an action might clear facts by design for this kind of systems. Do you agree? If yes, I can proceed and add the method in the upcoming release.

Ah, that makes perfect sense. I agree that adding a clear method to Facts + fixing #267 is a good start for now.


⚠ Processors has degraded performance

In 1b70171, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 57 ms

Resolved: Processors performance has improved in b432a72.


CSV files

When using this package for querying my athena database, it keep creating junk CSV files and add them into my bucket.
how can i prevent that from happening ?

Solved.
Just create a dedicated folder in the bucket to hold all the CSV files, and pass this folder path to the config as the bucket path.


Update .NET Standard article for .NET 6

Fixes #27184.
Contributes to #27139.

Thanks David!

@gewarren, awesome changes! Thank you so much!


Is there a detailed example of how to run the screencast API in Chrome?

I've read alot of issues threads in this repo but it's not clear to me - is there a mechanism currently to capture screencast / css animation frames?
I tried using tracing but it saved only 5 screenshots. Tested on another page, it saved only 1 screenshot.
await page.tracing.start({path: 'trace.json', screenshots: true});
await page.goto('https://daneden.github.io/animate.css/');
await page.tracing.stop();

I'm happy with any solution at all, just as long as I can grab the animation frames somehow. - the more frames per second, the better.
thanks!

Related to https://github.com/GoogleChrome/puppeteer/issues/478

There's no recommended way ATM - only a few hacks here and there that might work from time to time. There are a lot of them on the tracker.
Will the screencast of the page satisfy you? If yes, then indeed #478 will be the way to go.


Failed to tokenize: langchain with gpt4all model

    112 if int(n_tokens) < 0:
--> 113     raise RuntimeError(f'Failed to tokenize: text="{text}" n_tokens={n_tokens}')
    114 return list(tokens[:n_tokens])

RuntimeError: Failed to tokenize: text="b" Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer.\n\ndu Home Wireless.\nUnlimited internet with a free router\n\ndu home wireless is a limited mobility service and subscription.\n\nOnce the device is activated, your home location will be assigned as the first usage location and will only work there. If you decide to move or shift locations, please request us to unlock it and it will be re-assigned to the new location.\n\nAs a new du Home Wireless customer, you\xe2\x80\x99ll receive an LTE router for internet connection at the time of the service application. It will include a Data SIM with unlimited data.\n\ndu Home wireless advantages.\nUnlimited data: Enjoy wireless connectivity with unlimited data for 12 months.\n\nHigh-quality streaming: Stream your favorite entertainment, chat and game at the same time.\n\n5G-enabled router: Connect all your devices with the latest WiFi 5 technology.\nWhat is du Home Wireless?\n\nWhat type of internet activities does the Home Wireless Plan support?\n\nIt supports the following internet activities depending on the plan you get:\n\nStandard internet activities\nVideo and music streaming\nGaming and VR\nSocial media\nWeb surfing\nEmail and office work\n\nCan I connect with more than one device at the same time?\n\nYes, you can. Ideally, the average number of connected devices shouldn\xe2\x80\x99t exceed 4 large screens on our Home Wireless Plus and Home Wireless Entertainment Plans.\n\nWill I always get a consistent speed?\n\nInternet speed is not guaranteed. Individual results will vary as it might be affected by many factors such as the weather, interference from buildings and network capacity. The areas wherein you\xe2\x80\x99ll get the best coverage experience are the following:\n\nNear a window\nIn an open space away from walls, obstructions, heavy-duty appliances, or electronics such as microwave ovens and baby monitors\nNear a power outlet\n\nWill I be able to bring my own router?\n\nYes, you have the option to use your own router.\n\nTo connect, check the below steps:\n\nInsert your du SIM card in the back of the router\nConnect to power and turn on the device\nConnect to your router using the Wi-Fi SSID and WiFi password information at the sticker on the bottom\nFor connection steps, check the video: Watch now\n\nHow can I subscribe to the Internet Calling Pack on the Home Wireless Entertainment Plan?\n\nThe free Internet Calling Pack subscription will be added to your plan for a period of three months by default.\n\nWho is eligible to get the free Internet Calling Pack?\n\nNew Home Wireless Entertainment subscribers will enjoy this added benefit.\n\nHome Wireless plans are our new range of Home Plans, that offer instant connectivity, unlimited data and premium entertainment so you can enjoy instant, plug-and-play high-quality internet.\n\nWhere does this service work?\n\nThis service has limited mobility. Once the device is activated, your home location will be assigned as the first usage location and will only work there. If you decide to move or shift locations, you will have to ask us to unlock it so your Home Wireless can be re-assigned to your new location.\n\nWhat kind of router do I get with this plan?\n\nYou will receive a 5G-enabled router.\n\nWhat happens if I don\xe2\x80\x99t have 5G?\n\nIt will automatically connect to 4G.\n\nIs a Landline required for a home wireless connection?\n\nNo, it\xe2\x80\x99s not.\n\nHow does this service work?\n\nAs a new Home Wireless customer, you\xe2\x80\x99ll receive a router for internet connection at the time of your service application. It will include a Data SIM with unlimited data.\n\nQuestion: What is du Home Wireless?\nHelpful Answer:"" n_tokens=-908

are you using the Llama Cpp? I am encountering the same issue

@adriacabeza  yes im using gpt4all
llm = LlamaCpp(model_path="./gpt4all-converted.bin") # model
llama_embeddings = LlamaCppEmbeddings(model_path="./gpt4all-converted.bin")  # embeddings
docsearch = FAISS.from_texts(texts, llama_embeddings)

I'm getting same error, but running:
from langchain.chains import RetrievalQA

qa = RetrievalQA.from_chain_type(
    llm=llm,
    chain_type="stuff",
    retriever=index.vectorstore.as_retriever()
)

query = "De que se trata el decreto 4927?"
qa.run(query)

wondering if I can "validate" using llama_cpp.llama_tokenize

I encountered the same error, with a similar setup, where I used Chroma and RetrievalQAWithSourcesChain. When using RetrievalQA.from_chain_type and the .run(query) method instead, I can successfully get results.
This works:
from langchain.vectorstores import Chroma
db = Chroma.from_documents(texts, embeddings)
retriever = db.as_retriever()
from langchain.chains import RetrievalQA
qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever)
query = """Below is an instruction that describes a task. Write a response that appropriately completes the request.

How many items are listed?"""
print(qa.run(query))

This throws the error:
from langchain.vectorstores import Chroma
db = Chroma.from_documents(texts, embeddings)
retriever = db.as_retriever()
from langchain.chains import RetrievalQA
qa = RetrievalQAWithSourcesChain.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever)
query = """Below is an instruction that describes a task. Write a response that appropriately completes the request.

docs = db.similarity_search(query)
print(qa({"question": query}, return_only_outputs=True))

Try this walk-around, passing the search_kwargs={"k": MIN_DOCS} force the doc search to use only one document, I realize that the error happens when there is only one document loaded for Q&A.
from langchain.chains import RetrievalQA

# Just getting a single result document from the knowledge lookup is fine...
MIN_DOCS = 1

qa = RetrievalQA.from_chain_type(
    llm=llm,
    chain_type="stuff",
    retriever=docsearch.as_retriever(search_kwargs={"k": MIN_DOCS})
)

query = "De que trata el DECRETO 4927 DE 2011 en colombia?"
qa.run(query)

same error occured

Review the content that you have indexed. Ensure you dont have any special characters or escaping characters in your dataset IE: "  or /
I found my data to contain this as it was scaped from a url directly into text file hence had markup which was causing the issue.

I am experiencing the same issue with the following commands:
llm = LlamaCpp(model_path=r"D:\AI\Model\vicuna-13B-1.1-GPTQ-4bit-128g.GGML.bin",n_ctx=2048, seed=5, n_threads=7, temperature = 0, repeat_penalty=1, echo=True,f16_kv=True)

text_splitter = CharacterTextSplitter()
with open(r"D:\AI\Langchain\mydoc.txt", encoding='utf-8') as f:
    state_of_the_union = f.read()
texts = text_splitter.split_text(state_of_the_union)

docs = [Document(page_content=t) for t in texts[:3]]

chain = load_summarize_chain(llm, chain_type="map_reduce")
myoutput = chain.run(docs)

myDoc.txt is long, gets broken into parts (by langchain), the 2 first parts get summarize well, then the error occurred with the 3rd part. The 3rd part is longer than the 1st and 2nd part.
myDoc.txt does not have any special characters.
I suspect the problem comes from configuration of Size of context, vs Size of parts of text

Try this walk-around, passing the search_kwargs={"k": MIN_DOCS} force the doc search to use only one document, I realize that the error happens when there is only one document loaded for Q&A.
from langchain.chains import RetrievalQA

# Just getting a single result document from the knowledge lookup is fine...
MIN_DOCS = 1

qa = RetrievalQA.from_chain_type(
    llm=llm,
    chain_type="stuff",
    retriever=docsearch.as_retriever(search_kwargs={"k": MIN_DOCS})
)

query = "De que trata el DECRETO 4927 DE 2011 en colombia?"
qa.run(query)

How would this apply in the case of load_summarize_chain ?
Do I try that?
chain = load_summarize_chain(llm, chain_type="map_reduce", retriever=docsearch.as_retriever(search_kwargs={"k": MIN_DOCS}))

I am encountering the same issue when using Chroma.from_documents to load pdf documents by llama.cpp embeddings

I am getting the same error by following the official tutorial from the docs: https://python.langchain.com/en/latest/modules/indexes/retrievers/examples/chroma_self_query_retriever.html
The only difference is that I use LlamaCpp with LlamaCppEmbeddings and ggml-gpt4all-l13b-snoozy.bin


Change handle_packet_in method behavior

This PR changes handle_packet_in method to check if the ports inside actions list aren't disable from 'config' field (i.e.: OFPPC_NO_FWD flag)  when sending a packet_out message.
Fix kytos/of_core#79

Couldn't the check be in _create_packet_out?

It can be, it's really better. I'll change this.
Thanks @ajoaoff

Hi guys,
The patch seems to be very good for me, except for the lack of logs, exceptions, or any other information that could help the kytos user to know that the packet_out is not being sent due to the port disable. Don't you guys think it should register a log event saying the packet_out was not sent and why? Especially here: https://github.com/kytos/of_l2ls/pull/19/files#diff-5bc02cefb3ea9e27f1a6776eabd1935dR133-R135

Superseded by #21.


starknet react kakarot connector

to fix your trouble check this solution click
maybe this will solve your problem.

done, see https://www.npmjs.com/package/@starknet-react/kakarot


ere: https://build.opensuse.org/package/show/openSUSE:Factory/libvpl

@StefanBruens
Fix to official URL, again sorry for my mistake and confusion.

@cabelo Should this be closed? It is no clear what issue is being reported .

done


sync/once.Once.doSlow remove the atomic.StoreUint32 (make better)

What version of Go are you using (go version)?
1.14.0
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
windows Amd64
In function doSlow as follow:
func (o *Once) doSlow(f func()) {
	o.m.Lock()
	defer o.m.Unlock()
	if o.done == 0 {
		defer atomic.StoreUint32(&o.done, 1)
		f()
	}
}

make better as follow:
func (o *Once) doSlow(f func()) {
	o.m.Lock()
	defer func() {
		if o.done == 0 {
			o.done = 1
		}
		o.m.Unlock()
	}()
	if o.done == 0 {
		f()
	}
}

because:
1,  merge the two "defer"
2, do not need the atomic.StoreUint32,  the "done = 1" is in the lock scope of mutex
make better performance

This isn't correct. There needs to be an atomic store of o.done, because o.done is read inside (*Once).Do. The danger here is that the first thread calls Do, runs f, and then sets o.done=1. Another thread comes along, sees o.done set to 1 (in (*Once).Do, without grabbing the o.lock), and returns immediately. In that case, the second thread is not guaranteed to see all the side effects of f according to the memory model. We need an atomic store and an atomic load to establish a happens-before relationship.
The other optimization here, merging the defers, might make sense. Benchmark it and find out.

I'm not sure this matters in practice. doSlow should normally be executed O(1) times in the lifetime of a sync.Once.
Sure, you could potentially rewrite doSlow as
func (o *Once) doSlow(f func()) {
	o.m.Lock()
    if o.done != 0 {
		o.m.Unlock()
        return
    }
	defer func() {
		atomic.StoreUint32(&o.done, 1)
		o.m.Unlock()
	}()
	f()
}

but I wouldn't hold my breath on being able to measure the difference.

Especially with the faster defers in 1.14, this seems unlikely to make a difference.  But, sure, write a benchmark and see.


Controllers/endpoints are not included in build

Informations

Type
Version

Question
4.32.0

Description
When I build my project, all routes/controllers don't seem to get included. They work on dev, but not on production. Am I doing something wrong? I'll try to include everything that might seem relevant to the issue.
I only have a single controller and service.
I also tried to include
mount: {
    '/': `${path.resolve(__dirname)}/controllers/*.ts`,
  },

to the ServerSettings. This works on dev, but that didn't resolve the production issue.
Acceptance criterias
Server.ts
import 'reflect-metadata';
import { ServerLoader, ServerSettings, GlobalAcceptMimesMiddleware } from '@tsed/common';
import '@tsed/typeorm';
import '@tsed/socketio';
import * as cors from 'cors';
import * as bodyParser from 'body-parser';
import * as cookieParser from 'cookie-parser';
import * as compress from 'compression';
import * as methodOverride from 'method-override';

@ServerSettings({
  port: Config.port,
  rootDir: path.resolve(__dirname),
  acceptMimes: ['application/json'],
  // Set up TypeORM
  typeorm: [ormconfig],
})
class Server extends ServerLoader {
  public $onMountingMiddlewares(): void|Promise<any> {
    this
      .use(GlobalAcceptMimesMiddleware)
      .use(cors({ origin: '*' }))
      .use(cookieParser())
      .use(compress({}))
      .use(methodOverride())
      .use(bodyParser.json())
      .use(bodyParser.urlencoded({
          extended: true,
      }));

    return null;
  }

  public $onReady() {}

  public $onServerInitError(err) {
    console.error(err);
  }
}

new Server().start();

ormconfig
const srcPath = path.resolve(__dirname, '..');

const db = secret.getDatabaseInfo();
const options: ConnectionOptions = {
    name: 'peggy-pong',
    type: 'mongodb',
    host: db.host,
    port: db.port,
    database: db.database,
    synchronize: true,
    logging: false,
    entities: [`${srcPath}/entities/*.ts`],
    migrations: [`${srcPath}/migrations/*.ts`],
    subscribers: [`${srcPath}/subscribers/*.ts`],
 };

export default options;

controller
import { Controller, Get, Post, BodyParams, Required, Res } from '@tsed/common';
import * as Express from 'express';
import _ from 'lodash';
import UserService from 'services/User';

@Controller('/user')
class UserController {
  constructor(
    private userService: UserService
  ) {}

  @Get('/')
  public async all() {
    return this.userService.all();
  }

  @Post('/')
  public async create(
    @Required() @BodyParams('name') name,
    @Required() @BodyParams('password') password,
    @Required() @BodyParams('color') color
  ) {
    return this.userService.create({ name, password, color });
  }

  @Post('/login')
  public async login(
    @Res() res: Express.Response,
    @Required() @BodyParams('name') name,
    @Required() @BodyParams('password') password
  ) {
    return this.userService.login(name, password);
  }
}

export default UserController;

service
import * as i from '@types';
import { Service, AfterRoutesInit } from '@tsed/common';
import { TypeORMService } from '@tsed/typeorm';
import { Connection, MongoRepository } from 'typeorm';
import * as entities from '@entities';
import ormconfig from 'config/ormconfig';

@Service()
class UserService implements AfterRoutesInit {
  private connection: Connection;
  private repo: MongoRepository<entities.User>;

  constructor(
    private typeORMService: TypeORMService
  ) {}

  $afterRoutesInit() {
    this.connection = this.typeORMService.get(ormconfig.name);
    this.repo = this.connection.getMongoRepository(entities.User);
  }

  async create(user: i.NewUser) {
    // create user
  }

  async all() {
    return this.repo.find();
  }

  async login(name, password) {
    // login process
  }
}

export default UserService;

What do you mean by "build project" ?
Note: The glob pattern should be '/': ${path.resolve(__dirname)}/controllers/**/*.{ts,js}

When I run the project through webpack to compile it to Javascript is what I mean by building the project. When I run the compiled/javascript version of my code, the server has no endpoints.

Ok I already give an answer for this subject here https://github.com/Romakita/ts-express-decorators/issues/455
I never understand why some developers want to compile backend code with webpack XD
It add a lot of code and change the project structure (that explain your bug) which aren't required in Node.js context.
So I'll never implement support for webpack, isn't required, because you can import manually your services and controllers, instead of using glob pattern.
import {Ctrl} from "./path/to/myController";
import "./path/to/myService.ts";

@ServerSettings({
   mount: {
     "/rest": [
        Ctrl
     ]
  }
})

Webpack isn't able to follow dynamic import (with glob for example) and create a bundle with your classes. The solution is to use require.context from webpack to import a list of files. But I think you won't have require.context in development mode (excepted if you use run your code throught webpack  in dev mode).
Good luck and see you ;)
Romain

What would you recommend I use to compile my code instead of webpack?


Why is your model‘s inference so much faster than original ssd？

@xtanitfy The original ssd speed reported in the paper was tested under an old version of cudnn (V4). Actually we re-implement the ssd model with pytorch and achieved much faster speed, as showed in the experiment of our paper.


use opengraph image as fallback for thumbnails on topic & magazine cards

Topic pages and magazine articles using the new video banner won't have a defined hero image; this is a problem when these pages are linked to with cards as we require (and should continue to require) an image.
We can use the open graph image for social media as fallback in these cases.
For the magazine landing page, we will need to add indexing of the open graph image in Algolia similar to how we did with the hero image.

Acceptance criteria

[ ] Hero image is used as card thumbnail when defined
[ ] Open graph image is used as card thumbnail if defined and hero image is not defined
[ ] Card(s) do not render when neither hero image nor open graph image is defined

This is ready for technical review @fernandolucchesi @padms @bhavi25 @nilsml
It's a pretty simple change, most of the code changes are actually in the search indexer but those are also very simple and straightforward.
We need to do a deployment of the search code for this to work for the magazine index page.

LGTM ✅

Hi @meols @NickHaggerty1
With this issue we are adding a change to how cards work with images; because a hero image is not a mandatory field in Sanity, we chose to not render cards for topic pages/magazine articles/news articles if said page does not have a hero image when we first added cards - since it would look very weird.
This issue adds functionality that if there is no hero image, it will check if there is a open graph image for social media defined and use that as fallback. The main idea behind it was that the new video banner won't have a hero image, so we needed a different way of handling that - but we're currently also looking into using the thumbnail functionality of Mux for that.
In reality this probably won't have much of an impact as the editorial team is pretty good with always adding a hero image, but it's good to have this as a "just in case" feature.

@SvSven approved


chore(deps): update nx monorepo to v20.0.12

This PR contains the following updates:

Package
Type
Update
Change

@nx/angular (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/cypress (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/devkit (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/esbuild (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/eslint (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/eslint-plugin (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/jest (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/js (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/node (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/playwright (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/storybook (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/vite (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/web (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/webpack (source)
devDependencies
patch
20.0.11 -> 20.0.12

@nx/workspace (source)
devDependencies
patch
20.0.11 -> 20.0.12

nx (source)
devDependencies
patch
20.0.11 -> 20.0.12

[!WARNING]
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

Release Notes

nrwl/nx (@nx/angular)
v20.0.12
Compare Source
20.0.12 (2024-11-08)
🩹 Fixes

core: create different dummy tasks for different targets (#28837)
core: do not depend on ci info crate (#28850)

❤  Thank You

Jason Jean @FrozenPandaz

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

⚠ Artifact update problem
Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:
File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache
(node:685) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:683) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:691) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

File name: package.json
Command failed: npx --no-install nx run-many --target=lint --all --parallel --fix --skip-nx-cache

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.


Combine MFL into single languages entry

Trello card
N/A
Context and changes
We've combined all the languages, which all shared the same bursary amount, into a single Languages entry.
It also encompasses 'ancient languages' like Latin and Greek, and is labelled as such.
As a result, the bursary has been removed from classics.
Guidance to review
Is "English as a second language" a language, should it have a bursary attached?

@peteryates
Happy with this Pete and have confirmed with FI team that 'English as a second language' counts as English to no bursary.


Add a @View annotation

Add a @View annotation to have the choice to either annotate the presenter or
the view.

You could have either

@Presenter(view=OneView.class)
public class OnePresenter ... {}

or

@View(presenter=OnePresenter.class)
public class OneView ... {}

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 1 Oct 2010 at 11:29

Issue is closed.