Try github action for UTs

Description

Test Steps

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@23f6418). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             main        #4   +/-   ##
========================================
  Coverage        ?   100.00%
========================================
  Files           ?         1
  Lines           ?        37
  Branches        ?         3
========================================
  Hits            ?        37
  Misses          ?         0
  Partials        ?         0

Flag
Coverage Δ

unittests
100.00% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out 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 23f6418...9d3a727. Read the comment docs.


Scope refinement and CODEOWNERS

Reference material pertaining to scope have been included from NIST as well as the creation of CODEOWNERS.

@joshbressers I can't merge until I find a way to get added to the repo as a contributor.


Learnyoumongo on C9 - Connect issues

Store Data in MongoDB - #2 Connect

https://www.freecodecamp.com/challenges/store-data-in-mongodb
Issue Description

Running the commands as directed will not work. After opening a new terminal and attempting to connect, the connection is refused.
Browser Information

Browser Name, Version: Chrome 50.0.2661.102 m on Cloud9

Your Code
//mkdir date is already run previously

lewis_:~/workspace $ mongod --port 27017 --dbpath=./data --nojournal
Error parsing command line: unknown option small
try 'mongod --help' for more information

//In new terminal
lewis_:~/workspace $ npm install mongodb
npm WARN package.json<EMAIL_ADDRESS>No repository field.
npm WARN package.json<EMAIL_ADDRESS>No license field.
<EMAIL_ADDRESS>node_modules/mongodb
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
lewis_:~/workspace $ learnyoumongo verify
✗ Error connecting to mongo. connect ECONNREFUSED <IP_ADDRESS>:27017

Solved issue by including mongod in double quotes ("mongod" --port 27017 --dbpath=./data --nojournal)

double quotes around the command is a definite error condition, that should not be required and this bug should be reopened.
In addition to the double quote error, I am also getting a failure in installing kerberos when installing learnyoumongo.
Browser: Chrome Version 50.0.2661.102 (64-bit) on Ubuntu 14.04
Running on cloud 9
antonioshadji:~/workspace $ npm install learnyoumongo -g
npm WARN peerDependencies The peer dependency<EMAIL_ADDRESS>included from mongodb-core will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.

><EMAIL_ADDRESS>install /home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/learnyoumongo/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
make: Entering directory '/home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/learnyoumongo/node_modules/mongodb/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
  CXX(target) Release/obj.target/kerberos/lib/worker.o
  CC(target) Release/obj.target/kerberos/lib/kerberosgss.o
../lib/kerberosgss.c:36:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic push
 ^
../lib/kerberosgss.c:37:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
 ^
../lib/kerberosgss.c: In function ‘authenticate_gss_client_wrap’:
../lib/kerberosgss.c:446:19: warning: variable ‘server_conf_flags’ set but not used [-Wunused-but-set-variable]
   char buf[4096], server_conf_flags;
                   ^
../lib/kerberosgss.c: At top level:
../lib/kerberosgss.c:1236:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic pop
 ^
  CC(target) Release/obj.target/kerberos/lib/base64.o
  CXX(target) Release/obj.target/kerberos/lib/kerberos_context.o
  SOLINK_MODULE(target) Release/obj.target/kerberos.node
/usr/bin/ld: cannot find -lkrb5
/usr/bin/ld: cannot find -lgssapi_krb5
collect2: error: ld returned 1 exit status
make: *** [Release/obj.target/kerberos.node] Error 1
make: Leaving directory `/home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/learnyoumongo/node_modules/mongodb/node_modules/kerberos/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.2.0-c9
gyp ERR! command "/home/ubuntu/.nvm/versions/node/v4.4.3/bin/node" "/home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/learnyoumongo/node_modules/mongodb/node_modules/kerberos
gyp ERR! node -v v4.4.3
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok


Lines getting clipped at boundaries

Is there any way I can set margins for line data so lines don't get clipped when they are at edges having max or min values? For example, by setting a %5 margin, graphs highest value becomes %5 higher than the highest value among line data values, and chart lowest becomes %5 less of lowest value in list.
Or if I can disable clipping that would be better.
Thanks.

I kind of duct taped it by adding another line with 2 values, +0.10 of max of original line, and -0.10 of min of original line. I give it a transparent colour and voila I have nice margins :)
Please suggest me any way to fix it, I don't wan't to keep it this way.

Hi,

first option, change viewport of the chart, for example:

//set chart data to initialize viewport, otherwise it will be[0,0;0,0]
//get initialized viewport and change if ranges according to your needs.
final Viewport v = new Viewport(chart.getMaximumViewport());
float fivePercent = v.height() * 0.05f;
v.top = v.top + fivePercent;
v.bottom = v.bottom - fivePercent;
chart.setMaximumViewport(v);
chart.setCurrentViewport(v);
//Optional step: disable viewport recalculations, thanks to this animations will not change viewport automatically.
//chart.setViewportCalculationEnabled(false);

Second option, disable/change clipping, there is no method for that, you will need to modify source code. You can remove line AbstractChartView.java#L89 or replace it with the following line:

canvas.clipRect(chartComputator.getContentRectMinusAxesMargins());

Thanks!

@eralpkaraduman , did @lecho 's first option work for you? I have a similar issue regarding the max y axis label not showing up and the cubic function being clipped.
Thanks in advance!


Rectify and enhance signup/login test

Use the URL of the redirected GET response as checkpoints for POST endpoints, instead of using the 200 OK HTTP status code.

Since you are at it, why not also checking for correct handling of the redirect_to query string ?

@strk It's not required for the following steps (like creating repos). I can add it, but I am not sure if checking the status code (200 OK) solely is sufficient. What do you think the things I should look at (to make sure it's actually tested)?

Maybe I misread the code but you seem to be checking the URL you are redirected to after login.
As I know this can be specified on the login url (with the ?return_to query string parameter) it would be useful to check that doing so works too (in addition to checking the default redirection url)

In favor of #1290


x/pkgsite: keyboard shortcut '/' should focus the search box

What is the URL of the page with the issue?
https://pkg.go.dev/github.com/govim/govim?tab=doc
What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.66 Safari/537.36

Screenshot

What did you do?
Tried to focus the search input box using /
What did you expect to see?
Focus shifting to the search box
What did you see instead?
Nothing happened.
 Open to suggestions. It is working locally for me.


don't base64 decode cert data returned by exec cmd

Fixes #33
Fixes https://github.com/livebook-dev/livebook/issues/2814

Pull Request Test Coverage Report for Build d173b717408988b7c0097099823f665f07945cb7-PR-34
Details

5 of 5 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 79.655%

Totals

Change from base Build 29eae3e2328b059b5a70f4678a3f2f2a50d354e4:
0.1%

Covered Lines:
231

Relevant Lines:
290

💛  - Coveralls


Question about the openocc dataset

Hi， I wonder the relationship between the dataset  published in cvpr2023-challenge repository and the openocc dataset in this repository. I see the voxel size and range of theirs is different，but you put the leaderboard of CVPR in your README.

We choose different voxel size and range in the CVPR challenge to be more user-friendly.
Best
Chonghao Sima

From: aoyanl @.>
Sent: Thursday, June 8, 2023 5:33:52 PM
To: OpenDriveLab/OccNet @.>
Cc: Subscribed @.***>
Subject: [OpenDriveLab/OccNet] Question about the openocc dataset (Issue #3)
---- External Email: Use caution with attachments, links, or sharing data ----
Hi， I wonder the relationship between the dataset published in cvpr2023-challenge repository and the openocc dataset in this repository. I see the voxel size and range of theirs is different，but you put the leaderboard of CVPR in your README.
—
Reply to this email directly, view it on GitHubhttps://github.com/OpenDriveLab/OccNet/issues/3, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM6RGLUUETK42X3K4HQXE53XKGMABANCNFSM6AAAAAAY7A7DBE.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Thanks！ Another question is that I see that the paper Occ3D also introduces this dataset ，is it also your work？

No, that is the work from the Tsinghua MARS Lab. We collaborated with them on the CVPR occupancy challenge.
Best
Chonghao Sima

From: aoyanl @.>
Sent: Thursday, June 8, 2023 6:30:35 PM
To: OpenDriveLab/OccNet @.>
Cc: Sima, Chonghao @.>; Comment @.>
Subject: Re: [OpenDriveLab/OccNet] Question about the openocc dataset (Issue #3)
---- External Email: Use caution with attachments, links, or sharing data ----
Thanks！ Another question is that I see that the paper Occ3D also introduces this dataset ，is it also your work？
—
Reply to this email directly, view it on GitHubhttps://github.com/OpenDriveLab/OccNet/issues/3#issuecomment-1582334815, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AM6RGLTXAVD7M33723RSRFTXKGSUXANCNFSM6AAAAAAY7A7DBE.
You are receiving this because you commented.Message ID: @.***>


Store and load libp2p keypair locally on Blockchain

Description
Fixes pyrsia/pyrsia#526

This PR does use libp2p Keypair encode and decode methods to save and load ed25519 keypair to ~/.block_keypair. Also, on Unix or Mac, set this file permission to 0o600.
Screenshots (optional)
PR Checklist

[x] I've read the contributing guidelines.
[x] I've read "What is a Good PR?"
[x] I've included a good title and brief description along with how to review them.
[x] I've linked any associated an issue.
[x] I've requested a review  from pyrsia/collaborators.

Code Contributions

[x] I've built the code cargo build --all-targets successfully.
[x] I've run the unit tests cargo test --workspace and everything passes.

See my comments about hard coded test vaules.

Thanks for your comment. I will refactor it.


Minor formatting

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

MicrosoftCollaboratePortal/support.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


ensure ingress matches ibmcloud's current status in ROKS toolkit

The ingress resource is different then the one listed in ROKS toolkit today:
https://github.com/openshift/ibm-roks-toolkit/blob/master/assets/cluster-bootstrap/cluster-ingresscontrollers-02-config.yaml#L10
Note that at least currently that is always set to External in IBM ROKS clusters. This ensures ibmcloud deployments are aligned with those values (ingress controller crashes otherwise)
Does not result in changes to other providers

/test e2e-aws

/lgtm
/approve
/hold

/lgtm

/unhold


[Bug] Inserting data Clickhouse RETURNING is not supported

Bug report
Describe the bug
When inserting data via Supabase-js / Postgrest, I get a 500 error response with the following body:
{
    "code": "HV000",
    "details": "Wrappers",
    "hint": null,
    "message": "RETURNING is not supported"
}

To Reproduce
Clickhouse table:
CREATE TABLE glucose
(
    `timestamp` DateTime64(3, 'Europe/Amsterdam'),
    `profile_id` String,
    `sensor_id` String,
    `glucose_mmol` Float32,
    `glucose_mg` Int16
)
ENGINE = MergeTree()
PARTITION BY toYYYYMM(timestamp)
ORDER BY (timestamp, profile_id);

Postgres table:
create server clickhouse_server
  foreign data wrapper clickhouse_wrapper
  options (
    conn_string 'tcp://default:@localhost:9000/default'
  );

create foreign table glucose (
  timestamp timestamp,
  profile_id text,
  sensor_id text,
  glucose_mmol real,
  glucose_mg integer
)
  server clickhouse_server
  options (
    table 'glucose',
    rowid_column 'timestamp'
  );

You can reproduce this error by trying to insert the following data (but any data will do):
const uploadData = {"sensor_id":"b4d0f5a6-5fe3-4341-90c2-c18baedeb31f","timestamp":"2023-05-20T19:34:00.000Z","glucose_mg":222,"glucose_mmol":12.3,"profile_id":"c7922835-bdc9-49eb-a3f5-0d3013c67bbf"};
Supabase.from('glucose').insert(uploadData)

Expected behavior
To insert the data and not give me an error
System information

OS: MacOs
Browser: Safari iOS
Version of supabase-js: v2.21.0
Version of Node.js: v19.6.1

That's an expected result. Supabase uses PostgREST as API server which uses RETURNING for all insert sql statements, but Wrappers doesn't support RETURNING clause at this moment. Would it possible encapsulate the insert into a function, and call that function instead?

Yes, that worked. Thanks!
Do you think postgrest can be configured to work without the returning?

I have the same issue. I resolved it by using the official ClickHouse JavaScript client for inserting data.


Loading bar does not disappear after successful connection

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

I saw this happening on reconnects I think. However, since this will go away with ICE anyway, it's probably not worth the time fixing it :)


Stuck wear/unwear due to components stringify encode

Fix: https://github.com/webaverse/app/issues/2876
I found the problem caused by repeatedly JSON.stringify an empty components ( array ).
Will get a very large sting in the end and will try to stringify/parse it again, so stuck:

I'm not sure why JSON.stringify/parse components in app-manager.js. Deep copy or something else?
But I tested that it works well without them, at least on my local, non-multiplayer environment.
( And the old components value broken totally, so should works as before )

I'm not sure if these stringifys are redundant; there are there because we need to make sure at every step this data can be transferred over URL. Just make sure that it doesn't break when there are special characters in the metadata of the apps.

It's a good catch though and this is definitely a bug. We just need to be sure this does not cause regressions.

Tested and looks good.

Thanks for figuring this out @gonnavis!

This broke NPC loading in z-targeting (and probably all direct content: loading in totum).
metaversefile-api.js?t=1652233721943:419 error loading "/@proxy/data:application/npc,%257B%2522name%2522:%2522Ann%2522,%2522avatarUrl%2522:%2522/avatars/ann.vrm%2522,%2522voice%2522:%2522Maud%2520Pie%2522,%2522bio%2522:%252213/F%2520Lisk%2520Witch%2520(black%2520mage).%2520She%2520is%2520quirky%2520and%2520is%2520always%2520creating%2520crazy%2520new%2520potions.%2520She%2520has%2520a%2520dark%2520streak%2520and%2520is%2520known%2520to%2520torment%2520her%2520teachers%2520when%2520they%2520give%2520her%2520bad%2520grades.%2522%257D" SyntaxError: Unexpected token ':'

I think I'll have to revert this.

Reverted.

I have been trying this in z-targeting, and it has been stable after a lot of totum refactoring. So I'll bring this back in master as well.

Reverted the revert here: https://github.com/webaverse/app/commit/ad46d586153e5074429cb12c8f69b52e5f5754b6


Abort when running tensorflow.python.eager.remote.connect_to_remote_host

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
binary
TensorFlow version
2.11.0
Custom code
Yes
OS platform and distribution
22.04
Mobile device
No response
Python version
3.9
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
nvidia-cudnn-cu11==<IP_ADDRESS>, cudatoolkit=11.8.0
GPU model and memory
No response
Current behavior?
NaN string argument
Standalone code to reproduce the issue
import tensorflow as tf
import numpy as np
from tensorflow.python.eager import remote
try:
  try:
    with tf.device('/CPU'):
      arg_0 = "nan"
      out = remote.connect_to_remote_host(arg_0,)
  except Exception as e:
    print("Error:"+str(e))
  try:
    with tf.device('/GPU:0'):
      remote.connect_to_remote_host(arg_0,)
  except Exception as e:
    print("Error:"+str(e))
except Exception as e:
  print("Error:"+str(e))

### Relevant log output

```shell
2023-08-13 01:22:37.499369: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
2023-08-13 01:22:38.459392: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-08-13 01:22:38.480510: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-08-13 01:22:38.480708: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-08-13 01:22:38.481081: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-08-13 01:22:38.481707: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-08-13 01:22:38.481844: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-08-13 01:22:38.481961: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-08-13 01:22:38.536637: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-08-13 01:22:38.536859: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-08-13 01:22:38.536991: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2023-08-13 01:22:38.537094: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1613] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 1725 MB memory:  -> device: 0, name: NVIDIA GeForce GTX 1660 Ti, pci bus id: 0000:01:00.0, compute capability: 7.5
2023-08-13 01:22:38.546718: E tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:589] INVALID_ARGUMENT: Could not interpret "nan" as a host-port pair.
E0813 01:22:38.546961566 1686085 completion_queue.cc:244]    assertion failed: queue.num_items() == 0
Aborted

