Example builds with Docker

Note: for general support questions, please use the mailing list<EMAIL_ADDRESS>This repository's issues are intended for feature requests and bug reports.
It would be helpful for new users if there was example builds with Docker. These would show the full set of commands needed to install as well as providing what might be a useable template for non-HPC runs.
I've tried to do this using the following approach. It seems to install openmpi and netcdf fine, but the compilation fails.
The Dockerfile is:
FROM mitgcm/testreport-images:ubuntu_18_04_villon
WORKDIR /app/MITgcm
ENV MPI_INC_DIR /usr/include/mpi
RUN apt-get update && apt-get install -y vim \
    libopenmpi-dev \
    libnetcdff-dev

I then build and run the container in interactive mode as follows:
DOCKER_BUILDKIT=1 docker build -t mitgcm .
docker run  -it --rm -v $(pwd):/app --user 1001 mitgcm:latest /bin/bash

In the interactive container terminal I then
cd verification/tutorial_deep_convection/build

and then start the compilation process with genmake
/app/MITgcm/tools/genmake2 -mods ../code -mpi -of /app/MITgcm/tools/build_options/linux_amd64_gfortran -rootdir /app/MITgcm

which seems to be ok and then
make depend

which seems to be ok and then
make

which fails with the following long error message:
diagnostics_fill_state.o: In function `diagnostics_fill_state_':
diagnostics_fill_state.for:(.text+0x154): undefined reference to `diagnostics_scale_fill_'
diagnostics_fill_state.for:(.text+0x18a): undefined reference to `diagnostics_scale_fill_'
diagnostics_fill_state.for:(.text+0x386d): undefined reference to `diagnostics_scale_fill_'
diagnostics_fill_state.for:(.text+0x38ac): undefined reference to `diagnostics_scale_fill_'
diagnostics_fill_state.for:(.text+0x3aa4): undefined reference to `diagnostics_scale_fill_'
diagnostics_fill_state.o:diagnostics_fill_state.for:(.text+0x3ae6): more undefined references to `diagnostics_scale_fill_' follow
diagnostics_init_fixed.o: In function `diagnostics_init_fixed_':
diagnostics_init_fixed.for:(.text+0x5): undefined reference to `diagnostics_set_levels_'
diagnostics_init_varia.o: In function `diagnostics_init_varia_':
diagnostics_init_varia.for:(.text+0x58d): undefined reference to `diagnostics_read_pickup_'
diagnostics_out.o: In function `diagnostics_out_':
diagnostics_out.for:(.text+0x116d): undefined reference to `diagnostics_calc_phivel_'
diagnostics_out.for:(.text+0x1407): undefined reference to `diagnostics_interp_vert_'
gad_advection.o: In function `gad_advection_':
gad_advection.for:(.text+0x3eb1): undefined reference to `gad_dst2u1_adv_x_'
gad_advection.for:(.text+0x5cb2): undefined reference to `gad_os7mp_adv_y_'
gad_calc_rhs.o: In function `gad_calc_rhs_':
gad_calc_rhs.for:(.text+0xb10): undefined reference to `gad_dst2u1_adv_x_'
gad_calc_rhs.for:(.text+0x17e1): undefined reference to `gad_os7mp_adv_y_'
gad_calc_rhs.for:(.text+0x3ddf): undefined reference to `gad_u3_adv_x_'
gad_implicit_r.o: In function `gad_implicit_r_':
gad_implicit_r.for:(.text+0x29c2): undefined reference to `gad_u3c4_impl_r_'
gad_ppm_hat_r.o: In function `gad_ppm_hat_r_':
gad_ppm_hat_r.for:(.text+0x35f): undefined reference to `gad_osc_mul_r_'
gad_pqm_hat_r.o: In function `gad_pqm_hat_r_':
gad_pqm_hat_r.for:(.text+0x505): undefined reference to `gad_osc_mul_r_'
salt_fill.o: In function `salt_fill_':
salt_fill.for:(.text+0x15d): undefined reference to `diagnostics_scale_fill_'
mom_fluxform.o: In function `mom_fluxform_':
mom_fluxform.for:(.text+0x4b77): undefined reference to `mom_v_adv_uv_'
mom_fluxform.for:(.text+0x866d): undefined reference to `mom_v_del2v_'
mom_fluxform.for:(.text+0x9014): undefined reference to `mom_u_sidedrag_'
mom_vecinv.o: In function `mom_vecinv_':
mom_vecinv.for:(.text+0x676d): undefined reference to `mom_u_sidedrag_'
write_glvec_rl.o: In function `write_glvec_rl_':
write_glvec_rl.for:(.text+0x1c0): undefined reference to `mds_writevec_loc_'
write_glvec_rs.o: In function `write_glvec_rs_':
write_glvec_rs.for:(.text+0x1c1): undefined reference to `mds_writevec_loc_'
do_fields_blocking_exchanges.o: In function `do_fields_blocking_exchanges_':
do_fields_blocking_exchanges.for:(.text+0x83): undefined reference to `exch_xyz_rl_'
do_fields_blocking_exchanges.for:(.text+0xa4): undefined reference to `exch_xyz_rl_'
do_fields_blocking_exchanges.for:(.text+0xbb): undefined reference to `exch_xyz_rl_'
do_fields_blocking_exchanges.for:(.text+0xfb): undefined reference to `exch_xyz_rl_'
do_oceanic_phys.o: In function `do_oceanic_phys_':
do_oceanic_phys.for:(.text+0x80): undefined reference to `freeze_surface_'
do_oceanic_phys.for:(.text+0x12b): undefined reference to `external_forcing_surf_'
dynamics.o: In function `dynamics_':
dynamics.for:(.text+0x509): undefined reference to `timestep_'
dynamics.for:(.text+0xbb0): undefined reference to `calc_grad_phi_surf_'
forward_step.o: In function `forward_step_':
forward_step.for:(.text+0x3d): undefined reference to `timer_start_'
forward_step.for:(.text+0x5f): undefined reference to `timer_stop_'
forward_step.for:(.text+0x81): undefined reference to `timer_start_'
forward_step.for:(.text+0xa3): undefined reference to `timer_stop_'
forward_step.for:(.text+0xc5): undefined reference to `timer_start_'
forward_step.for:(.text+0xe7): undefined reference to `timer_stop_'
forward_step.for:(.text+0x115): undefined reference to `timer_start_'
forward_step.for:(.text+0x137): undefined reference to `timer_stop_'
forward_step.for:(.text+0x179): undefined reference to `timer_start_'
forward_step.for:(.text+0x19b): undefined reference to `timer_stop_'
forward_step.for:(.text+0x1e5): undefined reference to `timer_start_'
forward_step.for:(.text+0x207): undefined reference to `timer_stop_'
forward_step.for:(.text+0x225): undefined reference to `timer_start_'
forward_step.for:(.text+0x247): undefined reference to `timer_stop_'
forward_step.for:(.text+0x28b): undefined reference to `timer_start_'
forward_step.for:(.text+0x2ad): undefined reference to `timer_stop_'
forward_step.for:(.text+0x2d1): undefined reference to `timer_start_'
forward_step.for:(.text+0x2f3): undefined reference to `timer_stop_'
forward_step.for:(.text+0x307): undefined reference to `timer_start_'
forward_step.for:(.text+0x329): undefined reference to `timer_stop_'
forward_step.for:(.text+0x33d): undefined reference to `timer_start_'
forward_step.for:(.text+0x359): undefined reference to `timer_stop_'
forward_step.for:(.text+0x38d): undefined reference to `timer_start_'
forward_step.for:(.text+0x39b): undefined reference to `monitor_'
forward_step.for:(.text+0x3af): undefined reference to `timer_stop_'
forward_step.for:(.text+0x3fc): undefined reference to `timer_start_'
forward_step.for:(.text+0x421): undefined reference to `timer_stop_'
forward_step.for:(.text+0x435): undefined reference to `timer_start_'
forward_step.for:(.text+0x45a): undefined reference to `timer_stop_'
forward_step.for:(.text+0x51f): undefined reference to `timer_start_'
forward_step.for:(.text+0x54b): undefined reference to `integr_continuity_'
forward_step.for:(.text+0x55f): undefined reference to `timer_stop_'
forward_step.for:(.text+0x600): undefined reference to `timer_start_'
forward_step.for:(.text+0x622): undefined reference to `timer_stop_'
ini_cartesian_grid.o: In function `ini_cartesian_grid_':
ini_cartesian_grid.for:(.text+0x193): undefined reference to `ini_local_grid_'
ini_cori.o: In function `ini_cori_':
ini_cori.for:(.text+0x482): undefined reference to `read_rec_xy_rs_'
ini_cori.for:(.text+0x4aa): undefined reference to `read_rec_xy_rs_'
ini_cori.for:(.text+0xe0f): undefined reference to `read_rec_xy_rs_'
ini_cylinder_grid.o: In function `ini_cylinder_grid_':
ini_cylinder_grid.for:(.text+0x1a0): undefined reference to `ini_local_grid_'
ini_depths.o: In function `ini_depths_':
ini_depths.for:(.text+0x934): undefined reference to `read_rec_xy_rs_'
ini_depths.for:(.text+0xacb): undefined reference to `read_rec_xy_rs_'
ini_depths.for:(.text+0xc3d): undefined reference to `read_rec_xy_rs_'
ini_grid.o: In function `ini_grid_':
ini_grid.for:(.text+0xf43): undefined reference to `ini_spherical_polar_grid_'
ini_salt.o: In function `ini_salt_':
ini_salt.for:(.text+0x5ea): undefined reference to `exch_xyz_rl_'
ini_theta.o: In function `ini_theta_':
ini_theta.for:(.text+0x5fa): undefined reference to `exch_xyz_rl_'
initialise_fixed.o: In function `initialise_fixed_':
initialise_fixed.for:(.text+0xbf): undefined reference to `load_ref_files_'
initialise_fixed.for:(.text+0xeb): undefined reference to `set_ref_state_'
initialise_fixed.for:(.text+0x169): undefined reference to `ini_global_domain_'
initialise_varia.o: In function `initialise_varia_':
initialise_varia.for:(.text+0x4f): undefined reference to `ini_ffields_'
initialise_varia.for:(.text+0x10b): undefined reference to `integr_continuity_'
initialise_varia.for:(.text+0x147): undefined reference to `monitor_'
initialise_varia.for:(.text+0x250): undefined reference to `convective_adjustment_ini_'
load_fields_driver.o: In function `load_fields_driver_':
load_fields_driver.for:(.text+0x31): undefined reference to `timer_start_'
load_fields_driver.for:(.text+0x3f): undefined reference to `external_fields_load_'
load_fields_driver.for:(.text+0x53): undefined reference to `timer_stop_'
main_do_loop.o: In function `main_do_loop_':
main_do_loop.for:(.text+0x30): undefined reference to `timer_start_'
main_do_loop.for:(.text+0x55): undefined reference to `timer_stop_'
momentum_correction_step.o: In function `momentum_correction_step_':
momentum_correction_step.for:(.text+0x213): undefined reference to `calc_grad_phi_surf_'
read_pickup.o: In function `read_pickup_':
read_pickup.for:(.text+0xa1b): undefined reference to `read_rec_3d_rl_'
read_pickup.for:(.text+0xa4c): undefined reference to `read_rec_3d_rl_'
read_pickup.for:(.text+0xa81): undefined reference to `read_rec_3d_rl_'
read_pickup.for:(.text+0xab6): undefined reference to `read_rec_3d_rl_'
read_pickup.for:(.text+0xaeb): undefined reference to `read_rec_3d_rl_'
read_pickup.o:read_pickup.for:(.text+0xb1c): more undefined references to `read_rec_3d_rl_' follow
the_main_loop.o: In function `the_main_loop_':
the_main_loop.for:(.text+0x35): undefined reference to `timer_start_'
the_main_loop.for:(.text+0x51): undefined reference to `timer_stop_'
the_main_loop.for:(.text+0x65): undefined reference to `timer_start_'
the_main_loop.for:(.text+0x9c): undefined reference to `timer_start_'
the_main_loop.for:(.text+0xbd): undefined reference to `timer_stop_'
the_main_loop.for:(.text+0xe9): undefined reference to `timer_stop_'
the_model_main.o: In function `the_model_main_':
the_model_main.for:(.text+0x26): undefined reference to `timer_start_'
the_model_main.for:(.text+0x48): undefined reference to `timer_start_'
the_model_main.for:(.text+0x64): undefined reference to `timer_stop_'
the_model_main.for:(.text+0x9e): undefined reference to `timer_start_'
the_model_main.for:(.text+0xc4): undefined reference to `timer_stop_'
the_model_main.for:(.text+0xd8): undefined reference to `timer_stop_'
the_model_main.for:(.text+0x18c): undefined reference to `timer_printall_'
thermodynamics.o: In function `thermodynamics_':
thermodynamics.for:(.text+0x509): undefined reference to `mon_calc_advcfl_tile_'
thermodynamics.for:(.text+0x609): undefined reference to `mon_calc_advcfl_glob_'
tracers_correction_step.o: In function `tracers_correction_step_':
tracers_correction_step.for:(.text+0xb8): undefined reference to `convective_adjustment_'
collect2: error: ld returned 1 exit status
Makefile:1264: recipe for target 'mitgcmuv' failed
make[1]: *** [mitgcmuv] Error 1
make[1]: Leaving directory '/app/MITgcm/verification/tutorial_deep_convection/build'
Makefile:1257: recipe for target 'fwd_exe_target' failed
make: *** [fwd_exe_target] Error 2

