Prototype Python layer for RInstatClimatic R package

Added a module that provides access to the cdms.products R package (https://github.com/IDEMSInternational/cdms.products). It communicates with the R environment using the rpy2 package.
Access is provided through a set of wrapper functions.

@geoo89 As discussed a few weeks ago, please would it be possible to review this PR?
This PR has may files but they are mainly data files for testing. The only 3 files you really need to review are:

Thank you for your help with this! I'm happy to talk whenever needed

Need to install the following packages on Ubuntu 22.04
libcurl4-openssl-dev libssl-dev libnetcdf-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev libnetcdf-dev

Need to install these packages in R as dependencies
devtools textshaping systemfonts ncdf4

Now the tests are failing with
========================================================================================== short test summary info ===========================================================================================
FAILED tests/test_cdms_products.py::test_climatic_extremes - rpy2.rinterface_lib.embedded.RRuntimeError: Error in assert_column_names(data, by) :
FAILED tests/test_cdms_products.py::test_climatic_missing - FileNotFoundError: [Errno 2] No such file or directory: '/home/faysal/PycharmProjects/opencdms-process-dewit/tests/results_actual/climatic_missing_actual010.csv'
FAILED tests/test_cdms_products.py::test_climatic_summary - rpy2.rinterface_lib.embedded.RRuntimeError: Error in assert_column_names(data, by) :
FAILED tests/test_cdms_products.py::test_export_cdt - rpy2.rinterface_lib.embedded.RRuntimeError: Error in file(file, ifelse(append, "a", "w")) :
FAILED tests/test_cdms_products.py::test_export_cdt_daily - rpy2.rinterface_lib.embedded.RRuntimeError: Error in file(file, ifelse(append, "a", "w")) :
FAILED tests/test_cdms_products.py::test_export_cdt_dekad - rpy2.rinterface_lib.embedded.RRuntimeError: Error in file(file, ifelse(append, "a", "w")) :
FAILED tests/test_cdms_products.py::test_export_climdex - rpy2.rinterface_lib.embedded.RRuntimeError: Error in file(file, ifelse(append, "a", "w")) :
FAILED tests/test_cdms_products.py::test_export_geoclim - rpy2.rinterface_lib.embedded.RRuntimeError: Error in file(file, ifelse(append, "a", "w")) :
FAILED tests/test_cdms_products.py::test_export_geoclim_month - rpy2.rinterface_lib.embedded.RRuntimeError: Error in file(file, ifelse(append, "a", "w")) :
FAILED tests/test_cdms_products.py::test_histogram_plot - AssertionError: assert False
FAILED tests/test_cdms_products.py::test_inventory_plot - AssertionError: assert False
FAILED tests/test_cdms_products.py::test_inventory_table - AssertionError: assert False
FAILED tests/test_cdms_products.py::test_timeseries_plot - AssertionError: assert False
FAILED tests/test_cdms_products.py::test_windrose - rpy2.rinterface_lib.embedded.RRuntimeError: Error in (function (data, speed, direction, facet_by = NULL, n_directions = 12,  :

@faysal-ishtiaq Thank you for reporting this.
I just rebuilt and ran all the test_cdms_products tests. On my machine, all tests passed successfully without errors.
The errors you reported are most likely due to differences between our Ubuntu, R or Python environments.
How urgent is this issue for you?

@faysal-ishtiaq
From the error messages, it looks as if the error is happening when executing the R code.
Do you have much experience with R? If so, do you get the same errors if you call the R code directly (e.g. from within RStudio)?

I do not have experience with R. But I will try running the R code directly and update you on that.

I can confirm that there is nothing wrong with the R installation. The simplest but most sensible proof would be, "while there were errors in tests, there also were passing tests".
However, I have made some slight changes to the code and now almost all tests are passing without failure or error.
Here is the diff between your last commit and my last commit: https://github.com/faysal-ishtiaq/opencdms-process/compare/bb65b64c710ac5878849866c426373fc1c213aa8...3e4b7a2026b29bff1f7ca53215e91842eb5a8215
Please note that there are some formatting-related changes in the code. And I also removed some comments from the tests.
Anyway, here is the current status of tests
========================================================================================== short test summary info ===========================================================================================
FAILED tests/test_cdms_products.py::test_histogram_plot - AssertionError: assert False
FAILED tests/test_cdms_products.py::test_inventory_plot - AssertionError: assert False
FAILED tests/test_cdms_products.py::test_inventory_table - AssertionError: assert False
FAILED tests/test_cdms_products.py::test_timeseries_plot - AssertionError: assert False
FAILED tests/test_cdms_products.py::test_windrose - AssertionError: assert False
================================================================================= 5 failed, 13 passed, 38 warnings in 21.03s =================================================================================

As you have already noticed, these tests are plotting data and checking that plot against pre-saved plots. What seems interesting to me is, the pre-saved plots and generated plots look similar, but they vary in size. Probably that is why they are not same to the filecmp.cmp function. Can we separate the side-effect (saving the plot to disk) from the original function and in unit-test, can we compare the function outputs rather than jpg or png files?

@faysal-ishtiaq Excellent that you found a solution and the tests are now all running - thank you!

I can confirm that there is nothing wrong with the R installation. The simplest but most sensible proof would be, "while there were errors in tests, there also were passing tests".

I agree that if at least some tests run, then your R environment is installed and functional.
I was concerned that our environments may be slightly different. But if all tests are now running, and the tests that fail have graphs that are visually correct, then I think we can safely assume that your R environment is OK.

However, I have made some slight changes to the code and now almost all tests are passing without failure or error.

Fantastic!

Here is the diff between your last commit and my last commit<EMAIL_ADDRESS>

For the array parameter default values, it's interesting that you needed to replace empty arrays with None. I wonder if this is related to the Python version. I am using Python 3.8, which version are you using?
line 287 - this line seems to be reversing the change on line 230, is this needed?
line 1387 - the value seems incompatible with the type. I know Python doesn't check this. Would 'None' or another value be a cleaner solution?
Package version numbers - I noticed that you upgraded to newer versions of some pacakages. If these work, then I think this is good.
other changes look good to me.
It would be good to review/merge your changes via the standard process. Should we merge this PR and then push your changes to a new PR?

Please note that there are some formatting-related changes in the code. And I also removed some comments from the tests.

No problem. I use VS Code and the 'Black' formatter. Do you use a different automatic formatter?

Anyway, here is the current status of tests
As you have already noticed, these tests are plotting data and checking that plot against pre-saved plots. What seems interesting to me is, the pre-saved plots and generated plots look similar, but they vary in size. Probably that is why they are not same to the filecmp.cmp function.

Yes, I also found that files generated directly in R, and files generated via rpy2 are not binary compatible. I tried to specify the file configuration as strictly as possible to try and create binary compatibility but it seems your/mine output is not binary compatible.
As a short-term solution, you could visually compare the graphs. If they look the same, you could move your output files to the expected output folder. Your tests should then all pass and, in future, correctly detect any local regression.

Can we separate the side-effect (saving the plot to disk) from the original function and in unit-test, can we compare the function outputs rather than jpg or png files?

I don't know an easy way to do this. This may be a nice thing to attempt in the longer term.

@lloyddewit

I have changed the default values to immutable values so that we don't face bugs like this https://florimond.dev/en/posts/2018/08/python-mutable-defaults-are-the-source-of-all-evil/
And then later I handled them in a way that they are compatible with R runtime (I might mess things up as I do not have experience with R)
I switched to latest versions of dependencies just to make sure that I am not facing any old bug/incompatibility
I used black this time so that the diffs are minimal.

Here is the latest diff: https://github.com/faysal-ishtiaq/opencdms-process/compare/bb65b64c710ac5878849866c426373fc1c213aa8...cb150f7aa8282a50d85c2a7395a6f54a0716cd85

@faysal-ishtiaq Thank you for the helpful comments.

* I have changed the default values to immutable values so that we don't face bugs like this https://florimond.dev/en/posts/2018/08/python-mutable-defaults-are-the-source-of-all-evil/

Interesting link, I learned something.
The first time we apply this, could we add this link in the code comment to prevent another developer inadvertently 'optimising' the code?

* I switched to latest versions of dependencies just to make sure that I am not facing any old bug/incompatibility

great

* I used black this time so that the diffs are minimal.

thank you

Here is the latest diff<EMAIL_ADDRESS>
can we merge this PR first and then you add your diffs as a new PR?

Should we probably skip testing the plots as they are not useful at the moment anyway?

If you comment out these tests with a comment, then no problem from my side.

Another option is to push the changes to Stephen's branch. Then when this PR is merged, it has all the changes already.

Thanks @dannyparsons. I'm not certain which branch Faysal's latest commits are on.
@faysal-ishtiaq could you send Stephen the git pull command he would need to bring your changes onto his branch?

Sure. I will create the PR tonight.


Rules apply only to Firezone's wireguard interface

Fixes #896
One easy performance improvement would be to match against interface index instead of name. I didn't do it since I don't think we take a big performance hit and in case someone deletes and recreate Firezone's interface without using reconfigure

Pull Request Test Coverage Report for Build 9b281871739e8db50ca243970f48ff95163880c4-PR-901

0 of 3 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.04%) to 67.479%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

apps/fz_wall/lib/fz_wall/cli/helpers/nft.ex
0
3
0.0%

Totals

Change from base Build 4d73df77bce407d9fbfb539d045288f6c6922c16:
-0.04%

Covered Lines:
1052

Relevant Lines:
1559

💛  - Coveralls


Github-PUAnote-update-to-detectandblockPUA-4254702

Corrected the typo... "Be be" appeared twice.

"To be, or not to be: that is the question."


[BUG] [Base Game] Remove Sickness doesn't seem to grant an immediate save

Can use my own saves for testing, but when I've got diseased characters casting Remove Sickness doesn't trigger a save

I misread this several times somehow xD WAI


More infomation would be helpful

It would be nice if examples were included of the whole process including Step 3 and Step 5, not just the export of devices.

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

ID: ad8e93b0-2d8b-68c0-62ee-be44831b1557
Version Independent ID: b55939f9-e552-9818-80b7-535601d4bc7b
Content: How to manage stale devices in Azure AD
Content Source: articles/active-directory/devices/manage-stale-devices.md
Service: active-directory
Sub-service: devices
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@jaggersystems
Thanks for your feedback! We will investigate and update as appropriate.

@jaggersystems
Thank you for your post!
When you say "It would be nice if examples were included of the whole process", I'm assuming you mean of the whole article. However, when you mention " including Step 3 and Step 5" are you referring to the Clean up stale devices in the Azure portal section?

Yes please. How to script the disable of devices and how to script the removal of devices. Hopefully by using the csv which we exported in the earlier step.

From: James Tran-MSFT<EMAIL_ADDRESS>Sent: Wednesday, October 7, 2020 5:58:52 PM
To: MicrosoftDocs/azure-docs<EMAIL_ADDRESS>Cc: Stefan Jagger<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/azure-docs] More infomation would be helpful (#63972)
@jaggersystemshttps://github.com/jaggersystems
Thank you for your post!
When you say "It would be nice if examples were included of the whole process", I'm assuming you mean the whole article. However, when you mention " including Step 3 and Step 5" are you referring to the Clean up stale devices in the Azure portalhttps://docs.microsoft.com/en-gb/azure/active-directory/devices/manage-stale-devices#clean-up-stale-devices-in-the-azure-portal section?
[image]https://user-images.githubusercontent.com/36619112/95362940-a6605080-0883-11eb-887a-e02a9dde18f7.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/63972#issuecomment-705067824, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKPGV6SNF4NEA6QAFPQVXFLSJSM4ZANCNFSM4SHSFFUA.
Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of the company are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising. WARNING: Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. Jagger Systems Ltd is a limited company registered in England and Wales. Registered number: 10938930. VAT number: GB 277376166. Registered office: Marshwood Business Park, Canterbury, Kent, CT1 1DX

@jaggersystems
Thank you for the quick reply!
I have assigned this issue to the author who will investigate and update as appropriate.

The commands accept piped inputs from the get command.
Example of tweaking the get to pipe to another PowerShell command instead of outputting to csv...
Get-AzureADDevice | Where {$_.ApproximateLastLogonTimeStamp -le $dt} | Set-AzureADDevice -AccountEnabled $false

#please-close

The commands accept piped inputs from the get command.
Example of tweaking the get to pipe to another PowerShell command instead of outputting to csv...
Get-AzureADDevice | Where {$_.ApproximateLastLogonTimeStamp -le $dt} | Set-AzureADDevice -AccountEnabled $false

Thanks John and all, appreciate the speed of response. I was simply pointing out it would be useful to have this in the documentation as it advises to use powershell for bulk export, shows how to export, but then doesn't show how to do anything useful with the export or in bulk. All the best.

@jaggersystems The reason I dont like to show bulk delete is people will do it without testing and without a small sample size then delete everything and blame me/Microsoft. I want people who are going to do this to think about what they are doing and it is hard to enforce that if I give the solution. If they know PowerShell it is easy to figure this stuff out. If they dont then they are potentially dangerous.

Ah very true, that's a fair point. Thanks John.
Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Employees of the company are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy and outside the scope of the employment of the individual concerned. The company will not accept any liability in respect of such communication, and the employee responsible will be personally liable for any damages or other liability arising. WARNING: Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. Jagger Systems Ltd is a limited company registered in England and Wales. Registered number: 10938930. VAT number: GB 277376166. Registered office: Marshwood Business Park, Canterbury, Kent, CT1 1DX


Sample expression started to fail in version 0.9

Sample expression (one on description page of this project) started to fail in version 0.9, it worked in version 0.8:
L = \int_a^b \sqrt[4]{ \left| \sum_{i,j=1}^ng_{ij}\left(\gamma(t)\right) \left[\frac{d}{dt}x^i\circ\gamma(t) \right] \left{\frac{d}{dt}x^j\circ\gamma(t) \right} \right|}dt

Yep, this is definitely a bug. Thanks for reporting! I'll take a look ASAP.

Well, I'm not so sure already. \left{ and \right} we've been able to parse have been considered bugs of our implementations; please use \left\{ and \right\} for this.
But during the investigation, I've been able to spot a couple of other issues including several parser crashes. I'll create separate issues for these.

Thanks for reporting, I've created issues #272 and #273 with more focused descriptions. This particular issue (not being able to parse the formula you've mentioned) isn't considered as issue, because \left{ and \right} should be replaced by \left\{ and \right\}, according to other TeX implementations.
Thanks for reporting, anyway!
I'll update the screenshot on the project page to not confuse anyone.


Add for UK Telford College

College: https://www.telfordcollege.ac.uk/
Long-term Course: https://www.telfordcollege.ac.uk/course/computing-a-level/
Domain Recognisation: https://www.telfordcollege.ac.uk/resources/<EMAIL_ADDRESS>Address (https://www.telfordcollege.ac.uk/about/contact-us/)
Telford College,
Haybridge Road,
Wellington,
Telford,
TF1 2NP,
United Kingdom

@MrAmos123 First stage of verification passed, official domain is telfordcollege.ac.uk 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.

@MrAmos123 Pull request merged. Thank you.


Adding steps for unit rate calculator

I would like to add steps for unit rate calculator. Please assign this to me.

Go ahead
Deadline 22 May,2021


Remove maternity allowance from adoption flow

Removed all occurrences of maternity allowance for the single parent adoption flow.
Removed all occurrences of maternity allowance for the two pre April 5 2015 parent adoption flow.
Removed all occurrences of maternity allowance for the two post April 5 2015 parent adoption flow.

LGTM.
For the next time: I would be a lot more confident if I knew why those changes are being made. A sentence or two about the original requirement in a commit message would go a long way imho :)

