Protocol + Feature Control

User Story
As GameDAO Council I want to be able to control availability of protocol features:

enable  / disable protocol features via council vote
emergency stop and restart
immediate or blocktime based

Acceptance Criteria
Each major milestone contains different features, but the public availability may be phased in or out at different points in time or even may or may not be available on network a,b,c.
As launch support, we want to create a smooth transition from initial deployment to fully functional protocol suite. To achieve this, we want to enable features after periods, e.g.:

Tokensale
Token Generation
Protocol Core Launch
DID, DAO
Staking
Voting
Grants
Fundraising

Additional Information
Discussion:

https://www.figma.com/file/sCvZGzghEHSKKNeXtMdi3W/Protocol-Config-Pallet?node-id=0%3A1

How to test

create a voting to enable feature x on block y
see x enabled on chain at destination block y

to be specified:

expose state via graphql

@5-mark assuming some extrinsic is disabled.
There are two options how it can be blocked from execution.

Extrinsic is not listed in available endpoints and not possible to be called. This is similar to when extrinsic doesn't exist.
Extrinsic exists but returns error upon execution.

Could you please specify which one is expected as a result of disabling any extrinsic?

I would see something the way ensure_signed works, like ensure_enabled where it checks if the extrinsic is e.g. whitelisted/signed/root.
to make things simpler, we could/should also enable on pallet level.
what do you think?

Yes, that's the simplest approach I could think of.
In general I see this feature the next way.

New pallet to control availability of other pallets/extrinsics.
This pallet will expose few helper methods for other pallets to validate if those pallets and extrinsics are available.
It will also provide API (extrinsics with root only access or outcome of a vote?) to mark specific pallet/extrinsic as enabled/disabled and store that value in storage.
Invoke helper methods in the extrinsics to validate for access, based on storage value and raise an error in case if needed.
In case access is granted, proceed with pallet/extrinsic specific logic.

Moved: https://github.com/playzero/zero-network/issues/185


create test for the shapes

it failed originally as it didn't have the function.  created function shapes


bug: User input split gets cleared when toggling with  aa

Describe the bug
While I'm in the middle of writting a prompt in Avante, it's very common scenario to copy some text or get reference from the user's main buffer and I would hide the avante window, Then when I re-open the Avante split my unsent input has now been wiped and I have to do it all again.
My current workaround is to control the Avante split display, instead of invoking it with leader-aa so the split is always present and the buffer is never list.
To reproduce

Open avante side bar with leader-aa
Input some text in the prompt window
Close avante side bar with leader-aa
Open avante side bar with leader-aa

Expected behavior
The Avante user input split buffer should not get reset when toggling with leader-aa
Installation method
Use lazy.nvim:
{
  "yetone/avante.nvim",
  event = "VeryLazy",
  lazy = false,
  version = false, -- set this if you want to always pull the latest change
  opts = {
    -- add any opts here
  },
  -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
  build = "make",
  -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
  dependencies = {
    "nvim-treesitter/nvim-treesitter",
    "stevearc/dressing.nvim",
    "nvim-lua/plenary.nvim",
    "MunifTanjim/nui.nvim",
  },
}

Environment
not relevant
Repro

This is pretty concerning, as cleared chat means losing a whole conversation context and wasting tokens basically. Just looked up the issues to see if I was missing a history/save feature, apparently not... Is this feature the backlog?
If not, I'm considering just dumping  Avante's split's content into a log file in the project. Not ideal, but at least wet keep the trace

This also happened to me as I was simultaneously switching between my editor window and AvanteApi window. After I move my cursor focus, the Avante window sometimes automatically closes and refreshes all the chat it has generated.

To reproduce
1. Open avante side bar with leader-aa

2. Input some text in the prompt window

3. Close avante side bar with leader-aa

4. Open avante side bar with leader-aa

I can confirm this happens to me as well. I think the generated code goes missing when it's mid-generating and not completed before closing the window -- aa

Tried it even when generation is completed, same issue.
Is it possible this is related to Mac? I'm using a Mac


Custom Dataset

hello,
I'm really interested in running your code, but I would like to use my custom dataset. My dataset consists of images from a small room, captured using an iPad. I've already converted the video frames into individual images.
I'm quite new to the field of MVS and find some aspects challenging to grasp. Could you please provide detailed steps on how to run your code with my custom dataset? Any guidance would be greatly appreciated.
thank you!

Hi, if you want to process sequential images, please refer to https://github.com/jzhangbs/Vis-MVSNet, and then search for "Quick test on your own data".
After the SFM processing, you should obtain a standard data format to run our MVSFormer as DTU dataset.

Hello, thank you for the prompt response.
I've run colmap through the link you provided and converted the data to mvsnet format. However, now I'm encountering a problem with the model.

First, I can't use the code settings for the dtu dataset since it requires things like depth_gt, which I don't have.
As I mentioned earlier, I only have images of a small room in the size of 1920 * 1080 (w * h).
So, for the dataset, I've written 'custom' instead of 'dtu' or 'tt'.
parser.add_argument('--dataset', default='custom', help='select dataset')

Also, I used the blended checkpoint.
Since dtu is object-based and my dataset of room size seems closer to the tt dataset, I followed the tt dataset test arguments you wrote in the README, except for the dataset name.
parser.add_argument('--resume', default='./pretrained_weights/MVSFormer-Blended/MVSFormer-Blended/best.pth', help='load a specific checkpoint')

When I run it like this,
./pretrained_weights/alt_gvt_small.pth
it loads, and an error occurs in mvsformer_model.py.
The error is exactly as follows:
(base) ***** python ./MVSFormer/test.py
argv: []
################################  args  ################################
model           mvsnet                          <class 'str'>
device          3                               <class 'str'>
config         ./MVSFormer/configs/config_mvsformer_blendmvs.json     <class 'str'>
dataset         custom                          <class 'str'>
testpath        ./room       <class 'str'>
testlist        ./MVSFormer/lists/custom_dataset/dataset.txt   <class 'str'>
exp_name        None                            <class 'NoneType'>
batch_size      1                               <class 'int'>
numdepth        256                             <class 'int'>
resume         ./MVSFormer/pretrained_weights/MVSFormer-Blended/MVSFormer-Blended/best.pth    <class 'str'>
outdir          ./test_results_mvs/mvsformer_results/room_results   <class 'str'>
display         False                           <class 'bool'>
share_cr        False                           <class 'bool'>
ndepths         None                            <class 'NoneType'>
depth_interals_ratio    None                            <class 'NoneType'>
cr_base_chs     8,8,8                           <class 'str'>
grad_method     detach                          <class 'str'>
no_refinement   False                           <class 'bool'>
full_res        False                           <class 'bool'>
interval_scale  1.0                             <class 'float'>
num_view        20                              <class 'int'>
max_h           1080                            <class 'int'>
max_w           1920                            <class 'int'>
fix_res         False                           <class 'bool'>
depth_scale     1.0                             <class 'float'>
temperature     0.01                            <class 'float'>
num_worker      4                               <class 'int'>
save_freq       20                              <class 'int'>
filter_method   dpcd                            <class 'str'>
prob_threshold  0.5,0.5,0.5,0.5                 <class 'str'>
thres_view      3                               <class 'int'>
thres_disp      1.0                             <class 'float'>
downsample      None                            <class 'NoneType'>
dist_base       4.0                             <class 'float'>
rel_diff_base   1300.0                          <class 'float'>
fusibile_exe_path       ./fusibile/fusibile             <class 'str'>
disp_threshold  0.2                             <class 'float'>
num_consistent  3.0                             <class 'float'>
use_short_range True                            <class 'bool'>
combine_conf    True                            <class 'bool'>
tmp             1.0                             <class 'float'>
tmps            5.0,5.0,5.0,1.0                 <class 'str'>
save_all_confs  False                           <class 'bool'>
########################################################################
*Interval_Scale
1.0
dataset test metas: 546 interval_scale:{'room': 1.0}
drop_path_rate: ---  0.2
missing keys:['norm_list.0.weight', 'norm_list.0.bias', 'norm_list.1.weight', 'norm_list.1.bias', 'norm_list.2.weight', 'norm_list.2.bias', 'norm_list.3.weight', 'norm_list.3.bias']
unexpected keys:[]
error msgs:[]
Loading checkpoint: ./MVSFormer/pretrained_weights/MVSFormer-Blended/MVSFormer-Blended/best.pth ...
Traceback (most recent call last):
File "./MVSFormer/test.py", line 588, in
save_depth(testlist, config)
File "./MVSFormer/test.py", line 248, in save_depth
outputs = model.forward(imgs, cam_params, sample_cuda['depth_values'], tmp=tmp)
File "./MVSFormer/models/mvsformer_model.py", line 399, in forward
vit_out = self.decoder_vit.forward(vit1, vit2, vit3, vit4)
File "./MVSFormer/models/module.py", line 409, in forward
x = self.smooth1(self.upsampler0(x4) + self.inner1(x3))  # 1/64->1/32
RuntimeError: The size of tensor a (32) must match the size of tensor b (33) at non-singleton dimension 2
In gvt.py,
From class ALTGVT, the forward_features value starts coming out as 33 instead of 32.
The input image size is 19201080, and with the patch size set to 4, it becomes 480270. This then reduces by half to make vit1, 2, 3, 4 each 240135, 12067, 6033, 3016.
This eventually leads to an error here in class TwinDecoderStage4(nn.Module):
def forward(self, x1, x2, x3, x4):  # in:[1/8 ~ 1/64] out:[1/2,1/4,1/8]
    x = self.smooth1(self.upsampler0(x4) + self.inner1(x3))  # 1/64->1/32
    x = self.smooth2(F.upsample(x, scale_factor=2, mode='bilinear', align_corners=False) + self.inner2(x2))  # 1/32->1/16
    x = self.smooth3(F.upsample(x, scale_factor=2, mode='bilinear', align_corners=False) + self.inner3(x1))  # 1/16->1/8

    return x

The tensors do not match.
I've been stuck on this all day and can't make any progress. Could I get some help in resolving this error?
Also, I have another question:
Is it normal to see
missing keys:['norm_list.0.weight', 'norm_list.0.bias', 'norm_list.1.weight', 'norm_list.1.bias', 'norm_list.2.weight', 'norm_list.2.bias', 'norm_list.3.weight', 'norm_list.3.bias']?
I assume it appears due to the absence of a normal list, but I'm worried if it might indicate a problem.