Any suggestions what I need to do?
Thanks

Turns out this was due to a corruption from a previous build not being cleared properly, am closing it now


Update using-saml-for-single-sign-on-to-the-lumen-platform-control-po…

…rtal.md
update KB
@RickCoxDev  not urgent, but please push with next deployment

@brandysmith I'll push it to staging now

@brandysmith I'll push it to staging now


Possible error while fetching data from a Niagara server hosted on HTTPS

Hi,
I am trying to connect to a few Niagara 4 instances using pyhaystack. When I try to connect to the instances hosted on http, it works fine but when I try to connect to a Niagara4 instance hosted on https, it throws an error. I am using the following code to establish a connection:
from pyhaystack.client.niagara import Niagara4HaystackSession
session = Niagara4HaystackSession(uri=niagara_host, username=niagara_user, password=niagara_password)
Should I do something different to connect to a https instance of Niagara4? Just so you know, haystack service has been enabled in this instance since I am able to fetch the data when I execute the URL  niagara-host/haystack/about in the browser. Thanks in advance.

You mention it "throws an error" but don't say which one… I'm guessing possibly a certificate error?
There are a couple of ways around this:

disabling TLS verification altogether (not the wisest idea, but can work): specify http_args=dict(tls_verify=False) in the session constructor arguments (along side the uri)
obtain a copy of the certificate from the remote server, and specify the path to that file; http_args=dict(tls_verify="/path/to/remote.crt") in the session constructor arguments.

Sorry I forgot to mention the exact error. Yes, it was a certificate error indeed. It works fine now after disabling TLS verification. Thanks a lot for your help.
I'll try to get a copy of the certificate from the remote server and use it for TLS verification.


Browser launchable ISO

I booted helloSystem a few times now using qemu. But i don't like cluttering my system with "use once"-vms nor preparing a usb-stick to boot from.
Luckily i just stumbled across this site: https://distrotest.net/index.php
On this site you can spin up a vm with one of the supported distros (on their servers) and connect to it within your browser via noVNC.
The FAQ states that they are willing to support any distro simply by requesting it.
This will drastically lower the barrier for "mere mortals" who just want to get a glimpse of helloSystem.
Cheers!

As https://distrotest.net/ is already offering FreeBSD and GhostBSD, I am somewhat optimistic that it might work for helloSystem. Although under GhostBSD the mouse pointer was not working out of the box in my short test.
Did you ask for helloSystem at<EMAIL_ADDRESS>already?

As https://distrotest.net/ is already offering FreeBSD and GhostBSD, I am somewhat optimistic that it might work for helloSystem. Although under GhostBSD the mouse pointer was not working out of the box in my short test.
Exactly what i was thinking (and experiencing with GhostBSD)

Did you ask for helloSystem at<EMAIL_ADDRESS>already?
I just did and will let you know :)

So I guess we need to figure out why the mouse is not working there.
Can the issue be replicated on a locally-running QEMU, for example?
Do we know more about what they are using for the virtualization, such as the exact settings, so that we can try to reproduce?

Closing this. Please comment here if anyone finds out how to reproduce this without being the server operator of distrotest.net.


refactor: move to ColumnId and Arc<str> as much as possible

Closes #25461
Note: the first three commits on this PR are from https://github.com/influxdata/influxdb/pull/25492
This PR makes the switch from using names for columns to the use of ColumnIds. Where column names are used, they are represented as Arc<str>. This impacts most components of the system, and the result is a fairly sizeable change set. The area where the most refactoring was needed was in the last-n-value cache.
One of the themes of this PR is to rely less on the arrow Schema for handling the column-level information, and tracking that info in our own ColumnDefinition type, which captures the ColumnId.
I will summarize the various changes in the PR below, and also leave some comments in-line in the PR.
Switch to u32 for ColumnId
The ColumnId now follows the DbId and TableId, and uses a globally unique u32 to identify all columns in the database. This was a change from using a u16 that was only unique within the column's table. This makes it easier to follow the patterns used for creating the other identifier types when dealing with columns, and should reduce the burden of having to manage the state of a table-scoped identifier.
Changes in the WAL/Catalog

WriteBatch now contains no names for tables or columns and purely uses IDs
This PR relies on IndexMap for _Id-keyed maps so that the order of elements in the map is consistent. This has important implications, namely, that when iterating over an ID map, the elements therein will always be produced in the same order which allows us to make assertions on column order in a lot of our tests, and allows for the re-introduction of insta snapshots for serialization tests. This map type provides O(1) lookups, but also provides fast iteration, which should help when serializing these maps in write batches to the WAL.
Removed the need to serialize the bi-directional maps for DatabaseSchema/TableDefinition via use of SerdeVecMap (see comments in-line)
The tables map in DatabaseSchema no stores an Arc<TableDefinition> so that the table definition can be shared around more easily. This meant that changes to tables in the catalog need to do a clone, but we were already having to do a clone for changes to the DB schema.
Removal of the TableSchema type and consolidation of its parts/functions directly onto TableDefinition
Added the ColumnDefinition type, which represents all we need to know about a column, and is used in place of the Arrow Schema for column-level meta-info. We were previously relying heavily on the Schema for iterating over columns, accessing data types, etc., but this gives us an API that we have more control over for our needs. The Schema is still held at the TableDefinition level, as it is needed for the query path, and is maintained to be consistent with what is contained in the ColumnDefinitions for a table.

Changes in the Last-N-Value Cache

There is a bigger distinction between caches that have an explicit set of value columns, and those that accept new fields. The former should be more performant.
The Arrow Schema is managed differently now: it used to be updated more than it needed to be, and now is only updated when a row with new fields is pushed to a cache that accepts new fields.

Changes in the write-path

When ingesting, during validation, field names are qualified to their associated column ID

Waiting for ✅ then will merge.


CFNetwork SSLHandshake failed (-9847)

I have been dealing with this bug for a few days and cannot seem to find the root cause. Due to project requirement purposes, I am connecting my application to my server without SSL/TSL, hence a http://url:port/ formatted url. The problem occurs when I start a new SignalR connection after initializing it using HubConnectionBuilder(url:). After starting the connection, the console immediately shows the following errors:
CFNetwork SSLHandshake failed (-9847)
TCP Conn 0x280498bb0 SSLHandshake failed (-9847)
Following these errors the client immediately triggers the "connectionWillReconnect()" callback with error: The operation couldn’t be completed. (SwiftSignalRClient.WebSocketError error 0.)
Oddly enough, the client then attempts to reconnect and always connects successfully on the second attempt, triggering the "connectionDidOpen" callback.  This occurs both when connecting to my localhost and an in house dev server, both of which without SSL/TLS. SSL/TLS enabled URL's work as expected.
With this said, I believe I have all my ATS configuration setup properly, and have used the tips from other closed issues to enable a self signed ssl connection. I say this because I do end up successfully connecting after the first try. I have done a fair share of research on the two errors above, but found minimal resources online. Granted, I am not a networking expert, but I don't understand why an SSL Handshake would be attempted in this scenario.
Is there something I am missing? I understand this could be a system error too, out of our control. I'd appreciate any help.
Notes:

Setting httpConnectionOptions.skipNegotiation = true causes the two errors above to repeat over and over again until connectionDidFailToOpen is triggered. Currently have it set to false.
I have _allowSelfSignedSSL = true. Setting it to false does not work.
errSSLRecordOverflow = -9847,    /* record overflow */
version 0.8.0