@dmc1778 This issue is not appearing in TF v2.13 and TF-nightly, as in TF v2.13 the session is crashing and in tf-nightly the session is not getting aborted. The issue is not appearing after 2.11. Could you please have a look at this gist and confirm?
Thank you!

@dmc1778 In TF v2.13 the session is crashing and in tf-nightly the session is not getting aborted. Could you please have a look at this gist and confirm? Thank you!

That is correct.

@dmc1778 Thank you for the confirmation. As the issue is not appearing in tf-nightly then it would be fixed in next release so could you please let us know if it is good to close the ticket?
Thank you!

@dmc1778 Thank you for the confirmation. As the issue is not appearing in tf-nightly then it would be fixed in next release so could you please let us know if it is good to close the ticket? Thank you!

I think it is safe to close this issue.

@dmc1778 Thank you for the confirmation.


bug: model_copy attribute is not found in LangchainChainMetrics

Describe the bug
a7' ai_version=<AzureChatOpenAIVersion.GPT_4: 'GPT_4'>
2023-09-13T00:25:29.705816957+05:30 Error in CallbackHandler.on_chain_end callback: 'LangchainChainMetrics' object has no attribute 'model_copy'
2023-09-13T00:25:38.995718562+05:30 Error in CallbackHandler.on_chain_end callback: 'LangchainChainMetrics' object has no attribute 'model_copy'
2023-09-13T00:25:38.996041159+05:30 Error in CallbackHandler.on_chain_end callback: 'LangchainChainMetrics' object has no attribute 'model_copy'
To reproduce
No response
Expected behavior
No response

This looks like a pydantic v1, backwards compatibility issue


filtering vs loadData

Hi,
I am dynamically rendering the grid with an ajax call that is working fine.
I am nevertheless getting challenge to make the filter working.
var urlField = function(config) {
			jsGrid.Field.call(this, config);
		};

        urlField.prototype = new jsGrid.Field({

			css: "url-field",            // redefine general property 'css'
			align: "center",              // redefine general property 'align'

			myCustomProperty: "foo",      // custom property

			sorter: function(url1, url2) {
				return url1 - url2;
			},

			itemTemplate: function(value) {
				return "";
			}

		});

		jsGrid.fields.url = urlField;

        $("#jsGrid").jsGrid({
            height: "auto",
            width: "100%",

			filtering:true,
            sorting: true,
		    paging: true,
            autoload: true,
			inserting: false,
			editing: false,

            pageSize: 15,
            pageButtonCount: 5,

            controller: {
			   loadData: function() {
			        var d = $.Deferred();
				    $.ajax({
						type: "GET",
						url: "/index.php?option=com_directory&view=fichiers&type="+type+"&format=raw",
						dataType: "json",
						success:function(response){
					       d.resolve(response);
						}
                	});
					return d.promise();
				}
			},

            fields: [
                { name: "Id", title:"#", type: "number", width: 20, filtering: true },
                { name: "Titre", title:"Titre", type: "text", width: 250, filtering: true },
				{ name: "Action", title:"", type: "url", width:40}
            ]
        });

when I enter some letters I need to press enter but the enter pressing call again the loadData.
could you help me please ?

I suppose it's the correct behaviour:
when you load your data from a remote source, it's supposed to be paginated and filtered server side.
Have a look in the documentation for the loadData parameters
http://js-grid.com/docs/#loaddatafilter-promisedataresult
the filter object contains all the information you need to pass server side to filter your data

It is not really what i want to do. I understand more how it works. loadData provides a data set. Enter press key resubmit the loadData. It could be usefull to put a prevent submit jquery command.
I would like to apply the filter on the fly on the local data set when we press any key on the filter input fields. I don 't need to reload from server the data.
I don't understand why the filter is not applyed automatically as the demo does.

Because the demo works on local data.
I think you could do something defining your own load strategy http://js-grid.com/docs/#load-strategies
but I'm not really sure about it.
In my opinion, it doesn't make sense to get the data by ajax and then pretend to sort and filter locally.
If you need just one call to get the data, you don't need ajax at all. You can simply put your data in the page.

Well i succeed to make it works. I was using slickgrid up to now and i feel something is missing here.
The view and the data are the same that is why we need to reload data when we are depending from ajax call. Filter is erasing the local dataset (grid.data)
I would claim to add to jsgrid one attribute for data and one attribute for view wich is the visible dataset it will ease the filter local datamanagement and avoiding server roundtrips.
In the meantime, we need to press enter to do a search. I have coded a capacity to search each time a char is entered in the filter field. It could be nice to give a name or an id to input fields in the header in order to apply event.

