Split the dust definition 3-way to enable lower limits

Implements the changes needed to resolve #2601 and most of #2603. This was missed (by me) in the fee proposal and subsequently 1.14.4
High level overview

Introduces a policy test (p2p-policy.py) that ensures policy changes surrounding dust and fees get flagged up on the CI in the future, making shenanigans like this situation less likely to occur. The test implements policy values proposed in #2603.
Split the policy side of the dust limit into configurable soft and hard limits, where the soft limit enforces the economic disincentive (dust can be paid for with additional fee), and the hard limit makes nodes reject outputs under that threshold into their mempools. Per #2603, the hard dust limit is proposed to be set at at 0.001 DOGE
Decouple wallet and mempool dust policy by introducing a configurable, separate limit for the wallet called discard threshold, allowing the network to roll out policy changes without increasing the potential for user's transactions to get stuck. Per #2603, the threshold is proposed to be set at at 1 DOGE for the time being, because that's enforced as a hard limit by 97% of the relay network and (probably) all miners.

Rationale for each change

b17ddb3 creates a test that fails on its own: it shows that the soft dust limit didn't work at all. Transactions that should be rejected for providing too little fee, are rejected for being dust. The problem with that is that even if you would pay a million DOGE fee, it would still be rejected, and that's not how the dust mechanism was advertised.
fc3b9f0 adds a facility to transaction outputs that checks dust against a fixed amount rather than a fee rate, because for Dogecoin, dust has never been a rate, and even though the rate is passed to the original function, it is not used there. I have retained the original function for now, to be cleaned up later, because this is not exposed to users.
352a5a3 implements the policy-side split. The reason for retaining the hard limit is to not go from a much-too-high hard limit to none at all. Because both limits are now configurable, miners (and relay operators) can change this independent from default policies, or, if we ultimately want to go back to the situation where there is no hard dust limit at all, this can be done by gradually reducing the defaults with subsequent releases.
0fe63f3 introduces -discardthreshold, which is basically the Dogecoin version of Bitcoin's -discardfee, but as an explicit threshold rather than a rate. Besides becoming the "dust" threshold that the wallet tests all outputs against, it also becomes the new base for MIN_CHANGE and MIN_FINAL_CHANGE as those are used by coin selection algorithms. This commit on its own does not change any values yet, to prove that the rework is sane.
a24cddb removes -dustrelayfee as that is exposed to the user (and has been defunct since 1.14.2)
2a2c4d1 sets the discard threshold to 1 DOGE, to make sure that transactions sent from the wallet will not get rejected as hard dust by 1.14.2-1.14.4 nodes (both miners and relay).

Other changes not included here
I've tried to make this PR as small as I could while keeping it complete because I felt that if I'd fragment it too much, review would be hard, as would a single huge PR be. Further changes should be made to make the the wallet's change constants more dynamic (use user-defined parametrization rather than hardcoded defaults only), more tests should be written to ensure wallet operations are consistent cross-version and there can be some additional cleanup done to functions we don't use anymore.

Verified with three nodes (sender, relay, miner) and a 0.1 output transaction (with -discardthreshold=0.01)

Did you also add -acceptnonstdtxn=0? Because testnet nodes allow non-standard tx by default.

Did you also add -acceptnonstdtxn=0? Because testnet nodes allow non-standard tx by default.

I didn't, and it rejected the transactions without the -discardthreshold=0.01. However, rejection was UI/CLI, not the mempool, I believe, so I think that's as expected.

it rejected the transactions without the -discardthreshold=0.01

Could be caused by high tx fee warning... am investigating.

Should have made it clearer, #2606 (comment) is required, as the Qt client crashes on launch otherwise (as does dogecoind -help)

Yep! working on it! need to rebase, it's sitting right in the middle :-)

ACK, might see if I can get someone to do a second review though just to be sure

Thanks! More eyes = better. This is a big change.

I didn't, and it rejected the transactions without the -discardthreshold=0.01

Re-tested this (this time with both QT and with the CLI), and this is indeed the check done on all outputs of a wallet transaction (against the -discardthreshold) and not caused by the mempool.


ACM-12098: Helper function for export of SubRows and returning CSV safe strings

Related to ACM-12099: Here I'm adding some functionality to the export feature that will make exporting SubRows possible and will make exporting strings with comma's a seamless experience.
Merge this commit ahead of the  "Implementation" commits!

/hold

/lgtm

/unhold

@KevinFCormier I rebased on main, so another review is needed!

/lgtm

/retest


REST API viewer shows ":undefined" for type on empty inputs/outputs

Compiling a contract with methods that have no inputs or no outputs (such as a default constructor) the OpenAPI renders with a confusing :undefined output - because we do not include "type": "object" in the empty schema defintiion.

Added a fix for https://github.com/kaleido-io/ethconnect/issues/66 to this PR.


Use pre-Explain SQL for WithoutQueryVariables

[x] Do only one thing
[x] Non breaking API changes
[x] Tested

What did this pull request do?
The current implementation of WithoutQueryVariables substitutes ? for any query variables and calls tx.Dialector.Explain, which can result in a lot of string allocations. This implementation avoids the substitution and uses whatever the default representation of the query parameters is for the SQL dialect.
Fixes #14

User Case Description
We had performance issues with the previous implementation of tracing with the WithoutQueryVariables option.

Looks good to me.
Thank you once again for your pull request.


Opening PowerShell script from Explorer Open With on Windows Server 2012 R2 causes the file to open in another user's session

VSCode Version: 1.11.2
OS Version:  Windows Server 2012 R2
Extensions:  PowerShell 0.12.2 (behavior observed with enabled and disabled)

Steps to Reproduce:

Install VS Code on a host that is a member of a domain with at least one trusted domain
Create two users, one in each domain with the same SamAccountName
Establish a session for each user to the host
Open VS Code in one RDP session
Switch to other RDP session
Open File Explorer and navigate to a folder containing one or more PowerShell scripts
Select a file that is NOT open in the VS Code instance launched in Step 4.
Right-click on the PowerShell script and select Visual Studio Code from the "Open with" context menu.
NOTE:  The context entry for Visual Studio Code was manually created via "Choose default program..."
Observe that VS Code does not launch in the current RDP session
Switch to the first RDP session
Observe that the file from Step 8 is now open in VS Code in the other user's RDP session.

https://github.com/Microsoft/vscode/issues/15674

@bpasero there is a difference between this one and #15674.
In the case I describe here, the two processes should be running in different security contexts in addition to different sessions.
In the case of #15675, they are using a shared login.  The processes would be running in the same security context, just different sessions.

OK reopening. I am not planning to work on this soon, so if someone wants to make an analysis of what is going wrong and how to fix, be my guest.

@joaomoreno fyi also seems related to the named pipe change you did on Windows

The recent one done this week?

@YAMNSheff
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: http://code.visualstudio.com/Download#insiders

Closing due to inactivity.


Fix for missing etcd_service_start_timeout

Fixes https://github.com/andrewrothstein/ansible-etcd_cluster/issues/27 This ensures that the etcd_service_start_timeout has a default in the template if it's not set in the variables.

This was a bug in the template which I resolved. Please give the latest version on the galaxy a go (v3.0.5). Thanks!


Complex Infrastructure Service as seprate Proejct?

Hello,
In your example, you have EmailSender as Infrastructure service and it's interface IEmailSender is defined in Application Layer. But lets say that Email Service gets very complex, for example in my application I have functions like SendResetPasswordEmail(PasswordResetRequest request)   SendSignupEmail(SignUpEmailRequest request) etc. And all those Requests are Model/Dto classes. Email Service reads some HTML template and populates the data based on Request Models. So my Email Service has about 12-15 Classes in total.
In that scenario, would you suggest having a completely separate project for Email management and just add the reference into the Application layer? Or would you still prefer to do all the Implementation of the Email Classes in the Infrastructure Layer??

IEmailSender is very low level - it just sends an email given what you send it.
If you need to do a lot of business logic in terms of different kinds of emails with different templates, etc. then I would define the business logic of these services as interfaces in Core. I would try to put as much of the logic into a domain service in Core. I would leave the implementation details of actually building emails from templates and actually sending emails to other interfaces that had low-level implementations in Infrastructure.
For example, maybe your basic version uses simple string.Replace tokens for your templates and local SMTP for sending. So you might have implementations for StringReplaceMailTemplateService and LocalSmtpMailSender.
But then later you start using Razor for your templates and SendGrid for sending, so you add
RazorMailTemplateService and SendGridMailSender.
The idea is to keep the high level concepts separate from the low level details. Put the "what" you need to do in Core; put the "how" you do it in Infrastructure.


Capture output of the docker build

This connects to #15

It's everything I thought it could be :+1:

Neat :+1:

:+1:


Expand GraphqlParams allowed record types

Overview
I saw that a PR is currently in progress for updating documentation related to the GraphQL client, so thought I'd flag here.
The GraphqlParams type defines an optional query property with type Record<string, string | number>. In other words, query parameters must be an object with values of either string or number.
Some mutations require passing an object as a parameter value. For example eventBridgeWebhookSubscriptionCreate requires a webhookSubscription parameter of type EventBridgeWebhookSubscriptionInput. Attempting to pass a value like that results in type errors.
I'm not completely familiar with all queries/mutations offered by the Admin API GraphQL endpoint and their required parameters, so I'm not sure what this type should be.
Type

[x] Changes to existing features

Motivation
I'm attempting to use the GraphQL client provided by this library to create EventBridge subscriptions, but I'm seeing type errors. Apologies if I've misunderstood how the GraphQL client works, I understand documentation is still in progress. Thanks!
Checklist

[x] I have described this feature request in a way that is actionable (if possible)

Looking at the code a bit more: I've realised EventBridge subscriptions are probably better handled via Shopify.Webhooks. Still interested in discussing though!

Hey! Yeah, you're correct, the EventBridge subscriptions should be handled by Shopify.Webhooks, but this is a good sign that that might also need better documentation. I'm working on improved GraphQL and REST client documentation now, but we can definitely take another look at our documentation around webhooks.

Thanks for the quick response, and for working on the docs!
FWIW I thought the current docs on webhooks were helpful, I just hadn't realised I could specify the deliveryMethod to register webhooks specifically for EventBridge, which is why I ventured down the route of initialising a GraphQL client instance instead. When I inspected the types it became obvious though, TS is great.


Exceptions tracing webClient calls, causes request to hang

Could provide (a lot) more information about the problem please and possible a reproducer project?

Steps to create issue

I add tracing to an existing webflux project
that project uses WebClient to call another service
That response contains invalid headers (or anything that causes an exception)

The result is that there is an exception, but there is no response written and the request hangs without ever terminating
If i remove the tracing dependancy everything works ok and i get a response
I have attached a sample.
just go to http://localhost:8080/hello
spring-cloud-tracing-bug-2.tar.gz

I see that you are using a milestone version of Spring Boot. We certainly haven't tested with any such version so it is no surprise that it doesn't work.
Do you see the same behevior if you use the latest release version of Spring Boot?

yes, i only tried that to make sure it wasnt a defect that had been fixed but yes changing version makes no difference