:+1:  to the PR and :+1:  to @tadast comment


Undefined Types In EmmyLua Annotiatios

Describe the bug
When creating EmmyLua annotation's only the types 'any' and 'nil' are recognized. Any other known type such as number, boolean, or table are marked with 'Undefined type or alias'.
Environment (please complete the following information):

OS: Arch
Client: Neovim Latest Commit

Please show me the logs, see https://github.com/sumneko/lua-language-server/wiki/Default-log-path

It was a configuration problem on my part, apologies for the issue.


Add crypto name in homepage

Front-end update to integrate the crypto name.
(Follow up on PR #75 by @aviggiano 👍)

Excellent, thank you!


Elm code for rotation on highlightjs.org

Changed the test snippet in test/detect/elm/default.txt to fit into 54 columns and 16 rows of text, to enable it being showed on the highlightjs.org site, as per @isagalaev's suggestion in https://github.com/isagalaev/highlight.js/pull/1172#issuecomment-219316266.

To be honest, I miscalculated the width somehow, it could only fit 55 characters. But I went ahead and made the box roomier as there was at least one other snippet that didn't actually fit in the old width.
Thanks!


⚠ Processors has degraded performance

In 67e3e87, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 88 ms

Resolved: Processors performance has improved in 9d034b9.


[Feature]: Tab navigation of new row (table)

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
When creating a new row in a table, tab navigation between the editable boxes does not work.  Instead tab will jump to another widget on the page.  Tab should progress down editable boxes.
There should also have onfocus/onblur events for each input box on the table when adding a row.
Why should this be worked on?
To increase the ease of data entry for tables, as well as allow the developer more control on how items are input.

Could I ask for an update here?

@jnmoons this hasn't been a priority for us. You can tell us about your use case and help us prioritise this issue.

Hi there, well, for anyone editing directly in the table (new row, update row), they. I have an internal employee tasked with doing just this, but she hates working in it because it does not follow established practices: tab goes to "next field" (whatever "next field" is, but in table row it is logically the "field to the right"). So, now she muscle-memory-induced tabs around, and she is out of the table entirely. The alternative (which will be forgotten often, because muscle memory says to tab) is clicking with the mouse pointer in every next field, requiring the user to switch from keyboard to mouse (to keyboard again). WAY slower. I could create specific extra CRUD screens for this, but that is extra work for me :). As it stands, the "edit" feature of the table is really user unfriendly.

As someone who uses form fields to enter rows on table, I can confirm that only mostly works, as when you submit the form it doesn't re-focus the first field again.  Still, it's an improvement over using a table.

Hi Nikhil,
It is an app to manage students of an academy. Often we have to create new
students. What you suggest is definitely a valid workaround, but takes
extra effort. Fixing the table tabbing for new rows would not require this.
The new row functionality really requires this (for any use case I think)
tabbing to work. In the meantime I will add extra JSON forms where
necessary.
Jan
On Tue, Nov 21, 2023 at 4:03 PM Nikhil Nandagopal @.***>
wrote:

@jnmoons https://github.com/jnmoons I understand the painpoint. Could
you tell us a bit about the type of app and why inline editing or fast
edits are preferable here?
I agree this is not the ideal experience. May I suggest you try adding a
JSON form next to your table and connect the form to your table? It will
auto-generate the edit fields you need and you can get this done in just a
few minutes.
—
Reply to this email directly, view it on GitHub
https://github.com/appsmithorg/appsmith/issues/22055#issuecomment-1821097849,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFI4RKDAPWEUXEH34RU3HDYFS7EVAVCNFSM6AAAAAAWR2GJKGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRGA4TOOBUHE
.
You are receiving this because you were mentioned.Message ID:
@.***>


[Frontend Dev HTML/CSS/JS]: Random Quote Generator

Description
I would like to provide documentation about making a random quote generator using JS.
Domain
Frontend Dev HTML/CSS/JS
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

I have completed the documentation but I am unable to make a pull request due to some reason. Please don't unassign me even though it has been past 12 days.


Async.background reports/uses queues other than background

I made a new Swift project (single view controller) and added Async.swift file. I used the following sample code in my viewDidLoad:
Async.background {
    println("A: This is run on the \(qos_class_self().description) (expected \(QOS_CLASS_BACKGROUND.description))")
}.main {
    println("B: This is run on the \(qos_class_self().description) (expected \(qos_class_main().description)), after the previous block")
}

Running the project multiple times, the results I get are either:
A: This is run on the User Initiated (expected Background)
B: This is run on the Main (expected Main), after the previous block

Or:
A: This is run on the Main (expected Background)
B: This is run on the Main (expected Main), after the previous block