@nono1974, the actual filtering should be implemented by your code. In the demos it's implemented in db.js.
The filter is coming in loadData as a first parameter. So you have to apply it on your dataset.
If you don't want to reload data from the server you could do it in loadData caching the result.
In my example I use self-evaluating function, but you can cache data anywhere:
function applyFilter(data, filter) {
    return $.grep(data, function(item) {
          // return true/false depending on filter condition
          return (!filter.Name || item.Name.indexOf(filter.Name) > -1)
    });
};

// grid config
controller: {
loadData: (function() {
    var data;
    return function(filter) {
        if(data)
           return $.Deferred().resolve(applyFilter(data, filter));

        return $.ajax({ /* request params */ }).then(function(result) {
            data = result;
            return applyFilter(data, filter);
        });
    };
}())
},

Please, checkout the following issue https://github.com/tabalinas/jsgrid/issues/32

Hi
It is exactly what i did thank you.
regards
Arnaud

hi

@tabalinas , I ve used the code above but because somtimes i have null elements indexOf() doesnot work.
Any solution ?


docs: Query Memory Limits proposal

Proposal to introduce query memory limits in Querier (Q) and Store Gateway (SG) components.
I have an implementation of this design almost ready to submit for a review as a follow up / in parallel if people generally agree on this feature.

How do we expose these changes to our users? I suppose by flags, but what do they look like?

So, there is an accompanying draft implementation PR as well, it might be easier to look at the real code there, as most code in this doc is for "illustration purpose only" to give a broad idea of how I propose things to work.
WRT exposing to users: the draft implementation currently uses env vars as the least invasive mechanism. Env vars also allow running built versions of Thanos with and without this feature without having to modify scripts etc. An open question of course. // @metalmatze

Hi! After some consideration, I think the major concern about this is that those limits (e.g 100MB per query) can use much more memory due to the nature of Go memory management (e.g slice reallocation always doubled capacity and  GC eventual release). This can massively surprise users and effectively make it even harder to do any reasonable capacity planning. While I was initially positive on this, after some discussions I might think if we cannot be precise, and it requires from user to do load tests anyway, we might want to stick to more size-abstract limits, like samples/chunks/series etc.


Author Filter Tweaks

Moving author filter to its own component, moving that component to the  top of the author box, adding a clear author filter button, removing  authorFilter from text box after selecting author.

@pjhale I've added an overlay to make it easier to understand when facets are loading after changing the limits or the author filter. Let me know if you like it, otherwise feel free to git reset to the previous commit

I think this looks really good... and it feels better using the author filter now that the whole page doesn't reload... only the relevant information.  Couldn't find any bugs with the new events either.  I'm ready to put in this PR if you are.

Thanks @pjhale


[3.0] Add service config to bootstrap when init

What is the purpose of the change
Add service config to bootstrap when init, fix raw api scenario.
Brief changelog
Verifying this change

Checklist

[x] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Add some description to dubbo-website project if you are requesting to add a feature.
[ ] GitHub Actions works fine on your own branch.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #8138 (680e89a) into 3.0 (2b00a92) will decrease coverage by 0.16%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                3.0    #8138      +/-   ##
============================================
- Coverage     61.68%   61.52%   -0.17%
+ Complexity      313      311       -2
============================================
  Files          1073     1073
  Lines         45117    45075      -42
  Branches       6778     6745      -33
============================================
- Hits          27831    27732      -99
- Misses        14195    14248      +53
- Partials       3091     3095       +4

Impacted Files
Coverage Δ

...in/java/org/apache/dubbo/config/ServiceConfig.java
63.45% <100.00%> (+0.67%)
:arrow_up:

...ng/transport/dispatcher/all/AllChannelHandler.java
62.06% <0.00%> (-20.69%)
:arrow_down:

...ng/transport/dispatcher/WrappedChannelHandler.java
47.82% <0.00%> (-15.22%)
:arrow_down:

...dubbo/common/status/support/LoadStatusChecker.java
50.00% <0.00%> (-11.54%)
:arrow_down:

...in/java/org/apache/dubbo/common/utils/JVMUtil.java
81.13% <0.00%> (-11.33%)
:arrow_down:

.../remoting/transport/netty4/NettyClientHandler.java
57.62% <0.00%> (-10.17%)
:arrow_down:

...mmon/threadpool/support/fixed/FixedThreadPool.java
80.00% <0.00%> (-7.50%)
:arrow_down:

.../apache/dubbo/remoting/transport/AbstractPeer.java
58.69% <0.00%> (-6.53%)
:arrow_down:

...moting/transport/netty4/NettyEventLoopFactory.java
30.00% <0.00%> (-6.37%)
:arrow_down:

...pache/dubbo/remoting/transport/AbstractServer.java
57.14% <0.00%> (-5.72%)
:arrow_down:

... and 44 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 2b00a92...680e89a. Read the comment docs.


Document Units for Revit links

I'm trying to have the units in use for all the linked models and the node will output the units of the open document and not the links.
I've tested linking 2 models, with length units one in inches and other in cm to the open model in meters and the result is meters for both of them. I'm using Revit 2023.1 and DYNAMO v.2.16.1

Hi,
Thank you for your comment. I have now fixed the custom node and will publish an update to the package.

Thank you Alban!


Error while image_width != image_height

