Connections stay in idle in transaction state when db.session isn't explicity used

I've a problem with idle in transaction connections which aren't affected by shutdown_session
Here're simplified views for my application:
from dagama import db
from dagama.contracts import bp
from dagama.contracts.models import Contract

@bp.route('/')
def contracts():
    contracts_qs = db.session.query(Contract)
    n = contracts_qs.count()
    return Response()

@bp.route('/<int:id>/')
def contract_details(id):
    contract = Contract.query.filter(Contract.id == id).order_by(Contract.version.desc()).first_or_404()
    return Response()

And here are stats from production db:
datalake=# SELECT pid, application_name, client_addr, client_port, backend_start, xact_start, query_start,  wait_event, state, left(query, 64) FROM pg_stat_activity WHERE APPLICATION_NAME = 'dagama' OR client_addr = '<IP_ADDRESS>' ORDER BY query_start DESC;
  pid  | application_name | client_addr | client_port |         backend_start         |          xact_start           |          query_start          | wait_event |        state        |                               left
-------+------------------+-------------+-------------+-------------------------------+-------------------------------+-------------------------------+------------+---------------------+------------------------------------------------------------------
 41599 | dagama           | <IP_ADDRESS>  |       60396 | 2019-08-27 14:34:43.75638+02  |                               | 2019-08-27 14:34:43.793666+02 | ClientRead | idle                | ROLLBACK
 18338 |                  | <IP_ADDRESS>  |       58062 | 2019-08-27 14:09:13.919567+02 |                               | 2019-08-27 14:10:55.758383+02 | ClientRead | idle                | ROLLBACK
 30387 | dagama           | <IP_ADDRESS>  |       43526 | 2019-08-27 14:10:55.324834+02 | 2019-08-27 14:10:55.329896+02 | 2019-08-27 14:10:55.371686+02 | ClientRead | idle in transaction | SELECT metadata.rules.id AS metadata_rules_id, metadata.rules.co
 18154 | dagama           | <IP_ADDRESS>  |       57712 | 2019-08-27 14:09:11.633017+02 | 2019-08-27 14:09:13.906523+02 | 2019-08-27 14:09:13.982879+02 | ClientRead | idle in transaction | SELECT metadata.rules.id AS metadata_rules_id, metadata.rules.co
(4 rows)

Calling contract_details() results with connection with state = idle in transaction, but using db.session like in contracts() directly nicely rolls back and closes the transaction (xact_start is null).
Flask-SQLAlchemy should manually close thread-local session in shutdown_session, but it does only for db.session, so I have to manually rollback transactions which didn't call db.session explicity:
@bp.route('/<int:id>/')
def contract_details(id):
    contract = Contract.query.filter(Contract.id == id).order_by(Contract.version.desc()).first_or_404()
    db.session.object_session(contract).rollback()
    return Response()

Additional notes
I've described the problem on StackOverflow.
I've noticed similar problems in your issue section e.g. #531

Ok, root of the problem was found and was connected with model definition.
I've created new SQLAlchemy() object instead of the one initialized with the app.
So instead of
db = SQLAlchemy()

class Contract(db.Model):
...

I should have:
from dagama import db

class Contract(db.Model):
...

That's why calling Contract.query... generated connection which wasn't handled properly after app context was destroyed.


Add method getFileData, Use this for download file data.

How to use: after call getFile method you received information about file.
Use this information to call getFileData and you received the data file.
@link https://core.telegram.org/bots/api#file
Note: I do not know how to update the wii, must then put the new method.
Hugs

Add method getFileData, Use this for download file data.
Corrects the parameter of the method getuserProfilegetUserProfilePhotos

Hugs

@rflsouza thanks :smile:


Improve build documentation

h/t @janoc
Something kind of like the plugin one here: http://resource.osvr.com/docs/OSVR-Core/TopicWritingDevicePlugin.html
Right now the core build instructions are pretty terse and assume you can figure out a lot on your own, which isn't always true even for very experienced developers (partially because we're using a very modern way of using CMake, etc)

Does this include osvr-core build docs or just docs for writing a client application?

I think the idea was that this was for the whole osvr-core build - particularly if you don't/can't use boxstarter so your dependencies might not be found automatically, etc.

Things like setting CMAKE_PREFIX_PATH to include the root directories of the various dependencies, etc.


[Question] Node typings lack support for invoke events

System Information (Required)

SDK Language: NODE
SDK Version: 3.8.3
Development Environment: LOCALHOST

Issue Description
Invoke events are supposed to be handled using ChatConnector's onInvoke method.  But its type signature (https://github.com/Microsoft/BotBuilder/blob/3e3c40d6424b19c7d371a5cc4f3a86a68f560b25/Node/core/lib/botbuilder.d.ts#L3950) takes a handler with argument of type IEvent, which does not have the properties relevant to invoke events (most importantly, value).
This means that if we want to use invoke actions using typescript, in order to access the value property which we receive, we have to cast the event to any.
Presumably, there should be an interface for invoke events, and that is what the handler passed to onInvoke should take.

@oneeman What channel are you using? Invoke action is specific to MS Teams and is not supported on other channels.

Sorry, yes, I forgot to specify this is for MS Teams.

I'm closing this issue because it occurred to me to look in the botbuilder-teams library, which I am also using, and I see that the event type for invokes is in there.  Sorry for the trouble.  For what it's worth, the C# version of botbuilder does include some types for invoke events, which was throwing me off a bit.

@oneeman thanks for the update. glad to hear you found a solution


[Middleware] Can we have an option to configure which field user for basic authentication?

Simply leave email by default and allow us to pass smth like username.
Route::group(['middleware' => 'auth.basic:username'], function () { /* routes */ });

Just make your own middleware by extending the original.


hooks: support concurrent tests run

The Hooks.AddConnectivityTests method signature changed to support concurrent test run.

@tommyp1ckles kind ping)

Closing in favor of: https://github.com/cilium/cilium/pull/34427


Implement Automated Game Installation Process

When the game download is completed, automate the installation process. Especially for Online-fix games, where the rar files have the default password 'online-fix.me', this would enable automatic extraction and deletion of the rar files.

Good suggestion. Will be implemented in a future release.


Update ilogger.md

Addressing #41725

@rajkumar-rangaraj : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


Info button bottom right corner

Modify the button of info placed at the bottom right corner

Here you can find the design for this:
https://www.figma.com/file/UjXqpH7zF9NWlDjwa0WJt1/Info-button?node-id=1%3A199
I think we should use the accent color for it so the users can see it easily.


[Doc] Fix Improper Default value

What type of PR is this：

[ ] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[x] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

@mergify backport branch2.3 branch2.4 branch2.5

run starrocks_admit_test

@mergify backport branch-2.3 branch-2.4 branch-2.5


Eliminated ex-members of the project.

What does this PR do?

Removes the names of the ex-members of the team.

Related issues

Merge Checklist:

[ ] The branch is up-to-date (i.e. rebased) with the base branch
[ ] No code style issues

Próximamente hay que volver a agregar a los developers en la wiki, en la parte de credits o algo así.


[Say] Update mac-say utility

Description
Update the mac-say dependency to the latest. It changed its child-process dependency from execa to nano-spawn.
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

✅ Approved


Enable mlir quick tuning

(Once we've landed the new quick tuning list, there'll be a commit bump PR)
(Which might also fix a bug or two)


Subtype of filament

Is your feature request related to a problem? Please describe.
When we add filaments, we are not allowed to setup the “subtype”, I mean:
Material: PLA
Subtype: Marble, Silk, Basic, …
Describe the solution you'd like
Add a field for that
Describe alternatives you've considered
Adding this subtype to the “Name” field doesn’t allow us to search by colour or subtype, but is the only field where write this info.

you can add your own fields (>=0.15)

But custom fields are not “searchebles” (I mean, you cannot search “all silks you have” for example.
As workaround is fine the custom fields, but these fields are a kind of limited.
thank you for your response :)

it is the first implementation of the custom fields.. give donkie some time :)

i usualy stick the subtype in brackets. eg, PLA (Silk). that way when i filter i can filter by just pla and get all of the types or by a spesific type. dosnt let you filter by subtypes across different base types but that dosnt seem overly useful


update / remove packages to fix known vulnerabilities (npm audit fix)

fix known vulnerabilites using "npm audit fix"

Thank you!

Thanks for merging!


Fixes for the new eBPF code for older kernels

My latest eBPF set of changes broke some older kernel verifiers. This fixes that. I'm also allowing back ::1 as IP address, since now the problems are resolved. I tested manually in a VM with IPv6 as default and unless we allow 000...1 we get empty IP addresses, which is confusing. For example:
2024-07-22 15:45:12.72234512 (3.061628ms[109.172µs]) SRV 200 GET /ping [ as :39608]->[ as :8080] size:0B svc=[testserver go] traceparent=[00-33d9c8857a1b4616e4cba91594be1ed9-0000000000000000-01]

It should be:
2024-07-22 16:07:14.7224714 (142.44µs[52.119µs]) SRV 200 GET /ping [::1 as ::1:45672]->[::1 as ::1:8383] size:0B svc=[testserver go] traceparent=[00-7207d66f1d98b7a5688b5c041fc9f525-0000000000000000-01]

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 51.02%. Comparing base (f9a8d4b) to head (7f29bb3).

:exclamation:  There is a different number of reports uploaded between BASE (f9a8d4b) and HEAD (7f29bb3). Click for more details.
HEAD has 3 uploads less than BASE

Flag
BASE (f9a8d4b)
HEAD (7f29bb3)

oats-test
1
0

k8s-integration-test
1
0

integration-test
1
0

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1047       +/-   ##
===========================================
- Coverage   81.50%   51.02%   -30.49%
===========================================
  Files         139      139
  Lines       11113    11113
===========================================
- Hits         9058     5670     -3388
- Misses       1543     5053     +3510
+ Partials      512      390      -122

Flag
Coverage Δ

integration-test
?

k8s-integration-test
?

oats-test
?

unittests
51.02% <100.00%> (+0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


The default style (typeface) are not very readable

It seems that the default font that renders in the FlowDocument is not very readable. How should we change it? Setting the FontName in the FlowDocumentScrollViewer doesn't work?
Thanks in advance :)