Never do I get the first block reporting that it is running on the background queue.
Xcode 6.1.1 (6A2008a)

I also opened the AsyncExample project and ran the iOS tests:

Did you run in simulator?

Yes.

I just ran it on a device and the tests passed. Did I miss somewhere where it said that this doesn't work with the simulator?

Possibly relevant: http://stackoverflow.com/a/5172968/3409110

From my own findings: I would like to believe that the simulator is not capable of running multithreaded code, but the problem I have with that, is that normal GCD works in the simulator and Async doesn't. This sounds like a fixable problem to me. @duemunk: Maybe you should add this discovery to the README to save people some time until the bug is fixed. Just my $0.02

@istx25 If you can make GCD work in these cases where Async doesn't, please let me know. I think GCD works fine with the pre iOS 8 queue classes, but not with the new ones e.g. DISPATCH_QUEUE_PRIORITY_BACKGROUND.
@damonjones I don't know if it's in the Readme, but it has been a Github issue before. I'll update the ready :)

Added to readme as of bf2983e67c1ef52b225438787529a863fb65b186.
@istx25 If you find anything, please just comment on this issue even though it's closed. Or even better. Make a gist and add a reference to it in the readme under Known Bugs :)

FWIW, all tests pass fine with the latest (public) version of Xcode: 9.4 (9F1027a)


Stackdriver tracing env variable is malformed

After enabling Stackdriver tracer, malformed env variable is injected:
    - name: STACKDRIVER_TRACING_MAX_NUMBER_OF_ANNOTATIONS
      value: '&Int64Value{Value:200,XXX_unrecognized:[],}'
    - name: STACKDRIVER_TRACING_MAX_NUMBER_OF_ATTRIBUTES
      value: '&Int64Value{Value:200,XXX_unrecognized:[],}'
    - name: STACKDRIVER_TRACING_MAX_NUMBER_OF_MESSAGE_EVENTS
      value: '&Int64Value{Value:200,XXX_unrecognized:[],}'

Seems like it is because injection template https://github.com/istio/istio/blob/4e3cd418a56c328cad553f3ff646d2220ca9d8f3/manifests/istio-control/istio-discovery/files/injection-template.yaml#L300 does not work along with the Stackdriver tracing proto https://github.com/istio/istio/blob/4e3cd418a56c328cad553f3ff646d2220ca9d8f3/pkg/bootstrap/config.go#L287

@bianpengyuan : Where did you see these values? I am seeing following:
tracing:
stackdriver:
debug: true
maxNumberOfAnnotations: "200"
maxNumberOfAttributes: "200"
maxNumberOfMessageEvents: "200"

They are proxy container's env variables.


Cant use syft with go mod vendor because invalid case of microsoft module

What happened:
in code you used github.com/microsoft/go-rustaudit instead of github.com/Microsoft/go-rustaudit
What you expected to happen:
to use github.com/Microsoft/go-rustaudit
Steps to reproduce the issue:
install syft as dependency of another go project
run
go mod tidy
go mod vendor
go build -mod vendor
Anything else we need to know?:
Environment:

Output of syft version:
OS (e.g: cat /etc/os-release or similar):

👋 Barnuri where do you see github.com/Microsoft/go-rustaudit as the correct case?
I just checked the libraries go.mod file and found:
https://github.com/microsoft/go-rustaudit/blob/204dfee52032963d1c64725a41f7fd88feaf1503/go.mod#L1C3-L10
Is there another place this could be pulled from that's causing the uppercase to matter?

I don't think I understand the nature of the failure. That is, when I run the given steps:
❯ go mod tidy
❯ go mod vendor
❯ go build -mod vendor -o /tmp/grype ./cmd/grype

I have a grype build that works:
❯ /tmp/grype alpine:latest
 ✔ Vulnerability DB                [no update available]
 ✔ Loaded image                                                                                alpine:latest
 ✔ Parsed image                                                                                sha256:7e01a0d0a1dcd9e539f8e9bbd80106d59efbdf97293b3d38f5d7a34501526cdb
 ✔ Cataloged packages              [16 packages]
 ✔ Scanned for vulnerabilities     [0 vulnerabilities]
   ├── 0 critical, 0 high, 0 medium, 0 low, 0 negligible
   └── 0 fixed
No vulnerabilities found

@barnuri  what's the failure you expected here?

its happening when trying to do go mod vendor inside docker
 => ERROR [builder 4/7] RUN go build -mod vendor -o syft                                                                                8.3s
------
 > [builder 4/7] RUN go build -mod vendor -o syft:
6.096 go: finding module for package github.com/microsoft/go-rustaudit
7.070 vendor/github.com/anchore/syft/syft/pkg/cataloger/rust/package.go:4:2: cannot query module due to -mod=vendor

Even in docker we were still not able to reproduce the issue. I tried this in grype, but take note of the go mod why output:
$ go mod why github.com/microsoft/go-rustaudit
# github.com/microsoft/go-rustaudit
github.com/anchore/grype/grype
github.com/anchore/syft/syft/pkg/cataloger
github.com/anchore/syft/syft/pkg/cataloger/rust
github.com/microsoft/go-rustaudit

$ go mod why github.com/Microsoft/go-rustaudit
# github.com/Microsoft/go-rustaudit
(main module does not need package github.com/Microsoft/go-rustaudit)

Note that the only consumer of this go-rustaudit module is syft, which we know references this module via the lowercase variant. Do you have multiple dependencies that use this module?
Also, are you blocked by this PR not making it in? If so you can put the replace line in you application's go.mod to unblock your work.
We don't want to merge this fix since we don't have a good understanding as to why Microsoft is more correct over microsoft given that the upstream go.mod in the go-rustaudit repo references the lowercase variant.

Seeing the same issue for buildkit-syft-scanner that depends on several Microsoft libraries. GoLang appears to treat mods as case-insensitive and syft causes issues due to use of lowercase "microsoft"


HTML Symbol Entities

HTML Symbol Entities
Character Entities for HTML, CSS and Javascript
€ ¥ £ $ ¢ & ©
¾ ± ∑ ∫ ≤ ≈ ∠
Æ Ď ⇒ ↓ λ Γ
‡ — ⟨ ⟩ ♠
Œ æ ö
℘ ℑ ℜ ℵ
Ӓ Ϡ � "
ℋ ∲ ⅆ
⮝ ⌈ ⌋
ആ ಫ
(from https://github.com/chrishrb/go-grip/issues/5)

@Disonantemus for me these entities all work exactly how they should or am I missing something here?


keyNotFound(CodingKeys(stringValue: "nameStyle", intValue: nil)

Not sure what goes wrong here. I modified the yaml file from the SwiftUI example app with my own file Id.
When I run figma-export colors -i figma-export.yaml I then get this error:
Error: keyNotFound(CodingKeys(stringValue: "nameStyle", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "ios", intValue: nil), CodingKeys(stringValue: "colors", intValue: nil)], debugDescription: "No value associated with key CodingKeys(stringValue: \"nameStyle\", intValue: nil) (\"nameStyle\").", underlyingError: nil))
I tried a couple of different Figma files and got the same error.
figma:
  lightFileId: XXX

# [optional] Common export parameters
common:
  colors:
    # RegExp pattern for color name validation before exporting
    nameValidateRegexp: '^[a-zA-Z_]+$' # RegExp pattern for: background, background_primary, widget_primary_background
  icons:
    # RegExp pattern for icon name validation before exporting
    nameValidateRegexp: '^(ic)_(\d\d)_([a-z0-9_]+)$' # RegExp pattern for: ic_24_icon_name, ic_24_icon
  images:
    # RegExp pattern for image name validation before exporting
    nameValidateRegexp: '^(img)_([a-z0-9_]+)$' # RegExp pattern for: img_image_name

# [optional] iOS export parameters
ios:
  # Path to xcodeproj
  xcodeprojPath: "./TestFigma.xcodeproj"
  # Xcode Target containing resources and corresponding swift code
  target: "TestFigma"
  # Path to the Assets.xcassets directory
  xcassetsPath: "./TestFigma/Assets.xcassets"
  # Is Assets.xcassets located in the main bundle?
  xcassetsInMainBundle: true

  # Parameters for exporting colors
  colors:
    # Should be generate color assets instead of pure swift code
    useColorAssets: True
    # Name of the folder inside Assets.xcassets where to place colors (.colorset directories)
    assetsFolder: Colors
    # Color name style: camelCase or snake_case
    nameStyle: camelCase
    # [optional] Absolute or relative path to swift file where to export UIKit colors (UIColor) for accessing from the code (e.g. UIColor.backgroundPrimary)
    colorSwift: "./TestFigma/View/Common/UIColor+extension.swift"
    # [optional] Absolute or relative path to swift file where to export SwiftUI colors (Color) for accessing from the code (e.g. Color.backgroundPrimary)
    swiftuiColorSwift: "./TestFigma/View/Common/Color+extension.swift"

  # Parameters for exporting icons
  icons:
    # Image file format: pdf or svg
    format: svg
    # Name of the folder inside Assets.xcassets where to place icons (.imageset directories)
    assetsFolder: Icons
    # Icon name style: camelCase or snake_case
    nameStyle: camelCase
    # [optional] Absolute or relative path to swift file where to export icons (SwiftUI’s Image) for accessing from the code (e.g. Image.illZeroNoInternet)
    swiftUIImageSwift: "./TestFigma/View/Common/Image+extension_icons.swift"

  # Parameters for exporting images
  images:
    # Name of the folder inside Assets.xcassets where to place images (.imageset directories)
    assetsFolder: Illustrations
    # Image name style: camelCase or snake_case
    nameStyle: camelCase
    # [optional] Absolute or relative path to swift file where to export images (SwiftUI’s Image) for accessing from the code (e.g. Image.illZeroNoInternet)
    swiftUIImageSwift: "./TestFigma/View/Common/Image+extension_illustrations.swift"

  # Parameters for exporting typography
  typography:
    # [optional] Absolute or relative path to swift file where to export UIKit fonts (UIFont extension).
    fontSwift: "./TestFigma/View/Common/UIFont+extension.swift"
    # [optional] Absolute or relative path to swift file where to export SwiftUI fonts (Font extension).
    swiftUIFontSwift: "./TestFigma/View/Common/Font+extension.swift"

    # Will FigmaExport generate UILabel for each text style (font) e.g. HeaderLabel, BodyLabel, CaptionLabel.
    generateLabels: false