OK, thanks. I will take a look hopefully soon.

@shurdsfield I just tried your reproducer (albeit with Spring Boot 2.1.6.RELEASE) and the /hello endpoint worked without issues.
Can you confirm or is there something missing?

i am using jdk : openjdk 11.0.2
and running
./gradlew bootRun
Just tried now and get the exception

It worked perfectly for me, here is the last part of the output:
2019-06-21 14:07:22.680  INFO 9373 --- [or-http-epoll-2] i.j.internal.reporters.LoggingReporter   : Span reported: b2a4f8c7b7b087ec:b2a4f8c7b7b087ec:0:1 - hello

The output of ./gradlew -version for me is:
------------------------------------------------------------
Gradle 5.4.1
------------------------------------------------------------

Build time:   2019-04-26 08:14:42 UTC
Revision:     261d171646b36a6a28d5a19a69676cd098a4c19d

Kotlin:       1.3.21
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM:          11.0.2 (Oracle Corporation 11.0.2+9)
OS:           Linux 4.18.0-22-generic amd64

I also tried with java -jar .... after building with ./gradlew build and same result, the endpoint responsed properly

Ok, so it just when using the 2.2 milestone releases i have the issue. I thought id tried with 2.1 release versions  but maybe i was mistaken. something to keep an eye on with the next release

Awesome, thanks @shurdsfield for inverstigating.
I will go ahead and close this issue for the time being and we can reopen if there is a problem with the released of version of 2.2.x

Just to add i am blocked since #50 means i cant upgrade to 2.1.6. if i downgrade to io.projectreactor.netty:reactor-netty:0.8.6.RELEASE to fix #50 i  get the exception again

So it looks like reactor-netty is doing something weird... I guess we just have to wait and see what happens


Spaceship fails to throw an error when run with bundle exec

Alexs-MacBook-Air:is-spaceship alex$ bundle exec ruby test.rb
Couldn't verify that spaceship is up to date
Starting...
<Spaceship::Tunes::SandboxTester
<EMAIL_ADDRESS>	first_name="Steve",
	last_name="Brule",
	country="US">

Here is the result I expected:
`create_sandbox_tester!': That email address is already associated with an existing Apple ID. (Spaceship::Tunes::Error)
	from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.99.1/spaceship/lib/spaceship/tunes/sandbox_tester.rb:46:in `create!'
	from test.rb:7:in `<main>'

Here is test.rb
require 'spaceship'

puts 'Starting...'

<EMAIL_ADDRESS>
result = Spaceship::Tunes::SandboxTester.create!(
  email<EMAIL_ADDRESS># required
  password: 'Passwordtest1', # required. Must contain >=8 characters, >=1 uppercase, >=1 lowercase, >=1 numeric.
  country: 'US', # optional, defaults to 'US'
  first_name: 'Steve', # optional, defaults to 'Test'
  last_name: 'Brule', # optional, defaults to 'Test'
)

puts result

and my Gemfile
source 'https://rubygems.org'

ruby '2.3.3'

gem 'spaceship'

Environment

✅ fastlane environment ✅
Stack

Key
Value

OS
10.13.5

Ruby
2.3.3

Bundler?
false

Git
git version 2.15.2 (Apple Git-101.1)

Installation Source
/usr/local/bin/fastlane

Host
Mac OS X 10.13.5 (17F77)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib

OpenSSL Version
LibreSSL 2.2.7

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Library/Developer/CommandLineTools/

Xcode Version

System Locale

Variable
Value

LANG
en_CA.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
No Fastfile found
No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.100.1
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.0.0

slack-notifier
2.3.2

atomos
0.1.2

CFPropertyList
3.0.0

claide
1.0.2

colored2
3.1.2

nanaimo
0.2.6

xcodeproj
1.5.9

rouge
2.0.7

xcpretty
0.2.8

terminal-notifier
1.8.0

unicode-display_width
1.4.0

terminal-table
1.8.0

plist
3.4.0

addressable
2.5.2

multipart-post
2.0.0

word_wrap
1.0.0

public_suffix
2.0.5

tty-screen
0.6.5

tty-cursor
0.6.0

tty-spinner
0.8.0

babosa
1.0.2

colored
1.2

highline
1.7.10

commander-fastlane
4.4.6

excon
0.62.0

faraday
0.15.2

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20180417

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

fastimage
2.1.3

gh_inspector
1.1.3

mini_magick
4.5.1

multi_json
1.13.1

multi_xml
0.6.0

rubyzip
1.2.1

security
0.1.3

xcpretty-travis-formatter
1.0.0

dotenv
2.5.0

bundler
1.16.3

faraday_middleware
0.12.2

naturally
2.2.0

simctl
1.6.5

uber
0.1.0

declarative
0.0.10

declarative-option
0.1.0

representable
3.0.4

retriable
3.1.2

mime-types-data
3.2016.0521

mime-types
3.1

little-plugger
1.1.4

logging
2.2.2

jwt
2.1.0

memoist
0.16.0

os
0.9.6

signet
0.8.1

googleauth
0.6.2

httpclient
2.8.3

google-api-client
0.21.2

emoji_regex
0.1.1

json
2.1.0

io-console
0.4.5

libxml-ruby
2.9.0

generated on: 2018-07-23

@alexblack Heyyy 👋 First of all, thanks for providing a sample test script 🙌
I ran the above and I'm pretty sure I got the result that you expected 🤔
➜  test-ios git:(master) ✗ bundle exec ruby test.rb
Starting...
/Users/josh/Projects/fastlane/fastlane/spaceship/lib/spaceship/tunes/tunes_client.rb:1288:in `create_sandbox_tester!': That email address is already associated with an existing Apple ID. (Spaceship::Tunes::Error)
        from /Users/josh/Projects/fastlane/fastlane/spaceship/lib/spaceship/tunes/sandbox_tester.rb:46:in `create!'
        from test.rb:7:in `<main>'

This is what you were expecting to see on your machine, right?

Hey Josh, yes that is what I expected to see.  I repro'd this issue on both
my Mac laptops, and Heroku.
However, I've also seen it work as expected.  Simply running the script
with Ruby works for me, but running it with bundle exec repros the problem.
I did a lot of investigating, checking gem versions, trying bundle options,
reading about bundle exec .
No luck.
On Mon, Jul 30, 2018, 5:54 AM Josh Holtz<EMAIL_ADDRESS>wrote:

@alexblack https://github.com/alexblack Heyyy 👋 First of all, thanks
for providing a sample test script 🙌
I ran the above and I'm pretty sure I got the result that you expected 🤔
➜  test-ios git:(master) ✗ bundle exec ruby test.rb
Starting...
/Users/josh/Projects/fastlane/fastlane/spaceship/lib/spaceship/tunes/tunes_client.rb:1288:in create_sandbox_tester!': That email address is already associated with an existing Apple ID. (Spaceship::Tunes::Error)        from /Users/josh/Projects/fastlane/fastlane/spaceship/lib/spaceship/tunes/sandbox_tester.rb:46:in create!'        from test.rb:7:in `'
This is what you were expecting to see on your machine, right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fastlane/fastlane/issues/12951#issuecomment-408852805,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJFwnidJpj_nftSDCXkYaBcwrX2VSiRks5uLwH0gaJpZM4VcChb
.

hey @joshdholtz thx again for looking at this.  You can see the actual (unexpected) result above, here it is again:
Alexs-MacBook-Air:is-spaceship alex$ bundle exec ruby test.rb
Couldn't verify that spaceship is up to date
Starting...
<Spaceship::Tunes::SandboxTester
<EMAIL_ADDRESS>	first_name="Steve",
	last_name="Brule",
	country="US">

Yes I tried using begin/rescue, it doesn't catch an error.    If login fails, then I get the expected result on the command line: an error occurs, and the operation fails.

@alexblack I totally can't replicate what you are seeing on your end 😔 My call is always throwing an exception. I've tried:

With bundle exec on version of Ruby installed via ruby-install/chruby
Without bundle exec on version of Ruby installed via ruby-install/chruby
With bundle exec on system version of Ruby
Without bundle exec on system version of Ruby

Is there something outside of this script that could be causing this?
One thing I did notice that your environment does show Bundler? | false. If you are using bundle exec you should have a Gemfile with gem "fastlane" in it. I'm not sure if Bundler? | false is reporting wrong or if you don't have a have a Gemfile with gem "fastlane" in it but that is the only thing I can really think of that would be causing this weird behavior 🤔

Thanks for your help here.  I ended up looking at the source and just
implementing it myself.
On Sat, Sep 1, 2018, 1:33 PM fastlane bot<EMAIL_ADDRESS>wrote:

There hasn't been any activity on this issue recently. Due to the high
number of incoming GitHub notifications, we have to clean some of the old
issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest fastlane version and check if
that solves the issue. Let us know if that works for you by adding a
comment 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/fastlane/fastlane/issues/12951#issuecomment-417875177,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJFws5tI0jCVgq3fymuQASnEGXm9cP-ks5uWsTNgaJpZM4VcChb
.


Secure a Basic Node.js App with the Authorization and Trust Management Service (XSUAA)

Tutorials: https://developers.sap.com/tutorials/cp-cf-security-xsuaa-create.html
On the step Call your application from its secure route I got a 500 internal error when calling https://approuter-<my-app-host>.cfapps.<global-account>.hana.ondemand.com/products.
It turns out there was 1 less binding than required (products-list was bound to the xsuaa service instance but the approuter app was not)
Fixed following https://me.sap.com/notes/0002949591

@gparlakov: If you had followed the instructions in https://developers.sap.com/tutorials/cp-cf-security-xsuaa-create.html#c88961a3-cc57-49a5-b1a9-5d1de89d1350 step 6, you would have added the binding to the approuter. What we could do is add to the troubleshooting section about the HTTP 500 error message. What do you think?

Yes adding that to the troubleshooting section sounds great
On Wed, Nov 13, 2024, 5:27 PM Michael Shea @.***> wrote:

@gparlakov https://github.com/gparlakov: If you had followed the
instructions in
https://developers.sap.com/tutorials/cp-cf-security-xsuaa-create.html#c88961a3-cc57-49a5-b1a9-5d1de89d1350
step 6, you would have added the binding to the approuter. What we could do
is add to the troubleshooting section about the HTTP 500 error message.
What do you think?
—
Reply to this email directly, view it on GitHub
https://github.com/sap-tutorials/btp-foundation/issues/2148#issuecomment-2473944598,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA2SEV6STITB22KVCYBT3A32ANVVDAVCNFSM6AAAAABRNFW47CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZTHE2DINJZHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Updated the troubleshooting with error 500.


BigInt literals are not available when targeting lower than ES2020.

I am getting this error when running the code below
const tx = await lucid.newTx()
.payToAddress("addr...", { lovelace: 5000000n })
BigInt literals are not available when targeting lower than ES2020. is referring to the 5000000n value.
How do I solve this problem? Thank you.

This worked thanks a lot


Fix the favorite timeline parsing issue

Fixes #38

@tat757 見 https://github.com/LitoMore/fanfou-sdk-node/issues/38#issuecomment-497554144


OpenCv-MacOS: FATAL: Error, problem with dependency scan please report the bug.

Nuitka version
1.0rc3
Commercial: None
Python: 3.8.1 (v3.8.1:1b293b6006, Dec 18 2019, 14:08:53)
Flavor: Unknown
Executable: /Users/User2/Desktop/App-Offline-breakdown3/mainenv/bin/python3
OS: Darwin
Arch: x86_64

How did I install Nuitka and Python
Nuitka - pip install -U --force-reinstall git+https://github.com/Nuitka/Nuitka.git@develop in a virtual environment
Python -  python.org
python3 -m pip freeze
**Relevant packages**
imageio==2.19.3
importlib-metadata==4.11.4
llvmlite==0.38.0
matplotlib==3.5.2
Nuitka @ git+https://github.com/Nuitka/Nuitka.git@2dcb17e0352beb957f7ea4286b8c306a51d8b0bf
numba==0.55.1
numpy==1.21.6
opencv-contrib-python==<IP_ADDRESS>
opencv-python==<IP_ADDRESS>
ordered-set==4.1.0
Pillow==9.1.1
pyobjc==8.5
pyobjc-core==8.5
PySide6==6.3.0
PySide6-Addons==6.3.0
PySide6-Essentials==6.3.0
python-dateutil==2.8.2
requests==2.26.0
rubicon-objc==0.4.2
scikit-image==0.19.2
scipy==1.8.1
shiboken6==6.3.0
six==1.16.0

Example
"""A simple script to demonstrate the issue"""

import sys
import cv2
import numpy as np
from PIL import Image
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QApplication, QLabel, QWidget

def main():
    app = QApplication(sys.argv)
    window = QWidget()
    window.setWindowTitle("Simple")
    window.setGeometry(300, 300, 300, 300)
    label = QLabel(window)
    label.setText("Hello World!")
    label.setGeometry(0, 0, 300, 300)
    label.setAlignment(Qt.AlignCenter)
    window.show()

    im = Image.new(mode="RGB", size=(200, 200))
    im_array = np.array(im)
    im_array = cv2.cvtColor(im_array, cv2.COLOR_BGR2GRAY)
    return app.exec()

if __name__ == "__main__":
    sys.exit(main())

Nuitka call
python3 -m nuitka --onefile --macos-app-icon=icons/icon.icns --macos-app-version=1.6.0 --macos-create-app-bundle --disable-ccache --follow-imports  --enable-plugin=pyside6 --enable-plugin=numpy --assume-yes-for-download --run test.py

Logs
Nuitka-Inclusion:WARNING: Conflicting DLLs for 'libopenjp<IP_ADDRESS>.dylib' in your
Nuitka-Inclusion:WARNING: installation, newest file version used, hoping for the best.
Nuitka-Inclusion:WARNING: Ignoring non-identical DLLs for 'libopenjp<IP_ADDRESS>.dylib'.
Nuitka-Inclusion:WARNING: /Users/User2/Desktop/App-Offline-breakdown3/mainenv/lib/python3.8/site-packages/PIL/.dylibs/libopenjp<IP_ADDRESS>.dylib
Nuitka-Inclusion:WARNING: used by:
   test.dist/PIL/_imaging.so
different from
Nuitka-Inclusion:WARNING: /Users/User2/Desktop/App-Offline-breakdown3/mainenv/lib/python3.8/site-packages/cv2/.dylibs/libopenjp<IP_ADDRESS>.dylib
Nuitka-Inclusion:WARNING: used by
   test.dist/cv2/cv2.so
Nuitka-Inclusion:WARNING: Conflicting DLLs for 'liblzma.5.dylib' in your installation,
Nuitka-Inclusion:WARNING: newest file version used, hoping for the best.
Nuitka-Inclusion:WARNING: Ignoring non-identical DLLs for 'liblzma.5.dylib'.
Nuitka-Inclusion:WARNING: /Users/User2/Desktop/App-Offline-breakdown3/mainenv/lib/python3.8/site-packages/PIL/.dylibs/liblzma.5.dylib
Nuitka-Inclusion:WARNING: used by:
   test.dist/PIL/_imaging.so
different from
Nuitka-Inclusion:WARNING: /Users/User2/Desktop/App-Offline-breakdown3/mainenv/lib/python3.8/site-packages/cv2/.dylibs/liblzma.5.dylib
Nuitka-Inclusion:WARNING: used by
   test.dist/cv2/cv2.so
Nuitka-Inclusion:WARNING: Conflicting DLLs for 'libwebp.7.dylib' in your installation,
Nuitka-Inclusion:WARNING: newest file version used, hoping for the best.
Nuitka-Inclusion:WARNING: Ignoring non-identical DLLs for 'libwebp.7.dylib'.
Nuitka-Inclusion:WARNING: /Users/User2/Desktop/App-Offline-breakdown3/mainenv/lib/python3.8/site-packages/PIL/.dylibs/libwebp.7.dylib
Nuitka-Inclusion:WARNING: used by:
   test.dist/PIL/_webp.so
different from
Nuitka-Inclusion:WARNING: /Users/User2/Desktop/App-Offline-breakdown3/mainenv/lib/python3.8/site-packages/cv2/.dylibs/libwebp.7.dylib
Nuitka-Inclusion:WARNING: used by
   test.dist/cv2/cv2.so
Nuitka-Inclusion:WARNING: Conflicting DLLs for 'libwebpmux.3.dylib' in your installation,
Nuitka-Inclusion:WARNING: newest file version used, hoping for the best.
Nuitka-Inclusion:WARNING: Ignoring non-identical DLLs for 'libwebpmux.3.dylib'.
Nuitka-Inclusion:WARNING: /Users/User2/Desktop/App-Offline-breakdown3/mainenv/lib/python3.8/site-packages/PIL/.dylibs/libwebpmux.3.dylib
Nuitka-Inclusion:WARNING: used by:
   test.dist/PIL/_webp.so
different from
Nuitka-Inclusion:WARNING: /Users/User2/Desktop/App-Offline-breakdown3/mainenv/lib/python3.8/site-packages/cv2/.dylibs/libwebpmux.3.dylib
Nuitka-Inclusion:WARNING: used by
   test.dist/cv2/cv2.so
Nuitka-Inclusion:WARNING: Conflicting DLLs for 'libssl.1.1.dylib' in your installation,
Nuitka-Inclusion:WARNING: newest file version used, hoping for the best.
Nuitka-Inclusion:WARNING: Ignoring non-identical DLLs for 'libssl.1.1.dylib'.
Nuitka-Inclusion:WARNING: /Library/Frameworks/Python.framework/Versions/3.8/lib/libssl.1.1.dylib
Nuitka-Inclusion:WARNING: used by:
   test.dist/_hashlib.so
   test.dist/_ssl.so
different
Nuitka-Inclusion:WARNING: from
Nuitka-Inclusion:WARNING: /Users/User2/Desktop/App-Offline-breakdown3/mainenv/lib/python3.8/site-packages/cv2/.dylibs/libssl.1.1.dylib
Nuitka-Inclusion:WARNING: used by
   test.dist/cv2/cv2.so
Nuitka-Inclusion:WARNING: Conflicting DLLs for 'libcrypto.1.1.dylib' in your installation,
Nuitka-Inclusion:WARNING: newest file version used, hoping for the best.
Nuitka-Inclusion:WARNING: Ignoring non-identical DLLs for 'libcrypto.1.1.dylib'.
Nuitka-Inclusion:WARNING: /Library/Frameworks/Python.framework/Versions/3.8/lib/libcrypto.1.1.dylib
Nuitka-Inclusion:WARNING: used by:
   test.dist/_hashlib.so
   test.dist/_ssl.so
different
Nuitka-Inclusion:WARNING: from
Nuitka-Inclusion:WARNING: /Users/User2/Desktop/App-Offline-breakdown3/mainenv/lib/python3.8/site-packages/cv2/.dylibs/libcrypto.1.1.dylib
Nuitka-Inclusion:WARNING: used by
   test.dist/cv2/cv2.so
FATAL: Error, problem with dependency scan of 'test.dist/PIL/_imaging.so' with<EMAIL_ADDRESS>please report the bug.

Note
I noticed when cv2 is not imported or used at all, the nuitka script works just fine
So if you ran this with the same nuitka options as provided above, it compiles with no issues:
"""A simple script to demonstrate the issue"""

import sys
import numpy as np
from PIL import Image
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QApplication, QLabel, QWidget

def main():
    app = QApplication(sys.argv)
    window = QWidget()
    window.setWindowTitle("Simple")
    window.setGeometry(300, 300, 300, 300)
    label = QLabel(window)
    label.setText("Hello World!")
    label.setGeometry(0, 0, 300, 300)
    label.setAlignment(Qt.AlignCenter)
    window.show()

    im = Image.new(mode="RGB", size=(200, 200))
    im_array = np.array(im)
    return app.exec()

if __name__ == "__main__":
    sys.exit(main())

**If the --onefile option was removed, it returns the following error **
File "/Users/User2/Desktop/App-Offline-breakdown3/mainenv/lib/python3.8/site-packages/cv2/__init__.py", line 76, in bootstrap
    raise ImportError('ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.')
ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.

I tested OpenC Vsuccessfully the other day, albeit with factory branch, I think the DLL conflict resolution caused this and the merged PR to improve this, had a grave error.

cv2 still not work, please help.

I think it depends on the Python used, I am still working on the DLL resolution not working nicely with Anaconda Python, not sure how many others it affects, but this might take a while still to get right. The original reports and the me toos don't report flavors, so I cannot tell.

I think it depends on the Python used, I am still working on the DLL resolution not working nicely with Anaconda Python, not sure how many others it affects, but this might take a while still to get right. The original reports and the me toos don't report flavors, so I cannot tell.

so which way the the recommended one in MacOS?

download python.okg from python.org
brew install python( it seems that nuitka rejected the flavor of "Apple Python")
local build python from scratch
conda install python

Have you considered checking the User Manual? That's one of the things where it's relatively clear.

Have you considered checking the User Manual? That's one of the things where it's relatively clear.

I am so sorry to trouble you. maybe you are referring to:
"It has to be CPython, Anaconda Python.
You need the standard Python implementation, called “CPython”, to execute Nuitka, because it is closely tied to implementation details of it."

Using the newest version 1.0, the error message is:
FATAL: Error, problem with dependency scan of '/opt/miniconda3/envs/py37/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so' with<EMAIL_ADDRESS>please report the bug.
Just FYI.

That has been reported as a separate issue, strangely I didn't see it myself, you are invited to join #1709 of which your comment is a duplicate I guess, and provide the information I am seeking.

This has been solved, macOS 1.1.1 hotfix has a severe problem though, but this is unrelated and will be fixed in 1.1.2


Duplicated recurrence when date is end of month

Hi, first of all thank you for building this plugin - it's great.
I've found a bug, whenever I create recurring dates with monthly recurrence and the initial date is at the end of the month (30, 31) it duplicates a date.
Example:
// Create a date to start from (end of a month)
const myDate = dayjs("30/11/2022");

// Pass recurrence in months
const recurrence = myDate.recur().every(3, "months");

// Output
Feb 28, 2023 ✅
May 30, 2023 ✅
May 31, 2023 ❌

For some reason it duplicates a date every 2 months or so. Hope this helps to find a fix.

Same issue here; With leap days it's even worse.
const recurrence = dayjs().recur(dayjs(new Date('2024-02-29T12:00:00.000Z')), dayjs(new Date('2025-02-29T12:00:00.000Z'))).every(1).month();
Results in:
 2024-02-29T12:00:00.000Z, 2024-03-29T12:00:00.000Z,
  2024-03-30T12:00:00.000Z, 2024-03-31T12:00:00.000Z,
  2024-04-29T12:00:00.000Z, 2024-04-30T12:00:00.000Z,
  2024-05-29T12:00:00.000Z, 2024-05-30T12:00:00.000Z,
  2024-05-31T12:00:00.000Z, 2024-06-29T12:00:00.000Z,
  2024-06-30T12:00:00.000Z, 2024-07-29T12:00:00.000Z,
  2024-07-30T12:00:00.000Z, 2024-07-31T12:00:00.000Z,
  2024-08-29T12:00:00.000Z, 2024-08-30T12:00:00.000Z,
  2024-08-31T12:00:00.000Z, 2024-09-29T12:00:00.000Z,
  2024-09-30T12:00:00.000Z, 2024-10-29T12:00:00.000Z,
  2024-10-30T12:00:00.000Z, 2024-10-31T12:00:00.000Z,
  2024-11-29T12:00:00.000Z, 2024-11-30T12:00:00.000Z,
  2024-12-29T12:00:00.000Z, 2024-12-30T12:00:00.000Z,
  2024-12-31T12:00:00.000Z, 2025-01-29T12:00:00.000Z,
  2025-01-30T12:00:00.000Z, 2025-01-31T12:00:00.000Z,
  2025-02-28T12:00:00.000Z

Up to 3 dates per month.
Fix I implemented for now is (after calling recurrence.all() and converting every recurrence to a Date if the interval frequency is monthly):
        // if dates contains the same month multiple times in a row, we need to remove the duplicates and only keep the last one
        dates = dates.reduce((acc, date) => {
            if (acc.length === 0 || acc[acc.length - 1].getMonth() !== date.getMonth()) {
                acc.push(date);
            } else {
                acc[acc.length - 1] = date;
            }
            return acc;
        }, [] as Date[]);


Avoid StackOverflow exception if someone registers a container in its…

Noticed that when I (foolishly) registered a container with itself as an instance and then disposed it I got a StackOverflow exception as it recursively tried to dispose itself. Minimum example:
var container = new UnityContainer();
container.RegisterInstance(container);
container.Dispose(); // This throws a StackOverflow

People should not be registering a container with itself I admit, but a (difficult to trace) StackOverflow when they do is quite unfortunate! :)
I've fixed this by making each container instance remember if it's in the middle of being disposed to avoid infinite recursion.
Unit test added in what seemed like the most appropriate place.
My first (ever) PR so apologies if I've missed anything out! Not sure if there was some other suite other than the unit tests I should have run before committing - FxCop?

The build has failed but the message seems unrelated to my change. Please let me know if there's anything I need to change.

👍
We also ran into this issue, and solved it by implementing our own UnityContainer like so:
public class RPlusUnityContainer : UnityContainer
{
    private bool isDisposing = false;

    protected override void Dispose(bool disposing)
    {
        if (isDisposing) //prevents recursive calls into Dispose
            return;

        isDisposing = true;

        base.Dispose(disposing);

        isDisposing = false;
    }
}

Would be nice to have this fixed in Unity itself. :)


A fliter action for image tags is needed which is  the reversion of TagFliterAction

closed due to merged in #10


lutris cursor bug

Describe the bug
Different cursor behavior from other distros on World of Warcraft running inside lutris. In wow, the most common method of moving the camera is by holding right click, this makes the cursor disappear and makes the camera move based on mouse movement, after releasing right click the cursor should reappear where it was before right clicking. Instead, the cursor moves while invisible, even jumping to other monitors, this renders the game basically unplayable.
This does not seem to be intended as this is not the behavior observed in the flatpak or in arch linux. This odd behavior happens both in unstable and in stable-24.05.
Steps To Reproduce
Steps to reproduce the behavior:

install battle.net with lutris
install World of Warcraft
open World of Warcraft
move camera with right click

Expected behavior
Cursor should stay locked where the player right clicked
Additional context
This bug has been discussed in this thread on reddit
I have not tested but I think this problem could also affect others games that use this control scheme like final fantasy XIV
Notify maintainers

@Madouura
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
- system: `"x86_64-linux"`
 - host os: `Linux 6.6.32, NixOS, 24.11 (Vicuña), 24.11.20240612.57d6973`
 - multi-user?: `yes`
 - sandbox: `relaxed`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/dydg48djlykksz8cxq0xjplyxpa9pvf4-source`