I don't know why SSL would matter here as you are not using https. If you look at the test server and all the tests in this repo they don't use https and have no problem connecting to the server. I would recommend double checking you server configuration and whether the port you are using accepts non-secure http requests. One relatively easy thing to do would be to send a negotiate request using curl/postman/browser and see if it works. This should tell you if the problem is on the server or on the client side. You could also try creating a standalone repro where you would send the same negotiate using URLSession. This should tell you if the problem is with the SignalR client or not.  If you are using a simulator maybe this is an issue.
Having said that - version 0.8.0 uses a third party WebSocket library that had not been maintained for some time. In version 0.9.0 I moved to URLSessionWebSocketTask which is part of the Apple's HTTP Stack. This means that prior to version 0.9.0 the behavior and configuration between HTTP and WebSockets were different (e.g. negotiate request failed in a different way than webSockets). Unfortunately, this  also means that debugging any issues around WebSockets for versions below 0.9.0 is not time well spent. I recommend upgrading to the latest version (however I have a feeling that if you do you will see the same error across the board)

That was my assumption as well, didn't think SSL should be critical issue here. I took your advice and tested the negotiation request using an HTTP client and it succeeded without issue. This seems to be a weird edge case bug, being that it does reconnect right after the initial failure. I'd hope to assume that the reconnect would fail completely if there was some critical misconfiguration on the server end, but I'll double check with my team. I will upgrade to the latest version to see if that helps at all.
Thank you.

Can there be something (a proxy?) between the client and the server? It feels like something is interfering with the traffic. It would be interesting to see what happens after you upgrade. Also, you could try creating a standalone repro by sending the negotiate request using this code:
https://github.com/moozzyk/SignalR-Client-Swift/blob/3c8b5acd3cfbbadb971415c8fc9c54d122979c25/Sources/SignalRClient/DefaultHttpClient.swift#L40-L56

I am running my app (or rather attempting to run) over a satellite wifi connection. It is still early in development. Everything between the satellite wifi terminal in which the app is connected to, and our servers is mostly a black box to me. That being said, I am simulating this connection under a normal wifi connection and even a local connection directly to my Mac and the error persists. I can give the code above a try.
Strangely enough, I attempted to upgrade to 0.9.0 and it completely broke the reconnect logic in the application. For example, in 0.8.0, the event of losing internet connection immediately triggers the "connectionWillReconnect" callback.
When running with 0.9.0, connectionWillReconnect is not triggered in the event of dropped internet connection. Is there additional reconnect logic required for this newer version?

I guess I kind of expected this to happen. As I said, in 0.8.0 webSockets were implemented using a separate stack and I am not very convinced it handled secure webSockets correctly. Now, both http and webSockets are using the same, Apple, stack so webSockets are likely failing due to the same reason as the negotiate http request did before.
For localhost there should not be anything in the middle. I don't know why any certificate would be involved non https/wss protocols - I have not seen anything like this and the tests are running over non-secure connection. I also have not seen anyone report a similar issue.


sfLIU - Implement React Router

Implement React Router for page routing in the frontend.

LOL react router is kinda annoying right now because they changed everything so all the documentation online is messed up

LOL react router is kinda annoying right now because they changed everything so all the documentation online is messed up. Use VERSION 5

I got it working with v6 no worries.


Linter warning

I know it's silly, but it makes me nervous to see this warning every time I use the extension. I've been told that this website explains how to fix it, but I don't understand where or how to do it so I can't help.

https://defold.com/manuals/extensions-script-api/

I done this with chatGPT xD
extension:
name: defos
library_name: "defos"
module_name: "defos"
log_domain: "defos"
platforms:
- DM_PLATFORM_OSX
- DM_PLATFORM_WINDOWS
- DM_PLATFORM_HTML5
- DM_PLATFORM_LINUX
files:
headers:
- "dmsdk/sdk.h"
- "defos_private.h"
sources:
- "src/defos.cpp"
lua_bindings:
functions:
- name: disable_maximize_button
returns: void
description: "Disable the maximize button on the window."
  - name: disable_minimize_button
    returns: void
    description: "Disable the minimize button on the window."

  - name: disable_window_resize
    returns: void
    description: "Disable window resizing."

  - name: get_window_size
    returns: [number, number, number, number]
    description: "Get the current window size (x, y, width, height)."

  - name: set_window_size
    parameters:
      - name: x
        type: float
      - name: y
        type: float
      - name: width
        type: float
      - name: height
        type: float
    returns: void
    description: "Set the window size."

  - name: toggle_fullscreen
    returns: void
    description: "Toggle fullscreen mode."

  - name: set_fullscreen
    parameters:
      - name: fullscreen
        type: boolean
    returns: void
    description: "Set the fullscreen mode."

  - name: is_fullscreen
    returns: boolean
    description: "Check if the window is in fullscreen mode."

  - name: set_window_title
    parameters:
      - name: title
        type: string
    returns: void
    description: "Set the window title."

  - name: toggle_maximized
    returns: void
    description: "Toggle maximized window state."

  - name: set_maximized
    parameters:
      - name: maximized
        type: boolean
    returns: void
    description: "Set the maximized window state."

  - name: is_maximized
    returns: boolean
    description: "Check if the window is maximized."

  - name: toggle_always_on_top
    returns: void
    description: "Toggle the window always on top."

  - name: set_always_on_top
    parameters:
      - name: always_on_top
        type: boolean
    returns: void
    description: "Set the window always on top."

  - name: is_always_on_top
    returns: boolean
    description: "Check if the window is always on top."

  - name: minimize
    returns: void
    description: "Minimize the window."

  - name: activate
    returns: void
    description: "Activate the window."

  - name: set_console_visible
    parameters:
      - name: visible
        type: boolean
    returns: void
    description: "Set the visibility of the console window."

  - name: is_console_visible
    returns: boolean
    description: "Check if the console window is visible."

  - name: set_cursor_visible
    parameters:
      - name: visible
        type: boolean
    returns: void
    description: "Set the visibility of the cursor."

  - name: is_cursor_visible
    returns: boolean
    description: "Check if the cursor is visible."

  - name: get_cursor_pos
    returns: [number, number]
    description: "Get the current cursor position (x, y)."

  - name: set_cursor_pos
    parameters:
      - name: x
        type: float
      - name: y
        type: float
    returns: void
    description: "Set the cursor position."

  - name: set_cursor_locked
    parameters:
      - name: locked
        type: boolean
    returns: void
    description: "Set the cursor locked state."

  - name: is_cursor_locked
    returns: boolean
    description: "Check if the cursor is locked."

  - name: get_displays
    returns: array
    description: "Get information about the connected displays."

  - name: get_display_modes
    parameters:
      - name: display_id
        type: string
    returns: array
    description: "Get available display modes for a display."

  - name: get_current_display_id
    returns: string
    description: "Get the ID of the current display."

  - name: on_mouse_enter
    parameters:
      - name: callback
        type: function
    returns: void
    description: "Set a callback function for when the mouse enters the window."

  - name: on_mouse_leave
    parameters:
      - name: callback
        type: function
    returns: void
    description: "Set a callback function for when the mouse leaves the window."

  - name: on_click
    parameters:
      - name: callback
        type: function
    returns: void
    description: "Set a callback function for mouse clicks."

  - name: on_interaction
    parameters:
      - name: callback
        type: function
    returns: void
    description: "Set a callback function for user interaction."

initialization:
lua_function: "LuaInit"
c_function: "InitializeDefos"
cleanup:
lua_function: "LuaCleanup"
c_function: "FinalizeDefos"

It seems that writing a file named defos.script_api anywhere in the project and putting the following content solves it:
- name: defos
  type: table
  desc: The Defos extension provides functions to manage windows, cursors, displays, and events in the Defold game engine. It allows for advanced control over window properties, mouse events, and display configurations.

  members:
  - name: disable_maximize_button
    type: function
    desc: Disables the maximize button on the window.
    examples:
    - desc: Disables the maximize button, preventing users from maximizing the window.

Many thanks to Manga for the solution

I did a PR


Outdated Makefile not generating Glyhphs

Apparently the Makefile for this project is outdated in regards with the new SDK, more specifically there is a problem with generating the needed glyphs.c/glyphs.h.
The issue comes from using log commands in the SDK without referring to Makefile.definitions of log which causes GNU make to break and just output

file is up to date

with no error or anything from that regards, i played with the makefile and was able to generate the needed glyphs by using the terminal shell to execute instead of log

can u be more specific?
I can see that src/glyphs.h and src/glyphs.c are empty files...how did u fix it?

Was anyone able to find a workaround for this?

can't remember what I did, but i fixed it


Potential security vulnerability in the lz4 C library.

Hi, @corneadoug, @Reamer , I'd like to report a vulnerability dependency in org.apache.zeppelin:zeppelin-cassandra:0.10.1.
Issue Description
I noticed that org.apache.zeppelin:zeppelin-cassandra:0.10.1 directly depends on org.lz4:lz4-java:1.6.0 in the pom. However, as shown in the following dependency graph, org.lz4:lz4-java:1.6.0 sufferes from the vulnerabilites which the C library lz4(version:1.9.1) exposed, containing a high severity CVE: CVE-2019-17543.
Dependency Graph between Java and Shared Libraries

Suggested Vulnerability Patch Versions
org.lz4:lz4-java:1.7.0 (>=1.7.0) has upgraded the vulnerable C library lz4 to the patch version 1.9.2.
Java build tools cannot report vulnerable C libraries, which may induce potential security issues to many downstream Java projects. Could you please upgrade this vulnerable dependency?
Thanks for your help~
Best regards,
Helen Parr

Thank you for your contribution and welcome :-)


[Bug report] Missing jdbc-driver, jdbc-user, and jdbc-password parameters in catalog creation request payload causes 400 error

Version
main branch
Describe what's wrong
When creating a catalog with type: relational and provider: Apache Iceberg, the Gravitino UI fails to include the jdbc-driver, jdbc-user, and jdbc-password parameters in the request payload. As a result, the backend returns a 400 error, indicating that jdbc-driver is null and invalid.
Error message and/or stacktrace
The error message displayed in the UI is as follows:

AxiosError: Request failed with status code 400
null in jdbc-driver is invalid. The value can't be blank

How to reproduce

Go to the Gravitino UI and open the "Create Catalog" dialog.

Set the following values:

Name: [whatever you want]
Type: relational
Provider: Apache Iceberg

Under the "Properties" section, set the following:

catalog-backend: jdbc
uri: jdbc:postgresql://[host]:[port]/[db]
warehouse: s3://[bucket]/[prefix]
jdbc-driver: org.postgresql.Driver
jdbc-user: [username]
jdbc-password: [password]

Click on "Create."

Observe the 400 error in the console or the UI error message:
- null in jdbc-driver is invalid. The value can't be blank

Additional context
No response

dup with https://github.com/apache/gravitino/issues/5328