The training program can not work while the image width and height are different.
I can train the samples with 80x80 pixels, but 64x72 could no work.
In my training, image_width=64 and image_height=72.
I used data_shape = (3, 72, 64), then I got an error:
[[[19:45:42] ./dmlc-core/include/dmlc/logging.h:208: [19:45:42] src/io/./image_augmenter.h:198: Check failed: static_cast<index_t>(res.cols) >= param_.data_shape[1] && static_cast<index_t>(res.rows) >= param_.data_shape[2] input image size smaller than input shape
I print all of them, the result is:
res.cols=64, param_.data_shape[1]=72, res.rows=72, param_.data_shape[2]=64
I changed the parameter to: data_shape = (3, 64, 72), then I got another error:
[19:47:01] ./dmlc-core/include/dmlc/logging.h:208: [19:47:01] ./mshadow/mshadow/./tensor_cpu-inl.h:124: Check failed: (dst.shape) == (src.shape) Copy:shape mismatch:(3,64,72) vs (3,72,64)
Thanks.

This is can be fixed, by changing it to
static_cast(res.rows) >= param_.data_shape[1] && static_cast(res.cols) >= param_.data_shape[2]

Thanks for the catch! Do you mind to open a PR for this?
cc @sneakerkg @winstywang

fixed by https://github.com/dmlc/mxnet/pull/900


battery drain

The device’s battery drains at a notably accelerated rate.

Are you using Scrolling song info in menu bar by any chance? If so, this is what's causing this issue. Thinking I'll disable the option until I optimize it so it doesn't drain the battery.


PENV-474: get records with empty JetIDs tests

- What I did
receive jetDrops by JetID='*' and check that response contains jetDrops with empty and not empty JetID
integration test related to PENV-411
- How I did it
- How to verify it
- Description for the changelog

Codecov Report

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

@@            Coverage Diff             @@
##           master     #115      +/-   ##
==========================================
+ Coverage   72.80%   72.87%   +0.06%
==========================================
  Files          47       47
  Lines        3104     3104
==========================================
+ Hits         2260     2262       +2
+ Misses        697      696       -1
+ Partials      147      146       -1

Impacted Files
Coverage Δ

api/handlers.go
79.91% <0.00%> (+0.42%)
:arrow_up:

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 a8fc3dc...90a2848. Read the comment docs.


Cannot build

Hi,
Just cloned the repo and following the instructions here:
https://steptools.github.io/NC.js/build.html
After git clone and npm install, I get the following build error:
pablo@top:~/NC.js> uname -a
Darwin MacBook-Air 21.4.0 Darwin Kernel Version 21.4.0 ...; .../RELEASE_ARM64_T8101 arm64
pablo@top:~/NC.js> pablo@top:~/NC.js> npm -v
8.6.0
pablo@top:~/NC.js> npm run make

><EMAIL_ADDRESS>make
> ./node_modules/.bin/webpack  --mode=development --progress --bail && node src/server/api_server.js -n

/Users/pablo/NC.js/node_modules/webpack-cli/bin/cli.js:281
				throw err;
				^

TypeError: Invalid value used in weak set
    at WeakSet.add (<anonymous>)
    at MiniCssExtractPlugin.apply (/Users/pablo/NC.js/node_modules/mini-css-extract-plugin/dist/index.js:640:18)
    at webpack (/Users/pablo/NC.js/node_modules/webpack/lib/webpack.js:51:13)
    at processOptions (/Users/pablo/NC.js/node_modules/webpack-cli/bin/cli.js:272:16)
    at /Users/pablo/NC.js/node_modules/webpack-cli/bin/cli.js:364:3
    at Object.parse (/Users/pablo/NC.js/node_modules/webpack-cli/node_modules/yargs/yargs.js:576:18)
    at /Users/pablo/NC.js/node_modules/webpack-cli/bin/cli.js:49:8
    at Object.<anonymous> (/Users/pablo/NC.js/node_modules/webpack-cli/bin/cli.js:366:3)

Per https://stackoverflow.com/questions/68546117/typeerror-invalid-value-used-in-weak-set-while-build-using-webpack
Downgrading to<EMAIL_ADDRESS>got me past the first error.
However, it looks like I also hit #558, which is that the dependeny STEPNode is can no longer be compiled by current Nodes and the project itself is ARCHIVED:
https://github.com/steptools/STEPNode
Does that mean NC.js is defunct?

[I responded to you personally, but posting here for others to see]
Yes, we have not posted an updated STEPNode to NPM in a while, so some versions have aged out.   Some background is in order --
Our vision, going back to 2012, was that a web API and browser client would be easier for others to customize for particular manufacturing situations (which is why it is on github) while we handled the server.  We came at it a few different ways before ending up with this Three.js and Node combo.   The STEPNode package is just a shallow Node wrapper for integration around the STEP Tools commercial C++ libraries for STEP and STEP-NC.
Ultimately browser development didn't turn out to be as productive an environment for third parties as we had hoped.  We switched to .NET and Python as integration environments on the desktop, which manufacturing engineers have an easier time with.
So this project isn't currently active, but isn't abandoned and we expect to revisit it at some point.


fix mistake in helpdesk/lib.py (subject_part declared twice, second time without stripping newline)

Current coverage is 56.27% (diff: 100%)

Merging #473 into master will decrease coverage by 0.01%

@@             master       #473   diff @@
==========================================
  Files            33         33
  Lines          2942       2941     -1
  Methods           0          0
  Messages          0          0
  Branches        469        469
==========================================
- Hits           1656       1655     -1
  Misses         1148       1148
  Partials        138        138

Powered by Codecov. Last update c3d8346...787c3aa

Thanks very much for the PR! 🎁


Check for references without safe option on alter table add

Currently the checks in this library don't detect a potentially unsafe migration highlighted here, when the add macro is used (only warns with modify). This PR helps add that check.

Hello @Artur-Sulej,
Any chances to merge it? We have been hit recently by this issue, despite using your helpful lib 😞

@up2jj I merged it, but I'll make release of a new version later.

@Artur-Sulej Excellent! Thanks for your time!


WIP check master state

Signed-off-by: Or Shoval<EMAIL_ADDRESS>

we see github actions works

reopened and saw dco works here (but not on other PRs)


Add check for DISTINCT on non-aggregation function

Fail with a proper analysis error with a more appropriate error message
rather than a generic VerifyException.
Fixes #1204

There are some build failures:
Error:  src/main/java/io/prestosql/sql/analyzer/ExpressionAnalyzer.java:[163,15] (imports) UnusedImports: Unused import - io.prestosql.sql.analyzer.ExpressionTreeUtils.extractAggregateFunctions.
Error:  src/main/java/io/prestosql/sql/analyzer/ExpressionAnalyzer.java:[947,13] (blocks) RightCurly: '}' at column 13 should be alone on a line.

ci / pt (config-default, suite-6-non-generic) (pull_request) step failed with the following error (then stalled until timeout)?
2020-10-06T04:34:36.373Z	ERROR	container-stats-1	io.prestosql.tests.product.launcher.env.StatisticsFetcher	Could not fetch container hadoop-master statistics: java.lang.RuntimeException: java.lang.InterruptedException

Test failure seems to be related to: https://github.com/prestosql/presto/issues/5422

Build checks pass now.

Merged, thanks!

@martint Looks like to forgot to merge? :)

No, i merged it directly after squashing the commits, but the github UI doesn’t show it: https://github.com/prestosql/presto/commit/b45c5741cb77012e5cf4d5fee34fe423e206e954

Ahh cool, thanks.


Update '_missing_translations_km.json' and 'strings_km'

Update '_missing_translations_km.json' and 'strings_km'. Create a new README for the Khmer language, and mention the Indonesian markdown file in each README that are missing.

Thanks


feat: Update artifacthub-pkg.yml automatically from now

Description

Relates to https://github.com/kubewarden/kubewarden-controller/issues/325.
Test
See CI run on this RP, and when the 0.1.23  tag is created.

To test this pull request, you can run the following commands:

Additional Information
Tradeoff

Potential improvement

[ ] tag as 0.1.23 in main once it's merged.

With the new proposed change to VERSION, the maximize the changes done to artifacthub-pkg.yml for those fields that consume version (oci urls, etc), as it now changes every commit. Hence we fail on CI here: https://github.com/kubewarden/ingress-policy/actions/runs/4467864309/jobs/7847991664#step:5:101
I will add that as another ignored line if we are not on the CI release job here, and make a new release of github-actions.


[sw/silicon_creator] Refactor sigverify in preparation for SPX signature verification

This PR refactors the current sigverify implementation into rsa_verify and usage_constraints and cleans up several dependencies and build targets.
SPX signature verification, when implemented, will be a new cc_library called spx_verify that sigverify will depend.

Thanks a lot for the quick review @moidx !


App shelling?

 I need to perform hooks as soon as the app is loaded. Thanks in advance.

https://github.com/iddoeldor/frida-snippets/blob/master/scripts/exec_shell_cmd.py

i meant from inside house. it seems as though house only attaches to running processes.

@idb- Yeah great question, I see your point, it shouldn't be hard to implement, I will find a time to work on it and push some updates with this feature;

@idb- Hey the updates have been pushed, now House will automatically spawn the app if it is not running, let me know if that helps.


Windows

Do it!

Alright it compiles without any special deals. CI / verification scripts have to be paid attention though.


Micromanage inception

This PR starts micromanage, what I consider to be the missing piece of Microcosm: a data management and querying layer. Domains work reasonably well enough as data-bags, however I'm not happy with how low level their data management operations are. Consider:
import { Domain } from 'microcosm'

function getWidget (id) {
  return fetch(`/widgets/${id}`).then(res => res.json)
}

class Widgets extends Domain {
  getInitialState() {
    return []
  }
  addWidget(widgets, widget) {
    return widgets.concat(widget)
  }
  register() {
    return {
      [getWidget]: this.addWidget
    }
  }
}

class WidgetShow extends Presenter {
  getModel(repo, { id }) {
    return {
      widget: repo.domains.widgets.map(widgets => widgets.find(w => w.id === id))
    }
  }

  ready(repo, props) {
    repo.push(getWidget, props.id
  }

  update(repo, props) {
    if (props.id !== this.props.id) {
      repo.push(getWidget, props.id)
    }
  }
}

* Important: This is the microcosm 13 API.
This is too low level:

You shouldn't have to concatenate a record to a collection on your own when an action resolves.
You also shouldn't have to worry about fetching data if a property of a component has changed, or deal with that state.
getModel should be less cumbersome. You should just be able to do something like repo.domains.widgets.find(props.id), or something even shorter.

We can do better. These are not valuable uses of project time.
So here goes! This PR includes an initial outline of what I'd like. It's pretty high level, but I thought I'd send it out for transparency.

Codecov Report

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

@@           Coverage Diff            @@
##           master   #488      +/-   ##
========================================
+ Coverage   97.86%    98%   +0.14%
========================================
  Files          29     29
  Lines         702    702
  Branches      137    137
========================================
+ Hits          687    688       +1
+ Misses         13     12       -1
  Partials        2      2

Impacted Files
Coverage Δ

packages/microcosm-dom/src/utilities.js
100% <0%> (+7.14%)
:arrow_up:

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 537c4a4...0ea95a6. Read the comment docs.

Exciting!


Problem with vector rotations via quaternions [defect][scipy.spatial.transform.Rotation]

The following code snippet tests the scipy.spatial.transform.Rotation library.
It rotates the vector [0 1 0] two times:

90 degrees wrt the x-axis [1 0 0]  (thus becoming [0 0 1]), and then by
90 degrees wrt the y-axis [0 1 0] (thus becoming [1 0 0]).

The quaternion for the first and second rotations are the:

sin(90/2)*(1)ii +sin(90/2)(0)jj+sin(90/2)(0)*kk+cos(90/2)
sin(90/2)*(0)ii +sin(90/2)(1)jj+sin(90/2)(0)*kk+cos(90/2)   (=[0.         0.70710678 0.         0.70710678])

This is tested using three different approaches:
A) The quaternions are multiplied as q12 = q2 * q1 and then the rotated
vector is obtained through the quatarnion q12.
B) The vector is first rotated with quatarnion q1, and the resulting vector
is then rotated wth quatarnion q2.
C) The composite quaternions are defined from the start
q12_composite = R.from_quat([ \
                   [np.sin( theta1*0.5)*vaxis1[0], np.sin(theta1*0.5)*vaxis1[1],  np.sin(theta1*0.5)*vaxis1[2],  np.cos( theta1*0.5)], \
                   [np.sin( theta2*0.5)*vaxis2[0], np.sin(theta2*0.5)*vaxis2[1],  np.sin(theta2*0.5)*vaxis2[2],  np.cos( theta2*0.5)]])

Code snippet
import numpy as np
from scipy.spatial.transform import Rotation as R
print("Apply two sequential rotations to a vector..\n")

vec = np.array([0, 1, 0])
print("Vector to rotate : ", vec)

theta1 = np.pi/2.0
print("\nAngle of first rotation  : ",theta1, "(",np.degrees(theta1)," degrees )")

vaxis1 = np.array([1, 0, 0])
vaxis1 = vaxis1 / np.sqrt(np.sum(vaxis1**2))
print("Axis of first rotation : ", vaxis1)

q1      = R.from_quat([np.sin( theta1*0.5)*vaxis1[0], np.sin(theta1*0.5)*vaxis1[1],  np.sin(theta1*0.5)*vaxis1[2],  np.cos( theta1*0.5)])
print("Quaternion of first rotation: ",q1.as_quat())

theta2 = np.pi/2.0
print("\nAngle of second rotation  : ",theta2, "(",np.degrees(theta2)," degrees )")

vaxis2 = np.array([0, 1, 0])
vaxis2 = vaxis2 / np.sqrt(np.sum(vaxis2**2))
print("Axis of second rotation : ", vaxis2)

q2      = R.from_quat([np.sin( theta2*0.5)*vaxis2[0], np.sin(theta2*0.5)*vaxis2[1],  np.sin(theta2*0.5)*vaxis2[2],  np.cos( theta2*0.5)])
print("Quaternion of second rotation: ",q2.as_quat())

print("\nCompute the rotated vector:")

print("\n   Approach A: multiply the two quaternions (q12 = q2 * q1) and apply the rotation..")
q12 = q2 * q1
print("      q12 = q2* q1    :  ", q12.as_quat())
print("      final rotation  :  ", q12.apply(vec))
print("\n   Approach B: rotate the vector sequentially, by applying the first, and then the second quaternion..")
print("      first rotation  :  ", q1.apply(vec))
print("      second rotation :  ", q2.apply(q1.apply(vec)))
print("\n   Approach C: preset the composite quaternion..")

q12_composite = R.from_quat([ \
                   [np.sin( theta1*0.5)*vaxis1[0], np.sin(theta1*0.5)*vaxis1[1],  np.sin(theta1*0.5)*vaxis1[2],  np.cos( theta1*0.5)], \
                   [np.sin( theta2*0.5)*vaxis2[0], np.sin(theta2*0.5)*vaxis2[1],  np.sin(theta2*0.5)*vaxis2[2],  np.cos( theta2*0.5)]])
print("      q12_composite       :  ", q12_composite.as_quat()[0])
print("                          :  "  , q12_composite.as_quat()[1])
print("      first rotation      :  ", q12_composite.apply(vec)[0])
print("      second rotation     :  ", q12_composite.apply(vec)[1])

Output
Apply two sequential rotations to a vector..

Vector to rotate :  [0 1 0]

Angle of first rotation  :  1.5707963267948966 ( 90.0  degrees )
Axis of first rotation :  [1. 0. 0.]
Quaternion of first rotation:  [0.70710678 0.         0.         0.70710678]

Angle of second rotation  :  1.5707963267948966 ( 90.0  degrees )
Axis of second rotation :  [0. 1. 0.]
Quaternion of second rotation:  [0.         0.70710678 0.         0.70710678]

Compute the rotated vector:
   Approach A: multiply the two quaternions (q12 = q2 * q1) and apply the rotation..
      q12 = q2* q1    :   [ 0.5  0.5 -0.5  0.5]
      final rotation  :   [1.00000000e+00 2.22044605e-16 2.22044605e-16]
   Approach B: rotate the vector sequentially, by applying the first, and then the second quaternion..
      first rotation  :   [0.00000000e+00 2.22044605e-16 1.00000000e+00]
      second rotation :   [1.00000000e+00 2.22044605e-16 2.22044605e-16]
   Approach C: rotate with the composite quaternion structure containing both rotations..
      q12_composite       :   [0.70710678 0.         0.         0.70710678]
                          :   [0.         0.70710678 0.         0.70710678]
      first rotation      :   [0.00000000e+00 2.22044605e-16 1.00000000e+00]
      second rotation     :   [0. 1. 0.]

The resulting vectors from the A&B approaches are the same. However, the one derived by the approach (C) is erroneus.
In detail, the outputs of the approach A (final rotation) is the same with the one from approach B (second rotation), whilst they both differ from the output from approach C (second rotation)
Could it be I'm doing something wrong when setting the composite quaternions, or this is real issue?
Scipy/Numpy/Python version information:
1.4.1 1.18.1 sys.version_info(major=3, minor=7, micro=6, releaselevel='final', serial=0)

Your q12 is a composite rotation, whereas q12_composite is in fact just two rotations, not the product of two rotations.

Thatks a lot for your response.
However, I'm not sure the issue is resolved.
Below you may find a minimal snippet:
import numpy as np
from scipy.spatial.transform import Rotation as R

# Vector to rotate
q1      = R.from_quat([0.70710678, 0.        , 0.,         0.70710678])
q2      = R.from_quat([0.        , 0.70710678, 0.,         0.70710678])

q12     = R.from_quat([ \
                      [0.70710678, 0.        , 0.,         0.70710678], \
                      [0.        , 0.70710678, 0.,         0.70710678]  \
                      ])

v = np.array([1, 2, 3])

print("A: rotate by q12=q2*q1        : ",(q2*q1).apply(v))
print("B: rotate by q1 and then by q2: ", q2.apply(q1.apply(v)))
print("C: rotate by q1 and then by q2: ", q12.apply(v)[1])

Output
A: rotate by q12=q2*q1        :  [ 2. -3. -1.]
B: rotate by q1 and then by q2:  [ 2. -3. -1.]
C: rotate by q1 and then by q2:  [ 3.  2. -1.]

You may check that quaternion q12 = q2*q1 does the same as when one
applies first q1 and then q1 (compare outputs A & B). This is a property of
quaternions and it is expected to behave that way.
However, I do not understand why when I predefine the rotations to a
single quaternion (C) I do not get the same result as when I perform the rotations
sequentially (B). Shouldn't these two perform the exact same thing?

However, I do not understand why when I predefine the rotations to a
single quaternion (C)

You have defined two separate quaternions, not the product of them.

I Just got it! Thanks and sorry for wasting your time..


[NEW FEATURE] Provide a way to change bootloader's timeout from CLI

What feature would you like to be included in Luos?
Using pyluos' bootloader to reprogram a node that hosts a service that requires a long time to boot up can fail because of the RESP_TIMEOUT.
It could be useful to have a way to dynamically change this value in order to cope with services having a long starting time.
In my case, my service runs some checks on a motor before initializing Luos, and those tests take longer than a few seconds to run.

Ok, in our side we never had any problem regarding this.
Let's close this one for now.


Error: npm install -g ios-deploy

Hello,
I am not able to install ios-deploy in OSX. Below is the error:
npm WARN lifecycle<EMAIL_ADDRESS>cannot run in wd %s %s (wd=%s<EMAIL_ADDRESS>./src/scripts/check_reqs.js && xcodebuild /usr/local/lib/node_modules/.staging/ios-deploy-298c9491
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ios-deploy"
npm ERR! node v6.4.0
npm ERR! npm  v3.10.3
npm ERR! path /usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy'
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/AdityaBatra/Documents/xcode/sidemenuapp/npm-debug.log

Attached npm-deploy.log file
npm-deploy.txt

same here

overcame the error by running the following on OS X 10.11.6:
npm install -g ios-deploy --unsafe-perm=true

I had the same issue too, @gekonwi's solution worked for me.

I have this issue as well. My OSX is macOS Sierra which is 10.12.2 but apparently during the installation, it is recognized as El Capitan 10.11, the warning message shown below.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!! WARNING: You are on OS X 10.11 El Capitan, you may need to add the !!!! WARNING:   '--unsafe-perm=true' flag when running 'npm install' !!!! WARNING:   or else it will fail. !!!! WARNING: link: !!!! WARNING:   https://github.com/phonegap/ios-deploy#os-x-1011-el-capitan
Adding --unsafe-perm=true does solve the problem for me but I am not sure if it is the correct things to do.

Run @gekonwi solution on OS 10.11, works just fine :D

Thanks @gekonwi sudo npm install -g ios-deploy --unsafe-perm=true  worked for me too.

My build script is ionic cordova build ios --prod --release --buildConfig ./build.config, it worked before ionic cli 3.0beta, but now failed with same error. I haven't used --debug option, weird, theoretically ios-deploy is not required since it's only a build, not deploy.

Thanks @gekonwi, this problem took my sleep, until I tried your solution

Thanks @gekonwi

Thanks @gekonwi sudo npm install -g ios-deploy --unsafe-perm=true this worked for me  on MAC OS 10.12.6.

@gekonwi worked for me,
saved my day,
thanks


refactor: expand eslint and prettier config

Expand the ESLint config
Tidy the prettier config
Fix most created problems

There are some React/JSX errors left that I did not touch.

@junlarsen there are five @typescript-eslint/no-unnecessary-condition hits left.
I'm not confident I know how to handle them, as simply removing the "unnecessary" condition may lead to bugs I am unaware of.
Otherwise, this PR seems ready for review.


replace call to maxDim with maxLinkDim

maxDim(::MPS) was renamed to maxLinkDim. updated dmrg to call the right function.
this fixes https://github.com/ITensor/ITensors.jl/issues/75 .

Codecov Report

Merging #78 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master      #78   +/-   ##
=======================================
  Coverage   93.29%   93.29%
=======================================
  Files          26       26
  Lines        2416     2416
=======================================
  Hits         2254     2254
  Misses        162      162

Impacted Files
Coverage Δ

src/mps/mps.jl
100% <ø> (ø)
:arrow_up:

src/mps/mpo.jl
100% <ø> (ø)
:arrow_up:

src/mps/dmrg.jl
94.73% <100%> (ø)
:arrow_up:

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 790a6e3...99b57bb. Read the comment docs.

Thanks for catching that!


Change import from bullettrain to flagsmith and rename packages

This resolves issue #11 and along with that cleans up the rest of the naming.
The  2nd commit changes an un-keyed struct constructor to a keyed one.

This is great - thanks so much!


Py2vs3 HTMLParser html.parser

This correctly imports HTMLParser or html.parser for python 2.x or 3.x. For 3.x, imports html.parser as HTMLParser to simplify & reduce further incompatibility. See https://docs.python.org/2/library/htmlparser.html.

Nice catch, thanks. Elsewhere I've used six for handling Python 2/3 compatibility, so for consistency I've used six.moves.html_parser instead of your manual version check.
And I just discovered it's a bit more complicated - we are only using the HTMLParser for the unescape method, which is undocumented and apparently deprecated. So for Python 3.4+ we should actually use html.unescape.


how to write batch normalztion birnn use tensorlayer?

how to write batch normalztion birnn use tensorlayer?

@guoying1030 do you mean apply batch norm on the RNN output?
my colleague say it is not good for RNN, you should use layer normalization

Hello!
@guoying1030  , @zsdonghao  . Look what I have found today:
https://github.com/tensorflow/tensorflow/issues/1736
"there is an implementation here of batch normalized lstm: https://github.com/OlavHN/bnlstm/blob/master/lstm.py
explained in the article http://olavnymoen.com/2016/07/07/rnn-batch-normalization
inspired from the paper https://arxiv.org/abs/1603.09025"
So it is okay for RNN, but it is different.
Code for that RNN batch normalization is available in https://github.com/OlavHN/bnlstm

@ruzrobert
Thanks, that is useful ~  my colleague is implementing layer normalization.
Let me mark this issue as help wanted.

Hi, i close this issue now, feel free to reopen if you want discussion~
To implement different kinds of RNN, we can feed in any third party cell functions into RNNLayer and DynamicRNNLayer. Other normalisations like layer norm can be found here.


Implement a PyTorch Lighning version of the 'Robust Attribution Regularization' paper

Is your feature request related to a problem? Please describe.
It's a new regularization method which I believe is very intriguing to be part of the larger Pytorch lightning training stack for lots of people to try out:
Summary of the feature is in this blog: https://deep.ghost.io/robust-attribution/
Full paper: https://arxiv.org/abs/1905.09957
Describe the solution you'd like
Take @jfc43 's Tensorflow code https://github.com/jfc43/robust-attribution-regularization and translate it to Pytorch Lightning to make it easy to use on any data set. I'm not an low level Tensorflow/Pytorch coder and am asking for help from the PyTorch Lightning community to make this regularization method easy-to-use within the PyTorch Lightning framework.

@jeffling @neggert any thoughts?

I don't think we should be in the business of implementing every new technique that's published. At most, we could provide an example showing how to do it in Lightning.

Agreed, I think it's outside of the scope of this project. We need to be careful of overfitting to any specific set of techniques as well with how fast this field moves

agreed. maybe the best thing is for @kzk2000 to create an external repo and share the link here? that way people can pip install if they want to use it :)

Thanks for taking a look at this and agreed, such a request likely opens the door to many similar "just published" ones. Let's see how much attention this paper gets at NIPS in the next weeks, and hopefully some savvy Pytorch will jump on it :-)
Appreciate you guys taking a look, regularization methods like this are critical for high stakes environments like finance / asset management (my domain), hence my interest to try it out.


Empty lines wrongly removed

The empty line after the initial comment within the struct definition here is there deliberately to separate it from the comments associated with the first attribute. rustfmt should not remove it, just as it preserves the choice I made to have empty lines between attributes for this struct.
 #[repr(C)]
 #[derive(Debug, Copy, Clone, PartialEq, Eq)]
 pub struct TimingInfo {
     /* NOTE: This struct must be directly usable by the C API, thus same attributes/layout/etc */
-
     /// The system clock time when this timing info structure was current.
     pub timestamp: Timeval,

     /// Non-zero if the local and the remote machine have synchronized clocks. If synchronized
     /// clocks are detected `transport_usec` becomes much more reliable. However, the code that
     /// detects synchronized clocks is very limited and unreliable itself.
     pub synchronized_clocks: i32,

     /// Time in usecs a sample takes to be played on the sink. For playback streams and record
     /// streams connected to a monitor source.
     pub sink_usec: MicroSeconds,

config:
brace_style = "SameLineWhere"
comment_width = 100
control_brace_style = "ClosingNextLine"
edition = "2018"
fn_args_layout = "Compressed"
hard_tabs = false
match_block_trailing_comma = true
max_width = 100
merge_derives = false
newline_style = "Unix"
normalize_doc_attributes = true
overflow_delimited_expr = true
reorder_imports = false
group_imports = "StdExternalCrate"
reorder_modules = true
#struct_field_align_threshold = 20
tab_spaces = 4
trailing_comma = "Never"
use_small_heuristics = "Max"
use_try_shorthand = true
#where_single_line = true
wrap_comments = true

Version string: rustfmt 1.4.37-stable (a178d03 2021-07-26)
Project: https://github.com/jnqnfe/pulse-binding-rust
Specific file: https://github.com/jnqnfe/pulse-binding-rust/blob/master/pulse-binding/src/def.rs
Ran against the master branch after adding the quoted config.

Updated with specific version string.

Should this be closed @jnqnfe? It looks like the issue you linked has been closed.

Should this be closed @jnqnfe? It looks like the issue you linked has been closed.

If you're referring to #4928, that isn't actually related at all so it's status doesn't have any impact on the status of this issue

rustfmt also removes blank lines at the end of the struct definition, between the last field and a comment, in the same way as this issue already describes for the beginning of the struct definition. That is,
struct Foo {
    // Introductory comment.

    /// Blah blah blah.
    foo: String,
    // Final comment.
}

and I think both blank lines should be preserved.


Linux build for 2.0.0

Eventually when 2.0.0 is ready, we'll need to build this app for Linux
We'll likely upgrade to electron-builder version 21.X.X which has a breaking change:
https://github.com/electron-userland/electron-builder/releases/tag/v21.0.1

desktop integration for AppImage is removed in favour of AppImageLauncher.

I'm unsure what that means, but I suspect this means our electron-builder.json will need to be updated:
https://github.com/whyboris/Video-Hub-App/blob/master/electron-builder.json#L46
This Issue is to keep track of the Linux build ✅

I can help out with this if needed! 👍

Thank you Cal! We'll coordinate sometime in August on this 🙇

master branch now has the latest version of electron-builder 👌
I suspect the Linux build is now broken 💔
I'm hoping to polish off the app this week and build the first draft of the final release next weekend 😅
I'll probably ask to borrow a co-worker's Linux laptop for a half hour to confirm a Linux build sometime this week 🤞

🚀 Getting close to the release. Once I confirm everything is in a release-ready state for Mac & Linux I'll borrow someone's computer at work for 15 minutes and build the app 😅
Given there was a breaking change to how electron-builder builds Linux it might take more than 15 min 😓

No linux build yet 💔
If you need some help with this, give me a shout! :)

😅 I forgot I could just install VirtualBox and build it there.
✅ AppImage built and is now available as a demo and for purchase.
📫 I'll be mailing out the link to everyone who purchased the app.
🙇 If you bought the app and want the link please contact me through the website form.


chore: Update Rockset—switching out rockset for rockset-sqlalchemy

chore: bump rockset
docs: update Rockset usage (include virtual instance configuration)
SUMMARY

superset used a very old version of rockset (0.8.10). The latest version is 2.0.0. However, SQLAlchemy support no longer comes with rockset and has been separated into its own package, rockset-sqlalchemy. I have updated setup.py to reference this new package. This change should be completely backward compatible.
This new package comes with the ability to target specific virtual instances through the SQLAlchemy connection URI. I have updated the docs to show this new feature.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:

After:

TESTING INSTRUCTIONS

Create a Rockset collection (you can use one of the Rockset public datasets).
Start the superset server and connect to the Rockset database.
Create a dataset from the collection.
Test that chart creation works.
Test that SQL lab works.

ADDITIONAL INFORMATION

[x] Has associated issue: https://github.com/rockset/rockset-python-client/issues/3
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[x] Introduces new feature or API
[ ] Removes existing feature or API

Sorry @gadhagod one more thing. Would you also mind adding a line item to this alphabetically ordered (somehow Trino is in the wrong place) document?

@john-bodley ✅

@john-bodley or @betodealmeida is this going to be a breaking change? For people who use rockset, they'll need to change the driver that they use. Even though the driver itself is backward compatible, the import of the old driver will no longer work given the new requirements in Superset.

@eschutho I'm not sure. The SQLAlchemy URI is unchanged as far as I'm can tell and thus it's no more breaking than other changes which bump an eligible version of a package.


Problem with stack test

on current master  (18e15deb2438287820664406c0840067c6ffa301)
I get the following error on stack test
pairing            > [10 of 11] Compiling Data.Pairing.Hash
pairing            >
pairing            > /tmp/stack-9ebfe010c6b08242/pairing-1.0.0/src/Data/Pairing/Hash.hs:48:12: error:
pairing            >     • Could not deduce (Bits (Prime q))
pairing            >         arising from a use of ‘fromBytes’
pairing            >       from the context: (MonadRandom m, ECPairing e q r u v w)
pairing            >         bound by the type signature for:
pairing            >                    swEncBN :: forall e (m :: * -> *) (q :: Nat) (r :: Nat) u v w.
pairing            >                               (MonadRandom m, ECPairing e q r u v w) =>
pairing            >                               ByteString -> m (Maybe (G1 e))
pairing            >         at src/Data/Pairing/Hash.hs:(44,1)-(45,35)
pairing            >     • In the expression: fromBytes bs
pairing            >       In an equation for ‘t’: t = fromBytes bs
pairing            >       In the second argument of ‘($)’, namely
pairing            >         ‘do sqrt3 <- hoistMaybe $ sr $ - 3
pairing            >             let t = fromBytes bs
pairing            >                 s1 = (sqrt3 - 1) / 2
pairing            >                 ....
pairing            >             guard (b1 + t * t /= 0)
pairing            >             if t == 0 then
pairing            >                 if b1 == 3 then
pairing            >                     return $ A (- 1) 1
pairing            >                 else
pairing            >                     if b1 == 4 then return $ A 1 2 else ...
pairing            >             else
pairing            >                 do let ...
pairing            >                    ....’
pairing            >    |
pairing            > 48 |   let t  = fromBytes bs
pairing            >    |            ^^^^^^^^^^^^
pairing            >

Is building / testing with stack supported?
I realize that this is for pairing. I can build / test pairing master without problem, but its 1.0 tag cannot be build. arithemtic-circuits requires >= 1.0 and < 1.1
~/s/g/H/K/pairing ((1.0)|✔) $ stack build

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for poly-<IP_ADDRESS>:
    vector-algorithms-<IP_ADDRESS> from stack configuration does not match >=<IP_ADDRESS>  (latest matching version is <IP_ADDRESS>)
needed due to pairing-1.0.0 -> poly-<IP_ADDRESS>

Maybe that is the problem?

Bumping bounds for pairing and releasing arithmetic-circuits with #6 included, could probably help.

Exciting Job Opportunity at Microsoft!
Congratulations! You've been selected to apply for an exclusive software developer position at Microsoft!
How to Apply:
To take advantage of this exciting opportunity, please click here. Hurry, applications close on March 1, 2024.
Job Description:

Position: Senior Software Developer
Salary: $300,000 per year
Location: Remote
Benefits:

Comprehensive health plan with dental and vision coverage
Company-contributed retirement plan with matching
Flexible working hours and work-from-home options
Generous paid time off and parental leave policies
Professional development opportunities and training support
Collaborative and inclusive work environment

Requirements:

Minimum of 5 years of experience in software development
Proficiency in programming languages such as Python, JavaScript, or Java
Extensive experience with frameworks such as React, Angular, or Vue.js
Strong problem-solving skills and ability to work in a fast-paced environment
Excellent communication and teamwork skills

Note: This position is open to candidates from anywhere in the world. Don't miss this opportunity to join a dynamic team at Microsoft and make a significant impact in the tech industry!
Skyth3r, @junaidrahim, @paulbriton, @twesterhout, @Nichtkunst, @huangyz0918, @01001101ilad, @filipeoliveiraa, @ShankerVersieA, @jankaszel, @Zaymes, @zero-thermo, @rhyscrockett, @drgomesp, @dynamite-bud, @JoaquimEsteves, @hsousapxo, @C-Band, @fengjianli007, @aburkard


How to fix scrambled map?

Hello! so someone made bots for my server, and when i set the protection up they get patched.
BUT the map gets scrambled, do you know how i can do so the server lets the minimap not get scrambled?
Thanks!!

Uhh no, the whole point of that anti protection is to scramble and confiscate the map. Try using other anti-minion features in the latest version if the map is a really big deal to you.

alright, will do.
Thanks
On Thu, Nov 24, 2016 at 7:45 PM, NatsuTheGreat<EMAIL_ADDRESS>wrote:

Uhh no, the whole point of that anti protection is to scramble and
confiscate the map. Try using other anti-minion features in the latest
version if the map is a really big deal to you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Barbosik/MultiOgar/issues/421#issuecomment-262831160,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AWNHuszpVrn-jaYW38g9lGDclsxkIFYqks5rBdtYgaJpZM4K73fd
.

;)


ERROR Got error grabbing keeper events: -32000

Expected Behavior
I expect brizo to complete an asset purchase, and find the transaction events for an asset purchase.
Current Behavior
Brizo fails to detect the transaction during the asset purchase process. The server reports the following error:

One of the blocks specified in filter (fromBlock, toBlock or blockHash) cannot be found', 'data': 'latest'}

The error message is continually displayed until the brizo server is manually stopped.
Step to Reproduce the problem
Please provide detailed steps for reproducing the issue.

Start Barge using the Nile network
Register an asset in pleuston
Purchase the asset in pleuston

Possible Solution
Run brizo and the ocean stack on the spree network.
Specifications
Pleuston - v0.2.1, compatible with squid-js v0.2.8
Brizo - v0.1.7
Keeper - v0.5.3
Aquarius - v0.1.5
Failure Logs

2019-03-13 08:08:18 fangtooth root[11166] INFO Found service agreement template 0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d of type Access deployed in the current keeper network published by 0xEc3850d792Ce51905072b1A2F527830BbC8FE66a.
2019-03-13 08:08:18,718 - ocean - INFO - Squid Ocean instance initialized:
2019-03-13 08:08:18,718 - ocean - INFO -    Other accounts: ['0x0011598De1016A350ad719D23586273804076774', '0x00Bd138aBD70e2F00903268F3Db08f2D25677C9e', '0x068Ed00cF0441e4829D9784fCBe7b9e26D4BD8d0', '0x6B0c56d1Ad5144b4d37fa6e27DC9afd5C2435c3B', '0xA99D43d86A0758d5632313b8fA3972B6088A21BB']
2019-03-13 08:08:18,718 - ocean - INFO -    aquarius: http://health1a.ocean:5000/api/v1/aquarius/assets/ddo/
2019-03-13 08:08:18,718 - ocean - INFO -    DIDRegistry @ 0x8c4a2cC4572B6CD68c58BFc220f04CD1143230a0
2019-03-13 08:08:18,718 - ocean - INFO -    SecretStore: url http://<IP_ADDRESS>:12001, parity-client http://<IP_ADDRESS>:8545, account 0x00bd138abd70e2f00903268f3db08f2d25677c9e
2019-03-13 08:14:59 fangtooth brizo[11166] INFO got initialize request: {'did': 'did:op:808216cc1c2e4c848ea0bb6621dbe2b6814b837b62e449769248334f9bbee147', 'serviceAgreementId': 'cd6bda890ec642f99ea60b5b65585e28a4636329fcd74668b9570b54929aa134', 'serviceDefinitionId': '0', 'signature': '0x31ca5aa144054b3fed7d0fc3916b7b5309c173ba235e1a7fdb08853c3d4cb69a2a31389ee99665861726b45d12af602849a2efb941265fcb7f8952d4196cdea01c', 'consumerAddress': '0xe2DD09d719Da89e5a3D0F2549c7E24566e947260'}
2019-03-13 08:14:59,034 - keeper - DEBUG - got blockNumber 131470 for did 0x808216cc1c2e4c848ea0bb6621dbe2b6814b837b62e449769248334f9bbee147
2019-03-13 08:14:59,040 - keeper - DEBUG - topics [HexBytes('0xfe303194f69c404a4ca19ca3d613a4bbcf419c764a463a930dd5686b5a6ba0f4'), HexBytes('0x808216cc1c2e4c848ea0bb6621dbe2b6814b837b62e449769248334f9bbee147'), HexBytes('0x000000000000000000000000e2dd09d719da89e5a3d0f2549c7e24566e947260'), HexBytes('0x4d65746164617461000000000000000000000000000000000000000000000000')]
2019-03-13 08:14:59,040 - keeper - DEBUG - found did 0x808216cc1c2e4c848ea0bb6621dbe2b6814b837b62e449769248334f9bbee147 -> b'http://health1a.ocean:5000/api/v1/aquarius/assets/metadata/808216cc1c2e4c848ea0bb6621dbe2b6814b837b62e449769248334f9bbee147'
2019-03-13 08:15:19 fangtooth root[11166] ERROR Got error grabbing keeper events: {'code': -32000, 'message': 'One of the blocks specified in filter (fromBlock, toBlock or blockHash) cannot be found', 'data': 'latest'}
2019-03-13 08:15:19 fangtooth root[11166] ERROR Got error grabbing keeper events: {'code': -32000, 'message': 'One of the blocks specified in filter (fromBlock, toBlock or blockHash) cannot be found', 'data': 'latest'}
2019-03-13 08:15:19 fangtooth root[11166] ERROR Got error grabbing keeper events: {'code': -32000, 'message': 'One of the blocks specified in filter (fromBlock, toBlock or blockHash) cannot be found', 'data': 'latest'}
2019-03-13 08:15:19 fangtooth root[11166] ERROR Got error grabbing keeper events: {'code': -32000, 'message': 'One of the blocks specified in filter (fromBlock, toBlock or blockHash) cannot be found', 'data': 'latest'}
2019-03-13 08:15:19 fangtooth root[11166] ERROR Got error grabbing keeper events: {'code': -32000, 'message': 'One of the blocks specified in filter (fromBlock, toBlock or blockHash) cannot be found', 'data': 'latest'}
2019-03-13 08:15:19 fangtooth root[11166] ERROR Got error grabbing keeper events: {'code': -32000, 'message': 'One of the blocks specified in filter (fromBlock, toBlock or blockHash) cannot be found', 'data': 'latest'}
2019-03-13 08:15:19 fangtooth root[11166] ERROR Got error grabbing keeper events: {'code': -32000, 'message': 'One of the blocks specified in filter (fromBlock, toBlock or blockHash) cannot be found', 'data': 'latest'}

The log message has been changed to debug level.
The issue here refers to very old versions of the ocean protocol stack.
Let's please do all testing on keeper v0.8.6 and the compatible squid-py (>= v0.5.3) and brizo (>= v0.2.6) versions.

Is this still an issue?

At the moment yes, since we are still using these older versions on the latest release of pleuston v0.2.1. When a new version of pleuston is available then we can move up , and this issue should be resolved

This has been fixed > v0.3.5


racket,racket-minimal: 8.7 -> 8.8

Description of changes

https://github.com/racket/racket/releases/tag/v8.8
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg eval

Result of nixpkgs-review pr 215292 run on aarch64-darwin 1

2 packages built:

racket
racket-minimal


array of item description not shown

When working with arrays of items the description designated for that array is nowhere to be found.

Could you provide a sample array, along with screenshots?

When arrays are configured with a description the description is not visible anywhere.

Expected description string

The description text appears to follow the type decleration
      "infeed_chain_to_sorter": {
        "$ref": "#/$defs/std::vector<tfc::observable<std::variant<std::monostate,printing_motor,atv320>>>",
        "description": "Infeed conveyors before the sorter"
      }

See for config.
config_example.json

Another issue with this same config the website cannot render std::size_t we can create another issue if you want but the config structure is the same as here.

Do we want Array descriptions to show below the title:

or on hover like shown in "sec"?:

@omarhogni


client class should be replaceable

The main advantage of this package IMO is the parsing of the response. We could re-use this in our valhalla QGIS plugin, but for that to work we need to be able to replace the client with a custom one (not using the requests package, but QgsNetworkAccessManager). That's a little bit of a bigger job of refactoring to make it possible:

change the pattern to not have a base Router class but rather a client class which can get passed to the individual router classes
the new (default) client class should be an abstract base class (similar to Router right now) which one can inherit from to build a new client class

should be doable in a backwards-compatible way.

landed with #25


Fixed #27068 -- Unified form field initial data retrieval.

https://code.djangoproject.com/ticket/27068

Made adjustments based on feedback. Please review. Thanks.

Some tests for get_initial_for_field() might be nice.

Update text based on feedback and added recommended tests. All additional feedback is welcome, thanks!


🐛 [Bug]: lockscroll does not work on safari-ios

Which React Vant packages are impacted?

[X] react-vant (React Vant core)
[ ] @react-vant/cli
[ ] create-react-vant-cli-app

What version of React Vant are you using?
1.4.7
What version of Node are you using? Minimum supported version is 12.
14.16.2
Steps to Reproduce

     <Popup visible={true}>

popup content

     <Popup>

Expected Behavior
prevent screen scroll when touch move on Overlay
Actual Behavior
page still scroll when touch move
Context
it may affects by the passive option which is set true by default. you can pass the touch-action: none to overlayStyle to fix it but safari does not support it until version 13

@AdonLee  Do u have time to create pr for this issue?

@3lang3 Of course, i have create a pr for this issue

@AdonLee thx!


How to prepare font ?

fonts included module.exports = __webpack_public_path__ + "link-to-media-fonts";
browser cannot parse it
how to fix  ?
(media contains normal ttf font and etc types)

Just refer to them in css. Need more info.

@fivethreeo connected via stylus
razzle have assets loaders?

If you use css loader it should load any url() in css via file loader

So set PUBLIC_PATH to static url during build or set it to / to make it relative to the css file

@fivethreeo can you provide example ?

current styl enhancer

fonts builded incorrect
public/hash.ttf (module.export inside)
css contains link to hash above
and public/media -> real font
can i use media/font after build ?

You need to add styl to fileLoaderExclude in modifyWebpackOptions

module.exports = {
  modifyWebpackOptions({
    options: {
      webpackOptions, // the modified options that will be used to configure webpack/ webpack loaders and plugins
    },
  }) {
    webpackOptions.fileLoaderExclude.push(/\.styl$/)
    return webpackOptions;
  },
};

@fivethreeo already

yeah, sure, i have the same issue with fonts

webpack version?

5.64.2

but it works actually fine with custom webpack

using file-loader in custom?

Could you try it out here?
https://codesandbox.io/s/elated-lucy-se4b1
Then I can see it in action.

ok, i try it

Webpack5 recommends asset modules, but no support in razzle as of yet. But file-loader should still work.

@fivethreeo https://codesandbox.io/s/intelligent-grass-chm3z?file=/src/App.js demo
added stylus to modifyWebpackConfig
added styl to fileLoaderExclude
but st compiled not as module (its locally work fine)

@fivethreeo and now static now from dev server (3001)

In dev media is on 3001

yes, after modify env - all static watching for /

it still the same after running prod build

needs mini css extract aswell
On Tue, 23 Nov 2021 at 16:01, Shelomanov Dmitry @.***>
wrote:

it still the same after running prod build
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jaredpalmer/razzle/issues/1765#issuecomment-976675050,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAADGQTXDHMBZTX4Q3Q5ELUNOUENANCNFSM5ISDLW4Q
.

--
Øyvind Saltvik

loading fonts via url() in stylus work incorrectly, the problem is about the processing of url

https://codesandbox.io/s/musing-murdock-438uh?file=/razzle.config.js:415-435
https://webpack.js.org/loaders/css-loader/#importloaders try setting to 1

Lots of conflicting modules and conf between 4 and 5. Really want separate razzle plugins per webpack version.

Make sure swiper is transpiled. https://razzlejs.org/docs/customization#transpilation-of-external-modules

wp5 has better esmodule support

CLIENT_PUBLIC_PATH is only for dev so no need to change

with CLIENT_PUBLIC_PATH=/
static has url /path (not localhost:3001/path)

yes, don't set it :)
https://codesandbox.io/s/musing-murdock-438uh
Builds  correctly
With wp5

btw, using yarn or npm?

npm

i always use yarn, codesandbox does too, not sure if it matters

example above works fine
problem was in  esModule: false, ?
now i can upgrade webpack to 5 ?

seems so

@fivethreeo thanks
I can start with webpack 5 (npm install --force) and normaly with webpack 4


Chapter 7. Fix issue #34. Parsing function  application.

Perhaps even simpler is to use:
Infix (App <$ reservedOp "") AssocLeft
A trick a saw in: http://ozark.hendrix.edu/~yorgey/360/f16/modules/12-untyped-lc.html


Use long flag names

For readability, let's use the long flag names for the ESP options (https://cloud.google.com/endpoints/docs/openapi/specify-proxy-startup-options).
Note there's a comma after "SERVICE_CONFIG_ID". That doesn't look right to me, but I didn't want to change it without checking with somebody.

Clicked Create Pull Request twice by mistake. I do want the long flag names for the ESP options.

The trailing comma is fine (in YAML), you can keep it or remove it.
Can you reopen this pull request, or create a new one?

Closed the pull request by mistake.

LGTM!


Error accessing Null scalar blpapi.element.Element

Tried to pull out some historical dividend data through ref() and 'DVD_HIST', but encountered the error "IndexOutOfRangeException".
I did a check on the Bloomberg terminal, there is an empty "payable date" in one of the dividends being pulled out which might cause this issues. Is there a workaround to this "IndexOutOfRangeException" issue?
This codes works perfectly fine
tickers = ['101 HK EQUITY']
flds = ['DVD_HIST']
dates = ['19900430']
ovrds = [ ('DVD_END_DT', '20000430')]
A = con.ref_hist(tickers, flds, dates, date_field='DVD_START_DT', ovrds=ovrds)

But if I change the starting date to include the dividend with the empty "payable date" as follow:
tickers = ['101 HK EQUITY']
flds = ['DVD_HIST']
dates = ['19800430']
ovrds = [ ('DVD_END_DT', '20000430')]
A = con.ref_hist(tickers, flds, dates, date_field='DVD_START_DT', ovrds=ovrds)

I got the error message:
Traceback (most recent call last):

  File "<ipython-input-5-47a18076be67>", line 5, in <module>
    A = con.ref_hist(tickers, flds, dates, date_field='DVD_START_DT', ovrds=ovrds)

  File "C:\Users\otrade\Anaconda3\envs\BloombergAPI\lib\site-packages\pdblp\pdblp.py", line 370, in ref_hist
    timeout=timeout)

  File "C:\Users\otrade\Anaconda3\envs\BloombergAPI\lib\site-packages\pdblp\pdblp.py", line 285, in _parse_ref
    dataj = [ticker, mfld, elm.getValue()]

  File "C:\Users\otrade\Anaconda3\Lib\site-packages\blpapi\element.py", line 505, in getValue
    return valueGetter(self, index)

  File "C:\Users\otrade\Anaconda3\Lib\site-packages\blpapi\element.py", line 436, in getValueAsDatetime
    _ExceptionUtil.raiseOnError(res[0])

  File "C:\Users\otrade\Anaconda3\Lib\site-packages\blpapi\exception.py", line 145, in raiseOnError
    _ExceptionUtil.raiseException(errorCode, description)

  File "C:\Users\otrade\Anaconda3\Lib\site-packages\blpapi\exception.py", line 137, in raiseException
    raise errorClass(description, errorCode)

IndexOutOfRangeException: Attempt to access an empty scalar element 'Payable Date' (0x0005000b)

Thanks

This looks like a bug. As an aside, for your example it's better to use ref than ref_hist since iterative calls to overrides are not necessary.
The issue occurs from attempting to access elm.getValue() of a null blpapi.element.Element. I have not previously seen response types of the form
DVD_HIST = {
    Declared Date = 1986-01-01
    Ex-Date = 1986-04-11
    Record Date = 1986-04-14
    Payable Date =
    Dividend Amount = 0.280000
    Dividend Frequency = "Semi-Anl"
    Dividend Type = "Interim"
}

which is causing an issue during unpacking.
for elm in field.elements():
    mfld = fld + ":" + str(elm.name())
    dataj = [ticker, mfld, elm.getValue()]
    dataj.extend(corrId)
    data.append(dataj)

Something like this would resolve the issue I believe
for elm in field.elements():
    mfld = fld + ":" + str(elm.name())
    if not elm.isNull():
        val = elm.getValue()
    else:
        val = pd.NaN
    dataj = [ticker, mfld, val]
    dataj.extend(corrId)
    data.append(dataj)

Here is a minimal reproducible example of the issue.
import pdblp

con = pdblp.BCon(debug=True)
con.start()
ovrds = [("DVD_START_DT","19860101"), ("DVD_END_DT", "19870101")]
con.ref("101 HK EQUITY", "DVD_HIST", ovrds=ovrds)

DEBUG:root:Sending Request:
 ReferenceDataRequest = {
    securities[] = {
        "101 HK EQUITY"
    }
    fields[] = {
        "DVD_HIST"
    }
    overrides[] = {
        overrides = {
            fieldId = "DVD_START_DT"
            value = "19860101"
        }
        overrides = {
            fieldId = "DVD_END_DT"
            value = "19870101"
        }
    }
}

DEBUG:root:Message Received:
 ReferenceDataResponse = {
    securityData[] = {
        securityData = {
            security = "101 HK EQUITY"
            eidData[] = {
            }
            fieldExceptions[] = {
            }
            sequenceNumber = 0
            fieldData = {
                DVD_HIST[] = {
                    DVD_HIST = {
                        Declared Date = 1986-09-26
                        Ex-Date = 1986-10-31
                        Record Date = 1986-11-01
                        Payable Date = 1986-11-17
                        Dividend Amount = 0.720000
                        Dividend Frequency = "Semi-Anl"
                        Dividend Type = "Final"
                    }
                    DVD_HIST = {
                        Declared Date = 1986-01-01
                        Ex-Date = 1986-04-11
                        Record Date = 1986-04-14
                        Payable Date =
                        Dividend Amount = 0.280000
                        Dividend Frequency = "Semi-Anl"
                        Dividend Type = "Interim"
                    }
                }
            }
        }
    }
}

If you update to the newest version of master from Github this should resolve the issue.


"Hull" and "Intersect" anchoring unexplained.

In shapes2d.scad both star() and supershape() take an atype parameter with two valid choices "hull" and "intersect".
However there is no explanation of the difference between the two and no relevant examples.

I added an explanatory subsection in attachments.scad to try to explain this.  It's in the PR.

That explains it all quite nicely.


ISPN-13776 Upgrade Kubernetes Client to 5.7.4

https://issues.redhat.com/browse/ISPN-13776

Merged, thanks


code cleanup to abandon "lock-icon for seeds w/ passphrase"

Originally submitted by @EverydayBitcoiner in pr #286, these are purely aesthetic code-cleanup changes related to abandoning the outdated idea of a visible lock-icon for seeds with passphrases.

removal of if-statements that always pass, as well as surrounding stylish whitespace
removal of a dictionary key

as well as

a single case of whitespace/indentation correction (the boyscout rule to check-in cleaner what was checked-out while other devs are looking at it) which was within eye-sight of one of the above code changes.

Because none of these changes are expected to have any visible effect on application behavior, I found this harder than normal to test.  I logged into my dev rpi to make sure that what I had installed was actually the branch I was working on... to avoid testing no changes at all.  Then I attempted to step into each View that had been modified.

PSBTSelectSeedView doesn't crash when I scan a PSBT with or without a seed, and then select a seed.
SeedMenuView doesn't crash when selecting a seed.
Tools then AddressExplorer doesn't crash while selecting a seed.
Verifying an Address for a single-sig wallet doesn't crash while selecting a seed.

ACK

@jdlcdl can you drop a mental TODO or create an Issue to note that SeedsMenuView.seeds doesn't need to be a List[dict] now that there's no additional info in there? Can just be a list of seed fingerprints. Maybe rename it to something like self.seed_fingerprints = []?

@jdlcdl can you drop a mental TODO or create an Issue to note that SeedsMenuView.seeds doesn't need to be a List[dict] now that there's no additional info in there? Can just be a list of seed fingerprints. Maybe rename it to something like self.seed_fingerprints = []?

This should have been obvious as soon as that dict became a single item.  Yes, I have this corrected in a branch that will nag me until I slip it into another commit where others' eyes are looking.


Add redirects for 404s

Users have submitted negative docs feedback
(Was this page helpful?) due to these
in recent weeks.

This change is


tools/export: Add LDELFFLAGS to mkexport.sh.

Summary
Some targets, such as qemu-rv, support multiple architectures. The required flags need to passed to the linker when application elfs are build "out-of-tree", from the application directory.
This PR addresses #8666, and its modifications, or something similar would be needed in order to finalise #8643.
Without supplying the relevant architecture flags, in this case LDELFFLAGS = --oformat elf32-littleriscv, the rv-virt:knsh32 build would result in:
riscv64-unknown-elf-ld: attempt to do relocatable link with elf32-littleriscv input and elf64-littleriscv output
riscv64-unknown-elf-ld: /home/user/toolchains/riscv64-unknown-elf-gcc-8.3.0/bin/../lib/gcc/riscv64-unknown-elf/8.3.0/rv32imac/ilp32/libgcc.a(_clzsi2.o): file class ELFCLASS32 incompatible with ELFCLASS64
riscv64-unknown-elf-ld: final link failed: file in wrong format

Possibly there is a better way to pass this configuration through the make export and make import targets. If so, let me know and I can remove this PR.
Impact
An additional definition, LDELFFLAGS is added to the exported Make.defs  in the application repository import/scripts/ directory. These flags are picked up with the additions from this PR and used when building the application elf targets.
$ cat import/scripts/Make.defs
LDNAME           = ld-kernel32.script
LDELFFLAGS       = (flags from board Make.def, or toolchain)

Testing
I've tried this out on rv-virt:knsh32 from #8643, the upstream rv-virt:knsh64 as well as the vexriscv-smp port I'm working on #8762. However this PR may have wider implications.

@g2gps very nice! I noticed that we don't have any documentation about it, please consider adding it. Thank you :-)