Hello. I've found an issue. typography section must contains nameStyle parameter. Just add nameStyle: camelCase parameter to the typography section.

I've just updated config file for ExampleSwiftUI.
https://github.com/RedMadRobot/figma-export/blob/master/Examples/ExampleSwiftUI/figma-export.yaml

That did it, thanks!


How to specify the output layers during model conversion to TFLite in TF2?

Describe the problem
Is there any way to remove the TFLite_Detection_PostProcess in tf2 ssd mobilenet model during conversion to tflite model？In tf1, there is a option to do so, but it seems that in tf2 the option for specifying the output layers is removed.
In tf1, I can specify the output layers by putting the layer's name in output_array:
input_arrays=["normalized_input_image_tensor"]
output_arrays=["raw_outputs/box_encodings","raw_outputs/class_predictions"]
input_tensor={"normalized_input_image_tensor":[1,320,320,1]}
import tensorflow as tf
converter = tf.compat.v1.lite.TFLiteConverter.from_frozen_graph('tflite_graph.pb',input_shapes = input_tensor,
input_arrays = input_arrays ,output_arrays = output_arrays)
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.allow_custom_ops = True
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8,tf.lite.OpsSet.SELECT_TF_OPS]
converter.inference_input_type = tf.int8
converter.inference_output_type = tf.int8
converter.representative_dataset = representative_dataset_gen
tflite_model = converter.convert()
open('ssd_mobilenet_v2_tf1.tflite', "wb").write(tflite_model)

@qqwerter ,
In order to expedite the trouble-shooting process, could you please provide the complete code and tensorflow version to reproduce the issue reported here.

Also please take a look at this link which provides information on tflite converter.It helps.Thanks!

The TFLiteConverter API in TensorFlow 2.x no longer supports specifying inputs & outputs.
The recommended approach in TensorFlow 2.x is to build tf.functions (or equivalent signatures in SavedModel) when building the TensorFlow model, and convert it to TensorFlow as is.
If you needs to deal with a legacy model, you can still use the tf.compat.v1.lite.TFLiteConverter API.
Let us know if this answers your question. Please let us know if there's a concrete use case that cannot be supported now.


Default client on gce instances

With GOOGLE_APPLICATION_CREDENTIALS not set on gce instances, cloudpathlib operations such as is_dir fail:
from cloudpathlib import CloudPath
p = CloudPath("gs://<some non-public path>")
p.is_dir()

fails with:
/lib/python3.7/site-packages/google/auth/credentials.py in refresh(self, request)
    171         """Raises :class:`ValueError``, anonymous credentials cannot be
    172         refreshed."""
--> 173         raise ValueError("Anonymous credentials cannot be refreshed.")
    174
    175     def apply(self, headers, token=None):

ValueError: Anonymous credentials cannot be refreshed

On gce instances, storage client doesn't need any further auth setup. For eg., without GOOGLE_APPLICATION_CREDENTIALS set, this works:
from google.cloud import storage
storage_client = storage.Client()
# Make an authenticated API request
buckets = list(storage_client.list_buckets())
print(buckets)

and this also works:
from cloudpathlib import CloudPath
from google.cloud import storage

gs_client = cloudpathlib.GSClient(storage_client=storage.Client())
gs_client.set_as_default_client()

p = CloudPath("gs://<some non-public path>")
p.is_dir()

It would be nice if this extra setup is not needed.
Maybe while constructing it can try creating non-anonymous storage client and if it fails create anonymous one.

Thanks @amardeep! Do you know the reliable way to test creating the client? Will the following raise an exception if there are no creds, or do we need to actually try to do something with the client?
from google.cloud import storage
storage_client = storage.Client()

If that raises, then we can add a try except in the else block here and have anonymous be the final fallback:
https://github.com/drivendataorg/cloudpathlib/blob/master/cloudpathlib/gs/gsclient.py#L70-L77

Trying following code on non-gce and gce instances:
from google.cloud import storage
storage_client = storage.Client()

It succeeds on gce instances or non-gce instances with gcloud auth login done.
On non-gce instances with no gcloud auth login or google credentials in environment, it fails with following trace:
Traceback (most recent call last):
  File "/root/test_storage_client.py", line 2, in <module>
    storage_client = storage.Client()
  File "/usr/local/lib/python3.9/dist-packages/google/cloud/storage/client.py", line 159, in __init__
    super(Client, self).__init__(
  File "/usr/local/lib/python3.9/dist-packages/google/cloud/client/__init__.py", line 318, in __init__
    _ClientProjectMixin.__init__(self, project=project, credentials=credentials)
  File "/usr/local/lib/python3.9/dist-packages/google/cloud/client/__init__.py", line 266, in __init__
    project = self._determine_default(project)
  File "/usr/local/lib/python3.9/dist-packages/google/cloud/client/__init__.py", line 285, in _determine_default
    return _determine_default_project(project)
  File "/usr/local/lib/python3.9/dist-packages/google/cloud/_helpers/__init__.py", line 154, in _determine_default_project
    _, project = google.auth.default()
  File "/usr/local/lib/python3.9/dist-packages/google/auth/_default.py", line 493, in default
    raise exceptions.DefaultCredentialsError(_HELP_MESSAGE)
google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see https://cloud.google.com/docs/authentication/getting-started
r

@amardeep Thanks! We have a potential fix. Would you mind testing it on your GCE env and non-GCE env?
You can install the branch with the fix by doing:
pip install "git+https://github.com/drivendataorg/cloudpathlib@191-gce-default-client#egg=cloudpathlib[gs]"

Thanks. Change looks fine. I tested it and it works with one issue which is probably an issue with storage client library.
On non-gce machine with no credentials - it works fine with public buckets. For eg:
from cloudpathlib import CloudPath
p = CloudPath("gs://tfds-data/datasets")
p1 = p / "mnist"
print(list(p1.glob("*")))
p2 = CloudPath("gs://<some privtate bucket>/")
print(list(p2.glob("*")))

First works and second fails as expected.
On gce machine, both work as expected.
On non-gce machine, with GOOGLE_APPLICATION_CREDENTIALS set, both work.
On non-gce machine without GOOGLE_APPLICATION_CREDENTIALS but with gcloud auth login, it fails with following error, but i think it is an issue with storage client library, so the current change should be good.
File ".venv/lib/python3.9/site-packages/google/oauth2/_client.py", line 60, in _handle_error_response
    raise exceptions.RefreshError(error_details, response_data)
google.auth.exceptions.RefreshError: ('invalid_grant: Token has been expired or revoked.', {'error': 'invalid_grant', 'error_description': 'Token has been expired or revoked.'})

Thanks for testing @amardeep. We'll see if we get any reported issues on that last scenario—maybe there's another branch to the logic here, but it seems like this fix should make more scenarios work smoothly for folks.

Thanks a lot for the quick response :)


publish paths based on export key, allow hyphens

Example services.js to go with
function record( request, content ){
    return 'saved';
}
exports['record-save'] = record;

Thanks @1.7.8 published containing your changes :)


using c10::intrusive_ptrc10d::ProcessGroup as argument from python

the problem
related to https://github.com/bytedance/flux/issues/11

Why
c10d::ProcessGroup as a c10::intrusive_ptr_target can be copied or moved, but with refcount to 0, which causes c10d::ProcessGroup release_resources after the first call.
Fix
using c10::intrusive_ptrc10d::ProcessGroup as argument instead.

close #11


Move kubevirt/builder image to quay.io

What this PR does / why we need it:
Migrates the kubevirt/builder image from Docker Hub to quay.io
This PR also updates the image with operator-courier 2.1.11 which is needed for some follow up work (WIP) done in https://github.com/kubevirt/kubevirt/pull/5017
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

/ok-to-test

/hold

/unhold

/retest pull-kubevirt-e2e-k8s-1.18

/test pull-kubevirt-e2e-k8s-1.18

/test pull-kubevirt-e2e-k8s-1.19


Creating markets with negative liquidity

It allowed me to create a market with -20000 initial liquidity.
The market went through the whole creation process and said successfully created, however it doesn't show up.

Fixed with the new create market page.


fix: assign stmt in schema codegen and runtime value merge.

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

[ ] N
[x] Y

fix #785

2. What is the scope of this PR (e.g. component or file name):

kclvm/compiler/src/codegen/llvm/node.rs
kclvm/runtime/src/value/val_schema.rs

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[x] Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

[x] N
[ ] Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

[ ] Unit test
[x] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[ ] Other

test/grammar/schema/assign_stmt/assign_stmt_0/main.k
test/grammar/schema/assign_stmt/assign_stmt_1/main.k
test/grammar/schema/assign_stmt/assign_stmt_2/main.k
test/grammar/schema/assign_stmt/assign_stmt_3/main.k
test/grammar/schema/assign_stmt/assign_stmt_4/main.k
test/grammar/schema/assign_stmt/assign_stmt_5/main.k
test/grammar/schema/assign_stmt/assign_stmt_6/main.k
test/grammar/schema/optional_attr/inherit_2/main.k
test/grammar/schema/optional_attr/inherit_3/main.k
test/grammar/schema/init/init_nested_schema_1/main.k

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 87.82%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2300

Relevant Lines:
2619

💛  - Coveralls


Create an avatar tag to be usable anywhere we need an avatar.

fixes https://github.com/boostorg/website-v2/issues/1285
Use a django tag to render an avatar component.

I did this using a partial + a django tag so the avatar can be created using just a django tag.  I'm also open to using the partial with a surrounding with to set variables but I thought the tag is easier to use and harder to mess up.

I don't know what a "django tag" is, but I like the sound of it

This is certainly an improvement, and I think it could be better still. I would like to not have to specify name, image, and href individually. Instead I would like the avatar to be passed a single "object" with the appropriate keys. And delegate to the django code filling in that object. This is just my intuition, I could be wrong....

@vinniefalco I want the ability to specify those fields individually but I will create an avatar that is specifically for rendering from a user object, that may be what you want.

This PR is fine as-is, and if you want to add rendering from a user object that is OK too and it being in a separate PR is also ok.


app registry - create secrets space

