Docker Hub version?

I use GitLab, so I can't really drop this straight into my CI. I could theoretically build the image myself and upload it to my repository's container registry, but I was wondering if an official docker image could be uploaded to the Docker Hub so that I can just drop it straight in, and not have to re-build it if it updates?
Thanks

Wrong repo


Area2D signals area_entered and body_entered not firing on same frame

Godot version:
3.2.2 C#/Mono 64 bit
OS/device including version:
Windows 10 Pro 64 bit (latest updates including May 2020 patch)
GTX 980 (Nvidia driver 452.06)
OpenGL ES 2.0
Issue description:
What happened: Area2D being detected on same frame as movement but KinematicBody2D not detected until the following frame.
Expected: Area2D signals area_entered and body_entered to fire on the same frame
Steps to reproduce:

Create a new 2D scene
Add a KinematicBody2D to the scene (named "MovingBody"), global position at x=screen width / 3, y=screen height / 2, with a rectangle collision shape sized 64x64
Add an Area2D to MovingBody (named "InteractArea") local position at x=0, y=0, with a rectangle collision shape sized 64x64
Create and add a script to MovingBody named MovingBody.cs, extending KinematicBody2D

public class MovingBody : KinematicBody2D
{
	[Export] public Vector2 Velocity { get; set; } = Vector2.Zero;

	public override void _PhysicsProcess (float delta)
	{
		base._PhysicsProcess(delta);
		Velocity = MoveAndSlide(Velocity, Vector2.Up);
	}

	private void OnAreaEnteredInteractArea (Area2D area) =>
		GD.Print($"MovingBody -> Area entered interact area: {area.Name}");

	private void OnAreaExitedInteractArea (Area2D area) =>
		GD.Print($"MovingBody -> Area exited interact area: {area.Name}");

	private void OnBodyEnteredInteractArea (PhysicsBody2D body) =>
		GD.Print($"MovingBody -> Body entered interact area: {body.Name}");

	private void OnBodyExitedInteractArea (PhysicsBody2D body) =>
		GD.Print($"MovingBody -> Body exited interact area: {body.Name}");
}

Connect the following signals (on InteractArea) to the methods:

area_entered
area_exited
body_entered
body_exited

Add an Area2D to the scene (named "InteractableArea"), global position at x=(screen width / 3) * 2, y=screen height / 2, with a rectangle collision shape sized 32x32
Create and add a script to InteractableArea named InteractableArea.cs, extending Area2D

public class InteractableArea : Area2D
{
	[Export] public Vector2 Velocity { get; set; } = Vector2.Zero;

	public override void _PhysicsProcess (float delta)
	{
		base._PhysicsProcess(delta);
		Translate(Velocity * delta);
	}

	private void OnAreaEntered (Area2D area) =>
		GD.Print($"InteractableArea -> Area entered: {area.Name}");

	private void OnAreaExited (Area2D area) =>
		GD.Print($"InteractableArea -> Area exited: {area.Name}");

	private void OnBodyEntered (PhysicsBody2D body) =>
		GD.Print($"InteractableArea -> Body entered: {body.Name}");

	private void OnBodyExited (PhysicsBody2D body) =>
		GD.Print($"InteractableArea -> Body exited: {body.Name}");
}

Connect the following signals (on InteractableArea) to the methods:

area_entered
area_exited
body_entered
body_exited

Set the Velocity of MovingBody to x=1024, y=0 and set the Velocity of InteractableArea to x=0, y=0
9a) Set the following collision layer and mask flags:

MovingBody: Layer 1, Mask none
InteractArea: Layer 2, Mask 3
InteractionArea: Layer 3, Mask 1 and 2

Create a new script called Ticker.cs and add it to the scene node
Set the scene node to "Process" on paused, and set MovingBody and InteractableArea to "Stop"
Add the following code to Ticker.cs:

using Godot;

public class Ticker : Node2D
{
	private bool m_wasDoFrame = false;
	private bool m_isDoFrame = false;
	private float m_frameCounter = 0;

	public override void _Ready ()
	{
		base._Ready();
		GetTree().Paused = true;
	}

	public override void _PhysicsProcess (float delta)
	{
		base._PhysicsProcess(delta);
		if (m_isDoFrame)
		{
			m_isDoFrame = false;
			m_wasDoFrame = true;
			m_frameCounter++;
			GD.Print($"Frame counter: {m_frameCounter}");
			GetTree().Paused = false;
		}
		else if (m_wasDoFrame)
		{
			m_wasDoFrame = false;
			GetTree().Paused = true;
		}
	}

	public override void _Input (InputEvent @event)
	{
		base._Input(@event);
		if (@event.IsActionReleased("ui_accept")) m_isDoFrame = true;
	}
}

Start the scene. MovingBody should be on the left and InteractableArea should be on the right, and when "ui_enter" is pressed the game should do one physics tick then pause, while outputting the frame count and any interactions or any fired signals:

Frame counter: 1
Frame counter: 2
Frame counter: 3
Frame counter: 4
Frame counter: 5
Frame counter: 6
Frame counter: 7
Frame counter: 8
Frame counter: 9
Frame counter: 10
Frame counter: 11
Frame counter: 12
Frame counter: 13
Frame counter: 14
Frame counter: 15
InteractableArea -> Area entered: InteractArea
MovingBody -> Area entered interact area: InteractableArea
Frame counter: 16
InteractableArea -> Body entered: MovingBody
Frame counter: 17
Frame counter: 18
Frame counter: 19
Frame counter: 20
Frame counter: 21
Frame counter: 22
Frame counter: 23
Frame counter: 24
Frame counter: 25
Frame counter: 26
InteractableArea -> Area exited: InteractArea
MovingBody -> Area exited interact area: InteractableArea
Frame counter: 27
InteractableArea -> Body exited: MovingBody
Frame counter: 28
Frame counter: 29
Frame counter: 30

Notice that the Area2D's signals are fired on frame 6 but the body is not detected until frame 7.

Minimal reproduction project:
GodotTest.zip
Minor addition:
If the MovingBody's Velocity is Zero but the InteractableArea's Velocity is x=-1024, y = 0 then when they overlap the signals fire as expected. I have tried putting "ForceUpdateTransform()" near enough everywhere and re-ran at different points with no use. The X speed does not need to be 1024 but in this example it works well as on one frame it is not overlapping at all then the following frame the InteractableArea is overlapped nicely to show th effect (the area being detected as overlapping on the same frame as the movement but the body not being detected until the following frame). I have read that the bodys are all moved at once but I thought that ForceUpdateTransform() would help this?

I've just ran into this. Here's a simpler repro:
ReproductionProject.zip
Expected result is
before move
signal emitted
after move

If this is intended, get_overlapping_bodies() shouldn't point to the signal, because they both work the same. But IMO signal should be emitted immediately or at least there should be a way to do so.

Does anyone know why the area_enetered signal doesn't fire immediately? My best guess is that, the rigid body does check for overlap every frame, whereas the area does not (if this is true, how often is it running this / what controls that?)

For the area_entered signal, it seems to be checked on Area2D::_area_inout

Which itself runs on the physics server's area_set_area_monitor_callback

https://github.com/godotengine/godot/blob/29b3d9e9e538f0aa8effc8ad8bf19a2915292a89/scene/2d/physics/area_2d.cpp#L433

For body_entered signal, it is checked in RigidBody2D::_body_inout

Which runs on  RigidBody2D::_body_state_changed
Which runs on physics server's body_set_state_sync_callback

https://github.com/godotengine/godot/blob/29b3d9e9e538f0aa8effc8ad8bf19a2915292a89/scene/2d/physics/rigid_body_2d.cpp#L805
I wonder if it makes sense to allow running the area's monitoring on body_set_state_sync_callback as well? Is there a reason why it's not already doing that (and what explains the few frames of delay? it seems to be between 2 and 4 frames in my test).


Rename X and Y

X refers to left in module locations and Y refers to front. Should we rename this to left and front respectively to make it less confusing?
This would be a breaking change but it could be worth it.

That is confusing since in the WPILib conventional coordinate system +X is front and +Y is left


[DRAFT] Add callstack collection to tracepoints

Closing this since Florian is now working on getting all the parts in - in smaller chunks.


ClassNotFound exception for InMemoryDataSource

I am trying to use the this module in an java based Android SDK and it comes back with this error.
I did add the dependencies in the build.gradle, am i missing any other dependencies?
implementation 'com.babylon.certificatetransparency:certificatetransparency:0.1.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.3.31"

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/babylon/certificatetransparency/internal/loglist/InMemoryDataSource;
        at com.babylon.certificatetransparency.internal.verifier.CertificateTransparencyBase.<init>(CertificateTransparencyBase.kt:58)
        at com.babylon.certificatetransparency.internal.verifier.CertificateTransparencyBase.<init>(CertificateTransparencyBase.kt:44)
        at com.babylon.certificatetransparency.internal.verifier.CertificateTransparencyInterceptor.<init>(CertificateTransparencyInterceptor.kt:37)
        at com.babylon.certificatetransparency.CTInterceptorBuilder.build(CTInterceptorBuilder.kt:144)

Hi there, did you figure out what was happening as we haven't seen this ourselves?
Does the same thing happen with the latest release v0.1.4? Is ProGuard enabled?
If you are able to provide a sample app that exhibits this behaviour that can really help too.

I tried the latest version then. Yes its progaurd enabled but the crash happened on the debug build where the progaurd doesn't kick in.
As of now working on other priorities, i will post a sample when i can get to it.
Thanks for the response.


Fix logic for selecting practices by SICBL

The API allows you to retrieve practice-level data by supplying a 3-character code for a SICBL/CGG which then selects all the practices belonging to it. However, previously, if you supplied the code of a closed SICBL with no practices it would end up returning five years' worth of data for every practice in England. Not only is this an incorrect respond but it takes a lot of server resources to generate and has the side effect of segfaulting PhantomJS when it tries to render the chart image.
This PR applies the smallest fix to prevent it doing this.

Sorry, yes. I should have explained better.
The problem comes here:
https://github.com/ebmdatalab/openprescribing/blob/f03576a3b0d0fb84f6e3a128eb255c304a95984e/openprescribing/api/views_spending.py#L376-L379
org_ids may start off containing a 3-char CCG code, but if that refers to a closed CCG then it gets turned into an empty list which then resulted in an inadvertent select-all.

Aha, thanks.  Revolting!


Serverless Package and final artifact

With my current project : https://github.com/CuistotduCoin/front
If I do this : serverless package
In .serverless/serverless-ssr.zip contain everything in the directory. I think it should only contain "sls-next-build". This is a bug, right ?
If not, what I'm doing wrong ?

Excluding stuff is up to the user. The plugin only makes sure that the page handlers are always included.
I would normally exclude everything, for example:
plugins:
  - serverless-nextjs-plugin

custom:
  serverless-nextjs:
    nextConfigDir: "./"

package:
  exclude:
    - ./**/*

That's what I do.

Right now, .serverless/serverless-ssr.zip is 226 Mo.
I'm almost at the limit fixed by AWS.

