interegular not in requirements.txt

I ran pip install -r requirements-doc.txt, and then tried to run examples/parsing.py.
However I still get
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/ahle/outlines/examples/parsing.py", line 18, in <module>
    from outlines.text.parsing import PartialPythonIndenter, copy_parser_state, parse_to_end
  File "/Users/ahle/outlines/outlines/__init__.py", line 4, in <module>
    from outlines.text import prompt
  File "/Users/ahle/outlines/outlines/text/__init__.py", line 2, in <module>
    from .generate import continuation
  File "/Users/ahle/outlines/outlines/text/generate/__init__.py", line 2, in <module>
    from .regex import float, integer, regex
  File "/Users/ahle/outlines/outlines/text/generate/regex.py", line 4, in <module>
    import interegular
ModuleNotFoundError: No module named 'interegular'

After pip install interegular it is able to run.

You need to install the library pip install .. requirements-doc.txt only contains the extra requirements to build the documentation (which could be moved to pyproject.toml instead).

This was also an issue when doing pip install .. Solved by #200.


How to assert the json body response look likje

Hi guys
I need a help on asserted the  json body and json response look like
{
"Code":"123456",
"seatcode":"1",
"pricelist":"5.00",
}
how to assert the response  ?

You could try something like this:
import static org.hamcrest.Matchers.is;
...
.body(
    "Code", is("123456"),
    "seatcode", is("1"),
    "pricelist", is("5.00"));

@anderfsilva  Thanks for the update

@kishorekumarl why is this issue still open?

@kobbikobb I'm going to close it, thanks for bringing it to my attention.

Yes, it fixed
Thanks for everyone support.
Regards
L.Kishore Kumar
On Mon, Jun 24, 2019 at 12:47 AM Johan Haleby<EMAIL_ADDRESS>wrote:

Closed #982 https://github.com/rest-assured/rest-assured/issues/982.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rest-assured/rest-assured/issues/982?email_source=notifications&email_token=ADU6ULJSI2MKGKCPLPYQPZ3P4B3YJA5CNFSM4ETKUVIKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSEE6TYQ#event-2433346018,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADU6ULIY4N7QL7UVSVY4B6LP4B3YJANCNFSM4ETKUVIA
.


grouping first two  and last two  together on a single line in display

Dear @ajaniak — as discussed yesterday, please apply a rule for display of <lg> that pairs of <l> must be displayed in a single line if met="anuṣṭubh".
I have made the necessary changes in the file DHARMA_CritEdSvayambhu.xml so we can use it to test the rule.

It has been done

thanks!


combine user signature parts now that ink supports 64 length arrays

fixes #463

fixes #461

fixes #462

fixes #458

this has grown in size and now fixes crucial bugs with typechain and ink 4.3.0

blocked by #421


Replace KIC bitly links with links we control

Description
Try and move the KIC manifest links off bitly.
Testing instructions
Yes.
Checklist

[ ] Review label added
[ ] PR pointed to correct branch (main for immediate publishing, or a release branch: e.g. release/gateway-3.2, release/deck-1.17)

It is indeed a duplicate, so I'm closing now that https://github.com/Kong/docs.konghq.com/pull/5240 was merged.


Generate Generic type as parameter with <> instead of [ ]

If my method on the server is using Generics then it is generated like this, which is great only for the '[' character it should be <>
//wrong
export interface Field  [  HeaderField  ] {
Name?: string;
Field?: __model.HeaderField;
}
//fine
export interface Field < HeaderField > {
Name?: string;
Field?: __model.HeaderField;
}
it would be great to have this tiny change.
Best regards

Please, add a definition json example, so it's clear what leads to this, and also feel welcome to make a PR.


added make_rpc_call()-method to allow napalm to query devices directl…

…y using XML

improved general performance by matching on the response-terminating string rather than using regexps.
napalm unit tests for pyIOSXR passed.

Cool, thanks!


Witness per hour

Awesome little script, would it be possible to add a feature to it? How many witnesses have been sent per hour. I usually get an idea of the state of the network by analyzing this and how many hotspots are sending beacons. Usually it's a constant number but sometimes it just goes way down.

Hi
I'm glad you are finding the script useful :)
I've now added the requested metric:
$ ./processlogs.php

Using logs in folder /opt/panther-x2/miner_data/log/

General Witnesses Overview
----------------------------------
Total witnesses                   =   190  (3.46/hour)
Succesfully delivered             =   143 (75.26%)
Failed                            =    47 (24.74%)

As start & end times it uses those of the first and last witness being analyzed.
I hope it helps! Let me know if you have any comments.


Got error while processing diagnostics

I am trying to setup HIE with VS Code on mac OS but whenever I open Haskell file, I got following error:
Got error while processing diagnostics: lib/LensesConfig.hs:1:1: fatal: Cannot load -dynamic objects when GHC is built the normal way To fix this, either: (1) Use -fexternal-interpreter, or (2) Build the program twice: once the normal way, and then with -dynamic using -osuf to set a different object file suffix.

Source: Haskell Language Server (Extension)

I followed the installation instructions in README and built HIE using make hie-8.4.3 (hie and hie-wrapper are in $PATH). The project I am working on is open source (available here: https://github.com/ds-wizard/dsw-server) and builds without errors. Even though the error message is pretty clear I am not sure how to fix it 😞 .
I assumed the problem is caused by VS Code extension, but got the same error with Atom.
Any help is appreciated :-)

I am getting a HIE crash (not GhcMod error) when loading this project

hie-8.4.4 loads this project fine on NixOS.

I just recompiled the project with lts-12.26 resolver with hie-8.4.4 but got same error result. I would like to help out, but I am not even sure how to debug this..

I am not familiar with MacOS but what happens if you remove the -dynamic flag from the ghc-options in  *.cabal?

I did:
rm -rf .stack-work
hpack
vim dsw-server.cabal
stack build

but got the same error again :-/


Gorzyce

add new school

@ReactorNefg First stage of verification passed, official domain is facebook.com as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://www.facebook.com/Zsgorzycee/

@ReactorNefg Thank you for your patience while waiting for a review and processing your request. Pull request merged.


Rework branch structure

This fork has very disorganized branches. There are lots of branches in this repo whose purpose is unknown, and/or has been left as a temporary branch and never cleaned up. There are also other branches which may be archival, but whose name does not suggest this.
A system which replaces the current one must satisfy the following conditions:

leaves minimal change on the master branch
documents itself, preferably on the master branch
Allows archiving of code from past seasons, along with the version of evlib used last by that season
have a naming scheme which makes the purpose of the branch obvious

Refactoring of the branches currently in the repo is left open for now.

Here's a potential solution:

master: only has upstream code and an additional github actions file
evlib-dev: used for active evlib development. Everything except for the TeamCode module can be modified
evlib-release: used only for verified and ready features of evlib
season-[year]-[name]: used for active in-season development. It receives updates from evlib-release, and only TeamCode can be modified.

Because the directories in the season branches and the evlib-release branch are exclusive of each other, merge conflicts should be much less common. The branches are also easily searchable, since they are prefixed by their category.
This doesn't address the location of the branch documentation though. And related to the point on searchability, perhaps the name should come before the year on the season branches?

zamn!! that's a great idea!!!

Been a while, last few tasks are to preserve the old branches somewhere and delete them from this repo


"Each time, there're more Production WebApps using Restangular. If your webapp uses it and it's not in the list, please create an issue or submit a PR"

Quran.com will shortly be using Restangular and you can currently see the alpha version at alpha.quran.com

@mmahalwy hope you didn't change your mind in the meantime :)

haha, don't worry! Still using it strong!
In the past 2 weeks, it's powered over 100k+ API calls - and this is just the alpha site ;)

Thanks for merged :)

You're welcome :) That's good news! Good luck on the next stages of the development!


cmd/go/mod/why: failed to show shortest paths for indirect modules in the import graph

If I understand correctly, I think go mod why -m <module-path> should always show a shortest path unless the target module doesn't exist in the import graph. But it sometimes shows unexpected (main module does not need ...), even if the target module definitely exists in the import graph (can be proven by go mod graph).
Try this (from https://github.com/golang/go/issues/36423#issuecomment-571485496):
$ git clone -q https://github.com/appleboy/gin-jwt.git && cd gin-jwt
$ go mod graph | grep 'github.com/belogik/goes'
<EMAIL_ADDRESS><EMAIL_ADDRESS>$ go mod why -m github.com/belogik/goes
# github.com/belogik/goes
(main module does not need module github.com/belogik/goes)

I think the expected output of go mod why -m github.com/belogik/goes here should be:
# github.com/belogik/goes
github.com/appleboy/gin-jwt/v2
github.com/appleboy/gin-jwt/v2.test
github.com/appleboy/gofight/v2
github.com/appleboy/gofight/v2/example
github.com/astaxie/beego
github.com/astaxie/beego/logs/es
github.com/belogik/goes

With this result, we can clearly know exactly how a module enters our import graph. But now we have to know it by using some workarounds like go mod graph | grep '<module-path>', this's inconvenient.
/cc @bcmills, @jayconrod

@gopherbot, please add labels GoCommand, modules

cc @matloob
go mod why -m doesn't actually show the shortest path through the module version graph. From go help mod why:

Why shows a shortest path in the import graph from the main module to each of the listed packages. If the -m flag is given, why treats the arguments as a list of modules and finds a path to any package in each of the modules.

So in this case go mod why -m reports that the main module does not need github.com/belogik/goes because no packages in that module are transitively imported by packages in the main module. github.com/belogik/goes is transitively required via go.mod files, so it shows up in the go mod graph output.
Closing because this is working as documented. However, I admit I don't personally find this behavior intuitive, and I think most people expect go mod why -m to operate on the module graph, not the package graph. Maybe we should consider a proposal to change that.

I think most people expect go mod why -m to operate on the module graph, not the package graph. Maybe we should consider a proposal to change that.

That is #27900, I think.


typo in example target code

Should be .align instead of .alive.
https://github.com/riscv-non-isa/riscv-arch-test/blob/9141cf9274b610d059199e8aa2e21f54a0bc6a6e/riscv-target/example-target/model_test.h#L27
Somehow I am using this code with the typo but not having any issues.

The description of .align is as per the riscv-asm/gnu pseudo ops defined here
It is meant to align the end of the signature at a 16byte boundary has demanded in the Testformat spec

It is not .align there is a typo, it is written alive, as in all the living creatures, please look at line 27 again.
Since this example is not compiled and executed, there are probably more such typos.

my bad.. should I have read your comment better.. will fix it.


Add .pdb files to DI.Spec.Tests nuget

The published nuget for DI.Spec.Tests does not contain .pdb files. This means the tests cannot be debugged with Sourcelink.
I recently wrote an adapter for a container with the explicit goal of passing all the specification tests. When the tests fail, being able to debug them is essential to identify the problems. Of course, I was able to clone the tests and build them locally for debugging, but I think using Sourcelink would be better.
I don't think there is a use case for the tests (outside of the project itself) other than writing and testing other implementations/adapters, so debugging is always going to be necessary.
Dave

Hi @smalleythedave we don't typically embed PDBs in the NUPKGs because it increases the size of the file for most people even though they don't need it. However, sourcelink should be enabled for all packages and I think the PDBs are on the public symbol servers.
Can you show what error(s) you got while trying to step into the code, and what debugger settings you are using?

Hi Eilon,
You are quite right. I had enabled Sourcelink but not the Microsoft symbol servers.  After doing this the source gets downloaded and I can easily step into and inspect it. I guess including the pdb in the nuget is for libraries without a symbol server.
Thanks, Dave

Glad you got it working! Closing this issue.


Handling Basic Zone scenarios for starting VM in stopped state

Basic Zone result:
Test Deploy Virtual Machine with no startVM parameter ... === TestName: test_01_deploy_vm_no_startvm | Status : SUCCESS ===
ok

Ran 1 test in 41.609s
OK
Advanced Zone result:
Test Deploy Virtual Machine with no startVM parameter ... === TestName: test_01_deploy_vm_no_startvm | Status : SUCCESS ===
ok

Ran 1 test in 139.844s
OK

LGTM

LGTM


Client and server certificates for testing are expired

It seems that client and server certificates for testing purposes are expired:
$ openssl x509 -enddate -noout -in tests/certs/client.crt
notAfter=Feb 18 14:36:48 2020 GMT

$ openssl x509 -enddate -noout -in tests/certs/server.crt
notAfter=Feb 18 14:32:50 2020 GMT

As a result there are fails in https_server_test.

ah nuts.
Can we have the test infrastructure create new certs when the test is ran?  Or, let's create certs that won't expire until we're all long expired ourselves. :)

I just realized that this is a top-priority bug, as all unit tests will fail now.  ugh.  I won't be able to fix this for a few hours.  Any PRs to apply a short-term or long-term fix are welcome.  I can approve those quickly.

It was bound to happen sooner or later :)

I fixed this in the master branch via commit 61db7fd739a68364e54d848e8229c0fce3198afe.  In hind-sight, I should have fixed this in a branch and performed a normal merge.  I'm still used to using subversion....


Use hostname not netloc

Fixes #4275 by passing only the hostname/IP to urllib's proxy_bypass function which was timing out further down in socket.gethostbyname when passed a hostname or IP that contained authentication credentials.
While fixing the parameter passed to proxy_bypass, I also took the chance to replace other uses of netloc with hostname in the should_bypass_function.

Codecov Report

Merging #4427 into master will increase coverage by 1.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4427      +/-   ##
==========================================
+ Coverage      89%   90.08%   +1.07%
==========================================
  Files          18       15       -3
  Lines        2065     1543     -522
==========================================
- Hits         1838     1390     -448
+ Misses        227      153      -74

Impacted Files
Coverage Δ

requests/compat.py

tests/testserver/__init__.py

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 24092b1...c120f4b. Read the comment docs.


Add hex encode and decode functions

encoding.HexEncode
encoding.HexDecode
The primary driver for this enhancement is to decode the output from crypto.HMAC as needed. See:
https://discourse.gohugo.io/t/have-hmac-outputs-raw-binary-data-rather-than-hexits-lowercase/37808/
cc @regis

I would like to change this issue's objective, title, and description per:
https://discourse.gohugo.io/t/have-hmac-outputs-raw-binary-data-rather-than-hexits-lowercase/37808/6
cc @bep @regisphilibert


Missiles fired before spawn are not displayed

Steps to reproduce
Open two Airmash windows to the same server and game.
Watch on the destroyed plane's window and keep firing from the other.
You should see hits but no missiles being fired.
Expected behavior
Missles are rendered.

Here's some notes for anyone who wants to tackle this issue (I'm not going to have time until later this week at the earliest):
The root cause of this issue is that currently the server only sends missile updates when they are fired. This works ok most of the time, but when the player doesn't get the initial firing message the client will never know that the missile exists.
The proper solution is to create a new handler for PlayerJoin events (put it in server/src/systems/handlers/game/on_join) that does the following:

Sends a MobUpdate packet to the client for all missiles within viewing distance. (types::Config has a viewing distance that should be used for this)
Runs after the system that sends the login response packet (the client will ignore any packets it receives before the login response). This means that the new system will have to depend on systems::handlers::game::on_join::SendLogin.
Must be registered in server/src/handlers/game/register.rs otherwise the new system won't be run.

It is worth looking at the other join event handlers to get an idea of how they are structured.


Broken links in page

[Enter feedback here]
Under the heading Data sources in Solutions, there are two link references which return 404 page not found:
If a canvas app is a solution, connection references and environment variables may be created to store information about the data sources.
Cheers
/Ken

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

ID: e7c89a8f-b16f-2896-faae-efbb438c7a89
Version Independent ID: 8ce453b3-7e57-c80a-7ca0-9b122ad4796b
Content: Connectors overview for canvas apps - Power Apps
Content Source: powerapps-docs/maker/canvas-apps/connections-list.md
Service: powerapps
GitHub Login: @lancedMicrosoft
Microsoft Alias: lanced

Thank you for reaching out. Documentation has been updated. Changes will be reflected soon.


[Image Processing] Add Halide convolution benchmark

I think we should add benchmarking support for comparing performance with Halide in image-processing-benchmark.

@meshtag Thanks for opening this!
I have assigned this to Taiqi @taiqzheng.


local_secure doesn't seem to be working

Attempted Debugging

[X] I have read the debugging page

Searched GitHub Issues

[X] I have searched GitHub for the issue.

Describe the Scenario
This is possibly me misunderstanding the feature, or it might be a bug, but I've enabled the following in my .env
STORAGE_TYPE=local_secure
I've verified that all images are being uploaded to storage/uploads (outside the public directory), but yet I can still enter the direct image URL in an incognito tab to view the image. I'd expect that I'd need to be logged in to view the image?
I did find issue #2998, which is the same scenario, apart from I have not set STORAGE_IMAGE_TYPE at all, which if I've read the docs correctly, means that it will use STORAGE_TYPE
Thanks,
Exact BookStack Version
v22.07.3
Log Content
No response
PHP Version
8.1
Hosting Environment
Debian 10, NGINx, PHP 8.1 fpm

Hi @brynmoorhouse,
Do you have the "Allow public access" setting enabled in the "Settings > Features & Security" area of BookStack?

I do, but the page which the image is uploaded to isn't public.

the permissions show that the image access is controlled by the item it's uploaded to, but that doesn't seem to be the case here.

Yeah, this could do with clarifying I guess on this roles view to avoid insecure assumptions.
The view of images, within the image manager, will be controlled by items they're uploaded to.
Access to the actual image file, is not so controlled via the system, and depends by storage type as discussed above.

but it would be good if we can have that as a feature request

Sure, I haven't had this as a common request here (Can't find existing issue) but has been requested via some other channels.
It's about time we add this as an option, although there will be some caveats/usability concerns. I've started this off in #3693, to be part of the next release.
This issue will remain open, with an aim to clarify the available image security options. I'll update the title for this focus.

I've now added a notice to the roles view for clarification as part of d8672944a5b3f6002b9d164f4c13b69408b5e75e.
Permission-controlled images have been added as part of #3693.
The BookStack docs have been updated with clearer detail of the options as part of the work done in https://github.com/BookStackApp/website/commit/5cacef6802bf7c8c2e5949e57921a749d328d7a5.
All of this will be part of the next feature release.
Thanks @brynmoorhouse for your input here.

Epic, thank you!


Section bug

Abdul Wahid Khan: Multani; Minute 2:40
I'm in the process of "fixing" my old section breaks (where I started them "prior" to the trajectory onset.
With those adjustments thus far, we see section 3 jumps to Section 31 at minute 2:40

I’m not sure what you mean by this. Maybe you can show me tomorrow?

On Nov 21, 2023, at 3:14 PM, Dard-Neuman @.***> wrote:
Abdul Wahid Khan: Multani; Minute 2:40
I'm in the process of "fixing" my old section breaks (where I started them "prior" to the trajectory onset.
With those adjustments thus far, we see section 3 jumps to Section 31 at minute 2:40
—
Reply to this email directly, view it on GitHub https://github.com/jon-myers/idtp/issues/370, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVCTFLUBOB45K4JFSECURLYFUDTXAVCNFSM6AAAAAA7VE2UGSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYDKMBVGYYDENI.
You are receiving this because you are subscribed to this thread.

The core challenge is that adding or deleting sections/phrases into an already existing transcription doesn't always push or contract the section/phrase coding accordingly.
I've been trying a different technique whereby every time I delete or add a section or phrase into something already transcribed, I not only save but close out and re-enter. That has been helping.

Don't worry about one for another week. I've been more methodical about my approach, including waiting after I save before doing any additional actions. Let me see if the problem continues and what I did prior to provoke it. I'm guessing that I did multiple actions before letting the program fully save one (or one set of) actions


feat(taps): Add files and stats to PullRequestCommitsStream

The purpose of this PR is to add the files and stats propertied to the PullRequestCommitsStream.
These properties contain information about the changes done on a given commit (additions, deletions and total). files has these detailed at the file level whereas stats has a summary of changes at the commit level.

@dlouseiro Thanks for the PR!

This PR does not seem to fix the issue. Need to investigate further!

I wonder if you're running into https://github.com/meltano/meltano/issues/6763. Can you try the recommended workaround of removing the cached catalog in .meltano/run/tap-github?

@dlouseiro Thanks for the PR!

This PR does not seem to fix the issue. Need to investigate further!

I wonder if you're running into meltano/meltano#6763. Can you try the recommended workaround of removing the cached catalog in .meltano/run/tap-github?

Ah possibly! Thanks for the input. I'm already performing a test run on a clean meltano installation in our kubernetes cluster so should be able to test it soon!

@dlouseiro Thanks for the PR!

This PR does not seem to fix the issue. Need to investigate further!

I wonder if you're running into meltano/meltano#6763. Can you try the recommended workaround of removing the cached catalog in .meltano/run/tap-github?

Ah possibly! Thanks for the input. I'm already performing a test run on a clean meltano installation in our kubernetes cluster so should be able to test it soon!

@edgarrmondragon after some testing I actually noticed that, in order to get the files property at the commit level we'd need to do one REST call per commit  as the files properties is not available in the list commits API.
Although, the same property as well as stats is available when listing Pull Request commits so I repurposed the PR to add these properties to the PullRequestCommitsStream instead!

I just started looking into using this tap in our Meltano setup and wanted to get a listing of files for a PR. This change seemed like it was great timing for what I needed, but I'm not actually seeing the files and stats keys in the output.
They are indeed listed in the "Response Schema" in the API docs but actual responses don't have them.
For example on this pull request:
$ curl -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28"   https://api.github.com/repos/MeltanoLabs/tap-github/pulls/241/commits | jq -n 'inputs[] | keys[]' | sort | uniq
"author"
"comments_url"
"commit"
"committer"
"html_url"
"node_id"
"parents"
"sha"
"url"

Just wondering if you you witnessed different responses? Just want to make sure I'm using the API correctly 😅
I've also started my own fork of this repo, building out a PullRequestFiles child stream which does reliably return the file information.
$ curl -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28"   https://api.github.com/repos/MeltanoLabs/tap-github/pulls/241/files
[
  {
    "sha": "16104839cb25e043016a9f00454e66e2c941778c",
    "filename": "tap_github/repository_streams.py",
    "status": "modified",
    "additions": 10,
    "deletions": 0,
    "changes": 10,
    ...
  },
  {
    "sha": "98381f16592975c5a1487871205a553b2ca6b85f",
    "filename": "tap_github/schema_objects.py",
    "status": "modified",
    "additions": 14,
    "deletions": 0,
    "changes": 14,
    ...
  }
]

Thanks!


Deployment 2017.05.24

Deployment 2017.05.24
Status: Planned
Planned production date: 05/24/2017
Focus:
Services to Deploy:

Branch
Service
INT
PROD

NuGetGallery
V2 Gallery
[ ]
[ ]

NuGet.Services.Metadata
Search Service
[ ]
[ ]

NuGet.Services.Metadata
catalog2registration
[ ]
[ ]

NuGet.Services.Metadata
catalog2dnx
[ ]
[ ]

NuGet.Services.Metadata
feed2catalog
[ ]
[ ]

Related blog posts/docs:

None

Deployed commit:
Deployment Process
Gallery

[ ] Update DB schema
[ ] Deploy services
[ ] Update deployments overview
[ ] Deploy secondary region

Test Plan:

[ ] Run all functional tests
[ ] Smoke testing

Changes

Gallery

Technical

SQL: Added the index recommended by Azure portal perf advisor:  #3950. The index is already created in PROD (manually), so applying the migration should only mark the migration itself as applied and not do anything with the DB.

Functional

Accessibility: Fix: "Example glob patterns" button and "close" button are not accessible using keyboard #3968
Accessibility: Scoped API keys UI - disabled elements are accessible using tab #3963

Sources changes this sprint:

https://github.com/NuGet/NuGetGallery/pull/3997 (plus shims)
https://github.com/NuGet/NuGet.Jobs/pull/150
https://github.com/NuGet/NuGet.Services.Metadata/pull/191


ESP in automatic light sleep has high power consumption (IDFGH-12637)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[ ] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v4.4.5
Espressif SoC revision.
ESP32-WROOM-32E-N16
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
None
Development Kit.
custom pcb
Power Supply used.
USB
What is the expected behavior?
I have many esp32's deployed in the field, and every so often we get a customer where the ESP's are deployed on their wifi network, very standard, 2.4GHz only, ubiquity configs below. I expect the power consumption should be pretty uniform over long period of time.
I've not moved to esp 5.0 yet because i don't see much that suggest it is updated there, if there is a specific update made on idf v5 I'm happy to update otherwise i dont like to.
What is the actual behavior?
Every once in a while (maybe 1x per day may 1x per hour, seemingly random) the ESP will go into a state where it is consuming a ton of power. We noticed that we noticed it by a temperature rise on the board. I added some debug in there since it is remote to monitor the task, from the freerots function uxTaskGetSystemState i pasted below, I notice the activity on wifi task comes way down.

Also note, i'm using the automatic light sleep (WIFI_PS_MIN_MODEM), to minimize power consumption with an active mqtt connection (mqtt over wss, 1 publish per min)
esp_mqtt_client_config_t mqtt_cfg = {
.uri = CONFIG_BROKER_URL,
.event_handle = mqtt_event_handler,
.user_context = NULL,
.username = get_serno(),
.password = read_password(),
.use_global_ca_store = false,
.crt_bundle_attach = esp_crt_bundle_attach,
.client_id = get_serno(),
.keepalive = 60,
.disable_auto_reconnect = true
};
Steps to reproduce.
unsure how to reproduce it locally, it only happens on few wifi networks.
I could port printf to mqtt so i can debug the wifi/ip etc but the issue is I don't think it is a good idea if i turn on all the debug prints because it will massively up my network traffic and from there i'll have a power issue anyway. Are there select prints that i could use to get the key info? or a config that could cause this
Debug Logs.
No response
More Information.
sdkconfig.txt

@patrickwilliamson1 The power surge probably means that the ESP isn't in sleep anymore. This typically indicates that the ESP has some processing to do, thus prevent the power management library from putting the ESP to sleep. Any chance you could find out what tasks are in the ready/running state during the power surge?

Just a tip, enabling CONFIG_PM_PROFILING and using the esp_pm_dump_locks function may help find the specific lock which prevents the system from going back to sleep.

Thanks guys, I will run a log today with these and report back.

Just a tip, enabling CONFIG_PM_PROFILING and using the esp_pm_dump_locks function may help find the specific lock which prevents the system from going back to sleep. It may be the OS (e.g. some tasks are running) or one of the drivers (e.g. Wi-Fi has disconnected, and is trying to scan for network to reconnect back, keeping the radio on for a long time).

I Ran this and was able to cactch another time it happened, I made these to graphs, The other counters were consistant slope so i didnt add them.
Seems like the wifi lock is holding APB_MAX -> is there anything i can use to figure out why?

 @patrickwilliamson1 Can you briefly explain what this chart means?
another question: Do you know what the AP's DTIM parameter is?

This is the is the difference of uxTaskGetSystemState output, it measures how many freertos ticks the fucntion is active DTIM is 1 (i've also tried 3 already, same result)

@igrr Any thoughts on this?

I ported ESP_Logx to Ram so i could get it remotley and enabled lwip, wifi debug. do you see anthying in the high power usage log that could cause it?
high power usage.txt
Normal_power usage.txt

@igrr @esp-lis what do you think could cause ESP to get stuck holding the APB_MAX lock?

It's possible that there is interference and the ESP needs to use more power on the Wi-Fi, it should be easy to test, block the signal or move the board such that it's harder to connect.

It's possible that there is interference and the ESP needs to use more power on the Wi-Fi, it should be easy to test, block the signal or move the board such that it's harder to connect.

I've tried this, does not recreate the issue. The devices in the field that experience this have signals ranging between -40 to -60 dB

I've tried this, does not recreate the issue. The devices in the field that experience this have signals ranging between -40 to -60 dB

@patrickwilliamson1 referring to the figure above, I guess the moment when the power consumption increases is in the red dotted box, I think there may be upstream data transmission or downstream data reception, which may be triggered by the upper layer protocol, such as lwip or mqtt, which may need to be analyzed by capturing data packets.


Release/0.1.0

Hi, in this release PR, I have implemented the following. Please review and provide feedback.

Setup initial project with create-react-app components, linters, readme and gitignore.
Create react components for the project.
Create redux store and redux slices.
Setup React Routers for page navigation.
Hit the API using asyncthunks and display city details in the homepage.
Hit the API to fetch details about particular city and display in the details page.
Create store mock and api request mocks(using service worker) for integration testing.
Add test data for API mocks, write unit tests and snapshot test cases.
Add styling for mobile and desktop screens.
Deploy the project on Render.
Document the project in readme file, add Loom presentation video and live demo video.

Live Demo link - https://cyclesharing-de-ram.onrender.com/
Video presentation - https://www.loom.com/share/170b859efa784c17bdbc65d88c078c92

@rotimiazeez  Hi Azeez, thank you for the review and feedback


Updates to transaction layer doc

Fixes DOC-6662

Adjustments to language for clarification
Closed timestamp description added with reference to minimizing transaction retry error reference

Hey @AlexTalks! Just a friendly fresh ping here.


What if the request parameter is a string, not a dictionary?

Usually, most of us use return. request parameters (parameters: parameters, encoding: URLEncoding. method Dependent), but if necessary, we want to use String instead of Dictionary, and there is a [String: Any] problem.


iOS 7

Will this work with iOS 7?
I don't have an iOS 7 device but I need to target iOS 7 min.
Are you using any code that is iOS 8+

If the code is based on NYSegmentedControl, then it probably will work with iOS 7

The code is not based on NYSegmentedControl.
I don't believe there's API usage that isn't there on iOS 7. However, considering there is no way to build against it, I would strongly discourage you from using it if you need to target iOS 7.


add authenticaton possibility

I'd like to have to possibility to pass auth information to the tool.

Thanks.


Add JetBrains Rider to IDE exceptions

As with similar JetBrains IDEs on the list, this allows the IDE keymaps to work correctly for JetBrains Rider.

The change to jsonnet/lib/bundle.libsonnet looks good, but can you update the README as well to include the JetBrains Rider in the Generally Excepted Applications -> IDEs section? Don't forget to add yourself to the Credits section, too!

Sorry - I did this locally but somehow forgot to include. Have pushed that.

Sorry - I did this locally but somehow forgot to include. Have pushed that.

No worries, it happens. Thanks for the PR!


chore: release 1.10.0

Updated changelog links: closes #287

does ruint in [dev-dependencies] need a bump to 1.10?


notification button, menu item with notification

https://vaadin.com/docs/latest/components/side-nav#prefix-suffix-elements

https://vaadin.com/blog/dont-let-deep-linking-code-clutter-your-ui-logic


Script is gone since the last update

They changed "Wait Until Free" to "Prêt-à-lire". That's could be the reasons of this issue.
https://gyazo.com/cc67c58ad81035987a021dcb1ee70d07

Shouldn't it show the bought chapters then?

Shouldn't it show the bought chapters then?

Liked chapters are not displayed. Probably since the last update of the application where they changed the names of the wait until free as I said above.

Shouldn't it show the bought chapters then?

Liked chapters are not displayed. Probably since the last update of the application where they changed the names of the wait until free as I said above.

I understood that. I'm pointing out that purchased chapters are not considered as WUF nor Prêt-a-lire. And Favorites were previously displayed even though there was nothing available to download. Also you can download using --url , it works.

Mhm ok, that's goo to know till the script isn't fixed. Thank you.

Shouldn't it show the bought chapters then?

Liked chapters are not displayed. Probably since the last update of the application where they changed the names of the wait until free as I said above.

I understood that. I'm pointing out that purchased chapters are not considered as WUF nor Prêt-a-lire. And Favorites were previously displayed even though there was nothing available to download. Also you can download using --url , it works.

It seems that Piccoma changed their URL, that's the issue and pretty easy to fix, we just have to wait the dev.

Endpoint for bookmark changed, NEXT is now empty from bookmarks, hence the downloader wont work
https://piccoma.com/fr/api/haribo/fr/bookshelf/v2/bookmark

No news from the dev?

No news from the dev?

People can use my fork in the meantime

Download source, unzip it
use command npm install && npm build && npm pkg in source folder to build the binaries
look into dist folder for executables

No news from the dev?

People can use my fork in the meantime

Download source, unzip it
use command npm install && npm build && npm pkg in source folder to build the binaries
look into dist folder for executables

Does it require to install Node?

Sorry for the delay. New release is published.
Thanks for the pull request @MikeZeDev

Thanks for the update
but...

Sorry for the delay. New release is published. Thanks for the pull request @MikeZeDev

Thanks for the update
but...

folder

yeah forgot that .
You can thanks Fairies he asked me and i was curious ;)


field names are not escaped

where key = ?

will result in
Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key = ?)

Issue is fiex, thank you


how to download lynda with (library card)

[lynda] 580965: Downloading video JSON
ERROR: lynda returned error: Session has expired

Carefully read new issue template and provide all requested information.

ok thanks bro


Unmarshal Error for GetChatMenuButton

Hello! I got an error like below when I call Do() of GetChatMenuButton():
panic: unmarshal: json: cannot unmarshal object into Go value of type tg.MenuButton [recovered]

Hey, thanks for the issue! Problem solved, now I will look at the second problem you found and do a release.

@xtianpu that fix was released in v0.9.1.
FYI: https://github.com/mr-linch/go-tg/issues/124#issuecomment-1557735631


Missing line across pages

There used to be a silver line under the title on each page which seems to have disappeared in the nightly. Patrick and noticed it on the project settings page when doing fit and finish issues yesterday ("silver" line) and didn't realize it was more than one page. Latest nightly it's missing on all pages.

etc
It should be perpendicular to the vertical line on the bot selection menu, right under the title.

cc @mareekuh @vivekkshankar

Shiproom - the window for F&F issues is now closed.  moving this to R14

The divider line only disappeared in today's nightly. Could this be a regression/new issue introduced by another change? (We are concerned.)

Yeah, I saw this when Patrick and I went through f+f issues yesterday but only on the configure page (and it does seem to be fixed there now), not any of the other pages. So I wonder if that created a regression. It looks pretty sloppy.

we tool a lot of F&F issues yesterday, which are in today's bits.  I'm sure somewhere in one of those PRs there's the cause.
it's unfortunate, but at this point in the cycle, it doesn't electrocute the user, there's not data lost, and it doesn't cause a crash.  so we'll have to live with it until we push a post R13 release out.

I need to respectfully disagree. This regression is a must fix.  It's a glaring bug that every single user will see and notice.
It's like having some buttons missing in your beautiful pressed wedding shirt... and it'll show up in every single wedding picture for the next many years to be ridiculed... (congrats to getting married @a-b-r-o-w-n ).
But seriously - this is visible on pretty much all pages of the product and even those not sensitive to visuals will notice this bug. We want our bloggers or demoers on stage or demoing the product and having to apologize 'oh never mind that glitch... please focus on the rest of our amazing product - it really is solid everywhere else'..
Given that it's persistent (not just every once in a while or just some page) It'll show up in the many screenshots that are taken by our docwriters that will have to be re-done. Our product is better than this - let's not let this one slip based on principle.

Shiproom - @beyackle can you assess a fix and then let's discuss


Question to add: what is the lag time for data to begin showing up in CQD reports? And is it the same for all data or does it vary depending on which data?

[Enter feedback here]

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

ID: 5de72ba4-417f-b90d-6cf4-1af9fbbce5f1
Version Independent ID: 94abea2e-541a-3d3c-c9da-f8544bbc98d1
Content: Call Quality Dashboard (CQD) Frequently asked questions (FAQ) - Microsoft Teams
Content Source: Teams/CQD-frequently-asked-questions.md
Service: msteams
GitHub Login: @SerdarSoysal
Microsoft Alias: serdars

@Jason6311 Thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.

·       Admin Center: 24-48 hours
·       Note that this data is also the source for the PBI M365 Usage Analytics I mentioned (formerly the O365 Adoption Pack—which is what I called it on the call): https://docs.microsoft.com/en-us/microsoft-365/admin/usage-analytics/usage-analytics?view=o365-worldwide
·       CQD: 30 mins (after end of call): https://docs.microsoft.com/en-us/microsoftteams/cqd-data-and-reports
·       Call Analytics: 15-30 mins (after the end of the call/meeting/desktop share). Note that data only resides here for 30 days: https://docs.microsoft.com/en-us/MicrosoftTeams/use-call-analytics-to-troubleshoot-poor-call-quality
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: Manuela<EMAIL_ADDRESS>Sent: Monday, September 28, 2020 12:12 AM
To<EMAIL_ADDRESS>Cc<EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/OfficeDocs-SkypeForBusiness] Question to add: what is the lag time for data to begin showing up in CQD reports? And is it the same for all data or does it vary depending on which data? (#5851)
@Jason6311https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJason6311&data=02|01||88a4a214949e467d41e308d86364aff4|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637368631377685682&sdata=KktTfkaZGa4QmbD7pPhQcV95FcDkuG6xu66KWba9cgA%3D&reserved=0 Thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-productshttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Foffice365%2Fadmin%2Fcontact-support-for-business-products&data=02|01||88a4a214949e467d41e308d86364aff4|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637368631377695678&sdata=KHC2TpgN12UufAzinyDd082CNniUTXoy3aMjB3ZY6Rs%3D&reserved=0
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2FOfficeDocs-SkypeForBusiness%2Fissues%2F5851%23issuecomment-699758856&data=02|01||88a4a214949e467d41e308d86364aff4|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637368631377705674&sdata=4jgeA09%2F1y%2BzaS%2BCqyZj4%2FE%2FgyYQ9DytV85G857WyEQ%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALCWGQVDULMGDYRW7XJR2ADSIAEKBANCNFSM4RZXJ7YQ&data=02|01||88a4a214949e467d41e308d86364aff4|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637368631377715669&sdata=F%2FOP2dJK%2B5Fe%2BSs2vYY3%2F%2FFx6Zhtr3GK6i1F019csBE%3D&reserved=0.


[WelcomeUX] File icon for welcome page tab is the html icon

Testing #18091

Would be nice if we had a custom icon for this

I vote our product logo.

@bgashler1 We can overwrite the icon theme:
.show-file-icons .welcomepage\.html-name-file-icon.html-ext-file-icon.html-lang-file-icon.file-icon::before {
    content: ' ';
    background-image: url('welcomePageIcon.svg');
}

(And similar for the walkthrough.)
We would need SVG icons for the OSS, the insider and the stable version. Do we have these or can you create these?
The insider and stable icons will need to go into the distro repo and we will need to update the build to copy these to the right place depending on which variant is being built.

On second thought, this might not be robust enough. @bpasero Is there a good way to overwrite the icon for a specific editor?
@seanmcbreen Do we have SVG icons for the insider and stable logos?

@chrmarti we just pick the icon up from the resource of the editor. Maybe we could teach the icon service a specific rule to use for this particular resource? @aeschli might know if that is possible.

Hardcoding it in the theme service is probably the same like the css rule above.
Given that this is only about the editor icon, I'd recommend the css overwrite.
Hover 'welcome.html' is a common file name. Any chance you can give it a different, more unique name, or any chance that you can but a unique css class on the editor?

+1 for just using CSS override. Since the class name is derived from the resource path I suggest to name this resource something like vs_code_welcome.code.

I have a unique classname I can use. Thanks!

@chrmarti can we not use our default file icon (see it in the first tab) when you need one for welcome? yours looks quite off from the rest of the icon set:

Actually looks pretty cool on my machine. 👍

@chrisdias I forgot: I'd also need an SVG of the OSS icon.

i'm on it!


Error when setting jwksURI

I am getting an error message when setting a jwksUri on a ClientApplication.
Invalid additional property "jwksUri"

Repro:

Go to https://app.medplum.com/ClientApplication/:id
Click the Edit tab
Add the following in the jwksUri input: https://domain.com/medplum/.well-known/jwks.json
Click "OK"

Quick fix: Enable strict mode on the project. This only happens for projects that are in the legacy "non strict" mode, because jwksUri is missing from fhir.schema.json.


gajim: Add dependency on libappindicator-gtk3

This is required by "Ayatana Appindicator integration" plugin which
provides appindicator support to Gajim

Motivation for this change
Gajim lacks a notification area icon support by default. There is a plugin which provides it, but its dependencies are not installed by default[
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Is it likely that this plugin will ever need other libraries? What is the closure size difference?
(I think the current flag name is too long, and also maybe it is simpler to just enable the dependency unconditionally if it is small enough)

Is it likely that this plugin will ever need other libraries? What is the closure size difference?

I don't think it's going to need other dependencies. It seems feature complete to me. It's around additional ~733KiB (96680 bytes for libappindicator-gtk3, and 653936 bytes for libdbusmenu-gtk3 (dependency of libappindicator-gtk3)).

(I think the current flag name is too long, and also maybe it is simpler to just enable the dependency unconditionally if it is small enough)

Let me know if you would you like that.

Hm, it's not that large, but maybe for consistency indeed leave it as a flag. Maybe enableAppIndicator for brevity?


tx v3 two tests

Pull Request type
Draft
Please add the labels corresponding to the type of changes your PR introduces:
Testing

Bugfix
Feature
Code style update (formatting, renaming)
Refactoring (no functional changes, no API changes)
Build-related changes
Documentation content changes
Testing
Other (please describe):

Resolves: #1574
What is the new behavior?

Two new tests to tx v3

In this commit i added a line in lib.rs, related to the transactions version, because it seems for me that we had to do that, and then i tried to run the given_hardcoded_contract_run_invoke_tx_v3_fails_sender_not_deployed and still not working. The left side is failing, it is returning ok(()). And it has to return error. And the other tests that i added is failing too.

Since cairo v0.10, transaction are splitted to two function validate and execute, this splitting allows for a protocol-level distinction between invalid and reverted transactions, so i think you should not run_non_revertible_transaction for v3 in starknet/src/lib.rs, and in your test you call get_invoke_dummy which produce a v1 invoke transaction maybe you should take a look and write an get_invoke_v3_dummy i hope this will help you out

Right now Im working in that, in creating a new get_invoke_v3_dummy but there is a lot of parameters that i dont know how to get them...

did you check https://github.com/starknet-io/SNIPs/blob/main/SNIPS/snip-8.md ? if you still need help on get_invoke_v3_dummy go check an implementation of it at this PR : #1597 in mod.rs

I dont know why in this code:
#[test]
fn given_hardcoded_contract_run_invoke_tx_v3_on_argent_account_then_it_works() {
    new_test_ext::<MockRuntime>().execute_with(|| {
        basic_test_setup(2);
        let none_origin = RuntimeOrigin::none();

        let chain_id = Starknet::chain_id();
        let mut transaction = get_invoke_v3_argent_dummy(chain_id);
        if let starknet_api::transaction::InvokeTransaction::V3(tx) = &mut transaction.tx {
            tx.signature = sign_message_hash(transaction.tx_hash);
        };

        assert_ok!(Starknet::invoke(none_origin, transaction));
    });
}

I'm getting this error:
failures:

---- tests::invoke_tx::given_hardcoded_contract_run_invoke_tx_v3_on_argent_account_then_it_works stdout ----
thread 'tests::invoke_tx::given_hardcoded_contract_run_invoke_tx_v3_on_argent_account_then_it_works' panicked at crates/pallets/starknet/src/tests/invoke_tx.rs:654:9:
Expected Ok(_). Got Err(
    Module(
        ModuleError {
            index: 1,
            error: [
                1,
                0,
                0,
                0,
            ],
            message: Some(
                "TransactionExecutionFailed",
            ),
        },
    ),
)

The invoke function inside of the assert_ok! is throwing that error.
The test is almost the same as this one:
#[test]
fn given_hardcoded_contract_run_invoke_on_argent_account_then_it_works() {
    new_test_ext::<MockRuntime>().execute_with(|| {
        basic_test_setup(2);
        let none_origin = RuntimeOrigin::none();

        let chain_id = Starknet::chain_id();
        let mut transaction = get_invoke_argent_dummy(chain_id);
        if let starknet_api::transaction::InvokeTransaction::V1(tx) = &mut transaction.tx {
            tx.signature = sign_message_hash(transaction.tx_hash);
        };

        assert_ok!(Starknet::invoke(none_origin, transaction));
    });
}

Some of those tests that i just made. Are not working, there is a comment in the tests to know that. And if you see, the tests that are supposed to fail, are the ones that are working. And those tests that are supposed to passed, are failing because they return an error. So maybe im doing something wrong here :/


No drops

breaking the sifter with either tool or wrench right click doesnt give a drop, have to make a new one if i want to move it

Hi! Thanks for the report, I'm looking to resolve it.

Fix uploaded.


Enable system-wide installation

Load plugins from code directly without command line parameter or environment variable.

LGTM
Tested and it works very well. - Hui


Use absolute namespace in macros

Jenkins, test this please.

Jenkins CI test (for commit 935bd47cd65f881db1e412596e60bc79f265c30c, target branch master) failed with status FAILURE.

Jenkins failure seems unrelated.

LGTM.


Trades api call

Support for trade api calls:

/api/v1/trades
/api/v1/historicalTrades

Thank you @hoota , this looks great, can you please implement the corresponding async methods in BinanceApiAsyncRestClientImpl for consistency's sake? I'll merge your PR after that.

@joaopsilva check it

Thanks @hoota.


Remove unnecessary entry in .gitignore

The examples/index.js file is a pre #3558 relic.  You can delete it (or git clean), and it shouldn't be generated again.  If it is, that is a bug.

Thank you @tschaub. Please merge.

Thanks @tschaub


[BUG] Frozen fields not supported (Pydantic 2) - exception thrown on .save()

Describe the bug
Beanie does not appear to support frozen fields.
Testing with Beanie 1.25.0 on Pydantic 2.6.1.
Trying to .save()  a model with a frozen field throws a validation error.  Using insert() does work, but then it will fail if you ever call .save() on it.
Exception thrown:
pydantic_core._pydantic_core.ValidationError: 1 validation error for ConfigModel
creation_datetime
  Field is frozen [type=frozen_field, input_value=datetime.datetime(2024, 2, 17, 11, 16, 52, 604000), input_type=datetime]
    For further information visit https://errors.pydantic.dev/2.6/v/frozen_field

Exception thrown from beanie/odm/utiils/parsing.py:
def merge_models(left: BaseModel, right: BaseModel) -> None:
    """
    Merge two models
    :param left: left model
    :param right: right model
    :return: None
    """
    from beanie.odm.fields import Link

    for k, right_value in right.__iter__():
        left_value = getattr(left, k)
        if isinstance(right_value, BaseModel) and isinstance(
            left_value, BaseModel
        ):
            if get_config_value(left_value, "frozen"):   <------- checks if the model is frozen, but not individual fields?
                left.__setattr__(k, right_value)
            else:
                merge_models(left_value, right_value)
            continue
        if isinstance(right_value, list):
            links_found = False
            for i in right_value:
                if isinstance(i, Link):
                    links_found = True
                    break
            if links_found:
                continue
            left.__setattr__(k, right_value)
        elif not isinstance(right_value, Link):
            left.__setattr__(k, right_value)   <-------------- exception thrown here on frozen=True field

To Reproduce
from pydantic import Field
from motor.motor_asyncio import AsyncIOMotorClient
from beanie import Document, init_beanie

class TestFrozen(Document):
    some_field: str = Field(frozen=True)

    class Settings:
        name = "test_frozen"

async def test_frozen():
    await init_beanie(database=client[DB_NAME], document_models=[TestFrozen])

    test_frozen = TestFrozen(some_field="test")

    # will throw pydantic.validation_error "Field is frozen [type=frozen_field, input_value='test', input_type=str]"
    await test_frozen.save()
    # test_frozen.insert() does NOT throw, but will if you later .find_one()  and then .save() the row

await test_frozen()

Expected behavior
Frozen fields are handled, and do not break saving. I guess it will be necessary to modify merge_models() to check on a per field basis if a field is frozen, and handle it differently.
Thanks in advance.

Actually frozen models don't work either. I thought they were supported since https://github.com/roman-right/beanie/issues/599 but maybe it only works for Pydantic v1, and Pydantic v2 frozen doesn't work?
Here's a reproduction case for a frozen=True model in Pydantic 2:
from pydantic import Field, ConfigDict
from motor.motor_asyncio import AsyncIOMotorClient
from beanie import Document, init_beanie

class TestFrozen(Document):
    model_config = ConfigDict(frozen=True)
    some_field: str

    class Settings:
        name = "test_frozen"

async def test_frozen():
    await init_beanie(database=client[DB_NAME], document_models=[TestFrozen])

    test_frozen = TestFrozen(some_field="test")

    await test_frozen.save()

await test_frozen()

Result:
File [~/venv/pq_dev/lib/python3.11/site-packages/beanie/odm/utils/parsing.py:46](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/beanie/odm/utils/parsing.py:46), in merge_models(left, right)
     [44](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/beanie/odm/utils/parsing.py:44)     left.__setattr__(k, right_value)
     [45](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/beanie/odm/utils/parsing.py:45) elif not isinstance(right_value, Link):
---> [46](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/beanie/odm/utils/parsing.py:46)     left.__setattr__(k, right_value)

File [~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:786](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:786), in BaseModel.__setattr__(self, name, value)
    [783](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:783)             self.__pydantic_private__[name] = value
    [784](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:784)     return
--> [786](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:786) self._check_frozen(name, value)
    [788](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:788) attr = getattr(self.__class__, name, None)
    [789](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:789) if isinstance(attr, property):

File [~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:850](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:850), in BaseModel._check_frozen(self, name, value)
    [844](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:844)     return
    [845](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:845) error: pydantic_core.InitErrorDetails = {
    [846](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:846)     'type': typ,
    [847](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:847)     'loc': (name,),
    [848](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:848)     'input': value,
    [849](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:849) }
--> [850](https://file+.vscode-resource.vscode-cdn.net/Users/tomj/src/TheBloke/PQ_dev/scripts/jupyter_tests/~/venv/pq_dev/lib/python3.11/site-packages/pydantic/main.py:850) raise pydantic_core.ValidationError.from_exception_data(self.__class__.__name__, [error])

ValidationError: 1 validation error for TestFrozen
id
  Instance is frozen [type=frozen_instance, input_value=ObjectId('65d09abca8cf98113d6784ca'), input_type=PydanticObjectId]
    For further information visit https://errors.pydantic.dev/2.6/v/frozen_instance

Possible workaround for frozen fields:

Use state_management = True in Settings
Then use .save_changes() instead of .save() or .update()
So far this seems to work, because .save_changes() only updates the fields which have changed, and frozen fields can never change because of Pylance's protection.

I'm still testing this to confirm there's no edge cases, but this might be a usable workaround for me.
I'd still raise the .save() issue as a bug though, because IMHO it should be possible for Beanie to detect frozen fields and not try to update them.

Unfortunately I don't think the state_management=True work around works, at least not if links are used.
Because I also get the frozen fields exception when I do something like:

from beanie import Document, Link
from pydantic import Field

class Door(Document):
    height: int = Field(default=2, frozen=True)
    width: int = 1

class House(Document):
    name: str
    door: Link[Door]

house = House(...)
await house.insert(link_rule=WriteRules.WRITE)

Even though nothing has changed on Door, the act of inserting it with link_rule seems to cause the model to get re-written, triggering the frozen error.

Hi! Good catch. I'll add a test suite for this and will fix on the next bug-fixing session.

I'm running into this issue trying to use my_custom_document_instance.set({"not-frozen-field": "new-value"), somehow sending that single field change through either the .set() method is triggering the model's frozen created_by field despite my not having changed the field. I tried switching to the suggested state_management and save_changes, but I still run into the same issue. I see that the .save_changes() method invokes .set() under the hood.
Is that next bug fix session soon?


Inherit UMAP and TSNE from a common class

UMAP and TSNE have very similar codes. Combine and inherit from a single class to avoid code duplication

@Dominastorm this is related to the bug you mentioned in Issue #144. The code for UMAP and t-SNE is 90% same. You can try solving this issue to get started (also, happy to discuss whenever).

Sure thing, I will start working on it!

Solved by #179


feat(eslint): helpful basic javascript rules

Basic Javascript rules that help reduce careless bugs or were too burdensome from AirBnB.

Closed in favour of - https://github.com/americanexpress/eslint-config-amex/pull/41


Editor removes BOM

Description
If a file is edited with the built-in editor, the BOM is removed after the commit.
The file is UTF-8-BOM, after the commit it´s UTF-8.
I have reproduced this issue with your demo site, see:
https://try.gitea.io/dsteinbe/editor-bom-issue
Gitea Version
1.21.3
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
2.40.0, Wire Protocol Version 2 Enabled
Operating System
windows
How are you running Gitea?
service
Database
SQLite

yeh, it's annoying

Maybe it's because we don't set the perserveBOM option on Monaco's getValue:
https://microsoft.github.io/monaco-editor/typedoc/interfaces/editor.ITextModel.html#getValue


Fix signature instantiation for generic method on generic types

If this is something like Foo<!0>.Generic<Bar<!0>> the call to
GetTypicalMethodDefinition would strip the method instantiation away
and we would lose a piece of the context because method is now
Foo<X>.Generic.

(This actually makes me wonder why we're trying to handle everything in MethodDesc instead of splitting this logic into overrides on InstantiatedMethod and MethodForInstantiatedType.)

I think to fix this bug, you just need to change Instantiation instantiation = method.Instantiation; to Instantiation instantiation = this.Instantiation;.

...and force the GetInstantiatedMethod at the end if necessary. We should not need to do two GetInstantiatedMethod calls.

Fixed.

This actually makes me wonder why we're trying to handle everything in  MethodDesc

OK, I see the answer to this is "perf" :)

LGTM


Stopped working overnight?  Appears rules aren't being applied.

Hello,
I got python-usbtmc working yesterday, and was having a good time connecting to my Keysight Ocilloscope, running IDN queries, etc.  All from my Raspberry Pi 3B+.  I followed everything in the readme file, except the optional Kernel bit.  But this morning, it's not working!
The output from lsusb:
pi@raspberrypi:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 04d9:0007 Holtek Semiconductor, Inc.
Bus 001 Device 004: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 023: ID 0957:0588 Agilent Technologies, Inc.
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

My usbtmc.rules file:
# USBTMC instruments

# Agilent DSO1052B
SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="0x0957", ATTRS{idProduct}=="0x0588", GROUP="usbtmc", MODE="0660"

My Python3 code:
>>> import usbtmc
>>> inst = usbtmc.Instrument(0x0957, 0x0588)
>>> print(inst.ask("*IDN")

However, this morning the exact same code is returning:
usb.core.USBError: [Errno 13] Access denied (insufficient permissions)
The Pi was left on overnight, too - so nothing should have restarted, etc.  The USB device was disconnected and reconnected in the morning.  I didn't change anything, other than I probably re-started Python.
I've gone back through the readme (again, not the optional part) and I'm just not getting anywhere.  When plugged in, the device is added to /dev/usbtmc0.  Using ls -all, I get:
pi@raspberrypi:/dev $ ls -all | grep usbtmc*
crw-------   1 root root    180, 176 Jun 11 14:13 usbtmc0

Which doesn't look right to me.  I've done some udevadm debugging to try and highlight an issue, and I'm seeing this line, which looks wrong, as I'd expect the mode to be picked up from my usbtmc.rules file:
usbtmc0: Handling device node '/dev/usbtmc0', devnum=c180:176, mode=0600, uid=0, gid=0
Does anyone have any thoughts?

I couldn't get this to work using any variation of SUBSYSTEM=="usb". This worked for me:
echo 'KERNEL=="usbtmc*", MODE="0660", GROUP="plugdev"'  | sudo tee -a /etc/udev/rules.d/10-usbtmc.rules
sudo udevadm control --reload-rules
sudo udevadm trigger

And ensuring the user was a member of the "plugdev" group (they are by default on the Ubuntu I'm using).
I believe this grants permission for all usbtmc devices regardless of vendor ID and product ID, that's fine for me - but you might wanna specify them if you want to restrict it to only one devuce. I didn't test if that works.


Extend Execution Plan to extract agent parameters

Extend Execution Plan to extract agent parameters

agent descriptions can optionally have a list of described parameters (name, description)
so when recommending an agent, the planner can try to extract relevant params from the user prompt
output can be dict[str, list[str]]
use case: client can use params to know what context to include
.

done


⚠ ClamAV has degraded performance

In c0d65b4, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 206 ms

Resolved: ClamAV performance has improved in 2e2878a after 9 minutes.


[GitHub] Occasional crashes when searching repositories

Extension
https://www.raycast.com/raycast/github
Raycast Version
1.82.2
macOS Version
15.1 Beta (24B5035e)
Description
When I run the "Search Repositories" command, I occasionally get the following error:
Error: Could not store Cache data for key "history": Error: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

dW:search-repositories.tsx:19:47

---
16:
17:   const preferences = getPreferenceValues<Preferences.SearchRepositories>();
18:
19:   const [searchText, setSearchText] = useState("");
20:   const [searchFilter, setSearchFilter] = useState<string | null>(null);
21:   const [sortQuery, setSortQuery] = useCachedState<string>("sort-query", REPO_DEFAULT_SORT_QUERY, {
22:     cacheNamespace: "github-search-repo",
---

    at withAccessToken(dW)
_r:index.js:8:2593
    at ray-navigation-stack

Steps To Reproduce
I don't have specific steps to reproduce the issue because the error occurs sporadically.
Current Behaviour
The extension should not crash.
Expected Behaviour
The extension crashes with the error mentioned above.

https://github.com/raycast/extensions/blob/c5726a63f0f95eb43ad162b724f62d1b43059483/extensions/github/src/helpers/repository.ts#L111-L112

Closing this as this is a duplicate of https://github.com/raycast/extensions/issues/14032

@raycastbot close this issue


Added ability to trigger on addresses and line numbers

This feature adds triggers of the format addr:0xfffff or line:file.ml:99:15. All triggers can be prefixed with either symbol:, addr:, or line:, but if none is given, it will default to a symbol if possible and otherwise parse it as a line number or address.
There is no feature to allow our fuzzy finding to work with the new options, but it could be possible to implement fuzzy finding on files for example.

Closing since this ended up being merged as part of another PR.


URLs in item description field are unclickable text

When I post a URL in my item description field it just appear as an unclickable  text.  Would be useful to have them as clickable links, maybe with non indexing flag?
Possibly make this as an option in the Admin page

I was able to modify it by adding urlize to line 55 in item_detail.html template:
        {{ object.description|linebreaks }}

to
        {{ object.description|linebreaks|urlize }}

https://github.com/slyapustin/django-classified/blob/master/django_classified/templates/django_classified/item_detail.html#L55
But not sure how to make it an option in Admin.


Cybersecurity: 1.9.8 Introduction to IT Act 2000.

Description
The Information Technology Act, 2000 serves as the de facto framework for digital governance in India.
Discuss more Information Technology Act, 2000!
Note:

If interested, mention in which format you want to contribute either in Documentation or in Video
Please avoid copy/paste, BE YOURSELF
Try to explain with Diagrams
Changes should be made inside the Cyber_Security/ directory & Cyber_Security branch.
Task will be assigned on first come first serve
Check it out Contribution Guidelines

sir, i want to do this work the documentation part

I can do it in video format

sir, i want to do this work the documentation part

Okay!
I'm assigning this task to you for Documentation!

I can do it in video format

okay!
Assigned for Video submission!

Great work Guyz!


issue/6096-log-which-pip-index-no-index

Description
Add the used pip indexes to the PackageNotFound exception in run_pip didn't take --no-index into account. This Pr fixes this.
part of https://github.com/inmanta/inmanta-core/issues/6096
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[ ] Attached issue to pull request
[x] Changelog entry
[x] Type annotations are present
[x] Code is clear and sufficiently documented
[x] No (preventable) type errors (check using make mypy or make mypy-diff)
[x] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )
[ ] If this PR fixes a race condition in the test suite, also push the fix to the relevant stable branche(s) (see test-fixes for more info)

the merge with iso6 will fail again. I'll open a pr for that one once this is merged.

Processing this pull request

Pull request rejected by merge tool. Multiple change entry files found:

changelogs/unreleased/7066-stale_last_success.yml
changelogs/unreleased/fix-log-pip-index.yml
changelogs/unreleased/fix_increment_tests.yml

This may happen when a change entry was removed from the remote repository due to a reverted change. In that case, make sure the latest changes from origin/master are merged into fix-log-no-index before triggering merge bot.

Processing this pull request

Failed to merge changes into iso6 due to merge conflict. Please open a pull request for these branches separately by cherry-picking the commit that was made on the branch master (git cherry-pick 1b3a95269e351bcfe1bef09c59cb640652c15eaf).

Merged into branches master, iso7 in 1b3a95269e351bcfe1bef09c59cb640652c15eaf

Not closing this pull request due to previously commented issues for some of the destination branches. Please open a separate pull request for those branches by cherry-picking the relevant commit. You can safely close this pull request and delete the source branch.

This branch was not deleted as it seems to still be in use.


GDScript EditorExportPlugin not working and missing from C#

Godot version: 3.1.1 Mono
OS/device including version: Windows 10
Issue description:
The EditorExportPlugin does not call the _export_begin or _export_end functions.
EditorExportPlugin is also not in the Godot C# assembly.
Steps to reproduce:

Create simple EditorExportPlugin script

tool
extends EditorExportPlugin

func _export_begin(features, is_debug, path, flags):
	print(flags)
	print("Hello!")

Create a simple Windows Desktop executable export template
Export Project
Expected output of at least "Hello", but there is no output.

Minimal reproduction project:
Test.zip

I think export plugins are supposed to be added through an editor plugin, using this function http://docs.godotengine.org/en/3.0/classes/class_editorplugin.html#class-editorplugin-add-export-plugin

How do you use this function? Plugins are so ominous to me.

Ok, I think I know the answer to both questions. You are right @Zylann you need to add it with a plugin for it to work.
The class is not really missing, but because I use Visual Studio Code, it wont show up in InteliSense, because it does not know, that we are working on a tool script, when inside the addons folder. thats why VS doesn't add the Editor assembly.

I am experiencing a different issue here. Gonna close this and create a more fitting issue for the new problem


Quick fix - HTTPClientWeb blocking mode is not supported for the Web platform

A small fix is needed for better web support.  Check for "Web" not "HTML5".
HTTPClientWeb blocking mode is not supported for the Web platform error on Web exports.
to fix:
# Create and return HTTPRequest node to perform request.
func _create_http_request() -> HTTPRequest:
	var _http_request := HTTPRequest.new()
	add_child(_http_request)
	#_http_request.use_threads = OS.get_name() != "HTML5"
	_http_request.use_threads = OS.get_name() != "Web"
	return _http_request

Hello! I'll fix it as soon as possible, thanks for the report!

Fixed on the main branch, thanks again for the report!


[IoT] Adds IoT Extension v0.19.1

Notes for this release can be found here:
https://github.com/Azure/azure-iot-cli-extension/releases/tag/v0.19.1

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

IoT


[ENG-5748] Broken devenv on python3.12

Purpose
Fix devenv on python 3.12
Changes
Fixed requirements container in docker-compose.yml
QA Notes
Please make verification statements inspired by your code and what your code touches.

Verify
Verify

What are the areas of risk?
Any concerns/considerations/questions that development raised?
Documentation

Side Effects

Ticket
https://openscience.atlassian.net/browse/ENG-5748

LGTM! Merged.


fixed 500 in rename

fixed up type error

Codecov Report

Merging #128 (73e9617) into main (952be80) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #128   +/-   ##
=======================================
  Coverage   95.62%   95.62%
=======================================
  Files           7        7
  Lines         594      594
=======================================
  Hits          568      568
  Misses         26       26

Impacted Files
Coverage Δ

service/routes.py
98.19% <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 952be80...73e9617. Read the comment docs.


Project Test Case 12

I am not too sure why 685 waits at 3 instead of being served at SCC 5. I have tried adjusting my arrive class with new conditions but it doesn't seem to work. If wait event gets triggered does that mean that SCC 5 is not available (serverAvailableTime <= customer Arrive time)?

Resolved.

how did you solve it

@jwoongg what i did was to make my arrive class indifferent to whether it was a human server or a SCC. So essentially every customer will go to their respective serve, wait or leave event and the Serve and Wait classes handles the conditions for server or SCC. For me it was because my Serve and Wait classes already have checks for human/SCC which makes further checking in the Arrive class very complicated. Hope it helps!


Enable-WriteCore-feature-for-providerhub

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.ResourceManager.ProviderHub


[FASTLANE GENERATOR] Update fastfile .xcworkspace relative path

Thanks @tcheymol will take a look tonight!

Bug was coming from another line, see above PR :)


Refactor typeclass

I guess this is quite a controversial change. The idea is to move all typeclass instances in core from monocle.std to the corresponding typeclass companion object. This means users will be able to use most typeclass based optics using only import monocle.function._.
It is actually how an early version of monocle was done, I decided to move to the std package approach to be more consistent between modules (e.g. generic or refined module cannot define instance in companion object of typeclass) and to be more consistent with libraries like scalaz. However, I believe that most usage of our typeclasses concern either vanilla scala or scalaz types, so it makes sense to simplify this use case.
As far as I remember, @NightRa was originally against the move to std module.

It's very useful 👍
However, I have several concerns.

can cause object hypertrophy by type class instances.
For example, instances of the type class for the List would be scattered in various files.
(but, it's a trade-off

How do you think?

it is true that instances for a class will be scattered around several typeclasses so it will make it more difficult to know what are the typeclasses implemented for List. At the same time, it will be easier to know what are the instances for At, I guess as you say it is a trade-off.
I am not sure what do you mean by object hypertrophy, is it that the companion object would be too big? If yes, I am not sure what are the consequences. Is it less readable or could it cause a slow down for implicit resolutions because more implicits would be in scope?

I guess as you say it is a trade-off.

Yes!

Is it less readable or could it cause a slow down for implicit resolutions because more implicits would be in scope?

It is both. but, sorry, I too am not sure whether there is influence how much the future.
maybe, It is not serious problems for the time being. This change is looks good. 👍

Since it is a major change, I propose that we do a milestone / RC release for 1.5 in order to get some feedbacks from users. We can always roll-back if we discover a major issue. Thanks for the review!


wrong apiVersion used for VirtualMachineRestore owner references

interestengly, only an issue on ocp
Signed-off-by: Michael Henriksen<EMAIL_ADDRESS>
What this PR does / why we need it:
Issue discovered in OCP testing.  Interesting wasn't an issue upstream.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

NONE

/lgtm
/approve

@mhenriks what exactly happened on ocp with the wrong owner reference?

@mhenriks what exactly happened on ocp with the wrong owner reference?

Couldn't update the resource with bogus owner reference.

/test pull-kubevirt-e2e-windows2016


Cannot use local gpu environment for old preview model builder image classification

System Information (please complete the following information):

Model Builder Version: <IP_ADDRESS>6001

Opening issue from @philipbawn based on docs issue dotnet/docs#23111
Original Description:
I have model builder <IP_ADDRESS>6001 and ml.net model builder gpu support version <IP_ADDRESS>6001, I installed cuda_10.0.130_411.31_win10.exe from nvidia and extracted cudnn64_7.dll from cudnn-10.0-windows10-x64-v<IP_ADDRESS>.zip from nvidia, placing it in C:\program files\nvidia gpu computing toolkit\cuda\v10.0\bin\ - yet my visual studio looks like this when I try to progress adding image classification to a project.

The model builder would let me proceed with cpu only:

@JakeRadMSFT and @LittleLittleCloud Is this solved now?

Yes and docs are updated thanks to @luisquintanilla :)

@JakeRadMSFT @LittleLittleCloud @luisquintanilla  Thank you so much, the preview I downloaded today detected my GPU and informed me which version of cuda I need to install. You rock.


Worked on the notification token authentication

Please Verified and Merged with master.

Verified and Merged with master.


Include example files that the /samples/ were generated from

I love this work.  Absolutely fascinating.  Would you please include the original image/data files you used to generate the samples?  I specifically interested in the source of this example: https://raw.githubusercontent.com/wapiflapi/binglide/master/samples/rgb2_24b.bmp_3g.png

Thank you for your interest. I added the source files I used to generate the samples. It was a bit of a mess so this might be incomplete. You should be able to reproduce the results though.
This is the one for the analysis you are specifically interested in: https://github.com/wapiflapi/binglide/blob/caf6e9964636c3b43bcb89639fbfd3c73afb06b7/samples/source/rgb2_24b.bmp
It's 24b bmp, which means three channels (R G B), the rendering you are looking at is a 3-gram analysis, so it will sample RGB; GBR and BRG variations, that's the three branches you can see on the picture.

Thanks for the fast response.  You're the best.  I will be looking at this
more once I get back from Pycon.
On Apr 15, 2015 4:04 AM, "Wannes Rombouts"<EMAIL_ADDRESS>wrote:

Thank you for your interest. I added the source files I used to generate
the samples. It was a bit of a mess so this might be incomplete. You should
be able to reproduce the results though.
This is the one for the analysis you are specifically interested in:
https://github.com/wapiflapi/binglide/blob/caf6e9964636c3b43bcb89639fbfd3c73afb06b7/samples/source/rgb2_24b.bmp
It's 24b bmp, which means three channels (R G B), the rendering you are
looking at is a 3-gram analysis, so it will sample RGB; GBR and BRG
variations, that's the three branches you can see on the picture.
—
Reply to this email directly or view it on GitHub
https://github.com/wapiflapi/binglide/issues/5#issuecomment-93252153.


add manifest action

(opening from a fork because I don't have write access to this repo)
Our team needs a workflow that will automatically build all nix packages in a given repo. We want to publish this as a re-usable action so we can share it across repos. https://smartcontract-it.atlassian.net/browse/INT2-413

nice! could you please add a changeset to this new action?

nice! could you please add a changeset to this new action?

sure! Are there instructions on how to do that? Sorry, I've never used that tool before

yeah you can do pnpm i first and then pnpm changeset at the root and check the action you just added :)


what‘s the type of discriminator，PatchGan？

I want to know if you use PatchGAN as discriminator，and what‘'s the size of the input of discriminator?

well, I know the input szie of discriminator is 128*128, and it seems that you don't use patchGAN, just like SRgan. Is that right?

Yes. You are right.

Well, thanks a lot for your reply. And I have another question.
I change the Generator G structure, and train a psnr-G from scratch, I did't change the options in train_sr.json.
The result shows that  l_pix loss is very small, most are close to 0.1. I'm not sure whether this is normal.
Could you tell me the l_pix loss when you train the RRDB_PSNR model.
Thanks a lot.

@Achhhe I do not have the exact log file at hand, but with a log file for a similar model, for your referecen.
train_190201-030818.log

@xinntao
Thanks, I will check my train_log

I check my train_log, and find that the psnr of my psnr_model is similar to your  RRDB_PSNR_x4.pth(they are all tested on set14).  But the visual quality is quite different.
Your result is

My result is

Note that my psnr_model didn't train 1e6 iters, and only had trained 50000 iters.
I am not sure whether the visual quality will increase as the number of training increases.

I think it is not enough with 50k iters. From my experience, adequate training is necessary.


Allow building a cython compiled binary wheel package

It requires docker to be able to build manylinux wheel packages.
Just run:
python setup-binary.py bdist_wheel

Codecov Report

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

@@           Coverage Diff           @@
##           master     #129   +/-   ##
=======================================
  Coverage   85.77%   85.77%
=======================================
  Files          29       29
  Lines        3985     3985
=======================================
  Hits         3418     3418
  Misses        567      567

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 4b7961a...9bf714f. Read the comment docs.

Hey, sorry for missing your PR!
In light of dropped Py 2.6- support, would you mind updating your patch?

I've moved on from the project that used this and at the moment I have close to no spare time to fix this. Would you mind picking where I left?
Sorry.
And Thank You.


Doesn't work, the portal doesn't respond to state.

"next": "14.1.3",
Thank you for the package but the popup doesn't work.
If I replace the portal with a simple h1 the toggle works, with the portal no reaction, I had to take the modal from ionic.

@zhefciad it will not really help you, I did the messier way to do it, took the code and replace the modal with custom one.


Problem when running GetMainWindow() several times

I'm wondering why I can run these three GetFontName() individually without issue, but when I run them simultaneously it doesn't work.
using FlaUI.Core;
using FlaUI.Core.Tools;
using FlaUI.UIA3;
using System;
using System.Diagnostics;
using System.Threading.Tasks;

namespace MyApp
{
    class Program
    {
        static void Main(string[] args)
        {
            // Running only one works, but not together.
            var fontName1 = GetFontName(@"C:\Windows\Fonts\arial.ttf");
            var fontName2 = GetFontName(@"C:\Windows\Fonts\Sitka.ttc");
            var fontName3 = GetFontName(@"C:\Windows\Fonts\simsun.ttc");

            Console.WriteLine("Press a key to exit...");
            Console.ReadKey();
        }

        static string GetFontName(string font)
        {
            var psi = new ProcessStartInfo()
            {
                FileName = "fontview",
                Arguments = font
            };

            string fontName = null;
            var app = Application.Launch(psi);
            using (var automation = new UIA3Automation())
            {
                var window = Retry.WhileNull(() =>
                    app.GetMainWindow(automation),
                    TimeSpan.FromSeconds(10)
                ).Result;

                window.SetTransparency(0);
                window.Focus();

                fontName = window.Title;

                window.Close();
            }

            return fontName;
        }
    }
}

I tried with pywinauto and it doesn't work too.
The weirdest thing is that it doesn't throw me any exceptions, it just blocks everything out.
What am I doing wrong?

Hmm I copy/pasted your code 1:1 into RoslynPad and everything works. Where does it hang for you?

This hangs on the second call of the GetFontName() method, it opens the fontview window and nothing else happens. It seems the "using" doesn't "work" anymore.
I planned to try again tomorrow in a virtual machine to see if it wasn't my Windows installation that went wrong. I've had a lot of trouble with the latest security updates for Windows and Visual Studio.
Well, I'm comforted that this piece of code works for you.

I tried on a virtual machine and it's the same thing: it blocks as soon as I launch the "GetFontName" method the second time.

Is this still an issue? What Windows version are you using?

Hi, I suspect I am facing the same issue. I have the "Application" instance, and then call several times GetMainWindow. Second time it freezes. I am using latest version on W10, using the Native Calculator for testing.


Unable to create service principal with azure cli from git bash shell, no connection adapters were found.

When trying to create an azure service principal from git bash or programatically from bash scripts, the task fails with the following error:
Creating a role assignment under the scope of "C:/Program Files/Git/subscriptions/yyy-yyy-xxx-xxx"
Role assignment creation failed.
ClientError: Error occurred in request., InvalidSchema: No connection adapters were found for 'C:/Program Files/Git/subscriptions/yyy-yyy-xxx-xxx
xxx-xxx-yyy-yyy/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Contributor%27&api-version=2018-01-01-preview'
This is a very annoing error and is still not solved today. We need to bootstrap environments programatically.
The command involved is:
ARM_CLIENT_SECRET=$(az ad sp create-for-rbac
--name "http://$ARM_PRINCIPAL_NAME"
--role Contributor
--scopes "/subscriptions/$ARM_SUBSCRIPTION_ID"
--query password
--output tsv)
I also tried to change the read write permissions of the
C:/Program Files/Git and its subfolders, no change.
Strange is, the sp gets created but incomplete and the command does not return the client secret. Also the role assigment gets created to an unknown identity - see screenshot

Moved Issue to azure-cli project

mruepp,  Thanks for leveraging Azure docs feedback channel to raise this question! Appreciate the follow-up and update on this.


Working with self signed certs

From @MderM on April 18, 2018 15:9
Any chance that this package will work with self signed certificates? HttpClient has a configurable callback for this. Would help a lot in prototyping stage...
Copied from original issue: dart-lang/web_socket_channel#15

web_socket_channel just forwards to dart:io's WebSocket implementation, so I'm going to move this to the SDK repo.

You should be able to use the --root-certs-file to point to the trusted root certificates.

Does anyone know how would this interplay with Flutter? I guess I need to pass DART_VM_OPTIONS=--root-certs-file=directory somewhere, but not sure where. I'm using the web_socket_channel plugin in a flutter application


XamlUIBasics : GridView controlpage- text displayed when item is selected is written over "Example 1"

XamlUIBasics : GridView controlpage - text displayed when an item is selected is written over "Example 1" code display.
If I follow the example in the ListView controlPage and add Height="400" to the GridView control in the ControlExample "Example1", the text appears below the example code and is readable.
Question: Is there another way to accomplish this without having to set a fixed Height?

This is fixed in the new XamlUIBasics sample. For the old sample, the RelativePanel.Below is set incorrectly. It should be below the ExampleAccessories control, not the Example1 control.


fix operator/README.md

Description
Fix Operator readme that was with a wrong indentation.
Affects
[ ] Configuration Infrastructure
[x] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[x] Does not have any changes that may affect Istio users.

Hi @dpolicastro. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@googlebot I signed it!

/ok-to-test


Homebrew instructions for enabling shims are NOT always correct

The output (and cause of much headache) of doing a brew info pyenv, and similarly advised on an brew install pyenv is:
To enable shims and autocompletion add to your profile:
if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi

This is not correct with, for example, fish. I found the closed issue that discusses this at length and finally figured out what I should add by following the instructions there and running pyenv init which does have the correct instructions.
Just thought i'd point out that the homebrew installation can cause headaches if you don't know to run pyenv init without the - and don't realize that you can't just "fishify" the suggested command.

brew's formula is a part of brew. Send PR to fix it by yourself


<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.

I get this warning after npm install.
"routing-controllers": "^0.7.0-alpha.11",
"typedi": "^0.5.2",
"typeorm": "0.1.0-alpha.19",
"typeorm-typedi-extensions": "0.0.12",

yeah most probably you'll continue to have this warning before 0.1.0 release... its just a warning, so simply ignore it for now


NotAuthorizedOrNotFound Authorization failed or requested resource not found

PHP Fatal error:  Uncaught Hitrov\Exception\ApiCallException: {
"code": "NotAuthorizedOrNotFound",
"message": "Authorization failed or requested resource not found."
} in /home/ubuntu/oci-arm-host-capacity-main/src/HttpClient.php:42
Stack trace:
#0 /home/ubuntu/oci-arm-host-capacity-main/src/OciApi.php(218): Hitrov\HttpClient::getResponse()
#1 /home/ubuntu/oci-arm-host-capacity-main/src/OciApi.php(101): Hitrov\OciApi->call()
#2 /home/ubuntu/oci-arm-host-capacity-main/index.php(76): Hitrov\OciApi->getInstances()
#3 {main}
thrown in /home/ubuntu/oci-arm-host-capacity-main/src/HttpClient.php on line 42

OCI_REGION
OCI_USER_ID
OCI_TENANCY_ID
OCI_KEY_FINGERPRINT
OCI_PRIVATE_KEY_FILENAME
They are all used for authentication, having any of it incorrect will cause this kind of error

idk what i was doing wrong but i have to retry that step 2 more time. and its working now. thanks for ur reply and this awesome repo. do u have idea how long it take for capacity to restock

Totally depends on the Oracle, region or when someone destroys the similar instance

thanks for your code , i got a machine with 2ocpu and 12gb ram
but Always free TAG is not on the Instance on console

so i can have 2 X (2 OCPU 12Gb ram) free for each month , till offer last. as it a 30 days have 2880 hr?
thanks for replying to my dumb questions

True unless you won’t exceed 200GB of boot/block volumes in total. No worries :)