@johndietz can you add more information to what this issue is please?


Milestones completion

In Projects Milestones tab I have two milestones
One of the Milestones has 0 tasks
The other has 7 tasks 1 project task 3 requests 2 problems 1 incident
All are marked as solved.
The completion on the milstones shows as xx% for both

feature not yet implemented. will do as part of 1.3


[Winforms] Inherit another IViewFor view

Hi ReativeUI team,
Is there any way to inherit an IViewFor in winform?
I've searched around, but I don't get it.
Example:
I have a base control
public class BaseControl: ReactiveUserControl<BaseViewModel>
{
}

This contains some common Properties, Methods.
Now I want:
public class ItemDetailControl: BaseControl, IViewFor<ItemDetailViewModel>
{
}

I follow (https://reactiveui.net/docs/handbook/view-location/extending-iviewfor)
But I can't find: "public static readonly BindableProperty ViewModelProperty =..." in Winforms
Thank you!

@duongngh
public static readonly BindableProperty ViewModelProperty is a Xamarin.Forms construct that allows XF a bindable entry point for the binding engine.  This just allows you to interact with that UI platforms binding engine.
I am not sure what the equivalent is in WinForms, or if it has one.
The relevant code you care about for WinForms is in the ReactiveUserControl
So you're doing it right.  You just have to solve the concerns of your target platform, how that platform expects.
The purpose of the IViewFor is to let the type system know that a given View component will have a specific type of ViewModel.  That is really what you want in this I believe.


Multiline assertFailsWith marks as uncovered

In 0.6.1 with ./gradlew koverMergedXmlReport uploaded to codecov:
https://app.codecov.io/github/korlibs/korge/blob/31ceb8d90c8adf02931e410d385f704e513d56b4/kds/src/commonTest/kotlin/com/soywiz/kds/QueueTest.kt

Also I'm getting some strange partial here in the same file:

Hi,
at the moment, correct integration with codecov is not guaranteed.
Could you please show the HTML report? How different is it from codecov.

@shanshin

List.isNotEmpty partial coverage is fixed in agent version 1.0.688
As for assertFailesWith, this issue is caused by insufficient support of @InlineOnly functions in the coverage agent

Nice! Confirmed that List.isNotEmpty thing is fixed:

Related issue about InlineOnly functions https://youtrack.jetbrains.com/issue/KT-55381

Fixed since 0.8.0


migrate from burrito to dumpling

also includes:

remove support for py34
fix diamond SAM parsing bug (the sam parser remains but is not used so far)
update sphinx config.py
set to use new skbio new interval metadata
other small changes
rm cache temporarily

Coverage decreased (-11.02%) to 74.974% when pulling a8ec31dbafeea33c2e04865a16f4c183f4640bdd on RNAer:bf into 70506324bc7460af9f4aa0968fb62886907a1b84 on biocore:master.

The tests are passing, which is good.
We need to add a few tests tomorrow.  Otherwise 👍

Just curious - what is dumpling?

https://github.com/rnaer/dumpling   a replace for burrito as burrito is obsoleted and hard to use.

If it is a replacement of burrito, why is it not living in biocore? specially if it is a dependency of micronota @antgonza @gregcaporaso @jairideout thoughts - which is the future of burrito?

i am ok with moving into biocore. any comments are welcome : )
On Wed, Apr 27, 2016 at 11:38 PM, Jose Navas<EMAIL_ADDRESS>wrote:

If it is a replacement of burrito, why is it not living in biocore?
specially if it is a dependency of micronota @antgonza
https://github.com/antgonza @gregcaporaso
https://github.com/gregcaporaso @jairideout
https://github.com/jairideout thoughts - which is the future of burrito?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/biocore/micronota/pull/75#issuecomment-215325179

Coverage decreased (-8.02%) to 77.978% when pulling 3c3476ca7d3e742d9116ea8f1f391803a5ea3f05 on RNAer:bf into 70506324bc7460af9f4aa0968fb62886907a1b84 on biocore:master.


USD: Sponza scene from intel not loading as expected

Describe the bug
The sponza scene from intel is not loading as expected:  https://www.intel.com/content/www/us/en/developer/topic-technology/graphics-research/samples.html
To Reproduce

Warnings in terminal:
Loading 3D scene: /home/glow/tmp/Main.1_Sponza/NewSponza_Main_USD_Yup_002.usda

Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/_st_floor/ornament_stones_01) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/_st_floor/lionhead) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/_st_floor/decals_1st_floor) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/_nd_floor/ornament_stones_2ndfloor) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/_nd_floor/decals_2nd_floor) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/_rd_floor/sponza_ornament) but MaterialBindingAPI is not applied on the prim
Warning: in BindingsAtPrim at line 705 of /__w/f3d-superbuild/f3d-superbuild/build/superbuild/openusd/src/pxr/usd/usdShade/materialBindingAPI.cpp -- Found material bindings on prim at path (/_rd_floor/decals_3rd_floor) but MaterialBindingAPI is not applied on the prim
No animations available in this file

Partially fixed (missing texture transforms)

I don't have any texture with this file now.

caused by issues in the file, closing


My First PR commit

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign jstrachan
You can assign the PR to them by writing /assign @jstrachan in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

:star: PR built and available in a preview cb-kubecd-bdd-sbhg-1602677553-pr-1 here


Converts server-routerlicious.yml pipeline to 1ES template

Description
This PR converts server-routerlicious.yml to the new 1ES template required by Microsoft with the minimal required set of template changes required. This new template enables security and auditing checks by Microsoft. Read more on how the logic for converting to a 1ES pipeline works on the official 1ES wiki
A temporary 1ES folder was created for converted pipeline templates. This enables other pipelines to remain unchanged and use the original templates while new PR's are opened for individually converted other pipelines to 1ES as required by Microsoft. You can easily view what the template changes are by looking at the diff in the following PR which is a fork of this branch and simply moves the template changes from the 1ES folder to the original so there is a clear diff present on github

Once all pipelines are moved over, we can start moving the files out of the 1ES folder and eventually remove the folder since it will no longer have any files (This is after we convert the rest of the required pipelines).

This PR also adds a new file CredScanSuppressions.json which disables automated credential scanning security checks on certain files that produce a false positive because they have mock credentials.

Breaking Changes
Reviewer Guidance

Confirm the newly converted pipelines run successfully. Look at the completed steps and compare with a recent successful run on main to ensure the expected steps run (plus the new SDL and 1ES security checks)
Make sure all the relevant templates and pipelines for server-routerlicious.yml have been converted
Make sure there are no unnecessary changes or 1ES template and/or pipeline conversions
Make sure the yml is valid -- a successful pipeline run should suffice for confirming this

Found one more thing we need to bring with this (could have done it with any of them really, because the relevant file is already getting analyzed as part of the repo): the CredScanSuppressions.json file. Due to the missing suppression file, the pipelines are reporting warnings like this one.

/azp run server - routerlicious

/azp run server-routerlicious


Added Error 404 page, along with a Home Page and About Us page for the website

IMPORTANT: When creating your Pull Request, please use the following format for the title: Category - Resource Name & Section
PR Title samples:

Web development - CSS Portal & Tools
Web development - Leetcode & Challenges

Fixes Issue

Fixes #134
Fixes #148
Fixes #139
Closes #134
Closes #148
Closes #139
Description:
Added Error 404-page along with a dedicated Landing Page for the website so that users can easily navigate to the GitHub repository, added About Us page too.
Screenshots:

Resource URL:

Checklist:
Before submitting your pull request, ensure that you have completed the following tasks:

[x] I have carefully reviewed and adhered to the contributing guidelines before creating this pull request.
[x] I followed the prescribed PR title template.
[x] I followed the Code of Conduct

Why didn't you say that you could build the website? I thought you were just going to create the 404 page. I could have assigned it to you, but someone is already working on it. #166.

@jfmartinz I'm sorry, the error page needed a home page so I built it. If you merge this pull request the person already working maybe able to make changes on top of it. It will reduce the time taken and make it a lot faster.

@jfmartinz Should I create another pull request with Only the Error Page?

@jfmartinz Should I create another pull request with Only the Error Page?

Yes. If you can. But I like the website you built, maybe after the website is done building, then maybe you can help us make it more better, thanks

What if you two #166 work together to create the website and speed it up, what do you think? Hes using HTML CSS JS and API to create the website, and I will give you booth level 3 for it?

@jfmartinz That sounds like a good idea. So firstly, I'm creating another pull request with only the Error page so this issue gets closed, and then I will change the homepage in html, css, js stack and work with him.

Actually the guy said that the website is ready for the development, but I think you could help us for making it better? Maybe Ill c reate simple design and then well see. You can connect with me if you want here (linkedin)

Sure @jfmartinz . I'll see if the website needs improvement after


feat: support for mono-repositories

Hello,
Would be nice to have support for them: https://typedoc.org/guides/monorepo/.
But, I assume this would bring some complications, UI-wise.
Thanks.

I think I understand what you are wanting to do, and yes... that is going to be a rabbit hole of complexity.


No docs on including rx.upload in rx.form

Feature request:
A file upload is common in webforms, but the rx.upload docs do not show how to integrate rx.upload into rx.form -- particularly with combing handle_upload and handle_submit execution. Otherwise, one would have to use 2 separate buttons (1 for file upload and 1 for form submission), instead of just 1 button for the entire process.
It would be great if the form docs included an example form with all other components in the Form section of the docs (e.g., Slider, RadioGroup, Upload, etc)

Hey @Lendemor I would like to work on this issue. Plz assign me.

@Spartan-71 thanks for the investigation. I'll close this ticket for now, but maybe we can find a way to handle this in the future.


Drop concept of phases

In the original design, we have the concept of "phases". There are 6 phases: init, build, deploy, test, release, finalise. Tasks are added into those phases. The phases are executed sequentially.
The main reason to use phases is that it allows to merge the phases of multiple repositories together while keeping some order. The idea is that subrepos can "expose" some tasks/phases, which get slotted into the phases of the umbrella repo.
The question now is if we really need this feature. Could we also live without it? Conceptually it would be simpler if each repo defines the tasks it wants to run, and that tasks defined in subrepos are not looked at in the umbrella repo at all.
Right now I believe we can actually live without it, and by doing so, gain a few things:

it's simpler: the pipeline of a repo is exactly the one defined in this repo, no surprises
it is not guaranteed that collecting tasks from various repo actually results in a usable pipeline
we wouldn't want to include all tasks from subrepos in the umbrella repo anyway, so we'd need a way to signal which tasks to pluck from subrepos and which not
ordering would only depend on runAfter, not "phases and potentially runAfter`
it would be easier to customize "final" tasks and potentially even workspaces

What would we lose by allowing simple pipelines only?

Tasks defined in subrepos that should run for the umbrella repo need to be copied into the umbrella repo. While this sounds bad, it is only the reference we need to copy. The task itself is located in the cluster and does not need to be copied.

With phases, ods.yml looks like this right now:
environments:
  dev:
    targets:
      - name: default
        namespace: michael-dev

phases:
  build:
    tasks:
    - name: build-go
      taskRef:
        kind: ClusterTask
        name: ods-build-go-v0-1-0
      workspaces:
      - name: source
        workspace: shared-workspace

    - name: build-image
      taskRef:
        kind: ClusterTask
        name: ods-build-image-v0-1-0
      runAfter:
      - build-go
      workspaces:
      - name: source
        workspace: shared-workspace
  deploy:
    tasks:
    - name: deploy
      taskRef:
        kind: ClusterTask
        name: ods-deploy-helm-v0-1-0
      workspaces:
      - name: source
        workspace: shared-workspace

Without phases, ods.yml might look like this:
environments:
  dev:
    targets:
      - name: default
        namespace: michael-dev

pipeline:
  tasks:
    - name: build-go
      taskRef:
        kind: ClusterTask
        name: ods-build-go-v0-1-0
      workspaces:
      - name: source
        workspace: shared-workspace

    - name: build-image
      taskRef:
        kind: ClusterTask
        name: ods-build-image-v0-1-0
      runAfter:
      - build-go
      workspaces:
      - name: source
        workspace: shared-workspace

    - name: deploy
      taskRef:
        kind: ClusterTask
        name: ods-deploy-helm-v0-1-0
      runAfter:
      - build-image
      workspaces:
      - name: source
        workspace: shared-workspace
  finally: {} # Optionally, tasks which should run whether previous tasks failed or not

For 0.1, we'll start with the simpler approach. If we do find use cases for the phases concept, we can add that as an alternative later on.


Provide a way to simulate text entry also

It's a very, very amazing library.
It has a lot of potential too.
I like the EventSimulator feature a lot.
However, I want to simulate the text entry also.
such as: "Akash".
Any way to accomplish that?
Or any plans to include this feature?

Hi! Thanks, I really appreciate the feedback!
Unfortunately, there is no way to simulate text entry as this feature is not present in libuiohook, and I imagine that it's non-trivial to implement since simulating text entry will require knowledge of the current keyboard layout and how the OS and the active window process key presses.
I'm going to close this issue as "won't fix" since I don't think it's going to be added to libuiohook, but feel free to discuss this further.
One thing you could do however is to use the clipboard. There's a library called TextCopy which lets you work with the clipboard in a cross-platform way. Put the text you want to enter into the clipboard and then simulate pressing Ctrl+V. Obviously, this is a hack and not an ideal solution. Also, it will destroy anything that was in the clipboard previously, so use this with caution.

Ok, I can understand,
But I think there's a native function called SendInput
SendInput Function on MSDN
I think it can be implemented although it is not supported by libuiohook, but I think that it will provide more values to the users.

SendInput is precisely what libuiohook uses to simulate input events on Windows 🙂
But, as I've said, simulating text entry is more difficult than simulating raw keystrokes. Also, I don't want to add anything to SharpHook which is not implemented in libuiohook because I'm absolutely not an expert in low-level input event manipulation and I can't guarantee that the added features will be any good.

Ah, I understood.
No problem bro :-)
On 2/13/22, Tolik Pylypchuk @.***> wrote:

SendInput is precisely what libuiohook uses to simulate input events on
Windows 🙂

But, as I've said, simulating text entry is more difficult than simulating
raw keystrokes. Also, I don't want to add anything to SharpHook which is not
implemented in libuiohook because I'm absolutely not an expert in low-level
input event manipulation and I can't guarantee that the added features will
be any good.

--

Reply to this email directly or view it on GitHub:

https://github.com/TolikPylypchuk/SharpHook/issues/7#issuecomment-1038181326

You are receiving this because you authored the thread.

Message ID: @.***>

Hi @akash07k! FYI, I've implemented simulating text entry in libuiohook myself, and it works on Windows, macOS, and Linux. It will be available in version 5.0.0 which I will release soon.

Hi @TolikPylypchuk Thanks a tons for implementing this ❤
I will eagerly wait for 5.0 release and will be happy to use it in my apps.
Thanks once again 👍

Hi @akash07k! FYI, I've implemented simulating text entry in libuiohook myself, and it works on Windows, macOS, and Linux. It will be available in version 5.0.0 which I will release soon.

I've just released version 5.0.0 so this issue can be closed.


Fixed detector offset initialization

Uninitialized variable fix for centered detector

We have now switched to ITK format for the commit messages (see here).


Support Python 3.12

The blocker here was the docker Python API dependency, old version relied on distutils package that was removed in Python 3.12. I also took this opportunity to upgrade test dependencies and some Github actions.
Closes #194

FYI I couldn't upgrade pytest-asyncio to the latest version due to this error:
../../miniforge3/envs/aiidalab-launch/lib/python3.12/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
../../miniforge3/envs/aiidalab-launch/lib/python3.12/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
../../miniforge3/envs/aiidalab-launch/lib/python3.12/site-packages/_pytest/python.py:534: in collect
    return super().collect()