Add a :+1: reaction to issues you find important.

as far as i understand its a problem with lutris runtime specifically. They missing some libraries or not symlinking them correctly for nix. Apparently the problem is with libjansson from their runtime

This issue was caused by an incomplete xorg inside the Lutris FHS. A fix for this was merged earlier this year and everything is working as expected right now using the latest versions.

I am not using NixOs currently so I can't confirm if it's working for me.

The fix was verified by me as well as two additional developers: https://github.com/NixOS/nixpkgs/pull/348533


Use "cat.slug" as a key for each element in categories list

This fixes duplicate key error in single category component [issue #5]
The single category component lists all the categories in the sidebar. The used key for the v-for cicle, though, was the entire category object which is wrong. Replacing that with the category.slug value, which should be unique, fixes the error.

thanks catching this @hawz !


Keyboard shortcut to copy plots to clipboard

Pulled from #11781
I am often coping and pasting charts as I go. Having a command and/or UI button which copies to the clipboard would be great but not required.
cc @Yura52, @earthastronaut

Hi there! Please can you go into more detail into what you mean by "charts" with respect to VSCode

Happy to! The "chart" is the visualization of the data (the result from matplotlib) which appears in the "Python Interactive" tab when a cell is executed. Here's a screenshot, the "chart" is highlighted on the right. The feature request is adding an additional way to export this chart using copy and paste.


docs: Document /streams API endpoint.

Minor modifications to the work by @briantenazas in #4980.
Thanks for the great work!

Merged, thanks @YagoGG!


Update npm packages

Update npm packages

Fix (some) vulnerabilities reported by npm audit
This was done automatically, using the npm audit fix command.

/botio test

I wonder if the Windows bot just needs a reboot, or if it's perhaps out of storage space?

/botio-windows test

@brendandahl @yurydelendik Could one of you kick the Windows bot?

/botio-linux preview

Looks good! I'll open a separate issue for the Windows bot.


General Data Protection Regulation (GDPR)

GDPR is to protect and empower all EU citizens data privacy and to reshape the way organizations across the region approach data privacy.
Expected Behavior
As the summary says. The GDPR is for EU citizens, yet it will affect ALL instances in the world that use data of people. My question, is Franz GDPR compliant?
I've just updated Franz to the beta and noticed that I had to create an account. There is user data.. Do you keep the data for other instances like Slack or HipChat for example? Or is that just a pipe to the real app? Cuz in may 2018 there'll be new rules. GDPR site

Thanks for bringing this up.
Right now Franz is not fully GDPR compliant but we are working on it to get there.
We only store a very limited amount of personal, and identifiable, data (name, email & organization) while what you do with the services stays untouched as we just display the services web app – we have no intend and interest in getting more out of it.


Method of a casted object not parsed

Hi!
I was trying to use your parse to parse some Java code, but I noticed a problem in the parser.
Here's a sample piece of code:
	public void setTest(final Valvel valve) {
		((Valvel)valve).stop();
	}

If you parse this code with the library, it will not recognize the stop method invocation. In fact anything after the Cast seems to be ignored, including any arguments passed to the stop method.
Here's an output of the tree:
BODY: [StatementExpression]
CPATH: () CNODE: StatementExpression
Children: [None, Cast]
CPATH: (StatementExpression,) CNODE: Cast
Children: [ReferenceType, MemberReference]
CPATH: (StatementExpression, Cast) CNODE: ReferenceType
Children: [u'Valvel', [], None, None]
CPATH: (StatementExpression, Cast) CNODE: MemberReference
Children: [None, None, '', [], u'valve']

Do you know why this happens?
Thank you

I think there is an issue with the attributes exposed by the Cast tree node, but I can find the method invocation within the selectors attribute of the expression,
>>> s = 'class Foo { public void setTest(final Valvel valve) {((Valvel)valve).stop(); }}'
>>> cu = javalang.parse.parse(s)
>>> cu.types[0].methods[0].body[0].expression.selectors[0]
MethodInvocation

I didn't knew about the selectors trick :) I was able to fix my code with your suggestion.
Thank you!


Improve build times for frontend assets season

Duck season

Failed Test
Failure Summary
Logs

[chromium] should show the FAQ page correctly.

Logs ↗

Test$1GatewayTimeout

Logs ↗

Flaky Test
Failure Summary
Logs

---
---
---

[chromium] should return list of users correctly.

Logs ↗

[chromium] should display error message for invalid login correctly.

Logs ↗

[chromium] should login with credentials correctly correctly.

Logs ↗

Test$1RateLimitExceeded

Logs ↗

... and 1 more

View Full Report ↗ ⋅ Docs


Lint script

Added npm script to lint
Added npm script to fix lint
Updated npm test to call the newly created npm script
Bumped eslint to 4.0.0 since previous version was not catching lint.  Once merged there will be lint unless https://github.com/Microsoft/opensource-portal/pull/54 is merged first.

Sorry about all the PRs!

@timothystewart6,
Thanks for having already signed the Contribution License Agreement. Your agreement has not been validated yet. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Sweet, thank you!

No problem!  Thanks for looking this over and accepting it!


Use 2.2 on travis

PR to have travis build against ruby 2.2.
If we have any issues we can fix them here and merge to master.
See #781

closed by 3875ad2


Add copy method for Tables

Is your feature request related to a problem?
The Table and TaggedTable classes should have a dedicated (private) _copy() (or __copy__()) method.
This method is helpful for tests (e.g. when we want to verify that a method does not change the original table).
Also, a manual copy mechanism is currently implemented in several places. All of these occurrences should be found and be replaced by the new _copy() method.
These methods will not be intended for use by the end user.
One can consider also adding a copy method to the Row and Column classes.
Desired solution
Implement _copy() or __copy__() for Table and TaggedTable. Find occurrences of manual copying and replace to use the new method.
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response

Regarding the name: I'd vote for _copy.

used a copy dummy in table#remove_row and table#remove_rows

:tada: This issue has been resolved in version 0.15.0 :tada:
The release is available on:

v0.15.0
GitHub release

Your semantic-release bot :package::rocket:


media player example code

I have pulled from master a couple of hours ago to run the media player example in its own virtual environment, and am getting an error which I would not get when loading the same media files in my pip installed version of pyglet:
pyglet.media.codecs.wave.WAVEDecodeException: file does not start with RIFF id
That is, when using my pip installed pyglet version 1.5.21 I am able to pyglet.media.load the same mp4 files without encountering this issue. Just wondering if this is any kind of minor regression.
My version of python: 3.9.5.
Notwithstanding, the Asteroid code example runs just fine and I could destroy many cookies there :-)
Thanks for the great library and perhaps you may have some idea about this.