(I don't understand English well, so the sentence may be broken)
We should change Markdown.DocumentStyle. This property value is set to FlowDocument.Style.
See gist for a short sample of Markdown.DocumentStyle.
If you want to change other items like headers, links and tables, See MainWindow.xaml and  Markdown.Demo.Styles.Default.xaml  in Markdown.Xaml.Demo.


Extension error in console.

Steps to reproduce the behavior:
Unfortunately I don't know what caused this.
Environment

Nova version: 6.2
Extension version: 2.3.0
TypeScript version: n/a
Sidebar information: Status Running, TypeScript Version 4.2.4
macOS version: 11.4.beta2
NodeJS information:

node version: 14.4.5
npm version: 6.14.5
installation method: installed from distribution installer downloaded from nodejs website

Extension console output
TypeScript Language Server[15:05:20.051000] [tsserver] npm WARN deprecated<EMAIL_ADDRESS>Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated<EMAIL_ADDRESS>fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated<EMAIL_ADDRESS>https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated<EMAIL_ADDRESS>Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated<EMAIL_ADDRESS>This is a stub types definition. browserslist provides its own type definitions, so you do not need this installed.

I think this is project specific - this extension doesn't have @types/browserlist in the dependency tree and has newer versions (newer than those recommendations) of fsevents and chokidar.
But, I'm not reproducing on TypeScript 4.2.4, node 14, npm 6 in a test project with<EMAIL_ADDRESS>and<EMAIL_ADDRESS>installed.

Is this actually causing bad behavior, or just showing up as a warning in the console?
What's the package.json/lockfile for your current project? (What has those specific packages/versions installed?)
If you run a npm/yarn install in the project, do you see these same warnings?

If this is actually project specific and isn't causing functional issues I'm probably going to close.


Fix memory management of cuda_array_interface views.

fixes #3333 fixes #3334

Fix view size calculation for strided cuda arrays.
Fix calculation of allocation size for views of strided memory segments
exposed via cuda_array_interface. from_cuda_array_interface must
consider array strides when determining size of referenced segment.
Add test covering cuda_array_interface views of strided memory.

Fix view creation for external cuda arrays.
Fix pointer creation for views of externally-managed cuda arrays. Return
MemoryPointer referencing the same external owner when creating a view,
rather than creating an OwnedPointer reference.
Test cuda array view getitem interface.

Codecov Report

Merging #3335 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3335      +/-   ##
==========================================
+ Coverage   80.82%   80.83%   +<.01%
==========================================
  Files         391      391
  Lines       77739    77739
  Branches     8754     8754
==========================================
+ Hits        62836    62837       +1
+ Misses      13557    13556       -1
  Partials     1346     1346

To be sure, I want to run a manual test against pygdf before merging.

Sounds great! Thanks for driving the testing.
On Thu, Oct 4, 2018, 10:52 Siu Kwan Lam<EMAIL_ADDRESS>wrote:

To be sure, I want to run a manual test against pygdf before merging.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/numba/numba/pull/3335#issuecomment-427110565, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AARQqI8WthNxGQDWs0kFOnEgTcHvONiHks5uhkqDgaJpZM4W16Iw
.


[docs] Fix a typo while reading the doc :)

[x] I have followed (at least) the PR section of the contributing guide.

@daemonsy thanks :)


feat: update gh actions yml

The latest Actions running has theproblem.
So update the checkout version and the actions-gh-pages version. But the actions-gh-pages latest release no solve this problem. The reference issue is open.
I have replaced the old version with JamesIves/github-pages-deploy-action.

Ref: New GitHub pages action

new actions test

Because the issue is resolved and released.
So I go back to the original actions version and upgrade the version to v 3.9.0 in the latest commits.

@Windfarer


Raw keyboard and mouse input support

I added support for raw input for apps that hook the joystick and where SendInput function doesn't work (github.com/oblitum/Interception)

issue 620


[Feature] Ability to disable all default prompts

Hey, thanks for this great app, I love it a lot :)
A power user gets frustrated when he wants to use prompts and when opening the prompt window via / hundreds of prompts popup, of which he never uses any. The prompts that he added himself get hard to select and find.
Due to power users using prompts many times per day, the frustration adds up, causing the user to quit and use another client. The user would love to use the app due to its other features, but this one is so essential that it is a dealbreaker. (Also applies to me 😬)
Solution: add the ability to disable default prompts and just use the manually added ones (similar to the feature of disabling default masks). Only list the prompts that the user manually added himself. Doing this makes the app much more attractive to power users.
Thanks!

Any update on this?


add .hx to MONO_EXTENSIONS

Let's add .hx extension to supported extensions.
Haxe is language which can be compiled to c#, it overrides path and line number using line directive.
This Haxe code:
 public static function main()
 {
        var array = 1...10;
        for (i in array){
            trace('Hello world $i');
        }

 }

will be compiled to this c# code:
public static void main() {
		unchecked {
			#line 5 "/Users/vadzimv/Projects/haxe_cs_debug/sample/Test.hx"
			global::IntIterator array = new global::IntIterator(1, 10);
			{
				#line 6 "/Users/vadzimv/Projects/haxe_cs_debug/sample/Test.hx"
				global::IntIterator _g = array;
				#line 6 "/Users/vadzimv/Projects/haxe_cs_debug/sample/Test.hx"
				while (( _g.min < _g.max )) {
					#line 6 "/Users/vadzimv/Projects/haxe_cs_debug/sample/Test.hx"
					int i = _g.min++;
					global::haxe.Log.trace.__hx_invoke2_o(default(double), global::haxe.lang.Runtime.concat("Hello world ", global::haxe.lang.Runtime.toString(i)), default(double), new global::haxe.lang.DynamicObject(new int[]{302979532,<PHONE_NUMBER>,<PHONE_NUMBER>}, new object[]{"main", "Test", "Test.hx"}, new int[]{1981972957}, new double[]{((double) (7) )}));
				}

			}

		}
		#line default
	}

Because of line directive mono debugger works well with .hx files, so I believe mono debugger can be used to debug haxe code for c# target without any other changes.

I would like to verify this. How do I compile Haxe to C# on macOS?

Please install haxe: https://haxe.org/download/
I've published a simple project for you to test: https://github.com/VysotskiVadim/haxe-vscode-monodebug-sample , just open, put breakpoint and launch.

@VysotskiVadim thanks a lot for the PR and even more so for the sample project! That helped a lot.

I'm glad to help! thanks.


Invalid Border Agent Locator in leader network data (unable to join)

I found that leader + commissioner can eventually go to an invalid state where Commissioner is sending keep alives and it is accepted by the leader but nobody can join.
The problem shows up when a border agent sent a leader petition in a child state (not leader, nor router). In that case a child RLOC is saved in network data Border Agent Locator.
When this thread device changes it's state to "router" its RLOC is changed but no-one updates this field in leader network data.
From this point a border agent sends LEAD_KA to the leader with commissioner session ID and gets valid response (Accept) but the border agent locator in the network data points to the device that doesn't exist.
I reproduced the issue using 3 ot_cli_ftd.

Run two clis and make sure that one is a leader and one is a child.
On the child cli run "commissioner start"
Make sure that it is still a child and verify netdatashow - this device RLOC should be found in network data. At this point any device can join as commissioner RLOC is the same as the one in network data.
Wait until commissioner changes state to router or force it by "state router"
Network data doesn't change and no other device can successfully join - never ...
This commissioner is sending LEAD_KA to the leader and gets Accept responses so that would mean that we have a valid commissioner and someone could join.

I couldn't find any related text in Thread docs but I think that leader could check border agent locator when he receives LEAD_KA.

@mwilniewiec, thanks for reporting this issue!
I agree that the Thread specification does not address how to handle RLOC changes.  The Thread Group is tracking this issue in SPEC-490, but that has gone stale.
I do agree that, at a minimum, that the Leader should update the Border Agent Locator TLV when noticing a change via the Keep Alive messages.  I've submitted #2596 to address this issue.
However, even with #2596, changes in the RLOC will go unnoticed until the next Keep Alive message is sent.  I see two options:

Send a Keep Alive message immediately after a role change.
Do not allow role changes while the device is a Commissioner.

Thoughts?

I don't think that the 2) approach (not allowing changes) will be a good solution. I would just go with #2596 and allowing mesh to heal after short period of time. Then, as optimization, reduce this time to minimum, hopefully to zero.


Rails/HttpPositionalArguments points offenses in rails 4.2 apps

It would be great for the new Rails/HttpPositionalArguments to be aware of the rails version it's inspecting to not suggest changes that incompatible with the running version.

Expected behavior
The get :method, params: { ... } syntax is only valid in rails 5 and above. However, rubocop points it as an offense to use positional arguments even in rails 4.2 applications. In those, using the get :method, params: { ... } syntax breaks tests.
I would expect Rubocop to not point out those as offenses if verifying rails 4.2 (or lower) applications.
Actual behavior
Rubocop points HttpPositionalArguments arguments but fixing them breaks the tests in Rails 4.2.
Steps to reproduce the problem

Create a new rails 4.2 app
Create a controller spec using get :show, id: 1
Run rubocop

RuboCop version
$ rubocop -V
0.44.1 (using Parser <IP_ADDRESS>, running on ruby 2.3.1 x86_64-darwin15)

There's not support for Rails versions in cops, so right now in such cases cops should just be disabled. I'm guessing we can add a TargetRailsVersion similar to TargetRubyVersion to handle this problem.

Oh... I had no idea there was not target rails...
That seems like a reasonable amount of work then. I'll give it a shot later and try to put a PR together if you think this would be valuable.
There is an obvious workaround so not rush at all:
I disabled that specific rule (using .rubocop.yml) on my project and just have a TODO to reenable when I migrate to Rails 5.

Yea I knew about this issue when I created the new cop.  Best scenario I could come up with was figuring out the rails gem version using something like Gem::Specification.latest_specs and searching for the rails version.  However, since rubocop is not always executed from the root of the project with bundle exec there is no promise that the correct gem would be found.

So what if we added a rails version detection mechanism like so:

def rails_version
  Gem::Specification.latest_specs.find {|f| f.name == 'rails' }.version
end

def rails5?
  rails_version >= Gem::Version.new('5')
end

I still think we should go down the TargetRailsVersion route.

Is there an approach or issue for that?

I don't think there's a ticket but you basically need to replicate the existing functionality for TargetRubyVersion.


Claim script tries to claim a future auction

Current ongoing auctuion state:
  *********  DutchX CLI - v0.7.11  *********
    Docker image: gnosispm/dx-services:v0.7.11
    Config file: ./conf/bots.js
    Run command: node src/cli/cli.js state GEN-WETH
  *********************************