For the first question, you should pad the image to 1920x1088 rather than 1920x1080.
You should see https://github.com/ewrfcas/MVSFormer/blob/72bbd0b6a697e023feefbf76ae3aec34b340e575/datasets/general_eval.py#L108 and https://github.com/ewrfcas/MVSFormer/blob/72bbd0b6a697e023feefbf76ae3aec34b340e575/datasets/general_eval.py#L88 for more details. Because the image's width and height must be divisible by 32. And the camera intrinsic matrix must be adjusted too (if you resize the image to 1920x1088, you have to also change the focal length of the intrinsic matrix so I do not recommend doing that).
For the second question, I think that all norm_list parameters should be already contained in the proposed ckpt.

Thank you for the kind and prompt response!
I'm encountering missing keys in the "alt_gvt_small" model. The keys are:
missing keys:['norm_list.0.weight', 'norm_list.0.bias', 'norm_list.1.weight', 'norm_list.1.bias', 'norm_list.2.weight', 'norm_list.2.bias', 'norm_list.3.weight', 'norm_list.3.bias']
These are not coming from the "MVSFormer/pretrained_weights/MVSFormer-Blended/MVSFormer-Blended/best.pth". I checked the keys in the alt_gvt_small model, and these keys are missing, which I believe is why I am getting this error. However, I am unsure if it's safe to ignore this or if it needs to be addressed.

@vietpho did you manage this yet?


use API keys to make more requests per second

Can use the same keys as Dispatcher:

https://github.com/transitland/dispatcher/blob/master/config/environment.js#L59
https://github.com/transitland/dispatcher/blob/master/config/environment.js#L65

And can use the same approach to inject the key into GET requests: https://github.com/transitland/dispatcher/blob/master/app/application/adapter.js#L27

Encountered some issues last week, trying a new option in the adapter.


Maintainer

I am not sure if u are still looking for a new maintainer... In case your deprecation warning is still up-to-date - i am able to handle it...
contact me on a free minute.

:+1:

:+1:

@MrBoolean has agreed to take over the repository, and we are working to get ownership transferred.


[Add] new fonts resource

Site URL
https://www.fontspace.com/
Description of the above provided site
FontSpace is a font directory with more than 100,000 available fonts. It takes a visual approach to displaying fonts. Along with the usual editable font preview, you'll also find an image from the designer that showcases the font.
Category
Frontend
Sub Category
fonts
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)
[X] I am participating in Hacktoberfest 2023

@Vamsieth
I have assigned you the issue. Please proceed with it, and don't hesitate to tag me @Anmol-Baranwal or @CBID2 if you require any assistance.


Provide grouping/secondary buttons for chat responses

I want to provide followup actions for the user to take from a chat query. Ideally I would display them as a standard button group, side-by-side, where "Not Now" is a grey button and "Get Extension" is a primary action. However right now I can only push individual buttons to the response and the result is pretty ugly:

Related: https://github.com/microsoft/vscode/issues/213429

Would you want to use a confirmation widget for this flow instead?

I have seen/heard similar feedback and we could have an overload to ChatResponseStream#button that takes an array or have a dedicated type, like ButtonGroup

I would be happy to try and add some API for that in chatParticipantAdditions.d.ts if you think it makes sense

Confirmation worked for this case well 👍

Hi @roblourens, I noticed that the confirmation buttons don't seem to work if run inside a tools call (while commands are invoked correctly from the button part). Specifically, request.acceptedConfirmationData seems to not get called because the current request is still being processed. Do you know if this scenario will be supported?


Filter not working for Custom Component

Hello,
I am using the library and am able to display the table, however when i filter some columns which are based on custom components the filter does not work.
Ex:
{
        Header: 'Contact Phone',
        accessor: (value) =>  <PrimaryContact telephone={value.contactDetails.telephone} />,
        filter: 'fuzzyText',
      },

accessor yields the "calculated" value and is filltered by it. As in, you're filtering out of a list of react components, and not accessors.
{
  Header: 'Contact Phone',
  accessor: 'contactDetails.telephone',
  filter: 'fuzzyText',
  Cell: ({value}) => <PrimaryContact telephone={value} />
}

also, more than likely, you will have to add a Filter property. Next time, please refer to the docs since all this is already written there, or to stackoverflow. Or file a clear full bug report

accessor yields the "calculated" value and is filltered by it. As in, you're filtering out of a list of react components, and not accessors.
{
  Header: 'Contact Phone',
  accessor: 'contactDetails.telephone',
  filter: 'fuzzyText',
  Cell: ({value}) => <PrimaryContact telephone={value} />
}

also, more than likely, you will have to add a Filter property. Next time, please refer to the docs since all this is already written there, or to stackoverflow. Or file a clear full bug report


Refactor: pkg_resources will be deprecated, instead use importlib.resources

There are currently, many instances where we use pkg_resources, but it will be deprecated. Instead, let's use importlib as suggested.
Remove it also from requirements.txt.
This exists in many labeler files and tests. Replace all usages.
Example from dataprofiler/labelers/base_data_labeler.py
# remove this
import pkg_resources

# instead use this (note that this is built-in
import importlib

# replace this
default_labeler_dir = pkg_resources.resource_filename("resources", "labelers")

# with this
default_labeler_dir = importlib.resources.files("resources").joinpath("labelers")

https://github.com/capitalone/DataProfiler/pull/900


question for install

Hello,
I am trying to run cocotbext-axi as below but I think I missed something.
% git clone https://github.com/alexforencich/cocotbext-axi
% pip install -e cocotbext-axi
% cd cocotbext-axi/tests/axi
% make
but I have below issues, would you please let me know what I missed?
File "C:\cygwin64\home\sunki\projects\examples\cocotbext-axi\tests\axi\test_axi.py", line 30, in
import cocotb_test.simulator
ModuleNotFoundError: No module named 'cocotb_test'
0.00ns ERROR    cocotb.gpi                                gpi_embed.cpp:324  in _embed_sim_init                 cocotb initialization failed - exiting
0.00ns ERROR    cocotb.scheduler                            init.py:302  in _sim_event                      Failing test at simulator request before test run completion: Simulator shutdown prematurely
ERROR: results.xml was not written by the simulation!
/c/users/sunki/anaconda3/lib/site-packages/cocotb/share/makefiles/simulators/Makefile.icarus:69: recipe for target 'results.xml' failed
make[1]: *** [results.xml] Error 1
make[1]: Leaving directory '/c/cygwin64/home/sunki/projects/examples/cocotbext-axi/tests/axi'
c:\users\sunki\anaconda3\lib\site-packages\cocotb\share\makefiles/Makefile.inc:39: recipe for target 'sim' failed
make: *** [sim] Error 2
Thank you in advance.
Sun Kim

Hi @alexforencich this issue was already solved, and the problem (missing cocotb-test) is already involved in another issue (#10), so it can be closed.


how to use emqx_kafa_bridge

I don't know how I can use this plugins.
how to pub to EMQX and sub at kafka?
What do I do after install and load plugin?

change "kafka.host = <IP_ADDRESS>" , "kafka.port = 9092" to your kafka server ip  and port.
cretate "Processing" topic in your kafka server.
start emqx and load plugin emqx_kafka_bridge.
pub message to emqx, then emqx will produce json message to "Processing" topic.
consume "Processing" topic.

this is my issuse

why use '<<"ubuntu">>'?  try to change hostname to ip address .

hello, there are not msg found in kafka comsumer when i try :
./kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic Processing --from-beginning
and emqx console below:
Starting emqx on node<EMAIL_ADDRESS>Start http:management listener on 8080 successfully.
Start http:dashboard listener on 18083 successfully.
Start mqtt:tcp listener on <IP_ADDRESS>:11883 successfully.
Start mqtt:tcp listener on <IP_ADDRESS>:1883 successfully.
Start mqtt:ws listener on <IP_ADDRESS>:8083 successfully.
Start mqtt:ssl listener on <IP_ADDRESS>:8883 successfully.
Start mqtt:wss listener on <IP_ADDRESS>:8084 successfully.
EMQ X Broker f837ac47 is running now!
Eshell V10.2  (abort with ^G)
(emqx@<IP_ADDRESS>)1> 2019-03-08 18:11:45.811 [error] 181df9ef-137a-46da-a395-8fe9d2ed6ecc1552011118753@<IP_ADDRESS>:6353 ** Generic server <0.1763.0> terminating
** Last message in was {tcp,#Port<0.29>,
<<16,76,0,4,77,81,84,84,4,194,0,10,0,49,49,56,49,
100,102,57,101,102,45,49,51,55,97,45,52,54,100,
97,45,97,51,57,53,45,56,102,101,57,100,50,101,
100,54,101,99,99,49,53,53,50,48,49,49,49,49,56,
55,53,51,0,5,97,100,109,105,110,0,6,112,117,98,
108,105,99>>}
** When Server state == {state,esockd_transport,#Port<0.29>,
{{192,168,0,179},6353},
undefined,running,100,
{pstate,external,
#Fun<emqx_connection.0.118827427>,
{{192,168,0,179},6353},
nossl,4,<<"MQTT">>,<<>>,false,<0.1763.0>,
undefined,undefined,undefined,undefined,false,
#{},1048576,undefined,undefined,false,false,
true,true,ignore,
#{msg => 0,pkt => 0},
#{msg => 0,pkt => 0},
false,undefined,false,
#{from_client => 0,to_client => 0}},
{none,#{max_packet_size => 1048576,version => 4}},
{emqx_gc,
#{cnt => {1000,1000},
oct => {1048576,1048576}}},
undefined,true,undefined,undefined,undefined,
undefined,15000}
** Reason for termination ==
** {{timeout,{gen_fsm,sync_send_event,[<0.1767.0>,prepare]}},
[{gen_fsm,sync_send_event,2,[{file,"gen_fsm.erl"},{line,247}]},
{ekaf_lib,prepare,2,[{file,"src/ekaf_lib.erl"},{line,55}]},
{ekaf_lib,common_async,3,[{file,"src/ekaf_lib.erl"},{line,98}]},
{emqx_kafka_bridge,on_client_connected,4,
[{file,"src/emqx_kafka_bridge.erl"},{line,55}]},
{emqx_hooks,run_,2,[{file,"src/emqx_hooks.erl"},{line,96}]},
{emqx_protocol,connack,1,[{file,"src/emqx_protocol.erl"},{line,540}]},
{emqx_connection,handle_packet,2,
[{file,"src/emqx_connection.erl"},{line,352}]},
{emqx_connection,process_incoming,2,
[{file,"src/emqx_connection.erl"},{line,332}]}]}


works with new dext-core-utils

I changed some of the main dext code so that it works with the pull request I submitted in dext-core-utils

Coverage remained the same at 89.189% when pulling a298a22f43ae6c6f1e2a2b218cdc085c0d224448 on mrjohnyhats:develop into f311912013294ecccc9cbc49ae697c66ba391d0d on vutran:develop.

Closing this since it doesn't apply anymore.


use dependency_overrides and pubspec_overrides.yaml files

use dependency_overrides and pubspec_overrides.yaml files
exclude some files from pkgs/native_assets_builder/test/data/ from static analysis (I assume they're not meant to analyze cleanly?)

Most pub operations (get, upgrade) use the pubspec_overrides.yaml files - concat them with the pubspec.yaml file, but pub publish doesn't use them. This means that you don't have to temporarily modify the pubspec files when publishing but you can still use relative path references.
You do have to be careful when publishing - the CI + testing saw the local version of the referenced package and not the published version.

[x] I’ve reviewed the contributor guide and applied the relevant portions to this PR.

Contribution guidelines:

See our contributor guide for general expectations for PRs.
Larger or significant changes should be discussed in an issue before creating a PR.
Contributions to our repos should follow the Dart style guide and use dart format.
Most changes should add an entry to the changelog and may need to rev the pubspec package version.
Changes to packages require corresponding tests.

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

coverage: 98.642%. remained the same when pulling 15ec601b89b81e08467ab0a165b4f67d3d541af3 on dependency_overrides into de1b0ccf24a89315fe76116090d9fe1b8bd774bb on main.

Thanks @devoncarew !

You do have to be careful when publishing - the CI + testing would have seen the local version of the referenced package and not the published version.

Actually for package:native_assets_builder we should run the CI for both path deps as well as published deps. https://github.com/dart-lang/native/issues/80

I can't seem to get the labler green. Merging anyway.


Update README.md

We need to update our README.md file before the 1.0 release.

Hello, there!
I can help to improve the docs if you mantainers are OK with that.


Docs deployment

Btw, will we still use the documentation branch instead of the main?
Because we will need to make a pull request from the main branch to the documentation branch each time we updating docs.
And also - there is no possibility to write docs during the development process.


Little bugs in makefile

Problem
Found several bugs while building the project using make. The problem is on make dev-deps stage of building. Install fails

While installing bower - it wants for npm -g install bower be run under administrator privileges
While upgrading pip - the pip install install --no-use-wheel -U -r -U pip is called, while pip install -U pip must be

There's a recommendation about using nvm in README


Keeping streams and messages expanded

When navigating between "Messages" and "Streams" on the left side menu, currently these are collapsing and expanding. The most frequent question I get at my organization (~200 users) is how to turn this off and keep everything you clicked on expanded.
Would this be possible, maybe for a first contribution?

@sebastianelsner this is certainly possible as an option and something we've talked about doing.  I think the core community is focused on some other larger projects involving the sidebars, but we'd look at a PR for this sort of thing, especially if it is behind a new "display settings" setting to start.

Ping on this one. Any advice or pointers on how to read Zulip messages "topic by topic" would be helpful. I find the switching between streams challenging and for me not showing new messes ages from all topics within a stream when expanding a stream would be a good enough solution: that would allow me to read things topic-by-topic.
Sorry if I have missed something very obvious: we very recently started using Zulip within our organization and are trying to set good internal practices so any advice on this would be very helpful.

One (possibly) easy solution might be to have a option to expand the topics in a stream in the sidebar without entering it (at the moment you have to click the stream name, which switches the focus to the stream)

Any advice or pointers on how to read Zulip messages "topic by topic" would be helpful.

@johannesl  we recommend using the n hotkey for this. See https://zulip.com/help/keyboard-shortcuts#narrowing
You can also use recent topics for reading topics. It will be the default view in upcoming 4.0 release.

The N hotkey was exactly what I needed and have been trying this for a few days now. Big thanks for the help!

Closing, as navigating streams no longer collapse the direct messages area.

Beyond just direct messages vs streams, I want to be able to jump between two topics in different streams. Right now, if I click on another stream to expand its topics, the previous stream collapses. I want to keep the streams expanded.
Should we file a separate issue for that?

You certainly could. I think that that's a tricky proposition, because it gets into what I think of as mind-reading territory :) if topics stay expanded as you go from stream to stream, then they'll always stay expanded, and then it'll require a lot of manual closing that will be its own pain in the neck. But that doesn't mean there isn't some clever way to solve this problem.


Has anyone tried using textual inversion to custom train a model?

Describe your environment

GPU: cuda
VRAM: 24 GPU RAM (I use RTX3090 GPU)
CPU arch: [x86/arm] - N/A
OS: Linux
Python: used a GPU-enabled notebook for training so no conda required, just pip install of requirements.txt
Branch: [if git status says anything other than "On branch main" paste it here] - N/A
Commit: [run git show and paste the line that starts with "Merge" here] - N/A

Describe the bug
Got an AttributeError: 'int' object has no attribute 'strip' when attempting to train a model on a data set with textual inversion
To Reproduce
Steps to reproduce the behavior:
I've been having trouble custom training a model using textual inversion. Based on the example in
https://github.com/rinongal/textual_inversion
I tried the following on a notebook:
 python main.py --debug --base ./configs/stable-diffusion/v1-finetune.yaml -t --actual_resume ./models/ldm/stable-diffusion-v1/model.ckpt -n my_key --gpus 0, --data_root /path/to/directory/with/images
Instead I got:
Traceback (most recent call last):
  File "/opt/trainml/models/main.py", line 921, in <module>
Unexpected Keys: ['model_ema.decay', 'model_ema.num_updates']
Monitoring val/loss_simple_ema as checkpoint metric.
Merged modelckpt-cfg:
    ngpu = len(lightning_config.trainer.gpus.strip(',').split(','))
AttributeError: 'int' object has no attribute 'strip'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/trainml/models/main.py", line 985, in <module>
{'target': 'pytorch_lightning.callbacks.ModelCheckpoint', 'params': {'dirpath': 'logs/input2022-10-17T02-37-48_my_key/checkpoints', 'filename': '{epoch:06}', 'verbose': True, 'save_last': True, 'monitor': 'val/loss_simple_ema', 'save_top_k': 1, 'every_n_train_steps': 500}}
#### Data #####
train, PersonalizedBase, 500
validation, PersonalizedBase, 5
    debugger.post_mortem()
  File "/opt/conda/lib/python3.9/site-packages/pudb/__init__.py", line 217, in post_mortem
    dbg.interaction(tb.tb_frame, exc_info)
  File "/opt/conda/lib/python3.9/site-packages/pudb/debugger.py", line 290, in interaction
    self.ui.call_with_ui(self.ui.interaction, exc_tuple,
  File "/opt/conda/lib/python3.9/site-packages/pudb/debugger.py", line 1901, in call_with_ui
    self.show()
  File "/opt/conda/lib/python3.9/site-packages/pudb/debugger.py", line 1892, in show
    self.screen.start()
  File "/opt/conda/lib/python3.9/site-packages/urwid/display_common.py", line 813, in start
    self._start(*args, **kwargs)
  File "/opt/conda/lib/python3.9/site-packages/urwid/curses_display.py", line 111, in _start
    self.s = curses.initscr()
  File "/opt/conda/lib/python3.9/curses/__init__.py", line 29, in initscr
    setupterm(term=_os.environ.get("TERM", "unknown"),
_curses.error: setupterm: could not find terminal

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/trainml/models/main.py", line 993, in <module>
    os.rename(logdir, dst)
FileNotFoundError: [Errno 2] No such file or directory: 'logs/input2022-10-17T02-37-48_my_key' -> 'logs/debug_runs/input2022-10-17T02-37-48_my_key'
Exiting...

Expected behavior
The training should finish with the appropriate model checkpoints, config, images, and testtube folders created under /log in the root folder with no errors encountered

_curses.error: setupterm: could not find terminal

Is this error for not using a Terminal?

The —gpu argument is being parsed incorrectly but it looks ok on the command line.

I'm training right now, using
python3 ./main.py --base ./configs/stable-diffusion/v1-m1-finetune.yaml -t --actual_resume ./models/ldm/stable-diffusion-v1/model.ckpt --data_root myself50photos -n myself50photos --gpus 0, --no_test
By the way, I think the no_test is ignored.

Okay I'm able to get the training to work, but it stopped at epoch 13 due to the "No test_dataloader() method defined to run Trainer.test." I'll raise a new issue for this error.


[CodeCompletion] Annotate variables with effectful getters

Explanation: Previously, we weren’t annotation code completion results for variables with async or throwing getters as 'async' or 'throws'.
Scope: Code completion that suggests variables whose accessor is async or throws
Risk: Low
Testing: Added regression test
Issue: rdar://93085311
Reviewer: @rintaro on https://github.com/apple/swift/pull/58822

rdar://93085311

@swift-ci Please test


Feature Request: Return all of a files extensions.

Summary of the new feature/enhancement
Powershell currently has a property called extension which returns a files extension. Currently this only returns the value after the final dot character in a files name. However some files have a chain of extensions (eg '.tar.gz'). Therefore I suggest modifying the extension property to return an array of a files extensions like pythons suffixes property.

The Extensions property comes from .NET Core's System.IO.FileInfo class. While PowerShell could add its own property to supplement this, it would make a lot more sense for something like this to be supported in .NET Core if there's a real need for it.

Currently I look how our ResGen works and it interpret a file name as visibility.namespace.classname.resx where namespace may contains dots. So extension is not "a chain of extensions" in general.
Common convention is that extension is a part after last dot. .Net follows this and we follow .Net.


Wrong time in capture file timestamp

Description
I took a capture when my Windows clock was 12:35 but the capture time in RenderDoc was displayed as 10:35 so it looks like it doesn't handle timezones. My timezone is UTC + 2.
Environment

RenderDoc build: e.g. v1.4
Operating System: Windows 10 version 1809
API: D3D12

It seems like creating a date in Qt defaults to local time even if I'm trying to create the time_t epoch which should be UTC. I think it should be fixed with that commit.


Transactions

In this PR I :
✅ Add a column species of type string to the animals' table.
✅ Add data to the animals' table.
✅ Use transaction to Update, Delete data from the animals' table.
✅ Query displaying how many animals.
✅ Query displaying how many animals never tried to escape.
✅ Query displaying the average weight of animals.
✅ Query displaying who escapes the most.
✅ Query displaying the minimum and maximum weight of each type of animal.
✅ Query displaying the average number of escape attempts of each type of animal.
Here is the Screenshot .

Thank you @mikethreels for your review.


Fixes type in README.md

Thank you! Looks good 👍 Other than the typo in the PR description 😛

Well I apparently need more coffee <3


Serialize master language only - further improvements

Additional languages no longer serialized in DTEL, DOCT.

Quick review :) well, for me looks fine too

You're super fast with the merges today, usually stuff stays here for weeks :D

thanks :D
sometimes I'm also busy with real work

if I'm too slow feel free to ping me, or have one of the other regulars do a review


CHEBI:82288, please review

Hi ChEBI,
Please would you review CHEBI:82288 (ortho-Anisidine) needed for Rhea.
Thanks for your support!
Regards, Anne

Hi ChEBI,
Please would you review CHEBI:82288 (ortho-Anisidine) needed for Rhea.
Thanks for your support!
Regards, Anne

Now Done.
Adnan


Migrated cli for Tendermint

Description
With the tendermint integration some of the sub-commands have become irrelevant. This proposal discusses how to migrate the same.

Codecov Report

Merging #1976 into tendermint will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           tendermint   #1976   +/-   ##
==========================================
  Coverage          50%     50%
==========================================
  Files              71      71
  Lines            3440    3440
==========================================
  Hits             1720    1720
  Misses           1720    1720

I would prefer that we first clarify the bigger picture with respect to the future of the current BigchainDB, version versus the one integrating with Tendermint.

The thinking has changed since this proposal was written. We've decided not to worry about maintaining potential support for a future "product 1" in the tendermint branch.

bigchaindb configure should only allow localmongodb (not rethinkdb or mongodb)
Remove bigchaindb export-my-pubkey? (A BigchainDB node still has a public key, but it's a Tendermint thing, not a BigchainDB thing.)
Remove bigchaindb set-shards (was for RethinkDB only)
Remove bigchaindb set-replicas (was for RethinkDB only)
Remove bigchaindb add-replicas (was for MongoDB only)
Remove bigchaindb remove-replicas (was for MongoDB only)

Maybe other changes?

@ttmc Those changes seems about right. Furthermore, I think it would better to create a new PR and discuss the changes there. The context of discussion here is quite old and might confuse someone.

Partially fixes #2087

@ttmc +1


Data source: Azure blob storage

Summary
Support Azure Blob Storage as a data source.
Specifications

Rationale

Impact

Tasks

Should just use the object store crate.
We'll also need credentials for this.
@scsmithr get azure set up for us.


Add Arabic language support

Hello, I just added Arabic language support.

Coverage increased (+1.2%) to 99.659% when pulling 54e3e714b200999b0b2f7cbeb57f48217ef5d452 on mrg0lden:patch-1 into 6e1b30df65f71a4afc96a6e57eeac64e7d64caf1 on charliekassel:master.

Great, thank you!
Can you please add to the readme of available languages?

Sure, my pleasure to do that.

Hi @mrg0lden - happy to merge this, but please can you add a commit to this branch for the readme

@charliekassel Sure! :)

I did it!

Coverage increased (+0.8%) to 99.324% when pulling 1ad0c159887179f7ddaafc21775552c5eaf56a38 on mrg0lden:patch-1 into 6e1b30df65f71a4afc96a6e57eeac64e7d64caf1 on charliekassel:master.

Well done! Thanks very much.


CI is currently broken on git diff: Not a git repository

Which issue does this PR close?

Closes #5180.
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

This fix is verified to work, please see https://github.com/apache/arrow-datafusion/actions/runs/4093817150/jobs/7059519148.

Perhaps I'm biased, but I think https://github.com/apache/arrow-datafusion/pull/5177 is cleaner

After merge #5177, look like we can close this.
Thanks @tustvold and @viirya


Understanding client DPI

This is a "Last 5 minutes" snapshot. If I understand correctly, "Bytes Rx TOTAL" is the total number of bytes received beyond the 5 minutes window. However, how come there could be 3.19 TiB bytes received in just 5 minutes? Looking at Unifi web interface stats there's nothing near that much data transfer happening for any of the clients.
Any clue what could these numbers mean?
I'm running Unpoller in docker on a VM. It hits my UDM Pro API.

I believe this correlates to total cumulative bytes since the controller start. It seems to map more closely with the “statistics” view on the unifi mobile app for me

I thought that too at first, but I checked again now and here's what I'm seeing:

See how in the last 1 hour it says Bytes Rx TOTAL - 3TB, and Bytes Rx - 50TiB, which is too few TiB for the total cumulative since controller start and yet too much for the last 1 hour.


Upgrade baseref to one that works with npm 7

@mraible try updating node to 15.12.0.

Closing in favor of https://github.com/oktadeveloper/ionic-jhipster-starter/pull/53.


Merge to live

Docs Build status updates of commit 293bd10:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/resources/excel-samples.md
:white_check_mark:Succeeded
View

docs/testing/power-automate-troubleshooting.md
:white_check_mark:Succeeded
View

docs/tutorials/excel-power-automate-manual.md
:white_check_mark:Succeeded
View

docs/tutorials/excel-power-automate-trigger.md
:white_check_mark:Succeeded
View

docs/tutorials/excel-read-tutorial.md
:white_check_mark:Succeeded
View

docs/tutorials/excel-tutorial.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 293bd10:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/resources/excel-samples.md
:white_check_mark:Succeeded
View

docs/testing/power-automate-troubleshooting.md
:white_check_mark:Succeeded
View

docs/tutorials/excel-power-automate-manual.md
:white_check_mark:Succeeded
View

docs/tutorials/excel-power-automate-trigger.md
:white_check_mark:Succeeded
View

docs/tutorials/excel-read-tutorial.md
:white_check_mark:Succeeded
View

docs/tutorials/excel-tutorial.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


[oshift] Collect ClusterResourceQuota metrics

What does this PR do?
OpenShift allows cluster admins to set cluster-wide quotas for a set of namespaces/projects. This PR adds support for the ClusterResourceQuota custom resource, and code in the kubernetes_apiserver to report metrics on it.
For each resource type, the agent will report total and per-namespace gauges. For example with CPU on the test fixture, we will report:
With the tag clusterquota:multiproj-test:

openshift.clusterquota.cpu.used = 0.6 (cores)
openshift.clusterquota.cpu.limit = 3 (cores)
openshift.clusterquota.cpu.remaining = 2.4 (cores): computed as limit - used

These are to be used per quota object, and for cluster-wide sums
With the tags clusterquota:multiproj-test kube_namespace:proj2

openshift.appliedclusterquota.cpu.used = 0 (cores)
openshift.appliedclusterquota.cpu.limit = 3 (cores)
openshift.appliedclusterquota.cpu.remaining = 2.4 (cores): we're using 0, but we already use 0.6 in another namespace

The are only to be used at the namespace level (in a scoped dashboard), the cluster-wide aggregates will be off.
Additional Notes

Test images datadog/agent-dev:xvello-oshift-quotas (and -jmx) are pushed on docker hub
Legacy OAPI compatibility mode still needs to be tested.

Pinging @burningion for inclusion in the OShift doc once we finalise the metric names
@masci What's the best place to store metric metadata for these new metrics? Should we whitelist the openshift. prefix too?

Testing OK on OpenShift 3.4 too, metric metadata from https://github.com/DataDog/integrations-core/pull/1902 are applied fine:


Distilleries stop working on a save/load if they are full of fluid.

The bug is here: https://github.com/george8188625/Create-Diesel-Generators/blob/1.19.2/src/main/java/com/jesz/createdieselgenerators/blocks/entity/DistillationTankBlockEntity.java#L129
Because currentRecipe isn't saved/loaded with NBT, when the block is loaded from disc currentRecipe is null. But, because the heat is saved, when it loads it never recalculates the recipe.
I think recalculating the recipe in either a markDirty override (not sure what your mappings call it) or at the end of the read method would fix this.

I'm gonna fix that


Add push endpoint for jfr/pprof pyroscope/phlare protocol

Request
Add push endpoint for jfr/pprof pyroscope/phlare protocol
Use case
Profiles are generally events and less fit the pull model like metrics (there are tradeoffs, of course). Thus, I think grafana agent should support the common case of user applying a push model with a jfr/pprof pyroscope/phlare endpoint, providing intermediate collector functions external to the data plane, with batching being a critical feature, and also filtering. I may be able to help contribute.

Hi @tomershafir! Thank you for raising an issue. I'm going to close this one, because it seems to be a duplicate of #270.


Add digitalRead(), analogRead() and shiftOut()

Jason,
Added digitalRead(), analogRead() and shiftOut() to bonescript/index.js.  These calls have same functionality and call as Arduino calls.

Ken -

I think I'll need to come clean up a few style things, but I don't see any functional issues keeping me from merging this.... so, merged.


Raise exception if Auth0 response status is bad (plus some debugging)

What
This PR tweaks the API.request() method to check the response status code and raise an exception early on when not a 2xx. This is done using request's #raise_for_status() method.
This PR also adds some debugging statement for the GET /permissions responses from the API.
Why
Few users got the following error when trying to deploy their Webapp:
[...]
Creating view:app permission ...
Traceback (most recent call last):
  File "/opt/resource/out", line 80, in <module>
    create_client()
  File "/usr/local/lib/python3.7/site-packages/moj_analytics/concourse.py", line 25, in __call__
    response = self.fn(*self.args, **self.kwargs)
  File "/opt/resource/out", line 61, in create_client
    Permission(name='view:app', applicationId=client_id))
  File "/usr/local/lib/python3.7/site-packages/moj_analytics/auth0_client.py", line 123, in get_or_create
    result = self.create(resource)
  File "/usr/local/lib/python3.7/site-packages/moj_analytics/auth0_client.py", line 87, in create
    raise CreateResourceError(response)
moj_analytics.auth0_client.CreateResourceError: {'statusCode': 400, 'error': 'Bad Request', 'message': 'Permission with name "view:app" already exists for this application'}

This Concourse resource checks if the Auth0 resources for a webapp are already there before trying to create them. But for some reason it seems like for some application this check doesn't find the existing resource and therefore tries to re-create it. This causes the Auth0 API to respond with a 400 BAD REQUEST.
Possible causes

bad/intermittent response from Auth0 APIs: This would be strange as I would expect logic to raise an exception sooner than when it tries to create a new Permission, e.g. with a KeyError of some sort. Nevertheless I'm adding requests #raise_for_status() as it's better to fail earlier if that is, strangely, the case.
~Bug in API.get() logic~: This was inspected and it doesn't seem to have any obvious problem.
~weird case in repository or app name~: This doesn't seem the case as one of the apps with the problem appear to have a perfectly normal case.
~Pagination~: First thought was that the list of existing resources was paginate (this is used to determine if resource exists). This doesn't seem to be the case, or at least not in our case with <200 resources

Related to ticket: https://trello.com/c/I2GozO5D

Hi folks... I've updated this PR as discussed yesterday:

We check and raise on the status of the HTTP response.
All errors are logged using structlog.

You can see this working with the following fragment in the Python REPL:
>>> from moj_analytics.auth0_client import API
>>> a = API("https://ntoll.org/")
>>> a.request("GET", "foo")
{"event": "Calling endpoint: https://ntoll.org/foo", "timestamp": "2020-04-30T08:14:15.037145Z"}
{"event": "Auth0 API error.", "timestamp": "2020-04-30T08:14:15.242930Z", "exception": "Traceback (most recent call last):\n  File \"/home/ntoll/src/moj/analytics-platform-concourse-auth0-client-resource/moj_analytics/auth0_client.py\", line 91, in request\n    response.raise_for_status()\n  File \"/home/ntoll/.virtualenvs/moj3/lib/python3.8/site-packages/requests/models.py\", line 940, in raise_for_status\n    raise HTTPError(http_error_msg, response=self)\nrequests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://ntoll.org/foo"}

As you can see, it logs the exception and helpful stack trace. Each log entry is on a single line as JSON, making it easy for log aggregation tools to parse and then present such logs in a human readable manner. This is in the "spirit" of the 12 factor app style of development.
Like I said yesterday, this is a straw-man solution for folks to explore and critique. I expect I'll be asked to change things, which I'm more than happy to do..! Looking forward to your feedback..! :-)

Something like GreyLog or others listed here might be useful for parsing, storing, analysing and working with such logs. Thoughts please..! :+1:

@aldo addressed your comments with my latest push. Great stuff, and many thanks for the feedback. Exactly what I was looking for. :+1:

I'd approve this but I technically created the PR and GitHub doesn't give me the option.
@Mohammad-Tari or @ntoll can probably approve.
We tested this in the aldo-test pipeline and it works as expected.
We can then create a release (v2.0.1) which will trigger the docker build in quay.io (see badge in README of this repo)...but I'm looking at the place where this custom resource is referenced at the moment.


Update Repo to Node v8 LTS, add typescript and reafctor code to use new lang features

Hi Everyone!
I saw that package is using old Node v4 while it's already deprecated. I updated it to Node v8 which has support up to 2019.
While doing this I also updated repo to use typescript at it makes using and writing lib much easier.
Also added logger file to make logging to user more unified. Everything is tested.
Please, let me know WDYT?

Hello!
First off, thanks for your time contributing this :)
I'm not a TypeScript user myself -- I don't have anything against it, but I'd like the module to keep working with "standard" JS. From what I can see, if I were to install the module now in plain JS, it would fail, right?
That's something I'd like to avoid, I know Typescript is growing but there is still a lot of plain JS users :)
Otherwise, it looks good, no complaints from me!
You might even be able to bump Node to v10, which is the new LTS, I don't expect any issues!

Hi @Neamar
So you can install whatever module you want :) Trick is that if you want to use modules that doesn't have types, just use require over import. Rest is exactly the same. I saw that lots of libs are written in typescript because thanks to it, you can export types, which prevents lots of bugs (even if user doesnt use typescript, IDEs still can prompt lib user with correct types).

You can merge it or not, but I would just suggest you to play a little bit with it :) I was sceptic about TS myself for a long time, but when I developed a couple of small libs in TS, I saw that the most of errors were discovered during writing code ( you have an option that TS won't compile files if he finds any error in it )

I might do that at some point :)
But in the meantime, can't we add the compiled js file to the repo too to make sure plain JS users can require() it normally?

@Neamar you should never do it. Source files are suppose to be readable while transpiled files are for users to require, thus they are minified and optimized for computers. In package.json you've a JS task called build which generates dist/* folder with normal .js files. When you publish your project, there is a couple hooks that transpiles files when you publish. Reason to do that is because people oftem makes mistakes. Keeping dist/* folder with transpiled files in repo might contain older version then source code.
Again, this means that when you publish this project on npm, those files will be generated, so no point to keeping them.
You can read how it works here: https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c

Hello!
Sorry for the long delay, I was finally able to test and it looks good!
One small issue with Mocha not finishing automatically, at least on my computer.
I've added the --exit flag and it's now perfect!
I'll publish to npm as a major, since we're dropping support for old nodejs versions (string interpolation).

See ff883b7 for exit flag,
Package published to npm as v2.0.0
Thanks for your help!


Update cadvisor repository

cAdvisor registry has moved from GCP project google_containers to cadvisor, ref: https://github.com/google/cadvisor/pull/2590

Thanks!


fix: add missing init.py in package to fix broken import

Status
READY
Description
Missing __init__.py was causing broken imports during test pipeline:
https://github.com/IBM/ibm-generative-ai/actions/runs/7082763180/job/19274034456
Impacted Areas in Library

Which issue(s) does this pull-request fix?

Any special notes for your reviewer?

Checklist

[ ] Automated tests exist
[ ] Updated Package Requirements (if required, and with maintainers' approval)
[ ] Local unit tests performed
[ ] Documentation exists link
[ ] Local pre-commit hooks performed
[ ] Desired commit message set as PR title and description set above
[ ] Link to relevant GitHub issue provided

coverage: 96.394% (-0.005%) from 96.399%
when pulling 925b2fe557137ba6e8678a9804e73ba0dd9c87e6 on jezekra1:fix-langchain-package-import
into 1eca4c5480c1a3f6acbab67b14507181bd91452e on IBM:main.


i can only get the  global data in the dashboard

Please answer these questions before submitting your issue.

Why do you submit this issue?
[x] Question or discussion
[ ] Bug
[ ] Requirement
[ ] Feature or performance improvement

Question

What do you want to know?
do i config wrong with something  or  Skywalking always like this slow

Bug

Which version of SkyWalking, OS and JRE?
7.0.0

Which company or project?

What happen?
If possible, provide a way for reproducing the error. e.g. demo application, component version.
i  can only get the glabal scope data ,the others scope   graphql all respones

timestamp:<PHONE_NUMBER>082
status: 500
error: "Internal Server Error"
exception: "com.netflix.zuul.exception.ZuulException"
message: "GENERAL"

most of the webapp log  are
Caused by: java.net.SocketTimeoutException: Read timed out
most of the  skywalking-oap-server.log  are
2020-04-23 09:29:30,644 - org.apache.skywalking.oap.server.library.client.elasticsearch.ElasticSearchClient - 383 [pool-16-thread-1] ERROR [] - listener timeout after waiting for [30000] ms

Requirement or improvement

Please describe about your requirements or improvement suggestions.

The log only shows es read timeout, nothing more.

i know  but  that  is   too slow ,     es  data  just 20g + ,  I'm getting the Glabal data need 8-9s  ,the others socpe data timed out every time  ,  I can't found the problem  is the skywalking or network  or filesystem

How long does it usually take to get  graphql ?Is this normal

In my es cluster, normally, 100ms.

ok  I will check my es cluster config

I found the problem,it's es cluster problem  , jvm heap size default value is 1g ,Insufficient  heap size cause full cg all the time , so that the es cluster always timeout ,turn up heap size in es/config/jvm.options  can fix the problem


⚠ ClamAV has degraded performance

In d468bf0, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 68 ms

Resolved: ClamAV performance has improved in e5fcf9a.


python312Packages.pyrympro: init at 0.0.8

Description of changes
Module to interact with Read Your Meter Pro
https://github.com/OnFreund/pyrympro

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 313831 run on x86_64-linux 1

5 packages built:

home-assistant-component-tests.rympro
python311Packages.pyrympro
python311Packages.pyrympro.dist
python312Packages.pyrympro
python312Packages.pyrympro.dist

Result of nixpkgs-review pr 313831 run on aarch64-linux 1

5 packages built:

home-assistant-component-tests.rympro
python311Packages.pyrympro
python311Packages.pyrympro.dist
python312Packages.pyrympro
python312Packages.pyrympro.dist


New Validation Request: whether many interface override policies configured before upgrading to 5.2(4d) or above

(use upvote :thumbsup: for attentions)
Validation Type
[ ] - Fault
[X] - Config
[ ] - Bug
[ ] - Other
What needs to be validated
For a customer who implemented interface configuration via clis, they may have created many interface override policies.
Why it needs to be validated
If customer upgrades the fabric from any version prior to 5.2(4d) to 5.2(4d) and above, this type of configuration can cause APIC shard-20 to take hours before completing postUpgradeCb. If switch upgrade was triggered before APIC complete that, those upgraded switches will experience bootstrap delay and unable to fetch required access policies until APIC completed that.
This validation is designed to identify if the fabric has similar configuration, so that customer can be alerted.
Additional context
Add any other context about the feature request here.

We need some way to identify whether the postUpgradeCb on APIC is still in progress prior to upgrade switches.

Handled with PostUpgradeCb check. Closing this one.


Add an Info.plist to both iOS frameworks to fix Xcode 15.3 deployment.

This fixes the issue with deploying an app that contains the RTE that was build with Xcode 15.3. It was missing an Info.plist inside each of the frameworks embedded in the xcframework.
I've added the most minimal set of properties Xcode would allow me to so it can be shared between platforms:
<key>CFBundleExecutable</key>
<string>WysiwygComposerFFI</string>
<key>CFBundleIdentifier</key>
<string>org.matrix.WysiwygComposerFFI</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>

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

Project coverage is 89.64%. Comparing base (2aa8a2c) to head (7254ea1).

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #952      +/-   ##
============================================
+ Coverage     87.40%   89.64%   +2.23%
============================================
  Files           168       86      -82
  Lines         19293    15499    -3794
  Branches       1077        0    -1077
============================================
- Hits          16863    13894    -2969
+ Misses         2107     1605     -502
+ Partials        323        0     -323

Flag
Coverage Δ

uitests
?

uitests-android
?

uitests-ios
?

unittests
89.64% <ø> (+4.08%)
:arrow_up:

unittests-android
?

unittests-ios
?

unittests-rust
89.64% <ø> (ø)

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

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


btfs: 2.23 -> 2.24

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/btfs/versions.
meta.description for btfs is: "A bittorrent filesystem based on FUSE"
meta.homepage for btfs is: "https://github.com/johang/btfs"
meta.changelog for btfs is: ""
Updates performed

Version update

To inspect upstream changes

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 2.24 with grep in /nix/store/42a598r1vdsfngqvmnc09izk45p6ipia-btfs-2.24

directory tree listing: https://gist.github.com/885cec1388ea926c8fc5b9e245065d44

du listing: https://gist.github.com/e3cb852054b9701db9fdaf96dd9574fe

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
btfs

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/42a598r1vdsfngqvmnc09izk45p6ipia-btfs-2.24 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A btfs https://github.com/r-ryantm/nixpkgs/archive/b7d9b769102680ffebbc545e93c9928354ae9536.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/42a598r1vdsfngqvmnc09izk45p6ipia-btfs-2.24
ls -la /nix/store/42a598r1vdsfngqvmnc09izk45p6ipia-btfs-2.24/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

btfs

Maintainer pings
cc @rnhmjoj for testing.

Result of nixpkgs-review pr 113342 at b7d9b769 run on aarch64-linux 1

1 package built:

btfs

1 suggestion:

warning: unclear-gpl
gpl3 is a deprecated license, check if project uses gpl3Plus or gpl3Only and change meta.license accordingly.
Near pkgs/os-specific/linux/btfs/default.nix:23:5:
   |
23 |     license     = licenses.gpl3;
   |     ^


update home page information

Can one of the admins verify this patch?

Can one of the admins verify this patch?


Rework scheduling documentation

Docs Build status updates of commit 09b0266:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

Line 0, Column 0: [Error-config-not-found] Can't find docfx config file in 'W:\22ay-s'.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Rubydora marks an attribute as changed when the value is set to the same as is saved.

(rdb:1) p o.datastreams['stuff'].changes
{}
(rdb:1) p o.datastreams['properties'].changes
{}
(rdb:1) p o.datastreams['properties'].controlGroup
"X"
(rdb:1) p o.datastreams['properties'].controlGroup = 'X'
"X"
(rdb:1) p o.datastreams['properties'].changes
{"controlGroup"=>["X", "X"]}
This is in rubydora 0.4.0

To be clear, this is an issue with datastream (and object?) attributes that have default (or profile-supplied) values.
https://github.com/cbeer/rubydora/blob/master/lib/rubydora/datastream.rb#L31
The ActiveModel::Dirty check is invoked when the provided setter val doesn't match the ivar.. Presumably it should check the accessor value too..


Rename legend field "node" to "name".

Fixes a few typos in the example dashboard legends.

Hi Joshua,
thanks for your contribution!


build: clean-up

:tada: This PR is included in version 1.0.42 :tada:
The release is available on:

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


EL5/6 unittest fixes

@jrha merging in would already be a good step forward. it's the only thing the build_all_repos script needs on EL6. for EL5, we need new build tools, but i bump Test::Simple  manually for the EL5 tests for now.


[Feature Request] Progress Bar

i dont know if it is possible , but it would be really cool to have a progress bar
Edit:researched and understood the quality

Thanks for the suggestion! It's been added in the latest update.


fix: only accept base pointer in pointer_wrapper comparison operators

Fixes #31.
Tested with the test program in the original issue.

For the very least, we need to find a way for Pointer to accept both const T* and T* (or something to that effect).

Yes. That's quite limiting. IIRC, we had to extent these operators in the past because they were limiting.
We probably just have to come up with a concept and use SFINAE there.

I already have a solution for this in bea6a7c, see if you are happy with it.

That looks reasonable. It would be good to include the case that caused the issue #31 in test/unit/... so we don't break that in later versions.

Will do.

@alandefreitas Tests added. PR ready for review.

That looks great. Thanks.


Products schema

Define schema for product

we have draft, main trouble with multilingual

I remove multilingual support. It's adding huge complexity to development and never be flexible to consumer. Much easier to have couple stores and sync them.

Done.


Simplify #22 (#18 - additional carto layers)

I've gone through the code in more detail to understand the structure and flow. I think it can be simplified in this proposed way, let me know if it causes issues in referencing the carto layers.

I tried this first, but because it renders this component every time, it also fetches capabilities every time. On the other hand it would make sense to cache this anyway. I can do that as another task. This approach also doesn't care about order in which layers were shown or hidden. Which is better.
But there is issue with setting z-index. I think styles should be used. Or maybe another secret way I'm not aware of that Vue offers ;)
[Vue warn]: Invalid prop: type check failed for prop "zIndex". Expected Number with value 2, got String with value "2".

About z-index I didn't even check documentation, but it's an easy fix, just write :z-index instead of z-index (note the colon), this will make the number inside the quotes be evaluated, and thus be a Number, not a String.
About the first paragraph, I understood some of the words :))))

So there is some loading overhead you want to avoid? Then of course using your method with watcher that sets setVisibility() is perfectly fine!

Sorry about dispersed mind flow :) but yes: you got it right. I opened another ticket for next milestone :)


I spotted a very minor typo in README.md...

But I hope it's worth PR-ing it anyway...
Best,
Mike

👍

@domaindrivendev I realise this was correcting an incredibly minor typo in the first place, so hesitate to mention this, but FYI it is reverted in the current master branch.


[question] Error.stackTraceLimit = Infinity vs. longjohn

How does your configuring Error.stackTraceLimit = Infinity; here compare to the use of the longjohn library to capture long stack traces, if you know? —What does the longjohn library do that Error.stackTraceLimit = Infinity does not?
And is Error.stackTraceLimit = Infinity more suitable for production use?
Also filed as issue on longjohn here.

My basic off-the-top-of-my-head understanding is this:
Any time the current call stack completes, Node goes back to the event loop queue to find the next thing to do and starts a new call stack of sorts to go do that next thing. This is part of run-to-completion semantics.

By default, Node stack traces are the last up-to-10 frames since the last time Node went back to the event loop queue (i.e. of the current call stack only)
Setting Error.stackTraceLimit = Infinity changes that to "all frames since since Node went back to the event look queue" (the entire current call stack)
longjohn and similar libraries give you stack traces containing all frames in the call history, not just the call stack since the last visit to the event loop queue (the entire historical call stack, including asynchronous calls, sometimes referred to as an "async stack trace")

Note that just because you pass a function as a callback doesn't mean you're going to cross the event loop boundary and start a new call stack; that callback may be immediately invoked, like by Array.prototype.map, by many toolbelt library functions, etc. In general, functions go into the event loop queue precisely when they are passed as a callback to any built-in Node asynchronous API. This means timers, i/o, native event listeners, etc. There may be edge cases to this rule of thumb, and I've never used fibers so I don't know how they fit into that picture.
My understanding is that longjohn and similar libraries are moreso intended for debugging purposes and can have a greater performance impact in production use since you'll always be carrying around your entire call history. I imagine there are implementation tricks and optimizations such that this has less impact than you might think, but it should still be appreciably more impact than that of Error.stackTraceLimit = Infinity. This is why, in raven-node, we use Error.stackTraceLimit = Infinity but not longjohn.
Contributors to longjohn, Node core, etc probably are more familiar with this stuff than I am, so I welcome corrections to any details I may've gotten wrong above.

Great explanation. Thanks!


Excluding any filetype or buftype doesn't work

Description
I am trying to exclude any terminal windows from auto-resizing, the problem is that configuring exclude_filetype and/or exclude_buftype with the value of "toggleterm" doesn't work.
The filetype and buftype of the terminal window are equal to null (filetype=, buftype=).
After manually changing the filetype and buftype using a TermOpen autocmd to term;
then using those to configure focus.nvim like so:
require("focus").setup({excluded_filetypes = {"term"}, excluded_buftype = "term"})

The exclude_* options still had no effect.
I also want to set an initial size for my terminal windows, normally I would do that using the following commands:
:botright:10new
:terminal

Where 10 is the actual size.

But this also doesn't work as focus.nvim instantly auto-resizes the newly created window.
Expected behavior
Statically sized terminal window.
Actual behavior
focus.nvim default behavior
My current focus.nvim configuration
init.lua:
-- focus.nvim
require("focus").setup({compatible_filetrees = {"nvimtree"}, excluded_filetypes = {"toggleterm"}, excluded_buftypes = {"toggleterm"}})

-- Packer
return require("packer").startup(function()

  -- Packer can manage itself
  use "wbthomason/packer.nvim"

  -- focus.nvim
  use "beauwilliams/focus.nvim"
end)

If I execute the following while the filetype is excluded, the initial size will be 10:
:bo:10new|:terminal

Alas,  after switching to another window and back, focus.nvim will still resize the terminal window.
I did not use toggleterm.nvim.
After installing it, excluded_filetypes = {"toggleterm"} worked and I got the expected behavior.

That is odd. I noticed that for toggleterm you must set the filetype exclusion to 'term'
You can test by opening ToggleTerm, hitting esc and running :echo &ft

:echo &ft returns toggleterm, and changing excluded_filetypes = {"toggleterm"} to excluded_filetypes = {"term"} gets me the undesired behavior (the terminal window acts like any other window).


Fix absl flag initialization in cloud_tpu_profiler

This fixes a regression caused by 2652704b576adc16b4d735f651cea1024e88b72e where the command would not run. See also: tensorflow/tensorboard#716
This is caused by the PIP generated program wrapper not invoking the tf.app.run that normally goes in the if __main__ clause of a script. That runner basically initializes flags. But as far as I can tell, this is the only pip console script in TensorFlow that still uses flags. The other two appear to have migrated to argparse. So this change should be sufficient.
CC: @nfelt @PrashantJalan @yifeif

Jenkins, test this please

@tensorflow-jenkins test this please


fix at add items in the customer transaction feature

create items in the customer transaction

please fix DevTools failed to load SourceMap


[METADATA UPDATE] Global allowlist metadata update

A Pull Request has been made from the Learn Platform's Metadata Management System to update allowlist-driven metadata. Please review and merge this Pull Request within 5 days.
If you are not the correct contact for this content and repository, please notify<EMAIL_ADDRESS>Please notify<EMAIL_ADDRESS>if you have questions or concerns or would like Pull Requests for allowlist metadata updates to merge automatically in future.
If you have questions or concerns about these metadata changes, please use https://aka.ms/AllowlistFeedback or contact<EMAIL_ADDRESS>to let us know.
If this Pull Request is not merged within 14 days, it will be automatically merged by our system to ensure the timeliness of the metadata update. This includes bypassing the Repository's Branch Policy, including if Review Required is enabled.
Fixing#713831 Remove ms.technology value: add-ins
Why we make metadata updates
The Learn Content Architecture team manages business-facing reporting taxonomies that enable analytics for OKR reporting and content portfolio management. These taxonomies are referred to as ms.* allowlists. Allowlist values populate metadata attributes.
We regularly review allowlists to ensure they are accurate, useful, and align to curr ent business needs. Updates to allowlists and allowlist-driven metadata make reports cleaner, easier to use, and more consistent.
We regularly review allowlists to ensure they are accurate, useful, and align to current business needs. Updates to allowlists and allowlist-driven metadata make reports cleaner, easier to use, and more consistent. Since metadata attributes are included in the YAML header, certain types of allowlist changes require making content updates.
How does this affect me?
Once changes to allowlist-driven metadata are merged, standard dashboards and reports will reflect new values. You'll need to use new filter values in those dashboards and reports. If you have custom dashboards or Kusto queries, you might need to update those as well.
Frequently Asked Questions
Why does this Pull Request appear to be made by the Repository Owner? We open Pull Requests two different ways.
For Git Repos with a permissioned Service Account, we open the PR from our Document Build Service Account.
For Git Repos that we either do not have Service Account permission for or the repo is in Azure Repos (ADO) we open the Pull Requests in an automated way with the PR creator as the Repo owner.
How can I revert a Pull Request that has been merged and created an unexpected issue?? Whether a PR has been merged manually or automatically, you can revert it if an issue arises. See Reverting a pull request - GitHub Docs.