Thanks for opening the ticket. There were some changes in this area recently, so maybe some bugs crept in. I'll have a look at this soon.

Thanks a lot and BTW, what are the benefits of using the library (say, the player module or in general) by way of sub-classing its classes? I have seen this a lot but am using the library myself for graphics, and separately also the player module, by instantiating its objects rather than sub-classing them. Anyway, thanks for having a look at that!

Somehting broke really bad in alpha 3. I have sound crashes in unit tests etc. Need to look more into it.

Could you see how it goes now?
If you still have issues, could you post the name of the file you're trying to load?
In answer to your other question, it's really just a matter of preference. If you just want to override one method on a class, then subclassing can be an quick way to do that. I personally prefer to do composition over subclassing most of the time, but there really is no "right" answer. When in comes to Python in particular, you have a lot of freedom with things.

Thanks, I wasn't sure of particular ways that the media module has been designed specifically towards specific benefits.
As to running the player, I am now getting a different crash. Tried it with two random videos I have downloaded using the youtube-dl tool (mp4 files in both cases).
This is the output I am getting:
FFmpeg Loaded Versions: {'avcodec': 59, 'avformat': 59, 'avutil': 57, 'swresample': 4, 'swscale': 6}
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
It's an Ubuntu 20.04 machine.
I can safely use the pip provided version of pyglet for media playing (although, the image frames sync to the video is broken in most cases other than the first 15 first seconds of the video or so, so I use pyglet's media player only for audio).

@matanster Can you test the latest master branch, so we can continue on this issue? Thanks

Pulled and ran again now. Different distortions in both image stream and audio now. I somewhat doubt this can be really tested and iterated without direct developer access to the target OS. I tried with two random videos again, both of which downloaded from YouTube with youtube-dl.

But actually, with a third video, downloaded using youtube-dl with the same default parameters, it works just fine! I guess mileage may vary depending on the encoding details of the media, so maybe a test suite of sample videos (possibly re-encoded in multiple demonstrative ways) might help to narrow down the breadth of support.

It's probably an issue with the container type, or the combination of container/codecs.
Do you have ffprobe available? It usually comes with FFmpeg.
ffprobe <video>

If you can check the three videos, it would be useful to know the

container type (mkv, mp3, webm, etc.)
video & audio codecs

Also could you paste in your output with a paste in, with the debug media pyglet option enabled, mentioned in my previous post.

Till I cycle back to it, here is a listing of links to possibly free to use videos for testing, which I bumped into today ...
https://gist.github.com/jsturgis/3b19447b304616f18657
It could be more widely useful than troubleshooting for a particular video downloaded with a particular tool on a particular machine, which well describes my case. I haven't fully verified the terms of use of each and every video there myself yet. I'd vote for closing this issue per-se, leaving it to be re-opened if other folks run into similar trouble.

I went through over half of the videos and they all play without issue on my system.
Can you go through and tell me which of those videos give you issues? We alos will need the pastebin of the debug messages you are getting when the playback starts having issues by enabling pyglet.options["debug_media"] = True at the top of your test script.

Closing as unresponsive.


regEx doesnt run on type: Number

Just noticed that the validation doesn't run at all on type: Number but does for type: String this is useful for e-commerce validation

Regular expressions are for string validation, so this wouldn't be possible unless you convert your number to a string first.


Plutarch Natural (basic sketch)

This is the starting point for implementing numerical stuff on top of Plutarch.
I'm not sure if we need to import the plutus-numeric modules to implement numeric classes such as AdditiveHemigroup, IntegralDomain etc.

We definitely don't want to depend on plutus-numeric.

Do we want a plutarch-extra now @kozross or what do you think?

We could, but I'd rather fractionate into multiple separate libraries, rather than a megarepo with sublibraries.

#139

This stuff will be combined with the new Numeric library


Support rds for postgres

Add support for remote databases using updated resources in https://github.com/opscode-cookbooks/enterprise-chef-common/pull/35
https://github.com/chef/supermarket/issues/1053

LGTM

Will need changes based on the changes that get pulled into enterprise-chef-common. Waiting to hear about the resources pg_user and pg_database

Uploaded a 0.6.0 of enterprise. An update to the Berksfile, a berks update enterprise, and committing the changed Berksfile and Berksfile.lock will be needed.

@smith updates to berksfile and .lock are in place and the pg_user and pg_database resources have been updated to include the connection info if postgresql is not enabled.

:+1:


Installing packages into a kernel doesn't update Pylance

Open a python file
Pick an interpreter for the file
Create a notebook
Pick a kernel that matches the interpreter
Import something not already in the interpreter
See that an error shows up
Install that package
See that the error goes away
Pick another kernel that isn't the global interpreter (I used a global conda env)
Import something not in the interpreter
See that an error shows up
Install that package

Expected result:
Error disappears
Actual result:
Error stays there.
I can get the error to go away if I switch the kernel back and forth. I'm guessing we're not watching files in custom interpreters we get back for jupyter notebooks.

Doesn't seem to be a regression. I can reproduce this with 2023.4.1


Equations displaying incorretly

https://en.wikipedia.org/wiki/Inverse_trigonometric_functions Contains apparently unknown macros. Is this a mathjax issue or again some wikipedia idiosyncrasy?

Thanks, for reporting. New release was just pushed to the Chrome Store.
Well, that is neither MathJax nor Wikipedia issue this time. These macros are not very standard even in LaTeX.
The new version of extension adopted official Wikimedia MathJax config, the same that you can enable in your Wikipedia account. So it is more in sync now with Wikipedia bugs :)


Possible to register with a different hostname and port ?