What I did, (i dont know if this is correct) :
package:
  exclude:
    - ./**
  include:
    - .serverless/**`

Seems to work fine for me:

serverless-ssr.zip is 30M, mostly the page bundles generated by next.
If you unzip serverless-ssr.zip what do you get?

On windows :
package:
  exclude:
    - ./**

I get exactly your result.
But with :
package:
  exclude:
    - ./**/*

I get everything (build, pages, components, .serverless, ect)

I've updated the docs and examples to use ./** as it works both on windows and other OSes.
Are you happy for this to be closed and just use ./** ?

👍


[request] Consider to implement the trading capital, position sizing and market risk in gekko

Note: for support questions, please join our Discord server

I'm submitting a ...
[ ] bug report
[x ] feature request
[ ] question about the decisions made in the repository

The currently implemented trading engine in gekko is very risky for any users as it does not have the position sizing, market risk and trading capital features implemented.
Gekko currently trades as "all in", which means the market risk is very high (read this) instead of the common 1% (for newbies) or max. 2% (advanced traders), and it also reduces the market diversity to only 1 market and also does not allow pyramiding.
The initial potential solution could be the following:

define the trading capital that is based on the exchange balance or on some percentages of the exchange balance.
gekko should manage the memory balances based on the retrieved exchange balances and the actioned trades.
gekko should automatically calculate the position sizes (max amount of buying an asset for a particular trade) based on the trading risk and the memory balance.

This will reduce the trading risks and can increase the diversification of the markets as we would be able to run different gekko instances for the same exchange. It would allow us to play/test gekko on real exchange defining some very small trading capital e.g. running real trades using a very small amount of currency (0.001 BTC with ETH/BTC pair).
I had a look at the portfolioManager.js and the trader.js and it seems that the balance calculating feature can be easily implemented in gekko by using some abstract method in the portfolio manager (Interface Pattern similar to the Decorator Pattern, but not really).
The simple pseudo-code in ES6 is the following:
class PortfolioManager {
  constructor() {
  }

  setPortfolio(fullPortfolio) {
    // this is where the portfolio is set either by the PortfilioManager or by the Trader.
    // this is the original code:  this.portfolio = portfolio;
    this.portfolio = this.adjustPortfolio(portfolio)
    //...
  }

  // Simply return w/ the original portfolio if it's not overwritten
  // So behavior won't change.
  adjustPortfolio(portfolio) {
    return portfolio
  }
}

class Trader {
  constructor() {
     this.portfolioManager = new PortfolioManager()
     // overwrite the Manager's adjustPortfolio
     this.portfolioManager.adjustPortfolio = this.adjustPortfolio
  }
  adjustPortfolio(portfolio) {
      // do whatever you want w/ the portfilio in portfolioManager
      return portfolio
  }
}

Here comes a brief example what I meant by trading account on an exchange and do some risk assessment by calculating the position size..
Imagine you have the following currencies/assets on an exchange:
Currencies: BTC(1.5), ETH(4), USDT(1000)
Assets: NEO(20), XRB(40), DRGN(5000), ENG(1000)
Account (trading account) balance is the estimated value of the currency and the assets you want to trade

BTC(0.5) you do not want to trade all your BTC currency
NEO(10), XRB(20) and  DRGN(25) half of your assets

So the account balance is the BTC price of the assets above, and the trading risk is 1% you wil lhave 3 markets and each of them has 1% trading risk:

binance.BTC(0.25)-NEO(10) -> 0.25 + 0.1250050 = 0.3750050 -> Max Risk/ trade 0.003750050
binance.BTC(0.1)-XRB(20) -> 0.1 + 0.03530540 = 0.13530540 -> Max Risk/ trade 0.0013530540
binance.BTC(0.15)-DRGN(2500) 0.15 + .50852500 = 0.65852500 -> Max Risk/ trade 0.0065852500
So the account balance is ~1.16BTC as a whole

When you enter a position (short or long) you need to calculate the position size (the max amount you can trade) of the market.
This means when we get the signal we have the theoretical entry price (as the real entry price is the price that you actually buy or sell).
Assume, that the long entry price for the BTC-NEO market is 0.0125000 and as we have 0.25 BTC then we can buy max. 20 NEOs. but, if you buy all and the price drops for example 10% and your signal says to sell, then you will lose a lot. So, to stop the loss or get the profit, you need to have some stop-loss (cancel orders at the losing position) and an exit price (exit from winning position).
It's usually done by configuring some indicators (some crosses etc.) or use some volatility measurement such as TA-Lib's ATR or similar.
I really like the idea of the volatility measurement as the cryptocurrencies are very volatile, and the ATR gives you the Average True Range for a certain period, but it also means if the volatility is high you cannot buy that amount of NEOs because you will lose a lot on the lost position.
See this brief explanation below, where the ATR is used for risk-based position sizing:
We set the stop-loss signal based on the ATR(20, SMA) ( I have checked and it's 0.000212545 at the moment), so if we set

the stop loss to curr price - 2 * ATR, assuming that the price drop is much higher (double) than the usual volatility, then we can buy
a curr balance(0.25) * market risk (0.001) / (2*ATR(0.000212545 )) NEOs, means we can buy only ~5.88 NEO of the max of 20 for 0.07101384413

This means if we lose the position and we will sell the ~5.88 NEO at 0.01207491 price (curr - 2*ATR), we  will get 0.07351384413, that means we will only lose 0.07351384413 - 0.07101384413 = 0.002500 which is the 1% of the current (not the whole 0.375) balance.
This calculation is not quite accurate, as it does not take into account the whole account or the related market balance, and also it does not calculate the exit price (exit price following the candle while the stop loss does not as it's fixed at entry time), but I hope that this explanation above makes sense anyway.

There's the beginnings of a stop loss implementation in #1317. Would just need to be extendable to do the ATR for half of this feature.
What I really want is the ability to only trade with a portion of currency though. Would be really nice to have multiple gekkos running on one exchange with the same pairing.

@ilap Yes, it is very well understood what you are implying here, very important. There has been discussions about this going for months, and sophisticated users of Gekko end up implementing their own version of this by modifying the core source code. Due to where the project is at, and how many people are using it in different ways, this is something which could take a long time to get consensus on how to implement, so that is why people go ahead and implement it on their own.
Long term it needs to be addressed in the core functionality of Gekko to add support for various types of position and portfolio sizing, risk management, etc.
Since this is very much an open source effort, the best way at this point I'd suggest would be to study the existing app structure and propose different ways to implementing and consult members of the community here on their opinions, get consensus, make a roadmap, and start implementing incrementally with pull requests.
Or else make a fork, and fully implement your vision for it, and then work on getting it merged back into the core. That type of effort would be appreciated by the Gekko power users, as some people end up taking shortcuts and hacking these features in, though it doesn't end up making it back into the source.

@scragz Unfortunately, it's not as easy as it looks, as Gekko does not really track the orders.
It implemented the simplest trading functionalities, which comes w/ some trade-offs.
For example:

you can only sell or buy once which must be followed by the opposite trade buy->sell or sell->buy. Gekko skips advice anyway, so it means that Gekko trades are stateless at the moment.

Gekko does not track orders, which is required for using memory balance, means:
When an order is placed it has some states e.g. Placed/Filled/Partially Filled, Cancelled etc. and almost on all state changes, we need to adjust the memory balance. For example: when we place an order the purchase price is reserved i.e. amount is reduced from the exch's currency/asset balance.
When it filled (best case), it also requires some adjustment, due to some possible slippage that can happen (as an order can have several trades w/ slightly different price).
When it cancelled, it also needs some re-adjustment (release the reserved amount in the exchange balance) and in the worst case, when it's just partially filled, it also requires re-adjustment.
Also, different exchanges handle their orders differently.
So, the orders must be tracked, that means that some client side order id is required. That means when a callback comes back w/ an order, we need exactly to know which order was it. Currently, Gekko just handles one order and using the all available balance in the exchange, due to the buy follows sell, sell follows buy restriction and the order tracking hardness I have mentioned. So the currently implemented simple add/check/check order works properly.

It uses limit order despite Gekko only implemented the basic features. This can cause some unexpected behaviours in Gekko, For this simple trading functionality that Gekko currently has, a market order would do with some safety markers (implements some slippage relative to the candle price) to not allow to buy or sell w/ very high/low prices in the order book.

So it's harder than it looks, but not impossible.
Note: Proper definition for trade and order is required, as the order != trade, as one order can have multiple trades, as the exchange trading engines probably would buy/sell from/to different sellers/buyers to fulfil the order.
@ansonphong I think, the get consensus is the hardest part of the game, as in general, the decisions are made by personal believes, emotions and opinions which do not represent any scientific approach.:)


R project template is not available while creating project from VS 2015

I installed latest version of RTVS RC1. I am not seeing R option is not available under VS template.

Do you see R Tools menu? Does R Tools -> Windows -> R Interactive work?

I'm also having this issue. I see the R Tools menu and I'm able to open R Interactive. I'm using Microsoft R Client.

You can try this:

Check that C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplates\R is populated (EmptyProject folder with 4 files)

Open admin command prompt

Go to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE

run devenv /InstallVsTemplates

You can also try devenv /setup but it is more drastic as it resets VS to defaults and re-builds components and template catalog from scratch.

Feel free to reopen if you are still experiencing problems.


Update graph_adj_list.py to avoid unnecessary conditional

The default value for that parameter is None, so checking to see if its None to avoid passing it in is unnecessary. Didn't see any tests to run, though?

Thanks, looks good! Our tests live in a different repo,  https://github.com/BridgesUNCC/bridges-client-testing


STYLE: Add in-class {} initializers to classes with virtual functions

Added in-class {} default member initializers to data members of classes that have one or more virtual member functions.
For an object that has one or more virtual member functions, the performance cost of adding a {} default member initializer to each of its non-static data members should be acceptable, relative to cost of the initialization of its virtual table.
Follow-up to pull request https://github.com/InsightSoftwareConsortium/ITK/pull/3851 commit 5e2c49f9eb80e78903ce8f9fd2b5952062653cab "STYLE: Add in-class {} member initializers to objects created by New()"

How did you find all these classes?

My script (in C++): https://gist.github.com/N-Dekker/738d28b8d7528a32c12e7a129160b00f
It looks for a line of code that start with  virtual. If such a line is found, from there, it adds {} initializers to data members it encounters, until it encounters a line that starts with }; (Because }; means the end of class!)

Should this script be added to the repository?

I don't think so. It is a repository of scripts which were used once upon a time, and are therefore good starting points if you need the same thing again. You should add a short usage in the comments at the top of the script, so a future you/me/somebody else can make sense of what the script is for and how to invoke it.

FYI, The force-push that I just did has included classes that have an override keyword.

Label PRs action build failure is unrelated to this PR.

Thanks for your approval, @dzenanz
One of the concerns I have about adding the script to github.com/InsightSoftwareConsortium/ITK.git is that it would trigger another CI run with each revision. Which seems like a waste of energy to me, because the CI does not test the script at all. Would it be possible for the CI to bypass changes in ITK/Utilities/Maintenance ?

I don't know whether it is possible to run the CI conditionally (I don't think it is), and if so how to do it.

You could give it a try, exclude Utilities/Maintenance before submitting a PR with the new script.


The phonetic transcription generated of long sentences is inaccurate

My research requires extracting phonetic features from entire sentences, but I've found that the generate method is inaccurate for long distances. Can I simply extract features for each individual word and concatenate them together?"

I found that when encountering repeated characters in Chinese that are not at the end of a word, one phonetic annotation is dropped, for example, in words like '赤裸裸' and '冷冰冰' followed by additional characters.


Updating js-ipfs and orbitdb

Should be merged after #21

@Jon-Biz At your convenience can you re-run these tests? My sense is they're just flaky

All good now :)


Broker will not publish disconnected $SYS message

Environment

OS:
Erlang/OTP:
EMQ:

Description
1.Client connect to mqtt server
2. then close the network of client,client will reconnect to mqtt server
3. After a few seconds，connecte to the network
4. broker will not publish disconnected $SYS message
In this process, the client id has not changed，on dashboard，i notice that the ip of client has not changed but the port has changed
May I ask what is the cause of broker not publish disconnected $SYS message

@turtleDeng  Hi turtle, I noticed that this might be the same issue I submitted at
https://github.com/emqtt/emqttd/issues/1055
The EMQ won't callback 'disconnected' plugins on 'kick' event.
Could you have a check?

@terry-xiaoyu Yes. The broker will not publish a disconnected $SYS message when a client is kicked out.


[BUG] Removed files from package when remove_obsolete: true

Describe the bug
Files from unpacked package are deleted at end of sync.
To Reproduce
Do normal sync_drive with remove_obsolete: true
Expected behavior
Files from package are not removed
Screenshots

Configuration
remove_obsolete: true
Sync all folders

Looks like https://github.com/tymmej/icloud-drive-docker/commit/039236206432a9ba189c37d6738fa41211ed274b solves it.
Source of problem:
Unpacked folder has the same name as package, but to files variable we only add package name, not what's inside it.
To fix it:
a) if package is up to date and we do not download it we add to files what's on disk
b) if package is not up to date and we  download it we add to files what's on disk after unpacking
Also, when we need to redownload package we first remove current content - otherwise there was error 21 while unpacking - we cannot unpack package it output folder already exists.


Type declaration in action...() missing

The Type declaration in the functions actions...() are missing. Could be causing the newConsentObject to not be set.

Fixed all action...() functions actionCheckbox(), actionAccept(), actionAccept() & actionNecessary() with a correct type declaration of ConsentObjectType to fix wrong data change of consentObject.viewed.
For example i showed the changes with actionAccept().
From
const actionAccept = () => {
    const newConsentObjectData = consentObject.data

    afterSomeActions({
        viewed: true,
        data: newConsentObjectData
    })
}

To
const actionAccept = () => {
    const newConsentObject = consentObject

    newConsentObject['viewed'] = true

    afterSomeActions(newConsentObject)
}


Focus in mobile filters dialog

Describe the bug
In mobile view, the "Filters" button has aria-expanded="false", but this doesn't update to true when the menu is expanded. As this button opens a dialog rather than a simple menu, we don't need to use aria-expanded here. However, we need to make sure to keep the focus inside the modal while this is open.
To reproduce
Steps to reproduce the behavior:

Log in as a business
Go to http://localhost:3000/developers
Inspect the page and switch to mobile view
Turn on VoiceOver: command + F5
Tab to the "Filters" button and notice the screen reader announces "collapsed"
Hit "Enter" and tab through the modal
Keep tabbing through all the elements and notice that the focus moves outside the modal, back to the main page, while the modal is still open
Turn VoiceOver off: command + F5

Expected behavior

Focus should be trapped inside modal while modal is open (should not move back to main page)
When modal is closed, focus should go back to "Filters" button
When "Filters" button focused, screen readers should not announce "collapsed"

Actual behavior
Once you tab through the elements in the modal, the focus goes back to the main page, outside modal
When the modal is closed, the focus is lost and does not go back to "Filters"
Screenshots
https://user-images.githubusercontent.com/22390758/177101137-61fc8084-3730-4e6c-b443-ed9f49e005b3.mov
Additional context

How to trap focus inside modal
Dialog Focus in Screen Readers

Hi @joemasilotti Can I take up this issue and raise a PR to resolve it?

Yeah, sure thing. Thanks @atiqueakhtar!

Please see #658 for some ideas and notes. Most importantly, I think this can be accomplished with HTML markup only, no JavaScript.

Hi @joemasilotti can I pick this one up?

Yes, please. Thanks @DamonClark!

For the expected behavior: Focus should be trapped inside modal while modal is open (should not move back to main page). I am able to add a tab-index=-1 to the necessary element but then even if the modal is closed those elements aren't being tabbed. I don't know if there is a good way to do that without custom javascript.

Got it, thanks for digging in! What’s the minimal, most generic, JavaScript we could add to get that behavior.

@joemasilotti  from what I'm researching I'm not really seeing any alternatives much better then what @atiqueakhtar implementation looked like. This is what I was considering adding https://hidde.blog/using-javascript-to-trap-focus-in-an-element/ but it looks very similar to what atiqueakhtar already committed.

Is there any way to set tab-index=-1 when on mobile vs. desktop so the options get skipped? I think that might save the custom JavaScript for listening for tabs and keys and such, right?

I think you could add something like this to the controller
  def mobile?
    request.user_agent =~ /android|blackberry|iphone|ipad|ipod|iemobile|mobile|webos/i
  end

and then add a ternary operator that only passes tab-index=-1 on condition user_agent is a mobile device. That's all I'm seeing so far without javascript, was hoping for something a litter nicer.

I’m ok with some JavaScript. But I didn’t want to rebuild the entire tab selection engine.
Can we get viewport in the request? I’d rather chain it off of that since the media breakpoints are what determines if the mobile vs. desktop views are shown.

I have some changes I was going to try but I need permission to push. I fixed it so that "collapsed" wouldn't announce when filters button is focused. Then I started trying to create a viewPort condition so that it would set tabindex -1. But its not picking up the javascript for some reason. Once I can push maybe we can have a look.

Feel free to create a fork and push to that. No need for access to the existing PR or main repo.

Hey @joemasilotti I created a fork and pushed to it. My change isn't working but I think its the right idea. It uses minimal javascript to try and set the tabindex -1 to the elements outside of the modal when the view port is less then 768. If you or anyone else can have a look it would be much appreciated. Below is the commit changes. Thanks :)
https://github.com/joemasilotti/railsdevs.com/commit/2e22022544d97ff0289aaa4f317062a72aa28b6d

Awesome, thanks Damon! Can you submit a PR to RailssDevs based on that fork so I can take a look?

A few folks, myself included, have taken a pass at this with no luck.
I'm going to close this out for now so we can focus on other stuff.


org.apache.lucene.search.grouping.TestGroupFacetCollector.testRandom fails reproducibly

Description
Please see https://lists.apache.org/thread/t5hgzv0q177nf8qqyz6h9qhhvwp366gp or https://jenkins.thetaphi.de/job/Lucene-9.x-Linux/8706 for full details.
Error Message:
java.lang.IndexOutOfBoundsException: Range [0, 0 + 813) out of bounds for length 80

Stack Trace:
java.lang.IndexOutOfBoundsException: Range [0, 0 + 813) out of bounds for length 80
	at __randomizedtesting.SeedInfo.seed([173F7C2A08C39662:65735925B9A32011]:0)
	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromIndexSize(Preconditions.java:82)
	at java.base/jdk.internal.util.Preconditions.checkFromIndexSize(Preconditions.java:361)
	at java.base/java.util.Objects.checkFromIndexSize(Objects.java:411)
	at java.base/java.nio.HeapByteBuffer.get(HeapByteBuffer.java:180)
	at org.apache.lucene.core@9.6.0-SNAPSHOT/org.apache.lucene.store.ByteBuffersDataInput.readBytes(ByteBuffersDataInput.java:155)
	at org.apache.lucene.core@9.6.0-SNAPSHOT/org.apache.lucene.store.ByteBuffersIndexInput.readBytes(ByteBuffersIndexInput.java:85)
	at org.apache.lucene.test_framework@9.6.0-SNAPSHOT/org.apache.lucene.tests.store.MockIndexInputWrapper.readBytes(MockIndexInputWrapper.java:148)
	at org.apache.lucene.core@9.6.0-SNAPSHOT/org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$TermsDict.decompressBlock(Lucene90DocValuesProducer.java:1235)
	at org.apache.lucene.core@9.6.0-SNAPSHOT/org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$TermsDict.next(Lucene90DocValuesProducer.java:1093)
	at org.apache.lucene.search.grouping.TermGroupFacetCollector$MV$SegmentResult.nextTerm(TermGroupFacetCollector.java:437)
	at org.apache.lucene.search.grouping.GroupFacetCollector.mergeSegmentResults(GroupFacetCollector.java:97)
	at org.apache.lucene.search.grouping.TestGroupFacetCollector.testRandom(TestGroupFacetCollector.java:429)
...

Gradle command to reproduce
./gradlew test --tests TestGroupFacetCollector.testRandom -Dtests.seed=173F7C2A08C39662 -Dtests.multiplier=3 -Dtests.locale=ru-KZ -Dtests.timezone=America/Mazatlan -Dtests.asserts=true -Dtests.file.encoding=UTF-8

Well, this has been one hell of a treasure hunt.
Based on the stack trace, the addressable problem starts here: https://github.com/apache/lucene/blob/caeabf39309a91997d361b4104bda105d16ae720/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90DocValuesProducer.java#L1235
After adding a bunch of log statements and blowing up the GC..
What are learned from the logs and is evident in the error message, that we are trying to read term bytes longer than the array.length. At first glance this does not seem possible. Could there be some data corruption issue in input.readBytes(term.bytes, prefixLength, suffixLength); from
https://github.com/apache/lucene/blob/caeabf39309a91997d361b4104bda105d16ae720/lucene/core/src/java/org/apache/lucene/codecs/lucene90/Lucene90DocValuesProducer.java#L1105
I'm not sure what could be going on but it seems potentially like a serious issue. Have we previously observed data corruption issues on input streams? I'm really stumped as to where the 813 (or any number > 80 is coming from). If it's important or helpful, I could look into it more.

Looks like this is tracking the same issue I opened back in #11631. I'm going to close out my older issue in favor of this, since it has more detail and is being worked. Hooray!

Fixed by #12555, thanks @epotyom !


iOS App Runtime Build failed

iOS app build failed and unable to launch the app using latest Xcode IDE and node version 10.16.3 with the following error.
error: /Users/nileshpandey/Desktop/moonWalkTest/moonwalk/ios/moonwalk/main.jsbundle: No such file or directory

$ cd moonwalk
$ yarn
$ cd ios && pod install && cd ..
$ yarn build-ios
$ react-native run-ios


fix typo and remove extraneous whitespace (test commit)

asdasd
sorry

Good first PR. I appreciate the effort you must’ve put in for this.


Generics and InputObjects

Hi thanks for all the great job!!!
I'm trying to make a inputobject with a generict param, something like this:
#[derive(InputObject, Debug)]
pub struct Request<T: Serialize> {
pub parameters: T,
}
#[derive(InputObject, Debug)]
pub struct ListRequest<T: Serialize> {
pub page_number: Option,
pub page_size: Option,
pub parameters: Request< Option< T > >,
pub order_fields: Option<Vec>,
pub search_global: Option,
pub search_fields: Option<Vec>,
}
the plan is after do something like:
#[derive(InputObject, Serialize)]
pub struct UserList(ListRequest< UserFilter >);
however when I tried to compile I'm getting this issue ?
error[E0412]: cannot find type T in this scope
--> src/feature_modules/common_module/request.rs:6:21
|
6 |     pub parameters: T,
|                     ^ not found in this scope
error[E0412]: cannot find type T in this scope
--> src/feature_modules/common_module/request.rs:59:36
|
59 |     pub parameters: Request<Option< T >>,
|                                    ^ not found in this scope
I just noticied that if I remove the derive to InputObject it works, so I don't know if that is supported and/or if I'm making something wrong, I will apreciate if you could give me a little bit of guidance with this please?

You need to declare what type and name of type will be used with Generic.
You can try this code below.
#[derive(InputObject, Debug)]
#[graphql(concrete(name = "UserFilterListRequest", params(UserFilter)))]
pub struct ListRequest<T: Serialize> {
    pub page_number: Option,
    pub page_size: Option,
    pub parameters: Request< Option< T > >,
    pub order_fields: Option<Vec>,
    pub search_global: Option,
    pub search_fields: Option<Vec>,
}

Refs: https://async-graphql.github.io/async-graphql/en/define_input_object.html#generic-inputobjects
Please wrap your code with "" and "".

Thanks a lot for your reply I will do that!! I will close this since it is exactly what I need,


reduced_genome.sh takes a lot

Hi, I am trying to create a reduced genome with your script in order to have my analysis as similar as yours. However, the script reduced genome takes a lot (almost 6 hours) and the file:
${genome}_${enzyme}flanking_sequences${fl}_unique.fa
Is empty afterwards, and I can't continue with downstream analysis, is there another way to reduce the genome or do you have  previously reduced genomes?
P.D: The step that takes a lot line 32 in the script when it does grep -xF -f - -B 1
best, Inigo

What genome are using? and can you send me the enzyme and size of the fragment?

Thank you for you for your fast answer.
I am working with the human  hg19, and the enzyme I am using is dpnii (restriction site GATC). Then length of my reads is 60.
Thank you very much one more time
best,

What is the size of the read excluding the barcode (if any), bait primer and restriction enzyme site?

The size of the read is 60 (21 nucleotides primer+dpnii site and 39 the bait) the bait primer is GCAAGTGCCCTCATGTGATC were the last four letters (GATC) are the restriction enzyme site

Hi, Sorry just to double check again but the sequence you just sent is 20bp not 21.

Yeah, I am sorry, I was wrong, it is 20 nucleotides of the primer, not 21.

I created a reduced genome for 39 and 40 bp. you can download the files here - https://drive.google.com/open?id=0B0wnRGWP-yayNlh4UmVWcW1BTlU

That's awesome, thank you very much. However let me bother you with just a few questions. I actually have 3 viewpoints to analyze. Did you change the scripts to reduce the human genome?
In case you did change the script, could you please share it with me in order to be able to analyze the rest of the viewpoints?
In case you did not change the scripts, could you please let me know what computing resources are you using to create the file?
best,

Hi, I did not change the script. I run this script on our institutes computing facility using 1 node, 1 core and 40GB memory and the runtime is between 1-2 hours depending on the genome and enzyme.


Create list of all event across all the components and stores

Would love to have a go on this task. A description would help clear things up.

Please go on!

Can this go into a separate .md file? Or is there a specific place in the codebase you want this list of events?

Separate file is fine. Please put it into /doc folder and link from README.MD

Would be Great if you could paste some links to the reference $emits of these events by pasting the Github permalinks (click on the left gutter of any source code line on github.com and choose Copy permalink)
It will make this documentation really useful and interactive


TextField label padding is inconsistent when using rounded TextField borders

As the title says, textfield labels have some strange, ugly behavior when floating on a rounded border.
Here's how to reproduce:
TextField(
  decoration: InputDecoration(
    enabledBorder: OutlineInputBorder(
      borderRadius: BorderRadius.all(Radius.circular(32)),
    ),
    focusedBorder: OutlineInputBorder(
      borderRadius: BorderRadius.all(Radius.circular(32)),
    ),
    labelText: '|',
    prefixIcon: null, //Icon(null),
    floatingLabelBehavior: FloatingLabelBehavior.always,
  ),
),

This widget will display the issue. In order to make the label's padding become normal again, you can either:

use the Icon(null) for the prefixIcon, or
set the border radii to a small value like 2-3.

However, both of these options have drawbacks. In the first option, you move the text and label to the right by 48px (the empty icon's constraints), which is quite massive and often ugly. In the second option, well you just lose your rounded borders.
Expected behavior would be consistent padding between the label text and the border, no matter where the label is and how rounded the border is.
Here's flutter doctor -v:

[√] Flutter (Channel master, 2.6.0-1.0.pre.154, on Microsoft Windows [version 10.0.18363.1734], locale fr-CA)
• Flutter version 2.6.0-1.0.pre.154 at C:\Flutter\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 36531fbc9f (32 hours ago), 2021-09-01 03:41:03 -0400
• Engine revision c31aba1eec
• Dart version 2.15.0 (build 2.15.0-66.0.dev)
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdk to update to that location.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
[√] VS Code (version 1.59.1)
• VS Code at C:\Users\matpa\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.25.0
[√] Connected device (2 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.159
• Edge (web)   • edge   • web-javascript • Microsoft Edge 92.0.902.84
! Doctor found issues in 2 categories.

@mat100payette
There's a similar open issue describing your case, https://github.com/flutter/flutter/issues/82321
Please follow-up there for updates.
Closing this as duplicate.


Feature/bmauer/fixes #2440

Fixes issue #2440
This allows one to do arithmetic expressions with bundles.
How, still no arithmetic allowed with any collection that has the split field option.
I also added some new features to ExtDataDriver.x to add a bundle to the export state so I could debug this

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Trivial change (affects only documentation or cleanup)

Checklist:

[X] I have tested this change with a run of GEOSgcm (if non-trivial)
[X] I have added one of the required labels (0 diff, 0 diff trivial, 0 diff structural, non 0-diff)
[X] I have updated the CHANGELOG.md accordingly following the style of Keep a Changelog

Looks like exactly one ExtData case is failing? Interesting.

Looks like exactly one ExtData case is failing? Interesting.

Yep, I just reproduced, case18, that's weird. I'l investigate.


fix for issue #1021

Re-used the original technique for scanning not-well-formed tags from Waipoint: Headline with the h2 Element (http://www.freecodecamp.com/challenges/waypoint-headline-with-the-h2-element). Also adjusted assertion messages to be worded in the same way as much as possible (for consistency).
Here is the preview snip of how these changes would actually render in the context of waypoint (see areas highlighted in red):

Appreciate your feedback very much!

Please change the title to be descriptive of the changes you have made.
Also state which issues, if any, that this PR closes in the description each on its own line. For example: closes #1337
see Pull-Request-Contribute


Rework and minimize docker image, add docker image publishing workflow

This PR proposes an adjusted docker image building (<90 MB image size), regtest (single node testnet) configuration with persistent test keys.
Also it adds a GitHub actions workflow to build docker images for amd64 and arm64 and publish it to dockerhub under smartbch/smartbch. The action is triggered upon a release tag creation. This action requires you to create smartbch account on dockerhub. Please add a github repository secret named DOCKERHUB_PASSWORD containing the password to login to dockerhub.
See detailed description in README.md
See resulting images in our repository https://hub.docker.com/r/mainnet/smartbch/tags?page=1&ordering=last_updated

Sorry that this PR was not merged because we are not good at Docker. I learnt a lot from it, thank you.


Add support for --inline flag when generating Slim and Haml

Summary
In order to have feature parity for all supported templating languages, this add --inline support to Slim and Haml generators.
Close #625

I just rebased from main and fixed the conflicts.

This is rad, thank you!


only extract the ClassPathXmlApplicationContext once

Description

This pull request is to make sure only extract the ctx once from the xml file org/apache/camel/spring/xml/handler/ErrorHandlerDefinitionParser.xml. There are four tests in this test class. Every test tries to call getBean() from ctx to get an instance with its name and type. However, getBean() is not changing contents in the ctx. In other words, given that all tests do not try to change the contents of this ctx context and they are just trying to read from it, we can just create the ctx once to speed up the this test class.
When run on our own machine, the test runtime can jump from 4.873 s to 3.2581 s after applying the change.
Target

[ ] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[ ] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[ ] I checked that each commit in the pull request has a meaningful subject line and body.

[ ] I have run mvn clean install -DskipTests locally and I have committed all auto-generated changes

Thanks, the test should really extend CamelSpringTestSupport and be something like
public class ErrorHandlerDefinitionParserTest extends SpringTestSupport {

    @Override
    protected AbstractXmlApplicationContext createApplicationContext() {
        return new ClassPathXmlApplicationContext("org/apache/camel/spring/xml/handler/ErrorHandlerDefinitionParser.xml");
    }

And ctx should then be applicationContext.
Can you try to change the PR to do that, thanks.

Thank you for the response. And I indeed find in the CamelSpringTestSupport, there is a place to only read the context once under certain conditions. I just refactored as you said but I am not sure if it looks OK.
Thanks a lot

Oh we cannot depend on camel-test-spring-junit5 as its a chicken and egg situation. As camel-spring-xml is a dependency on the test module, so you end up with circular dependency.

Oh, I see and I did not notice this. So do we just extend SpringTestSupport rather than CamelSpringTestSupport? And it seems SpringTestSupport does not have the same way to check isCreateCamelContextPerClass().
Thank you very much!

Did you notice that this was the only test that did this, or did you find others in camel-spring-xml

Thank you so much. I try to search in the test codes in camel-spring-xml and only find this test look like this as of now. However, there are indeed some tests like ParentContextRegistryTest (extends SpringTestSupport) and FindSingleByTypeTest (extends ContextTestSupport). For these two tests, maybe it's also better to choose CamelSpringTestSupport instead if there are no dependencies issues.

Most of the tests in camel-spring-xml extend org.apache.camel.spring.SpringTestSupport. That also provides the method getMandatoryBean(Class<T> type, String name) which would allow to simplify the code in your test.

Sorry closing old PRs - the camel-spring-xml should ideally be built before the test modules. And its fine for us as is.


🐛 fixed #569

The problem still persists, but maybe it has to do with the fact that I am using InMemoryDatabase for development.

The problem still persists, but maybe it has to do with the fact that I am using InMemoryDatabase for development.

Your issue is expected when using InMemoryDatabase, as it resets data each time you restart your application. This means every new session has different users, so tokens saved from a previous session won't match and can't be validated."

Hello @cptzig,
The in-memory database has many issues, which is even stated by Microsoft themselves, however we only have support for it for demo purposes. It would help if you used an actual database for development or production purposes, since otherwise, many odd errors will occur. If you don't have access to any external database, I recommend you set up a docker  container hosting either a Microsoft SQL Server database or a Postgresql database.
Once Docker is installed you open up a terminal and execute the following example command in this case for PostgreSQL:
docker run --name CleanArchitecture -e POSTGRES_DB='BlazorDashboardDb' -e POSTGRES_USER='postgres' -e POSTGRES_PASSWORD='postgrespw' -d --restart always -p 5432:5432 postgres

I hope this helps!
Kind regards,
Bram


APP-2999: CICD release in symphony repo

Idea is to keep to remove 2.0 and legacy profiles and to have a new release profile containing legacy + 2.0 - 2.0 examples.
-pl !symphony-bdk-examples does not works as intended by us as it does not exclude sub-modules (or we have to list examples modules + all examples submodules).
Alternatives using skipNexusStagingDeployMojo documented here seems cumbersome as only the configuration of the latest module in the mvn reactor is taken into account. For multi-modules project, it seems it is everything or nothing
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-deploy-plugin</artifactId>
    <version>2.7</version>
    <configuration>
        <skip>true</skip>
    </configuration>
  </plugin>

does not work as nexus plugin is used.
For releasing: we will deploy releases manually on ossrh from release branches and deploy snapshots automatically on symphony repo from master branch.

@symphony-youri The initial idea was dog fooding with internal team. Now, I'm finally wondering if it's still useful...

Not sure why the Snyk tests are failing (the reports show nothing)

We have to switch to gradle


CI log gathering is broken on master

Fix the following issues in the Jenkins CI sysdump gathering:

[ ] Runtime tests gather empty files (also affects eg cmds.log in k8s test runs)
[x] K8s tests gather files with the following contents:OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "exec: \"kubectl\": executable file not found in $PATH": unknown
command terminated with exit code 126

Runtime example build: https://jenkins.cilium.io/job/cilium-ginkgo/job/cilium/job/master/3522/testReport/junit/(root)/Suite-runtime/RuntimeConnectivityInVethModeTest_Basic_Connectivity_test_Test_NAT46_connectivity_between_containers/
(Empty files)
K8s PR example: https://jenkins.cilium.io/job/Ginkgo-CI-Tests-Pipeline/8630/testReport/junit/Suite-k8s-1/11/K8sServicesTest_Checks_service_across_nodes_Tests_NodePort_BPF_Tests_with_vxlan/
(Note inside the zip files prefixed with log-gatherer have the OCI runtime exec failed contents.)

I'm not sure that it's related but when my tests have failed on EKS the run is stuck collecting logs forever. I don't remember if the log-gatherer stuff replaced everything but in case it's related...

cmds.log is still empty in k8s test runs. Everything else in k8s seems to be working correctly.

Apparently this doesn't bother anyone enough to do something about it, so I'll close it out.


Deposit for BTC

Hello,
Thank you for this open source.
I have done this installation according to instructions provided and everything works fine.
I have a problem when I want to deposit for BTC when clicking on the Deposit button it will display - Method not found.
Help me to solve this problem.

Hi
the newest bitcoin version is not supporting accounts RPC. Try to use bitcoin 0.16.

Thanks
ok solve for BTC
now market pair only in BTC-LTC, how to add more market pair like MYCOIN-BTC or other altcoin?

In opensource version only one main coin is available (BTC or LTC or YOURCOIN etc). By default main coin is MC (Marycoin)

ok,
I made a deposit then I made a withdrawal but the balance did not show the latest balance change.

Looks like a bug

how to solve it?

I dont know. I do not have that

ok try find it


Not possible to share project documents with non-portal users

From within the Documents app, a document can be shared with external users using a link:

However, this feature is not available from within Project Documents, which is confusing to the user:

@dokterbob Yes, sharing settings is not allowed in project documents. We work on this feature, and it will be available in next versions.

Great to hear you’re working on it! Nothing’s perfect from the start. ;)


Request for different spectral models in TSMap.py

Currently TSMap.py is hard-coded for a powerlaw spectral model, with piv and index passed as parameters. We should be able to pass a 3ML spectrum instead.
@PbU-Jason

@Yong2Sheng is this still the case? If no, please go ahead and close this issue.

Hi @israelmcmc, now the notebook uses a powerlaw spectrum model (hard-coded). Do you mean to use a 3ML module to define custom model by the users? Thank you!


Kotlin DSL Support

Are there plans to officially support the Kotlin Gradle DSL now that it is 1.0?
https://blog.gradle.org/gradle-kotlin-dsl-release-candidate
instead of having to write code like:
publish(delegateClosureOf<PublisherConfig> {
    repository(delegateClosureOf<GroovyObject> {
      setProperty("repoKey", "libs-release-local")
      setProperty("username", ArtifactoryCredentials.getCredentials(properties))
      setProperty("password", ArtifactoryCredentials.getCredentials(properties))
      setProperty("maven", true)
    })

Two years passed. Is there anyone? Is this project abandoned or something? We deciding whether we should use Artifactory, and luck of clear documention, broken examples and absence of support for production features like Kotlin DSL looks like bad sign for me.

You don't need this plugin to use Artifactory, Artifactory is great solutions itself, but to publish something to it just use standard Gradle publishing plugins, so for maven dependencies just use the standard Gradle maven-publish plugin, which not only works fine for Kotlin DSL, but also supports publishing Gradle Metadata
This plugin always was quite redundant and not very useful

You don't need this plugin to use Artifactory, Artifactory is great solutions itself, but to publish something to it just use standard Gradle publishing plugins, so for maven dependencies just use the standard Gradle maven-publish plugin, which not only works fine for Kotlin DSL, but also supports publishing Gradle Metadata
This plugin always was quite redundant and not very useful
If you really want to set some custom Artifactory properties for some reason, just write a custom task with simple POST request, it's easier than use this plugin and it doesn't break normal Gradle publishing flow

I hear it for the first time. This important info absent in documentation:

https://www.jfrog.com/confluence/display/JFROG/Maven+Artifactory+Plugin
https://www.jfrog.com/confluence/display/JFROG/Gradle+Artifactory+Plugin

And even worse, all the starting guides and examples uses it:

https://www.jfrog.com/blog/gitlab-and-artifactory-on-your-mark-get-set-build/
https://www.jfrog.com/confluence/display/JFROG/QuickStart+Guide%3A+Maven+and+Gradle

And even even worse, none of this examples is working.
You can imagine that this is highly unpleasant experience. In the first place for those articles which everyone who trying to start with Artifactory will use.
Please consider update those examples / documentation / plugin / JFrog CLI.

This pull request -
https://github.com/jfrog/build-info/pull/441 was kindly contributed by @sugarmanz and I believe it will be migrated soon. It adds Kotlin DSL support.
As for the issues you experienced with the plugin examples, I've just tried some of them and they worked as expected. I'd be happy to assist you using them.


improve RP enforcement with long intervals

Motivation: observing how much more resources are used in toolsus1 after changing RP enforcement from 12H to 1H (it's hard to be precise here, but somewhere in the neighborhood of +80% CPU and IOPs use).
This has caused some thoughts around: what's so bad about 12h enforcement? / how can we make 12h enforcement acceptable for wide use?
E.g.

Scheduling enforcement based on pod start time doesn’t work well with long intervals and frequent deployments (so look at scheduling enforcement based on a specific wall clock time rather than relative to pod start).
Long enforcement periods make it more important to not skip a scheduled time (so detect if RP enforcement didn’t happen at desired time due to pod roll)
It would be nice (from a resource perspective) if the various partitions on a pod applied their RP at different times, to diffuse the activity spike within the pod. (this may not happen due to current RP enforcement code path not acting on individual partitions)

Additional caveats discussed were: the need to have consistent RP enforcement times across the replicas of a given partition.

Closing  this for now while we work out what needs to be changed on the billing side in order to account properly.


Add maven auto formatter plugin

This is just a test PR to show how auto formatting could work in our project.
With this PR the formatter plugin would format the code when we are building the project.
PS: It's possible to change the formatter settings.
Would be great to know what you think about it. :)

In the "Files changed" Tab you can see the results of the formatter plugin.

I like the idea of having that formatter. Are the setting compliant with what the IJ rules does (as one of the last PRs introduced that format).
Ideally running the formatter on the code base after that commit should not change the code format at all.
And: is there a way to create editorconfig files from that format? While we (probably) all use IJ, there are other folks that use Eclipse or VS code


./configure: no such file or directory' error, why?

I solved

I solved

Can you tell me how you solve it?Thanks in advanced.

if you want to deep dive: link

This issue has a colution and can be fixed. CC @dpirch


support AEAD Ciphers: CHACHA20POLY1305, AES128GCM, AES192GCM, AES256GCM

support AEAD Ciphers: CHACHA20POLY1305, AES128GCM, AES192GCM, AES256GCM

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

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

I  have signed the CLA already but the status is still pending.

The CLA doesn't matter. Thanks for your contribution.
This is a large commit, so it would take some time to process.


Uncaught TypeError: Cannot read properties of undefined (reading 'getConstants') after just using import...

I have just installed it with: npm i react-native-esc-pos-printer
I am trying this on new react-native project. So I just initialized it with expo init and added import in app.js.
import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import EscPosPrinter, {
  getPrinterSeriesByName,
} from "react-native-esc-pos-printer";

export default function App() {
  return (
    <View style={styles.container}>
      <Text>Open up App.js to ss tart working on your app!</Text>
      <StatusBar style="auto" />
    </View>
  );
}

And then I get this error, am I missing something?
Uncaught TypeError: Cannot read properties of undefined (reading 'getConstants')
at ./node_modules/react-native-esc-pos-printer/lib/module/constants.js (constants.ts:16:1)
at webpack_require (bootstrap:24:1)
at fn (hot module replacement:62:1)
at ./node_modules/react-native-esc-pos-printer/lib/module/utils/getPrinterSeriesByName.js (getPrinterLanguage.ts:17:1)
at webpack_require (bootstrap:24:1)
at fn (hot module replacement:62:1)
at ./node_modules/react-native-esc-pos-printer/lib/module/utils/index.js (getPrinterSeriesByName.ts:12:1)
at webpack_require (bootstrap:24:1)
at fn (hot module replacement:62:1)
at ./node_modules/react-native-esc-pos-printer/lib/module/index.js (constants.ts:353:1)

Are you running it on Expo Go, or development client?

@AnointingMax Yes, Expo Go only has a set of native dependencies installed, so if you want this package you need to run your app on expo development client where all the native dependencies required by your app are bundled together


Discrete interpolation

This is a feature request, not a bug. It would be useful to provide interpolators for functions with continuous multidimensional domains and discrete ranges.
An example of this is is the share policy function ShareFunc of the PortfolioConsumerType when DiscreteShareBool==True. The policy function takes in (continuous) mNrm and outputs the optimal portfolio share, but the share is constrained to be in a discrete predefined set. Thus, a special interpolator with a restricted range must be used. This is done in the one-dimensional case starting at https://github.com/econ-ark/HARK/blob/b45cabdd5b3f4d079f1d11660e08167311dc9036/HARK/ConsumptionSaving/ConsPortfolioModel.py#L943
I anticipate multidimensional interpolators of this kind being useful in the future. The new portfolio model I'm working on could use one.

Past experience with this sort of thing leads me to believe that the easy way to do this is also the best way:  You do a continuous linear interpolation, and then pick whichever of the discrete options is the closest.  I can elaborate if you would like, to help you implement it in your model.

That makes a lot of sense. I will try it out!

Yeah, the method I used in PortfolioConsumerType doesn't extend nicely to
multidimensional interpolation.  I agree with Chris' suggestion, and the
easiest way to implement that is to have the discrete levels be
integer-valued in the interpolation, that way you can np.round the
continuous interpolated values, convert to int, and then just use that as
an indexing array for the true values:
approx_levels = continuous_interpolator(x_vals, y_vals)
rounded_levels = np.round(approx_levels)
index_array = rounded_levels.astype(int)
output = value_lookup_array[index_array]
return output
You could put all that on one line if you wanted, but it would be slightly
hard to read.
On Thu, Nov 12, 2020 at 8:07 PM Mateo Velásquez-Giraldo <
<EMAIL_ADDRESS>wrote:

That makes a lot of sense. I will try it out!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/econ-ark/HARK/issues/871#issuecomment-726440039, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ADKRAFLD4NMTJ3QN6GJDGP3SPSBDLANCNFSM4TT3YUAA
.

Yes!
An n-dimensional nearest-neighbor routine seems like much more trouble than it'd be worth. Rounding in the range seems like a way better approach.
I'll close this and report back with how it goes in case you want to merge the tool into interpolation.py.

Worked like a charm! Thank you both.


Support for Partial body lengths

Partial body lengths based on https://github.com/toofishes/python-pgpdump/blob/master/pgpdump/packet.py

Thanks!


Security Issue with Windows 11 - PowerShell

It looks like Windows 11 added another layer of security and enabling the virtual environment is non-trivial with the PowerShell (which is the new default 'Terminal')...

PS C:\Users\raymo\Documents> python -m venv openvino_env
PS C:\Users\raymo\Documents> openvino_env\Scripts\activate
openvino_env\Scripts\activate : File C:\Users\raymo\Documents\openvino_env\Scripts\Activate.ps1 cannot be loaded
because running scripts is disabled on this system. For more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ openvino_env\Scripts\activate
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

We should maybe add this to the known issue. Have to use this workaround.
https://stackoverflow.com/questions/18713086/virtualenv-wont-activate-on-windows

In the Windows instructions we say to use cmd.exe, not Powershell. Does that still work on Windows 11? https://github.com/openvinotoolkit/openvino_notebooks/wiki/Windows

Ooo! Yes, it works with cmd... and tested the workaround and it works with Powershell too. Phew.
Windows 11 now makes PowerShell the default. :\

We mention this in the troubleshooting section in the main README and in the Windows guide. Do you think more is needed @raymondlo84 ?
For me in Windows 10 Powershell has also been the default when shift right clicking on a folder for some time now (and with just right click there is also no "open with cmd.exe" either).

Got it!


remove -warn-error A

Don't use -w A and -warn-error A at the same time, it makes your build incompatible with future OCaml versions.

Indeed, thanks.


Only enums are generated

I only see these imports:
import { z } from 'zod'
import { AccountType, ErrorClassification, PaymentStatus } from './graphql'

But I don't see anything else, like this for example:
export type SubmitPaymentMutationVariables = Exact<{
  accountId: Scalars['ID']['input'];
  amount: Scalars['String']['input'];
}>;

Config:
import { CodegenConfig } from '@graphql-codegen/cli'

const config: CodegenConfig = {
  schema: [
    {
      [process.env.NEXT_PUBLIC_GRAPHQL_URL_SCHEMA as string]: {
        // @ts-ignore https://github.com/dotansimha/graphql-code-generator/issues/9309
        handleAsSDL: true,
        method: 'GET'
      }
    }
  ],
  documents: ['data/**/*.ts'],
  ignoreNoDocuments: true,
  generates: {
    './data/graphql/generated/': {
      preset: 'client',
      config: {
        strictScalars: true,
        scalars: {
          ID: 'string'
        }
      }
    },
    './data/graphql/generated/graphql.zod.ts': {
      plugins: ['typescript-validation-schema'],
      config: {
        importFrom: './graphql',
        schema: 'zod',
        strictScalars: true,
        scalars: {
          ID: 'string'
        }
      }
    }
  }
}