[CLI] Getting docker image: gnosispm/dx-services:v0.7.11...
v0.7.11: Pulling from gnosispm/dx-services
Digest: sha256:9a7d788b93d60a80eede06250e73d85273c4edbd833591800258c9c8921418aa
Status: Image is up to date for gnosispm/dx-services:v0.7.11

[CLI] Run docker...
Secp256k1 bindings are not compiled. Pure JS implementation will be used.

2018-11-21T08:23:39.459Z INFO-cli
**********  State of GEN-WETH  **********

2018-11-21T08:23:39.460Z INFO-cli       Token pair: GEN-WETH

2018-11-21T08:23:39.460Z INFO-cli       Has the token pair been added? Yes
2018-11-21T08:23:39.460Z INFO-cli       State: WAITING_FOR_FUNDING

2018-11-21T08:23:39.461Z INFO-cli       Are tokens Approved?
2018-11-21T08:23:39.461Z INFO-cli               - GEN: No
2018-11-21T08:23:39.461Z INFO-cli               - WETH: No

2018-11-21T08:23:39.462Z INFO-cli       State info:
2018-11-21T08:23:39.462Z INFO-cli               - auctionIndex: 88
2018-11-21T08:23:39.462Z INFO-cli               - auctionStart: null
2018-11-21T08:23:39.463Z INFO-cli
2018-11-21T08:23:39.463Z INFO-cli       Auction GEN-WETH:
2018-11-21T08:23:39.463Z INFO-cli               Is closed: Theoretically closed
2018-11-21T08:23:39.463Z INFO-cli               Sell volume:
2018-11-21T08:23:39.464Z INFO-cli                       sellVolume: 4725.799288585764 GEN
2018-11-21T08:23:39.464Z INFO-cli                       sellVolume:<PHONE_NUMBER>5725542 USD
2018-11-21T08:23:39.464Z INFO-cli               Price:
2018-11-21T08:23:39.465Z INFO-cli                       Current Price: 0 GEN/WETH
2018-11-21T08:23:39.466Z INFO-cli                       Previous closing Price: 0.000363792583813195 GEN/WETH
2018-11-21T08:23:39.466Z INFO-cli                       Price relation: N/A
2018-11-21T08:23:39.466Z INFO-cli               Buy volume:
2018-11-21T08:23:39.467Z INFO-cli                       buyVolume: 0 WETH
2018-11-21T08:23:39.467Z INFO-cli                       Bought percentage: 100.0000 %
2018-11-21T08:23:39.467Z INFO-cli
2018-11-21T08:23:39.468Z INFO-cli       Auction WETH-GEN:
2018-11-21T08:23:39.468Z INFO-cli               Is closed: No
2018-11-21T08:23:39.468Z INFO-cli               Sell volume: 0
2018-11-21T08:23:39.469Z INFO-cli
**************************************

Logs from running the claim script:
2018-11-21T08:21:19.714Z INFO-dx-service:tasks:claimFunds Claiming funds
Secp256k1 bindings are not compiled. Pure JS implementation will be used.
2018-11-21T08:21:21.752Z INFO-dx-service:tasks:claimFunds Claiming for address 0x038cb2d468461dff612abb01d6ae40ab59c1a9c5 affected bots: Main buyer bot, Main seller bot
2018-11-21T08:21:22.846Z INFO-dx-service:services:DxTradeService I have to claim from 1 auctions as seller
2018-11-21T08:21:22.846Z INFO-dx-service:services:DxTradeService Claiming as seller GEN-WETH for auctions: 87,88
Error: gas required exceeds allowance or always failing transaction
    at /usr/src/app/node_modules/truffle-hdwallet-provider/node_modules/web3-provider-engine/subproviders/provider.js:19:36
    at XMLHttpRequest.request.onreadystatechange (/usr/src/app/node_modules/web3/lib/web3/httpprovider.js:118:13)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/src/app/node_modules/xhr2/lib/xhr2.js:64:18)
    at XMLHttpRequest._setReadyState (/usr/src/app/node_modules/xhr2/lib/xhr2.js:354:12)
    at XMLHttpRequest._onHttpResponseEnd (/usr/src/app/node_modules/xhr2/lib/xhr2.js:509:12)
    at IncomingMessage.<anonymous> (/usr/src/app/node_modules/xhr2/lib/xhr2.js:469:24)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)

It basically tries to claim funds from auction 88.
I tried doing claiming manually one by one with the CLI, and it turns out that it should have been claiming 86 and 87, while it trys to claim 87 and 88.

Thanks for reporting.
I think there's an issue claiming during a WAITING PERIOD, they usually last 10min so we never encountered this before.
We'll do a fix soon


Kong plugin request-transformer doesn't add header to upstream target

Is there an existing issue for this?

[x] I have searched the existing issues

Kong version ($ kong version)
2.6
Current Behavior
I'm trying to add customer header when kong is redirecting request to upstream target but that header is not added.
Here is kong.yml file I'm using:
_format_version: "1.1"

_transform: true

upstreams:
- name: game_upstream
  targets:
  - target: some-microservice.com:80

services:
- name: game_service
  host: game_upstream
  path: /api/
  routes:
  - paths:
    - /game/

plugins:
- name: request-transformer
  config:
    add:
      headers:
      - a:b
      querystring:
      - a:b

I print headers for each request in my upstream microservice and I don't see there header "a" with value "b", although according to documentation it must be.
I've tried everything(changing kong version, changing format version, removing path param from service, etc) but nothing works.
However!!! If I change config in such way that it contains only service, without upstream, then header "a": "b" is added to microservice.
Here is the kong.yml for this case:
_format_version: "1.1"

_transform: true

services:
- name: game
  url: https://some-microservice.com/
  routes:
  - name: game
    paths:
    - /game

plugins:
- name: request-transformer
  config:
    add:
      headers:
      - a:b
      querystring:
      - a:b

Please fix this bug or tell me what I'm doing wrong.
Expected Behavior
No response
Steps To Reproduce
No response
Anything else?
It's not a problem with request-transformer plugin, because when I replaced this plugin with my custom plugin that adds headers to request, I still got the same behaviour

I failed to reproduce the issue. This is what I see with an echo server:
GET /?a=b HTTP/1.1 200
Host: localhost:5678
Connection: keep-alive
X-Forwarded-For: <IP_ADDRESS>
X-Forwarded-Proto: http
X-Forwarded-Host: localhost
X-Forwarded-Port: 8080
X-Forwarded-Path: /
X-Real-IP: <IP_ADDRESS>
Content-Length: 4
User-Agent: insomnia/2022.6.0
Content-Type: text/plain
Accept: */*
a: b

I will attach docker files that I use in case if they will make any change
docker.zip


Scrape page after its contents are retrieved from server

Subject of the issue
I'm trying to grab a value from a page, but I need to tell X-Ray to wait until the contents are retrieved from server. Looking at the page's source code, there are tokens like {{selectedBundles.offer.term}}, {{selectedBundles.offer.bundleRackRate}}.
Your environment

version of node: v4.2.1
version of npm: 2.14.7
version of x-ray: 2.3.0

Steps to reproduce
var x = Xray();
var url = 'https://www.att.com/shop/u-verse/offer-Details.html?offerId=prod8560739';
var selector = 'div[view-bundle-details="viewBundleDetails"]';
var priceSel = 'span[ng-bind="selectedBundles.offer.bundleRackRate"]';
x(url, selector, priceSel)
(function(err, price){
console.log('Price: ', price);
});
Expected behaviour
Price should be 133
Actual behaviour
got undefined.

I think your problem is that some content on the page is altered via some Javascript code. The values you are trying to aggregate are maybe Javascript-generated. I don't know a lot of X-ray, but I think it only retrieves the HTML code and parses it without executing the JS code.
Am I right ?

There is an option to use PhantomJs as a driver.

Not sure why this is closed as there was no definitive solution to the problem.


children route has been rendered without matching url in no switch

just like this
<Router> <Route path="/a" exact component={ComA}></Route>                 <Route path="/b" exact component={ComB}></Route>                 <Route path="/render" exact>                     {                         data => {                             return (<div>render                                 render component                             </div>)                         }                     }                 </Route>                 <Route path="/C" exact component={ComC}></Route> </Router>
Now, the problem is, there is no Switch wrap these routes up,when I open links 'http://localhost:3000/404',normally,it should be rendered last route component 'ComC' on the web page,because I have not use Switch to  wrap these routes up.I can understand.But, why the component of url '/render' has also been rendered on the page.This must be unreasonable.Right?this is my question, thank you for your reading.

It depends on the version of RR you are working with. There was a breaking change in the last minor version. Previous of it routes with children rendered always, ignoring the path property. In the latest version it works as you expected it to work.


Preconditions for changesets

I would like to propose an addition to the changeset specification to allow changes to be only executed if a certain criteria/precondition is met. Something similar can be found in Liquibase (https://docs.liquibase.com/concepts/advanced/preconditions.html). A simpler version would be sufficient.
My scenario: I want to create a user for end-to-end tests that should not be present in the migration for the keycloak that will run in production. Thus, something like this would suffice:
changes:
  - precondition: ${E2E} == 'true'
  - addUser:
      name: e2e
  - updateUser:
     ...

I fear that such a preconditions evaluation:
changes:
  - precondition: ${E2E} == 'true'
  - addUser:
      name: e2e
  - updateUser:
     ...

Will take a while to implement. As far as i know there is no simple library that provides such features. My proposal would be to implement an enabled flag either per action or for the whole changeset. This enabled flag can than be set through parameter substitution allowing a dynamic toggle of changes.
id: initial-keycloak
author: klg71
realm: master
enabled: ${INTIAL_KEYCLOAK_ENABLED} # Either here
changes:
- addUser:
    actionEnabled:  ${INTIAL_KEYCLOAK_ENABLED} # or per action
    name: test
    enabled: true
    emailVerified: true
    attributes:
      test:
      - test
      - test2
...

@mthiele can you review the proposed solution?

Code and solution looks good to me. Please merge.

Reopen because it is not released yet

Released with version 0.1.31. Thanks for the issue @mthiele and code provided @sideisra! Will close this if no further requests occur.


Upload built wheels to PyPI

Is there something blocking wheels built from this from being uploaded to PyPI so it can be installed using pip normally instead of via git (and having to build every time)?

Hi @sassy-asjp the new Orekit jpype Python wrapper is now available on PyPi :) https://pypi.org/project/orekit-jpype/


Deployment fee is not included in totalFees

When I try to deploy a child contract from a parent, the deployment fee is not returned in totalFees of the transaction. It looks like it only considers gas fees for processing the message, and not the gas fee required for providing stateInit and its deployment. Ideally, totalFees should include deployment fees, and maybe a separate field can be used for gas fees.
In my tests, I try to calculate the balance of parent smart contract, after deploying a new child, but since deployment cost is not considered in totalFees, I have to compromise and use an approximation.

I've heard somewhere that totalFees are just wrong, but I'll have a look, cannot confirm or deny that.

maybe related to #55


Horizonal overflow with drop

A wide drop will overflow horizontally, making part of the drop invisible. This appears to be as-designed. Here is a jsFiddle illustrating the issue.
It would be really nice, if it is possible, if there were a way for a drop to re-position itself horizontally as it overflows.
The easiest end-user workaround is to add tetherOptions.constraints like this:
 new Drop(
   tetherOptions:
      constraints: [
        to: 'scrollParent',
        attachment: 'together',
        pin: true
      ]
  )

Here is a jsFiddle
Thanks to the brilliant design of tether, this works quite well. The only issue, as you can see from the latter jsFiddle, is that the arrow that points to the target is missing.
So really, what we're talking about here is the little arrow thingy. It's a small thing, but to some it's important, so I thought I'd mention it. :)
Cheers.

Bumping this; starting to use Drop and would love to use it more, but the constrainToWindow only seems to work for vertical positioning; horizontal simply overflows.

As a first step, I made some changes to drop and tether. Here's the same jsFiddle from above, with my updated drop.js file used. It keeps the default arrows and just forces the tooltip content to be constrained to the window. This can and should be improved so that the arrow is pointing to its target correctly imo.
In order to accomplish this, I introduced a new option to tether: keepElementAttached. When an element is pinned, its attachment to its target, and the target's attachment to it are both severed. With keepElementAttached, the element's attachment is retained, but the target's attachment is severed. This allows the element to be styled as it would if it were fully attached, but still remain inside the window.
Drop, by default, should set keepElementAttached to true in order to keep its arrows. So I added the new drop option retainArrows to facilitate this.

@markalfred That's awesome! Would you mind creating a PR with your changes to possibly get these changes into the project? Would love to iterate on your contributions as this is definitely an issues we've run into as well (and clearly many others) :smile_cat:

@geekjuice I've been playing with other potential solutions. For our project, we decided to patch drop so that a center-attached element could change to a left- or right-attached in order to keep it in the viewport. Which solution do you feel is more in line with the goals of the project?
Example:

I think that this is what most people (including myself) would expect to happen unless specified otherwise. This is really awesome though and I'd love to see how you are accomplishing this. Ideally, it would be nice to offer both solutions via some options, but if I had to choose one, definitely the latter. :+1:  :tada:

:+1: It's via a tether patch here. The example above uses these custom options:
tetherOptions:
  attachment: 'top center'
  targetAttachment: 'middle center'
  constraints: [
    to: 'window'
    attachment: 'together element'
  ]

But I can explore bubbling these settings up to drop itself.

Ah if it's through tether, I think it's better to keep it that way.

I'd prefer the latter solution as well, as the first solution could lead to the arrow no longer pointing to the target correctly. I vote for including the patch of markalfred in Tether.
@markalfred As tether is no longer CoffeeScript based, maybe you could redo your patch to fit the current Tether version? That'd be awesome :-)

@markalfred: I'm also interested in your auto-positioning patch. See #100.

+1 Is there any news on this matter? Horizontal auto positioning would be great!

I stumbled upon this problem as well and is currently using this workaround until it's fixed in the project:
/**
 * Create the drop and register subscription to open event
 */
