Add AuthenticationError for NOPERM error

also look at edge cases like "username does not exist", and make sure we catch them.

NoPermissionError was introduced with the ACL functionality.


You can't upload any file to http://webpack.github.io/analyse/

Simply as that. No upload button or any type of submit.
Chrome  57.0.2987.133 (64-bit)
MacOS Sierra 10.12.3 (16D30)

@LordMalkev thanks for pointing this out. However the analyze tool isn't managed from this repository (although at some point it may be hosted here). Please move this issue to that repo.


[Question] Is the Conda version able to be updated to 1.0.0?

Question
The conda download of gymnasium is still in 0.29 is it possible to update it to the most recent version?
https://github.com/conda-forge/gymnasium-feedstock?tab=readme-ov-file

wip : https://github.com/conda-forge/gymnasium-feedstock/pull/41#issuecomment-2425917958

wip : conda-forge/gymnasium-feedstock#41 (comment)

Just for alignment, that question was a nice to have, it is not blocking the PR (as we are skipping those tests at the moment).

The conda-forge packages have been released, can you check if they work as you expect!

Yes! thank you! @traversaro


fix: Replace "Back to main menu" navigation on mobile Navbar to provide clearer context

Closes #52
before:

after:
https://github.com/denoland/deno-docs/assets/3132889/31994e0b-443b-4670-9760-8af3a048ec16
This UI change does not affect the desktop layout.

I reintroduced the home page and tweaked a few bits, but it's looking good - thanks @hashrock!


revalidate x property while validating y property using inline validation

Hi,
I have a scenario where one input field's value can trigger validation message to appear in two different fields. That works. but When user corrects any of those two invalid fields I want remove validation message from both of them. i.e. I need to be able to call .validate() on a different property or whole model, from an inline validation function. Doesn't that work?
If below code makes sense: where if name or address changes i want to be able to validate both,
addressChangeMsg: function() {
  if(//something)
 {
  this.set('displayError',true);
  return 'provide address or name';
 }
else
{
 //validate the whole model so name inline validate triggers and it clears the error from itself
}
}.property('zip','name','address'),

nameChangeMsg: function() {
  if(//something)
 {
  this.set('displayError',true);
  return 'provide address or name';
 }
else
{
 //validate the whole model so address inline validate triggers and it clears the error from itself
}

}.property('zip','name','address')

validations: {
address: {
allowBlank: true
},
inline: validator(function() {
        return this.get('addressChangeMsg');
      })
},
name: {
allowBlank: true
},
inline: validator(function() {
        return this.get('nameChangeMsg');
      })
}
}

Could you fix your code formatting? It's difficult to read as is

I am going to close this issue for now, feel free to reopen this issue if you feel like it's still relevant and we should take a look at it.


Which register specifies a master quadrant for calculating sum-of-products?

I got a few questions while going through the user guide of MAX78000.

How is the master quadrant selected, which collects the partial sum-of-products, calculates the sum of all products, and writes to the next layer?
(I have a feeling that it is the first quadrant (or the first processor) by looking at mnist-chw-ai85.yaml file where it avoids to use the first quadrant throughtout several layers.)

Also, is there any difference in performance if we choose to/not to run convolution on the master quadrants?

Can we parallelize computation for more processors when we have less channels? If I only have 32 channels to compute and have 60 output channels, can I parallelize the computation to the entire 64 processors?

Why doesn't the cifar-100 example not use parallel mode for the first layer? For example, by using processors 0x111 instead of 0x007 and input the data to three memories. If it is because of the channel format (HWC), is it more costly to change the format to (CHW) than the merit of running this in three parallel groups?

Many thanks!

One additional question: on page 402 in user guide for max78000, the Layer Row Count Maximum is calculated as follows, but what I see from the example is 1 smaller.

rcnt_max = (2 × rcnt_pad) + number_of_rows

Shouldn't it be as below, because the count will start from 0?

rcnt_max = (2 × rcnt_pad) + number_of_rows - 1

The master quadrant is selected using a control bit (in the control register). The tools automatically select a master quadrant. There is also a hardware limitation for some operations that require the master quadrant to be quadrant 0.
No, there is no difference.
This is not supported, you would have to train with the modified input (for example, you could perhaps designate the first half of your output data channels 0-31 and the second half as channels 32-64). This is obviously not mathematically identical, but it's possible that the model would train (and then you could run it).
The choice of HWC vs CHW is primarily the user's choice and depends on the input data format which can be very costly to change from one to the other.

Thank you for pointing out the user guide mistake. We will get it corrected.


Python 3.8 tracking

Not a bug, a list of changes needed for Python 3.8 / tpm2-tools 4.0
The tpm2-tools package is 4.0:
tpm2_getcap
tpm2_getcap --version
tool="tpm2_getcap" version="4.0" tctis="libtss2-tctildr" tcti-default=tcti-abrmd

-c flag is no longer present for tpm2_getcap, just use tpm2_getcap algorithm
  File "/usr/lib/python3.8/site-packages/keylime/tpm2.py", line 265, in __run
    raise Exception("Command: %s returned %d, expected %d, output %s"%(cmd, code, expectedcode, retout))
Exception: Command: tpm2_getcap -c algorithms returned 1, expected 0, output [b"tpm2_getcap: invalid option -- 'c'\n"]

tpm2_changeauth
-o depreciated
  File "/usr/lib/python3.8/site-packages/keylime/tpm2.py", line 447, in __take_ownership
    raise Exception("Owner password unknown, TPM reset required. Code %s"+str(code)+": "+str(output))
Exception: Owner password unknown, TPM reset required. Code %s1: [b"tpm2_changeauth: invalid option -- 'o'\n"]

New command formatting required:
Set owner, endorsement and lockout authorizations to newpass
              tpm2_changeauth -c owner newpass
              tpm2_changeauth -c endorsement newpass
              tpm2_changeauth -c lockout newpass

Set owner, endorsement and lockout authorizations to newpass
tpm2_changeauth -c owner newpass
tpm2_changeauth -c endorsement newpass
tpm2_changeauth -c lockout newpass


How to use this?

I'm not sure I understand how this is used correctly. Should I just fork this repo and add my dotfiles to the home directory, and then do xxh +I <my_own_fork>? is that the correct way? Thank you!

Hi @jaimehrubiks! Yes just fork it!


Implement I/O from/to S3

Is your feature request related to a problem? Please describe.
VarFish shall work on S3 storage internally. For this, the commands should be able to read from and write to S3 storage.
Describe the solution you'd like

[ ] Interpret the environment variables from below and enable S3 mode in this case.
[ ] Interpret absolute paths to always come from the local file system.
[ ] Support - for stdin/stdout.

Describe alternatives you've considered
N/A
Additional context
Environment variables (cf. aws cli docs)

AWS_PROFILE -- set to varfish-s3 to enable S3
AWS_ACCESS_KEY_ID -- must be set
AWS_SECRET_ACCESS_KEY -- must be set
AWS_ENDPOINT_URL -- must be set
AWS_DEFAULT_REGION=us-east-1

OK, so direct upload to S3 is not possible as you can only easily stream upload from a file.


Error Occurred while rendering CoreHUD

Hi Mrcomac,
I am running into an error when click on a token to show the enhancedcombathud.
Error is attached.  I havent been able to pin point the issue any deeper.

Ah,  This is related to  issue #17,  as soon as I turn off SUCC, I am good to go.

Ill close this.


Add support for decision transformer (Closes #794)

Export models to ONNX:
Requirements:
pip install transformers onnx==1.13.1

Code:
import torch
from transformers import DecisionTransformerModel

# 1. Load model
model_id = "edbeeching/decision-transformer-gym-hopper-medium"
model = DecisionTransformerModel.from_pretrained(model_id)

# 2. Define inputs
# states (`torch.FloatTensor` of shape `(batch_size, episode_length, state_dim)`):
#     The states for each step in the trajectory
# actions (`torch.FloatTensor` of shape `(batch_size, episode_length, act_dim)`):
#     The actions taken by the "expert" policy for the current state, these are masked for auto regressive
#     prediction
# rewards (`torch.FloatTensor` of shape `(batch_size, episode_length, 1)`):
#     The rewards for each state, action
# returns_to_go (`torch.FloatTensor` of shape `(batch_size, episode_length, 1)`):
#     The returns for each state in the trajectory
# timesteps (`torch.LongTensor` of shape `(batch_size, episode_length)`):
#     The timestep for each step in the trajectory
# attention_mask (`torch.FloatTensor` of shape `(batch_size, episode_length)`):
#     Masking, used to mask the actions when performing autoregressive prediction
batch_size = 2
episode_length = 16
state_dim = model.config.state_dim
act_dim = model.config.act_dim

states=torch.randn((batch_size, episode_length, state_dim))
actions=torch.randn((batch_size, episode_length, act_dim))
rewards=torch.randn((batch_size, episode_length, 1))
returns_to_go=torch.randn((batch_size, episode_length, 1))
timesteps=torch.tensor(0, dtype=torch.long).reshape(1, 1)
attention_mask=torch.randn((batch_size, episode_length))

# 3. Define outputs
# last_hidden_state (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`):
#     Sequence of hidden-states at the output of the last layer of the model.
# state_preds (`torch.FloatTensor` of shape `(batch_size, sequence_length, state_dim)`):
#     Environment state predictions
# action_preds (`torch.FloatTensor` of shape `(batch_size, sequence_length, action_dim)`):
#     Model action predictions
# return_preds (`torch.FloatTensor` of shape `(batch_size, sequence_length, 1)`):
#     Predicted returns for each state
# hidden_states (`tuple(torch.FloatTensor)`, *optional*, returned when `output_hidden_states=True` is passed or when `config.output_hidden_states=True`):
#     Tuple of `torch.FloatTensor` (one for the output of the embeddings + one for the output of each layer) of
#     shape `(batch_size, sequence_length, hidden_size)`.

#     Hidden-states of the model at the output of each layer plus the initial embedding outputs.
# attentions (`tuple(torch.FloatTensor)`, *optional*, returned when `output_attentions=True` is passed or when `config.output_attentions=True`):
#     Tuple of `torch.FloatTensor` (one for each layer) of shape `(batch_size, num_heads, sequence_length,
#     sequence_length)`.

#     Attentions weights after the attention softmax, used to compute the weighted average in the self-attention
#     heads.

dynamic_axes = {0 : 'batch_size', 1: 'episode_length'}

# 4. Export the model
torch.onnx.export(model, # model being run
                  (states, actions, rewards, returns_to_go, timesteps, attention_mask), # model input (or a tuple for multiple inputs)
                  "model.onnx",   # where to save the model (can be a file or file-like object)
                  export_params=True,        # store the trained parameter weights inside the model file
                  opset_version=13,          # the ONNX version to export the model to
                  do_constant_folding=True,  # whether to execute constant folding for optimization
                  input_names = ['states', 'actions', 'rewards', 'returns_to_go', 'timesteps', 'attention_mask'],   # the model's input names
                  output_names = ['state_preds', 'action_preds', 'return_preds', 'last_hidden_state'], # the model's output names
                  dynamic_axes={
                      'states' : dynamic_axes,
                      'actions' : dynamic_axes,
                      'rewards' : dynamic_axes,
                      'returns_to_go' : dynamic_axes,
                      'timesteps' : dynamic_axes,
                      'attention_mask' : dynamic_axes,

                      'state_preds' : dynamic_axes,
                      'action_preds' : dynamic_axes,
                      'return_preds' : dynamic_axes,
                      'last_hidden_state' : dynamic_axes,
                  }
)

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


Node3D Linked scale does not work for multiple objects

Godot version
Godot 4 Alpha 15
System information
Windows 11/64, RTX 3070, Vulkan
Issue description
Linked scaling works for one object, but not when two or more are selected. Neither entering nor sliding the value.

Steps to reproduce

Select two objects.
Adjust transform/scale/x.
Y and Z are not affected.

Minimal reproduction project
No response

@Calinou Can this get triaged, tagged and added to the roadmap please?

I can confirm this on 4.0.alpha daec089c3.

A duplicate of #62283.


Japanese translation

Hello
I made Japanese translation.
please let me know if there're any issues.

Thank you for the translation!


Python 3.10 compatibility issue

Environment details

OS type and version: Windows 10
Python version: python --version  3.10.1
pip version: pip --version 21.2.4
google-api-python-client version: pip show google-api-python-client - 2.33.0

uritemplate package 3.0.0 is not compatible with python 3.10. Need to update the requirements.
Partial Stack Trace
service = build('gmail', 'v1', credentials=creds)
File "C:\JA\Envs\GIC\lib\site-packages\googleapiclient_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "C:\JA\Envs\GIC\lib\site-packages\googleapiclient\discovery.py", line 219, in build
requested_url = uritemplate.expand(discovery_url, params)
File "C:\JA\Envs\GIC\lib\site-packages\uritemplate\api.py", line 33, in expand
return URITemplate(uri).expand(var_dict, **kwargs)
File "C:\JA\Envs\GIC\lib\site-packages\uritemplate\template.py", line 132, in expand
return self._expand(_merge(var_dict, kwargs), False)
File "C:\JA\Envs\GIC\lib\site-packages\uritemplate\template.py", line 97, in _expand
expanded.update(v.expand(expansion))
File "C:\JA\Envs\GIC\lib\site-packages\uritemplate\variable.py", line 338, in expand
expanded = expansion(name, value, opts['explode'], opts['prefix'])
File "C:\JA\Envs\GIC\lib\site-packages\uritemplate\variable.py", line 278, in _string_expansion
if dict_test(value) or tuples:
File "C:\JA\Envs\GIC\lib\site-packages\uritemplate\variable.py", line 363, in dict_test
return isinstance(value, (dict, collections.MutableMapping))
AttributeError: module 'collections' has no attribute 'MutableMapping'

Hi @yj7,
Thanks for reporting this! I was able to recreate the issue. I've proposed a fix in PR #1629.


Fix #2814 lambda function serialization and deserialization

See #2814.

LGTM. Thanks for the fix.


泛型对象反序列化获取对象类型时，直接返回了里层的泛型，应该去掉return改为在外层统一返回外层的泛型

问题：https://github.com/alibaba/fastjson/issues/3448
现象：嵌套泛型反序列化失败
原因：泛型对象反序列化获取对象类型时，直接返回了里层的泛型，导致在反序列化时字符串和泛型类型不一致，应该去掉return改为在外层统一返回外层的泛型

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.wuzihao3 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

问题已修复，谢谢你的参与，希望你以后能继续提交代码。


[OSD-12763] capture different interface for ovn and sdn

update the capture subcommand to detect the correct interface for tcpdump based on network type

I've successfully tested this on both OVN and SDN clusters and confirmed that it operates correctly on both.
/lgtm

@clcollins @fahlmant @iamkirkbater any of you could help review this? Thanks!


[V1] Card

User Story
As a Sanoma Learning Design System user, I want a versatile and user-friendly Card Component that can effectively handle various use cases across our educational products. This Card Component should be adaptable to convey:
Definition
A card can be used to display content related to a single subject. The content can consist of multiple elements of varying types and sizes.
Key Points

Container for multiple types of contents.
Provide two slots: One in the header and a body slot.

Acceptance Criteria
Elements

Name
Optional

Media
Yes

Title
No

Icon
Yes

Contextual Menu
Yes

Header Slot
Yes

Body Slot
Yes

Column Width

Expanded (Mobile)
Fixed

Row Width

Small
Medium (Default)
Large

Padding

None
Default

A11y

Aria-Label of the card with the title???

Figma Links

Figma Tabs Component Research

### User stories
- [ ] https://github.com/sl-design-system/components/issues/733
- [ ] https://github.com/sl-design-system/components/issues/628
- [ ] https://github.com/sl-design-system/components/issues/629
- [ ] https://github.com/sl-design-system/components/issues/630

Show icon only button when there is 1 action, show more button if there are 2 or more actions.

Little request; please also think about/describe how the image grows/crops when the card is scaled;

Does the image maintain aspect ratio?
-- What happens when you have a landscape photo and a large body text? that will never fit.
-- or does the media always cover the full height? If not, should it be positioned at the top, or center?

Show icon only button when there is 1 action, show more button if there are 2 or more actions.

Are there designs for this? Is it really MVP?


feat: added calorie calculator page

In response to issue #95.
Closes: #95
The calorie count is calculated by an average of two different measures:

Mifflin-St Jeor Equation
Revised Harris-Benedict Equation

Find the deployed site here: https://mridul4101.github.io/HealhUb/pages/calorie.html

Refer this: https://github.com/skpandey885/HealhUb/blob/main/Documentation/Publish-your-changes.md

Okay

Give some margin between the div and navbar.

Give a heading as "Calorie Calculator" Just above the box


can you mension link of dataset ??

can you mension link of dataset in readme file ??

Its the first link in the references part in the report. Also added below for your reference:
https://archive.ics.uci.edu/ml/datasets/human+activity+recognition+using+smartphones


Unable to run default server

In the guides, I wasn't able to get this part working: https://socketry.github.io/async-job-adapter-active_job/guides/getting-started/index#running-a-server but I was able to follow the example. Perhaps we can just add an example to the README or guides?

I included async-job-adapter-active_job-server which may be more convenient.

Please check https://github.com/socketry/async-job-rails-example where I've confirmed it's working.


use meck 0.8.2

meck 0.8.1p1 seems no longer available (See tags for meck, as rebar updatde-deps fails for me with 0.8.1p1 spcec in rebar.config.
All test run ok with meck 0.8.2

Resolved by https://github.com/basho/erlang_protobuffs/pull/75.


Doc for get returns single-column queryset

I kept the  original idea and included the filter idea with the code.
Moved it to the end...
Sugesstions...

merged in f3b601f11a7b56777ac1173a390787d176f95fe3, thanks.


NUTS

Address #193 (eNUTS) #188 (NUTS)
Still seems to be buggy
I believe the No-U-Turn algorithm is buggy somehow (the geweke tests for eNUTS and NUTS show a line no strictly pass the origin; but the HMCDA works fine).

Great work, will take a look at the geweke test for NUTS tomorrow morning.


mvn clean verify will now fail if new code creates new PMD warnings

suppress existing pmd warnings
tweak pom file so that pmd warnings fails build

This pull request is now stale


Cannot use hyphenated values in clap_app! macro

Rust Version
rustc 1.27.0-nightly
Affected Version of clap
2.31.2
Expected Behavior Summary
I'm converting an argument to use the clap_app! macro
from
Arg::with_name("FILE")
        .short("O")
        .long("output-document")
        .help("write documents to FILE")
        .required(false)
        .takes_value(true)

to
 (@arg FILE: -O --output-document +takes_value "write documents to FILE")

Expected help output should be:
OPTIONS:
    -O, --output-document <FILE>    write documents to FILE

Actual Behavior Summary
Instead the help output is
OPTIONS:
    -d, --output <FILE>        write documents to FILE

Steps to Reproduce the issue
Use a hyphenated value for long when defining an argument using the clap_app! macro.
Sample Code or Link to Sample Code
NA
Debug output
NA

Sorry for the long wait, I've been away with my day job.
You have to use --("my-arg-name") when using the macros. It's a limitation of the macro system in Rust :disappointed:

@kbknapp is this documented? If not, maybe document this somewhere.

@mattgathu it is documented although I'll be the first to admit it's somewhat hidden :stuck_out_tongue_winking_eye: Unfortunately, macros in general are somewhat hard to document in Rust.


Add badger dao badger token

ava-labs team, feedback please.  8 days since request initiated.  bridging BADGER from mainnet is important for badger dao to bring our suite of products to Avalanche network.  thank you.

Hi there, thanks for your interest in Avalanche. We have recently updated the review process for tokens on the Avalanche Bridge. I'm closing all of the pending PRs in this repo now, and someone from our business development team should reach out to you soon if they have not already.


Remove dependancy on Common.Logging

Replace Common.Logging with a custom implementation that doesn't have namespace conflicts with Ektron

need to write some mocked unit tests (not integration tests)

Default console logging doesn't seem to work in Phone7 anymore

The core issue is that the default DebugAppender uses System.Diagnostics.Debug which is stripped out of the NuGet packages during compile time since the NuGet packages are compiled in Release mode.
So, when using the NuGet packages, there is effectively no default logger.
If you want to see any log output you must hook up a logger.
I'm going to close this issue, and add a feature to add a default logger that works with the NuGet packages


SPEEDUP ODOMETRY

Dear colleagues, please tell how to speedup odometry?
MH_04_difficult.bag dataset, i7-3820 CPU @ 3.60GHz, /kimera_ros/odometry is ~5Hz

Hi @logindiamant, can you copy-paste the log output that you get when running Kimera-VIO?
Something similar to:
Module: MesherModule - frequency: 62.5 Hz. (16 ms).
Keyframe 1554 with: 591 smart measurements
Module: VioFrontEnd - frequency: 20.8333 Hz. (48 ms).
------------------- Processing frame k = 1555--------------------
Module: VioFrontEnd - frequency: 100 Hz. (10 ms).
------------------- Processing frame k = 1556--------------------
Module: VioFrontEnd - frequency: 55.5556 Hz. (18 ms).
------------------- Processing frame k = 1557--------------------
Module: VioFrontEnd - frequency: 125 Hz. (8 ms).
------------------- Processing frame k = 1558--------------------
Module: VioBackEnd - frequency: 21.2766 Hz. (47 ms).

So that we can see what module is slowing things down for you.

I1126 11:05:28.116629  3820 StereoVisionFrontEnd.cpp:101] ------------------- Processing frame k = 572--------------------
W1126 11:05:28.116714  3820 StereoVisionFrontEnd.cpp:125] Current IMU Preintegration frequency: 185185 Hz. (54 us).
I1126 11:05:28.229601  3820 StereoVisionFrontEnd.cpp:163] Keyframe 572 with: 400 smart measurements
W1126 11:05:28.229730  3820 StereoVisionFrontEnd.cpp:80] Current Stereo FrontEnd (keyframe) frequency: 8.84956 Hz. (113 ms).
I1126 11:05:28.229760  3820 StereoVisionFrontEnd.cpp:101] ------------------- Processing frame k = 573--------------------
W1126 11:05:28.229811  3820 StereoVisionFrontEnd.cpp:125] Current IMU Preintegration frequency: 263158 Hz. (38 us).
W1126 11:05:28.237658  3820 StereoVisionFrontEnd.cpp:80] Current Stereo FrontEnd frequency: 142.857 Hz. (7 ms).
I1126 11:05:28.237727  3820 StereoVisionFrontEnd.cpp:101] ------------------- Processing frame k = 574--------------------
W1126 11:05:28.237790  3820 StereoVisionFrontEnd.cpp:125] Current IMU Preintegration frequency: 196078 Hz. (51 us).
W1126 11:05:28.248302  3820 StereoVisionFrontEnd.cpp:80] Current Stereo FrontEnd frequency: 100 Hz. (10 ms).
I1126 11:05:28.273361  3820 StereoVisionFrontEnd.cpp:101] ------------------- Processing frame k = 575--------------------
W1126 11:05:28.273438  3820 StereoVisionFrontEnd.cpp:125] Current IMU Preintegration frequency: 222222 Hz. (45 us).
I1126 11:05:28.287458  3829 VioBackEnd.cpp:205] Backend: Update IMU Bias.
W1126 11:05:28.287755  3829 VioBackEnd.cpp:177] Current Backend frequency: 17.5439 Hz. (57 ms).
W1126 11:05:28.289456  3820 StereoVisionFrontEnd.cpp:80] Current Stereo FrontEnd frequency: 62.5 Hz. (16 ms).
W1126 11:05:28.292342  3830 Mesher.cpp:202] Current Mesher frequency: 333.333 Hz. (3 ms).

The frontend is clearly the one to blame here...
How did you compile/install OpenCV and OpenGV?
Make sure both are in Release mode (actually, make sure everything is installed in Release mode).

OpenCV steps
https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04
...
cmake -D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D INSTALL_C_EXAMPLES=ON
-D INSTALL_PYTHON_EXAMPLES=ON
-D OPENCV_GENERATE_PKGCONFIG=ON
-D OPENCV_EXTRA_MODULES_PATH=~/home/gleb/opencv/opencv_contrib-3.4.8/modules
-D BUILD_EXAMPLES=ON ..

Thanks for you answer, @ToniRV
What is the typically frequency can I expect in /kimera_ros/odometry with properly configured OpenCV/GV?

You should get around at least 10Hz odometry messages.
I would try to run Kimera without ROS to see if it works at that speed (sometimes linking with kimera-VIO-ROS with Kimera-VIO would slow the pipeline if Kimera is built as a shared library instead of static... still not confirmed though).
Also, make sure you delete the files you have in your .cmake folder in your home folder pointing to potentially old GTSAM/OpenCV/OpenGV/Kimera-X repos, as these may link Kimera to old builds you may have (perhaps a debug build?).
Hope it helps.

@logindiamant we made substantial changes to the ROS wrapper to parallelize the IMU/image callbacks. That might help improving odometry output.


docs(ios-player-sdk): documentation updated for release 2.0.0

Overview

Type:

📚Docs

Ticket: https://issues.ustream-adm.in/browse/IOS-1328

Problem
Preparing the iOS Player SDK release
Solution
Updated the docs.

👍


Dsiplay average TCP RTT for TCP senders

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

src/tcpstream.c, line 77 at r1 (raw file):

	uint client_port = 0;
	int sockfds[DEFAULT_CLIENT_CONNS_PER_THREAD] = {-1};

The original code has a bug, IMO. DEFAULT_CLIENT_CONNS_PER_THREAD = 1 and it writes to sockfds[i] where i could be an arbitrary number.
Also, in usage, -n   [sender only] number of threads per each receiver port     [default: 4] [max: 25600] seems to be wrong. It's one per port by default.


Removing unused dependencies

There are several unused dependencies in our Cargo.toml files.

      For example, `cargo-udeps` cannot detect usage of crates that are only used in doc-tests.
      To ignore some dependencies, write `package.metadata.cargo-udeps.ignore` in Cargo.toml.

Proposed solution
Potential solutions could be:

simply remove them and move on
show unsued imports in github actions
do nothing?

I came across this "issue" while checking if my current PR had any imports that were not being used.


Webpack karma config

This adds a configuration for Webpack as a reference to anyone using it over Browserify since it requires some special configuration to work. There is a TODO task here to make the tests run with both Webpack and Browserify configs in series, but that will take some work as the current test setup won't allow that easily. For now, having this example will help others to figure out how to get request working with Webpack.

Thanks for your work on this one, @pho3nixf1re. I just enabled both configurations here https://github.com/simov/request/commit/8c4296e613154b536fae82307980bb94d9a4c33f. Can you pull https://github.com/simov/request/tree/webpack-tests into yours (the entire branch, not only the commit)?
Also I'm getting some error when running it, can you check it out, and probably push the fix here?
You can test it locally with:
$ npm run test-browserify
$ npm run test-webpack
# lastly run
$ npm test
# to make sure everything works as expected

@simov i merged your stuff over and rebased to master. Everything should be good now once the build clears on travis.

Something seems broken with karma. The har-validator package can't find the json package... I'll have to look into this later.

Thanks for the feedback @pho3nixf1re :+1:

This PR has been closed as "abandoned" as a part of an automated cleanup. If this is a mistake and you are still interested in merging this PR, please do the following:

[ ] Rebase your changes onto the master branch (even if there are no merge conflicts, we want to make sure your change is under the most recent tests).
[ ] Push your updated branch to Github to update this PR.
[ ] Make sure this PR's Travis tests are still passing. (Run npm test locally if tests are still failing).
[ ] Comment here to let us know that you've updated the PR and are still interested in getting it merged. Somebody from the project will respond and work with you to review.

Thank you for your understanding. If you have any questions, please check out https://github.com/request/request/issues/2556 and feel free to comment / ask anything there.


Handle type conversion on out and inout arguments

Right now if you have code like this:
void test(out uint a) { a = 3; }
void broken()
{
    int b = 0;
    test(b);
}

The Slang compiler crashes during lowering, because it applies implicit conversion to the b argument, yielding something like uint(b) and then in order to handle the out argument, it needs to assign from the function output value to uint(b) and at that point it recognizes that the expression isn't an l-value.
A quick fix would be to make the front-end checking for l-values actually catch this case (it seems like our l-value checking must be lax right now). That would diagnose an error and avoid the crash, but that isn't the semantics an HLSL user expects.
The better fix requires recognizing this case and introducing something like a "bidirectional cast" expression into the AST (or an "output cast" expression in this case). Such an expression would be usable as an l-value, but would apply conversion on the output side. This is a more complex fix, of course, but it would also enable us to handle things like compound assignment operators with conversion more cleanly.

Closing the issue since we already diagnose on type conversion.
We can open another issue if we need to support type conversion on calls.


[PI] Improve load/create to default to "unknown"

Overview
As in #3585 the units should default to "unknown" when loading/creating:
Acceptance Criteria

All cubes and DimensionalMetadata whose units are not otherwise specified are loaded with units of "unknown". Specifically, defaults are set for:

[ ] Cubes
[ ] _DimensionalMetadata

[ ] Coord
[ ] DimCoord
[ ] AuxCoord
[ ] CellMeasure
[ ] AncillaryVariable

All cubes and DimensionalMetadata created in iris without specified units are created with units of "unknown". Specifically, defaults are set for:

[x] Cubes (this is already the default)
[ ] _DimensionalMetadata

[ ] Coord
[ ] DimCoord
[ ] AuxCoord
[ ] CellMeasure
[ ] AncillaryVariable

Other useful "unit associated" items:
Correcting saving behaviour is addressed in #3394
Ancillary variables will be addressed in #3473
Improvements to flags will be addressed in #3474

Context
Units can be classified into different types (Known units vs unknown vs no-units. With dimensionless units as a subtype of known units). We interpret these types as follows:
Known dimensional units:  e.g. mm
If the data's units are known and are recognized by cf, the units are loaded accordingly, used and saved to files.  Known units are comprised of a prefix and unit, e.g mm. (See http://cfconventions.org/Data/cf-conventions/cf-conventions-1.7/cf-conventions.html#units section 3.1 for supported prefixes)
Known dimensionless units:  e.g. 1 (number of "parts")
Is applicable to data where dimensional analysis gives a "pure ratio".  The value represents the number of "parts" so is typically "1", but there are other units which are considered dimensionless such as "degrees" or "percent". Dimensionless units can also be a n arbitrary value, for example "1e-6" would indicate data is parts per million (this is similar to the concept of a prefix as mentioned above). The value will be saved to file.
"no-unit":  no-unit or no_unit
This implies that units are not appropriate for the data.  e.g. if data is a string. Data with "no-unit" is disallowed from arithmetic, such operations are considered inappropriate.
This concept is not described by the CF conventions (it is borrowed from cf_units) and therefore a unit of "no-unit" will not be saved to file. Unitless variables are acceptable in CF conventions.
"unknown":
The data's units have not been defined, or they are invalid (and hence are not known). This could also conceivably describe data which ought to be described by "no-unit" but for which that fact could not be determined. Generally though, this is not considered to be the case. Data with "unknown" units are allowed to be used in arithmetic but will always yield data with "unknown" units.
This concept is not described by the CF conventions (it is borrowed from cf_units) and therefore a unit of "unknown" will not be saved to file.

Reasoning behind changes
We consider "unknown" to be the safest and most appropriate unit to give in iris when there is insufficient information to determine a unit. It allows for arithmetic while preventing the creation of incorrect units. Making this change has the additional bonus of allowing the round tripping of NetCDF files containing variables whose units have been intentionally left missing (as seems to be the case when dealing with quality flags).
For quality flags specifically, we have decided that "no-unit" is the more appropriate unit since the data should not be considered to be a numerical quantity (this is similar to how we treat string type data as having "no-unit") . However, for cases like these, "unknown" is still prefereable to the previous default of "1" and therefore "unknown" is a safer default in case there are any other such unanticipated cases.

Merge of feature branch to master, see #3795

Closed by #3803.


fix 406 to be correct 410 error code

Issue Number

Overview

[x] I have changed 406 to be 410 on the api spec

Comments

Thanks :tada:


[Question] How to get current route in different locale

Title says it already.
Is there a way to link to the same page in a different locale for direct language switching?

Please check the https://github.com/meeroslav/localize-router-example.
First two buttons for switching language do exactly that.
In markup you can do something link:
<button (click)="changeLanguage('de')">DE</button>

And then in your class:
constructor(private localize: LocalizeRouterService) {}

changeLanguage(lang: string) {
    this.localize.changeLanguage(lang);
}

@Chuvisco88 Please close this issue if you question has been answered.

Thanks for the info, the changeLanguage works pretty well.
But another problem arises: When having a button (or a link), how can I mark as active?
I thought of using a function isActive(lang: string) which checks against the localize.parser.currentLang but currently it is always marked as active

Yes, it worked!. Thank you very much


add some nicer colorisation to compress-diskimg.sh

Added some nicer ways to colorise the output in compress-diskimg.sh
i know this is not that big but it's good for maintenance of the script in the future.

@SparkySimp had to revert this did not work at all and did not compress the image


no plan b fallback as of #84

Your environment.

Version: 28bb6372b2209ec2952b4dbdd53b0c56902664bf
Browser: iOS / XCode / Flutter

What did you do?
Tried using ion-sfu (standalone) with flutter_webrtc (0.2.8 and 0.3.3)
What did you expect?
A successful connection (since https://github.com/pion/ion works just fine with https://github.com/pion/ion-sdk-flutter which uses flutter_webrtc)
What happened?
offer SDP semantics does not match configuration
Reason: #84 disabled the plan b fallback https://github.com/pion/ion-sfu/pull/84/files#diff-dd4ded5678806fb0c41b7ef5413f0dfdL40 and flutter_webrtc seems to use plan b currently
Was this a desired change?
(@tarrencev describes that commit with "update confs", so not entirely clear to me whether there was intent to drop the plan b fallback or not)
(There is a recent WiP PR that might solve this scenario by moving flutter_webrtc to unified plan https://github.com/flutter-webrtc/flutter-webrtc/pull/359 - but the problem scope isn't necessarily constrained to that... or is plan-b dead and long gone everywhere except in flutter_webrtc?)

We plan to allow for full configuration of the webrtc SettingEngine. This is described in #192. You're welcome to open a PR to allow configuration of SDPSemantics

@tomsun flutter-webrtc 0.4.0 now support unified-plan.

this is now supported


How can I use a Map or Dict or similar thing ?

PureScript has built-in extensible records, which might work for you depending on what you're trying to do: https://github.com/purescript/documentation/blob/master/language/Records.md.  In PureNix, these are compiled to attrsets in Nix.
PureScript also has a foreign-object, which effectively just wraps around JS objects in the JS backend.  This library is not yet ported to PureNix, but you can imagine it would be straightforward(?) to port.  (There is also a library called just foreign that is somewhat related depending on what you're trying to do.)
In cabal2nixWithoutIFD, I implemented my own AttrSet type:
https://github.com/cdepillabout/cabal2nixWithoutIFD/blob/484515bdec2ccf9dfc02b9a442b801bc2d17b9cc/purescript-parser-combinator/src/NixBuiltins.purs#L6-L8
This type of thing would ideally go into some sort of nix-builtins library instead.
There is also ordered-collections, which I believe is more similar to Haskell's Map type, and may be what you're looking for.  This library also hasn't been ported to PureNix.


Security issue with the usage of \ inside replace method

Describe the bug
Their is a security vulnerability with the direct usage of \ in replace method mentioned in this file https://github.com/moment/moment/blob/18aba135ab927ffe7f868ee09276979bed6993a6/src/lib/parse/regex.js#L69 it has to be appropriately sanitized with below logic for ex
function unescapeFormat(s) {
return regexEscape(
s
.replace('\', '')
with
function unescapeFormat(s) {
return regexEscape(
s
.replace(/\/g, '')
at all occurences of replace and \ usage.
To Reproduce
Steps to reproduce the behavior:
go to https://github.com/moment/moment/blob/18aba135ab927ffe7f868ee09276979bed6993a6/src/lib/parse/regex.js#L69
Expected behavior
JS characters to be appropriately sanitized in replace method.
Screenshots
If applicable, add screenshots to help explain your problem.

There are some key details missing here. What is the actual vulnerability you're reporting? What is the impact? Is there a link to a vulnerability report somewhere?

@gilmoreorless Pls check the codeql link for the issue description https://codeql.github.com/codeql-query-help/javascript/js-incomplete-sanitization/
Moment pkg file which I'm reporting is violating above security checks in the file https://github.com/moment/moment/blob/18aba135ab927ffe7f868ee09276979bed6993a6/src/lib/parse/regex.js#L69


'not' is giving error

Hi, I am getting a compilation error, you help is required. I am using VS2019.
Error: The type or namespace name 'not' could not be found (are you missing a using directive or an assembly reference?)
Line: if (from is not T val)
Code:
protected static T ValidateCopyFromType(object from) where T : class
{
Check.NotNull(from, nameof(from));
        if (from is not T val)
            throw new ArgumentException($"Cannot copy from Type '{from?.GetType().FullName}' as it is incompatible.", nameof(from));

        return val;
    }

I dislike saying "it works on my machine" - however, it is successfully compiling at my end. What version of Visual Studio 2019 are you using (I am currently on v16.9.4)?

@basharathussain - have you had an opportunity to try again. I have confirmed it compiles on a second machine. At this stage I will look to close this issue, unless further information can be provided to duplicate. Cheers...

Yes thank you very much. after updating the VS2019 version to the latest (16.10.4), it worked fine.


Seperator does not appear in help text when diplaying default values

I have the following property in the options:
[Option("branch", Required = false, Separator = ',', HelpText = "Branches to include.",
        Default = new[] { "master", "breakfix" })]
public IEnumerable<string> IncludeBranches { get; set; }

The separator is set to ',' then a list of string is given for the default.
The help output is:
--branch                (Default: master breakfix) Branches to include.

This would be miss-leading to the user since it does not include the comma. Would it instead make sense to do something like this?
--branch                (Default: master,breakfix) Branches to include.

PR is welcome.


Add spatial decomposition

Describe your changes
Migrating spatial decomposition task from OpenProblems-v1
Issue ticket number and link
Closes #xxxx (Replace xxxx with the GitHub issue number)
Checklist before requesting a review

[ ] I have performed a self-review of my code

Check the correct box. Does this PR contain:

[ ] Breaking changes
[x] New functionality
[ ] Major changes
[ ] Minor changes
[ ] Bug fixes

[ ] Proposed changes are described in the CHANGELOG.md

[ ] CI Tests succeed and look good!

Hey! The CI is passing :relaxed:

:partying_face:


LNURLw: Printing QR codes seems off

When I create a series of vouchers with the LNURLw plugin and try the printing option first it looks nice: A piece of paper with some qr codes on it ... but when i try to print, it doesnt look the same and is not usable for printing a large amount of voucher.
This is how it looks when I try to print on Firefox (macos):

Similar result with Chrome(macos):

First I tested with LNbits on raspiblitz-tag but I also get the same results from the latest master.

The comitted PR solves the issue on my raspiblitz test setup. @fiatjaf & @arcbtc plz merge. thx.


Dialects (e. g. PostgresDialect) may be objects (singletons)

Why Dialects are represented by open classes? Does implementation inheritance really makes sense here? If no, then Dialects encapsulate no state and thus can be converted to 'object declarations' (singletons).

They certainly could be singletons. They're open with the idea of tweaking things like a MySQL5.7 variant of MySQL, but this could be achieved in other ways.


Serializable struct with 46KB of text in a string = ArgumentException: The output byte buffer is too small to contain the encoded data

Description:
In KCP Transport, when a serializable struct contains several fields and at least one string with ~46KB or more (json),  an exception is thrown:
ArgumentException: The output byte buffer is too small to contain the encoded data, encoding 'Unicode (UTF-8)' fallback 'System.Text.EncoderExceptionFallback'.
Parameter name: bytes
System.Text.Encoding.ThrowBytesOverflow () (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Text.Encoding.ThrowBytesOverflow (System.Text.EncoderNLS encoder, System.Boolean nothingEncoded) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Text.UTF8Encoding.GetBytes (System.Char* chars, System.Int32 charCount, System.Byte* bytes, System.Int32 byteCount, System.Text.EncoderNLS baseEncoder) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Text.UTF8Encoding.GetBytes (System.String s, System.Int32 charIndex, System.Int32 charCount, System.Byte[] bytes, System.Int32 byteIndex) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Mirror.GeneratedNetworkCode._Write_BDcraft.GameData (Mirror.NetworkWriter writer, BDcraft.GameData value) (at <5401e0c5a59e41c68bc2438c77fc7fe4>:0)
BDcraft.RoomPlayerNetwork.Rpc_ShareGameData (BDcraft.GameData gameData) (at <5401e0c5a59e41c68bc2438c77fc7fe4>:0)
BDcraft.RoomPlayerNetwork.RefreshGameDataServer (BDcraft.GameData gameData) (at Assets/Scripts/Network/RoomPlayerNetwork.cs:323)

Everything is working fine with the same struct containing exact same information but that string containing ~22KB (json).
Changing the 'Send Window Size' and/or the 'Receive Window Size' parameters in Kcp Transport component inspector doesn't change anything (and the 'Reliable Max Message Size' does not change after 256 in 'Receive Window Size').
How to reproduce the issue, step by step:

Create a Serializable struct with several fields including one string
Put 46KB of text inside that string
Create a Rpc method with a parameter for that struct
Call that Rpc with a struct data filled with 46KB+ in the string field
Check the ArgumentException in the Console

Expected behavior:
No Argument Exception should be thrown? Or a workaround to increase the maximum size for serialized data in a RPC?
Desktop:

OS: Windows 10
Build target: Standalone
Unity version: 2020.3.43f1
Mirror branch: master / Unity package

https://github.com/MirrorNetworking/Mirror/blob/82a7e752a8e0896e3fa0f79c8fe4b23b929ee229/Assets/Mirror/Core/NetworkWriterExtensions.cs#L85-L94
Looks like line 90, not quite sure how the array isn't big enough as it's resized to fit before
fwiw, max string length is 32k by default.. so it should throw either way?
https://github.com/MirrorNetworking/Mirror/blob/566407cd861fc986dd4f8240cc2552b1f976446d/Assets/Mirror/Core/NetworkWriter.cs#L12

Why limit the string length to an hardcoded value? Couldn't it be bigger or customizable somewhere?
32K limit, explains why it crash with 46KB and not with 22KB

Why limit the string length to an hardcoded value? Couldn't it be bigger or customizable somewhere? 32K limit, explains why it crash with 46KB and not with 22KB

Generally networking packages are built for tiny fast messages, not bulk file transfers...you're expected to use a CDN for file data, or deserialize the data if it's in some machine-readable form, e.g. JSON, to SyncVars / SyncLists / SyncDictionarys as appropriate and let the networking package send it like that, which will apply compression and efficient packing of the data into messages and unpack it into the same structure on the receiving side.

If you're going to send huge amounts of string data in packets, implement some sort of splitting mechanism to chop up your string data into more manageable chunks. Maybe even using something like a fast compression algo (LZ4?) might help.
Ideally, an ideal size per packet should be under 1200 bytes for UDP based protocols such as KCP. While KCP will slice big packets up by itself, you eventually will get to the point where the network is very slow as it has to slice the packets up for lots of connections, causing latency spikes and all sorts of undesirable behaviours.
32KB is a sane limit.

I totally agree with the fact big messages are not the best. However nowadays, 32KB of data is not huge and even if it's a sane limit by default, I don't think that's a nice thing to have a hardcoded value like that.
I think this limit should be customizable, especially knowing the Steam limit is far bigger (512KB).
I will anyway try the GZip method or to deserialize the data into struct first to pass the whole on network instead of using JSON string.

32KB of data is not huge

It really is, in game network terms.  I asked you in discord to give a sample, but you didn't so we can't make good suggestions beyond what's been said.

@Sphax84 string limit will be increased from 32kb to 64 kb: https://github.com/MirrorNetworking/Mirror/pull/3374


Introduce template fragment caching

It's hard to measure exactly the impact of this because there are currently so many database queries for the homepage. In development I need to remove the final {% get_pages %} to get the page to load successfully with the debug toolbar.

develop: 2801 queries in 1537.64ms
this branch with a warm cache: 1369 queries in 845.82ms

Before merging this I'd like to make sure we have some good content and measurements for QA and then we'll need to test this thoroughly by publishing new content and observing the result.
Cache header and footer template for 1 hour
I think these could probably be longer because I doubt they change much but an hour is fine.
This removes about 250 SQL queries from a homepage load.
Cache homepage banners for 15 minutes
My understanding is that this means new banners could take up to 15 minutes to appear on the homepage.
We could probably make this smarter by removing the cached items when a new banner is published, but for the time being I think this basic approach is fine.

I'll give a bit of context on how this works if that helps:


Update test.c

Comparisons were returning wrong results.

I see there already are some PRs addressing the issues.


ci: build the cli in concurrent to the docker images

Currently we are building the cli and docker images one after the other.
Since the cli takes ~30 seconds to build, we can benefit from doing it in parallel to the docker images, reducing 30 seconds from CI time

According to my check, now the "build-odigos-images" job takes 6m 32s instead of 7m 27s previously, reducing the CI time in almost 1 minute


Update README.md

Update readme for next generation.
TODO: Update command list, gameplay (screenshot) and game category (for dev and new server)

support command !help (no argument) and !help command (1 argument)


[HOLD for payment 2023-04-20] Push notification background updates don't seem to be working

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Receive some NewDot messages
Check logs for handling Airship notifications for those messages (eg: logsearch)

Expected Result:
We should have at least a few results for some of these messages
Actual Result:
We have no logs for Airship messages since 4/2 at least (my logs)
Workaround:
No workaround necessary, but this being broken is a subpar UX.
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android / native
[ ] Android / Chrome
[x] iOS / native
[ ] iOS / Safari
[ ] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: v1.2.97-2
Reproducible in staging?: Yes
Reproducible in production?: Not sure
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @quinthar
Slack conversation: https://expensify.slack.com/archives/C04E99DVBTP/p1681152024687099?thread_ts=1680980284.168379&cid=C04E99DVBTP
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~017276e0552aa2476d
Upwork Job ID:<PHONE_NUMBER>654491648
Last Price Increase: 2023-04-10

Job added to Upwork: https://www.upwork.com/jobs/~017276e0552aa2476d

Triggered auto assignment to @dylanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Triggered auto assignment to Contributor Plus for review of internal employee PR - @s77rt (Internal)

Internal access only for logs so removing C+

@arosiclair anything needed here on my end? From the looks of it I don't think so, but wanna make sure I'm not missing anything :)

Reviewing label has been removed, please complete the "BugZero Checklist".

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.2.99-6 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

https://github.com/Expensify/App/pull/17251

If no regressions arise, payment will be issued on 2023-04-20. :confetti_ball:
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

[ ] External issue reporter
[ ] Contributor that fixed the issue
[ ] Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

Merged PR within 3 business days of assignment - 50% bonus
Merged PR more than 9 business days after assignment - 50% penalty

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

[ ] [@arosiclair] The PR that introduced the bug has been identified. Link to the PR:
[ ] [@arosiclair] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[ ] [@arosiclair] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[ ] [@dylanexpensify] Determine if we should create a regression test for this bug.
[ ] [@arosiclair] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[ ] [@dylanexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

Let's see where the discussion goes before proposing regression test steps

@arosiclair any updates on where we're at with Regression test?

I think we're not gonna add any new regression steps for this. If we do, it would be for this related bug on notification click through instead. However, it looks like we already have regression test steps for that here.
Continuing discussion here

Cool cool, no payments here are due, right?

Yup no payment. Everything was internal

Not overdue, any updates @arosiclair?

Yeah we do have existing regression steps for notification click through here so no need to add more.
Looks like this bug made it into production because we already had an open bug for it. So next time, we just have to be more diligent about labeling it as a deploy blocker when it hits staging. With that said, I think this is all set!


[BUG] - Confirm doesn't show title only description

When using confirm, I shouldn't have to also provide a message for it to properly show up in the terminal UI
Reproducible Example
questions:
  - name: "enable_renovate"
    prompt:
      confirm: "Enable Renovate?"
      message: "Enable Renovate?"
      description: "Automatically update dependencies, via Renovate"

Whoops, I already fixed this. I had an older version.


Use pre trained word2vec vector as input

I am trying to use word2vec vector as input.
this is the original input
 1     ['我', '想', '看', '电影']
 2     ['有', '没有', '美剧']
 ...
 9999  ['有', '没有', '美剧']

replace words with the vector
 1     [[word2vec size=200], [word2vec size=200], [word2vec size=200], [word2vec size=200]]
 2     [[word2vec size=200], [word2vec size=200], [word2vec size=200]]
 ...
 9999  [[word2vec size=200], [word2vec size=200], [word2vec size=200]]

pan the vectors with np.zeros.
 1     [[word2vec size=200], [word2vec size=200], [word2vec size=200], [word2vec size=200], [word2vec size=200], [word2vec size=200]]
 2     [[word2vec size=200], [word2vec size=200], [word2vec size=200], [word2vec size=200], [word2vec size=200], [word2vec size=200]]
 ....
 9999  [[word2vec size=200], [word2vec size=200], [word2vec size=200], [word2vec size=200], [word2vec size=200], [word2vec size=200]]

Then use the result as input. Is this doable? and how should I do that? Thanks a lot.

But the code already has a word embeddings layer.
I think you can init it with your word2vec embeddings and freeze that layer to produce the desired effect.

I know your code has own embeddings layer. But I need to embedding word using the train data and other data for accuracy. Not all the data I use for embedding will use to slot filling. So I have to do this separately.

Yep, got it. Two options:

remove the Embedding layer and pass the embedded inputs instead of indexes
Initialise the weights on embedding using embeddings_initializer argument and freeze it

I will try both ways. Thanks very much. I am new to ML. And have lots of
problems. Is that ok to contact you if I have any new questions?
Sasank Chilamkurthy<EMAIL_ADDRESS>周五下午7:51写道：

Yep, got it. Two options:

remove the Embedding layer and pass the embedded inputs instead of
indexes
Initialise the weights on embedding using embeddings_initializer
argument and freeze it
https://keras.io/getting-started/faq/#how-can-i-freeze-keras-layers

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/chsasank/ATIS.keras/issues/6#issuecomment-316981300,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AI71S-RGJ88GLP-CvJ7KF01j4z4yunlvks5sQJCngaJpZM4OfSUp
.

@chsasank I have successfully initialized the weights on embedding with a pre-trained word2Vec model, it works fine. Thanks for your suggestion~

Hi @BrikerMan How did you managed to use a pretrained word2Vec model?

@alepacheco https://eliyar.biz/using-pre-trained-gensim-word2vector-in-a-keras-model-and-visualizing/ here

@BrikerMan I read your post but there you don't use the ATIS dataset, I'm trying to find a way to use the two models together to slot-fill words that are not on the ATIS dataset (ex: more cities) and classifly them in departure city, destination, etc...
Thanks for your help :smiley:

I am understanding that you want to classify data and slot just like ATIS with more city name, right?

Yes, because there are not many words on the ATIS dataset I want to use Word2vec to encode the words and train this network and be able to slot unseen words. I tried changing the embedding layer to use word2vec and run the model with arrays of Word2vecVectors but the results have the following shape (18, 300, 127). 18 been the sentence length,  300 been the dimensions of the words vectors and 127 been the class types. So I'm stuck trying to understand this

I understand your problem. You need to load a well trained word2vec and change the output layer. If is it ok to share your code with me, maybe I can help. Content my email<EMAIL_ADDRESS>


Form field validations do not work if nested in other elements or in other components.

Thanks for creating this library.  While testing I have come across a couple of related issues.
Form fields do not work if nested in other elements
e.g. An input in a div will not be seen by the formGroup function.
<form use:formGroup={fg}>

    <input type="email" formControlName="email" />

</form>

This was solved by adding a couple of lines to the bottom of the formGroup function to recurse through elements...
export function formGroup(el: Element, formGroupSignal: () => FormGroup) {
  for (const $child of el.children) {
    const formGroupName = getFormGroupName($child);
    if (formGroupName) {
      // Handle nested form groups
      formGroup($child, toNestedFormGroupSignal(formGroupSignal, formGroupName));
    } else {
      const $formControl = getFormControl($child);

      if ($formControl instanceof HTMLInputElement) {
        formGroupForInput($formControl, formGroupSignal);
      } else if ($formControl instanceof HTMLSelectElement) {
        formGroupForSelect($formControl, formGroupSignal);
      } else if ($formControl instanceof HTMLTextAreaElement) {
        formGroupForTextArea($formControl, formGroupSignal);
      } else if ($formControl == null && $child instanceof Element && $child.children.length > 0) {
        // Handle nested elements
        formGroup($child, formGroupSignal);
      }
    }
  }
}

Form fields do not work if nested in custom Solid components.
e.g.
<form use:formGroup={fg}>
    <MyFields />
</form>

function MyFields() {
  return (
    <input type="email" formControlName="email" />
  )
}

Even with the above patch this does not work because formGroup is being used as a directive.  It gets executed when the form element is created but before the MyFields elements exist (or at least that's my understanding).  I was able to work around this by not using formGroup as a directive but instead calling it from onMount with a ref to the form.
let formRef;

onMount(() => {
  formGroup(formRef, () => fg)
})

return (
  <form ref={formRef}>
    <MyFields />
  </form>
)

Maybe worth mentioning in the docs if there isn't a better solution?

I was just about to post a similar issue. Had a working form, but started to wrap my   pairs in divs to apply styling. Form breaks. Validation doesn't work and values of inputs just show as blank. This seems like odd behavior to me as wrapping these elements in a div is a pretty standard practice.


Add tests for prematch/postmatch

This really simple thing seems to be not covered by roast: https://irclog.perlgeek.de/perl6/2016-12-10#i_13717049

Closed with 99a9bd8774a5af8d089f59616ea55c86b00da63e.


MSVC boost-python static library cannot be linked

Describe the bug
I want to link my Python extension to a static boost-python library. However, it requires another two dependencies (python and zlib). So I added them as well. However, after the DLL was built successfully, when it was imported in Python, the python.exe crashed.
Environment

OS: Windows
Compiler: MSVC 14.29.30133

To Reproduce
Follow the steps in the repo: https://github.com/BewareMyPower/PythonExtensionDemo/tree/main/boost-python#windows
When I copied the hello.pyd to Python libs directory and import hello module, it crashed:
> py
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import hello
# Crashed here

Expected behavior
It should be imported successfully.
Failure logs
You can see the libraried linked from the outputs of cmake -B command:
-- Python3_LIBRARIES: vcpkg_installed/x64-windows-static/lib/python310.lib
-- Boost Python3: vcpkg_installed/x64-windows-static/lib/boost_python310-vc140-mt.lib
-- ZLIB_LIBRARIES: vcpkg_installed/x64-windows-static/lib/zlib.lib

Additional context
The root cause might be the Python static library should not be linked into a C extension, which is loaded by the Python executable.
However, when I manually switched the linked Python library from static library to import library:
target_link_libraries(hello PRIVATE
    ${Boost_PYTHON310_LIBRARY}
    ${CMAKE_SOURCE_DIR}/vcpkg_installed/x64-windows/lib/python310.lib
    ${ZLIB_LIBRARIES}
)

The build failed with unresolved symbols:
boost_python310-vc140-mt.lib(class.obj) : error LNK2001: unresolved external symbol _Py_NoneStruct [D:\github.com\BewareMy
Power\PythonExtensionDemo\boost-python\build\hello.vcxproj]
...

However, the zlib dependency can be switched to the import library:
target_link_libraries(hello PRIVATE
    ${Boost_PYTHON310_LIBRARY}
    ${Python3_LIBRARIES}
    ${CMAKE_SOURCE_DIR}/vcpkg_installed/x64-windows/lib/zlib.lib
)

The build succeeded. Though it still crashed after I copied hello.pyd and zlib1.dll into the Python libs directory and imported the hello module.

Don't reference file names in target_link_libraries.
Usage of boost-python should look roughly like this:
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
find_package(Boost REQUIRED COMPONENTS python310) # Can probably be python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}

target_compile_definitions(${target_name} PRIVATE "$<$<CONFIG:Debug>:BOOST_DEBUG_PYTHON>")
target_compile_definitions(${target_name} PRIVATE "$<$<CONFIG:Debug>:Py_DEBUG>")
target_link_libraries(${target_name} PRIVATE Boost::python310) # Can probably be python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}
target_link_libraries(${target_name} PRIVATE Python3::Python)

@Osyotr I tried your suggestion:
diff --git a/boost-python/CMakeLists.txt b/boost-python/CMakeLists.txt
index acf5759..f654d44 100644
--- a/boost-python/CMakeLists.txt
+++ b/boost-python/CMakeLists.txt
@@ -43,13 +43,16 @@ message(STATUS "Boost Python3: " ${Boost_PYTHON310_LIBRARY})
 find_library(ZLIB_LIBRARIES NAMES "zlib")
 message(STATUS "ZLIB_LIBRARIES: " ${ZLIB_LIBRARIES})

+find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
+find_package(Boost REQUIRED COMPONENTS python310)
+
 add_library(hello SHARED hello.cc)
+target_compile_definitions(hello PRIVATE "$<$<CONFIG:Debug>:BOOST_DEBUG_PYTHON>")
+target_compile_definitions(hello PRIVATE "$<$<CONFIG:Debug>:Py_DEBUG>")
+target_link_libraries(hello PRIVATE Boost::python310)
+target_link_libraries(hello PRIVATE Python3::Python)
+
 include_directories(
     ${Boost_INCLUDE_DIRS}
     ${Python3_INCLUDE_DIRS}
 )
-target_link_libraries(hello PRIVATE
-    ${Boost_PYTHON310_LIBRARY}
-    ${Python3_LIBRARIES}
-    ${ZLIB_LIBRARIES}
-)

However, the zlib dependency is still missed.
python310.lib(zlibmodule.obj) : error LNK2001: unresolved external symbol deflateCopy
python310.lib(zlibmodule.obj) : error LNK2001: unresolved external symbol inflateSetDictionary
python310.lib(zlibmodule.obj) : error LNK2001: unresolved external symbol deflateSetDictionary
python310.lib(zlibmodule.obj) : error LNK2001: unresolved external symbol deflateInit_
...

Well maybe Python does not export its usage requirements properly. You can manually link to ZLIB::ZLIB.
Also, it's not clear, what version of what library you're trying to use - static boost-python and dynamic everything else? Then you might be looking for per-port customization https://github.com/microsoft/vcpkg/blob/master/docs/users/triplets.md#per-port-customization

static boost-python and dynamic everything else?

I want to link static dependencies, including boost-python and the zlib it depends. The only exceptional case is python, because if it's statically linked, the module wouldn't be able to import.
I thought the following libs are the import libraries of Python:
-rwxrwxrwx 1 xyz xyz 355K Oct 27 17:48 vcpkg_installed/x64-windows-static/lib/manual-link/python.lib
-rwxrwxrwx 1 xyz xyz 176K Oct 27 14:19 vcpkg_installed/x64-windows/lib/python3.lib
-rwxrwxrwx 1 xyz xyz 348K Oct 27 14:18 vcpkg_installed/x64-windows/lib/python310.lib

However, only python310.lib can be linked but the unresolved external symbols would still happen, which means the symbols of python310 cannot be included. The other libraries cannot be linked because the boost-python library depends on python310.lib:

LINK : fatal error LNK1104: cannot open file 'python310.lib'

Then you might be looking for per-port customization

I will take a look. Maybe the reason is that the import library was treated as a static library so that no symbol can be found.

This issue can be solved by adding a customized triplet:
# triplets/x64-windows-static-boost.cmake
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
if (PORT MATCHES "python3")
    set(VCPKG_LIBRARY_LINKAGE dynamic)
else ()
    set(VCPKG_LIBRARY_LINKAGE static)
endif ()
set(VCPKG_BUILD_TYPE release)

set(VCPKG_OVERLAY_TRIPLETS ${CMAKE_SOURCE_DIR}/triplets)
set(VCPKG_TARGET_TRIPLET x64-windows-static-boost)


Parent cannot accept badge on behalf of ninja

Pointed out by community member - they are logged in as a parent of an U13 ninja.
The ninja was awarded a badge but when logged in the parent cannot accept it on their behalf, they get the following error, even though they are the parent:

Could be due to the changes to the users service from last week.

Deployed and fixed


Dollar value in "Choose an account" is stacks value not Bitcoin value + Stacks value

Expected is the same value as in the Account (or in Switch Account).

Hm my sense is that @alter-eggo fixed this recently. What version were you using?

hm, I fixed only for account switching, not 'choosing'. they are different components. I'll refactor this part of code

seems is fixed here @markmhx


The "Age" column does not refresh

Describe the bug
The "Age" column does not refresh. I have to manually refresh the browser for the time counter to change.
To Reproduce
Steps to reproduce the bug:

Go to Pods
Delete some pod

Environment (please provide info about your environment):

Installation type: Windows-Winget/In-Cluster
Headlamp Version: 0.27.0

Are you able to fix this issue?
No
Additional Context
https://github.com/user-attachments/assets/92c994b8-fa32-450e-9271-7f54b71a2589

Hi! It's true that the Age column isn't continuously counting up in real time, but this is by design: it's only recalculated when the table re-renders to prevent excessive re-rendering and performance overhead.
If this is critical, we could modify the logic to force updates to the table, but this might introduce extra load and usually isn't necessary. Let us know if you feel this would be worth adding in

It is not critical. But nice to have. What do others think about this idea?

If this is critical, we could modify the logic to force updates to the table, but this might introduce extra load and usually isn't necessary. Let us know if you feel this would be worth adding in

You could fetch the pod creation date, and then calculate age in frontend. That way, you won't need expensive updates any more than you do now.


Senior dev/I&I level 2: Remove 'senior and lead' requirement

Since we encourage collaboration and participation from engineers at all levels, sometimes non-senior engineers may be involved in defining technical architecture. In my opinion, working with engineers at any level on this should be part of a senior's role, not purely working with other seniors/leads.

Thanks @SLambrakis this sound reasonable to me. We will review this soon!

Thanks @SLambrakis this sound reasonable to me. We will review this soon!

We have reviewed and agreed this is a good change.


Update variables.tf

what

Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?)
Use bullet points to be concise and to the point.

why

Provide the justifications for the changes (e.g. business case).
Describe why these changes were made (e.g. why do these commits fix the problem?)
Use bullet points to be concise and to the point.

references

Link to any supporting github issues or helpful documentation to add some context (e.g. stackoverflow).
Use closes #123, if this PR closes a GitHub issue #123

Hi @PatriceWallace
Thanks for the contribution. I can't see how this change relates to this module. Closing.


a few small edits

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 80.309%

Totals

Change from base Build<PHONE_NUMBER>5:
0.0%

Covered Lines:
2027

Relevant Lines:
2524

💛  - Coveralls

You can merge in #131 at will


[Integration][Airflow] Snowflake extractor retrieves connection info from secrets backends multiple times per task

During task execution in Airflow with the latest version of OpenLineage configured, there are several log entries for retrieving connection information directly from the secrets backend. The SnowflakeOperator in Airflow only does this retrieval once via a call to SnowflakeHook._get_conn_params() when executing a query. This method in turn calls BaseHook.get_connection() to retrieve the connection information from the secrets backend. However, the Airflow task logs can have at least 4 other instances of this retrieval.
For example, this is an abbreviated and redacted example Airflow task log. Note that the log line {base.py:68} INFO - Using connection ID 'galaxy_snowflake_etl' for task execution. appears 5 times. The log line of Using connection ID ... for task execution. occurs each time connection information is retrieved from an Airflow secrets backend. This could be the Airflow metadatabase, a third-party secrets store, or environment variables.
...
*** Reading local file: /usr/local/airflow/logs/dag_id=cal***/run_id=scheduled__2022-05-28T01:00:00+00:00/task_id=cal***/attempt=8.log
[2022-05-28, 02:26:11 UTC] {taskinstance.py:1160} INFO - Dependencies all met for <TaskInstance: cal***** scheduled__2022-05-28T01:00:00+00:00 [queued]>
[2022-05-28, 02:26:11 UTC] {taskinstance.py:1160} INFO - Dependencies all met for <TaskInstance: cal***** scheduled__2022-05-28T01:00:00+00:00 [queued]>
[2022-05-28, 02:26:11 UTC] {taskinstance.py:1357} INFO -
--------------------------------------------------------------------------------
[2022-05-28, 02:26:11 UTC] {taskinstance.py:1358} INFO - Starting attempt 8 of 10
[2022-05-28, 02:26:11 UTC] {taskinstance.py:1359} INFO -
--------------------------------------------------------------------------------
[2022-05-28, 02:26:11 UTC] {base.py:68} INFO - Using connection ID 'galaxy_snowflake_etl' for task execution.
[2022-05-28, 02:26:11 UTC] {base.py:68} INFO - Using connection ID 'galaxy_snowflake_etl' for task execution.
...

[2022-05-28, 02:26:11 UTC] {taskinstance.py:1378} INFO - Executing <Task(SnowflakeOperator): cal*****> on 2022-05-28 01:00:00+00:00
[2022-05-28, 02:26:11 UTC] {standard_task_runner.py:52} INFO - Started process 374 to run task
[2022-05-28, 02:26:11 UTC] {standard_task_runner.py:79} INFO - Running: ['airflow', 'tasks', 'run', ...
[2022-05-28, 02:26:11 UTC] {standard_task_runner.py:80} INFO - Job 18: Subtask cal*****
...
[2022-05-28, 02:26:11 UTC] {snowflake.py:118} INFO - Executing: CREATE OR REPLACE TABLE SOMETABLE AS (

    SELECT
        DATE_FROM_PARTS(2017, 1, 1) first_date,
        DATE_FROM_PARTS(YEAR(CURRENT_DATE()) + 6, 12, 31) last_date,
        DATEDIFF('day', first_date, last_date) + 1 cal_length)
    FROM ...
[2022-05-28, 02:26:11 UTC] {base.py:68} INFO - Using connection ID 'galaxy_snowflake_etl' for task execution.
[2022-05-28, 02:26:11 UTC] {connection.py:257} INFO - Snowflake Connector for Python Version: 2.7.7, Python Version: 3.9.7, Platform: Linux-5.10.76-linuxkit-x86_64-with-glibc2.31
[2022-05-28, 02:26:11 UTC] {connection.py:873} INFO - This connection is in OCSP Fail Open Mode. TLS Certificates would be checked for validity and revocation status. Any other Certificate Revocation related exceptions or OCSP Responder failures would be disregarded in favor of connectivity.
[2022-05-28, 02:26:11 UTC] {connection.py:891} INFO - Setting use_openssl_only mode to False
[2022-05-28, 02:26:12 UTC] {cursor.py:705} INFO - query: [ALTER SESSION SET autocommit=True]
[2022-05-28, 02:26:12 UTC] {cursor.py:729} INFO - query execution done
[2022-05-28, 02:26:12 UTC] {snowflake.py:324} INFO - Running statement: ...
[2022-05-28, 02:26:14 UTC] {cursor.py:729} INFO - query execution done
[2022-05-28, 02:26:14 UTC] {snowflake.py:334} INFO - Statement execution info - {'status': 'Table SOMETABLE successfully created.'}
[2022-05-28, 02:26:14 UTC] {snowflake.py:338} INFO - Rows affected: 1
[2022-05-28, 02:26:14 UTC] {snowflake.py:339} INFO - Snowflake query id: 01a48f12-0604-a6b9-0000-6821095307d6
[2022-05-28, 02:26:14 UTC] {connection.py:504} INFO - closed
[2022-05-28, 02:26:14 UTC] {connection.py:507} INFO - No async queries seem to be running, deleting session
[2022-05-28, 02:26:14 UTC] {taskinstance.py:1396} INFO - Marking task as SUCCESS. dag_id=calendar_tables, task_id=calendar_params.create_calendar_params_tmp, execution_date=20220528T010000, start_date=20220528T022611, end_date=20220528T022614
[2022-05-28, 02:26:14 UTC] {base.py:68} INFO - Using connection ID 'galaxy_snowflake_etl' for task execution.
[2022-05-28, 02:26:14 UTC] {base.py:68} INFO - Using connection ID 'galaxy_snowflake_etl' for task execution.
...
[2022-05-28, 02:26:14 UTC] {local_task_job.py:156} INFO - Task exited with return code 0
[2022-05-28, 02:26:14 UTC] {local_task_job.py:273} INFO - 0 downstream tasks scheduled from follow-on schedule check

The Snowflake extractor makes the same call to SnowflakeHook._get_conn_params() multiple times throughout the extraction process either directly, via get_connection() in the extractor proper, or Snowflake.get_conn() (which eventually calls SnowflakeHook._get_conn_params().
Ideally it would be nice to have the extractor retrieve the operator's connection once and continue to use the same object when applicable. This would decrease load on the Airflow metadatabase (if used as a secrets backend) and the number of calls (and cost) to third-party secret store for heavy Snowflake users.

Here's a stack trace I captured from a hung process. It shows the connection module is being locked on import. Unfortunately, when the thread terminates while the lock is still held, it'll never be released. That means the actual Snowflake task is unable to acquire a lock for the connection module and it deadlocks.
root@3fd74bcb8e46:/usr/local/airflow# pystack 569
Dumping Threads....

  File "/usr/local/bin/airflow", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/airflow/__main__.py", line 38, in main
    args.func(args)
  File "/usr/local/lib/python3.9/site-packages/airflow/cli/cli_parser.py", line 51, in command
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/airflow/utils/cli.py", line 99, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/airflow/cli/commands/scheduler_command.py", line 75, in scheduler
    _run_scheduler_job(args=args)
  File "/usr/local/lib/python3.9/site-packages/airflow/cli/commands/scheduler_command.py", line 46, in _run_scheduler_job
    job.run()
  File "/usr/local/lib/python3.9/site-packages/airflow/jobs/base_job.py", line 244, in run
    self._execute()
  File "/usr/local/lib/python3.9/site-packages/airflow/jobs/scheduler_job.py", line 727, in _execute
    self.executor.start()
  File "/usr/local/lib/python3.9/site-packages/airflow/executors/local_executor.py", line 358, in start
    self.impl.start()
  File "/usr/local/lib/python3.9/site-packages/airflow/executors/local_executor.py", line 300, in start
    worker.start()
  File "/usr/local/lib/python3.9/multiprocessing/process.py", line 121, in start
    self._popen = self._Popen(self)
  File "/usr/local/lib/python3.9/multiprocessing/context.py", line 224, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File "/usr/local/lib/python3.9/multiprocessing/context.py", line 277, in _Popen
    return Popen(process_obj)
  File "/usr/local/lib/python3.9/multiprocessing/popen_fork.py", line 19, in __init__
    self._launch(process_obj)
  File "/usr/local/lib/python3.9/multiprocessing/popen_fork.py", line 71, in _launch
    code = process_obj._bootstrap(parent_sentinel=child_r)
  File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/usr/local/lib/python3.9/site-packages/airflow/executors/local_executor.py", line 67, in run
    return super().run()
  File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.9/site-packages/airflow/executors/local_executor.py", line 190, in do_work
    self.execute_work(key=key, command=command)
  File "/usr/local/lib/python3.9/site-packages/airflow/executors/local_executor.py", line 84, in execute_work
    state = self._execute_work_in_fork(command)
  File "/usr/local/lib/python3.9/site-packages/airflow/executors/local_executor.py", line 124, in _execute_work_in_fork
    args.func(args)
  File "/usr/local/lib/python3.9/site-packages/airflow/cli/cli_parser.py", line 51, in command
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/airflow/utils/cli.py", line 99, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/airflow/cli/commands/task_command.py", line 375, in task_run
    _run_task_by_selected_method(args, dag, ti)
  File "/usr/local/lib/python3.9/site-packages/airflow/cli/commands/task_command.py", line 181, in _run_task_by_selected_method
    _run_task_by_local_task_job(args, ti)
  File "/usr/local/lib/python3.9/site-packages/airflow/cli/commands/task_command.py", line 239, in _run_task_by_local_task_job
    run_job.run()
  File "/usr/local/lib/python3.9/site-packages/airflow/jobs/base_job.py", line 244, in run
    self._execute()
  File "/usr/local/lib/python3.9/site-packages/airflow/jobs/local_task_job.py", line 105, in _execute
    self.task_runner.start()
  File "/usr/local/lib/python3.9/site-packages/airflow/task/task_runner/standard_task_runner.py", line 41, in start
    self.process = self._start_by_fork()
  File "/usr/local/lib/python3.9/site-packages/airflow/task/task_runner/standard_task_runner.py", line 88, in _start_by_fork
    args.func(args, dag=self.dag)
  File "/usr/local/lib/python3.9/site-packages/airflow/cli/cli_parser.py", line 51, in command
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/airflow/utils/cli.py", line 99, in wrapper
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/airflow/cli/commands/task_command.py", line 375, in task_run
    _run_task_by_selected_method(args, dag, ti)
  File "/usr/local/lib/python3.9/site-packages/airflow/cli/commands/task_command.py", line 183, in _run_task_by_selected_method
    _run_raw_task(args, ti)
  File "/usr/local/lib/python3.9/site-packages/airflow/cli/commands/task_command.py", line 256, in _run_raw_task
    ti._run_raw_task(
  File "/usr/local/lib/python3.9/site-packages/airflow/utils/session.py", line 71, in wrapper
    return func(*args, session=session, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1450, in _run_raw_task
    self._execute_task_with_callbacks(context, test_mode)
  File "/usr/local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1597, in _execute_task_with_callbacks
    result = self._execute_task(context, task_orig)
  File "/usr/local/lib/python3.9/site-packages/airflow/models/taskinstance.py", line 1658, in _execute_task
    result = execute_callable(context=context)
  File "/usr/local/lib/python3.9/site-packages/airflow/providers/snowflake/operators/snowflake.py", line 120, in execute
    execution_info = hook.run(self.sql, autocommit=self.autocommit, parameters=self.parameters)
  File "/usr/local/lib/python3.9/site-packages/airflow/providers/snowflake/hooks/snowflake.py", line 311, in run
    with closing(self.get_conn()) as conn:
  File "/usr/local/lib/python3.9/site-packages/airflow/providers/snowflake/hooks/snowflake.py", line 259, in get_conn
    conn = connector.connect(**conn_config)
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/__init__.py", line 51, in Connect
    return SnowflakeConnection(**kwargs)
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/connection.py", line 276, in __init__
    self.connect(**kwargs)
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/connection.py", line 489, in connect
    self.__open_connection()
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/connection.py", line 728, in __open_connection
    self._authenticate(auth_instance)
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/connection.py", line 991, in _authenticate
    self.__authenticate(self.__preprocess_auth_instance(auth_instance))
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/connection.py", line 1011, in __authenticate
    auth.authenticate(
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/auth.py", line 257, in authenticate
    ret = self._rest._post_request(
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/network.py", line 705, in _post_request
    ret = self.fetch(
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/network.py", line 795, in fetch
    ret = self._request_exec_wrapper(
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/network.py", line 838, in _request_exec_wrapper
    return_object = self._request_exec(
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/network.py", line 1009, in _request_exec
    raw_ret = session.request(
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/vendored/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/vendored/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/vendored/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/vendored/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/vendored/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/vendored/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/vendored/urllib3/connection.py", line 411, in connect
    self.sock = ssl_wrap_socket(
  File "/usr/local/lib/python3.9/site-packages/snowflake/connector/ssl_wrap_socket.py", line 78, in ssl_wrap_socket_with_ocsp
    from .ocsp_asn1crypto import SnowflakeOCSPAsn1Crypto as SFOCSP
  File "<frozen importlib._bootstrap>", line 211, in _lock_unlock_module
  File "<frozen importlib._bootstrap>", line 107, in acquire
  File "<string>", line 1, in <module>
  File "<string>", line 1, in <module>

@mobuchowski @collado-mike Thank you both for jumping on this so quickly! Top-notch stuff!


Laravel 6 proc_open

Laravel Version: 6
PHP Version: 7.3

Description:
After installing Laravel 6, i get the following error message:
The Process class relies on proc_open, which is not available on your PHP installation.
I don't have find anything in the docs about this?

I faced with the same issue when I wanted to put my Laravel 6 application on a shared host(PHP 7.2) and faced the error:

The Process class relies on proc_open, which is not available on your PHP installation.

Problem happens on /vendor/facade/ingnition/src/Middleware/AddGitInformation.php
file and when $this->command("git log --pretty=format:'%H' -n 1"); is called. I solved my problem by editing AddGitInformation.php but I guess it would be better if Laravel6 not to depend on proc_open if possible.

I think its issue related to Symfony Process package.
https://github.com/symfony/process/blob/master/CHANGELOG.md#400

Heya, this seems to be related to Symfony and not Laravel.

It is because of Flare error reporting service enabled
There is workaround for this.
Publish flare config file
 php artisan vendor:publish --tag=flare-config
and in config/flare.php
Set
'collect_git_information' => false

'reporting' => [
        'anonymize_ips' => true,
        'collect_git_information' => false,
        'report_queries' => true,
        'maximum_number_of_collected_queries' => 200,
        'report_query_bindings' => true,
        'report_view_data' => true,
    ],

It is because of Flare error reporting service enabled in debug mode
There is a workaround for this.
Publish flare config file
 php artisan vendor:publish --tag=flare-config
and in config/flare.php
Set
'collect_git_information' => false

'reporting' => [
        'anonymize_ips' => true,
        'collect_git_information' => false,
        'report_queries' => true,
        'maximum_number_of_collected_queries' => 200,
        'report_query_bindings' => true,
        'report_view_data' => true,
    ],

This is working for Php 7.2, shared hosting. thanks

It is because of Flare error reporting service enabled in debug mode
There is a workaround for this.
Publish flare config file
 php artisan vendor:publish --tag=flare-config
and in config/flare.php
Set
'collect_git_information' => false

'reporting' => [
        'anonymize_ips' => true,
        'collect_git_information' => false,
        'report_queries' => true,
        'maximum_number_of_collected_queries' => 200,
        'report_query_bindings' => true,
        'report_view_data' => true,
    ],

Muchas gracias... esta solución sirvió de mucho... thank!!!

It is because of Flare error reporting service enabled in debug mode
There is a workaround for this.
Publish flare config file
 php artisan vendor:publish --tag=flare-config
and in config/flare.php
Set
'collect_git_information' => false

'reporting' => [
        'anonymize_ips' => true,
        'collect_git_information' => false,
        'report_queries' => true,
        'maximum_number_of_collected_queries' => 200,
        'report_query_bindings' => true,
        'report_view_data' => true,
    ],

thanks man works for PHP 7.2

It is because of Flare error reporting service enabled in debug mode
There is a workaround for this.
Publish flare config file
 php artisan vendor:publish --tag=flare-config
and in config/flare.php
Set
'collect_git_information' => false

'reporting' => [
        'anonymize_ips' => true,
        'collect_git_information' => false,
        'report_queries' => true,
        'maximum_number_of_collected_queries' => 200,
        'report_query_bindings' => true,
        'report_view_data' => true,
    ],

Thanks you very much! ♥

It is because of Flare error reporting service enabled in debug mode
There is a workaround for this.
Publish flare config file
 php artisan vendor:publish --tag=flare-config
and in config/flare.php
Set
'collect_git_information' => false

'reporting' => [
        'anonymize_ips' => true,
        'collect_git_information' => false,
        'report_queries' => true,
        'maximum_number_of_collected_queries' => 200,
        'report_query_bindings' => true,
        'report_view_data' => true,
    ],

Thanks a lot from Amsterdam!

i did all, but my shared host still not working

@nguyenbinh23 What is the problem now? Is it still the same exception? can you share your ./config/flare.php file?

i added ./config/flare.php in my cpanel shared host, and changed it like u but still not working

Yes. Just share more information. Like what is the current exception? and what is the code inside your flare.php ?

 env('FLARE_KEY'),

    /*
    |--------------------------------------------------------------------------
    | Reporting Options
    |--------------------------------------------------------------------------
    |
    | These options determine which information will be transmitted to Flare.
    |
    */
    'collect_git_information' => false,

    'reporting' => [
        'anonymize_ips' => true,
        'collect_git_information' => false,
        'report_queries' => true,
        'maximum_number_of_collected_queries' => 200,
        'report_query_bindings' => true,
        'report_view_data' => true,
    ],
];

this is my flare.php

`<?php
return [
/*
|
|--------------------------------------------------------------------------
| Flare API key
|--------------------------------------------------------------------------
|
| Specify Flare's API key below to enable error reporting to the service.
|
| More info: https://flareapp.io/docs/general/projects
|
*/
'key' => env('FLARE_KEY'),

/*
|--------------------------------------------------------------------------
| Reporting Options
|--------------------------------------------------------------------------
|
| These options determine which information will be transmitted to Flare.
|
*/
'collect_git_information' => false,

'reporting' => [
    'anonymize_ips' => true,
    'collect_git_information' => false,
    'report_queries' => true,
    'maximum_number_of_collected_queries' => 200,
    'report_query_bindings' => true,
    'report_view_data' => true,
],

];
`
this is my flare.php, maybe i change it first in local folder and later uploading to shared host?

thanks sir, i waited  30min and my website worked @@

It is because of Flare error reporting service enabled in debug mode
There is a workaround for this.
Publish flare config file
 php artisan vendor:publish --tag=flare-config
and in config/flare.php
Set
'collect_git_information' => false

'reporting' => [
        'anonymize_ips' => true,
        'collect_git_information' => false,
        'report_queries' => true,
        'maximum_number_of_collected_queries' => 200,
        'report_query_bindings' => true,
        'report_view_data' => true,
    ],

thanks @manukn  it works for php7.3

It is because of Flare error reporting service enabled in debug mode
There is a workaround for this.
Publish flare config file
 php artisan vendor:publish --tag=flare-config
and in config/flare.php
Set
'collect_git_information' => false

'reporting' => [
        'anonymize_ips' => true,
        'collect_git_information' => false,
        'report_queries' => true,
        'maximum_number_of_collected_queries' => 200,
        'report_query_bindings' => true,
        'report_view_data' => true,
    ],

Work for me in shared hosting and PHP 7.3

The solution by manukn works, but keep in mind that the configuration might be cached in /bootstrap/cache/config.php. If that file still contains a true value for flare.reporting.collect_git_information, the error remains.
Delete this cache file to remove the cache.

I solved this issue by deleting everything inside /bootstrap/cache

collect_git_information

save my day

doesn't work for me:
My PHP:
PHP 7.2.24-0ubuntu<IP_ADDRESS> (cli) (built: Feb 11 2020 15:55:52) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.24-0ubuntu<IP_ADDRESS>, Copyright (c) 1999-2018, by Zend Technologies

composer require brexis/laravel-workflow
Using version ^1.3 for brexis/laravel-workflow
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing brexis/laravel-workflow (1.3.3):
In Process.php line 344:

  proc_open(): fork failed - Invalid argument

my config/flare.php

    'reporting' => [
        'anonymize_ips' => true,
        'collect_git_information' => false,
        'report_queries' => true,
        'maximum_number_of_collected_queries' => 200,
        'report_query_bindings' => true,
        'report_view_data' => true,
        'grouping_type' => null,
    ],

and my bootstrap/cache is empty (I empty this after every try)
What i did is just install the laravel boilerplate
then composer update.
Then I and wanted to add this laravel-workflow
and that is the moment i get this error.
running within WSL by the way.
Any suggestions?

It is because of Flare error reporting service enabled in debug mode
There is a workaround for this.
Publish flare config file
 php artisan vendor:publish --tag=flare-config
and in config/flare.php
Set
'collect_git_information' => false

'reporting' => [
        'anonymize_ips' => true,
        'collect_git_information' => false,
        'report_queries' => true,
        'maximum_number_of_collected_queries' => 200,
        'report_query_bindings' => true,
        'report_view_data' => true,
    ],

Thanks!!, works for php 7.4

Not working for me

Not working for me

Why? What have you tried so far? Can you share your flare config file?

Hey everyone,
I'm locking this issue because it either has gone off-topic, become a dumping ground for things which shouldn't be in an issue tracker or is just too old. Please try to discuss things further on one of the below channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC


Bucky to send custom metrics

Hi guys,
Awesome job on bucky btw.
But I just wanna ask if there's a way for us to send custom metrics since currently bucky sends raw metrics and if we wanted to have precomputed ones like "TotalPageLoadTime" and have it sent to OpenTSDB
e.g.
Total Page Load Time = performance.timing.loadEventEnd – performance.timing.navigationStart
connectTime = perfData.responseEnd - perfData.requestStart
Best regards

nvm, i added the following to a local copy:
for (key in _ref5) {
time = _ref5[key];
if (typeof time === 'number') {
timer.send("" + path + "." + key, time - start);
}
}
	//BL - additional precomputed metrics
	timer.send("" + path + ".TotalPageLoadTime", performance.timing.loadEventStart - performance.timing.navigationStart);
	timer.send("" + path + ".DomComplete", performance.timing.domComplete - performance.timing.navigationStart);
	timer.send("" + path + ".TimeToInteract", performance.timing.domInteractive - performance.timing.navigationStart);
	timer.send("" + path + ".DNSLookUp", performance.timing.domainLookupEnd - performance.timing.domainLookupStart);
	timer.send("" + path + ".SSLConnectionHandshake", performance.timing.connectEnd - performance.timing.secureConnectionStart);
	timer.send("" + path + ".BackendProcess", performance.timing.responseStart - performance.timing.navigationStart);
	timer.send("" + path + ".FrontendProcess", performance.timing.loadEventStart - performance.timing.responseEnd);