export default config

I did consider the workaround, even slightly modifying to be exactly like in #303 but it's the same. Also tried yup but also the same.


Audio Problems (Satellite / Base)

I'm following the Tutorial (https://rhasspy.readthedocs.io/en/latest/tutorials/), specifically the section on "Test Microphone". I can select my microphone from the PyAudio menu, but when I test it, it just reverts to the "Default Device".
I've tried multiple mics (all USB), with the same effect. My USB speaker does work, for reference. The microphones work with arecord, so that's a plus, just not PyAudio.
I also keep losing text-to-speech, as well as the recorded audio of the last command. The intent is still sent and subsequently recognized by the base server (timeout error is the reported problem). This is the same whether I run TTS on the satellite or on the base server. My USB speaker still beeps when woken.
I'm running on a Raspberry Pi 3B+, as a remote site with a Hassio connected base station.
If it's of interest, the error log. It seemed to start after I was trying to get intent working with Hassio.
Traceback (most recent call last):
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1821, in full_dispatch_request
    result = await self.dispatch_request(request_context)
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1869, in dispatch_request
    return await handler(**request_.view_args)
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__main__.py", line 1692, in api_text_to_speech
    results = await asyncio.gather(*aws)
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__main__.py", line 1678, in speak
    say_chars_per_second=say_chars_per_second,
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 616, in speak_sentence
    handle_finished(), messages, message_types, timeout_seconds=timeout_seconds
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 994, in publish_wait
    result_awaitable, timeout=timeout_seconds
  File "/usr/lib/python3.7/asyncio/tasks.py", line 423, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
[DEBUG:2021-06-17 19:49:19,894] rhasspyserver_hermes: Handling TtsSayFinished (topic=hermes/tts/sayFinished, id=a1a5e538-8f49-4238-8ebd-3d4c62e2e672)
[DEBUG:2021-06-17 19:49:18,884] rhasspyserver_hermes: Publishing 122 bytes(s) to hermes/tts/say
[DEBUG:2021-06-17 19:49:18,882] rhasspyserver_hermes: -> TtsSay(text='test', site_id='', lang=None, id='43b482ab-f865-4e43-bf02-a09407128905', session_id='', volume=1.0)
[DEBUG:2021-06-17 19:49:18,877] rhasspyserver_hermes: Subscribed to hermes/error/audioServer/play
[DEBUG:2021-06-17 19:49:18,875] rhasspyserver_hermes: Subscribed to hermes/audioServer//playBytes/#
[DEBUG:2021-06-17 19:49:18,873] rhasspyserver_hermes: Subscribed to hermes/error/tts
[DEBUG:2021-06-17 19:49:18,872] rhasspyserver_hermes: Subscribed to hermes/tts/sayFinished
[DEBUG:2021-06-17 19:49:18,869] rhasspyserver_hermes: TTS timeout will be 30 second(s)```

So I'm looking at my Hassio base station, and the logs suggest more timeouts.
[DEBUG:2021-06-17 21:59:02,322] rhasspyserver_hermes: TTS timeout will be 30 second(s)
[DEBUG:2021-06-17 21:59:02,322] rhasspyserver_hermes: -> TtsSay(text='this is a test', site_id='default', lang=None, id='6d007b7f-ddfd-480f-ab19-8dea61060ecf', session_id='', volume=1.0)
[DEBUG:2021-06-17 21:59:02,322] rhasspyserver_hermes: Publishing 139 bytes(s) to hermes/tts/say
[DEBUG:2021-06-17 21:59:02,365] rhasspytts_cli_hermes: <- TtsSay(text='this is a test', site_id='default', lang=None, id='6d007b7f-ddfd-480f-ab19-8dea61060ecf', session_id='', volume=1.0)
[DEBUG:2021-06-17 21:59:02,365] rhasspytts_cli_hermes: ['nanotts', '-v', 'en-US', '-o', '/tmp/tmphlmjb96q.wav']
Using Lingware directory: /usr/lib/rhasspy/.venv/lib/nanotts/pico/lang
read: 14 bytes from stdin
using lang: en-US
wrote "/tmp/tmphlmjb96q.wav" (35884 bytes)
[DEBUG:2021-06-17 21:59:02,387] rhasspytts_cli_hermes: Got 35884 byte(s) of WAV data
[DEBUG:2021-06-17 21:59:02,387] rhasspytts_cli_hermes: -> AudioPlayBytes(35884 byte(s)) to hermes/audioServer/default/playBytes/6d007b7f-ddfd-480f-ab19-8dea61060ecf
[DEBUG:2021-06-17 21:59:02,388] rhasspytts_cli_hermes: Waiting for play finished (timeout=1.37)
[DEBUG:2021-06-17 21:59:02,389] rhasspyserver_hermes: Handling AudioPlayBytes (topic=hermes/audioServer/default/playBytes/6d007b7f-ddfd-480f-ab19-8dea61060ecf, id=59704492-de8f-4b3c-bbb6-ed32f2b30403)
[WARNING:2021-06-17 21:59:03,760] rhasspytts_cli_hermes: Did not receive playFinished before timeout
[DEBUG:2021-06-17 21:59:03,761] rhasspytts_cli_hermes: -> TtsSayFinished(site_id='default', id='6d007b7f-ddfd-480f-ab19-8dea61060ecf', session_id='')
[DEBUG:2021-06-17 21:59:03,761] rhasspytts_cli_hermes: Publishing 84 bytes(s) to hermes/tts/sayFinished
[DEBUG:2021-06-17 21:59:03,762] rhasspyserver_hermes: Handling TtsSayFinished (topic=hermes/tts/sayFinished, id=59704492-de8f-4b3c-bbb6-ed32f2b30403)
[DEBUG:2021-06-17 21:59:03,763] rhasspyserver_hermes: -> AudioToggleOn(site_id='default')
[DEBUG:2021-06-17 21:59:03,763] rhasspyserver_hermes: Publishing 21 bytes(s) to hermes/audioServer/toggleOn

Issue resolved.
When I was doing some other work, I had accidentally removed the site ID "default". The box is pre-populated with a slightly grayed out "default", which caused me to overlook it.


Fixed dead link

This looks good. But Travis needs to be restarted.
/cc @kball @rafibomb

Thanks!


feat: add measurableSet_tendsto_nhds

Add measurableSet_tendsto: the set of points for which a measurable sequence of functions converges to a given filter is measurable.

I moved measurableSet_tendsto to an earlier file (right after the definition of IsMeasurablyGenerated). According to #find_home!, the second one should stay in the Polish file (we don't have a measure theory file about metrizable spaces).

Thanks!
bors merge


SassC fails after upgrading to Tailwind 3

After upgrading a Rails <IP_ADDRESS> app to the TailwindCSS 3, the following SassC error pops up. The odd behaviour is that this error only occurs in Github Actions, while locally everything works as inteded.
Failure/Error: Unable to find stdin to read failed line

ActionView::Template::Error:
  Error: Function rgb is missing argument $green.
          on line 436 of stdin
  >>   border-color: rgb(229 231 235 / var(--tw-border-opacity));

    ----------------^
# stdin:436
# ------------------
# --- Caused by: ---
# SassC::SyntaxError:
#   Error: Function rgb is missing argument $green.
#           on line 436 of stdin
#   >>   border-color: rgb(229 231 235 / var(--tw-border-opacity));
#
#      ----------------^
#   stdin:436

Any ideas?

I think I'm seeing something similar on my Rails app—everything works fine locally, but things break on CI.
In my case, the issue is with the hsla() function instead of rgb(), but it should be equivalent because I also have a CSS variable in a color function, which seems to be what LibSass is ultimately hiccuping on. I am currently trying to add an administration gem which depends on SassC, so the error is popping up for the first time.
When precompiling locally, I see no errors: Webpacker takes care of it. If instead I run RAILS_ENV=production bundle exec rake assets:precompile, I see an error equivalent to yours.
My understanding is that because I am using Webpacker in development, things ultimately rely on DartSass, which can deal with a CSS variable inside of a SASS function. SassC instead relies on LibSass, which is deprecated and thus never added and never will add support for this functionality.
Unfortunately, I've yet to find a solution—besides not using the gem which relies on SassC, which is a pretty undesirable solution.

I think I'm seeing something similar in my Rails app—everything works fine locally, but things break on CI. This is the output of RAILS_ENV=production bundle exec rake assets:precompile:
SassC::SyntaxError: Error: Function hsla is missing argument $lightness.
        on line 57 of stdin
>>   background: hsla(var(--primary-color), 1);

   --------------^

This error should be equivalent to yours as I also have a CSS custom property in a color function, which seems to be what LibSass is ultimately hiccuping on. For context, I am currently trying to add an administration gem which depends on SassC; this error is popping up for the first time because of that.
My understanding is that because I am using Webpacker in development, precompilation works without issue. Webpacker relies on DartSass, which can deal with a CSS custom property inside of a color function.
SassC instead relies on LibSass, which seemingly also implemented this functionality. The trail currently goes cold for me here. Maybe LibSass interprets the above as a SASS color function, while DartSass sees it as a CSS color function? Nothing but a vague guess on my part.
I've yet to find a solution—besides not using the gem which relies on SassC, which is not the most desirable.

@ggsp, I ended up switching to PostCSS which can mimick sass behaviour.


how to use in Module.php or in Controller?

Hi, please write how to use this module in other Module.php files or in other Controllers ?

Thanks for help.


[feat] module to import appropriate .env

It's great using azd to provision resources and being able to load the .env files using godotenv or whatever, but it would be even easier in projects using azd this way if we provided a library to make it easier e.g.,
func LoadEnv(env string) error {
    if env == "" {
        // get .azure/config@defaultEnvironment or err
    }
    // use godotenv to load environment's .env file,
    // optionally supporting fallback to/inclusion of any repo/ancestor .env file
}

It's not hard code to write, but any module support for azd (in Go or other languages) might help adoption.

Cleanly separated modules hasn't really been a focus of the team. In fact, it seems that the recent shift has moved us towards thinking about layers in some places.
That being said, the code to do this currently looks like something like: https://github.com/Azure/azure-dev/blob/bfc7050577348db4070f8888676ea24d0b501e03/cli/azd/cmd/util.go#L117-L127
With perhaps a substitution of azdContext.NewContextWithDirectory(<dir>)

I was actually thinking something outside of this module for use in other modules, so a log of this code may now work. Perhaps something that simply invokes azd env get-values --output json (optionally passing --environment {name}) and sets env vars similar to godotenv (doesn't override already-set env vars, though maybe that's optional).

@ellismg Want your advice here: is it wise at all for our tight partners to use our modules, or the version listed https://pkg.go.dev/github.com/azure/azure-dev@v0.0.0-20230525235853-f2aafb04f11b/cli/azd/pkg/environment?tab=versions? I'm not sure how our current module publishing works.

To be 100% honest - I am very nervous about us partners taking dependencies on any exported methods from the azure-dev modules.
Fundamentally, we don't think of the entire exported surface area of these modules as public.  We certainly don't intend to support the Go 1.0 promise of compatibility for all our exported members.
The artifact we ship today is the binary itself, and I view all the go code as an implementation detail of that binary.  Logically, we should view everything as under an internal folder.  Perhaps we should just do that at some point so folks can't accidentally break themselves into jail.  We had talked about restructuring the tree at one point and doing that, but we never wanted to deal with the churn.
I think we have enough work on our plate to build a great CLI tool and a set of experiences on top of that without bringing in the need to also produce and support a set of libraries for public adoption in addition to the application itself.

@ellismg said,

and a set of experiences on top of that

That's why I proposed this. I agree it's not pri-1, but azd provides a great opportunity to automate workflows that are consistent with interactive use. Having a read-only module that uses azd information to facilitate that seems to fit into that vision.
I'll prototype an idea using the EXE as the API, though stabilizing the CLI and output for something like azd env get-values (--environment {name}) --output json would be helpful. (Executables are APIs, too, as long as they are treated as such.)

It's not waiting on my feedback.


OSError: symbolic link privilege not held

Hi,
I want to use Ginza with spacy on Windows. I have the following error when running the code on python 3:
Code:
import spacy nlp = spacy.load('ja_ginza') doc = nlp('依存構造解析の実験を行っています。') for sent in doc.sents:     for token in sent:         print(token.i, token.orth_, token.lemma_, token.pos_, token.tag_, token.dep_, token.head.i)     print('EOS')
Error1: ModuleNotFoundError: No module named 'sudachidict'
During handling of the above exception, another exception occurred:
Error2: OSError: symbolic link privilege not held
I followed the instructions given on the Github page after pip install "https://github.com/megagonlabs/ginza/releases/download/latest/ginza-latest.tar.gz" . And when running command "ginza" on Anaconda prompt, I have the same error.
Should I remove sudachipy before running "ginza"?
Could you please let me know what is the solution to this problem?
Great idea integrating it to spacy btw.

For possible readers having the same issue, the solution is to run Anaconda prompt or Command Prompt as administrator.
However, I find unclear the following instructions:
**

Add ginza command
run ginza from the console
Change package structure
module package as ginza
language model package as ja_ginza
spacy.lang.ja is overridden by ginza
Remove sudachipy related directories
SudachiPy and its dictionary are installed via pip during ginza installation
User dictionary available
See Customized dictionary - SudachiPy

**
Should we remove sudachipy and why should we do so given that SudachiPy seems to be the morphological analyser behind Ginza?
Thank you for clarifying the instructions if possible for Windows users.

@MastafaF Thank you for reporting the install problem on Anaconda enveironment.
I heard there are some common problems while using pip over Anaconda.
I've been testing GiNZA on the latest release version of python3 but actually not for Anaconda.
I'd like to try to use Anaconda in future but it might take few months. Sorry for that.

I succeeded to install GiNZA in the standard pip install procedure on Mac OS 10.14.6 with Xcode 9.4.1, python 3.7.4, pip 19.0.3, Cython-0.29.13, spaCy-2.1.8, SudachiPy-9.4.0.
I'd try to change Xcode to the latest version 11.0.

This issue is not Anaconda specific issue. Since Windows requires administrator privileges to make a symlink, the issue occurs with an environment based on official PSF Python. Looking at the error message, it seems root cause came from sudachipy.
λ  python
Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import spacy
>>> nlp = spacy.load('ja_ginza')
Traceback (most recent call last):
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\sudachipy\config.py", line 55, in create_default_link_for_sudachidict_core
    dict_path = Path(import_module('sudachidict').__file__).parent
  File "C:\Python36\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'sudachidict'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\spacy\__init__.py", line 30, in load
    return util.load_model(name, **overrides)
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\spacy\util.py", line 164, in load_model
    return load_model_from_package(name, **overrides)
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\spacy\util.py", line 185, in load_model_from_package
    return cls.load(**overrides)
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\ja_ginza\__init__.py", line 12, in load
    return load_model_from_init_py(__file__, **overrides)
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\spacy\util.py", line 228, in load_model_from_init_py
    return load_model_from_path(data_path, meta, **overrides)
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\spacy\util.py", line 197, in load_model_from_path
    nlp = cls(meta=meta, **overrides)
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\spacy\language.py", line 173, in __init__
    make_doc = factory(self, **meta.get("tokenizer", {}))
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\ginza\__init__.py", line 49, in create_tokenizer
    return SudachiTokenizer(nlp)
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\ginza\sudachi_tokenizer.py", line 73, in __init__
    dict_ = dictionary.Dictionary()
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\sudachipy\dictionary.py", line 37, in __init__
    self._read_system_dictionary(config.settings.system_dict_path())
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\sudachipy\config.py", line 106, in system_dict_path
    dict_path = create_default_link_for_sudachidict_core(output=f)
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\sudachipy\config.py", line 71, in create_default_link_for_sudachidict_core
    dict_path = set_default_dict_package('sudachidict_core', output=output)
  File "C:\Users\chezo\source\ginza-test\.venv\lib\site-packages\sudachipy\config.py", line 47, in set_default_dict_package
    dst_path.symlink_to(src_path)
  File "C:\Python36\lib\pathlib.py", line 1325, in symlink_to
    self._accessor.symlink(target, self, target_is_directory)
  File "C:\Python36\lib\pathlib.py", line 393, in wrapped
    return strfunc(str(pathobjA), str(pathobjB), *args)
OSError: symbolic link privilege not held

Created a ticket to sudachipy issue https://github.com/WorksApplications/SudachiPy/issues/107


Fix specimen table creation race conditions

Rationale
Provenance tests are failing with various specimen table creation race exceptions

FlowSpecimenTest failure above is unrelated. Git suites also ran, showing passing provenance tests:

https://teamcity.labkey.org/viewLog.html?buildId=1691135&buildTypeId=LabkeyTrunk_GitPostgres
https://teamcity.labkey.org/viewLog.html?buildId=1691133&buildTypeId=LabkeyTrunk_GitSqlserver2014


层次化文本分类有此功能嘛？ 能否用paddleNLP实现

例如腾讯的Neural Classifier 的类似功能。

层次分类模块功能正在开发中，目前处于pr阶段层次分类PR。未来PaddleNLP将搭建文本分类应用模块，支持多分类、多标签分类、层次分类的训练、预测和多种部署方式。

层次分类模块功能正在开发中，目前处于pr阶段层次分类PR。未来PaddleNLP将搭建文本分类应用模块，支持多分类、多标签分类、层次分类的训练、预测和多种部署方式。

能用于 商品同款匹配嘛  https://cloud.tencent.com/developer/article/1063204

层次分类模块功能正在开发中，目前处于pr阶段层次分类PR。未来PaddleNLP将搭建文本分类应用模块，支持多分类、多标签分类、层次分类的训练、预测和多种部署方式。

怎么用于 中文， 商品的同款匹配

层次分类模块功能正在开发中，目前处于pr阶段层次分类PR。未来PaddleNLP将搭建文本分类应用模块，支持多分类、多标签分类、层次分类的训练、预测和多种部署方式。

数据集没给，到哪里下载？ 如果直接运行， 报那个链接404：
ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/2.2.2/datasets/wos/wos.py (ConnectionError(MaxRetryError("HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /huggingface/datasets/2.2.2/datasets/wos/wos.py (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000013E9C199048>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed'))")))

wos数据集已内置在PaddleNLP中,使用
from paddlenlp.datasets import load_dataset
train_ds, dev_ds, test_ds = load_dataset("wos", splits=["train", "dev", "test"])
train_ds[0]
# {'sentence': 'traditional fluid-structure interaction techniques are based on arbitrary lagrangian-eulerian method, where strong coupling method is used to solve fundamental discretized equations. after discretization, resulting nonlinear systems are solved using an iterative method leading to set of linear subsystems. the resulting linear subsystem matrices are sparse non-symmetric indefinite with small or zero diagonal entries. the small pivots of these matrices may render the incomplete lu factorization unstable or inaccurate. to improve that, this paper proposes an approach that can be used together with a stabilization and offers an additional feature to be used to gain an advantage in its parallelization. (c) 2016 published by elsevier ltd.', 'level 1': ['CS'], 'level 2': ['Parallel computing']}

本层次文本分类任务目前主要用于对文本片段进行分类，确定文本在不同层次标签中所属的类别。中文商品匹配可以参考application中语义索引任务进行搭建

wos数据集已内置在PaddleNLP中,使用
from paddlenlp.datasets import load_dataset
train_ds, dev_ds, test_ds = load_dataset("wos", splits=["train", "dev", "test"])
train_ds[0]
# {'sentence': 'traditional fluid-structure interaction techniques are based on arbitrary lagrangian-eulerian method, where strong coupling method is used to solve fundamental discretized equations. after discretization, resulting nonlinear systems are solved using an iterative method leading to set of linear subsystems. the resulting linear subsystem matrices are sparse non-symmetric indefinite with small or zero diagonal entries. the small pivots of these matrices may render the incomplete lu factorization unstable or inaccurate. to improve that, this paper proposes an approach that can be used together with a stabilization and offers an additional feature to be used to gain an advantage in its parallelization. (c) 2016 published by elsevier ltd.', 'level 1': ['CS'], 'level 2': ['Parallel computing']}

FileNotFoundError: Couldn't find a dataset script at G:\googleDownload\PaddleNLP-hierarchical\PaddleNLP-hierarchical\applications\text_classification\hierarchical_classification\wos\wos.py or any data file in the same directory.

目前层次分类任务处于开发阶段，wos层次分类数据集读入方式出现变动，预计本周会重新提交新的pr

https://github.com/PaddlePaddle/PaddleNLP/tree/develop/applications/text_classification/hierarchical
文本分类应用已支持层次分类


Add support for python 3.7

Hi
Without this it is impossible to install using pip when running python 3.7.

Would be nice to get this into master and craft a release, so we can remove our patched fork. :smile:


Homebrew install steps out of date

The Mac OS Tezos client install instructions reference this Homebrew tap: https://github.com/tqtezos/homebrew-tq.git
However the tap seems to be no longer maintained. As many users are likely to be using Mac OS and trying to install tezos-client locally, this should be updated to something more up to date, like the releases here: https://github.com/serokell/tezos-packaging

Tap in tezos-packaging is currently a bit broken, see https://github.com/serokell/tezos-packaging/issues/134. Let's not update the documentation until the aforementioned bug is resolved :)

I just gave homebrew a try and it installed tezos-node version 7.2 and no Edo executables.  That's not useful.


local-clock-identity duplicates

The following attributes seem to be duplicates:

ptp-sync-pac/ptp-local-clock-identity
ptp-sync-pac/ptp-default-dataset/local-clock-identity

ptp-sync-pac/ptp-local-clock-identity:ClockIdentity [1] = 00:00:00:00:00:00:00:00 with comment "Identifier of the “physical” clock"
ptp-sync-pac/ptp-default-dataset/local-clock-identity:ClockIdentity [1] = 00:00:00:00:00:00:00:00 with comment "Identifier of the “physical” local clock."

If two different attributes, respective purpose should be explicitly described in the comments.
Otherwise ptp-sync-pac/ptp-default-dataset/local-clock-identity should be deleted.

Feedback:
agree with Michael comments that attributes are redundant.
Sync #52: We also think it is duplicated. But we don’t have opinion on which attribute to delete.

Proposal to the 5Gxhaul call on 19th of July 2023:
The ptp-sync-pac/ptp-default-dataset/local-clock-identity should be deleted from the SyncModel.


Fix bug that checks is not removed when no checks.

Problem
When last check is removed, agent does not send checks.
Solution
Send empty list as checks.

LGTM!

thanks!


incorrect handling of openTypeCodePageRanges custom parameter

Hi,
I am trying to convert a Glyphs file that only has Thai set in OS/2 CodePageRanges.

But when using glyphsLib.build_masters() I get the following traceback:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/code/glyphslib/lib/python3.5/site-packages/glyphsLib/__init__.py", line 102, in build_masters
    minimize_glyphs_diffs=minimize_glyphs_diffs)
  File "/code/glyphslib/lib/python3.5/site-packages/glyphsLib/builder/__init__.py", line 90, in to_designspace
    return builder.designspace
  File "/code/glyphslib/lib/python3.5/site-packages/glyphsLib/builder/builders.py", line 201, in designspace
    ufos = list(self.masters)  # Make sure that the UFOs are built
  File "/code/glyphslib/lib/python3.5/site-packages/glyphsLib/builder/builders.py", line 139, in masters
    self.to_ufo_font_attributes(self.family_name)
  File "/code/glyphslib/lib/python3.5/site-packages/glyphsLib/builder/font.py", line 84, in to_ufo_font_attributes
    self.to_ufo_custom_params(ufo, font)
  File "/code/glyphslib/lib/python3.5/site-packages/glyphsLib/builder/custom_params.py", line 619, in to_ufo_custom_params
    handler.to_ufo(glyphs_proxy, ufo_proxy)
  File "/code/glyphslib/lib/python3.5/site-packages/glyphsLib/builder/custom_params.py", line 209, in to_ufo
    self._write_to_ufo(glyphs, ufo, ufo_value)
  File "/code/glyphslib/lib/python3.5/site-packages/glyphsLib/builder/custom_params.py", line 247, in _write_to_ufo
    ufo.set_info_value(self.ufo_name, value)
  File "/code/glyphslib/lib/python3.5/site-packages/glyphsLib/builder/custom_params.py", line 145, in set_info_value
    setattr(self._owner.info, name, value)
  File "/code/glyphslib/lib/python3.5/site-packages/defcon/objects/info.py", line 38, in setter
    raise ValueError("Invalid value ({0}) for attribute {1}.".format(repr(value), name))
ValueError: Invalid value ([874]) for attribute openTypeOS2CodePageRanges.

@BoldMonday Can you try renaming your custom parameter to codePageRanges? It should fix the problem.
The issue is that the code that translates from Glyphs codepage numbers to UFO codepage numbers assumes that if you name the custom parameter codePageRanges = it contains Glyphs values, but if you name it openTypeOS2CodePageRanges = it contains UFO values. From your example, I think that my assumption is wrong is and the code should be fixed to always do the conversion.
@schriftgestalt Are the codePageRange values in Glyphs always in the same format? Or does it change depending on the name of the parameter? (I can't remember where I got that assumption from)
https://github.com/googlei18n/glyphsLib/blob/a480b86452dd42dc2b1903d56629e9d26415fea7/Lib/glyphsLib/builder/custom_params.py#L375-L392

Hey Paul
You are using the UFO name of the fontinfo.plist parameter, that’s why it is expecting a list of numbers like the UFO spec says.
You want instead to use the Glyphs.app specific name for the same value which is codePageRanges. With the latter glyphsLib should be able to translate between the constant strings (e.g. Thai) to the respective code page ranges bit number.

Jany won

Glyphs.app (2.4.1 or 2.5.2) gives the same dialog for codePageRanges or openTypeCodePageRanges and write the bits the same way (by CP number).
It seems glyphsLib should convert openTypeCodePageRanges the same way it converts codePageRanges.

@schriftgestalt Why are codepage range bits 29, 30 and 31 not supported by Glyphs?

because makeotf doesn't support them, and glyphs.app writes a OS/2 table override in the temporary features.fea that it sends to makeotf for compilation

Should be fixed with #390. Please re-open if it isn't.


KeyError: '33338203782'

There are several problems, and I solved some by myself.
(1) In utils.py line 49, I changed the font to a local font, like '/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf';
(2) I copyed transnetv2.py from https://github.com/soCzech/TransNetV2/tree/master/inference;
But then I found the errors as follows:

Can you kindly tell me how to solve it? Thank you very much!

Did you work on step 5 and step 6? Thank you so much!
Step 5: Download baseline model using link (https://pan.baidu.com/s/1CdCVNzFdF3U6I4ajfejYNQ?pwd=sfkq passcode: sfkq), and move the model ckpt_0_200_0.pth to this directory.
Step 6: Download baseline existing prediction using link (https://pan.baidu.com/s/1CdCVNzFdF3U6I4ajfejYNQ?pwd=sfkq passcode: sfkq), and move the prediction baseline_one_hot_pred_dict_baseline.pickle and gt_scenes_dict_baseline_v2.pickle to this directory

Yes, the file<PHONE_NUMBER>2.mp4 is in the  folder. By the way, there are two step3.

If so, the dictionary should have this file. I will check this tomorrow. Thank you so much!

Could you please check the number of keys in fnm_path_dict by print(len(fnm_path_dict.keys())) in line 30? If the number of keys is less than the number of mp4 files, around 800, the line 21 to 30 might be inaccurate. There might be some files not being included in the dict fnm_path_dict. Thank you so much!

You can also follow Google Drive Google Drive: https://drive.google.com/drive/folders/1xZN6tvefXXmpZlIZ6GoSUUxpDQQOSNfJ?usp=sharing  to download the data. Thank you!


exception handling for errors returned from terraform boot API

For errors returned from terraform boot API, currently the exception is not handled at all.
Exceptions of type Response must be caught and we must throw TerraformBootRequestFailedException with the error message coming from terraformboot Response object.

let me do it