@HanqingZheng-ms Requested new ms.service value and associated ms.subservice values. Waiting for those to be implemented before proceeding.

Closing this in favor of https://github.com/OfficeDev/office-js-docs-pr/pull/3983.


Change paper geometry from a4 to letter

US NSF proposals should use letter format, not a4.

I'm sorry for not seeing this sooner. I merged your changes. Thank you!


Builder failed due to lack of iOS simulator

Three failures in a row all complaining about not finding a simulator. The log of the builds shows that it ran fine on other bots so this may be a config issue with this one bot. See https://ci.chromium.org/ui/p/flutter/builders/try/Mac plugin_lint_mac/25567/overview
[2023-05-04 10:13:38.021626] [STDOUT] stdout:  -> integration_test (0.0.1)
[2023-05-04 10:13:38.021681] [STDOUT] stdout:     - ERROR | [iOS] unknown: Encountered an unknown error (Could not find a `ios` simulator (valid values: ). Ensure that Xcode -> Window -> Devices has at least one `ios` simulator listed or otherwise add one.

I ran this same build via led, on the same bot (mac-297-g140) and it succeeded, which suggests to me that the bot is not the issue: https://ci.chromium.org/raw/build/logs.chromium.org/flutter/led/drewroen_google.com/f39679ff88f5ce3030827be4eb8dbe7033268c100155b5c2329efcbfad2fed7f/+/build.proto?server=chromium-swarm.appspot.com
@keyonghan Any ideas you would suggest to find the root cause of this?

The led run you triggered actually ran against mac-507-g140. @drewroengoogle
The issue here is https://github.com/flutter/flutter/issues/125273. The root cause is xcode installation, where build was canceled when installing xcode.
To unblock, I have cleaned the cache in this bot. @flar Please let me know if you still see issues on this bot.
I reopened the above bug to track. (closing here)


The import column of the custom item

Hello, developer, and I think there is only part of the data imported into the database, such as the block data GasLimit, which I did not see when I used MogoDB.I think you can add configuration files and customize them

Hello,
StorableBlock & StorableTransaction contains the fields that are indexed
https://github.com/codingchili/ethereum-ingest/tree/master/src/main/java/com/codingchili/ethereumingest/model
I haven't used this tool in a while so maybe some of the data is indeed missing.


Not all databases support COPY TO syntax

Redshift does not seem to support queries of the form
copy (select * from schema.table)
to sdtout
with csv HEADER

which are used in the FeatureGenerator
It seems like cross-database COPY TO syntax might be problematic. Is the intention for this code to run on several database platforms or just postgres?

Hi there,
Yes - at the moment, this code is just meant to run on postgres. Some members of our team are working on making the code compatible with different databases, but the ETA is unknown on that. If you have any suggestions on how best to do it we would really appreciate your input!
Best,
Justin


feat(ngModel, form): add 'reset all errors' functionality

This PR contains new method for form and inputs (controllers) that allows to reset all errors added with $setValidity method.
Use case:

User fills form and click submit button. Application sends request to the server. Server validates this form somehow. Server decided that field 'A' is invalid.
Application calls $setValidity method for the input 'A' to mark it as ng-invalid-*
User changes field 'A' and click submit button.
At this time server decided that in this condition user specified wrong value in the field 'B'.
At this time, application can't reset fields marked with $setValidity all together.

That's the functionality I tried to cover with this PR.
plunker: http://plnkr.co/edit/aev16Y3cAxTljhctUDMI

:+1:

Can you clarify what the motivation for clearing all the errors on the form is?
If you have an external process specifying validation errors on controls then shouldn't that same process be responsible for resetting the errors that it sets?
Clearing all the errors in a form seems like a heavy handed approach - what if there are other external processes at work here?

@petebacondarwin
It is something like 'restore form and controlls state to state before validation'. (Yes, I tried $setPristine)
In my usecase it is usefull in situation, when I have popup window with some form, and this popup will be closed only when object will be saved successfully. When user clicks 'Submit' - server validates it, and sends message about errors.
When user refills data and clicks 'submit' again, and server found errors again, I have to reset all previous errors and ng-invalid-* classes on inputs before I set new errors.
Does this make sense?


Import extension doesn't work on Azure Synapse Analytics DB

Azure Data Studio Version:

Steps to Reproduce:

Connect to an azure Synapse DB
Open import extension
Go through the import steps (Choosing a file to import, setting up the table)
Click Import at the end

This issue is fixed with #11341


Xamarin Support Needed

It's very difficult to use this Objective C library with Xamarin... the bindings produced by objective sharpie require a lot of customization and is a hurdle for newcomers to Twilio.
https://developer.xamarin.com/guides/cross-platform/macios/binding/objective-sharpie/
Please modify the framework build so that Objective Sharpie can consume it from a PodFile or a *.a file more cleanly.
Alternatively, publish bindings for this (as I've seen for Xamarin Chat)

Hi @RedBlue1776
We are sorry about the frustration and really hope to know we can improve the experience. While I am not a C#/Xamarin expert, could you share more details about the issues you are seeing when using the Objective Sharpie library to generate the library plugin for Xamarin?
Thanks.
-bobie

The problem is, as explained to me by Xamarin Tech support, that the header files in the Twilio iOS Framework aren’t combined together in such a way as to have a single “master” file.
In addition, there are some mapping ambiguities to C# which complicate protocols and other exports in the binding project.
I’d be happy to coordinate and create a public resolution of the issue if you offer me either the contacts or tech support

On Mar 1, 2018, at 1:57 PM, bchen-twilio<EMAIL_ADDRESS>wrote:
Hi @RedBlue1776 https://github.com/redblue1776
We are sorry about the frustration and really hope to know we can improve the experience. While I am not a C#/Xamarin expert, could you share more details about the issues you are seeing when using the Objective Sharpie library to generate the library plugin for Xamarin?
Thanks.
-bobie
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/twilio/voice-quickstart-objc/issues/91#issuecomment-369693612, or mute the thread https://github.com/notifications/unsubscribe-auth/Air8FNlTm9PHhCrhO1zVkJCVxETKZNcsks5taESCgaJpZM4SYca_.

Hello, I am facing the same issue with the bindings in xamarin. Is there any Publish bindings available for Twilio voice-quickstart?


MLM Pretraining missing bbox inputs

Hi, Great work on the package.
It seems on some of the model classes, eg. BrosLMHeadModel, the code misses the bbox inputs. Example below. Correct me if I misunderstood, but I guess bbox should be added here.
If you would like I can put in a PR to fix it here and in the other places like BrosForSequenceClassification and BrosPreTrainedModel.
MLM Model input
https://github.com/clovaai/bros/blob/eb3aa51ad7348444bafb06be64c4604182275edd/bros/modeling_bros.py#L1314-L1318
Bros Model call in MLM Model
https://github.com/clovaai/bros/blob/eb3aa51ad7348444bafb06be64c4604182275edd/bros/modeling_bros.py#L1378-L1381

Hi, thank you for your interest in our work!
You are right. Sorry for the confusion.
(When implementing the code, I copied and pasted the modeling_bert.py of Hugging Face's transformers and modified only a part...)
I'd appreciate if you could open the PR!

I've opened a PR for this :)


Update Nuget Package

Hi @punker76 ,
I'm getting a NullReferenceException intermittently coming from DragSource_PreviewMouseMove with the current Nuget Package <IP_ADDRESS>. However, I am unable to recreate this exception after I imported your code from master.
When would you be pushing a new version to Nuget?

done by creating 1.0.0-ALPHA001


Refactor Recipe creation flow: Directly convert Modifier Instances to Recipe

This PR refactors the Recipe creation process. The original flow converted Modifier Instances to a recipe string before creating a Recipe. We've simplified this by directly converting Modifier Instances to a Recipe.

Updated from_modifiers to create a Recipe from Modifier Instances directly.
Simplified validation for the modifiers parameter.
Remove relevant unit tests for old flow

Test plan:
Tested using the scripts/recipes from https://github.com/vllm-project/llm-compressor/issues/37.

Can we add in a test case the tests the bug reported in #37? Reproduced on a tiny model of course. Otherwise LGTM, just make sure to manually run the unit tests before merging since GHA is broken for all the tests requiring runners

Added e2e tests in last commit and ran them manually:
pytest -vv tests/e2e/test_recipe_parsing.py
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.10.12, pytest-8.2.2, pluggy-1.5.0 -- /root/llm-compressor/venv/bin/python3
cachedir: .pytest_cache
rootdir: /root/llm-compressor
configfile: pyproject.toml
plugins: mock-3.14.0, rerunfailures-14.0
collected 3 items

tests/e2e/test_recipe_parsing.py::test_oneshot[recipe0] PASSED                                                                                [ 33%]
tests/e2e/test_recipe_parsing.py::test_oneshot[\nDEFAULT_stage:\n  DEFAULT_modifiers:\n    SmoothQuantModifier:\n      smoothing_strength: 0.8\n      mappings:\n      - - ['re:.*q_proj', 're:.*k_proj', 're:.*v_proj']\n        - re:.*input_layernorm\n      - - ['re:.*gate_proj', 're:.*up_proj']\n        - re:.*post_attention_layernorm\n    GPTQModifier:\n      sequential_update: false\n      targets: Linear\n      scheme: W8A8\n] PASSED [ 66%]
tests/e2e/test_recipe_parsing.py::test_oneshot[/root/llm-compressor/tests/e2e/recipe.yaml] PASSED


OpenSSL ECC generates public and private keys in this format, how to implement:

EC_POINT *pub_key;
BIGNUM     *priv_key;
privKey: 0x1d9bec7294e2a7426acff1c48e69d2dc995d471d3fe045b1bc3fa21298813fc8
pubKey: 0x8d413fedaa2d0fd1036c27a3cc08e1776b951918513bbd5d8d22286ade63cfbc , 0xcc4ae4bfcf69efb580409c056850429bbb6453227aa0fc0670c0f23c53593bee

I am sorry, I don't understand the question.
Can you provide more details on what you are trying to do?
Maybe a code example if something is failing?

Declare in the structure ec_key_st in openssl
EC_POINT *pub_key; //Public key, in ecc, the public key is a "point" on a curve
BIGNUM *priv_key; //Private key, in ecc, the private key is a large number, and the public key can be obtained by multiplying this large number and the "base point"
After I generate the public key is a string
-----BEGIN PUBLIC KEY-----
MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEAj7AicB0CapN0liGQoT85qGUuLG/K/zO
VUTM9uceiBCY38fU3WOzFHDRQoKvE1O3OuqD4X43iY4F9LbN7NOumg==
-----END PUBLIC KEY-----
This is not the result I want, according to EC_POINT *pub_key in the structure; this is a point result, how do I convert it?

After I generate the public key is a string

How have you generated your key? Through the openssl command line application? Or through code?

This is not the result I want, according to EC_POINT *pub_key in the structure; this is a point result, how do I convert it?

Convert it to what and for what purpose? Are you simply wanting to display the point co-ordinates? Or use the public key to verify a signature? Are you just using OpenSSL or are you seeking to convert it for use by some other software?

I generated the public and private keys through the code,
I want to turn the result into points
Find a way to get x, y based on the public key string

Marking as inactive, to be closed at the end of 3.4 dev, barring further input


Is the version 2.5.1 back ward comtabile with 2.4.5?

Hi LFS
We currently uses v2.4.5 og the filesystem but wouldl like to switch to the latest.
So will a filesystem created under 2.4.5 be mountable by v2.5.1?
Thomas

Hi Thomas, yes, v2.5.1 should be backwards compatible to 2.4.5.
littlefs currently follows a semverish major, minor, patch scheme:
v2.5.1
 ^ ^ ^- patch number, incremented every release
 | '--- minor number, incremented every release with new features
 '----- major number, incremented every release with breaking change

The minor number (v2.4.5 -> v.2.5.0) is bumped when there's a new feature, because new features = more code = more risk of breaking things. It can be helpful when tracking down the source of a regression.
Most bug fixes are only added to the most recent version due to limited bandwidth, so I'd suggest always staying on the most recent version.


Resolvers - should be resolved

leveraged await function within each of the queries of the constants of the resolvers. also had to npm install react-scripts from the root directory of airwaorthy && also resolved  referencing about.js, contact.js, intro.js

Awesome, Miles!


Internationalisation (I18N) support

Is it possible to provide Internationalisation support for OpenAPI annotations, ideally using Java properties files.
Spring has the @PropertySource("classpath:config.properties") option and then uses @Value("${org.domain.some.key}").
Perhaps the Javalin plugin could do something something like:
  @OpenApi(
    path = "/login",
    propertySource = "classpath:config.properties",
    summary = "${org.domain.login.summary}",
    requestBody = @OpenApiRequestBody(
      description = "${org.domain.login.description}",
      content = {@OpenApiContent(from = LoginRequestModel.class)}
    ),
    ...

Properties files could all be loaded at compile time; but language support at runtime would be nice.
Messages.properties
Messages_en_GB.properties
Messages_zh_CN.properties
...

We could uses a System property at runtime to determine the language and set the Locale.
Locale.setDefault(new Locale("en", "GB"));
or at launch
java -jar anApp.jar -Duser.language=en-GB

I think you can already do that with custom annotation processor. You could use such placeholders in annotations and then replace those values in final docs file:
https://github.com/javalin/javalin-openapi/blob/781ee46d3268595bbbc98ed17b942a8055f8f0f8/examples/javalin-gradle-kotlin/src/main/java/io/javalin/openapi/plugin/test/JavalinTest.java#L121-L124
It'd be better if you'd implement this in your app, mostly because you can define multiple sources of those translations etc. and integrate it with your docs.


Fix concurrency bug in DrillSidewaysQuery

Merging this fix as it's a small change and fixes a bug that is showing up in randomized testing. If folks think there's a better way to address this concurrency needs (e.g., relying on a concurrent queue instead of synchronizing the whole list), please let me know and I'm happy to address feedback.


Lecture - Sep 20, 2024

Topic: Requirements Documentation (pt. 2)
Date and Time: Friday, September 20th, 2024 @ 12:30pm
Attendance

[ ] Mohammed (Zayn) Abed
[ ] Maged Armanios
[x] Jinal Kasturiarachchi
[x] Jane Klavir
[ ] Harshil Patel

Questions to Ask

How should we pick our project? We have two options and are having difficulty deciding.

Spoke to Dr. Smith, decided it was best to choose our own original idea, rather than have the extra overhead of working within a competition.


support updating models on the many side of the one-to-many relations.

Hi.
I ran into some issues updating models on the "many" side of one-to-many relations.
E.g., Album with many tracks.
As seen in the new test:
await Album.objects.bulk_update([album], columns=["name"])
This PR attempts to fix those issues :)
However, it might be that I am using the api wrong.
I don't know why the tracks are not updated as seen in the last test:
assert len(updated_album.tracks) == 0
I think this is related to https://github.com/collerek/ormar/issues/50

Hi, it's hard to say what you try to achieve from this snippet :) Please provide more complete example.
But by definition bulk_update and bulk_create affects only the directly related models (so the ones in the list), it does not follow any relation. So it will update ForeignKey relation as the FK is actually kept on the model side, but will not touch ManyToMany and second side of ForeignKey (virtual FK).
So if you update Album, the tracks will not be updated as it's a second side of FK relation (I assume it's the same as in examples and tests). So the column is actually kept on Track side.
That's why save_related was introduced. It's a known "problem" that was considered by marshmallow, pydantic and similar libraries. Cause it's perfectly valid (and actually ormar is doing the same) to keep a relation like ModelA -> ModelB -> ModelA -> so a circular relation. And the decision when to stop loading/updating the relation is arbitral. (cause if you go ModelA -> ModelB -> ModelA -> should you load ModelB again?).
The save_related updates each related model only once. So even if you have ModelA -> ModelB -> ModelA -> ModelD - since the ModelA was the first model it won't ever go to ModelD, as the second ModelA occurrence is already duplicated. So If you try to save nested models like this you need to do it yourself beforehand.
To update deep nested models you need to provide save_related(follow=True) as by default save_related saves only directly related models. So in example ModelA -> ModelB -> ModelC it will save only models from ModelB and do not go deeper.
I remember there was a check for a list but later it became obsolete and I removed it.
But even if it's actually needed you should go with something like this:
elif field_value:  # both empty list and dict will evaluate to False
    if isinstance(field_value, list):
        model_dict[field] = [target.get(target_pkname) for target in field_value]
    else:
        model_dict[field] = field_value.get(target_pkname)
else:  # if it's empty list or dict you need to set it to None
    # as otherwise pydantic will try to instantiate nested models and fail
    # even if the field is optional
    model_dict.pop(field, None)

As it's actually a one check less (cause regardless of the fact if the dict or list is empty it;s the same if, so lower cyclomatic complexity).

Codecov Report

Merging #52 (0679bb4) into master (29c3646) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #52   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           58        58
  Lines         4464      4488   +24
=========================================
+ Hits          4464      4488   +24

Impacted Files
Coverage Δ

ormar/models/modelproxy.py
100.00% <100.00%> (ø)

tests/test_foreign_keys.py
100.00% <100.00%> (ø)

Thanks for the great explanations. I really appreciate it :)
I tried to improve the test by adding play_count to tracks and is_best_seller to albums.
But still, it might not be that good to explain the point. (But I didn't want to include the business case I am dealing with as it is a bit overkill...)
But the main problem is updating any model that is used on the "other" side of a ForeignKey

Thanks for the PR and welcome among the contributors/creators :)


[Feature Request] MaceTensor API which does not take away the ownership of data

Describe the problem
We use Python for business implementation and c/c++ for basic interfaces.But there is a problem when using mace, mace use all the "shared_ptr"s which is annoying for c.
So will there be a c interface provided in the predictable future?
Or you guys have a workaround for this?
Or mace will not take such situation into consideration?
Look forward to your responding?

@Alnlll Thanks for the feedback. We will provide a workaround for shared_ptr ownership issue.
By the way, what about your OS and compiler?

Thanks for responding!!
I'm running a cross-compilation:

host:

OS: ubuntu 16.04
compiler: linaro_linux_gcc 5.4.0

target:

OS: filefly adapts from ubuntu 16.04
compiler: linaro_linux_gcc 5.4.0

For more information,  I noticed that mace will use linaro_linux_gcc 7.3.1, there is a version mismatch.

@Alnlll For tool chain, you can simple create a new one, similar to the current one.
For the C interface issue, what's your real issue?
Do you need to hold the ownership of the tensor buffer? Like:
// global variable
float *buffer_in = (float *) malloc(M);
float *buffer_out = (float *) malloc(N);

// make inference somewhere
// mace_run wrapped the C++ interface
mace_run(buffer_in, buffer_out);

// finally deallocate the memory
free(buffer_in);
free(buffer_out);

@llhe Yes,you're right. That's exactly what I mean.
One specific situation is like:
void cwrapper_run_engine(float * buffer_in, float * buffer_out,...)
{
    // Because of MaceTensor just take shared_ptr<float> as data, I should get a share_ptr
    // type pointer like example.cc does and copy buffer_in data into this buffer,
    // then send this shared_ptr pointer holding  buffer into
    // MaceTensor so I can hold the ownership of my original data buffer.

   auto buffer_in_dup = std::shared_ptr<float>(new float[input_size], std::default_delete<float[]>());
   memcpy(buffer_in_dup.get(), buffer_in, input_size*sizeof(float));

   // then run mace engine, get result.
}

@Alnlll The real question is whether MaceTensor should take the ownership of the input/outpur buffer instead of whether it's shared_ptr or not. For example, simple a new API can be added with plain pointer:
  MaceTensor(const std::vector<int64_t> &shape,
             float *data,
             const DataFormat format = DataFormat::NHWC);

Where MaceTensor will take the ownership of data.
By the current desing, MaceTensor will own the buffer. We are considering whether to provide a new API which does not take the ownership of the i/o buffer.
Here is a quick workaround if your i/o buffer can be allocated by MACE code:
void *create_buffer(int size) {
  auto buffer = std::make_shared<float>(size);
  return new MaceTensor(buffer);
}

float *get_c_buffer(void *tensor) {
  return reinterpret_cast<MaceTensor *>(tensor).data().get();
}

void destroy_buffer(void *tensor) {
  delete reinterpret_cast<MaceTensor *>(tensor);
}

@llhe Yes, ownership is the key.
Unfortunately there is no way to allocate I/O buffer as your providing, I'll try to find other way before getting the new version API not taking away ownership of the buffers.
Thanks for your help.

@llhe That works for me!!
So mace take the ownership of data by using "shared_ptr", and the ownership is depend on deleter in "shared_ptr".
If that's right, MaceTensor API is just fine.

@Alnlll Yes, I also added this in the MaceTensor API docs. This should be the clean and simple solution. So we can close this issue.