../../miniforge3/envs/aiidalab-launch/lib/python3.12/site-packages/_pytest/python.py:455: in collect
    res = ihook.pytest_pycollect_makeitem(
../../.local/lib/python3.12/site-packages/pluggy/_hooks.py:493: in __call__
    return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
../../.local/lib/python3.12/site-packages/pluggy/_manager.py:115: in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
../../miniforge3/envs/aiidalab-launch/lib/python3.12/site-packages/pytest_asyncio/plugin.py:528: in pytest_pycollect_makeitem_convert_async_functions_to_subclass
    node_or_list_of_nodes = hook_result.get_result()
../../miniforge3/envs/aiidalab-launch/lib/python3.12/site-packages/pytest_asyncio/plugin.py:511: in pytest_pycollect_makeitem_preprocess_async_fixtures
    _preprocess_async_fixtures(collector, _HOLDER)
../../miniforge3/envs/aiidalab-launch/lib/python3.12/site-packages/pytest_asyncio/plugin.py:224: in _preprocess_async_fixtures
    event_loop_node = _retrieve_scope_root(collector, scope)
../../miniforge3/envs/aiidalab-launch/lib/python3.12/site-packages/pytest_asyncio/plugin.py:942: in _retrieve_scope_root
    raise pytest.UsageError(error_message)
E   _pytest.config.exceptions.UsageError: tests/test_profile.py is marked to be run in an event loop with scope class, but is not part of any class.

I also couldn't upgrade responses (which provides mocks for requests library) since the latest version bumped the minimum requests version. We could probably cleanly upgrade requests as well, but that's better done in a separate PR to test it more carefully.

I remember there are some issues with the latest docker API (v5->v6) on Macbook, I'll test it.

If you agree, I'll merge this PR and if users report there are problems with the docker version we start investigating on what is the minimal docker engine version that required and add it to the documentation.

@unkcpz yeah, that sounds good to me, thanks for testing!


Board Review: Schema Registry v1.0

Thank you for submitting this review request. Thorough review of your client library ensures that your APIs are consistent with the guidelines and the consumers of your client library have a consistently good experience when using Azure.
The Architecture Board reviews Track 2 libraries only. If your library does not meet this requirement, please reach out to Architecture Board before creating the issue.
Please reference our review process guidelines to understand what is being asked for in the issue template.
To ensure consistency, all Tier-1 languages (C#, TypeScript, Java, Python) will generally be reviewed together.  In expansive libraries, we will pair dynamic languages (Python, TypeScript) together, and strongly typed languages (C#, Java) together in separate meetings.
For Tier-2 languages (C, C++, Go, Android, iOS), the review will be on an as-needed basis.
Before submitting, ensure you adjust the title of the issue appropriately.
Note that the required material must be included before a meeting can be scheduled.
Contacts and Timeline

Responsible service team: Schema Registry
Main contacts: @deyaaeldeen
Expected code complete date: 10/01/2021
Expected release date: October milestone

About the Service

Link to documentation introducing/describing the service: https://docs.microsoft.com/en-us/azure/event-hubs/schema-registry-overview
Link to the service REST APIs: https://github.com/Azure/azure-rest-api-specs/pull/15855
Link to GitHub issue for previous review sessions, if applicable:  This package will implement caching so it will also benefit from https://github.com/Azure/azure-sdk/issues/3293.

About the client library

Name of the client library: @azure/schema-registry
Languages for this review: .NET, Java, JavaScript, and Python

Artifacts required (per language)
Please read through “API Review” section here to understand how these artifacts are generated. It is critical that these artifacts are present and are in the right format. If not, the language architects cannot review them with the SDK Team’s API review tool.
.NET

APIView Link:
SchemaRegistry
Avro Serializer
Link to Champion Scenarios/Quickstart samples:
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/schemaregistry/Azure.Data.SchemaRegistry/README.md
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/README.md

Java

APIView Link:

azure-data-schemaregistry
azure-data-schemaregistry-avro

Link to Champion Scenarios/Quickstart samples:

azure-data-schemaregistry
azure-data-schemaregistry-avro

Python

APIView Link:

azure-schemaregistry
azure-schemaregistry-avroserializer

Link to Champion Scenarios/Quickstart samples:

azure-schemaregistry
azure-schemaregistry-avroserializer

TypeScript

APIView Link:

schema-registry
schema-registry-avro

Link to Champion Scenarios/Quickstart samples:

schema-registry
schema-registry-avro

For all other languages, send a request to the Architecture Board to discuss the best format on individual basis.
Thank you!

Scheduled for 9/14

Recording[MS INTERNAL ONLY]


Selectable payment channel

Description
Support selection of specific channel to attempt payment when you have multiple channels to choose from.
Context
LND supports this feature using the outgoing_chan_id parameter on payinvoice. Not sure about C-lightning. This gives the wallet user the option of making payments on a specific channel.
Possible Implementation
This could be implemented as an 'advanced' payment option or alternatively channels could be assigned a 'priority' or 'enabled' setting.

Thanks for the idea. Right now OnDevice LND has priority. But if we find an easy UI this would be a nice feature!


[k12-kit] Updating cumulusci.yml file with rough draft of Josh kofsky…

…'s net_new_org flow for Dina
Critical Changes
Changes
Issues Closed
New Metadata
Deleted Metadata
Testing Notes

@jstvz @jofsky I'm thinking we might want to use the install_beta flow here, which would include steps 1-3 already listed and also add the snapshot_changes task.

flow: install_beta [from current folder]

flow: dependencies

task: update_dependencies
task: deploy_pre

task: install_managed_beta
flow: config_managed

task: deploy_post
task: update_admin_profile
task: deploy_k12_kit_settings

task: snapshot_changes

task: enable_course_connections
task: deploy_trial_config
task: add_application_type_picklist_values

Thoughts?


"Rains of Castamere" agenda not supported

This needs deckbuilder support

The deckbuilder has been updated to support this, now just in game support to do


PNG transparency not preserved with Wand

When using the the Wand engine, generated thumbnails of PNG images with transparency no longer have any transparency. I am using sorl-thumbnail 11.12.1b and Wand 0.3.8.
My only thumbnail related settings are:
THUMBNAIL_ENGINE = 'sorl.thumbnail.engines.wand_engine.Engine'
THUMBNAIL_QUALITY = 90
THUMBNAIL_ORIENTATION = False
THUMBNAIL_PRESERVE_FORMAT = True

If I comment out the THUMBNAIL_ENGINE setting to return to sorl-thumbnail's default of PIL, the generated thumbnails are fine. The problem is specific to Wand. (I'm not sure if this is related to #298 since he claims to be using the default engine.)
Any ideas where I should start looking?

This should fix the transparency issue in the Wand backend. I also wrote a test to check transparency.


Update CONTRIBUTING.md

This issue is about updating contributing.md with following points.
    - Please solve only one issue per PR.
    - Only one enhancement per PR (more are allowed if the enhancement if very small)

- [x] This issue is for enhancement/bug fixing.
- [x] Assign this issue to me.

Those points can be included, but adding multiple content of a single anime should be allowed as there are way too many ! :octocat:

@Anshuman-Verma Yeah that seems good, also this point will help in maintaining the history of changes for particular animes.

Yea right, will be convenient.


Improve expr performance

initial perf: 1600 ns/op
new: 450 ns/op
Use unmanaged functions.
Previously framework was doing a lot of common work and giving
elementary types to Funcs, but it was not performant.
Now writing a func is more involved, but it is more performant.
Now funcs receive []*Expression
convert all existing funcs to unmanaged.
Issues with managed funcs:

involved creating a lot of objects. Could be resolved by using a pool of slices,
but now removed the need for it.
Short circuit functions are easier with unmanaged.  { A && B && C } should return false if A is false and not evaluate B and C.

This change is

Jenkins job mixer/presubmit passed

Jenkins job mixer/presubmit passed

Jenkins job manager/mixer-pr passed

Jenkins job mixer/presubmit passed

Jenkins job manager/mixer-pr passed

Jenkins job mixer/presubmit passed

Jenkins job mixer/presubmit passed

Jenkins job manager/mixer-pr passed

comments addressed PTAL.

Jenkins job mixer/presubmit passed

Jenkins job manager/mixer-pr passed

Jenkins job mixer/presubmit passed

Jenkins job manager/mixer-pr passed

Jenkins job mixer/presubmit passed

Jenkins job mixer/presubmit passed

Jenkins job manager/mixer-pr passed


Fixed issue where Markdown syntax would cause table columns to have incorrect lengths

The bug was described in this issue https://github.com/tgrosinger/advanced-tables-obsidian/issues/232 on the https://github.com/tgrosinger/advanced-tables-obsidian repository.
I've used the existing remove-markdown npm package but if the addition of extra dependencies is not desired it would be simple to reimplement as a private function as that package is just a single function with a series of regex commands.

Thank you for opening this PR.
If I understand correctly, this is removing the markdown syntax before calculating the width of the cell contents?
While that would make it display nicer in Obsidian, it would cause the table to actually no longer be formatted nicely when you look at the plain text in another editor. I think that breaks the intended purpose of this library, since it is not Obsidian specific.
I definitely agree that it's annoying to have the columns rendered unevenly in Obsidian, but I don't think the Advanced Tables plugin will be able to resolve that until Obsidian adds additional support for helping edit tables.

It could actually be really interesting to see if we can incorporate this proposal: https://github.com/tgrosinger/advanced-tables-obsidian/issues/199
If this library adds an optional parameter to toggle this functionality on and off I think it could be the best of both worlds.


Fix set keyspace result for python driver

This pull request fixes the issue where the SetKeyspaceResult in the response message of the USE statement does not reflect the actual keyspace name.
Previously, when using the USE statement with a quoted name in cqlsh, the behavior was as follows:

cqlsh sends USE "ks"
SetKeyspaceResult "\"ks\"" is returned
cqlsh sends USE ""ks""

The Cassandra session is composed of multiple connections, and when the USE statement succeeds on one connection, it updates the current keyspace for all other connections.

https://github.com/datastax/python-driver/blob/3.29.1/cassandra/cluster.py#L4642

I also found that the escape character of quoted name is different from the CQL grammar. It says "any character where " can appear if doubled."

https://cassandra.apache.org/doc/stable/cassandra/cql/definitions.html#identifiers

Changes
This pull request includes the following changes:

Modify identifer.go to add ID method

Added a new method ID to the identifer.go file to enhance identifier handling.

Modify lexer_test.go to add TestLexerIdentifiers test

Introduced a new test case TestLexerIdentifiers in lexer_test.go to ensure the lexer correctly identifies and processes identifiers.

Modify proxy.go to fix interceptSystemQuery method

Fixed the interceptSystemQuery method in proxy.go to ensure SetKeyspaceResult uses a real keyspace name instead of quoted one.

Fix quoted name of identifier

Corrected the quoted name of the identifier to ensure proper syntax and functionality.

Thanks for the PR @ikehara!  There's definitely a problem here but I have a different take on the root cause of the issue.  I'm going to create a new issue which will include my analysis of what I think is going on here; once that's done we can discuss how to proceed.
Thanks again!

Thank you for the investigation.
While investigating this issue, I discovered another problem.

https://github.com/datastax/cql-proxy/pull/130

I would appreciate it if you could take a look at this one as well.

I'm +1 this solution.

So I didn't articulate this clearly enough but my original concern here was some variation of the following; there are actually two issues being addressed by this PR:

cql-proxy wasn't removing quotes around keyspace responses when sending set keyspace response messages
The parser wasn't correctly handling some of the quoting cases for CQL statements

They're both legit bugs, but only one really relates to the problem at hand.  My hope was to detangle those issues so that we could get a clear fix for each of them.  After talking about it for a while it's become increasingly clear that this isn't essential, and I agree the approach here solves the problem as well.


TestRemote_nsmgr_restart_ip is unstable on AWS

Build
https://github.com/networkservicemesh/integration-k8s-aws/pull/214/checks?check_run_id=44735425953

https://github.com/networkservicemesh/integration-k8s-aws/actions/runs/1559436044
Logs:
logs-300.zip

As I can see in logs the problem was related to registry instabillity. This can be fixed by https://github.com/networkservicemesh/sdk/pull/1213. Let's see for new incidents.

Is not reproducing. Closing this for now. The issue will be reopened with a new incident.


How can I run your code without training?

I want to test on my own data(images). Can I achieve this?

Yeas you certainly can, You can check some closed issues where people had a similar question, in a nutshell, you need to create a dataloader and train the model on your data.

Yeas you certainly can, You can check some closed issues where people had a similar question, in a nutshell, you need to create a dataloader and train the model on your data.

Thanks for your kind reply, I mean I want to run the prediction on my own images directly without training, just use your trained model, is that possible?

Yes you certainly can, just download the model and run inference by pointing to the images folder and the model's path; but don't expect good results given that it was trained using a different dataset with potentially different data and class distributions.

Yes you certainly can, just download the model and run inference by pointing to the images folder and the model's path; but don't expect good results given that it was trained using a different dataset with potentially different data and class distributions.

Thank you! I installed the requirements and ran the inference.py but I found an error: (predict.py is inference.py, I just renamed it. I saved my images in '/home/bjyang/pytorch_segmentation-master/image' folder. I just downloaded your 'PSPnet.pth' model)
(py36) bjyang@bjyang-U2003:~/pytorch_segmentation-master$ python predict.py --config config.json --model PSPnet.pth --images /home/bjyang/pytorch_segmentation-master/image
Traceback (most recent call last):
File "predict.py", line 163, in
main()
File "predict.py", line 105, in main
loader = getattr(dataloaders, config['train_loader']['type'])(**config['train_loader']['args'])
File "/home/bjyang/pytorch_segmentation-master/dataloaders/voc.py", line 93, in init
self.dataset = VOCAugDataset(**kwargs)
File "/home/bjyang/pytorch_segmentation-master/dataloaders/voc.py", line 51, in init
super(VOCAugDataset, self).init(**kwargs)
File "/home/bjyang/pytorch_segmentation-master/base/base_dataset.py", line 27, in init
self._set_files()
File "/home/bjyang/pytorch_segmentation-master/dataloaders/voc.py", line 57, in _set_files
file_list = [line.rstrip().split(' ') for line in tuple(open(file_list, "r"))]
FileNotFoundError: [Errno 2] No such file or directory: 'data/VOCtrainval_11-May-2012/VOCdevkit/VOC2012/ImageSets/Segmentation/train_aug.txt'
What should I do? Does it mean I need to download VOC dataset?
I have checked the reference.py code, but it's hard for me to fix the error. Could you give me some suggestions?

I guess a quick fix is to just pass the parameters manually:
replace lines 105 - 109 with
    MEAN = [0.45734706, 0.43338275, 0.40058118]
    STD = [0.23965294, 0.23532275, 0.2398498]
    to_tensor = transforms.ToTensor()
    normalize = transforms.Normalize(MEAN, STD)
    num_classes = 21
    palette = palette.get_voc_palette(num_classes)

and also we'll neet to add an additional import from utils import palette.


Alpha Release of Android Framework

Feature complete and documented.
First public build of framework for integration and testing with other components.

Looks good.  Ready to build.


Use eslint-plugin-total-functions

Are the exceptions you put in due to limitations in the plugin or are they things we should fix? If it is the latter I might push up a commit to make the linter happy.

I believe I fixed all the false positives in the plugin, so these are all just grandfathered in.

Although https://github.com/danielnixon/eslint-plugin-total-functions/issues/11 would remove the need for at least one.

And https://github.com/danielnixon/eslint-plugin-total-functions/issues/18 would probably help too

I don't have time to fix these issues right now so I've raised https://github.com/NoxHarmonium/peoples-choice/issues/19 and will merge this.


Adding an example of DALL-E 2.0

Adding pictures and information can help the user to know how to use this application correctly plus we can add the procedure or steps on how to get your own API key

pls assign me this issue under GSSOC'23 label
@SurajPratap10

@AmanSingh6574  go ahead 📌

@SurajPratap10  hello sir I was working on this issue but didn't know that u have also assigned the same task to someone else
as this task is completed now I want to change the ui of the examples added as the image size is very huge leading to lagging of the site plus the prompt is also not visible clearly
I require your permission to start @SurajPratap10

@SurajPratap10  sir you assigned me this task but this have been completed by someone else. I think you have assigned the same task

I don't remember this as there are so many PRs on a daily basis, plus you didn't respond for many days while other folks were raising PRs constantly so I might have forgotten about this. You may add some extra features and I will consider it @AmanSingh6574


Inverted duplicates are not found in mark duplicates

Mark duplicates uses the left and right positions corrected for clipping
to match duplicates on coordinates. However, this approach can miss
duplicates that are truly inverted (ie positions reversed and the
strand direction is reversed).
Picard and sambamba pick up these reads as duplicates
This change fixes this issue by checking the direction when doing the
left and right group bys in mark duplicates.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/2897/Build result: FAILUREGitHub pull request #2101 of commit 6eb28c4379237943f83b570f4bf8771222f6f6ae automatically merged.Notifying endpoint 'HTTP:https://webhooks.gitter.im/e/ac8bb6e9f53357bc8aa8'[EnvInject] - Loading node environment variables.Building remotely on amp-jenkins-worker-05 (centos spark-test) in workspace /home/jenkins/workspace/ADAM-prbWiping out workspace first.Cloning the remote Git repositoryCloning repository https://github.com/bigdatagenomics/adam.git > git init /home/jenkins/workspace/ADAM-prb # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/adam.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/bigdatagenomics/adam.git +refs/heads/:refs/remotes/origin/ # timeout=15 > git config remote.origin.url https://github.com/bigdatagenomics/adam.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10 > git config remote.origin.url https://github.com/bigdatagenomics/adam.git # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/adam.git > git fetch --tags --progress https://github.com/bigdatagenomics/adam.git +refs/pull/:refs/remotes/origin/pr/ # timeout=15 > git rev-parse origin/pr/2101/merge^{commit} # timeout=10 > git branch -a -v --no-abbrev --contains 38604e3f8ce6bd092ffb5f155da8db6a941a27f3 # timeout=10Checking out Revision 38604e3f8ce6bd092ffb5f155da8db6a941a27f3 (origin/pr/2101/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f 38604e3f8ce6bd092ffb5f155da8db6a941a27f3First time build. Skipping changelog.Triggering ADAM-prb ? 2.7.5,2.11,2.2.2,ubuntuADAM-prb ? 2.7.5,2.11,2.2.2,ubuntu completed with result FAILURENotifying endpoint 'HTTP:https://webhooks.gitter.im/e/ac8bb6e9f53357bc8aa8'
Test FAILed.

Hello @pauldwolfe, thank you for submitting this pull request!
It may not be clear from the Jenkins build logs, but the build failed due to the source code formatting checker.  Your IDE may have been trying to be too helpful!

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 6eb28c43 Inverted duplicates are not found in mark duplicates

adam (HEAD detached at pauldwolfe/master)
$ mvn clean install
...
[INFO] BUILD SUCCESS

adam (HEAD detached at pauldwolfe/master)!
$ git diff .
diff --git a/adam-core/src/main/scala/org/bdgenomics/adam/rdd/read/MarkDuplicates.scala b/adam-core/src/main/scala/org/bdgenomics/adam/rdd/read/MarkDuplicates.scala
index a80687fe..66532f5d 100644
--- a/adam-core/src/main/scala/org/bdgenomics/adam/rdd/read/MarkDuplicates.scala
+++ b/adam-core/src/main/scala/org/bdgenomics/adam/rdd/read/MarkDuplicates.scala
@@ -1,29 +1,29 @@
 /**
-  * Licensed to Big Data Genomics (BDG) under one
-  * or more contributor license agreements.  See the NOTICE file
-  * distributed with this work for additional information
-  * regarding copyright ownership.  The BDG licenses this file
-  * to you under the Apache License, Version 2.0 (the
-  * "License"); you may not use this file except in compliance
-  * with the License.  You may obtain a copy of the License at
-  *
-  * http://www.apache.org/licenses/LICENSE-2.0
-  *
-  * Unless required by applicable law or agreed to in writing, software
-  * distributed under the License is distributed on an "AS IS" BASIS,
-  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  * See the License for the specific language governing permissions and
-  * limitations under the License.
-  */
+ * Licensed to Big Data Genomics (BDG) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The BDG licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.bdgenomics.adam.rdd.read

 import org.bdgenomics.utils.misc.Logging
 import org.apache.spark.rdd.RDD
 import org.bdgenomics.adam.instrumentation.Timers._
-import org.bdgenomics.adam.models.{RecordGroupDictionary, ReferencePosition}
+import org.bdgenomics.adam.models.{ RecordGroupDictionary, ReferencePosition }
 import org.bdgenomics.adam.rdd.ADAMContext._
 import org.bdgenomics.adam.rdd.fragment.FragmentDataset
-import org.bdgenomics.formats.avro.{AlignmentRecord, Fragment, Strand}
+import org.bdgenomics.formats.avro.{ AlignmentRecord, Fragment, Strand }

 private[rdd] object MarkDuplicates extends Serializable with Logging {

Reformatted as per @heuermh request

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/2902/
Test PASSed.


AndroidSystemNavigationManagerImpl object not to be garbage collected

Describe the bug
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Android/Avalonia.Android/Platform/AndroidSystemNavigationManager.cs
AndroidSystemNavigationManagerImpl subscribed the IActivityNavigationService.BackRequested event but did not unsubscribe.
It causes the AndroidSystemNavigationManagerImpl object not to be garbage collected.
To Reproduce
Just new an AvaloniaView.
Expected behavior
AndroidSystemNavigationManagerImpl object unsubscribe ISystemNavigationManagerImpl.BackRequested event at the right time.
Screenshots
Environment

OS: [Android]
Avalonia-Version: [11.0.5]

Additional context

@vrjure as you seem to know where in the code the issue is, maybe you want to provide a PR?

I want to embed a native control and display avalonia content on top of it. So i manually create AvaloniaView, the code like this:
public class EmbedSampleAndroid : INativeDemoControl
{
    public IPlatformHandle CreateControl(bool isSecond, IPlatformHandle parent, Func<IPlatformHandle> createDefault)
    {
        var parentContext = (parent as AndroidViewControlHandle)?.View.Context
            ?? global::Android.App.Application.Context;

        var webView = new global::Android.Webkit.WebView(parentContext);
        webView.LoadUrl("https://www.android.com/");

        var container = new RelativeLayout(parentContext);
        container.AddView(webView);

        var lp = new RelativeLayout.LayoutParams(WindowManagerLayoutParams.MatchParent, 120);
        lp.AddRule(LayoutRules.AlignParentBottom);

        var _overlayLayer = new AvaloniaView(parentContext);
        container.AddView(_overlayLayer, lp);

        return new AndroidViewControlHandle(container);
    }
}

The parentContext is AvaloniaMainActivity, it is alaways used. The parentContext is right? Is there another context i can get?

There's still a chance of it not being collected. Take a view hierarchy like this; Activity -> AvaloniaView -> NativeControlHost -> AvaloniaView -> Overlay. The overlay's AvaloniaView may be disposed while the Activity still exist and the parent AvaloniaView still active. That prevents the overlay avaloniaview's toplevel from being GC'd.


SSL Errors

[2016-09-17 00:40:06] Dramiel.ERROR: exception 'ErrorException' with message 'fwrite(): SSL operation failed with code 1. OpenSSL Error messages: error:140D00CF:SSL routines:SSL_write:protocol is shutdown' in /home/Dramiel/mamba/vendor/react/stream/src/Buffer.php:86 Stack trace: #0 [internal function]: React\Stream\Buffer->handleWrite(Resource id #177, Object(React\EventLoop\StreamSelectLoop)) #1 /home/Dramiel/mamba/vendor/react/event-loop/src/StreamSelectLoop.php(240): call_user_func(Array, Resource id #177, Object(React\EventLoop\StreamSelectLoop)) #2 /home/Dramiel/mamba/vendor/react/event-loop/src/StreamSelectLoop.php(201): React\EventLoop\StreamSelectLoop->waitForStreamActivity(4862327.0988464) #3 /home/Dramiel/mamba/vendor/team-reflex/discord-php/src/Discord/Discord.php(1223): React\EventLoop\StreamSelectLoop->run() #4 /home/Dramiel/mamba/Dramiel.php(211): Discord\Discord->run() #5 {main} [] []
This is a Discord bot (https://github.com/shibdib/Dramiel) using DiscordPHP (https://github.com/teamreflex/DiscordPHP).
This is a common problem amongst everyone using the framework.

Thanks for posting, this looks like a duplicate of your other issue at https://github.com/reactphp/stream/issues/57, so let's address this there :+1: