Feature/modify calorie intake calculator

Description

I have scaled up the Calorie Intake Calculator which now allows the users to enter the meals and the day and get the nutrient composition information accordingly.
Related Issue

Allows the retrieval of information related to multiple meals at once.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Motivation and Context

This feature is important to provide users with an accurate understanding of their daily calorie intake and nutritional breakdown, allowing them to make informed dietary choices. It will also make the app more personalized and user-friendly.
How Has This Been Tested?

The project has been set up and tested on the local machine on various inputs of days and meals.
Screenshots (if appropriate):

PS: Calorie and Protein info not available as it was restricted to premium users on the nutrition-api.
Checklist:

[x] I have registered myself at Contrihub website.
[x] My code follows the code style of this project.
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] Any dependent changes have been merged and published in downstream modules
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

@Gprakhar141 Cann't U make item quantity dynamic? User manually enters the item quantity and as per that It will showing the result.

@Gprakhar141 Cann't U make item quantity dynamic? User manually enters the item quantity and as per that It will showing the result.

In what sort, I mean if I select snacks and dinner will I have to give the quantity of each item in snacks and dinner for that day separately???

If u cannot do this then mention in side that it is per 100gm so that user get to know. Ig it would be better to write side of the calculate calorie

Actually doing it would make it frontend as well as backend a lot more cluttery as the user would have to enter each quantity.
It is better to mention the assumption(I have assumed 100g of each food item).

Should I do it???

Yes. Just mention it on frontend

Also make the ui looks better like the alignment of all the things it will give u bonus points

Wait a second I will raise another PR then.


Does the driver have compatibility issues with server 2022?

Does the driver have compatibility issues with server 2022?

I use drivers in server 2022, but for some unknown reason I cannot use the copy folder

I am not aware of any server 2022 issues. Could you explain what you mean by copy folder ? Can it be repro with the samples and the native samples ?

When I was using the driver in 2022, I was unable to copy the file to my system for unknown reasons, but in win11 and server2019, there is no problem. The error code is 0x80070057

Windows server 2022 probably send different requests to Dokan during copy which is forwarded to your implementation. I would suggest looking at what happens during the copy and see if there is some error or improper data returned that could be the root cause.

Windows server 2022 probably send different requests to Dokan during copy which is forwarded to your implementation. I would suggest looking at what happens during the copy and see if there is some error or improper data returned that could be the root cause.

He got the error code 0x80070057

I imagine this is the error prompt by Explorer ? I was referring to the mirror or your filesystem implementation activity.

I imagine this is the error prompt by Explorer ? I was referring to the mirror or your filesystem implementation activity.

How do I need to observe it

You could use Procmon with a filter on explorer to see what is happening and match the activity in the dokan logs.

You could use Procmon with a filter on explorer to see what is happening and match the activity in the dokan logs.

Ok, I'll try


Update Portainer app to the latest version

This issue is a:

[ ] Bug Report
[x] Enhancement suggestion
[ ] Feature request

If the issue concerns an existing Marketplace application, please tag the maintainer of the application (found in manifest.yaml) below:
Enhancement suggestions / feature requests
Currently, we have Portainer version 2.16.2 installed by Civo marketplace as a newer version 2.18.4 is available, so it needs to be updated to the newer version. We kindly request an update to the latest version of Portainer on the Civo marketplace to ensure that we have access to the most recent features and improvements.
@saiyam1814 is the maintainer for this app, so I request you to please take a look into this.

Portainer now give out free node keys for up to three nodes, requiring version 2.18.4 at a minimum for the keys to work


Support for TXXX and UFID frames

I mainly want this to work with musicbrainz.org ID's

Merged. Thank you for this PR!


AddressComplete: No data available for Heard Island and Mcdonald Islands

Description
Blank response for Address Complete shows up in English when filling out in French.
Steps to reproduce

Create a form with the address complete component

Details

Browser: Chrome
Operating system: Mac
Environment: Staging
Language: English
Viewport: Desktop
Output: cm35vgbuo000113ka5bzvgv0t

Expected behaviour
Some data about the address should be available in Street Address drop down. The other fields should also refresh from previous selections (related to issue #4593)
Screenshots or videos

@samsadasivan - Can you expand on this with example addresses that didn't work?

Yes! Basically when I select this country, then I go to the street address -> Nothing populates in the street address area. I will add a video!

Looks there are no Addresses available in the API at all for these countries. Closing this as it matches the way the current address complete works on their site.


LICENSE files are missing from the published crates

Hello,
It appears that the releases of dotenvy on crates.io do not include a license file. The MIT license requires all copies of the source code to include the text of the license:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

It would be appreciated if you could address that either by copying or by linking LICENSE into each crate in one of the following releases.
Thanks in advance!

Thanks for pointing this out. Would you like to make a PR?


SCV-437 adding DocDownloaderRedisCache module

Description
This PR includes the following proposed change(s):
Initial check in/import for the DocDownloaderRedisCache
Add basic working unit test by having a profile test and prod to separate each mode to run

{List all the changes, if possible add the jira ticket #}
https://jag.gov.bc.ca/jira/browse/SCV-437

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested? yes unit tested, locally tested
Please describe the tests that you ran to verify your changes.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[x] New and existing unit tests pass locally with my changes

@pabdi Peiman, feel free to merge the PR. It looks good - I was just commenting out as a general thoughts to consider, not as a call for action.
It looks good on my side.


Can cycloneDX be generated for unmanaged package dependencies?

Hello. I am a newbie. I wanted to ask that if my software project is not using any dependency manager in its development. for eg. I am creating a java REST service and i manage all my dependencies without any tool like maven or gradle. Then is it possible to have a software bill of materials of it? to generate a cyclonedx bom so that it can be used in dependency track?

If a team is manually managing dependencies, it's certainly not a good practice, but those teams are essentially responsible for managing their BOM manually as well.
CycloneDX is simply a specification (currently just XML, but with JSON/YAML support coming soon). So anyone can write the BOM XML. There currently isn't a tool that I'm aware of that allows users to create a BOM from a UI (e.g. Electron).
There is however, a Java core library that can be used to programmatically create the BOM model which can output the resulting bom.xml.

Oh alright thanks.
Also, can you please also tell me how does the core library works in general? does it traverse through all project files and identifies libraries used? how programmatically? is there any tutorial or help about how to use it because its github documentation seems a little limited.

Files, no. The core library is just a model representation of a bom and the associated classes to generate or validate one. The various CycloneDX implementations (maven, gradle, npm, ruby gem, python, etc) perform the analysis of project files for their respective ecosystems and generate boms from them.


Add additional env vars to login

When logging into a cluster I'd like some additional environment variables to be available to me, based on what type of cluster it is, and some for both:
ALL:

OCM_ENV - should be one of production, staging, integration
OCM_REGION - should default to global (this one is for future-proofing, so we can leave this off until we need it)

Classic:

HIVE_NS - should be formatted: uhc-$OCM_ENV-$CLUSTER_ID
HIVE_NAME - should be the user-readable hive name: hive-stage-01, etc
HIVE_ID - should be the Cluster ID of Hive

Hypershift:

MC_ID would be set to the Manager Cluster ID
SC_ID would be set to the Service Cluster ID
HCP_NS would be set to ocm-$OCM_ENVIRONMENT-$CLUSTER_ID-$CLUSTER_NAME
HC_NS would be set to ocm-$OCM_ENVIRONMENT-$CLUSTER_ID
KUBELET_NS would be set to kubelet-$CLUSTER_ID

Not opposed to this at all.  Extra ENVs are totally useful, and welcome.
This is tricky.  I feel very strongly that ocm-container should be usable without installing any other tools on the host, so we'll either need to code up ocm lookups via token into the golang stuff (which I'm not opposed to - some of that exists here, but is not used at all yet: https://github.com/clcollins/ocm-container/blob/golang/pkg/ocm/ocm.go ), or move it into the internal container and process it via bash, which we do a little of, but is really messy and makes startup take longer.
A lot of the ocm stuff is cribbing from osdctl, which is unfortunate. We really should try to get @AlexVulaj's ocm-common package stuff off the ground, if we can.  There's too much code duplication here.
Finally, we also want to consider startup time - whatever we do here, we need to be really cognizant about how many calls we make to external services and external latency.  One of the big complaints I hear from folks who choose not to adopt ocm-container is the startup time, and they're not wrong.
We should look at the minimum calls we need to make for any given cluster, both internal and external, make sure all required calls to get started are as concurrent as possible, and any subsequent data we need is called as needed (automatically, of course, so at least it feels like what you're going for here).

ocm backplane login shows a list of namespaces if we login with the --manager flag.
Maybe we can co-ordinate with those lovely folks to set those NSes as env vars (if that doesn't already happen) so everyone can benefit from this.


Support parameters "deleteFilesOlderThan" or   "deleteFilesIfMoreThan"  and "filesToDeletePattern" in file target

I want to write each entry in a new file and be able to delete if number of files with the same prefix ( generally speaking - with the same name pattern defined as RegEx) exceed the limit (e.g. 100) or if they older than determine period(e.g 2 days).
The similar suggestions can be found at
http://stackoverflow.com/questions/7833431/rolling-file-log-in-console-application-using-nlog

Start a new log file on each run. So each time the application is started, a new log file should be created.
 i want to keep the x latest runs.

and at
http://nlog-forum.1685105.n2.nabble.com/Re-New-features-in-NLog-please-read-and-make-comments-td1685288.htm

Such a "deleteFilesOlderThan" option would be roughly what we'd like,
but it would have to do so according to the filename pattern...so you'd
probably have to transform ${shortdate} into an appropriate regex match,
and only delete matching filenames older than the specified date.  It is
possible that different loggers would need different values, or that
there might exist non-log files in the same directory.

Another Related discussion
http://stackoverflow.com/questions/5565597/delete-log-files-after-x-days/6157576#6157576

This gets important, when multiple, independent instances of your application run in parallel (think of visual studio) but you want to keep a single log for each run. My scenario:

Create a new log file for each run. Possible via fileName="foo${cached:${date:format=yyyyMMdd_HHmmss}}.log"
Multiple instances can run in parallel (thus archiving doesn't work for me, second process would move log file of the first one)
Do not fill up the hard drive over the years! Thats the missing feature.

A simple but dangerous solution would be something like
deleteOldFilesPattern="foo*.log"
deleteOldFilesAge="5 days"

Difficult to test for the nlog-user, easy to get wrong. In my case, multiple apps are logging to %programdata%\companyname\ directory and I would have to double check my glob pattern to avoid deleting any other log files.
A sophisticated, complex solution would infer, if a file matches the dynamic filename. Phew. A restricted support for ${shortdate} or ${longdate} is certainly doable.

Have you tried this configuration, that performs automatic archive operation by using dated-filename and also supports cleanup when too many files:
    fileName="${logDirectory}/Log.${date:format=yyyy-MM-dd-HH}.log"
    archiveFileName="${logDirectory}/Log.{#}.log"
    archiveDateFormat="yyyy-MM-dd-HH"
    archiveNumbering="Date"
    archiveEvery="Year"
    maxArchiveFiles="60"
    keepFileOpen="true"
    concurrentWrites="true"

archiveFileName - Using {#} allows the archive cleanup to generate proper file wildcard.
archiveDateFormat - Must match the ${date:format=} of the fileName (So remember to correct both date-formats, if change is needed)
archiveNumbering=Date - Configures the archive cleanup to support parsing of filenames as dates.
archiveEvery=Year - Activates the archive cleanup, but also the archive file operation. Because the configured fileName automatically ensures the archive file operation, then we don't want any additional archive operations (Ex. avoiding generating extra empty files at midnight).
maxArchiveFiles - How many archive files to keep around (your suggested deleteFilesIfMoreThan)

With NLog 4.5 (Still in BETA), then it will be a lot easier (As one just have to specify MaxArchiveFiles). See also https://github.com/NLog/NLog/pull/1993

@snakefoot thanks, this combination did the trick. The only issue left, was that the file changes every hour (your code) or every second (my code). The keepFileOpen option looks intriguing, but does not what you expect in this configuration. I added ${cached: ... } to keep the filename for the application lifetime and this really works as intended:

Every application will get its own single log file (unless two apps are started in the same second)
Apps can run in parallel, keep their original log file and don't interfere with each others log
Old logs are deleted
Each run of the application has a single log file, except for Dezember 31. at midnight... where the log is split. Acceptable, will never happen for my customers.

My final solution for future reference and other readers:
    <target name="f" xsi:type="File"

                   fileName="logs/Log ${cached:${date:format=yyyy-MM-dd HH_mm_ss}}.log"
            archiveFileName="logs/Log {#}.log"
            archiveDateFormat="yyyy-MM-dd HH_mm_ss"
            archiveNumbering="Date"
            archiveEvery="Year"
            maxArchiveFiles="10"

            layout="${longdate} ${uppercase:${level}} ${message}" />

Looking forward to v4.5 - seems a lot of stuff will change.

Would be nice to include this in the samples - I think the "multiple app instances with separate log files" is a relevant scenario not covered, yet.

Would be nice to include this in the samples -

You could edit the wiki? ;)

I selected the File-target wiki page for this addition.
Hopefully, someone finds it useful!
I did not modifiy Tutorial (made for beginners) and Examples (I've never looked into that one until today).

:+1: thanks!

@304NotModified This issue has been mostly resolved with NLog 4.5 that allows you to do this:
<target name="logfile" type="File" fileName="Log-${shortdate}.txt" maxArchiveFiles="7" />
And it will correctly generate a file-pattern from fileName= and cleanup the oldest matching files.
It would make sense to close this multi-feature-request. Since the remaining issue about removing files older than X days already exists here here #311 (Now marked as up-for-graps),

Agree on that, thanks!


Advanced Setting echo

Describe your problem
There is a problem with the advanced tab, the page prints line 195 to 272 instead of showing the actual data.
Bludit version
3.10 beta
PHP version
7.2

<? => <?php

I uploaded a fix. thanks


Login fails

Used the powershell script to register the application in Azure AD. That worked, but when I run the application and try to login, my login does not succeed and it continuously redirects me back to the login page without an error message.

@mleziva can you please tell us a bit more. Which browser do you use (did you try with Chrome). are you using work/school accounts or Microsoft Personal Accounts (MSA)

I experienced a similar problem. I used a AZURE AD user id/password. I used IE11. I used VS EXPRESS 2017. I could not get it work with this configuration. I could login but the website never reflected that I logged in. I would love some help getting this to work in IE11. I spent a good 30-45 minutes stepping through the code and trying to research the issue. Then I tried Edge and it works perfectly in Edge. But I don't believe the debugger breakpoints work in Edge.  I don't have any more time to work on this today. Can you help point me in the right direction to get this to work for IE11? From what I can tell the token being returned is invalid. The status response back from adal is "Invalid_State" in IE11...

This sample has been archived.
The newer one can be found at: https://github.com/Azure-Samples/active-directory-javascript-graphapi-v2


HL7 Messages Not Being recieved

Hi
We are currently using HL7-Fuse in one of our Projects and there is a strange thing that we are noticing right now some of the orders ORM messages are being received while others are not and there is no log of the  messages kindly drop in your email @dib0  or @jrbateman so that I can contact you regarding this issue.
Thanks & Regards
Harmohan Singh

<EMAIL_ADDRESS>On Sun, Apr 30, 2017, 11:22 PM harmohan-jemstone<EMAIL_ADDRESS>wrote:

Hi
We are currently using HL7-Fuse in one of our Projects and there is a
strange thing that we are noticing right now some of the orders ORM
messages are being received while others are not and there is no log of the
messages kindly drop in your email @dib0 https://github.com/dib0 or
@jrbateman https://github.com/jrbateman so that I can contact you
regarding this issue.
Thanks & Regards
Harmohan Singh
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dib0/HL7Fuse/issues/16, or mute the thread
https://github.com/notifications/unsubscribe-auth/AFeMwB8DY51aL4Do0LALdai-kAf_Gyfyks5r1V4egaJpZM4NM0UF
.

<EMAIL_ADDRESS>


Document the event auth rules

These are a necessary precursor to state resolution.

There's also some checks to ensure that the right signatures are there: https://github.com/matrix-org/synapse/blob/master/synapse/event_auth.py#L47-L68, not sure if they should be included here or not

<3

that was harder work than it should have been. thanks!


problem with largest joint interior rectangle in Cropper class

At first, im trying using the Stitcher class normally like this
`import stitching
from stitching import Stitcher
settings = {"detector": "akaze", "confidence_threshold": 0.2, "warper_type":"plane"}
stitcher = Stitcher(**settings)
stitcher = stitching.Stitcher()
panorama = stitcher.stitch(["image1_60_left.jpg", "image1_60_right.jpg"])`
but then I noticed it took abnormally long time to finish (let them running for like 5 minutes).  When I'm doing similar thing using [stitching_detailed.py by opencv it only took at most 3 sec. I decided to look at the error message and dive into Stitching_Tutorial.ipynb and found out that 'cropper.estimate_largest_interior_rectangle(mask)' is the one who caused it.

As of right now, idk about the thing further from here. And here is the image I use

Which operating system are you on?

You can get the same result as stitching_detailed by setting crop to false

And can you please share the Error Message?

it shouldn't reach import largestinteriorrectangle if crop is set to False. See https://github.com/OpenStitching/stitching/blob/main/stitching/cropper.py#L54. Can you debug and check why it reaches this part of the code?

Any updates on this?

Sorry to keep you waiting, for now I cant give you updates on this.  I guess I could give you updates tomorrow

I moved it into the stitching package so we only have one place for issues


Add support for building ASP.NET applications with Docker

@MichaelSimons commented on Wed Nov 01 2017
Microsoft should produce Docker images that can be utilized to build ASP.NET applications.

@MichaelSimons commented on Wed Nov 01 2017
Depends on https://github.com/Microsoft/dotnet-framework-docker/issues/38

@juliolima86 commented on Thu Mar 01 2018
Now depends on Microsoft/dotnet-framework-docker#37
I'm expecting this image to build asp.net framework and modernize then.

Is there a projected timeline for implementation? I am attempting to get my application building in       microsoft/dotnet-framework-build:3.5 but I am facing the same problem as #91. I would like to avoid putting a stop gap in place to get it working.

To echo @jrob  - it would be nice to know a rough timeline as to when we could expect to build asp.net 3.5 web applications within a docker container?

The specific problem I am facing with building asp.net 3.5 web applications is tools like lc.exe and al.exe aren't found during the build.

@dazinator  looks like the PR for this is close: https://github.com/Microsoft/dotnet-framework-docker/pull/89#issuecomment-389233391

@jsturtevant  - thanks that PR does solve some issues, but beware if you use RESX files you may still encounter this one: #154

This was resolved with #89


Word "trough" used when "through" is meant in 7 pages.

Link
Here is a link to find all of the .md files with the incorrect word.
https://github.com/search?q=repo%3Aanyproto%2Fdocs trough&type=code
Description
Each instance of 'trough' should be replaced with 'through'.

@grant-wilson, thanks, closed by #35


validate_call causes problems with inspect.getmembers

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
When using the validate_call decorator in a base class, calling inspect.getmembers on a derived class raises a TypeError. I would expect this to not raise an Exception.
Example Code
import inspect
import pydantic

class Test:
    @pydantic.validate_call
    def foobar():
        pass

class Test2(Test):
    pass

inspect.getmembers(Test2)

Python, Pydantic & OS Version
pydantic version: 2.5.3
        pydantic-core version: 2.14.6
          pydantic-core build: profile=release pgo=false
                 install path: /usr/lib/python3.11/site-packages/pydantic
               python version: 3.11.6 (main, Nov 14 2023, 09:36:21) [GCC 13.2.1 20230801]
                     platform: Linux-6.7.0-arch3-1-x86_64-with-glibc2.38
             related packages: typing_extensions-4.9.0

Try with pydantic version 2.6.0b1. I'm not seeing an error when I run this locally and I think that's because I'm working with more recent code which in particular includes https://github.com/pydantic/pydantic/pull/8268.

It does indeed work with 2.6.0b1, any idea when this will land in stable?

awesome, and thank you for your quick response!


"composer create-project" gives an older version v1.0.5 when running with PHP 8.0.0

As PHP 8.0.0 is around the corner, it will be interesting to try out Symfony on this new version of PHP.
While as the current PHP requirement in composer.json is "php: ^7.2.9", PHP 8 would not be able to get this latest version. Instead, it gets v1.0.5.
I also tried to create the demo project with v1.0.5, installation was fine but eventually Doctrine/ORM threw an error because of a bug in the old version. Error message is below:
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\ContextErrorException: Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/vagrant/pizza/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2636

Creating the demo project with its latest version v1.6.3 works good with PHP 8.0.0, by appending --ignore-platform-reqs in the command:
composer create-project symfony/symfony-demo my_project --ignore-platform-reqs

Closing as probably fixed by #1185. Thanks!

This is not fixed; it tries to install an old version of symfony and dependencies.
$ php --version
PHP 8.0.2 (cli) (built: Feb  4 2021 18:01:33) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.2, Copyright (c), by Zend Technologies

$ php composer.phar --version
Composer version 2.0.11 2021-02-24 14:57:23

$ php composer.phar create-project symfony/symfony-demo app

$ php ../composer.phar show "symfony/*"
symfony/monolog-bundle     v3.1.0 Symfony MonologBundle
symfony/phpunit-bridge     v3.3.6 Symfony PHPUnit Bridge
symfony/polyfill-apcu      v1.4.0 Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-intl-icu  v1.4.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring  v1.4.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php54     v1.4.0 Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions
symfony/polyfill-php55     v1.4.0 Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions
symfony/polyfill-php56     v1.4.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70     v1.4.0 Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-php72     v1.4.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-util      v1.4.0 Symfony utilities for portability of PHP codes
symfony/swiftmailer-bundle v2.6.3 Symfony SwiftmailerBundle
symfony/symfony            v3.3.6 The Symfony PHP framework

If I tell it to ignore platform reqs it installs a newer version:
$ php composer.phar  create-project --ignore-platform-reqs symfony/symfony-demo app

But when hitting /en/blog/:

Compile Error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs)

This issue seems related: https://github.com/symfony/symfony/issues/39582. Needs doctrine/dbal 2.12, I think?
php ../composer.phar why doctrine/dbal
dama/doctrine-test-bundle  v6.5.0  requires  doctrine/dbal (^2.9.3 || ^3.0)
doctrine/doctrine-bundle   2.2.2   requires  doctrine/dbal (^2.9.0|^3.0)
doctrine/migrations        3.0.2   requires  doctrine/dbal (^2.10)
doctrine/orm               2.8.1   requires  doctrine/dbal (^2.10.0)

It seems doctrine/orm and doctrine/migrations are preventing it from using 2.12.


pull request for e2e test at 01/10/2017 14:56:11

:white_check_mark: Validation status: passed
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.


How to change button name of popup crop image?

Hi AhamedBilal team. How to I can change button name of popup crop image of your package?
This demo of my issue

currently, there are no options for changing that. I'll add an option in the next release.

Added this options (applyBtnText, closeBtnText) refer documentation


Hotfix 1.12.7

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

Issues
======
- Added 1

See the complete overview on Codacy


Error Cosmo DB resource: azurerm_cosmosdb_account

Hi there, I am getting this while running terraform apply --auto-approve in Azure CloudShell
╷
│ Error: creating Database Account: (Name "ine-cosmos-db-data-15019585" / Resource Group "azuregoat_app"): waiting for the CosmosDB Account "ine-cosmos-db-data-15019585" (Resource Group "azuregoat_app") to finish creating/updating: Code="ServiceUnavailable" Message="Database account creation failed. Operation Id: 39f485cb-8cdd-4a07-a77d-c6a1d3ba0661, Error : Message: {\"code\":\"ServiceUnavailable\",\"message\":\"Sorry, we are currently experiencing high demand in East US region, and cannot fulfill your request at this time Wed, 10 Jul 2024 14:22:24 GMT. To request region access for your subscription, please follow this link https://aka.ms/cosmosdbquota for more details on how to create a region access request.\\r\\nActivityId: e4ddd100-6db7-4089-8eb7-1d014a871087, Microsoft.Azure.Documents.Common/2.14.0\"}, Request URI: /serviceReservation, RequestStats: , SDK: Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0, Microsoft.Azure.Documents.Common/2.14.0"
│
│   with azurerm_cosmosdb_account.db,
│   on main.tf line 30, in resource "azurerm_cosmosdb_account" "db":
│   30: resource "azurerm_cosmosdb_account" "db" {
│
│ Error: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="SkuNotAvailable" Message="The requested VM size for resource 'Following SKUs have failed for Capacity Restrictions: Standard_B1s' is currently not available in location 'eastus'. Please try another size or deploy to a different location or different zone. See https://aka.ms/azureskunotavailable for details." Target="vmSize"
│
│   with azurerm_virtual_machine.dev-vm,
│   on main.tf line 381, in resource "azurerm_virtual_machine" "dev-vm":
│  381: resource "azurerm_virtual_machine" "dev-vm" {

Hi @k4g3y4m4 , it seems to be a temporary Azure resource issue. We’ve tested the template and it works fine. Please try deploying again.


Feature/light update

This documents process for doing a "Light Update" to an image. This will not be necessary in the future of auto-magical updates, but I wanted to include it in case you guys want to lean on the 1101 image as stable and potentially update it when need as testing for new images continues.

Looks good, Merging


fix!: update top-accounts lookups

GitHub Issue (if applicable): #2883 #2884 #2885 (maybe #2886 )
Explanation of Bugfix/Feature/Modification:
YNAB pushed updates on 7/25/22 that broke the top-accounts
Ember component. Internally, we look for this component only to get
the areChecked property, to find checked transactions
(and once to setup an Observer on that property).
This commit changes all componentLookup('top-accounts')
to containerLookup('service:accounts'), as it shares that property.
BREAKING CHANGE: This breaks the SpareChange feature. It looks like the
Observer fails to be added correctly. I think this is still worth pushing for now,
though, as the feature would still be broken without this and this repairs
the other uses of top-accounts

#2894

#2894

Can confirm. This + #2875 also fix the right click issue mentioned in #2878, #2874.


[Popup] Failed in  tag with jQuery 3.2.0

Here is the case:
<!DOCTYPE html>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.9/semantic.min.css">

  Test

Test div

Hi @iROCKBUNNY, I’ve just tried it locally, and it works as expected. Do you get any errors in the console?

Hi @Banandrew , thanks for your response!
I pasted the code on jsbin (sorry I don't know how to create a jsbin link), and the first case doesn't work.
In my case, I am using Chrome 56 on macOS 10.12.3.
By the way, if I change jQuery to v3.1.1, both case works. (same on jsbin)

@iROCKBUNNY but do you get any console errors on JSBin? It seems that when pulled from a CDN (any CDN, I tried two), 3.2 produces an a.indexOf is not a function error at line 9814 when unminified, can you please confirm?

@Banandrew I just tried my code locally and on jsbin with unminified js files, after reading your message. I did not find an error message in the console (maybe I did not do it correctly). However, I can see the rendering of the popup html is not functioning with  tag. It tries to create the following code when the  popup holder is triggered (hover the mouse on it):

test

and does not destruct it when moving the mouse away. (unlike the
 popup)

@iROCKBUNNY disregard my last message, it seems to be my lack of understanding of how JSFiddle works, and CDNs do actually work. I’ve just followed your setup, and reproduced the issue.

Hi @Banandrew , the issue is solved when jQuery v3.2.1 is being used.

Hi @iROCKBUNNY, thanks, can confirm. Closing the issue—it seems that the problem wasn’t on SUI’s end.


Make contractimpl feature arg an attribute arg

What
Make contractimpl feature arg an attribute arg.
Why
We plan to add additional arguments in https://github.com/stellar/rs-stellar-contract-sdk/issues/241, and having this be an argument with a name will make it easier to define the arguments without relying on their position in a list.
Known limitations
We may prefer to use a crate like darling to simplify our parsing of tokens, and to generate better compile errors on things like typos or unsupported arguments. I didn't want to spend time on integrating that yet though, so I've added a TODO to revisit this.

cc @jonjove This will require a small tweak to your usage of contractimpl, but it should be minimal. See the udt example in this PR.


Documentation

Minor documentation typos in code comments:

aniamtion => animation
avaialble => available
colisions => collisions
decelleration => deceleration
instanciate => instantiate
sensiblity => sensibility
seting => setting
tranform => transform
wihin => within

Much appreciated!


restore the set noder certificate without sudo

Description
this PR only restore a function that was remove before. It used to use sudo but we don't need sudo for it anymore but we still need the function

Such allowed certifiers that can be added by council approval.
If this is the intention we are all good and we can merge.

Yes, I believe this issue dealing with this


Add submitted time to the submission API

They already have epoch_second field. It means "unix-second".


Improve raw login from v4-only network against v6-capable server

If the client only has IPv4 available, and the server has both IPv4 and IPv6, raw login can be attempted on IPv6 anyway if the DNS servers in use prefer it.
It works this way since the server does not always know its addresses (if listen addresses are not set). The server should respond with addresses for both protocols (guessing its address if required) to allow the client to try either one.
$ sudo ./bin/iodine -f4    dns.tun
Enter tunnel password:
Opened dns0
Opened IPv4 UDP socket
Sending DNS queries for dns.tun to <IP_ADDRESS>
Autodetecting DNS query type (use -T to override).iodine: ..
Using DNS type TXT queries
Version ok, both using protocol v 0x00000502. You are user #1
Setting IP of dns0 to <IP_ADDRESS>
Setting MTU of dns0 to 1130
Server tunnel IP is <IP_ADDRESS>
Requesting server address to attempt raw UDP mode (skip with -r)
Server is at 2001:db8::1, trying raw login: (skip with -r) ....failed

As shown in the log, adding -4 to the client does not help, because that only switches the communication to the first DNS server to IPv4. That server then continues with IPv6 to the iodine server.

The server could look up its own address (just like how relaying nameservers find it). But due to wildcard support for domain names (since 95fde8b3eec9835d1c7f1ad7abde1d89eaa25b0e) it needs to be done on the fly instead of in advance.


Server: add Client connection to white list and save to nvs

Hi.
My idea is to set up a white list for a Server, which will store the BLE addresses of the allowed Clients. The Server will then advertise with white list and only connect to the BLE addresses in the list (using setScanFilter(bool scanRequestWhiteListOnly, bool connectWhitelistOnly).
I am planning to use bonding, which will call onAuthenticationComplete(ble_gap_conn_desc) callback. If Connection has been established successfully, I will add the BLE address of the Client to white list, and save it to NVS. Next time the Server is powered up, it will be using white list information and only connect to the Client on the list.
I am not sure where I can find information on white list addition/deletion and how to implement it in NimBLE.
Would appreciate any help and/or pointers to the right direction.
Thanks!
K

Hi @kirus1997, while the use case you describe is somewhat available already at low levels an API has not been implemented yet. This is due to issues regarding random addresses, the ESP32 controller does not resolve them, and so if a random address (such as a phone) was used as the whitelist address it would not be able to connect when the address changes. So to work around that issue there would need to be a good amount of workarounds written into the server code.
If you are not concerned with whitelisting random addresses then the solution would revolve around a call to :
ble_gap_wl_set(const ble_addr_t *addrs, uint8_t white_list_count)
Which could be done like so:
NimBLEAddress address(xxxxxxxx);

ble_addr_t peerAddr;
memcpy(&peerAddr.val, address.getNative(), 6);
peerAddr.type = address.getType();

ble_gap_wl_set(peerAddr, 1);

Or any other derived method of getting the address (keep in mind the address needs to be little endian).

OK, thank you.
Would you be able to let me know how I can check the contents of the white list?
I think if I know this, I will be able to figure the rest out. :)
Thanks,
K

There is no function to check the contents that I know of. Each call to ble_gap_wl_set() clears the current list and updates it with the provided addresses.


Finish New Relic sink

Reason/Context
ATM, New Relic sink is not finished so it won't work.
Description
Finish the work pending for the sink so we can send metrics to New Relic.

@smoya I guess we could consider this issue is already solved by #13, right?

Yup!


csv import error + workaround

Problem
When I tried to import a measurements .csv I got a  ParserError: Error tokenizing data. C error: Expected 20 fields in line 3, saw 23 from ~\mambaforge\envs\devbio-napari-env\lib\site-packages\pandas\_libs\parsers.pyx:
Cause
pandas is unable to read .csv files that use semicolon as seperator. When importing the file with pd.read_csv() the exact same error occurs, and will succesfully import when given the additional parameter sep = ";" or sep = None (auto detect). Note that semicolon seperated .csv files usually use comma as decimal seperator, which requires decimal="," (no auto detect available), otherwise decimal numbers will be interpreted as strings.
→ So its not a problem of devbio-napari, but pandas and the different .csv and number formats.
Workaround
After replacing the seperators to match pandas default (comma and dot) the import of the csv file into napari worked.
Also see

panda documentation: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html
all the countries using decimal comma  -> actually more than the number of countries using decimal point (pandas default)

Hi @T3chbug ,
can you share an example CSV file where this happened? Also how was it created?
Thanks!
Best,
Robert

Hi @haesleinhuepf,
the file originates from regionprops export to .csv and was then edited in excel (additional column "custom"). The original unchanged csv could be imported withg the import error](https://github.com/haesleinhuepf/devbio-napari/files/12496859/abc2_exc.csv)


[C# Bug Bash] Information missing at  module from first LP

Describe the bug
Some programming concepts are introduced in 3-learn-how-code-works.md, and I believe this should be mentioned in 1-introduction.md
To Reproduce
Steps to reproduce the behavior:

Go to 3-learn-how-code-works.md
Review the content.
Go back to 1-introduction.md and you will notice there is no comments related to this.

Expected behavior
At 1-introduction.md
In this module, you'll:

Write your first lines of C# code.
Learn foundational programming concepts.
Use two different techniques to print a message to a text console.
Diagnose errors when you type code incorrectly.
Identify different C# syntax elements like operators, classes, and methods.

By the end of this module, you'll be able to understand foundational programming concepts and write C# code to print a message to a text console, like the Windows command prompt. These lines of code will give you your first look at the C# syntax, and immediately provide invaluable insights. In fact, this module will introduce many new ideas, which we'll expand upon in other modules.
Additional context
By having a list of everything that is in the module, the student can decide if studying that module is worthy, given that he/she does not know the contents.

🎓 Student Ambassador

@OscarSantosMu valid feedback, not sure it will get fixed but moving to backlog.  Thanks


Add Russian locale

Sorry for previous pull request, i was on hurry.

Hi, sorry I havnt had time to get to Elm just enough time to keep an eye on Pull Requests.
Was planning to merge this weekend. @tvv

I just merged german locale and made some changes for local usage.
You should revert package info. Or wait for i'll do.

Correct candidate - https://github.com/relabsoss/elm-date-extra/tree/ru_de_locale

I am really not sure how to create a pull request from your branch to mine, I tried but it has conflicts and I believe that makes merges on github possible. I can drive github but I am no expert.

It should be done over console, but its not trivial)

I understand the local process, and believe i did it right fixed the few merge conflicst., but now I don't have the ru_ru configs in branch.
I am going to reset master back to when i merged the german translation and try again

Just merge  https://github.com/relabsoss/elm-date-extra/tree/ru_de_locale branch which already has DE locale modules.

Ok the reset made it simple, published 8.4.0.
Cheers!

Nice)


Feature/Add Print or Export Text Document Tool

This pull request adds a new tool named print_or_export_text_document to the marketplaces/tools directory. The tool utilizes the JotterPad public api to print or export text to document. Some of the supported input types include markdown, fountain and output types include pdf, docx, epub, zip.
For more details about how it works: https://blog.jotterpad.app/flowise-jotterpads-print-engine/
For more details about the JotterPad API: https://blog.jotterpad.app/introducing-jotterpad-cloud-printing-api/

Amazing!

Apologies for the mistakes! Hopefully, the workflow will work this time.

for linting issue, we can do pnpm lint-fix, lets see if it works this time


Unable to display data from a model in another app

Django 1.11
DAL works well when dislalying data from a model within the same app; however, I cannot get it work when used in another app in the same project.
urls.py (research app):
    url(r'^domain-auto',
        auto.DomainAutocomplete.as_view(),
        name='domain-auto'),

Browser:
http://<IP_ADDRESS>:8000/research/domain-auto?q=KN00
Results:
{
"results": [
    {
    "id": "5265",
    "text": "KN0005:One
    "selected_text": "abc"
    },
    {
    "id": "5266",
    "text": "KN0006:Two",
    "selected_text": "def"
    },
 ]

In main urls.py:
  url(r'^research/', include('research.urls')),

In another app...
Form definition:
    class Meta:
        model = models.TestModelName
        fields = '__all__'
        widgets = {
            'domain': autocomplete.ModelSelect2(
                url="research:domain-auto"),
        }

However the widget is not rendered as a normal autocomplete widget and no data is showing for it
I have also tried:
    domain = forms.ModelChoiceField(
        queryset=Domain.objects.all(),
        widget=autocomplete.ModelSelect2(url='research:domain-auto')
    )

in the form definition, but this has the same outcome.

Is your problem with the widget or it is with displaying data from another app? I suspect the widget is the problem. Please check that you have loaded the relevant media. Also, you need to specify which frontend you are using. DAL has some incompatibilities with Materialize. Lastly, the information you have provided is not sufficient for anyone to reproduce or understand your issue.

If the information provided is insufficient to understand what I have done (the extracts I provided are similar to those shown in the DAL tutorial), please let me know what is missing. I am working with the Django admin, with Django Suit as the "skin".
The settings.py file contains these entries in INSTALLED_APPS:
    'dal',
    'dal_select2',
    'dal_legacy_static',

Some additional info is the loading sequence of files at startup:
[30/Oct/2020 14:38:22] "GET /static/admin/css/vendor/select2/select2.css HTTP/1.1" 200 17604
[30/Oct/2020 14:38:22] "GET /static/autocomplete_light/autocomplete_light.js HTTP/1.1" 200 16365
[30/Oct/2020 14:38:22] "GET /static/autocomplete_light/select2.js HTTP/1.1" 200 4018
[30/Oct/2020 14:38:22] "GET /static/autocomplete_light/i18n/en.js HTTP/1.1" 200 925
[30/Oct/2020 14:38:22] "GET /static/admin/js/vendor/select2/select2.full.js HTTP/1.1" 200 161832

I agree it it seems to be widget that is not working as expected (I thought it was working before) - but how would I go about finding what is causing it to fail?

I tried testing this in a separate project (in case it was a issue with, for example Django Suit) - but there are no problems with that - see https://github.com/gamesbook/django-suit  (autocomplete used on the Cities form).
However, on checking the developer console for my project, it seems there is an issue with jQuery. Which version should be in use?

I am not sure, which version of JQuery are you using. I believe the latest version should work fine. I am guessing what you to question is how to ensure that JQuery is included in the admin side of Django for autocomplete light to work. In case there is no implicit way - Which I am sure there is. You can override this templatehttps://github.com/django/django/blob/master/django/contrib/admin/templates/admin/base.html if you know how to . Then include the JQuery there in.

I have tried installing the latest jQuery; it gets loaded before autocomplete:
[31/Oct/2020 13:44:59] "GET /static/site/js/jquery-3.5.1.js HTTP/1.1" 304 0
[31/Oct/2020 13:44:59] "GET /static/autocomplete_light/select2.css HTTP/1.1" 200 267
[31/Oct/2020 13:44:59] "GET /static/autocomplete_light/autocomplete_light.js HTTP/1.1" 200 16365
[31/Oct/2020 13:44:59] "GET /static/admin/css/vendor/select2/select2.css HTTP/1.1" 200 17604
[31/Oct/2020 13:44:59] "GET /static/autocomplete_light/select2.js HTTP/1.1" 200 4018
[31/Oct/2020 13:44:59] "GET /static/admin/js/vendor/select2/select2.full.js HTTP/1.1" 200 161832
[31/Oct/2020 13:44:59] "GET /static/autocomplete_light/i18n/en.js HTTP/1.1" 200 925

However, select itself now throws a read property error:

The en.js error:

Are you using DAL 3.8.1 ?
@danielmorell isn't jQuery part of the built bundle now ?

I am using 3.8.1 for the test (referred as "separate project") above and in the project that is currently failing.  Although the actual project is obviously bigger and more complex I am trying to understand what the differences are that could be causing this.

@gamesbook can we have template and view code too please ? for both cases (where it work and where it doesnt)

I am not allowed to post the full template code, but can post the header section.
The working case is at https://github.com/gamesbook/django-suit - see https://github.com/gamesbook/django-suit/blob/v2/demo/demo/views.py  (but there is no template change as such).
I don't store the autocomplete processing code in views.py but in differently named file called auto.py. It contains this code:
from dal import autocomplete  # WAS autocomplete-light
from django.db.models import Q
from .models import  Selection

class SelectionNameAutocomplete(autocomplete.Select2QuerySetView):

    def get_queryset(self):
        qs = Selection.objects.all()
        if self.q:
            qs = qs.filter(name__icontains=self.q)
        return qs

The base template contains:
{% extends 'admin/base.html' %}
{% load i18n suit_tags admin_static  %}

{% block title %}
  {{ title }} | {{ site_title|default:_('Project admin') }}
{% endblock %}

{% block branding %}

    {{ site_header|default:_('Project administration') }}
    {% trans 'Admin' %}

{% endblock %}

{% block extrahead %}{{ block.super }}

{% endblock %}

There is no other custom template being used; rendering happens through the normal built-in admin templates.

I don't see the form rendering code, nor the view that's supposed to render the form in its initial state.
But maybe {{ block.super }} is what's supposed to load {{ form.media }}, so jquery.js script should be before that line.
Did you try without your jquery script tag at all ? I don't see it in the demo, maybe django-suit already loads its own.

The code for the form is this:
class TestModelForm(forms.ModelForm):

    class Meta:
        model = models.TestModelName
        fields = '__all__'
        widgets = {
            'domain': autocomplete.ModelSelect2(
                url="core:domain-auto"),
        }

There is no specific view code to render the form as that is handled by Django admin.
I have tried changing the load order for  jquery.js but it makes no difference.
If I do not use jQuery, I now get the error shown in my 3rd message of this thread.

Update: I tried reverting to an earlier version of DAL - 3.4.1 - and that works as expected.
The README says:
Django 1.11 (LTS), is supported until django-autocomplete-light-3.2.10
But perhaps this version can be bumped to show the most recent that will still work?

@danielmorell isn't jQuery part of the built bundle now ?

Sorry for the late response. @jpic we are still using jQuery supplied by Django. So on pages where jQuery is not loaded by Django by default it will need to be included. The reason is that if a developer wants to replace the default jQuery with a specific version, or Django provides a copy to the view, we don't want to duplicate what we are loading. It also complicates using it with Select2. If Select2 is instantiated as an object method on one instance of jQuery and our Select2 function uses another instance of jQuery, it will fail.
@gamesbook the first error you encountered was caused by not having jQuery loaded in the browser for the view. I believe you discovered this already. The second error (where we ironically discover 'defined' is undefined) is caused because Select2 has not being initialized yet.
What is the 'init' of undefined error on index:2542? Is it related to Select2, dal, or something else?
More details about the cause
In the following code where we invoke dalLoadLanguage() because of the load/execution order django.jQuery.fn.select2.amd is undefined.
https://github.com/yourlabs/django-autocomplete-light/blob/d498fec7eb906a2daf53e7381a969c7de337836a/src/dal/static/autocomplete_light/autocomplete_light.js#L105-L112
We are passing in django.jQuery as the value of argument e when we invoke dalLoadLanguage().
I believe the root cause is this... dalLoadLanguage() is being called from autocomplete_light/autocomplete_light.js without regard for when /static/admin/js/vendor/select2/select2.full.js is loaded.
@jpic The dalLoadLanguage() function is only used by dal_select2, I think I can fix this issue by moving the place where the dalLoadLanguage() function is invoked to inside the initialize() method, since django.jQuery.fn.select2.amd should be defined at that point.
https://github.com/yourlabs/django-autocomplete-light/blob/d498fec7eb906a2daf53e7381a969c7de337836a/src/dal/static/autocomplete_light/autocomplete_light.js#L126
This also might require that we only load languages once per autocomplete handling function. I will have to think about the repercussions of this a little more. I don't think it will change the API for developers, but may change how initializations are handled and tracked internally.
Also, the language files are Select2 specific and should probably be moved from dal to dal_select2. I think I put them in dal when I first updated the JS because I didn't know any better.

@gamesbook

But perhaps the DAL version can be bumped up to show the most recent that will still work?

Yes, you may keep the README updated for others, but our policy is to support the latest versions because tdd makes it easy to update confidently
@danielmorell
Thank you for the great explanation, do you think there is a workaround meanwhile ?
Other solutions could be:
a) Perhaps we could add a jQuery with noconflict to the bundle ?
b) maybe not using form.media at all ? then we'd just be answering to people who forget to add the static scripts in their templates but that's a lot easier to see coming at a thousand miles distance.
c) choices "similar to select2 but without jquery"

We are passing in django.jQuery as the value of argument e when we invoke dalLoadLanguage()

Probably worth renaming that argument for posterity ?

Yes, you may keep the README updated for others, but our policy is to support the latest versions because tdd makes it easy to update confidently
Not sure who "you" is?  A project team member will need to do this.

Someone who has a live and running version with 1.11 can clicking the edit link on the file, but it will need a project member to merge for sure.
We can't ask our project members to manually verify 1.11, we've already got plenty on our hands, hopefully situation should improve once we offer the webcomponent but that's planned for the following months so we're trying to hang on until then.

@gamesbook  Could you try removing the "research:" and "core:" prefixes of your urls ?
It doesn't look like namespaces are properly configured.

Given that DAL "just worked" when I switched to an earlier version, I am unsure why you suggest all these changes?

I think that there is a mistake in your URL configuration.

Why would an incorrect URL mean that an earlier version works?  What has changed to cause this?


lazy seqs are not printed out in Jupyter 5.0

After upgrading to Jupyter 5.0 the behavior changed:
Jupyter 4.4:
In  [1]: (map inc (range 10))
Out [1]: (1 2 3 4 5 6 7 8 9 10)

Jupyter 5.0:
In  [1]: (map inc (range 10))
Out [1]: clojure.lang.LazySeq@c5d38b66

I get the same, jupyter 4.3.0, ipython 6.1.0, clojure 1.8.0, python 3.5.3.
In [1]: (def foo (take 10 (range)))
Out[1]: #'user/foo
In [2]: (filter even? foo)
Out[2]: clojure.lang.LazySeq@1b5d123


Download URL does not work

I want to download SLICK, but url does not work. https://codeload.github.com/kenwheeler/slick/zip/1.8.1

Hello,
you can find it in "Code Tab" there's a Green button to download


With a basic tool like: https://go.dev/play/p/0MpgRS3gwFS
Invoking it results in:
$ go tool mytool
[/home/user/.cache/go-build/05/05c95035c59ab02d5d47f8b72f30bf94aafdbe7a97a027a1a3ac48961b3a0fda-d/mytool]

$ go tool mytool -hello world
[-hello world]

What did you see happen?
The tool doesn't receive its own name in os.Args[0], messing up argument / flag parsing.
What did you expect to see?
the usual os.Args

Related Issues

cmd/go: breakage with go version command and GOFLAGS environment variable #41264 (closed)
go build creates binary named "command-line-arguments" #34716 (closed)
go tool compile #55111 (closed)
flag: Args() should return the non-flag arguments regardless of their position relative to the flag arguments #24107 (closed)
cmd/go: document the meaning of solitary "command-line-arguments" #36043
cmd/go: flags ending with "=." is not correctly parsed by go tool when run via powershell #43179 (closed)
cmd/go: specifying `-n` causes error with cgo #14944 (closed)
os: commandLineToArgv() does not correctly parse argv[0] in Windows #50028
cmd/go: `-toolexec` program inconsistently used for C toolchain #64580
cmd/go: `go env` incorrect quoting for values with double quotes #58855 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

cc @matloob @samthanawalla @ConradIrwin

Thanks for testing this out @seankhliao! - sent a fix, and please let me know if you run into anything else with this feature.


Tensorflow Lite Build issue - libtensorflow_framework.so.2: cannot open shared object file

Click to expand!
Issue Type
Build/Install
Have you reproduced the bug with TF nightly?
Yes
Source
source
Tensorflow Version
2.11
Custom Code
Yes
OS Platform and Distribution
Build for Android Arm
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
After running the tensroflow lite build tool, the build fails about ~5 hours. This is the command used:  `bash tensorflow/lite/tools/build_aar.sh --input_models=/host_dir/trainable_model.tflite --target_archs=arm64-v8a`

Standalone code to reproduce the issue
`bash tensorflow/lite/tools/build_aar.sh --input_models=/host_dir/trainable_model.tflite --target_archs=arm64-v8a`

I modified the configs based on this issue to enable experimental mode: https://discuss.tensorflow.org/t/missing-interpreter-class-in-selective-build-of-tflite-android/15325/7

Relevant log output
[9,650 / 13,797] 8 actions running
ERROR: /tensorflow_src/tensorflow/BUILD:1588:19: Executing genrule //tensorflow:tf_python_api_gen_v2 failed: (Exit 1): bash failed: error executing command /bin/bash -c ... (remaining 1 argument skipped)
2023-03-13 19:18:47.150108: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  SSE3 SSE4.1 SSE4.2 AVX AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
Traceback (most recent call last):
  File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 62, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: libtensorflow_framework.so.2: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py", line 22, in <module>
    from tensorflow.python.tools.api.generator import doc_srcs
  File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/__init__.py", line 36, in <module>
    from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
  File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 77, in <module>
    raise ImportError(
ImportError: Traceback (most recent call last):
  File "/root/.cache/bazel/_bazel_root/43801f1e35f242fb634ebbc6079cf6c5/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/create_tensorflow.python_api_tf_python_api_gen_v2.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 62, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: libtensorflow_framework.so.2: cannot open shared object file: No such file or directory

Hi @ewenw , thanks for reporting this issue.
Sorry for the delayed response.
Can you please provide the steps you have followed and also a toy model to reproduce the issue. That will help us to investigate the issue further.
Thanks.


removedItemBuilder gets removedItem instead of its index

fixes this one https://github.com/flutter/flutter/issues/105251
Pre-launch Checklist

[X] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[X] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
[X] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
[X] I signed the [CLA].
[X] I listed at least one issue that this PR fixes in the description above.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] I added new tests to check the change I am making, or this PR is [test-exempt].
[X] All existing and new tests are passing.

A regression test would be needed to ensure that the example doesn't fail in the future.


Feature - File Cleanup & Tests

Removes some unused dependencies
Removes index.css file that was importing all of our modules
Removes various scripts surrounding building a single dist file
Adds tests for each module to ensure they compile correctly
Small tweaks to dotfiles

LGTM – npm run lint isn't working but that predates this PR. Will open issue to track.


Dont throw an error when trying to remove component if it doesnt exist?

I usually am in favour of being more explicit with throwing errors when something is wrong but in this instance I wonder if it would be better just to carry on if the component doesnt exist rather than throwing an error?
https://github.com/hmans/miniplex/blob/main/packages/miniplex/src/World.ts#L207
Just makes things a little bit nicer to work with in user land (dont need to do a check before removing) and I cant see any instance where I really care that im trying to remove a non-existent component.
Please do let me know if im missing something tho.

In the case of adding components however im not sure..
https://github.com/hmans/miniplex/blob/main/packages/miniplex/src/World.ts#L183
So maybe for sake of clarity its best to keep it?

You are right on the money with this, it has been one of my least favorite bits in Miniplex. After some user feedback that made it clear to me that the ECS-like strictness Miniplex was holding on to was causing various problems (from being cumbersome to, argh!, making it really hard to make the damn thing work in React's StrictMode), I started working on a major new version this week that I will be releasing as 2.0 soon. It'll be both more relaxed, eschewing some of the ECSisms for a more relaxed they're-just-objects approach, but also more flexible and significantly faster, too.
I don't want to make major changes like this to 1.0 at this point, and would prefer to get 2.0 out as quickly as I can to have people use that instead. (If you're curious, I've been pushing pre-release builds, but the documentation has not been updated yet.)

If you want to brief pre-documentation overview of what's coming in 2.0, please check out this issue: https://github.com/hmans/miniplex/issues/165

Cool thanks, ill close this and comment over there then :)


fix/84: easier to understand code

Codecov Report

Merging #148 (aa89126) into master (dbdc464) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #148      +/-   ##
==========================================
- Coverage   72.10%   72.08%   -0.03%
==========================================
  Files         699      699
  Lines       12240    12231       -9
==========================================
- Hits         8826     8817       -9
  Misses       3103     3103
  Partials      311      311

Impacted Files
Coverage Δ

...in-Histogram/84. Largest Rectangle in Histogram.go
100.00% <100.00%> (ø)

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 dbdc464...aa89126. Read the comment docs.


IntelliSense for React Markdown (*.mdx)

What is MDX?
React Markdown is an extension to Markdown which enables you to use:

import/export statements
JSX

Its primary use is in writing documentation for design systems, but people are adopting it for various other uses, e.g. writing templates inside Gatsby.
Example:
import Highlight from "./Highlight";

# Top-level Heading

This is an *example* of using React component:
<Highlight>MDX</Highlight>

export const answer = 42;

Current tooling
There is vscode-mdx plugin that support syntax highlighting and Prettier supports formatting. The last missing piece of the puzzle is IntelliSense. There is vscode-mdx#8 issue covering IntelliSense, but it seems dead without any traction.
Motivation
Company I work for has large codebase in MDX, and maintaining it without type checking and code completion is a nightmare. It seems I will be spending time at home quarantine, so I'll have a lot of undivided attention to solve this problem.
Prior experience
In past, I used Monaco on the web – I wrote custom syntax highlighting and worker for displaying warnings/errors. I know about a bit about LSP, but I guess it won't be necessary.
Goal
Goal is to have support for IntelliSense in MDX source files: code-completion, type-checking, code navigation, etc. Is this goal achievable? Where should I start?
Vague plan
I imagine this problem as hooking up JS/TS machinery to the right spots, but I guess it won't be as easy since nobody has done it yet. Using JS inside  tag is something similar – code-completion is working. However, type-checking does not. Is there any technical limitation for this? Is dissecting HTML plugin a good start?

Thank you in advance for any suggestions.

Some potential starting points for an investigation:

The html extension's JavaScript support: https://github.com/microsoft/vscode/blob/8f08c2ffa75e9ca53ac8ef67ff023feeb94fe5fc/extensions/html-language-features/server/src/modes/javascriptMode.ts#L1

How the angular language service implements IntelliSense for angular templates (and for inline strings too I believe)

How Vetur implements support for Vue templates: https://github.com/vuejs/vetur

In each case, you'll like need to use the TypeScript language service in your extension. You will likely need to transform the code you feed into the language service so that TypeScript can understand, and then translate the result back so that VS Code displays the information correctly. I don't know a lot of about mdx, but I believe Vetur your best reference here.
Needless to say, you are correct in assuming this is going to be complex (especially if you want intellisense to work across files). Reusing existing services like the TypeScript language service will save you some time, but you will also need to hack these services so that they can deal with mdx in the first place and that's not going to be easy
Let me know if you have any specific questions about this. Closing this issue for now since we generally try to keep the issue track to only bugs/feature requests


(Decline to?) define a partial ordering for Timestamp

ion-schema's valid_values constraint (currently being implemented in amzn/ion-schema-kotlin#163) allows users to specify a range of acceptable timestamps. However, it is unclear how any given timestamp can be determined to be in that range. (More fundamentally, it is not always clear whether the provided min bound is less than the provided max bound.)
When comparing two timestamps for equality, they must have:

The same precision.
The same timezone offset (including unknown). Adjusting one timestamp to compare across offsets is not allowed.

It's unclear how precision and offset should come into play for ordering. 1992T is ostensibly before 2007-06T, but they're different precisions. Is this comparison allowed? What about 1992T vs 1992-06T? Perhaps when sorting them, higher precisions come later?
A partial ordering over timestamp seems possible. We should either prescribe a definition or explicitly decline to do so, allowing users like ion-schema to define their own.

This has been explained by https://github.com/amzn/ion-schema/pull/34 based on decimal ordering.


Does osmnx retrieve relation elements (e.g. ["route"="subway"])?

Read these instructions carefully. If you don't provide the requested information we need in order to help you, your issue will be automatically closed. Before you proceed, please review the contributing guidelines in this repo's CONTRIBUTING.md.
This issue tracker is only for reporting bugs or proposing new features. Please ask "how-to" or usage questions on https://stackoverflow.com/ instead (if asked here, they will be automatically closed).
If you installed OSMnx via conda and are experiencing installation problems, please open an issue at https://github.com/conda-forge/osmnx-feedstock/issues
If you're having trouble with OSMnx, first search the open/closed issues (and Stack Overflow) to see if the problem has already been noted. If not, fill in the template below (we need this information to assist you):
Problem description (what did you do, what did you expect to happen, and what actually happened)
What operating system, Python version, and OSMnx version are you using?
Complete list of your environment's packages and their versions (for example, run conda list or pip list then paste the output between the two "details" tags below)

# Paste the output of your Python packages and their versions here, between these two "details" tags

Code snippet that independently and completely reproduces the issue
# your code goes here
# make sure it's complete so we can independently run it from top to bottom
# do NOT post a screenshot of your code or error message: copy/paste the text

Hi,
Did I ask anything inappropriate to be closed directly?.
From the description of the project: "OSMnx: Python for street networks. Retrieve, model, analyze, and visualize street networks and other spatial data from OpenStreetMap".
As far as I know, relation elements can be "other spatial data".
Sorry if I misunderstood the description of the project.

The issue's body was just the default template and hadn't been filled out with any information, so it was auto-closed per the instructions. Note, please ask usage questions on StackOverflow, per the instructions.
From the template:

Read these instructions carefully. If you don't provide the requested information we need in order to help you, your issue will be automatically closed. Before you proceed, please review the contributing guidelines in this repo's CONTRIBUTING.md.
This issue tracker is only for reporting bugs or proposing new features. Please ask "how-to" or usage questions on https://stackoverflow.com/ instead (if asked here, they will be automatically closed).


Release apk doesn't work

When i release my apk, flutter_blue doesn't work. In debug mode work fine.

1,same issus

Same issue here. Works fine in debug but not in release. Anyone has a fix ?

Seems like a workaround: https://github.com/pauldemarco/flutter_blue/issues/662#issuecomment-741710564

Seems like a workaround: #662 (comment)

Thank you, it works now in release.

It's working, but this is a very bad workaround because release versions need shrinking and minify.

I had a same problem

I had a same problem

Same here, pleas fix it

Same here, pleas fix it

Same issue for me on version 0.7.3 with various Android versions. Works fine in debug mode, but not in release mode.

Same issue for me on version 0.7.3 with various Android versions. Works fine in debug mode, but not in release mode.

Same here. Workaround works.

Same here. Workaround works.

Here, i switch the flutter channel to stable and resolved, in beta i was with the same problem, debug works but not in release.

For those who need "shrinking" and obfuscation, if you add the following line to proguard-rules.pro
-keep class com.pauldemarco.flutter_blue.** { *; }

it'll work and the rest of your app will be correctly obfuscated as well.

The suggestion of @RafaRuiz worked for me, but I had to add #noinspection ShrinkerUnresolvedReference to prevent an inspection error about not being able to find the package.
For completeness, my build.gradle:
buildTypes {         debug {             signingConfig signingConfigs.debug         }         release {             signingConfig signingConfigs.release             shrinkResources true             minifyEnabled true             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'         }     }
My proguard-rules.pro in /android/app/proguard-rules.pro:
#noinspection ShrinkerUnresolvedReference -keep class com.pauldemarco.flutter_blue.** { *; }
Hope it helps, cheers!


Attempt comment parse first if they start/end with parens

Otherwise, we might confuse comment parens as real ones (see OCaml): https://bit.ly/2Xo0Dch

No longer an issue.


Add key-config-path as preferred alias to key-store-path

PR Description
Built on top of https://github.com/Consensys/web3signer/pull/825
Easier diff for this PR: https://github.com/siladu/web3signer/compare/support-aliases...siladu:web3signer:key-config-path-alias
Fixed Issue(s)

https://github.com/Consensys/web3signer/issues/586
Documentation

[x] I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

[x] I thought about adding a changelog entry, and added one if I deemed necessary.

Testing

[x] I thought about testing these changes in a realistic/non-local environment.

Added to Doc backlog and removed label.


Move IPC functionality from pygdf to libgdf

The CUDA IPC helper functionality from PyGDF should become part of libgdf.

#13 wil transfer the IPC support

Closed by #13.


Tesseract doesn't recognize some numbers from an image

I'm deskewing an image containing a number using Projection profile based skew estimation algorithm and extracting it through OCR.
In order to calculate the correct skew angle, we compare the maximum difference between peaks and using this skew angle, thus rotate the image using the correct angle to correct the skew.
Each image (which has a single number) has prefixed background and foreground (number) color:

If the first pixel of the background is black, the foreground is dark gray.
If the first pixel of the background is white, the foreground is dark white.

Here are some sample images:

which all of them get successfully deskewed to these:

After it's been deskewed, I've tried with no luck to improve image quality to let OCR (PyTesseract) recognize the numbers.
import cv2
import numpy as np
import scipy.ndimage
import pytesseract
from PIL import Image, ImageEnhance, ImageFilter

from scipy.ndimage import interpolation as inter

def correct_skew(image, delta=6, limit=150):
    def determine_score(arr, angle):
        data = inter.rotate(arr, angle, reshape=False, order=0)
        histogram = np.sum(data, axis=1)
        score = np.sum((histogram[1:] - histogram[:-1]) ** 2)
        return histogram, score

    gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
    blur = cv2.medianBlur(gray, 21)
    thresh = cv2.threshold(blur, 0, 255, cv2.THRESH_BINARY | cv2.THRESH_OTSU)[1]

    scores = []
    angles = np.arange(-limit, limit + delta, delta)
    for angle in angles:
        histogram, score = determine_score(thresh, angle)
        scores.append(score)

    best_angle = angles[scores.index(max(scores))] + 90

    (h, w) = image.shape[:2]
    center = (w // 2, h // 2)
    M = cv2.getRotationMatrix2D(center, best_angle, 1.0)
    rotated = cv2.warpAffine(image, M, (w, h), flags=cv2.INTER_CUBIC)

    ## Image processing to improve OCR accuracy
    """
    #rotated = cv2.medianBlur(rotated, 20)

    rotated = rotated.astype(np.float) / 255.

    # Calculate channel K:
    rotated = 1 - np.max(rotated, axis=2)

    # Convert back to uint 8:
    rotated = (255 * rotated).astype(np.uint8)

    binaryThresh = 190
    _, binaryImage = cv2.threshold(rotated, binaryThresh, 255, cv2.THRESH_BINARY)

    binaryThresh = 190
    _, binaryImage = cv2.threshold(rotated, binaryThresh, 255, cv2.THRESH_BINARY)

    # Use a little bit of morphology to clean the mask:
    # Set kernel (structuring element) size:
    kernelSize = 3
    # Set morph operation iterations:
    opIterations = 2
    # Get the structuring element:
    morphKernel = cv2.getStructuringElement(cv2.MORPH_RECT, (kernelSize, kernelSize))
    # Perform closing:
    rotated = cv2.morphologyEx(binaryImage, cv2.MORPH_CLOSE, morphKernel, None, None, opIterations, cv2.BORDER_REFLECT101)
    """

    return best_angle, rotated

if __name__ == '__main__':
    image = cv2.imread('number.jpg')
    if image[0][0][0] > 128: image = cv2.bitwise_not(image)
    angle, rotated = correct_skew(image)
    print(angle)
    cv2.imshow('rotated', rotated)
    cv2.imwrite('rotated.png', rotated)
    pytesseract.pytesseract.tesseract_cmd = r'C:\\Program Files\\Tesseract-OCR\\tesseract.exe'

    text = pytesseract.image_to_string(rotated, config="-c tessedit_char_whitelist=0123456789")
    print("number:", text)
    cv2.waitKey()

This code (PyTesseract) recognizes the first and the second number, while not the others. Why?

Please read and follow docs: https://github.com/tesseract-ocr/tessdoc/blob/main/ImproveQuality.md


Fix vaccines loop

In vaccines.py, move file read from vaccines() method to create_vaccines() to increase efficiency.

I can take this on

Fixed

Don't forget to delete your branch!


chore(master): Release 0.27.2

:robot: I have created a release beep boop
aztec-package: 0.27.2
0.27.2 (2024-03-13)
Miscellaneous

aztec-package: Synchronize aztec-packages versions

barretenberg.js: 0.27.2
0.27.2 (2024-03-13)
Miscellaneous

barretenberg.js: Synchronize aztec-packages versions

aztec-cli: 0.27.2
0.27.2 (2024-03-13)
Miscellaneous

aztec-cli: Synchronize aztec-packages versions

aztec-packages: 0.27.2
0.27.2 (2024-03-13)
Features

Check initialization arguments in constructors (#5144) (d003bd6)
Multithreaded prover folding (#5147) (94922fc)
Run tests in parallel in nargo test  (https://github.com/noir-lang/noir/pull/4484) (58e15ed)
Track stack frames and their variables in the debugger (https://github.com/noir-lang/noir/pull/4188) (58e15ed)

Bug Fixes

acir_gen: More granular element sizes array check (https://github.com/noir-lang/noir/pull/4528) (58e15ed)
Add follow_bindings to follow Type::Alias links (https://github.com/noir-lang/noir/pull/4521) (58e15ed)
Allow type aliases in main (https://github.com/noir-lang/noir/pull/4505) (58e15ed)
Constant gen (#5172) (394a0e0)
docs: Update quickstart.md (#5021) (be9f8a1)
Dynamic assert messages in brillig (https://github.com/noir-lang/noir/pull/4531) (58e15ed)
Fix brillig slowdown when assigning arrays in loops (https://github.com/noir-lang/noir/pull/4472) (58e15ed)
Fix deployments (#5183) (596253b)
Force src impl for == on slices (https://github.com/noir-lang/noir/pull/4507) (58e15ed)
Handling of gh deps in noir_wasm (https://github.com/noir-lang/noir/pull/4499) (58e15ed)
Intermittent invert 0 in Goblin (#5174) (3e68b49)
Iterative flattening pass (https://github.com/noir-lang/noir/pull/4492) (58e15ed)
Noir mirror merge strat (#5166) (74fa8d6)
ssa: Handle mergers of slices returned from calls (https://github.com/noir-lang/noir/pull/4496) (58e15ed)

Miscellaneous

Add ModuleDeclaration struct (https://github.com/noir-lang/noir/pull/4512) (58e15ed)
Add HashMap docs (https://github.com/noir-lang/noir/pull/4457) (58e15ed)
Add regression test for issue 4449 (https://github.com/noir-lang/noir/pull/4503) (58e15ed)
Better output in ci_deploy_contracts.sh (#5171) (8d73f8a)
Bump bb to 0.26.3 (https://github.com/noir-lang/noir/pull/4488) (58e15ed)
ci: Fix JS publishing workflow checking out inconsistent commits (https://github.com/noir-lang/noir/pull/4493) (58e15ed)
Custom hash for eddsa (https://github.com/noir-lang/noir/pull/4440) (58e15ed)
Deterministic mode (#5155) (e68b56a)
Document big integers (https://github.com/noir-lang/noir/pull/4487) (58e15ed)
Generalise FunctionVisibility to ItemVisibility (https://github.com/noir-lang/noir/pull/4495) (58e15ed)
Interaction for a mock first circuit handled inside the EccOpQueue (#4854) (d9cbdc8)
Move check_method_signatures to type checking phase (https://github.com/noir-lang/noir/pull/4516) (58e15ed)
Move templated code for assert_message into the stdlib (https://github.com/noir-lang/noir/pull/4475) (58e15ed)
Organize the blackbox_solver crate (https://github.com/noir-lang/noir/pull/4519) (58e15ed)
Pass import_directive by reference (https://github.com/noir-lang/noir/pull/4511) (58e15ed)
Pass macro processors by reference (https://github.com/noir-lang/noir/pull/4501) (58e15ed)
Pull out separate function for compiling and running a test (58e15ed)
Release Noir(0.25.0) (https://github.com/noir-lang/noir/pull/4352) (58e15ed)
Update cargo deny config (https://github.com/noir-lang/noir/pull/4486) (58e15ed)
Update various dependencies (https://github.com/noir-lang/noir/pull/4513) (58e15ed)

barretenberg: 0.27.2
0.27.2 (2024-03-13)
Features

Multithreaded prover folding (#5147) (94922fc)

Bug Fixes

Intermittent invert 0 in Goblin (#5174) (3e68b49)

Miscellaneous

Interaction for a mock first circuit handled inside the EccOpQueue (#4854) (d9cbdc8)

This PR was generated with Release Please. See documentation.

Benchmark results
Metrics with a significant change:

note_history_trial_decrypting_time_in_ms (5): 138 (+106%)
note_trial_decrypting_time_in_ms (32): 100 (+114%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit 58e15edf and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
5,668
18,820
36,356

l1_rollup_calldata_gas
66,028
238,204
469,496

l1_rollup_execution_gas
666,660
953,065
1,336,804

l2_block_processing_time_in_ms
1,291 (-1%)
4,781 (-1%)
9,394 (+4%)

note_successful_decrypting_time_in_ms
147 (+5%)
487 (-9%)
997 (+4%)

note_trial_decrypting_time_in_ms
52.1 (+19%)
:warning: 100 (+114%)
130 (+47%)

l2_block_building_time_in_ms
16,890 (-1%)
68,554 (+1%)
135,541

l2_block_rollup_simulation_time_in_ms
6,954 (-2%)
27,893 (-1%)
56,004

l2_block_public_tx_process_time_in_ms
9,910 (-1%)
40,531 (+2%)
79,436

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
13,806 (-1%)
27,468 (+5%)

note_history_successful_decrypting_time_in_ms
1,285 (+8%)
2,532 (+5%)

note_history_trial_decrypting_time_in_ms
:warning: 138 (+106%)
194 (+59%)

node_database_size_in_bytes
19,046,480
35,655,760

pxe_database_size_in_bytes
29,859
59,414

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
281 (+1%)
44,338
27,700

private-kernel-ordering
217
52,324
14,326

base-rollup
636
177,083
925

root-rollup
68.2 (-1%)
4,176
789

private-kernel-inner
639 (+1%)
73,197
27,700

public-kernel-app-logic
439
35,198
28,215

public-kernel-tail
177
40,926
28,215

merge-rollup
8.28
2,696
925

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
9.95 (-1%)
16.1 (+1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.6
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.581 (-1%)
0.498 (+1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
45.9
74.2 (+3%)
229
446 (+1%)
887 (+2%)
1,718
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
96.0
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.472
0.459 (+3%)
0.419
0.416
0.423 (+2%)
0.412
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
53.4
111 (+5%)
336 (+1%)
657
1,311
2,614
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
104
207
691
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.476
0.500 (+4%)
0.457
0.452
0.455
0.454
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
60.8

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
109

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.533 (-1%)

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes

tx_size_in_bytes
22,014

Transaction processing duration by data writes.

Metric
0 new note hashes
1 new note hashes

tx_pxe_processing_time_ms
4,075 (+2%)
1,743 (+1%)

Metric
0 public data writes
1 public data writes

tx_sequencer_processing_time_ms
12.9 (-1%)
1,234

:robot: Release is at https://github.com/AztecProtocol/aztec-packages/releases/tag/aztec-packages-v0.27.2 :sunflower:

:robot: Release is at https://github.com/AztecProtocol/aztec-packages/releases/tag/aztec-cli-v0.27.2 :sunflower:

:robot: Release is at https://github.com/AztecProtocol/aztec-packages/releases/tag/aztec-package-v0.27.2 :sunflower:

:robot: Release is at https://github.com/AztecProtocol/aztec-packages/releases/tag/barretenberg.js-v0.27.2 :sunflower:

:robot: Release is at https://github.com/AztecProtocol/aztec-packages/releases/tag/barretenberg-v0.27.2 :sunflower:


[WIP] Update 10.2 as per func-style allowArrowFunction

This updates rule 10.2 following the change in https://github.com/Shopify/eslint-plugin-shopify/pull/188 allowing arrow function expressions.

The current Why? section looks like this

Why? Function declarations are named, so they’re easier to identify in call stacks. Also, the whole body of a function declaration is hoisted, whereas only the reference of a function expression is hoisted. This rule makes it possible to always use Arrow Functions in place of function expressions.

I'm not sure how to update it, especially since

This rule makes it possible to always use Arrow Functions in place of function expressions.

is already there... 🤔
I could add something like

Arrow functions are acceptable when their this semantics are required, or when function expression typing semantics are desired, if working with TypeScript. For example:
interface Props { className: string }
const Div: React.SFC<Props> = ({className, children}) =>
{children}

Thoughts @lemonmade?


Flutter Draggable doesn't work in Web (Master) Channel

Hi Dev Team
Here is my Flutter Doctor Output
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, v1.12.16-pre.35, on Microsoft Windows [Version 10.0.18362.476], locale en-IN)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 3.5)
[√] VS Code (version 1.40.2)
[√] Connected device (2 available)

• No issues found!

I tried Draggable but It is not working in web same codebase works fine in Mobile devices.
Please guide me if I'm doing anything wrong.

Hello @sentanilesh !
Thank you for posting an issue.
Can you please provide a code example that might be used to reproduce the issue?

Fixed by flutter/engine#14082


dvc push doesn't work with PUT method

Bug Report

Description
For dvc version 2.43.1 pushing to remote doesn't work. It push first file with put method and then try to use post method.
Here there is our dvc config file:
[core]
    remote = test_data
[cache]
    type = hardlink
['remote "test_data"']
    url = https://artifactory.company_name.com/artifactory/testDataRepo/
    method = PUT
    auth = basic
    jobs = 4

We tested the same configuration with 2.41.1 version and it works as expected.
Reproduce
with dvc ver. 2.43.1 installed:

dvc init
dvc remote add test_data <artifactory_storage>
dvc remote modify test_data method put
dvc remote modify test_data  auth basic
Copy at least two files to the directory
dvc add
dvc push

Expected
Files pushed to artifactory general storage
Environment information
Output of dvc doctor:
---------------------------------
Platform: Python 3.8.0 on Windows-10-10.0.19041-SP0
Subprojects:
        dvc_data = 0.35.1
        dvc_objects = 0.19.0
        dvc_render = 0.0.17
        dvc_task = 0.1.11
        dvclive = 1.4.0
        scmrepo = 0.1.6
Supports:
        http (aiohttp = 3.8.3, aiohttp-retry = 2.8.3),
        https (aiohttp = 3.8.3, aiohttp-retry = 2.8.3)
Cache types: hardlink, symlink
Cache directory: NTFS on C:\
Caches: local
Remotes: https
Workspace directory: NTFS on C:\
Repo: dvc, git

Additional Information (if any):
It worked when we changed method in https://github.com/fsspec/filesystem_spec/blob/master/fsspec/implementations/http.py
from:
async def _put_file(
        self,
        lpath,
        rpath,
        chunk_size=5 * 2**20,
        callback=_DEFAULT_CALLBACK,
        method="post",
        **kwargs,
    ):

to:
async def _put_file(
        self,
        lpath,
        rpath,
        chunk_size=5 * 2**20,
        callback=_DEFAULT_CALLBACK,
        method="put",
        **kwargs,
    ):

but we treat this more like quick hack not a solution.
Here there are logs with verbose:
logs.txt

CC @pmrowla

@tomasz-wezyk you should be able to test the fix with
pip install git+https://github.com/iterative/dvc-http.git@refs/pull/45/merge#egg=dvc-http

(from your existing DVC virtualenv)


refactor: use HashData

:white_check_mark: Build TheIdServer 7.0.0-user-ole.1+13.build.2762 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/0e79fb2cdc by @)

:x: Build TheIdServer 7.0.0-user-ole1-0014 failed (commit https://github.com/Aguafrommars/TheIdServer/commit/82fe643a21 by @)

:x: Build TheIdServer 7.0.0-user-ole1-0015 failed (commit https://github.com/Aguafrommars/TheIdServer/commit/bd42fa227d by @)

:white_check_mark: Build TheIdServer 7.0.0-user-ole.1+15.build.2765 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/bd42fa227d by @)

:white_check_mark: Build TheIdServer 7.0.0-user-ole1-0016 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/48b48a58fe by @)


Always parse process config into RewriteDriverFactory::default_options,

and then sync it back to per-ServerContext options. Should fix the
regression with ImageMaxRewritesAtOnce (https://github.com/pagespeed/mod_pagespeed/issues/1305),
and give RewriteDriverFactory and all the ServerContexts a consistent view of their value.

Going to export the perforce version..


'totallag' not documented

Hello,
We're thinking about using Burrow for our application to monitor lag / circuit break some components, however, we have a concern regarding the 'totallag' attribute.
Looking at the API, the information we want (the total lag for a given consumer group) is available at /kafka/.../consumer/.../status and /kafka/.../consumer/.../lag with the field 'totallag'.
However, this field doesn't appear to be documented in your wiki ( https://github.com/linkedin/Burrow/wiki/http-request-consumer-group-status ), is it just a mistake in the documentation, or is the field deprecated / not reliable in any way?
Thanks

Ping?

Documentation of Burrow is a one big mess. They managed to miss documentation of SASL mechanism too... https://github.com/linkedin/Burrow/issues/526#issuecomment-772315238
The more I try to use Burrow, the more I hate it... https://github.com/linkedin/Burrow/issues/681

Spoiler: we ended up not using borrow to monitor lag

What would you recommend for multi-cluster lag metrics?


PMD version 6.46.0 run check on "Unchanged files with check annotations"

Hello,
As PMD introduced ver 6.46.0 on May 28, GitHub action started to target also "Unchanged files with check annotations" which are not part of the PR.
We are forced to rollback to ver 6.45.0 because this behavior was blocking our deployment.
Is this an expected thing in 6.46? And is there a way to skip the "Unchanged files with check annotations" check from the violations property of the action output and use the ver 6.46, or this is a bug?
Thank you.

That's definitively unexpected. I can confirm it with my test.
It seems that the parameter --file-list is not honored correctly anymore (that's how the GitHub Action provides the files to analyze).
I think, this is a bug on PMD side and not the GitHub Action.

Thank you @adangel for your answer!
Will follow the updates of this issue. In the meanwhile, we will continue to use ver 6.45.0.

Thank you @adangel :)


feat: support set proxy

Thanks, I will hold this pr for tests, I will add a few features for this weekend.

Thank you so much for your contribution!


Consider removing asserts in frequently called functions for improving performance

Replace assert!()[1] with debug_assert!() in encode_varint32()and
encode_varint64() should improve the performance[2] in suitions like
encoding small messages very frequently.
[1] https://github.com/stepancheg/rust-protobuf/blob/4a2e71bae08d4a95326d8010a7365228f6015716/protobuf/src/varint.rs#L5
[2]  https://github.com/danburkert/prost/pull/21/commits/da477703c2e13a51592dbe265ee34707c1a00eca

Function calls get_unchecked_mut so range check must not be removed.
However, function could probably be marked as #[inline(always)] to effectively remove this range check.

Thank you for your prompt reply. I will try it out.

Closing the issue. If you have some concrete proposals what assertions to remove, please reopen or send a PR.