I see that there's a hostinfo property in ConsulDiscoveryProperties but it doesn't seem it can be overridden, findFirstNonLoopbackHostInfo method in InetUtils also seems to support the first non-loopback over the default properties at InetUtils level? Is there a way where I can configure Spring Cloud Consul to register under a different hostname (that's perhaps fed to it thru some JVM property or whatever), than it trying to find the first non-loopback port?

something like eureka.instance.hostname property in case eureka registry is used!?

@gt-tech The following properties work for me:
spring.cloud.consul.discovery.hostname=myhost
spring.cloud.consul.discovery.ipAddress=<IP_ADDRESS>

They override the values set by the hostInfo. Test here a6803340c2ac33cbcd08f388f2eda859b7e7fea8.
Are you having an actual problem?

@spencergibb I perhaps over-sighted this in the document so didn't know the property name, these properties work fine, it took me a bit to track them into ConsulDiscoveryProperties class ... thanks for the tip!


Enterprise Bot.cs constructor and OnTurnAsync always fired twice on start

When creating an enterprise bot project, Bot.cs constructor and OnTurnAsync always gets fired twice on run. To replicate this, create an enterprise bot project and have this configured to run. Run locally for debugging, and you will notice this.
I cannot find on the internet how to deal with this, and is a constant issue for me when doing enterprise bots

Please refer to https://github.com/microsoft/botframework-solutions/tree/master/docs for latest docs on Virtual Assistant/Enterprise Bots.


Removing points from run

Weights and Biases version: wandb, version 0.8.22
Python version: Python 3.7.6
Operating System: Linux

Description
How can I manually remove some points from the run?
What I Did
In documentaion said, that I can modify run.history, but, as far as I know, history does not attribute, it's a method, so I can't set a new value to it.

Hi Egor, we don't really support updating run data after it's been logged, as this might affect reproducibility. Could you tell us a little more about your use case for updating run data after the experiment has finished?

I'm training nn and it failed, for example, at step 150, but I have a checkpoint for step 100. So, I want to resume training in the existing run, but in this case, my graphics will be scattered, which I don't want. Because of it, I'm wondering, how I can remove some points to continue working in same run instead of creating new.

The best thing for now might be to create a whole new run. You can download the data from the previous run using our data API, and replay it, before logging new data. The timestamps will be wrong but the chart will be correct with step as the x-axis. https://docs.wandb.com/library/api

Okay, I got it.
Thanks!

Hey, was this functionality added since? Culling a window of logs feels like useful functionality to us as well and we also have a usecase where we would use this post model collapse to resume from a past iteration checkpoint. Thanks

I also have a use case for this. In population-based training you sometimes want to kill unsuccessful models in the population and restart them from an older checkpoint with a different set of hyperparameters. Sometimes you need to do it multiple times trying multiple sets of parameters. As a result, WandB logs become a mess with different attempts writing over each other.
Deleting all metrics in a specified [x1, x2] window would've been very useful!

I train models with thousands targets. I understand that I can filter loss and errors Wandb Charts for specific targets. However, the project/run dashboards are frozen when I open the  web pages. I train models via Pytorch Tabular. So I can't setup the logger for specific metrics. An ability to delete specific metrics via Wandb Python API would be much appreciated.


Implement prompting interface for Develop prompting Interface issue

The code defines an API endpoint using FastAPI to handle prompts and forward them to designated LLM services based on a predefined registry. It validates incoming requests, retrieves the appropriate service URL, and sends the prompt to the corresponding service via an HTTP POST request. The response from the LLM service is returned to the client. The implementation also includes error handling for scenarios such as missing services, HTTP request issues, and unexpected errors.

https://github.com/gflachs/GreenPrompt_Prompting_Service/issues/4


Remove/optimize overhead

This will disable any PID's that aren't supported by the vehicle and that throws exceptions.

thanks,  would you mind reformatting with 2 space indents instead of 4 so that it is easier to see the changes

Done

thanks but i think something might have gone wrong since i still seems to be indented by 4 spaces (and the new commit 5ae30d0c2 only has one small change)?

I think it might be android studio that forces it 4 indents. Also the file was cleaned and reorganised.  Main part that was changed is at the  support check, just search for .apply () or .commit ()

you can change the indentation settings (for the project or in general) in android studio and tell it to reformat, that should do it. makes it so much easier to review and keep track of changes .   there has been some discussion before about reformatting the project to use 4 spaces but don't think we settled that :)

Okay I have tried everything now. Changed android studio to 2 lines, selected 2 indents straight in github as well.

Think 4 is the best to use. Reason being that all ide's do that, or suggest that. Even github understands code with 4 indents and even stackoverflow

@Pho3niX90 I'm requesting the change to 4 spaces indentation a long time ago :P.

Yeah, I will change that no later than monday. @Pho3niX90 would you be so kind and wait until I've done it to reopen the PR?

@pires Yes sure I will wait

Can you redo de PR with newest formatting?

@Pho3niX90 can you create a new PR with latest formatting style?


Docker build hangs at "Installing dependencies from Pipfile.lock (019fbf)"

My build just hangs here all the time.
xxx@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

xxxx@raspberrypi:~/tuya-cloudcutter $ sudo docker build --network=host -t cloudcutter .
[+] Building 131.1s (9/12)                                                                                docker:default
 => [internal] load .dockerignore                                                                                0.2s
 => => transferring context: 2B                                                                                0.0s
 => [internal] load build definition from Dockerfile                                                                                0.2s
 => => transferring dockerfile: 462B                                                                                0.0s
 => [internal] load metadata for docker.io/library/python:3.9.18-slim-bullseye                                                                             3.8s
 => [base 1/2] FROM docker.io/library/python:3.9.18-slim-bullseye@sha256:9874a82704a8920109d161deb1f8560666945787fa9ee046e00caf5505ae04f1                 16.5s
 => => resolve docker.io/library/python:3.9.18-slim-bullseye@sha256:9874a82704a8920109d161deb1f8560666945787fa9ee046e00caf5505ae04f1                       0.1s
 => => sha256:9874a82704a8920109d161deb1f8560666945787fa9ee046e00caf5505ae04f1 1.86kB / 1.86kB                                                             0.0s
 => => sha256:5c341207bb00b5bcef01cd71e52a2b1741fd811ce36f966dc3931f7d492ea655 1.37kB / 1.37kB                                                             0.0s
 => => sha256:dba4c9065a53d8cf3c80f5679e5eccc134eb6694e02df6030deabd3fa37b44bd 6.91kB / 6.91kB                                                             0.0s
 => => sha256:6dc4ed5513793308b8e30b08e03f97fa54025c3d3f3172c6edccb1dbbc7ff139 26.58MB / 26.58MB                                                           7.5s
 => => sha256:41fb338b21e7a0e0e5a6b6c648c9329d491cce47f9628c490a41bed4006e9f29 10.38MB / 10.38MB                                                           4.0s
 => => sha256:77bbb4df0219ace7c34407004596f50c37aa4245fbf341b00147a6ddbd4e4417 837.53kB / 837.53kB                                                         0.8s
 => => sha256:a74f2f4eedf621478d8467803e04ad5458b9658c979a4933fa0ed2bc6fa73c42 233B / 233B                                                                 1.1s
 => => sha256:c6e9687277c346128a7b34f9f41e1872219768a06feb9a876619d700e17a9547 2.93MB / 2.93MB                                                             2.6s
 => => extracting sha256:6dc4ed5513793308b8e30b08e03f97fa54025c3d3f3172c6edccb1dbbc7ff139                                                                  4.9s
 => => extracting sha256:77bbb4df0219ace7c34407004596f50c37aa4245fbf341b00147a6ddbd4e4417                                                                  0.3s
 => => extracting sha256:41fb338b21e7a0e0e5a6b6c648c9329d491cce47f9628c490a41bed4006e9f29                                                                  1.7s
 => => extracting sha256:a74f2f4eedf621478d8467803e04ad5458b9658c979a4933fa0ed2bc6fa73c42                                                                  0.0s
 => => extracting sha256:c6e9687277c346128a7b34f9f41e1872219768a06feb9a876619d700e17a9547                                                                  0.9s
 => [internal] load build context                                                                                0.2s
 => => transferring context: 855.04kB                                                                                0.1s
 => [base 2/2] RUN apt-get -qq update && apt-get install -qy --no-install-recommends git hostapd rfkill dnsmasq build-essential libssl-dev iproute2 mosq  66.9s
 => [python-deps 1/4] RUN pip install --upgrade pipenv                                                                                24.8s
 => [python-deps 2/4] COPY src/Pipfile /src/                                                                                0.2s
 => [python-deps 3/4] COPY src/Pipfile.lock /src/                                                                                0.2s
 => [python-deps 4/4] RUN cd /src && PIPENV_VENV_IN_PROJECT=1 pipenv install --deploy                                                                     18.4s
 => => #   seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
 => => #     added seed packages: pip==23.3.1, setuptools==69.0.2, wheel==0.42.0
 => => #   activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
 => => # ✔ Successfully created virtual environment!
 => => # Virtualenv location: /src/.venv
 => => # Installing dependencies from Pipfile.lock (019fbf)...

over 10mins so far
[+] Building 614.1s (9/12)

All good - just didn't wait long enough. Working now... Well, not working but I'll raise a seperate issue.

Ill have similar issue, been waiting over 30min and still going.

Ill have similar issue, been waiting over 30min and still going.

It just takes time, depending on the platform. It's about 15 minutes on an RPi4, I've heard 30-45 minutes on older RPis. I've looked into changing the dependency validator, including poetry and pdm, but nothing made a significant difference.

Thanks for reply. Took over 4000 seconds (1hour) with raspberry pi 3b to get over "Installing dependencies from Pipfile.lock (019fbf)..."
But now itse working. 😁

Found the dependency issue on an upstream tool and got it fixed, build times should be considerably shorter now.
On a RPi4, it went from about 15 minutes to about 3 minutes for a full clean docker build.


Reducing RAM usage - split package size into erase page size and write page size

Ekv works great but with 4096 page size it does allocate 8kB of RAM on the stack with can be pretty huge on a 96kb RAM chip.
My flash does have 4096 erase page size but the write can be done in 256 pages (with any offset), maybe splinting up page size into two settings could make it use a 2x256 buffer size?
Or maybe ekv could use free flash sectors as a buffer?

#7 does this. You can now set max-chunk-size low, to reduce the buffer memory requirements.


Update install-undercloud.rst

Install yum-utils prior running the instack-setup-host script.

Re-proposed through Gerrit here: https://review.gerrithub.io/#/c/221399/


Added folder for kubernetes helm with docker compose. Include docker-…

I have created this PR to include a docker-compose configuration for when running Kubernetes and Helm inside docker. This will make it easier for those who are not only using a dockerfile configuration as all the mounts are now done inside the docker-compose. I have also included a post create command that runs the existing test file so it demonstrates successful configuration at the end.

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

Thanks for the contribution!  A couple of things that would be great if you could do:

The way this repository works is that all the contents for the dev container should be in the .devcontainer folder.  This appears to depend on docker-compose.yml a level up which the person using the definition may already have on disk and we wouldn't want to overwrite.
Could you link to the best way to contact you from the README.md under contributor in case there are questions for you?

@Chuxel thanks for reviewing this. I have made the updates as you suggested!

Accidental close

Thanks again for opening this and for the discussion so far.
As a heads up, our team has been actively focused on an updated plan for community contributions and this repo moving forward, which we've now outlined in this issue: https://github.com/microsoft/vscode-dev-containers/issues/1589. This includes moving to a couple new repos for images (https://github.com/devcontainers/images) and Features (https://github.com/devcontainers/features).
We anticipate to have a similar repo and distribution process for templates/definitions. We'll keep everyone updated (likely via another issue in this repo or comment on https://github.com/microsoft/vscode-dev-containers/issues/1589) when our new templates repo is available and the process is defined.
Please let me know if you have any questions, thank you!


[Flexbox Mode] ISSUE NAME HERE

Expected Behavior

...
Current Behavior

link to https://download.get.foundation/sites/download doesn't work. Show the 502 Bad Gateway
nginx
...
Possible Solution

...
Test Case and/or Steps to Reproduce (for bugs)

Test Case:

How to reproduce:
1.
2.
3.
Context

...
Your Environment

Foundation version(s) used:
Browser(s) name and version(s):
Device, Operating System and version:
Link to your project:

Checklist

[ ] I have read and follow the CONTRIBUTING.md document.
[ ] This is a bug report or a feature request.
[ ] There are no other issues similar to this one.
[ ] The issue title and template are correctly filled.

Closing as duplicate of https://github.com/foundation/foundation-sites/issues/12189
Please set a relevant title next time.

Closing as duplicate of https://github.com/foundation/foundation-sites/issues/12189
Please set a relevant title next time.


Failed to initialize transition frontier

Coda crashes with error failed to initialize transition frontier: Current global slot 1003 greater than transaction expiry slot 912
Report:
2020-09-21 06:25:10 UTC [Info] starting refreshing cpl 0 with key CIQAABUKWUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA (routing table size was 0)
2020-09-21 06:25:10 UTC [Info] failed when refreshing routing table
2020-09-21 06:25:13 UTC [Fatal] Unhandled top-level exception: $exn
Generating crash report
        exn: "(monitor.ml.Error\n  (Failure\n    \"failed to initialize transition frontier: Current global slot 1003 greater than transaction expiry slot 912\")\n  (\"Raised at file \\\"stdlib.ml\\\", line 33, characters 17-33\"\n    \"Called from file \\\"src/deferred1.ml\\\", line 17, characters 40-45\"\n    \"Called from file \\\"src/job_queue.ml\\\" (inlined), line 131, characters 2-5\"\n    \"Called from file \\\"src/job_queue.ml\\\", line 171, characters 6-47\"\n    \"Caught by monitor coda\"))"
2020-09-21 06:25:13 UTC [Fatal] Exception when generating crash report: "(Rocks__Rocks_common.OperationOnInvalidObject)"

  ☠  Coda Daemon crashed.
   The Coda Protocol developers would like to know why!

    Please:
      Open an issue:
        <https://github.com/CodaProtocol/coda/issues/new>

      Briefly describe what you were doing and include the last 20 lines from .coda-config/coda.log and then paste the following:
Summary:
{"num_accounts":null,"blockchain_length":null,"highest_block_length_received":1,"uptime_secs":139,"ledger_merkle_root":null,"state_hash":null,"chain_id":"b90b8b744074d8cc9d864925b58d1f882b1c2e89a46245be3e0a969d39de43a0","commit_id":"4395e9162b55323e76141c174ed585a0bf8cce81","conf_dir":"/root/.coda-config","peers":["<IP_ADDRESS>:10001"],"user_commands_sent":0,"snark_worker":null,"snark_work_fee":25000000,"sync_status":"Bootstrap","block_production_keys":["B62qjwgPyUXbAgvjUF19vTNncDC8SpagUCvDdRKYs1RC2kKfVcfv2qH"],"histograms":{"rpc_timings":{"get_staged_ledger_aux":{"dispatch":null,"impl":null},"answer_sync_ledger_query":{"dispatch":null,"impl":null},"get_ancestry":{"dispatch":null,"impl":null},"get_transition_chain_proof":{"dispatch":null,"impl":null},"get_transition_chain":{"dispatch":null,"impl":null}},"external_transition_latency":null,"accepted_transition_local_latency":null,"accepted_transition_remote_latency":null,"snark_worker_transition_time":null,"snark_worker_merge_time":null},"consensus_time_best_tip":null,"next_block_production":null,"consensus_time_now":{"slot_number":"1168","slots_per_epoch":"480"},"consensus_mechanism":"proof_of_stake","consensus_configuration":{"delta":3,"k":20,"c":8,"c_times_k":160,"slots_per_epoch":480,"slot_duration":180000,"epoch_duration":86400000,"genesis_state_timestamp":"1600459220000","acceptable_network_delay":540000},"addrs_and_ports":{"external_ip":"<IP_ADDRESS>","bind_ip":"<IP_ADDRESS>","peer":{"host":"<IP_ADDRESS>","libp2p_port":8302,"peer_id":"12D3KooWQzYN4ycY8mcmW39GY5HmZDs9HKUBwzJBUZo9LvmKcwTi"},"libp2p_port":8302,"client_port":8301}}
Status:
{"OS_type":"Unix","Release":"5.3.0-26-generic","Machine":"x86_64","Sys_name":"Linux","Exception":"(monitor.ml.Error\n  (Failure\n    \"failed to initialize transition frontier: Current global slot 1003 greater than transaction expiry slot 912\")\n  (\"Raised at file \\\"stdlib.ml\\\", line 33, characters 17-33\"\n    \"Called from file \\\"src/deferred1.ml\\\", line 17, characters 40-45\"\n    \"Called from file \\\"src/job_queue.ml\\\" (inlined), line 131, characters 2-5\"\n    \"Called from file \\\"src/job_queue.ml\\\", line 171, characters 6-47\"\n    \"Caught by monitor coda\"))","Coda_branch":"master","Coda_commit":"4395e9162b55323e76141c174ed585a0bf8cce81"}

This is fixed on develop. Basically, we were using epoch-slot in one place and global slot in another causing expired transactions to be included in a block.


Temporary fix to the connection loss

This is a very hacky solution to the connection loss that we've been having. It is indeed a network card issue, and not a server issue.  After running Wireshark on the Ethernet interface, the time of the packet before it times out exceeds 1s. This is caused by multiple packets being sent at the same time and them getting resolved one by one. A proper solution would be moving away from socket.SOCKET, and to something that has proper packet queuing.
Will attach some screenshots from Wireshark on Monday

In theory it could happen, but the hardware limitations would need to be extreme in order for that to happen(z.B. very old computer / ethernet card, etc.)


Can't make it work on my app

Hi Oscar,
I followed the instructions, installed deps and placed the blueprints directory into my api directory. However, I tried a route to populate and filter a model, and it's not working. Is there anything else to be done to get this configured and working in my current project?
Thanks,
Mariano.

Hello Mariano
I'm afraid I haven't had time to maintain this project lately. It isn't working with the latest version of sails at the moment.
Keep an eye out over summer, I should have time to get some development done.
Ian
 On Sunday, 17 May 2015, 17:12, Mariano Eloy Fernandez<EMAIL_ADDRESS>wrote:

Hi Oscar,I followed the instructions, installed deps and placed the blueprints directory into my api directory. However, I tried a route to populate and filter a model, and it's not working. Is there anything else to be done to get this configured and working in my current project?Thanks,Mariano.—
Reply to this email directly or view it on GitHub.


What's the plan for a new tagged release (0.5.4/0.6/1.0)?

It's been a long time since 0.5.3 (which is what I'm using in production), and there are a few things piling up in the master branch that I'd like to use. Is there a plan for a new release anytime soon? I can't find anything about a roadmap anywhere?
Or are most people just running the master branch in production anyway?
(edit: I hope that doesn't sound ungrateful - just excited to use the latest and greatest!)

Wondering about this too

@jashkenas mentioned his plans to version the next Backbone version here: https://github.com/documentcloud/backbone/pull/567#issuecomment-3533944

Hoping to tag and push it out as a 0.9.0 release this week. I just want to upgrade DocumentCloud.org first on production, to ensure that there's no unexpected wrinkles.


Loop and Delivery integration with dispatcher framework

This PR adds support for loop and delivery tasks within the dispatcher framework.
Can be tested with feature/task_planner_params branch of rmf_demos.
To test:
Launch office world.
Publish bid notice for Loop:
ros2 topic pub  /rmf_task/bid_notice rmf_task_msgs/BidNotice "{task_profile: {task_id: '1',task_type: {type: 1}, loop: {start_name: 'coe', finish_name: 'pantry', num_loops: 2} }}" --once

Award bid
ros2 topic pub  /rmf_task/dispatch_request rmf_task_msgs/DispatchRequest "{fleet_name: "tinyRobot", method: 1, task_profile: {task_id: '1', task_type: {type: 1} }}" --once

Publish bid notice for Delivery:
ros2 topic pub  /rmf_task/bid_notice rmf_task_msgs/BidNotice "{task_profile: {task_id: '2',task_type: {type: 2}, delivery: {pickup_place_name: 'pantry', pickup_dispenser: 'coke_dispenser', dropoff_place_name: 'hardware_2', dropoff_ingestor: 'coke_ingestor'} }}" --once

Award bid:
ros2 topic pub  /rmf_task/dispatch_request rmf_task_msgs/DispatchRequest "{fleet_name: "tinyRobot", method: 1, task_profile: {task_id: '2', task_type: {type: 2} }}" --once

Works well ! similarly can run with the developing dispatcher node with this container:
docker run -it --network host tanyouliang95/rmf_core:dispatcher-test bash -c "export ROS_DOMAIN_ID=0; ros2 launch test_launch dispatcher.launch.xml;"

Initiate Delivery and Loop Task
# Loop Task
ros2 service call /submit_task rmf_task_msgs/SubmitTask "{task_type:{type: 1}, loop: {start_name: 'coe', finish_name: 'pantry', num_loops: 2}  }"
# Delivery Task
ros2 service call /submit_task rmf_task_msgs/SubmitTask "{task_type:{type: 2}, delivery: {pickup_place_name: 'pantry', pickup_dispenser: 'coke_dispenser', dropoff_place_name: 'hardware_2', dropoff_ingestor: 'coke_ingestor'} }"


Failed to run Tensorflow MNIST tutorial on localhost

Hello, I have been trying to run the Tensorflow_MNIST tutorial (Director-Based Workflow) and failed on the last step of execution. The output of the individual actors is too big, so I instead attach files of director, envoy and jupyter notebook. Thank you in advance for your help.
local_director.txt
local_envoy.txt
Federated Tensorflow MNIST Tutorial.pdf

Using Ubuntu instead of Windows 11 helped to resolve the issue.


nolint comments not considered when using wrapped analyzer

Hi there,
I tried making use of the nolint.Wrap function on analyzers but the nolint comments seem ignored.
Here is a reproducer https://github.com/rjarry/nolint-issue
Maybe I am using this wrong. Any help would be much appreciated 👍

It works with //nolint comment but not with //nolint:errcheck. It seems like something to do with not detecting the linter category properly.

I was able to get this to work with two changes

Update to latest errcheck
Change //nolint:errcheck to // nolint:errcheck (with a space between // and no lint)

The second part is problematic because golang-ci lint uses has a nolintlint that enforces //nolint without the space


[Pipeline filtering] Check rerun should skip the analysis from requested pipelines

When doing a check rerun, we just get the information of the pull request, no actual builds, and we grave the builds to start analyzing them and generate the build analysis, for this scenario we need to through all the builds and decides which ones are getting processed, and process them, and is the rerun the process is slightly different so let's do it in a different issue.

Release Note Category

[ ] Feature changes/additions
[ ] Bug fixes
[ ] Internal Infrastructure Improvements

Release Note Description
No release note needed.

rolled out, closing, I validate on staging and for a prod validation we need to move forward with the project, closing and reoponing if is needed


support for Gradle incremental builds

Not sure if im missing something or not, but my JS project is a subproject of a much larger system.  there are 5 other projects in the same gradle build.
The problem is incrementals.  gulp_build  is a task in the gradlew build pipeline so it executes every time you do a task. like running the unit tests.  The problem is that task takes about 20 seconds and it recompiles the JS whether anything changed or not.
what does it take to get that task to recognize the gradle incremental build system and skip if nothing in the JS changed?
https://blog.gradle.org/introducing-incremental-build-support

@scphantm you can use Gradle's AdHoc task with inputs/outputs set. I use yarn run to run Webpack scripts in my package.json as:
task buildVendor(type: YarnTask, group: 'build') {
  dependsOn updateDependencies
  inputs.files('src/main/webapp/root/src/vendor.js')
  outputs.files('src/main/webapp/root/dist/vendor.js')

  args = ['run', 'build-vendor']
  execOverrides {
    it.workingDir = 'src/main/webapp'
  }
}

During the build I get:
:my-app:buildVendor UP-TO-DATE
My package.json uses Workspaces (https://yarnpkg.com/en/docs/workspaces) but that's irrelevant:
{
  "private": true,
  "workspaces": [
    "root"
  ],
  "scripts": {
    "build-root": "webpack --config root/webpack/webpack.config.js",
    "build-vendor": "webpack --config root/webpack/webpack.vendor.config.js"
  }
}


Document nested functions

I had to read the code to figure them out.

Sorry for requiring code reading. We also still need to support nested types in joins and aggregations, but coming.

Think it is pretty complete now.  I also found issue #1560.

@hannesmuehleisen don't apologise!  I do think new features should include documentation changes as part of the commit.


0.32.9

Codecov Report

Merging #490 (0618cb0) into master (aa09c50) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master     #490      +/-   ##
==========================================
- Coverage   93.02%   93.01%   -0.01%
==========================================
  Files          94       94
  Lines       18348    18352       +4
==========================================
+ Hits        17068    17070       +2
- Misses       1280     1282       +2

Impacted Files
Coverage Δ

src/lib/installer/rustup_component_installer.rs
70.88% <50.00%> (-1.12%)
:arrow_down:

Continue to review full report at Codecov.

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


Fix NASNet CIFAR and add Regularization

Fixes the NASNet model builder for CIFAR mode.
Also, adds the correct weight (l2) regularizers to the NASNet models, corrects BatchNormalization decay and epsilon values for CIFAR mode and corrects the example script.

@ahundt Made the changes as requested. The auxilary head is from the appendix of the paper and from the code base. It is used when training all of the models.


[JOSS] Minimal pandas support

Re JOSS review openjournals/joss-reviews#6889
There currently appears to be a mismatch between the level of pandas support implied by the JOSS manuscript and that which is actually available in the scores package. (Apologies in advance if I have overlooked any pandas options already in the package).

Currently, support for pandas is advertised at several points in the JOSS manuscript, including the title, the compatibility section, and as an advantage over existing packages (e.g., xskillscore).
However as far as I can tell, the pandas support remains truly minimal at this point. Of the 50 metrics supplied by scores, only 3 are supported in pandas (MAE, MSE, RMSE), and all of them are routine calculations that could be obtained through many other packages. Furthermore, with the exception of "is_angular", many of the useful option in scores (weighting, preserve/reduce) are not afforded through the pandas API.
Though the JOSS manuscript does describe the pandas support as "expanding", this feels somewhat misleading given how little is currently implemented.

I think this could be addressed in two ways.

One option would be to deemphasize pandas support in the JOSS manuscript, e.g., by removing it from the title and in the comparison to alternative packages. Of course, it's awesome that pandas support is on the way -- and this should definitely mentioned -- but in the mean time, one would want to avoid pandas users reading the JOSS paper and falsely concluding that they can use the more non-trivial metrics offered by scores.
Another option would be to temporarily shoehorn pandas support into the rest of the API by wrapping the existing metrics with functions that convert (pandas -> xarray) on the input side and (xarray -> pandas) on the output side (or something like that).

@calebweinreb Thanks, this is fair. The path of least resistance for now would be to de-emphasise what is in the JOSS paper. However, I would like feedback on one other intermediate option which I’ll outline here.
I have previously looked into the merits of a basic conversion approach versus a more integrated approach to the xarray/pandas APIs, but I don’t think I documented my findings. I have therefore included some brief notes further below. The very short summary is that using a basic conversion approach mostly works but leaves too many rough edges and results in a poor user experience.
In addition to the options for JOSS publication you identified, something else that’s doable would be:

Create a tutorial notebook which sets out how to convert to/from xarray most effectively and avoid issues
Provider a helper conversion method which handles the most common issues, so that a great many of the use cases could be handled in a simple fashion while more fulsome support for pandas is being developed, without requiring the user to do their own conversions entirely on their own.

I would be interested in your thoughts on whether the following changes would be sufficient for the paper:
(a) Create a tutorial notebook and helper conversion function as described above
(b) Change “expanding support” to “support for pandas is being introduced”
(c) Leave the title as is
It is totally reasonable if that’s not seen as sufficient - it’s important pandas users don’t have a negative experience when looking at the package, and the paper shouldn’t overstate things. However I’d appreciate your feedback on that option. If that’s not sufficient, I would be inclined to then remove pandas from the title.
The following are some notes about the merits of a basic conversion approach versus a more integrated approach to the xarray/pandas APIs:
xarray provides some functionality for transforming both to and from pandas, which would form the basis of the pandas support. However, a few things prevented this from meeting all the requirements. None of these are ‘showstoppers’, but would all need to be carefully tested to ensure a quality result.
Examples include:
(1) The Pandas series objects which make up the columns in a data frame don’t have the “name” set to the header of the column. As a result, sometimes parts of the data structure end up with an unexpected name. This has flow-on effects to accessing, labelling and plotting the data.
(2) The default dimension names for new data structures differ between xarray and pandas. This can similarly result in unexpected names for things.
I also have some uncertainty about handling pandas data structures which might have duplicate or semi-duplicate entries when converted to an xarray type. This is unlikely to be a showstopper, but will require use case testing, creating useful error messages, and likely some documentation.
Originally, the hope was to have polymorphic methods in the main API (i.e. you can pass either a data frame or an xarray object into any method) however this became a challenge for type hinting and inheritance. Xarray recommend creating “accessor methods” (https://tutorial.xarray.dev/advanced/accessors/01_accessor_examples.html) rather than creating new classes which inherit from xarray types. Some experimentation revealed that inheritance from xarray types is not straightforward.
As a result, it was a cleaner implementation and also clearer for users to provide a separate API for pandas. This would also allow any different treatments that might be wanted for data frames to be handled there.

I spent some time yesterday looking into the intermediate option that I suggested. I think it would still end up being a bit rushed, so I would prefer to de-emphasise the role of pandas in the paper until we have a more fulsome implementation. I'll update the paper accordingly and let you know when the update is ready.

@calebweinreb we have merged a change to the paper into 528-joss-paper-submission which we believe addresses your feedback. Please let us know whether this seems suitable.

The new draft looks great and totally addresses my concern.


[TECH DEBT] Code inspector displays compiled code

To enhance the developer experience, it would be beneficial if the original code is preserved when inspecting the code in the browser's developer tools.
Currently, we see the compiled code, which makes the debugging process more challenging.


Customizable Aggregator Server Containers.

Is this a BUG REPORT or FEATURE REQUEST?:
FEATURE REQUEST
I would really like to be able to customize this list of containers (as well as custom volumes) https://github.com/heptio/sonobuoy/blob/master/pkg/templates/manifest.go#L146 through the Sonobuoy interface.

Yeah we need to think about the interface around gen a bit more.

I wonder if it would make sense to convert the template to a big ol' go struct.
Arguments for the conversion include ability to add containers sonobuouy.Containers = append( . . . ) without messing about with template syntax/yaml. We would also get type safety of objects and we wouldn't have to worry about syntax.
Downsides include probably a fairly large and deeply nested hard to read struct(s).
I could write up a SEP if there is general interest to see what this would look like.

This one may or may not be in scope, bumping down priority for this milestone.

Hey @chuckha, could you help us explain what needs to happen a bit?

the updated link should be https://github.com/heptio/sonobuoy/blob/aee97214eb903972f1841d4af123755614ed5792/pkg/templates/manifest.go#L187
The idea behind this was that I want to use sonobuoy to be able to generate yaml similar to how scanner works. The custom volumes part would allow the pods to communicate through the sentinel DONEFILE interface we have.
The use case is for anyone that wants to customize what happens with sonobuoy data. For example, sonobuoy could be scripted with this feature to upload the tarball to some cloud bucket storage (s3).

Also similar to #39

Need to put a design doc together for this. I really like the idea of being able to do something with the results rather than just sitting on them but I'm not 100% the only/best approach is a donefile/sidecars with the aggregator.
Pros for that approach: it is consistent with how the plugins currently work so it is familiar.
Cons:  Seems like for each bit of functionality it would be a custom image because it would hinge on waiting for the donefile, then acting. This seems to indicate that we would probably be the owners/caretakers of all those images, correct? They would each be small though so maybe not a big deal.

Based on lack of feedback from users on this (and its age) I'm questioning how important this is. It is a blocker to no one since they can edit the yaml directly if they desire.


klee: use the same LLVM version for clang

Description of changes
Currently they are the same, but llvmPackages_11 is hardcoded
which is awkward to override.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Thanks for this.


[10.x] Improve log mail mailer output

I use the log mail mailer during local development for proof reading and to copy links for testing. This is less convenient than it could be, because the content of the email is encoded with quoted printable encoding (via this code in Symfony's TextPart class).
Quoted printable encoding causes line-wrapping with a =\r\n separator, and it also encodes certain special characters. For example, a simple password reset email currently gets logged like this:
From: no-reply<EMAIL_ADDRESS>To: Taylor<EMAIL_ADDRESS>MIME-Version: 1.0
Date: Thu, 12 Jan 2023 12:12:09 +0000
Message-ID<EMAIL_ADDRESS>Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,

Click here to reset your password.

All the best,=

Burt & Irving

Note how it encodes the href=, that it wraps the password reset url, and that it also wraps after "All the best" for some reason.
This PR decodes the message with quoted_printable_decode() before it gets logged, which gets rid of all the encodings and wrappings, making the log message easier to read.
After quoted_printable_decode(), the message gets logged like this, exactly how you'd expect:
From: no-reply<EMAIL_ADDRESS>To: Taylor<EMAIL_ADDRESS>MIME-Version: 1.0
Date: Thu, 12 Jan 2023 12:12:09 +0000
Message-ID<EMAIL_ADDRESS>Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi,

Click here to reset your password.

All the best,

Burt & Irving

This is a really nice enhancement.


[IoT Central] API Review

New API Review meeting has been requested.
Service Name: IoT Central
Review Created By: Johnson Yang
Review Date: 10/20/2022 4:00 PM PT
PR: https://github.com/Azure/azure-rest-api-specs/pull/20981
Hero Scenarios Link: Not Provided
Core Concepts Doc Link: here
Description: Add new 2022-10-31-preview version for following changes:
•	Add Edge Device Deployment Manifest List, Create, Update, Remove support.
•	Replace $top with maxpagesize from legacy preview version. (users, jobs, scheduled jobs, devices, device templates, device groups, dashboards)
•	Replace $filter with filter from legacy preview version. (devices, device groups, dashboards, device templates)
•	Replace $orderby with orderby from legacy preview version. (devices, device groups, device templates)
•	Add read only id scope from Enrollment Group.
•	Add optional read access from File Upload Configuration, default is false.
•	Add new route for edge device to apply manifest.
•	Add new expand parameter for device route to retrieve deployment manifest when specify ?expand=deploymentManifest
•	Remove deploymentManifest from legacy device template contract.
•	Add new type: string[] for device creation, currently only allow iotEdge, type can't be changed after creation.
Detailed meeting information and documents provided can be accessed here

API Stewardship Board Review: 20-Oct-22

Use additionalProperties = true to give better indication to code gen for the SDKs
See: https://swagger.io/specification/v2/#model-with-mapdictionary-properties

Support the standard conditional requests pattern using the If-Match header

Check the use of model as string false -- some of these should be true

Open question on ETag that we will follow up async.

Next Steps
No blockers for preview.

@markweitzel
I have fixed "modelAsString" from false to true for any enumeration value consider to be extended in future, we also exposed if-match header as our API already supported, but we throws errors when etag in body and header are different, supported in future will be, specified from if-match header, or specified from body, if both are specified, they should be same.
Would you please take a look on these changes? please let us know if there is any issues with this change.
Thanks,
Johnson


Function Request: Demo of finetuning-free zero(few)-shot single image inference

Hi Author,
Great work! I'm wondering if you have any plan on developing a demo showing few-shot ability of the model.
Specifically, we can prepare some vision queries (a few examples with novel classes). And with these vision queries, we perform object detection of an input image from the same domain as the vision queries. I'm excited to seeing the performance of MQ-Det in this scenario. (Since, I blieve that with VisionAndText queries, MQ-Det can definitely perform better! :))
The function I propsed is very similar to the playground demo of OWL-ViT (link below).
https://colab.research.google.com/github/google-research/scenic/blob/main/scenic/projects/owl_vit/notebooks/OWL_ViT_inference_playground.ipynb

Hi @TianpengBu ,
Thank you for your constructive suggestion! Actually, I am currently contemplating a demo plan. However, as an individual developer, I don't have enough time to proceed with this plan in the immediate future.  I will carefully consider your suggestion to develop a demo during my available spare time.


[NF] Write data to .csv file

The idea of this new feature would be to easily write data into csv files with names in column headers, and data on the rows.
It is very practical to integrate in Latex, but it does not prevent you from doing some small additional calculations with software such OpenCalc or Microsoft Excel. Of course, the idea could be extended to other type of files.

Hello Raphaël, I was thinking about a winding matrix export (in pyleecan). So I may utilize this feature. Do you it will be possible to write such multi dimensional data in a senseful way to a csv too?

Hello Seb,
I was mainly thinking about usual 2D plot (a function of time, frequency etc.).
3D plot seems possible by using columns.
I don't know if it will be relevant for higher dimensions. Maybe writing several csv files for different variable (on for each phase etc.).
Is it what you were thinking of ?

We could use sheets for a 3rd dimension.

Thanks for your ideas. I would prefer a one file solution. But I don't want you to get headache because of this :-)
So I may implement a specific solution for windings only.

This feature has been started in commit 433f8e1543067785ab0866e1fba63863ca33de6b. I will try to find some time to automatically write Latex/Tikz figure based on plot_2D_data before closing this issue.


Jreyesr teleop panel (copy of #561)

Copy of #561

For anyone watching this issue - we recently added a teleop panel to Foxglove Studio (webviz fork) in #1429.


I want to say entity["balance"] += amount;

But the += operator is not overloaded to do this.

Nevermind.  It works for long types.  The problem was, I used a decimal.