[Bug] IDs are not generated correctly [sf#32]

Reported by agriggio on 2003-07-05 14:35 UTC
they appear as
ID_FOO = 100
which is not even valid perl code (';' missing).
But I think they should
be collected (as the C++ codegen does, and the
python one should...) and
put as package constants, like
use constant ID_FOO => 100;

Commented by crazyinsomniac on 2003-07-10 14:20 UTC
Logged In: YES
user_id=264900
That'd make sense, but
how is this triggered? (got a wxg)

Commented by agriggio on 2003-07-11 13:42 UTC
Logged In: YES
user_id=375945
I'm not sure to understand (sorry, my poor English), but I
think you should add a generate_code_id() method to the code
generators. This should return a list of lines of code used
for the ids, that can be placed in the appopriate place in
the code. The C++ generator already does this, and I'll
change the python one too as soon as I have time, 'cos the
current way is odd.

Commented by crazyinsomniac on 2003-07-13 01:54 UTC
Logged In: YES
user_id=264900
How are you getting "ID_FOO = 100 "
See the attached test.wxg
Look for "MyIDTESTER" with 69 as the id.
I don't generate cpp source.
I did and I could not see ID_FOO = 100
anywhere, nor could I see the perl generated source
having anything similar,
so I see no point in making those into constants.

Commented by agriggio on 2003-07-13 09:06 UTC
Attached file test.wxg:
<?xml version="1.0"?>
<!-- generated by wxGlade 0.3pre1 on Sun Jul 13 10:44:52 2003 -->

<application path="" name="app" class="MyApp" option="0" language="perl" top_window="frame_1" encoding="latin-1" use_gettext="0">
    <object class="MyFrame" name="frame_1" base="EditFrame">
        <style>wxDEFAULT_FRAME_STYLE</style>
        <title>frame_1</title>
        <object class="wxBoxSizer" name="sizer_1" base="EditBoxSizer">
            <orient>wxVERTICAL</orient>
            <object class="sizeritem">
                <border>0</border>
                <option>0</option>
                <object class="wxButton" name="button_1" base="EditButton">
                    <label>button_1</label>
                    <id>ID_FOO=100</id>
                </object>
            </object>
        </object>
    </object>
</application>

Commented by agriggio on 2003-07-13 09:06 UTC
Logged In: YES
user_id=375945
OK, now I understand what you meant... Quoting the tutorial:
"""
NOTE on widgets' ids: You certainly know that every
wxWindows widget has an id,
used among other things for event handling, so in wxGlade
each widget has an Id
property. This may have the following values:
* a number: this will be the integer which will be

passed to the
constructor of the widget
* a name: in this case wxGlade assumes it is the name of

an id declared
somewhere in the program, and uses it. For example,
you can set the value
of Id to wxID_OK for the default OK button of a dialog
* a pair name=value: in this case before the constructor

of the widget the
declaration of the variable is generated. For example
you could write
TEST_BUTTON=wxNewId() to generate the id of a button
called "Test" (note
for C++ code generation: since ids are stored in an
anonymous enum, only
constant initializers are allowed, so the assigment
above is not legal -
but you can use, for instance, TEST_BUTTON=100)
* a pair name=?: this special form means that the code

will contain the
definition of a varable "name" with an auto-assigned
unique id. For
python output, this is the same as "name=wxNewId()",
while for C++
output, it's the equivalent of "name=1000" (of course,
1000 is just an
example here). In this latter case, wxGlade will start
generating ids
exacly from 1000, so you can safely use ids below that
for your own
purposes.
"""
so, the relevant points here are 3) and 4). See the new
test.wxg attached, the test.pl perl output and test.h C++
output (header only - since the .cpp doesn't matter here)

Commented by agriggio on 2003-07-13 09:07 UTC
Attached file test.pl:
#!/usr/bin/perl -w --
# generated by wxGlade 0.3pre1 on Sun Jul 13 10:45:03 2003
# To get wxPerl visit http://wxPerl.sourceforge.net/

use Wx 0.15 qw[:allclasses];
use strict;

package MyFrame;

use Wx qw[:everything];
use base qw(Wx::Frame);
use strict;

sub new {
	my( $self, $parent, $id, $title, $pos, $size, $style, $name ) = @_;
	$parent = undef              unless defined $parent;
	$id     = -1                 unless defined $id;
	$title  = ""                 unless defined $title;
	$pos    = wxDefaultPosition  unless defined $pos;
	$size   = wxDefaultSize      unless defined $size;
	$name   = ""                 unless defined $name;

# begin wxGlade: MyFrame::new

	$style = wxDEFAULT_FRAME_STYLE
		unless defined $style;

	$self = $self->SUPER::new( $parent, $id, $title, $pos, $size, $style, $name );
	ID_FOO = 100
		$self->{button_1} = Wx::Button->new($self, ID_FOO, "button_1");

	$self->__set_properties();
	$self->__do_layout();

	return $self;

# end wxGlade
}

sub __set_properties {
	my $self = shift;

# begin wxGlade: MyFrame::__set_properties

		$self->SetTitle("frame_1");

# end wxGlade
}

sub __do_layout {
	my $self = shift;

# begin wxGlade: MyFrame::__do_layout

		$self->{sizer_1} = Wx::BoxSizer->new(wxVERTICAL);
		$self->{sizer_1}->Add($self->{button_1}, 0, 0, 0);
		$self->SetAutoLayout(1);
		$self->SetSizer($self->{sizer_1});
		$self->{sizer_1}->Fit($self);
		$self->{sizer_1}->SetSizeHints($self);
		$self->Layout();

# end wxGlade
}

# end of class MyFrame

1;

package MyApp;

use base qw(Wx::App);
use strict;

sub OnInit {
	my( $self ) = shift;

	Wx::InitAllImageHandlers();

	my $frame_1 = MyFrame->new();

	$self->SetTopWindow($frame_1);
	$frame_1->Show(1);

	return 1;
}
# end of class MyApp

package main;

unless(caller){
	my $app = MyApp->new();
	$app->MainLoop();
}

Commented by agriggio on 2003-07-13 09:08 UTC
Attached file test.h:
// -*- C++ -*- generated by wxGlade 0.3pre1 on Sun Jul 13 10:43:24 2003

#include <wx/wx.h>
#include <wx/image.h>
// begin wxGlade: ::dependencies
// end wxGlade

#ifndef TEST_H
#define TEST_H

class MyFrame: public wxFrame {
public:
    // begin wxGlade: MyFrame::ids
    enum {
        ID_FOO = 100
    };
    // end wxGlade

    MyFrame(wxWindow* parent, int id, const wxString& title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE);

private:
    // begin wxGlade: MyFrame::methods
    void set_properties();
    void do_layout();
    // end wxGlade

protected:
    // begin wxGlade: MyFrame::attributes
    wxButton* button_1;
    // end wxGlade
};

#endif // TEST_H

Commented by crazyinsomniac on 2003-07-14 16:22 UTC
Logged In: YES
user_id=264900
i see now.
it's done,
even though I think it won't get much use
(the various wxPerl event "macros" know to call GetId
if the arg is a wxObject)


Error while reading ukwac w2v data

Doing this:
import sensegram sv = sensegram.SenseGram.load_word2vec_format('/home/myHome/Data/word2vec/sensegram/ukwac.senses.w2v', binary=True)
Gives me that:
Traceback (most recent call last):
  File "/home/myHome/PycharmProjects/sensegram/my_progs/prog1.py", line 2, in <module>
    sv = sensegram.SenseGram.load_word2vec_format('/home/myHome/Data/word2vec/sensegram/ukwac.senses.w2v', binary=True)
  File "/home/myHome/PycharmProjects/sensegram/sensegram.py", line 45, in load_word2vec_format
    mod = word2vec.Word2Vec.load_word2vec_format(fname, fvocab, binary, encoding, unicode_errors)
  File "/home/myHome/virtualenv/sensegram/local/lib/python2.7/site-packages/gensim/models/word2vec.py", line 1212, in load_word2vec_format
    weights = fromstring(fin.read(binary_len), dtype=REAL)
ValueError: string size must be a multiple of element size

wiki data loaded without any problem

cannot reproduce: be sure that you have the correct versions of the libraries eg gensim.
you can run pip install -r requirements.txt to make sure you have it

Sorry, the problem was on my side: data corruption while downloading


teff is not actually optional

the star object can be instantiated without supplying teff, but actually calling star() still returns an error.

Good catch, thanks. This is probably an issue that crept in from the earlier versions of pbjam where we didn't have the call() function in star, and Teff was indeed only optional.

Teff is now required.


Nuttx configuration for px4

Hi,
I am following tutorial  https://www.youtube.com/watch?v=2Bvku3dnrr8 .
On the 13:22 minute, It can be seen the commands needed for installation and configuration of Nuttx for a board - which are " ./tools/configure.sh -c nucleo-l476rg/nsh"
I would like to use the board for px4 CUAV V5+ that has processor:  STM32F765   -------------/https://docs.px4.io/main/en/flight_controller/cuav_v5_plus.html       --------------
I have changed the board location to: stm32f769i-disco/nsh  ,but this gives out the errors below:
tools/configure.bat -c stm32f769i-disco/nsh
mingw32-gcc.exe -Wall -Wstrict-prototypes -Wshadow -g -pipe -I. -DCONFIG_WINDOWS_NATIVE=y -o configure.exe configure.c cfgparser.c
ERROR: stat of (null) failed: Invalid argument
configure.exe failed
I also tried with:
tools/configure.sh -c stm32f769i-disco/nsh
and get the following error:
tools/configure.sh: line 142: [: /home/User: binary operator expected
tools/configure.sh: line 161: [: /home/User: binary operator expected
tools/configure.sh: line 181: [: /home/User: binary operator expected
tools/configure.sh: line 186: [: /home/User: binary operator expected
grep: /home/User: No such file or directory
grep: UserSurname/nuttx/tools/../boards///stm32f769i-disco/configs/nsh/defconfig: No such file or directory
grep: /home/User: No such file or directory
grep: UserSurname/nuttx/tools/../boards///stm32f769i-disco/configs/nsh/defconfig: No such file or directory
Copy files
ln: target UserSirname/nuttx/tools/../Make.defs': No such file or directory
Failed to symlink /home/UserSurname/nuttx/tools/../boards///stm32f769i-disco/configs/nsh/Make.defs
I can`t figure out what I'm doing wrong.
Any advice is appreciated.
Thanks

Use the https://github.com/PX4/PX4-Autopilot repo and build the px4_fmu_v5 (see https://github.com/PX4/PX4-Autopilot/blob/dff946c39a01b883fbd7967c8b9255ca02be826b/boards/px4/fmu-v5/src/manifest.c#L163)

Hi
I have followed the https://docs.px4.io/main/en/dev_setup/building_px4.html and went trough the Ubuntu and Nuttx examples but it does not goes quite as expected.
The Nuttx install goes like this:
cd PX4-Autopilot
make px4_fmu-v5_default
-- PX4 version: v1.13.0-beta1-1046-gc267cf71c3
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.9.10", minimum required is "3")
-- PX4 config file: /home/sim_dim/PX4-Autopilot/boards/px4/fmu-v5/default.px4board
-- PLATFORM nuttx
-- TOOLCHAIN arm-none-eabi
-- ARCHITECTURE cortex-m7
-- ROMFSROOT px4fmu_common
-- IO px4_io-v2_default
-- SERIAL_GPS1 /dev/ttyS0
-- SERIAL_TEL1 /dev/ttyS1
-- SERIAL_TEL2 /dev/ttyS2
-- SERIAL_TEL4 /dev/ttyS3
-- UAVCAN_INTERFACES 2
-- UAVCAN_TIMER_OVERRIDE 6
-- PX4 config: px4_fmu-v5_default
-- PX4 platform: nuttx
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "" == "cygdrive" ]]; then cygpath -w ""; else echo ; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "" == "cygdrive" ]]; then cygpath -w ""; else echo ; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "[" == "cygdrive" ]]; then cygpath -w "["; else echo [; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "[" == "cygdrive" ]]; then cygpath -w "["; else echo [; fi '
/bin/sh: -c: line 0: unexpected EOF while looking for matching '' /bin/sh: -c: line 1: syntax error: unexpected end of file /bin/sh: -c: line 0: unexpected EOF while looking for matching ''
/bin/sh: -c: line 1: syntax error: unexpected end of file
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "" == "cygdrive" ]]; then cygpath -w ""; else echo ; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "" == "cygdrive" ]]; then cygpath -w ""; else echo ; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "[" == "cygdrive" ]]; then cygpath -w "["; else echo [; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "[" == "cygdrive" ]]; then cygpath -w "["; else echo [; fi '
/bin/sh: -c: line 0: unexpected EOF while looking for matching '' /bin/sh: -c: line 1: syntax error: unexpected end of file /bin/sh: -c: line 0: unexpected EOF while looking for matching ''
/bin/sh: -c: line 1: syntax error: unexpected end of file
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "" == "cygdrive" ]]; then cygpath -w ""; else echo ; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "" == "cygdrive" ]]; then cygpath -w ""; else echo ; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "[" == "cygdrive" ]]; then cygpath -w "["; else echo [; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "[" == "cygdrive" ]]; then cygpath -w "["; else echo [; fi '
/bin/sh: -c: line 0: unexpected EOF while looking for matching '' /bin/sh: -c: line 1: syntax error: unexpected end of file /bin/sh: -c: line 0: unexpected EOF while looking for matching ''
/bin/sh: -c: line 1: syntax error: unexpected end of file
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "" == "cygdrive" ]]; then cygpath -w ""; else echo ; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "" == "cygdrive" ]]; then cygpath -w ""; else echo ; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "[" == "cygdrive" ]]; then cygpath -w "["; else echo [; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "[" == "cygdrive" ]]; then cygpath -w "["; else echo [; fi '
/bin/sh: -c: line 0: unexpected EOF while looking for matching '' /bin/sh: -c: line 1: syntax error: unexpected end of file /bin/sh: -c: line 0: unexpected EOF while looking for matching ''
/bin/sh: -c: line 1: syntax error: unexpected end of file
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "" == "cygdrive" ]]; then cygpath -w ""; else echo ; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "" == "cygdrive" ]]; then cygpath -w ""; else echo ; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "[" == "cygdrive" ]]; then cygpath -w "["; else echo [; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "[" == "cygdrive" ]]; then cygpath -w "["; else echo [; fi '
/bin/sh: -c: line 0: unexpected EOF while looking for matching '' /bin/sh: -c: line 1: syntax error: unexpected end of file /bin/sh: -c: line 0: unexpected EOF while looking for matching ''
/bin/sh: -c: line 1: syntax error: unexpected end of file
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "" == "cygdrive" ]]; then cygpath -w ""; else echo ; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "" == "cygdrive" ]]; then cygpath -w ""; else echo ; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "[" == "cygdrive" ]]; then cygpath -w "["; else echo [; fi '
/bin/sh: -c: line 0: syntax error near unexpected token ;' /bin/sh: -c: line 0: if [[ "[" == "cygdrive" ]]; then cygpath -w "["; else echo [; fi '
/bin/sh: -c: line 0: unexpected EOF while looking for matching '' /bin/sh: -c: line 1: syntax error: unexpected end of file /bin/sh: -c: line 0: unexpected EOF while looking for matching ''
/bin/sh: -c: line 1: syntax error: unexpected end of file
-- cmake build type: MinSizeRel
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: arm-none-eabi-gcc
CMake Error at CMakeLists.txt:241 (project):
The CMAKE_CXX_COMPILER:
arm-none-eabi-g++

is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:241 (project):
The CMAKE_C_COMPILER:
arm-none-eabi-gcc

is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
-- Enabling double FP precision hardware instructions
CMake Error at CMakeLists.txt:241 (project):
The CMAKE_ASM_COMPILER:
arm-none-eabi-gcc

is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Warning: Did not find file Compiler/-ASM
-- Enabling double FP precision hardware instructions
-- Configuring incomplete, errors occurred!
See also "/home/sim_dim/PX4-Autopilot/build/px4_fmu-v5_default/CMakeFiles/CMakeOutput.log".
See also "/home/sim_dim/PX4-Autopilot/build/px4_fmu-v5_default/CMakeFiles/CMakeError.log".
Error: /home/sim_dim/PX4-Autopilot/build/px4_fmu-v5_default is not a directory
make: *** [Makefile:227: px4_fmu-v5_default] Error 1
And when I look at the part:
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
I am struggling  to figure out how to do this bit above - how to find the CMake file and change the path

@HadesGuy Please see https://docs.px4.io/main/en/dev_setup/getting_started.html and use the scripts to install the tools.  I would recommend running on Ubuntu natively or use Virtual Box

Hi, I am using the scripts and using Ubuntu 18.04 on Virtual Box.
starting from the beginning I have installed the tools show in https://docs.px4.io/main/en/dev_setup/building_px4.html
Now i get the error:
sim@sim-VirtualBox:~/PX4-Autopilot$ make px4_fmu-v5_default
-- PX4 version: v1.13.0-beta1-1062-g740d2fccb1
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "3")
-- PX4 config file: /home/sim/PX4-Autopilot/boards/px4/fmu-v5/default.px4board
-- PLATFORM nuttx
-- TOOLCHAIN arm-none-eabi
-- ARCHITECTURE cortex-m7
-- ROMFSROOT px4fmu_common
-- IO px4_io-v2_default
-- SERIAL_GPS1 /dev/ttyS0
-- SERIAL_TEL1 /dev/ttyS1
-- SERIAL_TEL2 /dev/ttyS2
-- SERIAL_TEL4 /dev/ttyS3
-- UAVCAN_INTERFACES 2
-- UAVCAN_TIMER_OVERRIDE 6
-- PX4 config: px4_fmu-v5_default
-- PX4 platform: nuttx
-- cmake build type: MinSizeRel
-- The CXX compiler identification is GNU 6.3.1
-- The C compiler identification is GNU 6.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/arm-none-eabi-gcc
-- Check for working CXX compiler: /usr/bin/arm-none-eabi-g++
-- Check for working CXX compiler: /usr/bin/arm-none-eabi-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc
-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Enabling double FP precision hardware instructions
-- drivers/px4io: ROMFS including px4_io-v2_default
-- Found PythonInterp: /usr/bin/python3 (found version "3.6.9")
-- Using C++11
-- Release build type: MinSizeRel
CMake Warning at src/modules/microdds_client/CMakeLists.txt:35 (message):
skipping microdds_client, Micro-XRCE-DDS-Client needs to be fixed to work
with CMAKE_VERSION 3.10.2
-- ROMFS: ROMFS/px4fmu_common
-- ROMFS:  Adding platforms/nuttx/init/stm32f7/rc.board_arch_defaults -> /etc/init.d/rc.board_arch_defaults
-- ROMFS:  Adding boards/px4/fmu-v5/init/rc.board_defaults -> /etc/init.d/rc.board_defaults
-- ROMFS:  Adding boards/px4/fmu-v5/init/rc.board_sensors -> /etc/init.d/rc.board_sensors
-- ROMFS:  Adding boards/px4/fmu-v5/extras/px4_fmu-v5_bootloader.bin -> /etc/extras/px4_fmu-v5_bootloader.bin
-- ROMFS:  Adding boards/px4/fmu-v5/extras/px4_io-v2_default.bin -> /etc/extras/px4_io-v2_default.bin
-- Configuring done
-- Generating done
-- Build files have been written to: /home/sim/PX4-Autopilot/build/px4_fmu-v5_default
[0/1175] git submodule src/drivers/gps/devices
[8/1175] git submodule platforms/nuttx/NuttX/nuttx
[12/1175] git submodule src/drivers/uavcan/libuavcan
[13/1175] git submodule src/modules/mavlink/mavlink
[14/1175] Generating Mavlink standard: ...k/message_definitions/v1.0/standard.xml
Traceback (most recent call last):
File "/home/sim/PX4-Autopilot/src/modules/mavlink/mavlink/pymavlink/tools/mavgen.py", line 16, in
from pymavlink.generator import mavgen
File "/home/sim/PX4-Autopilot/src/modules/mavlink/mavlink/pymavlink/generator/mavgen.py", line 26, in
from future import standard_library
ModuleNotFoundError: No module named 'future'
FAILED: mavlink/standard/standard.h
cd /home/sim/PX4-Autopilot/build/px4_fmu-v5_default/src/modules/mavlink && /usr/bin/python3 /home/sim/PX4-Autopilot/src/modules/mavlink/mavlink/pymavlink/tools/mavgen.py --lang C --wire-protocol 2.0 --output /home/sim/PX4-Autopilot/build/px4_fmu-v5_default/mavlink /home/sim/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/standard.xml
[20/1175] Generating parameters.xml
ninja: build stopped: subcommand failed.
Makefile:227: recipe for target 'px4_fmu-v5_default' failed
make: *** [px4_fmu-v5_default] Error 1
sim@sim-VirtualBox:~/PX4-Autopilot$ make px4_fmu-v5_default
I believe I am following the tutorial correctly, but maybe I am missing something ..

The link you have posted does not contain scripts, but links. I have followed the link for toolchain.

This one? https://github.com/PX4/PX4-Autopilot/blob/main/Tools/setup/ubuntu.sh

Hi Davis,
I have just checked - these are installed in the ubuntu.sh
Outcome is the same :(

@dagar @julianoes Any advice here?

Now I ran: make px4_fmu-v5_default - again and got multiple errors one of which is repeating:
            from ../../src/drivers/uavcan/libuavcan/libuavcan/src/marshal/uc_bit_array_copy.cpp:5:

/usr/include/newlib/math.h:18:3: error: '__ULong' does not name a type
__ULong i[2];
^~~~~~~


How to get camera-target and camera-orbit values for annotations

How to get camera-target and camera-orbit values for annotations
I was trying to re-create this zoom-in effect, once the annotation is clicked. From the documentation, on my custom model
https://modelviewer.dev/examples/annotations/index.html#cameraViews
But how to get those perfect data-target and data-orbit attributes, set for my own annotations.
I have added the annotations, as required using the editor.
Is there a way to find these values for target and orbit using the editor?

Indeed, this is great feature of our editor! Simply go to the Hotspots section of the second tab and you can add them by clicking. When you download the scene, the HTML is all built for you, ready for further customization.


Spectators should not be able to edit a quiz

Involves refactoring towards a capability-driven design: https://fsharpforfunandprofit.com/cap/


Profile-guided optimization (PGO) as optional part of builds

The pydantic project had a bit of success adding PGO to their builds, as shown in the relevant PRs:

https://github.com/pydantic/pydantic-core/pull/678
https://github.com/pydantic/pydantic-core/pull/1063
https://github.com/pydantic/pydantic-core/pull/741

I'm not sure if we'd see similar performance improvements from adding this to our build chain, but a 10-20% improvement might be doable and would not add much to actual release builds.
Let's investigate.

Maybe relevant for quick benchmark checks? https://github.com/apps/codspeed-hq


Remove the unused rowEq prop for EditableTable

This is a breaking change unfortunately.

It might be better to start using it, since the work to do that is already done.

Oh sorry, I misunderstood, I thought this was a vestige of a previous iteration.


#7625: Switch untilize and tilize ops to use multi_core by default in pybinds

Lower width for tt-dnn untilize sweep test

Passing post-commit: https://github.com/tenstorrent/tt-metal/actions/runs/8851183559


fix: handle namespaced helper found on Common helper

Description
Closes https://github.com/codeigniter4/CodeIgniter4/pull/9350
@yllumi this should handle https://github.com/codeigniter4/CodeIgniter4/pull/9350
Checklist:

[x] Securely signed commits
[ ] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[ ] User guide updated
[ ] Conforms to style guide

Ready to merge 👍 /cc @neznaika0

Thank you @michalsn for the review, let's merge 👍

@samsonasik Oh... I forgot - we need a changelog entry 😅

@michalsn sure, here the PR for changelog:

https://github.com/codeigniter4/CodeIgniter4/pull/9356


Google Translate Functionality is Added in 10-12 languages

Title
Added New Language Translation Feature Using Google Translate
Description
This pull request introduces a new feature that allows users to translate text into different languages using the Google Translate API. This enhancement aims to provide users with a convenient and efficient way to communicate across languages.
Related Issues
Issue : #115
Changes Made

Integrated Google Translate API for language translation.
Created a new service for handling translation requests.
Added options to select languages from a dropdown menu in the user interface.

Checklist
[X] I have tested the changes locally
[X] Documentation has been updated (if necessary)
[X] Changes are backward-compatible
Screenshots (if applicable)

Additional Notes
Google Translate API key needs to be configured in the environment settings for this feature to work.
This feature currently supports a predefined set of languages but can be expanded in the future.

it is not looking good..

Try to run npm build..it will show you potential errors


"Izvoru Berheciului" commune is listed in the drop-down menu

Description:
The commune is listed in the drop-down menu according to the law
Preconditions :the website (https://peviitor-ro.github.io/ui.orase/) is up and runing.
After every step delete the text you typed from the search bar.

Step 1
Type "Izvoru Berheciului" in the search bar.
Expected results
The location is listed in the drop-down menu as "Izvoru Berheciului, Bacău"


Fix admin resource loading

The mezzanine is taking over regular django admin behavior.  This pr takes some of that behavior back.
TODO:
list_filter on 'author' and 'resource_type'

Issue #127 created for this. Thank, @philtuskha for the initiative in getting this PR started.


Replace own commands with MiddlewareClientBundle Commands

Depends on https://github.com/SURFnet/Stepup-Middleware-clientbundle/pull/18

[ ] Update composer.json to point to develop after merging aforementioned branch

@rjkip

:+1:


We are violating the JSON schema spec in our usage of $schema

Please see 7. The "$schema" keyword

The "$schema" keyword SHOULD be used in a root schema. It MUST NOT appear in subschemas.

We use $schema in subschemas only and not in the root schema.
See 4.5. Root schema and subschemas for the definition of root and subschemas.
I recommend moving $schema to the root of the document and omitting it from the subschemas in the catalog.
Alternatively we could make schemas a new endpoint to the catalog. Example: /v2/catalog/schema

@n3wscott Are you sure we're using $schema in a subschema?
We're using it nested in a complex object, yes, but we are (via the spec) effectively telling folks that the schema for service instance creation lives at services[i].plans[j].schemas.service_instance.create. Does the $schema key really need to be at the root of the API response JSON rather than wherever we deem the schema to live?

Here is why this could be important, if each verb object is able to define their own root schema, we are not allowed to use internal references and for a complex service or a service aggregator, the catalog response is very verbose and has the very real possibility that the schema is not updated consistently for shared objects (like billing account or some kind of common access metadata). This also can egde us over the schema limit for the catalog.
The more I have thought about this issue, the more I am in favor of removing the schema definition from catalog entirely and moving it to another resource. This has the benefit of the schema endpoint being cacheable for long periods of time while the catalog might update more frequently. The catalog should then have a $ref link to the object it defines in the master schema document.

Closing this as I think this is more of a meta discussion and the work done to add configuration parameter schemas to the catalog was merged a couple of releases ago and seems to be working well.


Create codeql.yml

A workflow to perform static code analysis

Makes no sense in the context of this repo. CodeQL can not initilize because it can not identify the code in the repo, which is basically nothing.


FreeBSD support?

Scala, Coursier and SBT are available on FreeBSD's official package repository and freshports, and Coursier officially distributes a JAR version for systems and architectures that aren't covered by their official ports. In fresh ports, FreeBSD also has openjdk 8, 11, 17, 19, 20, 21 and 22.
Since scala-cli is going to become the new "scala" command, it should eventually come to all systems that can run Scala.
Currently, scala-cli is not on FreeBSD's repository, and the official website doesn't seem to mention FreeBSD in the downloads.
I propose adding official support for FreeBSD, though I know there will be a few inconveniences:

Native-image packaging probably won't be supported, as GraalVM doesn't seem to support the BSD systems
Specifying a JVM version with --jvm downloads it from an external source, I'm not sure if that source also provides FreeBSD builds (probably does or some other does since coursier is on FreeBSD)

It would be cool for there to be FreeBSD support so the system can be used as a working system rather than just for production. As an alternative (or temporary solution, whatever is best), scala-cli could have an option in the downloads that links to a system-agnostic JAR download, like how Coursier does. With a system-agnostic software design, maybe this JAR could have most functionality work on most BSDs and other systems even!

scala-cli could have an option in the downloads that links to a system-agnostic JAR download

@spacebanana420 Is the bootstrapped fat jar we have not sufficient?
https://scala-cli.virtuslab.org/install#bootstrapped-standalone-fat-jar

I thought that was meant for a different purpose because of its description, I will check it out

Its purpose wasn't exactly this, but I think it should still fit your requirements...
If this is the case, we can just update the installation doc with instructions for FreeBSD

It didn't work on FreeBSD.
I have to paste log screenshots because I'm testing on a VM
Using Coursier from FreeBSD's repository:

And so I downloaded the standalone Coursier JAR and wanted to run the typical cs setup:

So I ran with the arguments "install scala-cli" instead and it seems to have worked, though scala-cli requires a more recent java than the one in my VM's PATH so I'll fix that first and see if scala-cli works this way.

Running the scala-cli that Coursier installed doesn't work either to build one of my projects:

This seems to be the cause of the first failure (the second one being unable to specify a JVM version)

You can specify the JVM for Bloop with --bloop-jvm.
If you need Bloop to run on a JVM where -XX:+UseZGC isn't supported, then you may need to explicitly pass bloop java options with BLOOP_JAVA_OPTS.
Normally, it's possible to pass Bloop jvm options with --bloop-java-opt, but for that won't override the existing options hardcoded in Bloop.
To check what is hardcoded in Bloop, you can refer here:
https://github.com/scala-cli/bloop-core/blob/1b24bf257f091e7a37a6d72fc85faacf8d9e6a49/bloop-rifle/src/bloop/rifle/BloopRifleConfig.scala#L75-L83
Alternatively, you can skip Bloop altogether with --server=false.

Overall, it sounds like a number of things would need to be delivered first.

coursier should receive better FreeBSD support to start with, as the errors you've been getting imply there's a lot of room for improvement
we should be able to recognise which JVM to use on a FreeBSD system, as there's no entry in the JVM index for it
Bloop should be compatible with the JVM which would be used on FreeBSD

@spacebanana420 let me know if --server=false helped.
Overall, I don't think the maintenance team (which at the moment mostly means me) would have time to work on this anytime soon. We are, however, open to contributions.
Do let me know if you need any help to get you started, in case you were interested to work on this.

When running my compilation command with --server=false, scala-cli successfully works!
I would like to contribute to adding FreeBSD support to scala-cli, but my Scala experience is still less than 1 year, I'm unsure if I could tackle the dimension of this project. Looks like at least for now, temporary FreeBSD support could be reduced to adding website information/docs/guide, adding warnings for users trying to use --jvm and --native-image, and use --server=false by default or different VM/bloop options.

When running my compilation command with --server=false, scala-cli successfully works!

Awesome!

I would like to contribute to adding FreeBSD support to scala-cli, but my Scala experience is still less than 1 year, I'm unsure if I could tackle the dimension of this project.

No worries, let me know when you want to try to tackle this.
You might want to try something easier first, like something with the https://github.com/VirtusLab/scala-cli/labels/good first issue label.

Looks like at least for now, temporary FreeBSD support could be reduced to adding website information/docs/guide, adding warnings for users trying to use --jvm and --native-image, and use --server=false by default or different VM/bloop options.

@spacebanana420 Would you be able to document down what you were able to make work into an advanced ⚡ guide, which we could link on the installation page?

Yes, I could work on documentation like I did for the --preamble=false
I'll check it out

I finished working on the FreeBSD installation guide (considering partial support)! Here it is https://github.com/VirtusLab/scala-cli/pull/2793


Package com.github.freeacs.ws.xml not found in the webservice module

@jarlah I have been following this project since 2014 but then lost touch.
I appreciate the changes you have made.
I was trying to build the project but the webservice module compilation failed.
The directory com.github.freeacs.ws.xml was not present in the webservice module.
Can you please verify if I am missing something?

Closing this as I found the files are generated based on XSD configuration.
Running mvn package in the webservice module generated the files here /path-to-free-acs-code/freeacs/webservice/target/classes/com/github/freeacs/ws/xml

Nice to see you figured it out. I am trying everyones patience with all my changes, but good to see someone clings onto the hope that all these changes are for the better. Which i am convinced of myself, but its not always easy to transfer this to others :)


fix(wasm): prevent panic in the wasm

related to #382

Codecov Report
Attention: Patch coverage is 17.24138% with 48 lines in your changes missing coverage. Please review.

Project coverage is 87.42%. Comparing base (6b9ab25) to head (0bf5aae).

Files with missing lines
Patch %
Lines

flipt-engine-wasm/src/lib.rs
0.00%
46 Missing :warning:

flipt-evaluation/src/lib.rs
0.00%
1 Missing :warning:

flipt-evaluation/src/models/source.rs
90.90%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #383      +/-   ##
==========================================
- Coverage   88.51%   87.42%   -1.09%
==========================================
  Files          10       10
  Lines        3692     3738      +46
==========================================
  Hits         3268     3268
- Misses        424      470      +46

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

It seems that coverage is possible, but it's currently only available on the rust nightly. It will likely require using minicov. Not sure if it's a priority right now.
https://github.com/rustwasm/wasm-bindgen/blob/main/guide/src/wasm-bindgen-test/coverage.md


[GUI] Groups: page internationalization (button tooltip)

New Group button tooltip has not been translated into Portuguese.

Affected Version: 0.3.0-nightly_20181227

Test OK.


[.NET][Templating] Expand function doesn't handle strings with escape characters

Platform
What platform is your issue or question related to? (Delete other platforms).

.NET (Templating nuget)

Author or host
Author / Host
If you're an author, who are you sending cards to?
1.2.9
What version are you using? Ex: NuGet 1.0.2, or latest main, etc...
Templating nuget release candidate
Explain your issue. If you just have a question, please post on StackOverflow instead:

When expanding a templated json with a concrete type, any strings within that type that contain escape characters \ or " will break the json parser.

Example:
Given this template
{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2",
    "body": [
        {
            "type": "TextBlock",
            "text": "${title}"
        }
    ]
}

And expanding with a concrete type with Property
[JsonProperty("title")]
Title => return "Hello \ world";

Will result in a parsing error when the card is expanded and result in no card being displayed.
We're currently working around this issue by manually escaping all strings we use, but it would be great if the templating system could handle strings that contain escape characters.

@nimercer
Hello,
Could you share which version of nuget packages you used? For example, we have 1.0.0-rc.0 and 1.0.0-rc.1. Also, can you provide the template data payload also?

@nimercer
Hi,
1.0.0-rc.1 will leave alone valid escape sequences. However, "\ " is not valid json escape sequence, and will throw. Are there any reasons that you use invalid escape sequences?

@jwoo-msft let's follow up here with @nimercer (Nicola) from Cortana to understand their use case. Meanwhile let's update the WPF renderer to match the behavior of other renderers.

Hi @shalinijoshi19 / @jwoo-msft - apologies for missing your comment before.
We're using an API to pull Meeting titles and populate them into Adaptive cards using the templating system. Any meeting which contained the string '' in the title (for example 'Schedule for the [UWP\Triage] team') would cause the cards to break. We're currently working around this by manually adding extra \ in the title, but obviously we're having to apply this for all strings we pull from external sources, just in case any of those have \ in as well.
This seems like something that could be dealt with on the templating side?
Let me know if that makes sense/doesn't make sense :)

Hi,
Greetings.
I too had the same issue when it comes to transaction number with escape character ('') which causes Templating Engine Expand method to break !!
Until the fix for the above said bugs released is there any go-around to handle without card rendering being broken !
Thanks...

Hi @arvindkannan - the workaround I used was to write my own custom Adaptive Expression and replace the escape string characters
                AdaptiveExpressions.Expression.Functions.Add("stringFormat", (args) =>
                {
                    string returnVal = args[0] ?? string.Empty;
                    returnVal = returnVal.Replace(@"\", @"\\").Replace(@"""", @"\""");
                    return returnVal;
                });

then use that inside my template like this:
               "text": "${stringFormat(stringToReplace)}"

Please reactivate if you're still seeing this issue in the latest templating package.


fix: typo in config template

found a very small typo while using Verdaccio (great tool!). here's a drive-by fix! :D

Thanks 😊 my typos never get old.


Add Support for Scala 2.13 in Spark 3.4.1

What changes were proposed in this pull request?

Add a Scala 2.13 Dockerfile to the Spark 3.4.1 sub-folder for building and tagging 3.4.1-scala2.13-java11-ubuntu, 3.4.1-scala2.13, scala2.13 image.
Why are the changes needed?

To provide support for projects using Scala 2.13 and Spark 3.4.1.
Does this PR introduce any user-facing change?

Yes, this would add new Docker tags: 3.4.1-scala2.13-java11-ubuntu, 3.4.1-scala2.13, scala2.13.
How was this patch tested?

Ran ./add-dockerfiles.sh 3.4.1 in my local
Once I verified the appropriate directory, Dockerfile, and entrypoint.sh were generated in 3.4.1/scala2.13-java11-ubuntu I then built an image in my local: docker build --platform linux/amd64 -t <image>:<tag> 3.4.1/scala2.13-java11-ubuntu/
Verified the correct binary was downloaded in the 2.13 image: https://archive.apache.org/dist/spark/spark-3.4.1/spark-3.4.1-bin-hadoop3-scala2.13.tgz.
Ran spark-shell and verified versions (2.13): docker run -it <image>:<tag> /opt/spark/bin/spark-shell

Welcome to
____              __
/ /  ___ / /
\ / _ / _ `/ __/  '/
// .__/_,// //_\   version 3.4.1
//
Using Scala version 2.13.8 (OpenJDK 64-Bit Server VM, Java 11.0.19)

I also built the scala2.12 image in my local: docker build --platform linux/amd64 -t <image>:<tag> 3.4.1/scala2.12-java11-ubuntu/.
Verified the correct binary was downloaded in the 2.12 image: https://archive.apache.org/dist/spark/spark-3.4.1/spark-3.4.1-bin-hadoop3.tgz
Ran spark-shell and verified versions (2.12): docker run -it <image>:<tag> /opt/spark/bin/spark-shell

Welcome to
____              __
/ /  ___ / /
\ / _ / _ `/ __/  '/
// .__/_,// //_\   version 3.4.1
//
Using Scala version 2.12.17 (OpenJDK 64-Bit Server VM, Java 11.0.19)

@Yikun There, I think that should address each of your comments. Let me know otherwise. Thanks for taking a look at this!

@Yikun Back from vacation, so just catching up again here. It looks like the failure in the workflow stems from this file not found:
Exception in thread "main" java.nio.file.NoSuchFileException: /opt/spark/examples/jars/spark-examples_2.12-3.4.1.jar
I am trying to follow the workflow logic, but some of these dependencies relating to Kubernetes look like they are not controlled by this project. Can you provide any insights on this?

The CI should be fixed by https://github.com/apache/spark-docker/pull/53 , you can rebase after it merge.

@Yikun After syncing my fork with the changes merged to master branch since this PR initiated, I believe this is ready for a review. However, considering that v3.3.3 and 3.5.0 were added recently, would it make sense to include support of Scala 2.13 to these latest versions as well? Or all versions?

how do I install pyspark 3.4.1 with scala 2.13? please help. I only get scala 2.12

Also running into this issue

It would be great if we could support old versions instead of only spark 3.5+.
I need an image that supports scala 2.13 and spark 3.4.2.
Currently, I am building my own image based on this PR. Hopefully the official image will be published soon.


smart merge does not merge loaders if include is defined

I'm trying to prepend the loader ['style-loader'] to my dev config. The problem is that, if include is defined in my common file, the loader is not added. When I remove include, it works.
Common:
{
  module: {
    rules: [{
        test: /\.?global.css$/,
        include: /src/,
        use: ['css-loader', 'postcss-loader']
      }]
  }
}

Dev:
const merge = require('webpack-merge').smartStrategy({
  entry: 'prepend',
  'module.rules.use': 'prepend'
})

merge(common, {
  module: {
    rules: [{
        test: /\.?global.css$/,
        use: ['style-loader']
      }]
  }
})

Expected:
{
  test: /\.?global.css$/,
  include: /src/,
  use: [ 'style-loader', 'css-loader', 'postcss-loader' ]
}

Actual result:
{
  test: /\.?global.css$/,
  include: /src/,
  use: [ 'css-loader', 'postcss-loader' ]
}

When removing include from common, the result is expected.

Can you PR a fix? Thanks.

Hi, i see bunch of tests which tell me that this is normal behavior
11) should not merge to parent if there is no include for loaders #68
12) should not merge to parent if there is no exclude for loaders #68

Should we add some explanation about this to README.MD?

@andrewMuntyan Yup, please PR.

Changing the behavior would be a breaking change but we could possibly do that as well. Just a new major version.

@bebraw Personally, I like the current implementation. And #122 should have list all current related rule fields.

I'll drop support for merge.smart and merge.smartStrategy in the next major version as it's tricky to support due to different webpack versions and overall complexity.
Can you rewrite the configuration in terms of regular merge or mergeStrategy? I use solely merge for all of my personal work as it's predictable.


Undefined offset: 0 phpfmt.php on line 6538

Format error:
PHP Notice:  Undefined offset: 0 in phar:///Users/Foobar/Library/Application Support/Sublime Text 3/Packages/CodeFormatter/codeformatter/lib/phpbeautifier/fmt.phar/phpfmt.php on line 6538
Notice: Undefined offset: 0 in phar:///Users/Foobar/Library/Application Support/Sublime Text 3/Packages/CodeFormatter/codeformatter/lib/phpbeautifier/fmt.phar/phpfmt.php on line 6538

This is because of syntax error in your code. try updating some other php file it will work

Some of phpfmt issues will be fixed via https://github.com/akalongman/sublimetext-codeformatter/issues/355#issuecomment-381722577


Support for vertical diagrams

The visual language rules allow for horizontal and vertical diagrams.
Is it possible to implement a simple switch to choose between these layout options?

I took a quick look at this today, there's a simple switch in terms of the underlying options we give to dagre-d3, but doing so breaks the offset paths we use to draw ownership & control separately. Specifically the offset doesn't work any more, so we just get a single line instead of two visible.
Technically, it seems like there's some divide-by-zero issue, either in code which turns our SVG path into a bezier curve, or in the code that then offsets the curve.
The solution to this seems non-trivial, I think it's basically because dagre-d3 doesn't draw continuous curves, they have little straight bits coming out of the nodes. I'm not sure why this isn't a problem on horizontal layouts though.


rEFInd not working

manage to install rEFInd boot what ever I do it always boot to windows unless I boot to rEFInd itself on bios, got this error by checking Konsole

manage to find a way to make this work for now, thanks for the response.


Move to a CG?

Given @bvandersloot-mozilla's co-authorship of the Lightweight FedCM proposal, which seems to depend on this, I suspect there's enough support to move this proposal to a CG.

Ah, my bad for linking here from the TAG review response, we should probably deprecate this repo. We did get this adopted in Privacy CG but @martinthomson gave us guidance to merge it as an explainer into the main Storage Access repo instead of transferring the repo, IIRC. So I moved it here: https://github.com/privacycg/storage-access/blob/main/explainers/storage-access-for-fedcm.md
It does sound like a separate repo might be nice but yeah, I tried to follow chairs guidance for now. Happy to improve it.

Yeah, no need for a separate repo. Can you update your TAG review to point at the PrivacyCG version of this? (I'd do it, but I might miss things that changed between the two versions.


Fix device duplication in rootfs preparation

ref : https://github.com/containers/youki/issues/2433
We filter the default devices by paths of added_devices to prevent duplication.

Codecov Report

Merging #2438 (54b1749) into main (fd25afb) will decrease coverage by 0.01%.
Report is 6 commits behind head on main.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2438      +/-   ##
==========================================
- Coverage   65.87%   65.87%   -0.01%
==========================================
  Files         133      133
  Lines       16866    16868       +2
==========================================
  Hits        11111    11111
- Misses       5755     5757       +2


Extend AccountProcedureIndexMap with foreign procedures

This PR reworks the AccountProcedureIndexMap to store the index map of the foreign accounts.
WiP

Current state is extremely raw, but I managed to rework the test to make sure that current approach is working.
As far as I can see, now the main question is how to provide the account code commitments to the host properly, because current version is very straightforward and crude, we certainly should find a more elegant solution.

@bobbinth based on your comments I have a question how should we provide the information about foreign account (including foreign procedures).
Right now it works like this:

I construct the advice inputs with all the foreign account data, including the code commitment mapped with the account procedures (in the get_mock_advice_inputs()) and provide it to the TransactionContext, which then is provided to the TransactionExecutor as a DataStore. That's why I created this get_advice_inputs() function in the DataStore — I had to get somehow the advice inputs which was provided to the TransactionContext.
TransactionKernel::prepare_inputs() then combines all the inputs from the TransactionContext: it merges the advice inputs with the transaction inputs and arguments, getting the final advice inputs.
This inputs then provided to host along with an array of foreign account code commitments (first I tried to use the account ID, but that turns out to be an excess information — we need to use code commitment to get the procedures anyway, so why not to use it as an "ID" of the account's code everywhere (especially since it is an ID of the code)). Using code commitments and advice recorder I can obtain all required information to construct the procedures map.

But I see that this scheme should be reworked, and based on your comments the main think we should define is how do we want to provide the information about entire foreign account to the executor. Now it passed through the advice inputs, but since we shouldn't provide the foreign account procedure data using them, should we change the way we do that for the entire foreign account? Or otherwise, will we have to provide foreign account data except the procedures through the advice inputs, and procedures data through, for example, transaction arguments separately?
For now I think we can provide the foreign account data through the transaction arguments instead of the advice inputs — that would allow us to roll back the changes in the DataStore but still provide the foreign account data to the final advice inputs. For that we just need to add the function in the TransactionContextBuilder to provide the data to the advice map (which then will become a transaction args).

What we need to do is replace the TODO on lines 101 - 102 above to keep track of all accounts that have been loaded into the executor. For this, we'll probably need to add a new field to the executor maybe something like BTreeMap<AccountId, AccountProcedureIndexMap>. Another option would be to modify AccountProcedureIndexMap to keep track of the maps for multiple accounts.

But this approach will allow us to keep track only of account procedure data. But can we use it to store the entire account? That will solve the issue about how to provide the account data not using the advice provider. In that case we will be able to add the account code to the mast store and simultaneously store the maps representing the whole account data in the data store

But I see that this scheme should be reworked, and based on your comments the main think we should define is how do we want to provide the information about entire foreign account to the executor. Now it passed through the advice inputs, but since we shouldn't provide the foreign account procedure data using them, should we change the way we do that for the entire foreign account? Or otherwise, will we have to provide foreign account data except the procedures through the advice inputs, and procedures data through, for example, transaction arguments separately?

I've created https://github.com/0xPolygonMiden/miden-base/issues/938 to solve this long-term, but for now we can go with a simpler solution.

But this approach will allow us to keep track only of account procedure data. But can we use it to store the entire account? That will solve the issue about how to provide the account data not using the advice provider. In that case we will be able to add the account code to the mast store and simultaneously store the maps representing the whole account data in the data store

We should still use the current approach for passing account data to the transaction executor (i.e., via the advice inputs). But this approach does not include passing full account code - and for this I created load_account_code() method.
One of the things we can do in this method is to track all code commitments for loaded account code and then pass it to the host the way you do now. So a big part of what you have now should still work - but we do need to get rid of DataStore::get_advice_inputs() method (the DataStore interface does not need to change in this PR).

I'm not sure what to do with tests: on one hand our previous version was able to check the memory status after the foreign procedure invocation, but on the other it was exceptionally useless in terms of checking the fact whether the correct foreign procedure was executed.
Probably the best option will be to leave the test_load_foreign_account_basic() and test_load_foreign_account_twice() tests as they were before this PR just to check the correctness of the memory layout after FPI, and add a new test which essentially will be the same as the current test_load_foreign_account_twice() test (perhaps only the transaction code could be simplified to execute only one foreign procedure).

In this last commit I roll back the changes made to the test, since it makes sense to move them to the other PR, which will close the #917.


Sharing is Caring Power App Sample - MSeerup

Category

[x] New Sample

What's in this Pull Request?
Power Apps Calendar Component

David and Hugo, Thank you so much for the session

Thanks for your pull request, @MSeerup! You did it!!!!.
Keep it going!


VisIt 3.2.1 script complains

Describe the bug
At least on Ubuntu 21 when running
$ visit
one gets

/opt/visit/bin/visit: 121: [[: not found

Helpful additional information

Did VisIt crash: no
Did you get wrong results:  no

To Reproduce
Just run visit
Desktop

OS and version: Ubuntu 21
VisIt Version: 3.2.1

@cessenat can you by chance change this line at the top of /opt/visit/bin/visit from...
#!/bin/sh

to
#!/bin/sh -x

And then type in the command...
script

That will start a special shell...then try running VisIt again and let it fail.
Then, exit from the special shell you are in. It will wind up saying something like file saved to typescript. Then rename typescript to typescript.txt and attach that file here.
Also, don't forget to undu your change to visit script above.

This was resolved with commits #16985, #16998. The relevant change is line 135 of this code block  https://github.com/visit-dav/visit/blob/bbc50d3d74a9cd221dedaa0e9d08a64ac3e8aeac/src/bin/frontendlauncher#L132-L138

Oh sorry for the fuss, thanks @brugger1 and @markcmiller86 , Eric's line 121 (135 in the change) makes the job.


How to set max resposne header limit

I use envoy as a reverse proxy but I found that it has a max response header limit. I use envoy to proxy an upstream server, which will use this codes to add a lot of response headers:
func handleRequest(ctx *gin.Context) {
	headerNum := 97
	for i := 0; i < headerNum; i ++ {
		ctx.Writer.Header().Add("X", fmt.Sprintf("%03d", i))
	}
	ctx.String(http.StatusOK, "ok")
}

And I noticed that if I set headerNum to 98 and request envoy proxy for accessing this upstream server, I will get an error and have a 503 status code:
upstream connect error or disconnect/reset before headers. reset reason: connection termination

It seems that envoy has a limit for the number of response header. So where can I set this configuration?
Also If I use ext_authz to send lots of headers from external auth server to upstream servers, this header limit can also influence this function.

@weixiao-huang Http connections have an option max_headers_count to it. See max_headers_count and max_response_headers_count.

You set it through common_http_protocol_options in your cluster configuration

It works! Thanks for your answer!


[Flutter GPU] Windows: UI thread hangs indefinitely on RenderPass::Draw.

Noticed this while investigating https://github.com/bdero/flutter_scene/issues/30#issuecomment-2395753547.

It's the pipeline future:

We can get around the reactor queueing and resolve it immediately by posting a raster task.
But this is only necessary when a new pipeline actually needs to be created. Need to add a way to check for the presence of a pipeline in the library without triggering a new pipeline creation.
@@ -134,8 +140,27 @@ RenderPass::GetOrCreatePipeline() {
   render_pipeline_->BindToPipelineDescriptor(*context.GetShaderLibrary(),
                                              pipeline_desc);

-  auto pipeline =
-      context.GetPipelineLibrary()->GetPipeline(pipeline_desc).Get();
+  std::shared_ptr<impeller::Pipeline<impeller::PipelineDescriptor>> pipeline;
+
+  if (context.GetBackendType() == impeller::Context::BackendType::kOpenGLES) {
+    // Get the pipeline on the raster thread.
+    auto dart_state = flutter::UIDartState::Current();
+    std::promise<
+        std::shared_ptr<impeller::Pipeline<impeller::PipelineDescriptor>>>
+        pipeline_promise;
+    auto pipeline_future = pipeline_promise.get_future();
+    fml::TaskRunner::RunNowOrPostTask(
+        dart_state->GetTaskRunners().GetRasterTaskRunner(),
+        fml::MakeCopyable([promise = std::move(pipeline_promise),
+                           context = GetContext(), pipeline_desc]() mutable {
+          promise.set_value(
+              context->GetPipelineLibrary()->GetPipeline(pipeline_desc).Get());
+        }));
+    pipeline = pipeline_future.get();
+  } else {
+    pipeline = context.GetPipelineLibrary()->GetPipeline(pipeline_desc).Get();
+  }
+
   FML_DCHECK(pipeline) << "Couldn't resolve render pipeline";
   return pipeline;
 }

Next issue is with shader compilation:
[ERROR:flutter/impeller/renderer/backend/gles/pipeline_library_gles.cc(74)] Break on 'ImpellerValidationBreak' to inspect point of failure: Failed to compile vertex shader for '' with error:
ERROR: 0:1: '120' : client/version number not supported

Shader source was:
#version 120
#ifdef GL_ARB_shading_language_420pack
#extension GL_ARB_shading_language_420pack : require
#endif

struct FrameInfo
{
    mat4 mvp;
    vec4 color;
};

uniform FrameInfo frame_info;

varying vec4 v_color;
attribute vec2 position;

void main()
{
    v_color = frame_info.color;
    gl_Position = frame_info.mvp * vec4(position, 0.0, 1.0);
    gl_Position.z = 2.0 * gl_Position.z - gl_Position.w;
}

Fixed the shader issues. Now I'm crashing on a div by zero while looping through the uniforms:

It was a 1 character typo!
diff --git a/lib/gpu/shader_library.cc b/lib/gpu/shader_library.cc
index 78d130ca07..ea00f5ba79 100644
--- a/lib/gpu/shader_library.cc
+++ b/lib/gpu/shader_library.cc
@@ -225,7 +221,7 @@ fml::RefPtr<ShaderLibrary> ShaderLibrary::MakeFromFlatbuffer(
                 .byte_length =
                     static_cast<size_t>(struct_member->total_size_in_bytes()),
                 .array_elements =
-                    struct_member->array_elements() != 0
+                    struct_member->array_elements() == 0
                         ? std::optional<size_t>(std::nullopt)
                         : static_cast<size_t>(struct_member->array_elements()),
             });

Now the CommandBuffer is failing to submit:
The following _Exception was thrown during paint():
Exception: Failed to submit CommandBuffer

The relevant error-causing widget was:
  CustomPaint
  CustomPaint:file:///C:/Users/bdero/projects/flutter/apps/flutter-gpu-examples/lib/triangle.dart:216:9

When the exception was thrown, this was the stack:
#0      CommandBuffer.submit (package:flutter_gpu/src/command_buffer.dart:24:7)
#1      TrianglePainter.paint (package:gputest/triangle.dart:159:19)

Got it working:

But it's crashing with an access violation while binding textures.

Okay, got it working. I was feeding the metadata incorrectly.

FYI @chinmaygarde


Make line-expr more linear

Implemented two new transformations for linear expressions:

only allow variables on lhs of comparisons
only allow constants on rhs of comparisons

Some solvers (such as Exact) require these types of linear constraints a input.

Looks good to me

Tnx!


scalac gives noisey warnings with small compile classpaths

See: https://issues.scala-lang.org/browse/SI-9673
For instance:
07:09:29 warning: Class org.apache.commons.logging.Log not found - continuing with a stub.
07:09:29 one warning found
which will be added to the runtime classpath, but is indeed not on the compile time classpath.

I don't see anything we can do here but hope scalac improves.

I added this:
https://github.com/scala/scala/pull/5268
and am using an internal build of that which solves the issue. Maybe we can get it into mainline.

This was merged into mainline in 2.12:
https://github.com/scala/scala/pull/5297
I may send a PR for 2.11.9 or maybe the typelevel compiler, but for now, I'm closing.


Banner - Website is optimized for desktop

Our webpage is optimized for desktop. Please add a banner, if visited on mobile that says website is optimized for desktop. As an example, have a look at: https://researchrabbitapp.com/home

Maybe check on which resolution the website still works, so this issue can be linked to: https://github.com/TUB-DVG/wissen-digital-ewb/issues/167

I've clicked through all pages and found that almost all of them work fine on mobile. There are some pages that are broken on mobile such as these:

Environmental page columns

Criteria catalog

Business model details

Note that a lot of pages uses the layout like the screenshot above of business models - a simple fix would be just to wrap it on mobile.
In conclusion, I don't think we even need to show the banner as a few CSS fixes should be enough.

Can you suggest a fix @nlongn22 and present your idea in the next team meeting?

@nlongn22 can you link the pull request when you are ready? Thank you!


Updated to import the EmptyOTFCompiler from the new location

Updated to import the EmptyOTFCompiler from the new location to suppress the import warning.

Oops! I updated the old deprecated version. Ignore this!

thanks anyway :)
(this repo will not get any updates...)


Flutter: User friendly error handeling

Create good system that can handle system errors and bad api request.
The system could show a snackbar with an error message corresponding the type of error.

The app now shows errors from the server and app through a snackbar pop up. It might be better to create custom error messages for the user than just showing the exception. With the custom message it also would be possible to show the message in the same language as the device, currently it is always English.


Cannon-es support

Using the maintained Cannon-es version of Cannon, with Babylon.js results in the following error.
import * as Cannon from 'cannon-es';
window.CANNON = Cannon;

TypeError: this.world.add is not a function. (In 'this.world.add(impostor.physicsBody)', 'this.world.add' is undefined)

135 | this.world.addEventListener("preStep", impostor.beforeStep);
136 | this.world.addEventListener("postStep", impostor.afterStep);
137 | impostor.physicsBody.addShape(shape);
> 138 | this.world.add(impostor.physicsBody);
^  139 |
140 | //try to keep the body moving in the right direction by taking old properties.
141 | //Should be tested!

This is also discussed on the Babylon.js forum and on the Cannon-es github:

https://forum.babylonjs.com/t/how-does-react-use-the-cannon-js-physics-engine/10275/9?u=tim-montague
https://github.com/pmndrs/cannon-es/issues/68

this.world.add(impostor.physicsBody); should be this.world.addBody(imposter.phsyicsBody);
https://github.com/pmndrs/cannon-es/issues/68#issuecomment-762506619

this.world.add(impostor.physicsBody); should be this.world.addBody(imposter.phsyicsBody);
https://github.com/pmndrs/cannon-es/issues/68#issuecomment-762506619

@tim-montague wanna do a PR to help moving the needle?

Up?

Cannon and cannon-es have already some important changes.
For example you have to use world.addBody() instead of world.add()

Yup, all deprecated methods were removed in cannon-es, world.add() was already deprecated in cannon.js in favor fo world.addBody().
If you replace the function call, Babylon.js + cannon-es would work just fine together, here is a basic example usage:
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>cannon.js + babylon.js - basic integration example</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
    <style>
      body {
        margin: 0;
        padding: 0;
      }
      canvas {
        width: 100vw;
        height: 100vh;
      }
    </style>
  </head>
  <body>
    <canvas id="renderCanvas"></canvas>
    <script<EMAIL_ADDRESS>    <script type="module">
      import * as CANNON from<EMAIL_ADDRESS>
      // Canvas
      const canvas = document.querySelector('#renderCanvas')

      // Engine
      const engine = new BABYLON.Engine(canvas, true)
      window.addEventListener('resize', () => engine.resize())

      // Scene
      const scene = new BABYLON.Scene(engine)

      // Camera
      const camera = new BABYLON.ArcRotateCamera(
        'camera',
        -Math.PI / 2,
        Math.PI / 2.5,
        3,
        new BABYLON.Vector3(0, 0, 0),
        scene
      )
      camera.attachControl(canvas, true)

      // Light
      const light = new BABYLON.HemisphericLight('light', new BABYLON.Vector3(0, 1, 0), scene)

      // Box
      const box = BABYLON.MeshBuilder.CreateBox('box', {}, scene)

      // Physics
      window.CANNON = CANNON // force the usage of cannon-es
      const gravity = new BABYLON.Vector3(0, 0, 0)
      scene.enablePhysics(gravity)

      // Box body
      box.physicsImpostor = new BABYLON.PhysicsImpostor(box, BABYLON.PhysicsImpostor.BoxImpostor, { mass: 1 }, scene)
      box.physicsImpostor.setAngularVelocity(new BABYLON.Quaternion(0, 10, 0, 0))
      box.physicsImpostor._physicsBody.angularDamping = 0.5

      engine.runRenderLoop(() => {
        scene.render()
      })
    </script>
  </body>
</html>


Instrument async code with tracing spans

Concurrent logs now look like this:

This allows us to see through the noise and form a sequence of events from concurrent logs.
Possibly we should be using a random id instead of an incrementing value. - Discussed with kuangda: incrementing will be fine for now
Relevant docs: https://docs.rs/tracing/0.1.29/tracing/trait.Instrument.html

That library is way too inflexible to do anything with:

No way to assert on spans (What this PR is actually changing)
No way to assert on part of a log. e.g. we cant write an assertion for New connection from <IP_ADDRESS>:38602 because the port is random.
No way to view the actual log after a failure.

The idea is cool but I think we'll have to revisit that later when its more than just a prototype.


Error: handle is not a Buffer

/Users/xiaofeng/working/jinyinwu/official-website/jinyinwu/frontend/node_modules/ssh2-streams/lib/sftp.js:879
throw new Error('handle is not a Buffer');
^
Error: handle is not a Buffer
at SFTPStream.writeData (/Users/xiaofeng/working/jinyinwu/official-website/jinyinwu/frontend/node_modules/ssh2-streams/lib/sftp.js:879:11)
at SFTPWrapper.write (/Users/xiaofeng/working/jinyinwu/official-website/jinyinwu/frontend/node_modules/ssh2/lib/SFTPWrapper.js:48:23)
at /Users/xiaofeng/working/jinyinwu/official-website/jinyinwu/frontend/node_modules/scp2/lib/client.js:195:16
at iterate (/Users/xiaofeng/working/jinyinwu/official-website/jinyinwu/frontend/node_modules/scp2/node_modules/async/lib/async.js:146:13)
at Object.async.eachSeries (/Users/xiaofeng/working/jinyinwu/official-website/jinyinwu/frontend/node_modules/scp2/node_modules/async/lib/async.js:162:9)
at _write (/Users/xiaofeng/working/jinyinwu/official-website/jinyinwu/frontend/node_modules/scp2/lib/client.js:193:15)
at /Users/xiaofeng/working/jinyinwu/official-website/jinyinwu/frontend/node_modules/scp2/lib/client.js:244:11
at SFTPStream._transform (/Users/xiaofeng/working/jinyinwu/official-website/jinyinwu/frontend/node_modules/ssh2-streams/lib/sftp.js:387:17)
at SFTPStream.Transform._read (_stream_transform.js:167:10)
at SFTPStream._read (/Users/xiaofeng/working/jinyinwu/official-website/jinyinwu/frontend/node_modules/ssh2-streams/lib/sftp.js:170:15)
at SFTPStream.Transform._write (_stream_transform.js:155:12)
at doWrite (_stream_writable.js:333:12)
at writeOrBuffer (_stream_writable.js:319:5)
at SFTPStream.Writable.write (_stream_writable.js:246:11)
at Channel.ondata (_stream_readable.js:555:20)
at emitOne (events.js:96:13)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

目标服务器上对该文件没有写权限


Add leaders to the title of standup calendar events for the next few weeks

Did this for all of the standup events until 11/06.


Constant-time square root

This un-deprecates Uint::sqrt and provides a constant-time implementation. (Unfortunately this makes it non-const, so it's technically a breaking change; I don't see a way to handle zero without using checked_div, which is why this can't be const. For const contexts, Uint::sqrt_vartime can still be used.) The algorithm is just a slight modification of Algorithm 1.13 of Brent-Zimmermann as used in sqrt_vartime: instead of iterating until xn increases, we just iterate a fixed number of times (logarithmic in the number of bits) and then take the minimum of guess and xn at the end.
The reason this works is because of two properties of this algorithm that I prove here: ct_sqrt.pdf. (We can upload this somewhere more permanent—not sure where would be best. Also, it'd be great if someone could look this over to make sure I didn't make any mistakes in the proof.) First, we have an upper bound the number of iterations required. Second, once the algorithm reaches the desired value sqrt(self), it will either repeat sqrt(self) or it will alternate between sqrt(self) and sqrt(self) + 1; thus, we can return the minimum of guess and xn.
I also removed some dead code in Uint::sqrt_vartime: unless I'm really missing something here, the first while loop can never run because the initial value of guess is defined such that it's never an underestimate.

We can upload this somewhere more permanent—not sure where would be best.

arXiv perhaps?

Sure, I can upload it to arXiv (cs.DS probably?). I'd like to wait until at least one other person has looked it over it reduce the chance of errors slipping through, but after that I'll go ahead.

cc @fjarri

I don't see a way to handle zero without using checked_div, which is why this can't be const

I am not sure I see the problem here, you can always use the underlying Uint::ct_div_rem() and use the returned CtChoice to conditionally select the result.

I am not sure I see the problem here, you can always use the underlying Uint::ct_div_rem() and use the returned CtChoice to conditionally select the result.

I just overlooked that, so there's no obstruction to keeping it const. Actually, it looks like Uint::ct_div_rem already internally does that conditional selection (so the returned quotient is zero if rhs is zero); can that behavior be relied on or is it an internal implementation detail of ct_div_rem? For reference, the relevant lines of code in ct_div_rem:
    pub(crate) const fn ct_div_rem(&self, rhs: &Self) -> (Self, Self, CtChoice) {
        let mb = rhs.bits_vartime();
        // [...]
        let is_some = Limb(mb as Word).ct_is_nonzero();
        quo = Self::ct_select(&Self::ZERO, &quo, is_some);
        (quo, rem, is_some)
    }

can that behavior be relied on or is it an internal implementation detail of ct_div_rem

I think it should be treated as an implementation detail.

Also:

I'll go through your proof in a few days, looks like it'll require some time and concentration :)
Perhaps a proptest (see tests/proptests.rs) would be good to add here, for both vartime and const-time versions.

Okay, I just made the necessary changes so sqrt and wrapping_sqrt are const functions again, and I modified the wrapping_sqrt proptest to test both the vartime and constant-time versions. However, as discussed above, it's still not actually constant-time yet because ct_div_rem (and hence also wrapping_div) are currently only constant-time for fixed divisor.

Okay, I added an implementation of division that's constant-time in both arguments, and moved the old division implementation (that's constant-time only for fixed divisor) to _vartime functions (div_rem_vartime, wrapping_div_vartime, etc). If this has been implemented correctly then Uint::sqrt should be fully constant-time now.
My constant-time division implementation is a straightforward modification of the vartime algorithm, just replacing vartime methods with their constant-time variants, and running for the maximum number of iterations with a ct_select to avoid modifying the outputs beyond when the loop would've terminated in the vartime version. I suspect it's possible to do this more efficiently but I'll put this out there as a starting point. How's it look?

Sorry for the delay, I was kind of swamped at work. I've read the paper, and it looks sound to me (although a bit too terse :).  Would be nice to have a reference in the comments to the code.
I've also got some relatively minor comments to the code.

I've read the paper, and it looks sound to me (although a bit too terse :).  Would be nice to have a reference in the comments to the code.

I think with a bit more polish on it you could throw it on the IACR ePrint service.

Merged in #376


Localization update

This PR was auto-generated with the localization pipeline build.

Dude! What's this?


Unnecessary  toString methods deleted

FEATURE REQUEST

Please describe the feature you are requesting.
Unnecessary  toString methods deleted

Provide any additional detail on your proposed use case for this feature.

Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?
nice-to-have

If there are some sub-tasks involved, use -[] for each sub-task and create a corresponding issue to map to the sub-task:

sub-task1-issue-number: sub-task1 description here,
sub-task2-issue-number: sub-task2 description here,
...

Merged


Uniform result and result-collection

This was pointed out by @davewasmer that result and result-collection
is not uniform. Doing this small change removes some unnecessary code.

GetEach relies on prototype extensions.

True. Content is set appropriately (see here)

Nice


Realm DB Crash

iOS 13.7.0 Crash
Crashed: com.apple.main-thread
0  CoreFoundation                 0x191525afc -[__NSArrayM insertObject:atIndex:].cold.2 + 16
1  CoreFoundation                 0x19139ebc8 -[__NSArrayM removeObjectsInRange:] + 1090
2  Readict                        0x104e85564 changeArray(RLMArray*, NSKeyValueChange, unsigned long, void () block_pointer) + 187 (RLMArray.mm:187)
3  Readict                        0x104e8542c -[RLMArray insertObject:atIndex:] + 266 (RLMArray.mm:266)
4  Readict                        0x104e84698 -[RLMArray addObject:] + 80 (RLMArray.mm:80)
5  Readict                        0x104e845b4 -[RLMArray addObjects:] + 75 (RLMArray.mm:75)
6  Readict                        0x104e9d030 -[RLMObjectBase setValue:forUndefinedKey:] + 194 (RLMObjectBase.mm:194)
7  Foundation                     0x1917c4c7c -[NSObject(NSKeyValueCoding) setValue:forKey:] + 316
8  Readict                        0x104a5d684 Object.unmanagedCopy() +<PHONE_NUMBER> (:4335425156)
9  Readict                        0x10495c2ac specialized SSFReadStartViewController.readEngineDidAppear(:bookModel:) + 800 (SSFReadStartViewController.swift:800)
10 Readict                        0x1048b26a4 SSFReadEngine.viewDidAppear(:) + 147 (SSFReadEngine.swift:147)
11 Readict                        0x1048b2814 @objc SSFReadEngine.viewDidAppear(_:) +<PHONE_NUMBER> (:4333676564)
12 UIKitCore                      0x194f8dc4c -[UIViewController _setViewAppearState:isAnimating:] + 876
13 UIKitCore                      0x194f8e698 -[UIViewController _endAppearanceTransition:] + 232
14 UIKitCore                      0x194eef664 -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 1140
15 UIKitCore                      0x194ee4eb4 __49-[UINavigationController _startCustomTransition:]_block_invoke + 264
16 UIKitCore                      0x194fb08c0 -[_UIViewControllerTransitionContext completeTransition:] + 112
17 Readict                        0x104aa458c thunk for @escaping @callee_guaranteed (@unowned Bool) -> () +<PHONE_NUMBER> (:4335715724)
18 UIKitCore                      0x195aba814 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 600
19 UIKitCore                      0x195a8dad4 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 248
20 UIKitCore                      0x195a8dffc -[UIViewAnimationState animationDidStop:finished:] + 248
21 QuartzCore                     0x198132e84 CA::Layer::run_animation_callbacks(void*) + 276
22 libdispatch.dylib              0x19116f5ac _dispatch_client_callout + 20
23 libdispatch.dylib              0x19117b7d4 _dispatch_main_queue_callback_4CF + 832
24 CoreFoundation                 0x1914488d4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16
25 CoreFoundation                 0x19144358c __CFRunLoopRun + 1692
26 CoreFoundation                 0x191442bc8 CFRunLoopRunSpecific + 480
27 GraphicsServices               0x19b82b5cc GSEventRunModal + 164
28 UIKitCore                      0x1955f5744 UIApplicationMain + 1936
29 Readict                        0x10481f488 main + 14 (main.m:14)
30 libdyld.dylib                  0x1912bf384 start + 4

@enze0923 Can you please fill out the issue template in full. We cannot distinguish what the error may be from the information you provided.

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.


Tiller install

It's not clear from reading this if it can be used to install Tiller.
First of all, it says You can use the task to install/update Tiller.  OK, but how do you do this?  There is an argument called install, but the documentation then doesn't have an entry for that - it only has one for Install if release not present, and that sounds like it's for installing charts, not Tiller.
Furthermore, it says Helm Tool installer task can be used to get the right version of Helm on the agents.  Does this mean you need to run this task first before using the Helm Deploy task?  Or just if you need a different version?  Does the Helm Deploy already have Helm installed?  If so, what happens when you run the Helm Tool installer first task on the agent?
Clear documentation would save a lot of trial and error..

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: fc7eeb7f-4e6b-8fee-1d7f-582cfb018b02
Version Independent ID: 00fb3082-1069-9060-012c-0b6d75ef120b
Content: Package and deploy Helm Charts
Content Source: docs/pipelines/tasks/deploy/helm-deploy.md
Product: devops
GitHub Login: @erickson-doug
Microsoft Alias: dastahel

nevermind - you can install Tiller using 'helm init'.  This can be closed.

@timwebster9 Thanks for letting us know, I am closing this issue and passing this feedback along to the author.


feat(Label_Ecoder):Support of Label Encoder in Multi Target Task

Description: Tried to implement Label Encoder for categorical features in a Multi-target Classification/Regression Scenario. (This is an ongoing issue)
Changes Made: There are 3 files that were edited

model.py.jinja and model_train.py.jinja
evaluation.py.jinja

In the first case, I have added the logic where whenever a catgorical object is found in the features, we implement the Label Encoder thus ensuring all the categorical features are encoded. This solution proposed works for the multi-target scenario. But fails in the scenario where XGB Classifier is used.
I have created a test experiment script as below
from sapientml import SapientML
import pandas as pd
from sklearn.metrics import f1_score
from sklearn.model_selection import train_test_split

cls = SapientML(
        target_columns=["sex","survived","pclass"],#,"pclass","sibsp"],
                task_type=None,  # suggested automatically from the target columns
               # adaptation_metric='auc'
                )

train_data = pd.read_csv("https://github.com/sapientml/sapientml/files/12481088/titanic.csv")
train_data, test_data = train_test_split(train_data)
y_true = test_data[["sex","survived","pclass"]].reset_index(drop=True)
test_data.drop(["sex","survived","pclass"], axis=1, inplace=True)
cls.fit(train_data, output_dir="./outputs")
y_pred = cls.predict(test_data)

Upon running this I get the below error
ValueError: Invalid classes inferred from unique values of y.  Expected: [0 1 2], got [1 2 3]
The above error is specific to XGBClassifier. Upon further investigation I found that Label Encoder does not works well with the latest version of XGBClassifier hence the issue. In this case the solution would be to use other encoding types like One Hot Encoder in the scenario where we have our selected model as XGBClassifier
Below is the reference link of the version issue:
https://stackoverflow.com/questions/71996617/invalid-classes-inferred-from-unique-values-of-y-expected-0-1-2-3-4-5-got
In the second case, when the evaluation metric is not mentioned, sapientML considers the F1 score by default as the metric. To support multi target, there was a need to change the F1 score metric evaluation. I used a for loop to go throw individual target columns and calculate it's F1 score. In this way I was able to solve the evaluation metric error.
Further discussion and course of action needs to be evaluated

@arima-tsukasa This PR related to your work. Please watch this PR as long as possible.


Add Birthday Music

This issue proposes adding birthday music that plays when the page is opened.

Nice music for reference:
https://www.youtube.com/watch?v=dwohWb650NM


Add common dimensions across compliance queries and migrate queries to service.sp files. Closes #39

…ompliance queries
Checklist

[ ] Issue(s) linked

LGTM

@madhushreeray30 could you please update the docs/index.md file with the common dimension examples?


Config screen question

So you mentioned forge doesn't have a config screen but what if you used the configured mod for the config screen? Asking cause I don't know if that's something the mod author would have to implement to their mod or not, haven't tested yet

Never mind. Tested it. Works


Epic: fully eliminate latency impact of walredo spawning

This is a spin-off from Epic pageserver: spawning walredo process is slow #6565
Problem
We currently spawn walredo processes lazily, causing the first getpage request to experience a 5ms slowdown, which is the avg spawn latency.
If the compute issues getpage requests concurrently (parallel query execution, prefetch), then all these concurrent requests coalesce on the 5ms long spawn, i.e., all experience a 5ms slowdown.
We also shut down walredo after idle time. If the compute is still up, and then issues a request, it experiences the 5ms outlier(s) again.
On moderately busy PSes (mid hundreds to low thousands of GetPage/second), the outliers introduced by this skew the p99.9X latencies.
 See #7320
ALl of the above is definitely contributing to tail latencies; the question is: how badly, and is it easier to just fix than to quantify it.
Metrics-only solution
Only fix the metrics by counting getpage requests that needed walredo spawn seprately.
This goes in a simmilar direction as #3797
Partial Solution
Spawn walredo during basebackup. This solves the outlier on cold starts, and probably makes our p99.9X getpage stats look better.
But, cold starts + first query is dominated by cold starts, so, +5ms on the first query part won't move the needle for actual UX.
Full Solution: pre-spawned pool
Hence, to completely take walredo process spawning off the critical path, we should have a pool of pre-spawned walredo processes for use by tenants.
Note that as a preliminary, https://github.com/neondatabase/neon/issues/7320 should be done fist to avoid API-level conflicts.
However, the core ideas are orthogonal:

this issue is about the pre-spawned pool to avoid spawn latency
issue #7320 is about avoiding process-wide freezes/stalls due to posix_spawn

Work
### Preliminaries
- [ ] https://github.com/neondatabase/neon/pull/6583
- [ ] https://github.com/neondatabase/neon/pull/6589
- [ ] https://github.com/neondatabase/neon/pull/6597
- [ ] https://github.com/neondatabase/neon/issues/7320

### Partial solution: spawn walredo as part of basebackup
- [ ] draft PR it

### Full solution: pre-spawned pool
- [ ] https://github.com/neondatabase/neon/pull/6595
- [ ] https://github.com/neondatabase/neon/pull/6596

Related

https://github.com/neondatabase/neon/pull/7310

The latency impact is easily demonstratable, but not even a mid-term priority.
=> close this epic to avoid it becoming stale https://github.com/neondatabase/neon/issues/7320#issuecomment-2085718872


--global

npm install -g bower

Don't know how to do this yet... need to investigate.
npm prefix -g will show you where node modules are installed globally. Should pnpm dump things into $(npm prefix -g)/lib/node_modules? what about Windows?
How can npm prefix -g be obtained programatically?
ied dumps your globals into ~/.node_modules, I believe. Not sure on what the pros and cons of that are at the moment, though.

let's not do --global. use npm for that :-)

@rstacruz I have a use case that would lead pnpm to manage global installs anyway.
If you use docker containers, the only way ATM to have node_modules located outside of your project/app source code is global install (not a big problem as you're running a dedicated container for you app). This trick permit to mount a shared volume of your source code during your local development process without the pain & slowness of shared volumes during node modules installs.
So, if I can help in any way to make global installs into pnpm a reality tell me what to do. There's also a ---prefix option related to this feature I guess, no?

Any way you can provide a better error message? I just pnpm install -g coffee-lint today and got this:
 ! The package's modules are from store at /Users/reubano/.pnpm/node_modules/.store and you are trying to use store at /Users/reubano/.pnpm/.store/nested
Not very useful IMHO.

@reubano message is not that bad, but its not that good either. @zkochan might can help

@reubano I created an issue for it to not forget
https://github.com/rstacruz/pnpm/issues/495

Thanks @zkochan!


Deep Link to "Files" Tab in Teams(Desktop)

Hi Team,
I am facing one issue, I am trying to generate the deep link for "Files" tab of teams channel for desktop version but I am not able to succeed. I have looked into this also but this is the link for file previewer only but not for Files tab itself.
If I select the Files Tab in Teams and click on Copy Link, it generates URL for web version which is something like this:
It works for web but not for desktop
https://teams.microsoft.com/_#/files/Products for Office 365?groupId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx&threadId=19%3Axxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx%40thread.skype&ctx=channel&context=Products%2520for%2520abc%2520365&rootfolder=%252Fsites%252FXYZ%252FShared%2520Documents%252FProducts%2520for%2520abc%2520365
As mentioned in issue 1174 I am also not able to fetch the tab of "Files" in Graph API as well.
https://graph.microsoft.com/v1.0/teams//channels//tabs
I tried to find out more information about it and found this when I click on Files tab in browser. It sends request to
<EMAIL_ADDRESS>The tab itself has this track-data: {"meetingUniqueId":"19:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx@thread.skype","tabType":"files","directive":"team-files","definitionId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx","appId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx","newBadgeShown":false,"leftRailDirective":"teams","channelState":"shown"}
What I need is something like this
https://teams.microsoft.com/l/channel/19:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx<EMAIL_ADDRESS>This navigates to the channel but not to the Files Tab.

@luqmansky , We are investigating this internally.

@luqmansky , We are investigating this internally.

@luqmansky  : Can we discuss this over a call? Please write to us at<EMAIL_ADDRESS>

@luqmansky  : Can we discuss this over a call? Please write to us at<EMAIL_ADDRESS>

@Manish-MSFT I have sent you email.

@Manish-MSFT I have sent you email.

@luqmansky : we have raised a bug for this issue with id : 1509183, I will keep this thread updated about bug status.

This looks like an issue in some old version of the Files tab.

The deep links generated by this UI do not follow our standard deep link format and so do not go through the launcher.


crictl rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService

When I use crictl,it can not work on my environment.
# crictl info
DEBU[0000] StatusRequest: &StatusRequest{Verbose:true,}
DEBU[0000] StatusResponse: nil
FATA[0000] getting status of runtime failed: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService

My environment info:
# cat /etc/*release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.5 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.5"
PRETTY_NAME="Red Hat Enterprise Linux"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.5:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.5
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.5"
Red Hat Enterprise Linux Server release 7.5 (Maipo)
Red Hat Enterprise Linux Server release 7.5 (Maipo)

# cat /proc/version
Linux version 3.10.0-862.6.3.el7.x86_64<EMAIL_ADDRESS>(gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Jun 15 17:57:37 EDT 2018

# containerd --version
containerd github.com/containerd/containerd v1.1.0 209a7fc3e4a32ef71a8c7b50c68fc8398415badf

# crictl --version
crictl version 1.11.0-22-gf95ba2f

Seems CRI v1alpha2 is not supported in conatinerd v1.1.0. Maybe upgrade it to a new version?
/cc @Random-Liu

All of the binaries are make by myself through repos,may be I confused the containerd and cri version.When I download cri-containerd from release tarball and install on redhat:
wget https://storage.googleapis.com/cri-containerd-release/cri-containerd-${VERSION}.linux-amd64.tar.gz

crictl can work now.
Thanks:)

@hmtai  Cool!
@Random-Liu may give more details of building containerd.

Yes,the contaienrd and crictl version  does not match.


@azure-msal-browser@2 documentation missing

Please follow the issue template below. Failure to do so will result in a delay in answering your question.
Library

[ ]<EMAIL_ADDRESS>or<EMAIL_ADDRESS>[X]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>
Documentation location

[ ] docs.microsoft.com
[ ] MSAL.js Github Wiki
[ ] README file
[X ] Other (please fill in) https://www.npmjs.com/package/@azure/msal-browser
[ ] Documentation does not exist

Description
A clear and concise description of the documentation issue.
I want to migrate from msal to @azure/msal-browser v2.0.0-beta.0, I was going through @azure/msal-browser but the links given for migration and consumption of modules are not working.
eg:

https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/HEAD/docs/v1-migration.md

https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/HEAD/docs/initialization.md

@ktikku Thanks for pointing this out. We'll make sure to get this updated on npm. You should be able to find the docs you are looking for in the repo for msal-browser.

https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/v1-migration.md
https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-browser/docs/initialization.md

thanks for the quick response! 👍

Doc links on npm have been updated.


Allow multiple docker compose files

Allow specifying multiple docker-compose files.  When used with a generator, the docker-compose files will also have template variable substitution performed.  This allows for using a generic generator (e.g. docker-compose-java-template.yml minus the "application" service) to instantiate common back-end observability services.  On top of that fragments of docker-compose yaml can be added for each specific additional service (e.g. Beyla autoinstrumenter, and testserver test app.)

A sort of naive question, why can't this be done with environment variables?

Do you mean template vars vs. environment vars?  Hmm, I think that would require that the env vars are still in the final rendering of build/docker-compose.yml?  If so that would make it harder to run manually, since you'd have to set those up yourself.

Right but it's one compose file, so I can easily do:
foo=bar docker compose ...
I don't have to combine any files. It's maybe my opinion only, but the beauty of docker compose files is that it's one file, it's easy to debug.


forge test hangs when using stdstore on a fork

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
forge 0.2.0 (97f070f 2023-03-17T09:30:30.350509Z)
What command(s) is the bug in?
No response
Operating System
macOS (Intel)
Describe the bug
Like #4656 , forge hangs when running tests against a fork. This time is when using stdstore to find the storage slot of a struct variable.
uint256 slot = stdstore
            .target(address(contract))
            .sig('MyStruct()')
            .depth(0)
            .find();

Like with the bug mentioned in the beginning, if I add the prefix RUST_LOG=forge=trace,foundry_evm=trace,ethers=trace to my original command forget test -m $FUNC -vvv, I can see all the RPC requests being done.
And also, like in that bug, adding a specific sender with targetSender(address)  or the fuzz runs don't solve the issue.

I am going to close this one per https://github.com/foundry-rs/foundry/issues/4656#issuecomment-2124416774 Pls reopen if you hit this again. thank you!


pls add api to purge cache of keepalive

What problem does this feature solve?
I don't want to add mixin to every route page, and I don't want to add global mixin to affect all components even with third parties
let's do this with one single code ok ?
What does the proposed API look like?
this.$keepalive[id].purge(Component)  // purge the cache of the Component's instance if exists

To control what is cached by keep-alive, use include and exclude props. More at https://github.com/vuejs/vue/issues/8028

To control what is cached by keep-alive, use include and exclude props. More at #8028

this is way more complex than a purge api

Duplicate of https://github.com/vuejs/vue/issues/6259

I know there are ways to achieve what I want, but they all too complex. like I have to add dozens of name prop for the components which already existed.
I just find an ugly way to achieve this, one single line in the main component.
maullyDelletedRoute.matched[maullyDelletedRoute.matched.length - 1].instances.default.$destroy()


protected mode benchmark

and now, a benchmark of this algorithm, compiled for a i686 target machine in legacy protected mode

limiting factor is most likely the low-power mobile CPU (Pentium J3710) and the somewhat underpowered core memory. this test was done with EIST turned OFF
this also happens to be the only device I own that has any kind of AES instructions in the i687, all others are Core2 or earlier

Hah!  Thanks, that is a benchmark I definitely would not have been able to run myself :)


Update interventions and change website copy from shelter-in-place to stay-at-home.

Closing this since develop is not ready to push to prod (as far as I know).