[MERGE AFTER #14] Fix race conditions on reaction roles

This PR was branched from the #14 so this commit still lingers.
It replaces pretty much the whole reaction handling logic with set operations within asyncio locks.
This prevents subsequent reactions from stepping on each other, saves on unnecessary lookups and checks, and most importantly restricts itself to one API call per reaction event.
The logic here follows the docstring of the methods exactly, so if the previous code had any changes that weren't documented, please let me know in the reviews.
Role IDs were copied from existing members since as a mere plebian I do not have access to the role list.

Great, we needed that functionally, will test and review it soon.

LGTM


codec/h264: fix potential segfault and mf_init

@nfedera looks like MFCreateDXGIDeviceManager isn't used at all.

@bmiklautz I've noticed that too. Will ask around to be sure before nuking it.


zsh-forgit: 23.05.0 -> 23.06.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/wfxr/forgit/releases.
meta.description for zsh-forgit is: A utility tool powered by fzf for using git interactively
meta.homepage for zsh-forgit is: https://github.com/wfxr/forgit
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 23.06.0 with grep in /nix/store/61z78n6r4y0a5csn21gjyrddpm3d5aa4-zsh-forgit-23.06.0
found 23.06.0 in filename of file in /nix/store/61z78n6r4y0a5csn21gjyrddpm3d5aa4-zsh-forgit-23.06.0

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

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
zsh-forgit

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/61z78n6r4y0a5csn21gjyrddpm3d5aa4-zsh-forgit-23.06.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/61z78n6r4y0a5csn21gjyrddpm3d5aa4-zsh-forgit-23.06.0
ls -la /nix/store/61z78n6r4y0a5csn21gjyrddpm3d5aa4-zsh-forgit-23.06.0/bin

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

1 package built:

zsh-forgit

Maintainer pings
cc @deejayem for testing.

@ofborg eval
ofborg just had an internal error, probably some github api failed


Do dry run of releases within CI

Previously we've had to fix issues and do a re-release because of issues with binaries. We should dry run this as much as possible in PRs with release tags (example) so that we minimize chance of errors when we draft an actual release.

For posterity, we've had many issues enabling dry run for publishing. E.g. for multiple crates that depend on each other, it doesn't work for anything but the first crate since the new version of the first crate isn't published.


Update README.md

Typo on the instructions related to the SSL certificate

Thanks a lot for the changes


Feature request: confluent_users data source

A confluent_users data source to retrieve a list of users will allow me to determine which users exists so they can be allocated appropriate ACLs as part of an automated RBAC system.

Thanks for creating an issue @laurence-hubbard!
I wonder what's the use case for using users over service accounts?

Each service account represents an application programmatically accessing Confluent Cloud. You can manage application access to Confluent Cloud by using service accounts. Permissions can be specified using ACLs and role bindings tied to a specific service account. ACLs and role bindings for service accounts are set by an administrator or another user with a similar role within the organization.

@linouk23 the use case is for managing human access to the Confluent UI in an automated way. This allows us to set-up permissions based on groups in a user system which is not managed by Confluent. We have to make the user accounts in Confluent manually as there is no automated provisioning enabled for that but then the role bindings are automated.
We are managing service accounts independently - as per needed strongly coupled with other infrastructure needed for a specific application.

Update: we released new confluent_users data source in a Preview lifecycle stage (https://github.com/confluentinc/terraform-provider-confluent/issues/203).


Custom rule that requires type checking throwing "requires type checking" error

New to TSLint so let me know if I'm doing something wrong...
Bug Report

TSLint version: 3.15.1
TypeScript version: 2.0.0
Running TSLint via:  CLI

with tslint.json configuration:
{
  "_extends": "tslint:latest",
  "rules": {
    "SetTimeoutString": true
  },
  "rulesDirectory": [
    "C:/dev/seccheck/rules/"
  ]
}

SetTimeoutStringRule.ts:
import * as ts from "typescript";
import * as Lint from "tslint/lib/lint";

export class Rule extends Lint.Rules.TypedRule {
    public static FAILURE_STRING = "setTimeout forbidden with string as param1.";

    public applyWithProgram(sourceFile: ts.SourceFile, program: ts.Program): Lint.RuleFailure[] {
        return this.applyWithWalker(new NoSetTimeoutWithStringWalker(sourceFile, this.getOptions(), program));
    }
}

// The walker takes care of all the work.
class NoSetTimeoutWithStringWalker extends Lint.ProgramAwareRuleWalker {
    public visitCallExpression(node: ts.CallExpression) {
        // irrelevant implementation
    }
}

Actual behavior
Error: SetTimeoutString requires type checking
    at Rule.TypedRule.apply (C:\dev\seccheck\node_modules\tslint\lib\language\rule\typedRule.js:14:15)
    at Linter.lint (C:\Users\trgau\AppData\Roaming\npm\node_modules\tslint\lib\tslint.js:68:37)
    at processFile (C:\Users\trgau\AppData\Roaming\npm\node_modules\tslint\lib\tslint-cli.js:138:29)
    at C:\Users\trgau\AppData\Roaming\npm\node_modules\tslint\lib\tslint-cli.js:177:74
    at Array.forEach (native)
    at Object.<anonymous> (C:\Users\trgau\AppData\Roaming\npm\node_modules\tslint\lib\tslint-cli.js:177:41)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)

Expected behavior
No errors. I tried using built-in rules that require type checking, and they seem to work fine. In tslint.js, the following if-condition is failing:
if (this.program && rule instanceof typedRule_1.TypedRule)

Specifically rule instanceof typedRule_1.TypedRule.

Sorry for the delayed response @trevorsg - did you figure this out yet?

Hey @JKillian, haven't looked at it anymore. I am starting on a new project that will involve custom TSLint rules that use the type checker, so I will let you know if I run into a similar problem.


(ElasticSearch) Add override for initial_master_nodes and seed_hosts

Signed-off-by: Tuan Anh Nguyen<EMAIL_ADDRESS>This reopens https://github.com/elastic/helm-charts/pull/1573 to fix https://github.com/elastic/helm-charts/issues/1268
Use case: we want to setup one ElasticSearch cluster spanning multiple k8s clusters, so customizing seed_hosts is required.
How can we get this change backported to 7.17?

[x] Chart version not bumped (the versions are all bumped and released at the same time)
[x] Updated template tests in ${CHART}/tests/*.py

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@jmlrt any chance to review this before the next chart release?


Fix the bug with respect to scipy 1.5

The LP optimization fails when scipy upgrades to 1.5 (#329).  The optimization code is changed to support the interface of Scipy 1.5 while keeping backward compatibility.

Codecov Report

Merging #330 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #330   +/-   ##
=======================================
  Coverage   77.44%   77.45%
=======================================
  Files          97       97
  Lines        4668     4670    +2
=======================================
+ Hits         3615     3617    +2
  Misses       1053     1053

Impacted Files
Coverage Δ

GPyOpt/core/evaluators/batch_local_penalization.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

Thanks for a quick fix! Just a sanity check: have you tried it with 1.4 and 1.5 to make sure it works for both versions?

Yes, it works for both versions.


Increase the memory for the Recommended package

should be 16 GB

done and waiting for review.

Work Completed:
pr comments applied.

Is this also to be applied to the new playground?

Is this also to be applied to the new playground?

yes, isn't applied?

yes, isn't applied?

No, I couldn't find it, only the old resource packages.

Work Completed:

All solutions updated here https://github.com/threefoldtech/info_grid/pull/339.
Waiting for review.

Merged in the info_grid

Verified:

Devnet
ec2ed3d


utility name is inconsistant: shig or ssign

Greetings,
Found this handy utility yesterday, is a very handy utility :)
A small UX issue that I realized is: the --help and diagnose message declare this utility as ssign, but the go package name (go install), repository name, and README file all use shig as utility name instead.  I think it'd be better to keep them consistant.
(IMO, the name ssign is more rememberable than shig, though both namespace are seemingly unused on repology.org and hence likely safe to use if distribution packaging is a goal)
https://repology.org/project/ssign/versions
https://repology.org/project/shig/versions

Thank you for the heads up - I've refactored all of these to match the repo name.


Fix Laravel Octane

Hi 👋
I watched how Telescope fights it. Therefore, I fixed it here as well
#9

Thanks a lot, @VictoRD11 ! 💪 Will tag a new release for this.


[CI] creat issue on go-sdk if modules/structs/* are touched on merge to master

come up in https://gitea.com/gitea/go-sdk/issues/196#issuecomment-104000
if a PR is merged and it touches structs then a issue on https://gitea.com/gitea/go-sdk should be open
the contenc is a list of touched files ... wich need to be checked & updated ...
this help us to stay on track for needed changes to go-sdk

This could be a new drone plugin

proposal how it could look like: https://gitea.com/gitea/go-sdk/issues/201
and admin rename avterwards ... (this issue was created manualy)


Libplacebo errors when using other operators than dynamic

Hello,
If I set glsl-shader=~/shaders/hdr-toys/tone-mapping/dynamic.glsl to bt2390 for [bt.2100-pq] I get bunch of errors in the console. Other operators seem to yield errors too.
Attached an error log file, and the mpv config file with renamed extension to .txt so it can be uploaded here.
mpv version: 0.35.1
libplacebo version: v5.264.0
hdr-toys-bt2390-errors.log
mpv.txt
Thank you.

Other operators

Does reinhard works?

[vo/gpu-next] opengl cocoa backend is deprecated, use vo=libmpv instead

I don't know about how mpv works on macos, try gpu-api=vulkan (If it works).

VO: [gpu-next] 4096x2160 videotoolbox[p010]

Try hwdec=auto-safe (Although I don't think it has anything to do with it).

Does reinhard works?

Sadly no, similar errors, here's the first few lines:
[vo/gpu-next/libplacebo] shader compile log (status=0): ERROR: 0:73: Initializer not allowed [vo/gpu-next/libplacebo] ERROR: 0:74: Initializer not allowed

[vo/gpu-next] opengl cocoa backend is deprecated, use vo=libmpv instead

I don't know about how mpv works on macos, try gpu-api=vulkan (If it works).

In general, mpv/macOS works ok with vo=gpu (but not great for HDR movies on SDR monitors), its only with gpu-next which uses "apparently" the deprecated cocoa backed that may have issues. Only gpu-api=opengl works.

VO: [gpu-next] 4096x2160 videotoolbox[p010]

Try hwdec=auto-safe (Although I don't think it has anything to do with it).

It falls back to using hardware decoding (videotoolbox) and still errors.
I guess maybe open another issue in libplacebo ?

maybe open another issue in libplacebo ?

Yes, I think.


lz4: 1.9.1 -> 1.9.2

Motivation for this change
Fixes: https://nvd.nist.gov/vuln/detail/CVE-2019-17543 (see also #73666)
Release notes: https://github.com/lz4/lz4/releases/tag/v1.9.2
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@alyssais do you think this is worth backporting to 19.09 & 20.03? Upstream maintainer describes this as slim opportunity for out-of-bound write vs. CVE score 8.1 vs. lot of rebuilds.

Backported.  The release notes sound safe.  I see a regression reported but hopefully it won't really affect us :man_shrugging:


DCOS_OSS-526: fix(package repository settings): remove url validation on add

This removes the regex validation of the url field and lets rather the backend decide if a url is
valid or not.
Close DCOS_OSS-526
Testing
To Test this:

go to Settings > Package Repository
Click the +
Add a random Repository Name
Add a url like http://<IP_ADDRESS>:8080
Add a priority 1
Click Add

Now you should be presented with the error from the server instead of the error on the input field.
Trade-offs
A Trade off is that we are showing the error from the Server which can be unexpected long for example with the url http://<IP_ADDRESS>:8080 it will show some long message which is not really helpful.

Screenshots
Before:

After:

Failing tests are legit.

The error message for the original stated case from the ticket is not very helpful.
The issue was that when trying to add an URL that is not a valid repo it should say something like http://soandso.com is not a valid Universe repo. Shall we forward that to the Catalog team?

I guess so, we need to ask the server if the repository is reachable. As you mentioned the message is not as helpful we should ask them to give us a better message.

:tada: This PR is included in version 2.19.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Unable to create Windows binary on OSX

I cannot create a Windows binary (32 or 64) from OSX. I always receive the same error message in line 3 of the output:
3: Edit Windows executable { [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }
I have tried multiple versions of NW.JS.
The OSX package works just fine.

Sorry posted to the wrong repo.


nsmc migration files

nsmc migration files

I don't think that you should really be adding these migration config files into config/install - shouldn't you be creating a an 'nsmc_migrations' module and putting them in there ?


Async select options

When set people https://github.com/mseemann/angular2-mdl-ext/blob/master/src/e2e-app/app/select/select.component.ts#L23 async, i.e.
  people: any[] = [];

  ngOnInit() {
    // ...
    setTimeout(() => {
      this.people = null;
      this.people = [
        {id: 1, name: 'Bryan Cranston'},
        {id: 2, name: 'Aaron Paul'},
        {id: 3, name: 'Bob Odenkirk'},
        {id: 4, name: 'Dean Norris'},
        {id: 5, name: 'Jonathan Banks'},
        {id: 6, name: 'Seal Henry Olusegun Olumide Adeola Samuel'},
        {id: 7, name: 'Rami Malek'},
        {id: 8, name: 'Christian Slater'},
        {id: 9, name: 'Martin Wallström'},
        {id: 10, name: 'Angela Sarafyan'},
        {id: 11, name: 'Robert Pattinson'},
        {id: 12, name: 'Billy Bob Thornton'}
      ];
    }, 250);
  }

then initial selection of is not rendered.
Dont know how to fix it yet.

right. there are some problems. the first one is that we use changeDetection: ChangeDetectionStrategy.OnPush in the select example. OnPush is still an issue if one uses ControlValueAccessor (https://github.com/angular/angular/issues/10816). Thats why optionComponents: QueryList<MdlOptionComponent> did not fire on changes. The next problem is:
    public ngAfterViewInit() {
        this.bindOptions();
        this.renderValue(this.ngModel);
        this.optionComponents.changes.subscribe(() => this.bindOptions());
    }

I think  this.renderValue(this.ngModel); should be part of the bindOptions function

published as<EMAIL_ADDRESS>


[Request] --verbosity feature that allows for silencing echo outputs

It would be nice to be able to run this command in "silent" mode somehow so that it wouldn't always log out to the stdout via the click echo function.

I'll do --silent for consistency with sqlite-utils: https://sqlite-utils.datasette.io/en/stable/cli-reference.html

I added it to the shot-scraper shot, pdf and html commands.

And the shot-scraper multi command too.


Compiling Error Message

Any idea how to fix this problem? I come across this issue every single time I try to compile the files... Thank you!

Currently not compatible with 32 bit systems . Try running on 64 bit

Then it must be go installation issue . Ensure that the Go environment is set up correctly for 64-bit compilation. You can check this by running go env in the command line and looking for the GOARCH variable. It should be like amd64 or arm64 for 64-bit compilations.

Okay we aren't getting that error message anymore. For what ever reason golang finally installed 64 bit instead of 32 bit this time. So I have ran those commands but I still dont see any compiled files under C:\Program Files\Go\bin so what final step am I missing?

From the root dmgcoin folder run 'go install . ./cmd/...'


Output filename not configured.

bhautik@bhautik-Inspiron-3537 ~/Desktop/tmcpro/bank/angular $ npm run build

><EMAIL_ADDRESS>build /home/bhautik/Desktop/tmcpro/bank/angular
> NODE_ENV=production node node_modules/.bin/webpack && cp views/index.ejs dist/index.ejs

webpack 1.13.0
Usage: https://webpack.github.io/docs/cli.html

Options:
  --help, -h, -?
  --config
  --context
  --entry
  --module-bind
  --module-bind-post
  --module-bind-pre
  --output-path
  --output-file
  --output-chunk-file
  --output-named-chunk-file
  --output-source-map-file
  --output-public-path
  --output-jsonp-function
  --output-pathinfo
  --output-library
  --output-library-target
  --records-input-path
  --records-output-path
  --records-path
  --define
  --target
  --cache                                                                                [default: true]
  --watch, -w
  --watch which closes when stdin ends
  --watch-aggregate-timeout
  --watch-poll
  --hot
  --debug
  --devtool
  --progress
  --resolve-alias
  --resolve-loader-alias
  --optimize-max-chunks
  --optimize-min-chunk-size
  --optimize-minimize
  --optimize-occurence-order
  --optimize-dedupe
  --prefetch
  --provide
  --labeled-modules
  --plugin
  --bail
  --profile
  -d                                    shortcut for --debug --devtool sourcemap --output-pathinfo
  -p                                    shortcut for --optimize-minimize
  --json, -j
  --colors, -c
  --sort-modules-by
  --sort-chunks-by
  --sort-assets-by
  --hide-modules
  --display-exclude
  --display-modules
  --display-chunks
  --display-error-details
  --display-origins
  --display-cached
  --display-cached-assets
  --display-reasons, --verbose, -v

Output filename not configured.

npm ERR! Linux 3.13.0-24-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>build: `NODE_ENV=production node node_modules/.bin/webpack && cp views/index.ejs dist/index.ejs`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script 'NODE_ENV=production node node_modules/.bin/webpack && cp views/index.ejs dist/index.ejs'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     NODE_ENV=production node node_modules/.bin/webpack && cp views/index.ejs dist/index.ejs
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/bhautik/Desktop/tmcpro/bank/angular/npm-debug.log

Can you include your webpack configuration? It's hard to say anything conclusive without.

I include this config
const config = {
  entry: './router.js',
  output: {
    path: __dirname + '/dist',
    filename: 'bundle.js'
  },

Do you have module.exports = config; somewhere? Make sure your configuration exports the structure correctly and is named webpack.config.js. If it's named something else, pass it using --config.
There's not enough info to say anything more.

Now, i get this error
bhautik@bhautik-Inspiron-3537 ~/Desktop/tmcpro/bank/angular $ npm run build

><EMAIL_ADDRESS>build /home/bhautik/Desktop/tmcpro/bank/angular
> webpack

<--- Last few GCs --->

   81220 ms: Scavenge 1387.2 (1457.8) -> 1387.2 (1457.8) MB, 0.9 / 0 ms (+ 0.7 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
   82081 ms: Mark-sweep 1387.2 (1457.8) -> 1386.9 (1457.8) MB, 861.4 / 0 ms (+ 1.8 ms in 2 steps since start of marking, biggest step 1.0 ms) [last resort gc].
   82890 ms: Mark-sweep 1386.9 (1457.8) -> 1386.8 (1457.8) MB, 809.0 / 0 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x347b63ae3ac1 <JS Object>
    1: _parseMappings(aka SourceMapConsumer_parseMappings) [/home/bhautik/Desktop/tmcpro/bank/angular/node_modules/webpack-core/node_modules/source-map/lib/source-map/source-map-consumer.js:~416] [pc=0x105f06cdee69] (this=0x1729bba474d9 <a BasicSourceMapConsumer with map 0xcf2ccc0bf81>,aStr=0x347b63aad811 <String[5]: AAOqB>,aSourceRoot=0x347b63a04101 <null>)
    2: /* anonymous */ [/home/bhauti...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Aborted

npm ERR! Linux 3.13.0-24-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>build: `webpack`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script 'webpack'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/bhautik/Desktop/tmcpro/bank/angular/npm-debug.log

It literally ran out of memory. Can you try dropping something like sourcemaps from the build? I'm not sure if there's much we can do about memory usage here.

@bebraw thanks

If you have further questions, feel free to use Stack Overflow for that.

@bebraw Now, i get this error
bhautik@bhautik-Inspiron-3537 ~/Desktop/tmcpro/bank/angular $ npm run build --display-error-details

><EMAIL_ADDRESS>build /home/bhautik/Desktop/tmcpro/bank/angular
> webpack

[BABEL] Note: The code generator has deoptimised the styling of "/home/bhautik/Desktop/tmcpro/bank/angular/node_modules/babel-plugin-add-module-exports/node_modules/babel-template/node_modules/babylon/index.js" as it exceeds the max of "100KB".

Ok. It's basically pulling Babel to your bundle if I'm interpreting that right. Could you try a tool like https://chrisbateman.github.io/webpack-visualizer/ ? Also, as mentioned, Stack Overflow could work if you can provide enough info there.

this line ( first line )
const config = {
should be
module.exports = {


UI says "Trying to reconnect..." forever

Console logs this error:
WebSocket connection to 'wss://api.k8s-dev.kyanisecure.com/api/v1/proxy/namespaces/monitoring/servic…opology/containers/ws?t=5s&&system=application&stopped=running&pseudo=hide' failed: WebSocket opening handshake was canceled
I am running weavescope on a kubernetes cluster with 3 masters and 6 nodes. I could be wrong but it seems like this happens whenever there is a change to the cluster like a new node spinning up or down. If I completely destroy all of the weavescope pods and create them again it starts to work again.
If I try the same page in incognito it works fine.
Looking at the probe logs I see two errors:
Error fetching app details...
Error doing publish for...

@tskinn How are you connecting to the UI? Is the UI publicly accesible? are you using kubectl port-forward? are you using kubectl proxy?

@tskinn what browser were you using?

I am using chrome Version 53.0.2785.143 (64-bit).
I connect to the UI through the kubernetes api which requires basic auth.
For example the url is https://mykubernetescluster.com/api/v1/proxy/namespaces/default/services/weavescope-app:app/

What kubernetes version are you using?
We've found problems connecting through kubectl proxy ( https://github.com/kubernetes/kubernetes/issues/25126 ) and I vaguely recall that we had the same problem when connecting directly.
Can you try to connect using kubectl port-forward ?

Kubernetes version 1.4.1
Connecting through kubectl port-forward is flaky. It connects but doesn't show all nodes/info and is very slow.
Going through the k8s api is much faster and accurate when it isn't "trying to reconnect". I will try to get better steps to recreate the problem.

Going through the k8s api is much faster and accurate when it isn't "trying to reconnect". I will try to get better steps to recreate the problem.

Thanks. Would you be willing to try testing open access to Scope to discard a problem with the API server? (using whatever extra security measures you need to make you comfortable to do it, I suggest --probe.no-controls when launching the probes).

If I try the same page in incognito it works fine.

That's odd, can you try removing the scope cookies and see if that helps? Are you connecting to other Scope sites?

I haven't experienced this issue again. I've since set up an AWS ELB over tcp and it works like a charm. When I was experiencing the issue I was accessing two different k8s clusters each running scope at the same time. Maybe that had something to do with it. Anyways I think we can close this issue.


Land Buy Calculations

We have to implement the price limitation of 2B/purchase that the game seems to have.

@Ardenian this could also be pretty simple actually - if you want to have a look?


TimeDistributed(Flatten()) does not support masking

System information.
TensorFlow version: 2.7.0.
Describe the feature and the current behavior/state.
I hope the TimeDistributed(Flatten()) can support masking.
My inputs are DNA sequences with variable lengths, where each base is a “timestep”. For each timestep (i.e. each base), I also use the 5-bases’ segment before the current base as a feature. So this is a hierarchical time series. Thus, I use the TimeDistributed(LSTM()) to process the 5-bases’ segment for each timestep, and its output is concatenated with other features and then fed into a not-time-distributed higher-level LSTM. Since the DNA sequences' lengths vary, I pad and mask the sequences to a fixed length. I need to use the TimeDistributed(Flatten()) to flatten the output from the TimeDistributed(LSTM()) in order to feed it into a higher-level LSTM. So I have the following layers:
hier_lstm = TimeDistributed(LSTM(16, return_sequences=True))(masked_input)
flattened = TimeDistributed(Flatten())(hier_lstm)

For example, the masked_input has the shape (10, 60, 5, 4), where the DNA sequence length is 60, and the 5-bases’ segment for each base in the sequence is one-hot encoded for 4 base-letters. Then, the hier_lstm has the shape (10, 60, 5, 16). I need to flatten the last two dimensions of hier_lstm to turn it into 3D, such that it can be concatenated with other features (3D) and then fed into a higher-level LSTM.
However, TimeDistributed(Flatten())(hier_lstm) threw the following errors:
TypeError: Layer flatten does not support masking, but was passed an input_mask: tf.Tensor(

I think it would be very useful for the TimeDistributed(Flatten()) to support masking, since the applications like what I described here need to use the TimeDistributed(Flatten()) with masking when sequence lengths vary.
Since the current TimeDistributed(Flatten()) does not support masking, I was wondering if there is any alternative way in Keras to solve my problem here--- to flatten the last two dimensions and turn it into 3D with masking support? I would greatly appreciate your advice.
Thank you very much!

Hi, thanks for reporting the issue! Generally Flatten() will destroy the mask, because it no longer maintains the sequence dimension. Can I ask why you need to keep mask after calling Flatten()?

Hello!
Thank you for your response!
Actually, I need to keep the mask after calling the TimeDistributed(Flatten()) rather than the standalone Flatten().
My inputs are DNA sequences with variable lengths (each base is a “timestep”). For each timestep (i.e. base), I also use the 5-bases’ segment before the current base as a feature. So this is a hierarchical time series problem. This is kind of similar to the NLP problem that a sentence is a time series while each word in the sentence is a lower-level time series.
Thus, I use the TimeDistributed(LSTM()) to process the 5-bases’ segment for each timestep, and its output is concatenated with other features and then fed into a not-time-distributed higher-level LSTM. Since the DNA sequences' lengths vary, I pad and mask the DNA sequences to a fixed length. I need to use the TimeDistributed(Flatten()) to flatten the output from the TimeDistributed(LSTM()) in order to feed it into a higher-level LSTM.
The reason I need to keep the mask after calling the TimeDistributed(Flatten()) is that I need to concatenate its output with other features and then feed them into a not-time-distributed higher-level LSTM. The mask is important since the DNA sequences’ lengths are different, and the mask needs to be carried out to the final output.
Since the current TimeDistributed(Flatten()) does not support masking, I was wondering if there is any alternative way in Keras to solve my problem here--- to flatten the last two dimensions in the output of the TimeDistributed(LSTM()) to turn it into a 3D tensor with masking support? I would greatly appreciate your advice.
Thank you very much!

I see, if I understand correctly, your input data's dimension is >3?
It seens TimeDistributed() would not keep the mask, so there are two approaches you can try in this case:

Handle the masking by yourself, which means you always keep an variable, let's call it mask, and at each layer, you manually pass it into the layer call.
Repopulate the mask. Mask is stored as inputs._keras_mask if it is present, so after your TimeDistributed(Flatten()) call, you can reset inputs._keras_mask as your original mask.

Thank you so much for your advice!
Yes, my input is 4D.
So you mean I can set the  ._keras_mask to None before going into the TimeDistributed(Flatten()) layer and then restore the  ._keras_mask after calling TimeDistributed(Flatten())? Something like the following:
hier_lstm = TimeDistributed(LSTM(16, return_sequences=True))(masked_input)
kept_mask = hier_lstm._keras_mask
hier_lstm._keras_mask = None
flattened = TimeDistributed(Flatten())(hier_lstm)
flattened._keras_mask = kept_mask

However, the  ._keras_mask is 3D before calling TimeDistributed(Flatten()). After calling TimeDistributed(Flatten()), the  ._keras_mask is supposed to be 2D. So if we give the original 3D ._keras_mask to the output of TimeDistributed(Flatten()), I was wondering if this dimensionality inconsistency could work out for the subsequent layers?
Another question is, since the  ._keras_mask is not passed into TimeDistributed(Flatten()), the TimeDistributed(Flatten()) does not ignore those supposed-to-be-masked data--- would this have any effect on the subsequent layers in their masking data handling?
Thank you very much for your help!

Mask should be applied on the sequence dimension, so for your 4D input, the mask should still be 2D? If your mask is actually 3D due to your use case, then you may need to design on how to collapse your 3D mask to 2D.
Flatten() should not be affected by mask, so you can always populate back the mask after the layer. Hope it could help you, thanks!


Remove 'ID' from the compat issue template

Removed the 'ID' field from the compatibility issue template since we aren't tracking issues by ID number anymore.

@mjrousos,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Add localleader bindings to org-agenda

This PR adds some localleader bindings to org-agenda-mode-map that reflect those of org-mode-map. I only included the bindings that are useful to manipulate meta-information (schedule, deadline, refine, and todo state).

I'm fine with these keybinds, but could you please move the map! form into the +org|setup-keybinds function. It is currently at top-level.

Done

Thanks for your help!


certificates: update required credential name for kubelet.conf

This name must match Common Name to be accepted by kubelet
Fixes #44876

@vrutkovs
Thanks for raising PR. As per k8s community guidelince, we do not accept PR with multiple languages.
I would recommend modify only the primary website content (English) initially with this PR. After the merge of the English content, we could create separate pull request for the remaining language(s). I hope this suggestion is helpful.

/hold
Hold until PR only covers single language(Feel free to unhold once remove other languages content).

@vrutkovs,
below are some links that may help you to find k8s community contributor guidelines.
https://www.kubernetes.dev/docs/guide/#contributor-guide
https://kubernetes.io/docs/contribute/
https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md

Oh, thanks. Updated the PR (keeping the hold just in case)

Okay to unhold now as PR covers single language.
/unhold

/remove-language ja
/remove-language ko
/remove-language zh

/assign stlaz

/close
We discovered out-of-band that this used to be a kubelet legacy behavior (~1.18). Arbitrary usernames can now be used.


Introduce Apache Ranger for authorization

What type of PR is this?

What does this PR do / why is it needed ?

Which issue(s) this PR fixes:

Fixes #
Other notes for reviewers:
Does this PR introduce a user-facing change?

This PR was closed because it has been inactive for 35 days. Please re-open if this PR is still relevant.


fix get_class($this) in relationship functions

The request fixes the issue #239
The problem was in the strpos() in exploading argument list. It was looking for the first occurance of '(' which is in get_class($this), so it takes everything before ')' --> get_class($this. While in getClassName function strpos is checking - strpos($className, 'get_class($this)') !== false, so it fails.
I have changed it to strrpos - in order to find the last occurance and explode the full argument list.

Hmm, not sure if this fixes all the edge cases. Should probably need some test or make a better parser. What if there are chained methods calls? $this->belongsTo(get_class($this))->orderBy('id')?
Can't you use static::class? Or we could check for get_class($this instead.

Yee, I have totally forgotten about chain methods. You are right.
So the simpliest workaround in that case would be - a check for get_class($this

Can you verify that that works and submit a new PR? (Or fix this PR and squash?)
Thanks!

Yes, I'll do it today.

Hi. When you have time, please have a look. I've changed a bit the way of parsing relations function. I've taken into consideration different preferences of writing chaining functions, so I've make one string from the function code and parse it. Also I've changed the way of parsing arguments.
I've checked this on several different tests:
public function posts()
    {
        return $this
            ->hasMany('App\Models\Post')
            ->orderBy('date_to')
            ->limit(10);
    }

public function phones()
    {
        return $this->hasOne('App\Phone');
    }

public function posts2()
    {
        return $this
            ->belongsToMany(static::class, 'table1', 'id4', 'id5')->orderBy('date');
    }

public function posts3()
    {
        return $this
            ->hasMany(Post::class)->orderBy('date_to')
            ->limit(10);
    }

    public function posts4()
    {
        return $this->hasMany(get_class($this));
    }

And as a result I have:
@property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Post[] $posts
@property-read \App\Phone $phones
@property-read \Illuminate\Database\Eloquent\Collection|\App\User[] $posts2
@property-read \Illuminate\Database\Eloquent\Collection|Post[] $posts3
@property-read \Illuminate\Database\Eloquent\Collection|\App\User[] $posts4

Thanks!

Hello. Seems this patch broke something.
public function roles()
{
    return $this->belongsToMany(Config::get('entrust.role'), Config::get('entrust.role_user_table'), 'user_id', 'role_id');
}

Now creates:
* @property-read \Illuminate\Database\Eloquent\Collection|\Config::get('entrust.role[] $roles

Previous version created:
* @property-read \Illuminate\Database\Eloquent\Collection|\Config::get('entrust.role')[] $roles

which was a bit better :)

@Adelf Hello. Which version of the ide-helper are you using ?
I have just installed 2.1.* and the generation is okay:
I have
public function roles()
    {
        return $this->belongsToMany(Config::get('entrust.role'), Config::get('entrust.role_user_table'), 'user_id', 'role_id');
    }

in the beginning, and
* @property-read \Illuminate\Database\Eloquent\Collection|\Config::get('entrust.role')[] $roles

after generation
But in version 2.0.6 I have the problem you have described.

@bebnev sorry. You're right. My fault.


[AMORO-2490] Fix the error style of the page for creating the Catalog

Why are the changes needed?

Close #2490 .
Brief change log

Fix the error style of the page for creating the Catalog

How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[x] Add screenshots for manual tests if appropriate

[ ] Run test locally before making a pull request

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)


svd2rust: 0.33.2 -> 0.33.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/rust-embedded/svd2rust/releases.
meta.description for svd2rust is: Generate Rust register maps (structs) from SVD files
meta.homepage for svd2rust is: https://github.com/rust-embedded/svd2rust
meta.changelog for svd2rust is: https://github.com/rust-embedded/svd2rust/blob/v0.33.3/CHANGELOG.md
Updates performed

Rust version update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.33.3 with grep in /nix/store/2h1m8k1fm1rvi9vhdd92514sxl8nkya0-svd2rust-0.33.3
found 0.33.3 in filename of file in /nix/store/2h1m8k1fm1rvi9vhdd92514sxl8nkya0-svd2rust-0.33.3

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

svd2rust

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/30c85c86b0f7e4b5cec521a262727a3b40c6142b#svd2rust

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/2h1m8k1fm1rvi9vhdd92514sxl8nkya0-svd2rust-0.33.3
ls -la /nix/store/2h1m8k1fm1rvi9vhdd92514sxl8nkya0-svd2rust-0.33.3/bin

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

1 package built:

svd2rust

Maintainer pings
cc @newAM for testing.

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

1 package built:

svd2rust


fix count when LHN is open on mobile

Details

Only increment the counter when the report is visible and in other case, we should reset the counter.

Fixed Issues

$ https://github.com/Expensify/App/issues/4863
Tests | QA Steps

Lunch the app
Log in with account A in device 1
Select user you will chat and scroll the chat to 10-30 messages to top
Back to LHN
Log in with account B in device 2
Send 13 messages to account A from device 2
Back to conversation from LHN in device 1 and check the green Marker Badge Coun

Tested On

[x] Web
[x] Mobile Web
[x] Desktop
[x] iOS
[x] Android

Screenshots

Web

Mobile Web

Desktop

iOS

Android

https://user-images.githubusercontent.com/24370807/131048311-e46c43ad-8721-4104-8448-6382826bb4b8.mp4

🚀 Deployed to staging by @roryabraham in version: 1.0.88-3 🚀

platform
result

🤖 android 🤖
cancelled 🔪

🖥 desktop 🖥
cancelled 🔪

🍎 iOS 🍎
cancelled 🔪

🕸 web 🕸
success ✅

🚀 Deployed to production by @roryabraham in version: 1.0.88-2 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅

This has been deployed to production and is now subject to a 7-day regression period.
If no regressions arise, payment will be issued on 2021-09-08.  :confetti_ball:

🚀 Deployed to production by @roryabraham in version: 1.0.90-2 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅


[10.x] Fix mutators for fields with integers in name

Problem
Imagine, you have field in database like image_404 and mutator getImage404Attribute.
If you call field like $model->image_404 - all fine, mutator works.
But if you try to call $model->toArray() - mutator will not work because reflection return wrong field name (getImage404Attribute -> Image404 -> Str::snake('Image404') -> image404)
Result
This solution is naive and look like a crutch, but i spent a few days and could not figure out how to solve this another way.
All other options require to get model fields, but this cannot be done in static context - that buries all optimization with $mutatorCache
I would be grateful for criticism and possible solutions. Thanks.
PS: field names like image_404 - horrible, but legacy is legacy.

I would just override toArray on the model in question. Fixes it for me:
    public function toArray()
    {
        return array_merge(parent::toArray(), [
            'image_404' => $this->image_404
        ]);
    }


Work order receipt APIs implementation for direct model

Work order receipt API's create, update, retrieve and update retrieve
are implemented. Updating receipt is done by enclave manager based on the
work order execution status.
Modify work receipt jrpc wrapper as per the new EEA spec changes
Update to echo client with receipt APIs to test end to end flow.

Signed-off-by: Ramakrishna Srinivasamurthy<EMAIL_ADDRESS>

in examples/apps/echo/client/echo_client.py, line 46, TCFHOME, the default is set to 2 directories up (../../) i.e. examples/common folder. Doesn't it has to be 4 levels up (../../../../)?


Undeprecate Store.getState().

Deprecation warning removed, since getState() is still heavily expected to be used in async actions.
Current master is not released yet, so the previous warning never made it into a release.

Coverage remained the same at 100.0% when pulling 0aa68bc336bcd343c2ecf8b95a231ff67c5b7ffe on undeprecate-store-getstate into 54aa257e316a7525ee678696394a602bed7f406d on master.


Satoru Gojo

please review this PR and if it is useful, add hacktoberfest-accepted label to it.
thank you.


WIP: Refactor data table to use context

Aaaand... because I wanted to show off cool things you could do with it using context, it adds a CardView component.
The table instance is set in the context (multiple tables can use the same TableProvider, allowing for cool interactions between tables that I haven't thought of a real world use case for yet.)
NOTE
Tests are currently all failing, but I wanted review on the code while I work on fixing them up.
There are still some clean-up tasks I have to do as well.

Coverage increased (+0.7%) to 88.271% when pulling 478469dcb16b09c9259602078e38277b9a1e4305 on lbirch/use-context into d4d687e50b6e41e5cced6f693ee4660e0186af64 on master.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


More docs re/ OMS logs + a script to analyze NGINX logs

Added some more docs about how to search the OMS logs, including more examples

Wrote a small Python 3 script to analyze some NGINX logs obtained via OMS

Codecov Report

Merging #1498 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #1498   +/-   ##
======================================
  Coverage    98.4%   98.4%
======================================
  Files          57      57
  Lines        2640    2640
======================================
  Hits         2598    2598
  Misses         42      42

LGTM.
Have we deployed the log analysis script anywhere?

The log analysis script is just something one runs on their local machine (on a CSV text file they got from OMS). I just wanted something to give me a sens of GET request traffic, for now. In the future, we can do something more automated.


Occasional "Error on ingesting results from rule evaluation with different value but same timestamp" warnings in the log

There are occasional warnings in my prometheus log:
Jun 29 10:05:18 collector prometheus[13853]: time="2017-06-29T10:05:18Z" level=warning msg="Error on ingesting results from rule evaluation with different value but same timestamp" numDropped=1 source="manager.go:313"`

Changing log level to debug also prints this:
Jun 29 10:05:18 collector prometheus[13853]: time="2017-06-29T10:05:18Z" level=debug msg="Rule evaluation result discarded" error="sample with repeated timestamp but different value" sample=ALERTS{alertname="highConversionDrop", alertstate="pending", instance="worker1", severity="major"} => 1 @[1498730718.595] source="manager.go:303"

There are more alerts active in the system, but it's always about highConversionDrop which is special – it's calculated in prometheus by recording rule.
Environment
collector ~ $ prometheus -version
prometheus, version 1.7.1 (branch: master, revision: 3afb3fffa3a29c3de865e1172fb740442e9d0133)
  build user:       root@0aa1b7fc430d
  build date:       20170612-11:44:05
  go version:       go1.8.3
collector ~ $ uname -srm
Linux 4.9.34 x86_64
collector ~ $

Prometheus configuration file:

global:
  scrape_interval:     10s
  evaluation_interval: 10s

rules_files:
  - /var/lib/prometheus/encoder.rules
  - /var/lib/prometheus/alerts.rules

scrape_configs:
  - job_name: 'collectd'
    static_configs:
      - targets:
        - <IP_ADDRESS>:54001
        - <IP_ADDRESS>:54001
        - <IP_ADDRESS>:54001
        - <IP_ADDRESS>:54001
        - <IP_ADDRESS>:54001
        - <IP_ADDRESS>:54001
        - <IP_ADDRESS>:54001
        - <IP_ADDRESS>:54001
    metric_relabel_configs:
      - source_labels: [exported_instance]
        regex: (.*)
        target_label: instance
        replacement: ${1}
      - source_labels: []
        target_label: exported_instance
        replacement: ""

encoder.rules file:

encoder_drop_frames = encoder_input_frames - encoder_output_frames

alerts.rules

ALERT highConversionDrop
    IF (encoder_drop_frames > 1) FOR 1m
    LABELS { severity="major" }
    ANNOTATIONS {
        summary = "High drop rate",
        description = "{{ $labels.instance }} drop rate exceeds treshold."
    }

Usage questions are best asked on https://groups.google.com/forum/#!forum/prometheus-users


Fix google-closure-deps

Update google-closure-compiler to pass tests using goog.declareModuleId() (since v20181008)
Downgrade google-closure-library in devDeps to pass closuremakedeps_test.js

#862 removes useless files like *_test.js from published npm package in v20180805

Add missing jasmine-diff to devDeps
Run tests in Travis CI

Thanks for this! Adding the tests will help keep us in a better state in the future :+1:


IndexError

I am trying to run eval.py on my own dataset and initially ran into a size mismatch error as described here #36. However I am now getting this IndexError. Am wondering if anybody else encountered a similar issue?
`Loading model...Ignoring "Error(s) in loading state_dict for Yolact:
size mismatch for prediction_layers.0.conf_layer.weight: copying a param with shape torch.Size([33, 256, 3, 3]) from checkpoint, the shape in current model is torch.Size([243, 256, 3, 3]).
size mismatch for prediction_layers.0.conf_layer.bias: copying a param with shape torch.Size([33]) from checkpoint, the shape in current model is torch.Size([243]).
size mismatch for semantic_seg_conv.weight: copying a param with shape torch.Size([10, 256, 1, 1]) from checkpoint, the shape in current model is torch.Size([80, 256, 1, 1]).
size mismatch for semantic_seg_conv.bias: copying a param with shape torch.Size([10]) from checkpoint, the shape in current model is torch.Size([80])."
Done.
Traceback (most recent call last):
File "/content/yolact/eval.py", line 1105, in
evaluate(net, dataset)
File "/content/yolact/eval.py", line 956, in evaluate
prep_metrics(ap_data, preds, img, gt, gt_masks, h, w, num_crowd, dataset.ids[image_idx], detections)
File "/content/yolact/eval.py", line 468, in prep_metrics
ap_obj = ap_data[iou_type][iouIdx][_class]
IndexError: list index out of range`

Do your custom config 'dataset''s name == 'num_classes': len('dataset''s name.class_names)+1?


substrate quality attributes

as_delivered
fresh
grown
processed

Activities should automatically flag those Boolean quantities

this has been implemented in main branch in this commit https://github.com/PDI-Berlin/pdi-nomad-plugin/commit/3455b99606861846d9f11e7ff193775b870a67b7


KAFKA-14467:Fixed an issue where local incorrect snapshot files might occur due to first pulling the snapshot file and then truncate

As jira described, add a test to validate the replica state after processing the OFFSET_MOVED_TO_TIERED_STORAGE error, especially for the transactional state.
In producerStateManager, first call truncateFullyAndStartAt to clean up the snapshot files, and then pull the snapshot file from RemoteLogManager. If the order of calls is reversed in original logic, it may cause the newly built snapshot file to be cleaned up again by truncateFullyAndStartAt.

Heya @hudeqi, thank you for the contribution! I have been reviewing this code change and I am a bit uncertain to its purpose so I wanted to ask some follow up questions. As far as I understand the current code flow roughly does the following:

Download a snapshot file from remote storage
Reset data structures within ProducerStateManager and delete snapshots present in the snapshots data structure via the truncateFullyAndStartAt
Read all snapshot files on disk and repopulate the data structures inside the ProducerStateManager

However, since downloading the snapshot from remote storage does not update the snapshots data structure I do not see how the new file will be deleted as part of the call to truncateFullyAndStartAt.
I also found the JIRA description a bit confusing because it kept on linking to comments people made, but none of them detailed how this could be happening.
Could you elaborate how the call to truncateFullyAndStartAt will delete the newly downloaded file? Alternatively have I misunderstood what you mean to do with this pull request?

Heya @hudeqi, thank you for the contribution! I have been reviewing this code change and I am a bit uncertain to its purpose so I wanted to ask some follow up questions. As far as I understand the current code flow roughly does the following:

Download a snapshot file from remote storage
Reset data structures within ProducerStateManager and delete snapshots present in the snapshots data structure via the truncateFullyAndStartAt
Read all snapshot files on disk and repopulate the data structures inside the ProducerStateManager

However, since downloading the snapshot from remote storage does not update the snapshots data structure I do not see how the new file will be deleted as part of the call to truncateFullyAndStartAt.
I also found the JIRA description a bit confusing because it kept on linking to comments people made, but none of them detailed how this could be happening.
Could you elaborate how the call to truncateFullyAndStartAt will delete the newly downloaded file? Alternatively have I misunderstood what you mean to do with this pull request?

Sorry for not stating it clearly in this jira. This jira was originally for adding a unit test to validate the transactional state after processing the OFFSET_MOVED_TO_TIERED_STORAGE error. When I was adding unit tests for this logic, I discovered "pulling snapshots from the remote and the file may then be cleaned" issue failed in testing, this issue has not yet been reflected in jira.
As for how this issue occurs in the original logic: snapshots is a map, and the key is a long type offset. If the name (offset value) of the snapshot file first pulled from the remote storage and constructed happens to be in the keyset of local snapshots, there may be problems with being cleaned up later. @clolov
I don't know if my understanding and processing are correct. @satishd please help to confirm. Thanks.

@hudeqi , are you still interested in completing this PR? There seems to have some unaddressed comments..=


How to make it work on Chrome?

Hello,
I have a little problem. Its working perfectly on Safari, however when I open the page on Chrome a nothing works.

It works for me on Chrome. Do you see the same errors in https://www.sowecms.com/demos/jquery.instagramFeed?

Yes, similar:

On 2020. Apr 2., at 23:52, Javier Sanahuja<EMAIL_ADDRESS>wrote:
It works for me on Chrome. Do you see the same errors in https://www.sowecms.com/demos/jquery.instagramFeed https://www.sowecms.com/demos/jquery.instagramFeed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/jsanahuja/jquery.instagramFeed/issues/58#issuecomment-608110062, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH66LEMUORMYN2HPVX42AFDRKUCJTANCNFSM4L2VR2IA.

Also yesterday it was perfect on Safari today it stopped working:

It happened to me too, but disappeared a day later.

Also yesterday it was perfect on Safari today it stopped working:

I tried to print the JSON data what it get from instagram its undefined, maybe something was modified on insta, or am I doing something wrong?

This is not the same error. This is a network temporary ban from Instagram. See #54 #53 #51 #50 #49 #42 #25 (TLDR: See only #25 )

This is a network temporary ban from Instagram. See #54 #53 #51 #50 #49 #42 #25 (TLDR: See only #25 )

@jsanahuja,
you should add this point to the script description to save your time.

I definetely will @mahotilo 😄


Add interview template to wiki

Add a user experience interview template to the Wiki and fix the titles and bad links in the current wiki. Naming the home page something other than home causes a new home page to be generated. Also even if you name the links to other pages, they get renamed if you change the title or save the page.

Completed with Usability Research Test Script wiki page and fixed links and pages for Wiki


There is still false positives [Bug] [Exploit]

A bot joined and marked people again.
2020-06-07_14-09-35.log

Thanks for this. Could you post a console.log as well?

Where would I find that?

In your game folder. It is cleared every time you start the tool though.

console.log
I believe this is it.

I found a demo of the game, its about 2:20 into the video
http://www.mediafire.com/file/df8ere4xl6jtsm6/2020-06-07_14-10-36.dem/file

I've fixed the original issue, and I haven't seen or heard of any exploits like this for a long while. Closing this issue, please make a new one if you find any new exploits like this.


Category support

Hello!
I've been reading through the documentation and can't find anything about categories. How do you manage big applications that may have the same translation string in different places? E.g. home screen has the key "HELLO" and any other view might have the same key "HELLO" but it should be translated differently based on the view.

We have no answer for this -- technically.
However, you are able to make you own structure of (JSON) file and build a small loader on top of this.
Then you have everything under you own control.


What's the meaning of new_vl in Unit-stride Fault-Only-First Loads Functions?

Hello, thank you very much for the riscv-vector api interface you provided.
But I have some doubts when using  Unit-stride Fault-Only-First Loads Functions.
I don't know what's the meaning of size_t *new_vl and how to use it. And can you tell me how to use this api?
Hope to get your reply as soon as possible

strncpy is a case where the instruction comes in handy.

The fault-only-first-load intrinsic expands to a vleff instruction and a csrr to read the vl register after the vleff. new_vl1 is where to store the result from the csrr`

The fault-only-first-load intrinsic expands to a vleff instruction and a csrr to read the vl register after the vleff. new_vl is where to store the result from the csrr

thank you! i understand

strncpy is a case where the instruction comes in handy.

thank you!


fix otel imports

What does this PR do?

Motivation

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


Add min_p sampling

Summary:
This pull request introduces min_p sampling in both main.py and torch_main.py, and top_k sampling in torch_main.py.
Changes:
min_p Sampling:

Added min_p sampling to the sample function in main.py and torch_main.py.

The min_p parameter is now an optional argument in the sample function, with a default value of 0.0 (no min_p constraint).

top_k Sampling:

Added top_k sampling to the sample function in torch_main.py, since it seemed to be missing.

Sorry about the timing, but i added the entropy sampler which breaks your commit. Would you mind rebasing and retesting?

No problem! I rebased and everything seems to check out. I've added the sampling params of the sample function to the _sample call as well.
Since #6 mentioned a variable name that could lead to misinterpretations (top_p) and suggested changing it to p_max I looked up the naming in the transformers library for the min_p implementation, which is top_probs. I've decided to keep the same name, but feel free to change it if you want to.

Awesome, thank you! Incorporated into https://github.com/xjdr-alt/entropix/pull/11


Open issue: Conda App Store and Conda Runtime Environment

I'm aware how great it is to distribute crossplatform desktop apps via Conda.
I wonder if this could be turned into even more convenient end-user experience. Like a crossplatform App Store. And what is needed is not that many:
A small superviser app that automatically manages per-app envs (updates them, restores when Conda breaks them and itself without ability to repair, restores even root env, clears deleted env remnants and unused packages).
Automatic updates for apps is specifically important. This should be possible as each app version would be sha-256 frozen deps. Package that creates crossplatform shortcuts is also needed. Like shortcutter but much better.
That's the stuff that now is performed by power users of Conda ecosystem. But it can be automated via superviser app so that Conda distributed apps would  be available to common users.

Closed via https://github.com/conda/conda/issues/8545 and https://github.com/conda/constructor/issues/251


Granfa - Individual Configuration Settings

I've got a quick question, using ansible and the "template" method for configurations how can we add new individual configurations to grafana, for example allowing user authentication to be anonymous, or in my case enable embedding frames, cant figure out the proper way to locate the grafana config.. it's not in etc/grafana
I've added it to the template grafana config with no luck, just as a try:

Allow Embedding Variable - Grafana

I've never figured out the solution to this issue, however I decided to scrap the ansible and template configuration for good. My reason behind this was simply just learning how Grafana works, using your method is good as most of the work is already done for you, but I wanted full control over everything, and the only solution I could think of was star from scratch 😄.


models: Tighten type annotation for query_for_ids

This makes use of the type parameters of ValuesQuerySet (a.k.a _QuerySet) to provide a more accurate type annotation for query_for_ids.
Note that QuerySet[ModelT] is equivalent to _QuerySet[ModelT, ModelT].
Extracted from #18777 (cc @PIG208).

lgtm, thanks!


Tip off should include an (optional?) field for source

You saw it in person, you saw it on the internet, P&C newsletter

WIP changes stashed locally

The blocker on the plane while we were offline was not being able to see how to do yup validation for enums.
Also, we had to decide if we were (a) making it required or optional and (b) including a write-in field.
Also, we needed to do the end-to-end implementation including showing it in the admin site and the emails that the user gets sent.


branch-2.0 update Doris tzfiles to 2024a

Proposed changes
Issue Number: close #xxx
https://github.com/apache/doris/pull/32648
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Unable to get validator

This is what I get when I run go get , any idea what I am doing wrong ?
# gopkg.in/bluesuncorp/validator.v7
src/gopkg.in/bluesuncorp/validator.v7/validator.go:43: undefined: sync.Pool

What version of Go are you using?
it sounds like you're using an older version of Go, I believe sync.Pool is only in go 1.3 and above

Looks like it then. I am on 1.2.1 I will probably upgrade.