let drop = new Drop(options);
drop.on('open', () => positionDrop(drop));

/**
 * Ensures drop is horizontally within viewport (vertical is already solved by drop.js).
 */
function positionDrop(drop) {
    let dropWidth = drop.drop.getBoundingClientRect().width,
        left = drop.target.getBoundingClientRect().left,
        right = $(window).width() - left,
        direction = dropWidth > right ? 'right' : 'left';

    drop.tether.attachment.left = direction;
    drop.tether.targetAttachment.left = direction;
    drop.position();
}

Did anyone have any luck with @streamside's code? It's not working for me

@streamside  code help me a lot. Thank you.
However it still contain a little bug which it does not support center align.

In case it's helpful to anyone, here's my iteration on @streamside's function to support center position
function positionDrop(drop) {
    let bodyRect = document.body.getBoundingClientRect(),
        dropHalf = drop.drop.getBoundingClientRect().width / 2,
        targetRect = drop.target.getBoundingClientRect(),
        targetCenter = targetRect.width / 2 + targetRect.left,
        horizontal = 'center'

    if (targetCenter - dropHalf < 0 ) {
        horizontal = 'left'
    } else if (targetCenter + dropHalf > bodyRect.right) {
        horizontal = 'right'
    }

    drop.tether.attachment.left = horizontal
    drop.tether.targetAttachment.left = horizontal
    drop.position()
}


Activating Open Collective

Hi, I'm making updates for Open Collective. Either you or another core contributor signed this repository up for Open Collective. This pull request adds financial contributors from your Open Collective https://opencollective.com/pixi.js ❤
What it does:

adds a badge to show the latest number of financial contributors
adds a banner displaying contributors to the project on GitHub
adds a banner displaying all individuals contributing financially on Open Collective
adds a section displaying all organizations contributing financially on Open Collective, with their logo and a link to their website

We have also added a postinstall script to let people know after npm|yarn install that you are welcoming donations. Feel free to remove it if you don't want it. [More info]
P.S: As with any pull request, feel free to comment or suggest changes.
Thank you for your great contribution to the Open Source community. You are awesome! 🙌
And welcome to the Open Collective community! 😊
Come chat with us in the #opensource channel on https://slack.opencollective.com - great place to ask questions and share best practices with other Open Source sustainers!

Codecov Report

Merging #6102 into master will increase coverage by 0.34%.
The diff coverage is 77.86%.

@@            Coverage Diff             @@
##           master    #6102      +/-   ##
==========================================
+ Coverage   70.68%   71.03%   +0.34%
==========================================
  Files         208      208
  Lines       10589    10630      +41
==========================================
+ Hits         7485     7551      +66
+ Misses       3104     3079      -25

Impacted Files
Coverage Δ

packages/core/src/shader/utils/defaultValue.js
19.04% <ø> (ø)
:arrow_up:

packages/mesh/src/MeshBatchUvs.js
11.76% <ø> (ø)
:arrow_up:

packages/core/src/shader/utils/mapSize.js
100% <ø> (ø)
:arrow_up:

packages/prepare/src/CountLimiter.js
100% <ø> (ø)
:arrow_up:

packages/text/src/TextStyle.js
96.87% <ø> (+0.01%)
:arrow_up:

...kages/settings/src/utils/maxRecommendedTextures.js
18.75% <ø> (ø)
:arrow_up:

packages/core/src/shader/Shader.js
51.85% <ø> (ø)
:arrow_up:

packages/core/src/textures/GLTexture.js
100% <ø> (ø)
:arrow_up:

packages/core/src/geometry/ViewableBuffer.js
23.8% <ø> (+1.85%)
:arrow_up:

packages/core/src/geometry/Geometry.js
41.35% <ø> (ø)
:arrow_up:

... and 170 more

Continue to review full report at Codecov.

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

Fixed base to be against dev.

ping @monkeywithacupcake

Closing because of inactivity. This needs a lot of work because of the monorepo setup. If changes are made, happy to re-open.

Could you push changes? Not seeing those yet. Maybe because it was closed?

@monkeywithacupcake how do we update the list of contributors in the future since all these are hardcoded?

@monkeywithacupcake how do we update the list of contributors in the future since all these are hardcoded?

thats a good point! is there a more dynamic approach available?

Closing this again because of lack of response. Would like to understand the mechanism for updating/regenerating sponsors on the README. It's not clear how that happens.


Version solving failed - doesn't see flutter dart 2.1.0 as actually being >=2.10

I don't understand why this fails to version solve....
Output from packages get...
The current Dart SDK version is 2.1.0-dev.9.4.flutter-f9ebf21297.
Because lmp2 depends on flutter_midi >=0.1.0 which requires SDK version >=2.1.0 <3.0.0, version solving failed.
Is 2.1.0 not >= 2.1.0 in the flutterverse?   Ideas other than fork flutter-midi and hack it's pubspec ?

You can use a dependency_override to force a specific package version: https://www.dartlang.org/tools/pub/dependencies#dependency-overrides.

I am not sure I follow why you say that is pre-release?  It is the version installed by the flutter 1.0.0 win stable installer.    Is there some way to get some version of flutter/dart sdk installed that will meet the condition of requiring sdk >=2.10 ?

I mean pre-release only in the sense of what semver considers in the version string.  That sounds like the correct version from flutter stable.
If you need a newer version of Dart/Flutter you can always switch to the dev or master channels, however those are by nature less stable than the stable branch. If you only need the newer version of a particular package and the dependency override works you might consider holding off until the next stable release.
We do guarantee that our 1st party plugins in packages will continue to work with the current flutter stable until the next stable release. In general though, nothing stops a package author from specifying an overly conservative constraint. That is the case that dependency overrides are for.

Ok, so I used the dependency overrides successfully by creating a local copy of the package, editing its pubspec to relax its sdk requirement, and using overrides in my consuming project's pubspec to tell it to use the local copy.   Which is ok anyway for me as it turned out the package I wanted to use needed to be enhanced significantly to actually do what I needed.   But I also had to do the same thing with another package purely to edit its its pubspec to relax it's overly conservative dependency constraints to not conflict with other packages I am using.   So it works, but it could get very messy very quickly.
Would be better I think if there was a way of not having to copy the overly conservative packages and use the local edited copy, but instead to simply say in my pubspec "I depend on package X that thinks it needs Y ver n but it doesn't really, ver m will do just fine, so can you please just pretend it said it only needed m and proceed on that basis?".


How to get the the total number of items (not items on first page) after filtering ?

How is it possible to get the total number of items before/after filtering using multiple filters or change please?
e.jplistState.itemsNumber only returns the items on the first page unfortunately
and this https://www.jplist.org/documentation/controls/counter doesn't do the trick either unfortunately. Is there a way to  globally get the total number of items ?

Use this: e.jplistState.filtered.length

Thanks @jiremek !!!


Add Version get

Fixes BlueBrain/nexus#1005

Adds a method to get the service Version
Adds Version type

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@a8efc33). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master     #311   +/-   ##
=========================================
  Coverage          ?   84.73%
=========================================
  Files             ?       22
  Lines             ?      452
  Branches          ?       94
=========================================
  Hits              ?      383
  Misses            ?       67
  Partials          ?        2

Impacted Files
Coverage Δ

packages/nexus-sdk/src/Version/index.ts
100% <100%> (ø)

packages/nexus-sdk/src/nexusSdk.ts
76.92% <100%> (ø)

Continue to review full report at Codecov.

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


bitrig support

This adds Bitrig support to the version of jemalloc (b001609) currently used by Rust.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see CONTRIBUTING.md for more information.

Have you tried sending this upstream to jemalloc as well? In general we try to be sure to land all patches there first before our own repos, and it looks like they'd be quite welcoming of this!

@alexcrichton I am upstreaming this patch here.

@alexcrichton this change was just upstreamed to jemalloc: https://github.com/jemalloc/jemalloc/commit/970fcfbca5dffda921394172c7298d274eebfd0e

Yay! Can you make a new PR with the included changes?


Support new thread and message attributes (position, message_count, total_message_sent)

Summary
https://github.com/discord/discord-api-docs/pull/5206
What is the feature request for?
The core library
The Feature
Message.position, should probably default to None outside of forum channels, or we could think about using -1 so its always an integer.
Thread.message_count
Thread.total_message_sent
However, there is a small implementation detail here:
Should we increment the message_count and total_message_sent variables when we receive a message_create event for the thread? I believe we should.
In addition, when we receive a message_delete event in a thread, we should decrement message_count if the thread is cached whether or not the message is cached.

I shall take a look at this.

Assigned you.

@rmblau are you still interested in implementing this feature?

Yes I am, I just got back from family vacation and can take a look at it this week.

Because there's no progress on this, I'm moving it back to up for grabs.

I shall take a look at this.


Corrupted decrypted string with emojis

I'm not able to encrypt a text with emojis in the server, and decrypt it in iOS.
Have you tested it?
Is there a way to do it?
Thanks

I acheived it with this code:
 if (isEncrypt) {         encryptor = _crypto2['default'].createCipheriv(this._algorithm, keyBl.toString(), ivBl.toString());         //encryptor.setEncoding(this._encoding);         //encryptor.write(text);         //encryptor.end();         //return encryptor.read();         var encrypted = encryptor.update(text, this._charset, this._encoding);         encrypted += encryptor.final(this._encoding);  }

Hi @AlbertMontserrat
I have problem same as yours. I already send a pull request to the author. But it seems they are busy to help us. If you want, just fix it by your self.
This problem is in c# (Back-end) you must modify it. This problem occurs when you try to encrypt a symbol text.
The only way to fix this error is to modify your back-end(c#) and get the converted UTF-18 encoding length from your StringToConvert.
Refer the link below and try it by yourself.
https://github.com/Pakhee/Cross-platform-AES-encryption/pull/45/files


As an analyst, I aim to fulfill the organization's request by providing information on the number of people who speak specific languages (Chinese, English, Hindi, Spanish, Arabic) in descending order, along with the percentage of the world population for each language so that I can contribute to understanding linguistic diversity globally.

Finished issue.


ROS2 Eloquent

Add support to ROS2 Eloquent

First step toward #37

Thank you!

You're welcome.


Under high pressure and hot business, QPS dropped bottom due to uneven flow control

Bug Report

What version of TiKV are you using?
v5.2.0
What operating system and CPU are you using?
DBaaS aws
Default OLTP recommended setup
Steps to reproduce
1、run sysbench prepare
sysbench --config-file=config oltp_insert --tables=512 --table-size=100000000 prepare
threads=512
What did you expect?
QPS cannot have a large drop
What did happened?
QPS dropped bottom

/assign Connor1996

/type bug

/severity major

under 1000 thread tpc-c 1k warehouse workload, severe performance degradation is observed caused by flow control

/severity critical

/remove-severity major

@dbsid How much QPS degression?

@dbsid How much QPS degression?

110k QPS --> 65k QPS, around 40% degradation.

@dbsid @zhangjinpeng1987 @Connor1996
Has regression been added so we can prevent performance regression being introduced and being released in production version?
cc @ heipark

Why this bugfix is considered as an improvement in the v5.2.2 changelog?


Use forked Repo until PR is merged at node-mihome

you can use "Pittini/node-mihome" as required NPM module in iobroker until the PR is accepted/merged at node-mihome.

adding the files this way will help you to avoid copying the files multiple times.
@Pittini maybe you can add this information to README :)

Very nice, i did not know this works. Thank you. I'll add it to the readme next update.

@ylmzdev I tested this yesterday and got some serious problems as described HERE .
I was not able to update or install adapters and allways got some errors with "node-mohime-38". Thank Proxmox I was able to backup to the state before but unfortunately that killed the log also.
What is curious, I was not able to put "Pittini/node-mohome" in Javascript-Adapter and I had to put the whole path to Pitiini's Github repository/node-mihome.
Before restoring the backup I tried to delete the path in Javascript-adapter and deleted whole node-mihome in iobroker folder manually, but no way.
Greets, Jürgen


Add light mode and dark mode

Add one button for dark mode and light mode

Hi @Gyanthakur, could you please assign this issue to me, as I want to work on this.

Hi @Gyanthakur, could you please assign this issue to me, as I want to work on this.

@yaten2302 working on this issue


Binary Search Tree Exercise

Hey I've been working on the BST exercise over at https://github.com/exercism/xcrystal/pull/72 - and while researching other implementations I noticed a lot aren't fully implementing a binary search tree.
We are only implementing and testing insertion and traversal, but not searching and deletion.  A binary search tree is a great data structure to learn and implementing all the operations provide additional challenge to the programmer.  Maybe we could structure the tests in approximate descending difficulty - search, traverse, insert, delete.
I also think we should separate tests which are language specific (with some sort of annotation) from the actual BST functionality (i.e. returning an enumerator).

We are only implementing and testing insertion and traversal, but not searching and deletion. A binary search tree is a great data structure to learn and implementing all the operations provide additional challenge to the programmer. Maybe we could structure the tests in approximate descending difficulty - search, traverse, insert, delete.

Some chaotically written down thoughts:
I like to add those options as suggestions when I nit them, but I kind of feel like search (#include?) should be mandatory for a BST. A nice thing about using #include? (I think) is that you can either include Enumerable, which gives you an easy solution, but isn't very performant ( vs ), or you can define it yourself to be more efficient. This is a nice way to let people decide for themselves which trade-offs they want to make.
It's worth pointing out that it's not necessarily standard to implement delete operations for binary trees, because in general doing so changes the performance behaviour of searching. Unless I'm much mistaken, depending on the order of operations, it's possible to end up with a tree in which searching takes .
There are also different ways of traversing the tree. Should we add those as well? More generally, what would comprise a "complete BST" and what goals would adding each requirement provide? Is the goal to introduce exercists to the data structure, to the ruby language and its features, or something else?

When thinking about what operations to include on a BST I look back to CS Data Structures course and they usually always go through the main 4 (Traverse, Search, Insert, Delete).
Quick question how would implementing delete change the behavior of search?  I've always seen these methods implemented separately of each other.
Regarding the different ways of traversal I don't think there is a "wrong" way, but through nits you can encourage more efficiency.  I think the goal this particular (and any algorithm type problem) is not only to practice the language but also learn the algorithm/data structure and its benefits since they are building blocks for a deeper understanding of programming in general.

@bmulvihill

Quick question how would implementing delete change the behavior of search? I've always seen these methods implemented separately of each other.

The delete operations can cause the tree to be unbalanced towards one or the other direction. It's possible to end up with a tree that looks like:
/\
  /\
    /\

This transforms the search from logarithmic to linear worst case and average case performance. The problem stems from the fact that while it is trivial to delete nodes that have either zero children or one child, deleting nodes that have two children mean that you now have to select a branch to be the top node. Depending on your bias towards either the predecessor or the successor child node, this can eventually lead to either a left-biased or a right-biased tree. This will lead to a tree that has linear performance for the major operations.
You can mitigate the problem by alternating left and right biasses. Experimentally (after many random insertions or deletions) this leads to O(sqrt n) average case performance, because deletions and insertions take place in random branches (apparently the alternating bias isn't quite enough to keep the tree perfectly balanced, but still good enough to prevent the tree from being linear). I'm pretty sure that nobody has proven this algebraically yet however, so that is still an open problem in computer science!

@remcopeereboom
Couldn't this problem also exist in insertion if we are always inserting values to one side of the tree, and wouldn't this be more of a problem of balancing the tree?  Which can be solved by more specific types of BST (i.e. Red Black Trees).  That would be outside the scope of this exercise though, or it could be a harder version of the same problem.

Couldn't this problem also exist in insertion if we are always inserting values to one side of the tree, and wouldn't this be more of a problem of balancing the tree?

Absolutely. Worst case performance of a BST is O(n), not O(log n). But generally we don't have worst case performance because we don't insert elements in monotonically increasing or decreasing order. Instead we insert elements at random. The average case or expected performance is O(log n) for a BST with random insertions. But only O(sqrt n) for a tree with random insertions and deletions.

Which can be solved by more specific types of BST (i.e. Red Black Trees).

A self balancing tree like a Red-Black Tree does solve this problem. In fact Red-Black trees are used specifically for this purpose!

Good points @remcopeereboom I had to do a little research and refresh my brain a bit.  I still think there is value in implementing the delete operation as it requires some thought, and is considered one of the basic operations of a BST (a least from an educational standpoint).  Through nits one can encourage a more robust BST, or this exercise could just be a "basic" BST and there could be a different exercise that builds on the basic tree and deals with balancing.

I still think there is value in implementing the delete operation as it requires some thought, and is considered one of the basic operations of a BST (a least from an educational standpoint).

I can get behind that.

Through nits one can encourage a more robust BST, or this exercise could just be a "basic" BST and there could be a different exercise that builds on the basic tree and deals with balancing.

There's value in both approaches. My concern with the nits is that I think most people won't get one. Perhaps some information in the README on the performance would nudge people in the right direction?

I've been working on writing new tests for this problem that fix some of the issues discussed above, will provide a little more challenge, and will hopefully guide people a little more to some Ruby conventions for data structures.
I am kind of stuck on whether to force the tree to add nodes in the order they are given or to allow people to reorder the tree as they see fit as long as they hold to the requirements that all value left are <= to the parent and that all values to the right are > to the parent. Didactically I think fixing the node order is best. It also has the benefit of making the tests easier. But the downside is that there is less flexibility in how to implement things. I would love other people's thoughts on that.
This question also has some implications for what to consider tree identity. Do we care only that the tree contains the same items, or do we care in which subtrees they are in. I am strongly leaning towards the latter, because it seems reasonable that if a == b, that a.left == b.left and a.right == b.right. That said, there are plenty of examples where that kind of transitive behaviour does not hold in Ruby (operations on Float's being a prime example).
class BST
  def self.new
    # Returns an empty tree.
  end

  def size
    # Returns the size of the tree.
  end

  def empty?
    # Returns true if the tree is empty, false otherwise.
  end

  def item
    # Returns the item at the root of the tree.
  end

  def left
    # Returns the left sub-tree.
  end

  def right
    # Returns the right sub-tree.
  end

  def include?(item)
     # Returns true if the item is in the tree, false otherwise.
  end

  def insert(item)
    # Inserts an item into the tree.
  end

  def delete(item)
    # Deletes the item if it is in the tree, does nothing if it is not.
  end

  def each_in_order(&block)
    # Yields the elements in sorted order
    # Returns an enumerator to each_in_order if no block is given.
    # Returns self if a block is given.
  end

  def ==(other)
    # Returns false if other is not a BST.
    # Returns true if item in root equals item in other's root and left == other.left and right == other.right,
    # false othewise.
  end
end


use (new) http->qop insted of http->algorithm to decide RFC 2617/7616 or RFC 2069 Digest response

starting point:
print to passwort protected queue does not work

Printer: HP Color LaserJet Pro MFP M479fdw
CUPS: 2.3.3op2
Queue: lpadmin -p ipptestuser -E -v<EMAIL_ADDRESS>-m HPP00013.PPD

Since that Printer+Queue worked before, I verified it with cups-1.5.4. and saved Job-Logs and tcpdump.
actual situation
The Printer Response: HTTP/1.1 401 Unauthorized contains
WWW-Authenticate: Digest realm="IPP-Print", nonce="23745ef9fd75fcb9c584f6bb637cd811", algorithm=MD5, qop="auth", opaque="6e07a11341adfad0dbb22d413520ece5", username="guest"

and CUPS send Request (Get-Jobs)
Authorization: Digest username="user", realm="IPP-Print", nonce="23745ef9fd75fcb9c584f6bb637cd811", algorithm=MD5, qop=auth, opaque="6e07a11341adfad0dbb22d413520ece5", cnonce="09E111C7E1E7ACB6F8CAC0BB2FC4C8BC2AE3BAAAB9165CC458E199CB89F51B13", nc=00000002, uri="/ipp/print", response="a2498fedd95d587a0f3917cd71a33a23"

which is correct but the job hangs and is not processed.
The printer expects a response after RFC 2069.
While reading the RFCs 2069/2617/7616 I noticed that it is better to look at qop instead of algorithm to decide whether the answer should be written according to RFC 2069 or RFC 2617/7616.
qop is not mentioned in RFC 2069 and in RFC 2617

qop
Indicates what "quality of protection" the client has applied to
the message. If present, its value MUST be one of the alternatives
the server indicated it supports in the WWW-Authenticate header.
These values affect the computation of the request-digest. Note
that this is a single token, not a quoted list of alternatives as
in WWW- Authenticate. This directive is optional in order to
preserve backward compatibility with a minimal implementation of
RFC 2069 [6], but SHOULD be used if the server indicated that qop
is supported by providing a qop directive in the WWW-Authenticate
header field.

./cups/http-support.c _httpSetDigestAuthString
If any HashAlg
   Follow RFC 2617/7616...
else
   Use old RFC 2069 Digest method...
   assume MD5 HashAlg

proposal
Evaluation of qop and
If any qop
   Follow RFC 2617/7616...
   if qop is "auth"
      test algorithms
      ...
   else
      skip while auth-int not supportetd yet
else
   Use old RFC 2069 Digest method...

I realize that with these changes the print will still not work because the printer does not react as expected to the correct answer, but I also reported it to HP.
My changes are in pull request #260

Is it possible that if we tried N times to request after RFC 2617/7616  and it didn't work, to fallback to RFC 2069?

@mgoppold I would hesitate to retry the legacy format (which is less secure) when the printer is returning the new format. Better to get them to fix their implementation...

@mgoppold I would hesitate to retry the legacy format (which is less secure) when the printer is returning the new format. Better to get them to fix their implementation...

And what about a queue parameter if i know the printer expect the lagacy format?

@mgoppold I hesitate to add any functionality to work around a problem like this because it gives the vendor an excuse for not fixing things and it breaks the "it just works" philosophy of IPP Everywhere/AirPrint.

@michaelrsweet I ' with you, but it doesn't cost anything to ask for it


Feature request: Finding a model by a field on a related model (similar to filter)

I have a number of models with slug fields that are essentially just pretty (human-readable) IDs, but I always keep a separate primary key field on the table as well. I do a lot of queries like this:
select * from part_manufacturers pm
join parts p on p.id = pm.part_id
join manufacturers m on m.id = pm.manufacturer_id
where p.slug = 'some_slug'
and m.slug = 'another_slug';

If I had the IDs, I could simply do select * from pm where part_id = X and manufacturer_id = Y. The reason I'm not using filters is because I don't actually want the parts or manufacturers rows, just the rows from part_manufacturers.
It would be great if there was a way to query like this:
PartManufacturer
.query()
.whereRelated('parts', {slug: 'part_slug'})
.whereRelated('manufacturers', {slug: 'mfr_slug'});

whereRelated would take 2 arguments, the first being the relationMappings key, and the second being either an object (for a where query), or a function that takes the QueryBuilder, similar to a filter.
What do you think?

There is a joinRelated method coming in 0.5.0. You can already use it by installing objection@next. It allows you to do this:
PartManufacturer
.query()
.joinRelated('parts')
.joinRelated('manufacturers')
.where('parts.slug', 'part_slug')
.where('manufacturers.slug', 'mfr_slug')


Remix.run integration as alternative to Next?

Hi All,
Amazing work so far, massive fan of this repo!
Remix being the new SSR framework from the guys who made React Router (Its pretty amazing).
www.remix.run <----------- pure awesomness
Just throwing this out there to hear your thoughts, do you think a Nextjs could be easily swapped out in favour of using Remix in this monorepo, would we be able to use shared screens?
Thanks for any help on this :)
😄

Hey Sean! Thanks! Sorry but this is out of scope, the goal of this example is to show how to use Next.js and Expo together. We are not planning to use Remix.

I opened a discussion on the Remix repo; I think that's a better place for this. Feel free to chime in: https://github.com/remix-run/remix/discussions/1578


File append string and File append line flipped on pxt.microbit.org?

Hi Guys,
just writing a simple data logger using PXT blocks via pxt.microbit.org, and am using the File system package to create a csv file.
It seems  like the append string() and append line(0 blocks have been flipped? i.e. append string adds a CRLF but append line doesn't?
Seems to be the behaviour of this script:

Did you reuse an old script? Make sure to use https://github.com/Microsoft/pxt-filesystem/releases/tag/v0.2.1
You can go to JavaScript, Explorer, click on the Update button of the file system reference.

It was swapped: https://github.com/Microsoft/pxt-filesystem/commit/f58da43cc3351e64d89ff8d1b70742d940367463

nope - this was a new created today...
Just teaching now, so will check versions later and report back.

I have a totally different code for using "Filesystem Functions" which requires defining a variable as a "File pointer". Here's my ticket:
https://github.com/Microsoft/pxt/issues/1577

Sorry for delay guys. Just updated the FileSystem package, verified version through explorer and compiled via JavaScript interface. The blocks still seem to be flipped. Here's the File System pxt.json:

Could you share the project? (share button)

@harveytwyman broken link

sure: https://pxt.microbit.org/23573-75266-92266-99248

I had forgotten to update the shims.d.ts file. Please try to update again.

https://github.com/Microsoft/pxt-filesystem/commit/b019f4f05a9a4bb3e42e036a55811f56cedaf4fd

@pelikhan
Yup - Now works perfectly. Thanks Peli!
p.s. This script also highlights a bug in the simulator - will raise a separate issue.


Prepare release 0.11.2

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.38%. Comparing base (724edee) to head (973461c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #547      +/-   ##
==========================================
- Coverage   90.39%   90.38%   -0.01%
==========================================
  Files         148      148
  Lines       10838    10838
  Branches      511      511
==========================================
- Hits         9797     9796       -1
  Misses        877      877
- Partials      164      165       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


add a generic oauth/oidc provider

First of all , Great project, thank you!
is it possible to add a generic oauth/oidc provider for self hosted instances, as I already got my private keycloak instance in place.
I know in golang a generic library exist, eg used in headscale https://github.com/juanfont/headscale/blob/06f07053eb3ef08c3236483891a94c0b81eb8393/hscontrol/oidc.go#L156
Based on
golang.org/x/oauth2
PS a sdk in golang would be nice too;)

Could you rephrase what you mean by an OAuth/OIDC provider? If what you mean is a way to use SSOReady to make SAML connections look like OAuth/OIDC servers, then I believe you may be looking for what we call SAML-over-OAuth. But if that's not what you mean, I'm all ears.
Golang SDK is in the works! Just need to wire up the codegen for it.

I am sorry for the misunderstanding.
https://ssoready.com/docs/self-hosting/self-hosting-sso-ready#supporting-login-methods
mention 3 different login methods. Is it possible to add other oauth login methods?

Thanks for getting back to me and clarifying. I understand what you mean.
The short answer here is: let me think about this.
Just to give you a sense of where my mind is at on this one, my thoughts with adding a custom OAuth login source sort of float around this:

How would we document this? Bearing in mind that most folks have difficulty keeping SAML alone straight, and many users rely on SAML-over-OAuth, it's confusing and mentally taxing even to have to evaluate whether any additional settings with "OAuth" in the name is relevant to them.
Adding to the confusion and just general subtlety of this ask, the ability to add a custom OAuth login method for app isn't something that would be used for the hosted instance at app.ssoready.com. It just doesn't make sense outside of a single organization's self-hosted instance. That would mean, among other things, that such a feature wouldn't be dogfood-able.
This feels like the sort of feature that could lead customers to accidentally pwning or really confusing themselves if they try to use it but don't configure OAuth properly or set up a trust relationship with an OAuth provider they shouldn't trust.
My experience is that as inconsistent as SAML can be at times, OAuth is comparably inconsistent as well. It's difficult in practice to just paper over all OAuth providers are being the same thing. I fear this will become a fountain of additional settings and sub-settings to accommodate various quirky OAuth servers.
(This is the most important point.) We're planning on adding support for logging into SSOReady using SAML, including for self-hosted deployments. The challenge here, and you could call it a bit ironic, is that many SSOReady users need to implement SAML but do not themselves work at an organization that uses (or wants to use) SAML.

That said, my current inclination is to say that the last point using SSOReady to log into SSOReady itself -- is likely something we'll be doing no matter what. And it sounds like something that in your case would work too, right? I assume you're using Keycloak to do some identity federation stuff (that's the typical way it gets used, in any case) -- you could tell Keycloak to do a SAML-based, rather than OAuth-based, integration with your self-hosted instance of SSOReady?
Sorry for the wall of text here. Just wanted to be open about the thought process that's going on for me here.

@ucarion Thank you alot for your detailed explanation. The last paragraph helps me alot and answered my question - thank you again. I just thought using oauth wouldnt be too much efforts as the current Microsoft/Google using it anyway, so replacing them by a generic oauth provider should work without too many changes


[incubator/shynet]: Added initial chart.

Signed-off-by: Jonathan Davies<EMAIL_ADDRESS>Is this a new chart
Yes.
What this PR does / why we need it:
Adds a shynet chart.
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[X] DCO signed
[X] Chart Version bumped
[X] Variables are documented in the README.md
[X] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @mattfarina
CC @milesmcc

@jpds sorry for the slow response. Might I suggest you fix the issues with the chart so it can install. I cannot merge it with outstanding issues.


test: refactor 'which' tests to AVA

@freitagbr ready for review. This should be good to go.

LGTM


Update CachedHealthCheck in HealthCareSharedComponents to allow multiple requests

User story
Currently the CachedHealthCheck class uses a semaphore to allow only 1 thread of execution to check and possibly update the healthcheck result.  If one thread blocks and retains the semaphore for a long period of time, manyother healthcheck calls will fail.
We should allow multiple request to access the cached result at once, and perhaps only block if the result needs to be updated.
Acceptance criteria
multiple clients/threads can run healthcheck simultaneously

@brendankowitz is this still something we need to do?

Could the Olympus team provide details on how to reproduce it and clarify exactly what we should focus on?
Is this still something we need to do?

@EXPEkesheth I think this can be closed, team was unable to repro


First Camera openning not works

Problem description
the camera does not work the first time a user opens it and accepts the permission, in order for it to work the user must close the application and open it again
Expected behavior
the camera must work as soon as the user has accepted the permission
Environment

Tabris.js version: Tabris 3.6 3.6.0-dev.20200629
Device: Huawei P10 lite
OS: Android 8

Code snippet
const{CameraView, contentView, device, permission} = require("tabris");

if (permission.isAuthorized('camera')) {
    displayCamera();
} else {
    permission.requestAuthorization("camera").then((responseStatus) => {
        if (responseStatus !== "granted") {
            // Permission denied
        } else {
            displayCamera();
        }
    });
}

function displayCamera(){
  const camera = device.cameras[0];
  camera.active = true;
  new CameraView({layoutData: 'stretch', camera}).appendTo(contentView);
}

@ishigo1987 thanks for reporting the issue. But I couldn't reproduce the issue with Samsung A70 (Android 10), Emulator Pixel 3a XL (Android 10), and Emulator Pixel 2 XL (Android 8.1) devices.
We recently updated the CameraX library. Could you please try to build a new client against the latest Android Platform and retest?

My last test was with the nightly from yesterday, do you want me to try again with the today nightly?

Do you mean that you created a new client yesterday and tested the code with this app?

Yes

I will figure it out.

Thank You @elshadsm

Logcat output would also be useful

@ishigo1987, the issue has been solved.

Yes Thank you


change runtime animationType

how can i change runtime this type of animation?

@brucetoo are you try to use this library on your application and handle that for phone rotation?


s

Augury: 1.10.0
Date: Fri, 02 Jun 2017 14:29:34 GMT
OS: Win32
Demo test application:
-- Git repository for demo app showing the issue (optional but very helpful for difficult issues).
-- If a code snippet will completely show the issue, please include it.
Description of issue:
-- Include (clipped) screenshot images if possible.
Angular version (required): ???
Steps to reproduce:

Additional details:

@hbarpitgupta If this was meant to be an issue, please try again. Thanks!


Visualizing data based on Hijri date series

Hello,
As Islamic countries use Hijri date in their day-to-day activities. I suggest to add hijri calculations also to d3 to use its great power of visualizing time series data.
From my point of view, I have two designs for that :

Integrate Hijri calculations module into d3-time library.
or
Create a separate library let us call it "D3-time-hijri" as an example, it will be exactly like d3-time but generating Hijri dates

This library doesn’t implement a calendaring system per se; it relies on JavaScript’s built-in Date class, which implements the Gregorian calendar. In theory, it would be possible to extend this library to support other calendaring systems, but I don’t have a sense of how practical that would be. I see two challenges:

This library calls new Date internally (see interval.js), so if you want to substitute a different Date class (such as hijri-date), you’ll need to modify the code to allow the Date constructor to be overridable. The Date substitute will also need to implement date.setTime.

The built-in intervals may or may not be applicable in the non-Gregorian calendar system. Depending on which of these built-in intervals you want to reuse, the Date substitute will need to implement other methods. For example, the day interval requires date.setHours, date.setDate, date.getDate and date.getTimezoneOffset.

I do not personally plan on implementing the Hijri calendar in JavaScript, so I am going to close this issue. But, if you wish to submit a pull request to address the first issue and allow the Date constructor to be overridable, I would be happy to review it, especially if you are willing to include a demonstration showing how to use it with other calendar systems. Thank you!

Hello @mbostock ,
I do some investigation in Hijri Date , I found some implementation need to be added as setTime, setHours, .. we request that from owner to be able to use it here.
Can you advise the best way to use external library like Hijri Date, to D3-Time. Especially if this library contain "require" function between files. If there an example you can share this will be great.


Complete example of using Components

Hello,
I can't find a complete example of how to use components.
The guide on the site is not entirely clear.
Can anyone give me a help?
Thank You

+1

I would also like to see this some examples. I too, have not used them yet.

+1.
Need info of defying routine method in component.
Defined component like this:
var filtersEditCtl = function () {
    debug('filters edit inited');

    this.open = function () {
        debug('filters edit open');
        this.show = true;
    }.bind(this);

    this.close = function (event) {
        debug('filters edit close');
        this.show = false;
    }.bind(this);

    this.shown = function () {
        return this.show;
    }.bind(this);

    return this;
};

rivets.components['filters-edit'] = {
    template: function () {
        return jst('filters/edit');
    },
    initialize: function () {
        return new filtersEditCtl();
    }
};

template is
<template name="filters/edit">

{ conf.title }

        <%! template('filters/input') %>

</template>

and using it as one instance with different models(context):
var editLayer = rivets.init('filters-edit', document.getElementById('filters__edit')); // init and insert component into DOM
// some logic with data models
editLayer.update({ show: true, conf: { title: 'FOO', etc: '///' } }); // attach another data model

Where I can define custom handler for model observer?

By issue here you mean developers still need to build up their architecture with a Controller of some kind that manages the data binding for individual elements?  I don't think that's something should be build into Rivets since it's just a binding library, but you could use rivets + t3box to help with that dev work.  (I've started on some support libs for that mashup, but haven't seen a lot of examples out there.  Kind of POC work for the time being.)  Is this what you mean by 'issues related...' ?

Hi all,
I've made some experiments and I build this one that work very well.

     <test-component attribute="item"></test-component>

// ViewModel for test-component
function testComponentViewModel(obj) {
    var self = this;
    self.data = obj;

    self.increment = function (context, ev) {
        ev.data.attribute.value = ev.data.attribute.value + 1;
    };
    self.decrement = function (context, ev) {
        ev.data.attribute.value = ev.data.attribute.value - 1;
    };
}
// ******************************

// Defining test-component
rivets.components['test-component'] = {
    attributes: ['attribute'],
    template: function () {
        return '<button rv-on-click="increment">+</button><button rv-on-click="decrement">-</button>';
    },
    initialize: function (el, item) {
        return new testComponentViewModel(item);
    }
};
// ******************************

// Start the binding
var item = { value: 0 };
rivets.bind($('#view'), { item: item });
// ******************************

Basically this is a component that increments and decrements a number field.

I've also been really confused by the incomplete tutorial, which also neglects to mention what to do for the dependencies JST and ItemController.  Would much rather have a simpler example which omits these.

I hope you don't mind @fabiofranzini but I've forked your fiddle, hopefully it will help some of you guys ( @davidcalhoun @Duder-onomy ). The original was confusing me with some of the variables and arguments named strangely (for example, rivets event handlers have the arguments event, scope not context, event). I also found some gotchas on the way. My fiddle is here.
The gotchas:

If you nest the component like

  <component>

it will wipe out the
 tag. So you have to put it inside its own div.

If you name an attribute on your component in kebab case (like-this), rivets renames it to camelCase when putting it in the scope object.

Great work @Leeds-eBooks!


Update metadata

Updated metadata; fixed accessibility issue in WDA redirect component

 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.


Update all notebooks to reflect IQP style circuits

What do you mean by IQP circuits?  I think you are talking about something other than https://docs.quantum.ibm.com/api/qiskit/qiskit.circuit.library.IQP but can't figure out what.

What do you mean by IQP circuits? I think you are talking about something other than https://docs.quantum.ibm.com/api/qiskit/qiskit.circuit.library.IQP but can't figure out what.

Sorry bout that, the default style for QuantumCircuit.draw() is "iqp" now :). Our main branch tutorials have the old style.

What do you mean by IQP circuits? I think you are talking about something other than https://docs.quantum.ibm.com/api/qiskit/qiskit.circuit.library.IQP but can't figure out what.

Sorry bout that, the default style for QuantumCircuit.draw() is "iqp" now :). Our main branch tutorials have the old style.

Got it; this was actually my second suspicion, but then I mistakenly convinced myself that that style was known as "iqx". In fact, I grepped for "iqx" and found this line is a file named iqp-dark.json, among others :laughing:


⚠ Bofrost.at has degraded performance

In e4abd83, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1587 ms

Resolved: Bofrost.at performance has improved in 9db3f36 after 18 minutes.


Write espresso tests for todomvrx

Why was this closed? Is this possible at all? Having little experience with both Espresso and MvRx, I'm struggling to write my first Espresso test after switching to MvRx. FragmentScenario seems the wrong approach as the Activity needs to be MvRx specific. I couldn't make ActivityTestRule to work so far. Anybody could provide a basic example?

With the latest release https://github.com/airbnb/MvRx/pull/311 it is not necessary to have a mvrx specific activity, so FragmentScenario should work fine.
You should be able to use espresso fine with mvrx - it's just a little tedious to set states which is being improved with https://github.com/airbnb/MvRx/pull/282

Thanks, that's useful. I updated MvRx, but after all I managed to write tests with ActivityTestRule. We switched to Navigation components, modularization and Dagger at the same time, which made it a bit harder, that's all.

@herrbert74 Can you please share your todomvrx test cases, I am looking for mvrx test case & I am not getting it..


Streaming logs over TLS can cause an error for the receiver upon close

It writes the data and then closes the connection, but sometimes the receiver does not receive all the data.
It seems to be the cause of the CI failures in https://github.com/elastic/integrations/issues/11075, https://github.com/elastic/integrations/issues/11224 (this one for tls and tcp), and https://github.com/elastic/integrations/issues/10620.
Reproduce the bug
It can be reproduced as follows:
In one terminal, run this:
while true; do
  echo Running the server...
  echo
  openssl s_server -accept 4433 -naccept 1 \
    -cert ~/.elastic-package/profiles/default/certs/elastic-agent/cert.pem \
    -key ~/.elastic-package/profiles/default/certs/elastic-agent/key.pem \
    2>&1 | pv -L 100k | tee output.log
  echo
  if grep -q "ERROR" output.log; then
    echo "Error detected. Stopping."
    break
  fi
done

In another terminal, from the root of the integrations repository, repeatedly run the following, until the loop in the first terminal stops with an error:
stream log --delay=1s --addr localhost:4433 -p=tls --insecure packages/cyberarkpas/_dev/deploy/docker/sample_logs/audit/*.log

This will trigger an error on my system within a few runs. If necessary, try lowering the limit set by pv to apply additional backpressure on the server.
When there is an error, the stream log output will show that all files were sent, but the server log file will show that less data was received, and it will end with an ERROR.
Possible fixes
Closing a connection will usually ensure that all written data is sent. For TLS connections, after writing it may be necessary to keep the read side open for longer in order for the sent data to be accepted without error.
The more frequently observed failures and the reproduction were for TLS, but it may not be a TLS-only issue.

It does seem to be a general TCP issue.
This article discusses the issue specifically for the case of wanting to just send some data and close:
https://blog.netherlabs.nl/articles/2009/01/18/the-ultimate-so_linger-page-or-why-is-my-tcp-not-reliable
In Go, shutdown of the write side would be via TCPConn.CloseWrite, and it may be worth trying other settings for TCPConn.SetLinger.


Overlapblock folder

Created an overlap block folder

good one but she already created it.

good one but she already created it.

I did not see it on the modules folder

yea. No issues... It was in the pulls...
On Jun 15, 2023 18:13, "Princewill Asotibe" @.***>
wrote:
good one but she already created it.
I did not see it on the modules folder
—
Reply to this email directly, view it on GitHub
https://github.com/KwickerHub/frontend/pull/264#issuecomment-1593448327,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOKWIBOLNYRVY2WPW3O35ITXLM7DZANCNFSM6AAAAAAZIEF3ZA
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


Transaction query already complete, run with DEBUG=knex:tx for more info

Using:
await Database.beginGlobalTransaction(); etc.
after calling BE (in Controller) multiple times I got an error:
Transaction query already complete, run with DEBUG=knex:tx for more info
Is this the right way to do DB transactions?

Issue doesn't adhere to the guidelines of creating a proper issue.

Make sure that you are only reporting bugs or submitting feature requests on Github.
In case of feature requests, please be descriptive and explain how this feature helps a broader audience and not just you.

If you are not submitting a bug and neither a feature request, then please use the forum or discord server
In any case, issues which are not descriptive enough will be closed. Please respect our time.

Closing since no answer from issue reporter.


Filter available plugins

🚀 Feature
The text box where the user inserts the name of the plugin to install should also act as a filter on the available plugins as the user type the name.
Motivation
Sometimes I know which plugin I want to install, but I forgot the exact name. Having the possibility to filter available plugins directly in the napari plugins window would spare me from searching it in the hub.

Oh yeah, I thought it was for filtering only the installed ones, I think I tried it when it was still loading the list of available plugins and I didn't realise it was sorry about that. Somehow it seemed more intuitive to use the text box below to filter the list below.

@ElpadoCan Maybe the shadowed text shouldn't say filter... but filter installed & available plugins?
Do you think that would help?

Yes, it would definitely help, and instead of filter... I would call it Search


Problem restoring nuget 2.1.0-preview1-27838

when trying to update to
2.1.0-preview1-27838
i get an some errors saying (all aspnetcoredependencies):
Microsoft.AspNetCore.Authorization >= 2.1.0-preview1-27838 can not be found
best match:
https://dotnet.myget.org/f/aspnetcore-dev/api/v3/index.json 2.1.0-preview1-27819
do i need to include another feed or is the dependency version incorrect?

For now you can reference 2.1.0-preview1-27819 of our packages.
@ryanbrandenburg Why is Microsoft.AspNetCore.Authorization not updated on our feed?

as build/deps.prop points to version preview1-27776 i guess there is something wrong with your packaging

For now you can reference 2.1.0-preview1-27819 of our packages.

no i cannot visual studio does a rollback when trying to update

You can open the csproj and change the version to 27819

ahh oki that worked, thx.
didnt know that there is a difference in behavior depending on where I change the version.
is there some option to make the ui behave like editing the file?
Here is the complete error output of the package manager btw. had to switch language so its all in english:
Unable to find package Microsoft.AspNetCore.Authorization with version (>= 2.1.0-preview1-27838)

Found 125 version(s) in aspnetcore-dev [ Nearest version: 2.1.0-preview1-27819 ]
Found 17 version(s) in nuget.org [ Nearest version: 2.0.1 ]
Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.0.0-rc2-final ]
Found 0 version(s) in dotnet-core
Found 0 version(s) in aspnet-contrib
Unable to find package Microsoft.Extensions.DependencyInjection.Abstractions with version (>= 2.1.0-preview1-27838)
Found 125 version(s) in aspnetcore-dev [ Nearest version: 2.1.0-preview1-27819 ]
Found 11 version(s) in nuget.org [ Nearest version: 2.0.0 ]
Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.0.0-rc2-final ]
Found 0 version(s) in dotnet-core
Found 0 version(s) in aspnet-contrib
Unable to find package Microsoft.Extensions.Logging.Abstractions with version (>= 2.1.0-preview1-27838)
Found 125 version(s) in aspnetcore-dev [ Nearest version: 2.1.0-preview1-27819 ]
Found 12 version(s) in nuget.org [ Nearest version: 2.0.0 ]
Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.0.0-rc2-final ]
Found 0 version(s) in dotnet-core
Found 0 version(s) in aspnet-contrib
Unable to find package Microsoft.AspNetCore.Hosting.Abstractions with version (>= 2.1.0-preview1-27838)
Found 125 version(s) in aspnetcore-dev [ Nearest version: 2.1.0-preview1-27819 ]
Found 17 version(s) in nuget.org [ Nearest version: 2.0.1 ]
Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.0.0-rc2-final ]
Found 0 version(s) in dotnet-core
Found 0 version(s) in aspnet-contrib
Unable to find package Microsoft.AspNetCore.Authorization.Policy with version (>= 2.1.0-preview1-27838)
Found 124 version(s) in aspnetcore-dev [ Nearest version: 2.1.0-preview1-27819 ]
Found 4 version(s) in nuget.org [ Nearest version: 2.0.1 ]
Found 0 version(s) in Microsoft Visual Studio Offline Packages
Found 0 version(s) in dotnet-core
Found 0 version(s) in aspnet-contrib
Unable to find package Microsoft.AspNetCore.WebSockets with version (>= 2.1.0-preview1-27838)
Found 125 version(s) in aspnetcore-dev [ Nearest version: 2.1.0-preview1-27819 ]
Found 9 version(s) in nuget.org [ Nearest version: 2.0.1 ]
Found 0 version(s) in Microsoft Visual Studio Offline Packages
Found 0 version(s) in dotnet-core
Found 0 version(s) in aspnet-contrib
Unable to find package Microsoft.AspNetCore.Routing with version (>= 2.1.0-preview1-27838)
Found 125 version(s) in aspnetcore-dev [ Nearest version: 2.1.0-preview1-27819 ]
Found 16 version(s) in nuget.org [ Nearest version: 2.0.1 ]
Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.0.0-rc2-final ]
Found 0 version(s) in dotnet-core
Found 0 version(s) in aspnet-contrib
Unable to find package Microsoft.AspNetCore.Http.Features with version (>= 2.1.0-preview1-27838)
Found 125 version(s) in aspnetcore-dev [ Nearest version: 2.1.0-preview1-27819 ]
Found 15 version(s) in nuget.org [ Nearest version: 2.0.1 ]
Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 1.0.0-rc2-final ]
Found 0 version(s) in dotnet-core
Found 0 version(s) in aspnet-contrib

narf just restore worked but when i try to build i get the same error :(

The NuGet UI should allow you to choose a version when updating or installing a package

yup but if i pick the latest version it does a silent rollback and if i open package manager output i get the output from above.
anyway now its build that doesnt work.
can you please ping me when you figured out why your dependencies arent pushed to the feed.

I had a similar problem when adding signalr 27838.  I worked around the issue by updating some of the dependent projects such as logging to 27819.  If you don't add them specifically it seems signalr will try to load 27838 version which doesn't exist.

with 27854 restore works


Page needs updating to new EAC UI

[Enter feedback here]
This page needs updating to relate to the new Exchange Admin Center" UI, when converting a shared user to a regular user the s
Click recipients > Mailboxes > User > More Actions > Convert to regular mailbox
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 13b3fbbe-fde3-fd52-f9cd-d8fca56a1494
Version Independent ID: 73d71ee8-579d-78b5-a8cd-48d7ec51ebb8
Content: Convert a user mailbox to a shared mailbox - Microsoft 365 admin
Content Source: microsoft-365/admin/email/convert-user-mailbox-to-shared-mailbox.md
Service: o365-administration
GitHub Login: @SKjerland
Microsoft Alias: sharik

@designandsolutions Thank you for your feedback. We have made changes to the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/6330
Thanks
Sri