Support the stack size and address for posix_spawn and kernel mode

Summary

sched/spawn: Support task_spawnattr_[set|get]stacksize in kernel mode
sched/spawn: Support task_spawnattr_[set|get]stackaddr for posix_spawn

Impact
New function
Testing
Pass CI

Please rebase

Done

@xiaoxiang781216
I noticed that 'hello' ELF application does not work.
NuttShell (NSH) NuttX-3.6.1
nsh> uname -a
NuttX  3.6.1 cc61cd3b65 Oct 21 2022 08:43:42 arm spresense
nsh> ps
  PID GROUP CPU PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK   STACK   USED  FILLED COMMAND
    0     0   0   0 FIFO     Kthread N-- Assigned           00000000<PHONE_NUMBER>56  45.6%  CPU0 IDLE
    1     1   1   0 FIFO     Kthread N-- Running            00000000<PHONE_NUMBER>28  22.8%  CPU1 IDLE
    2     2 --- 224 RR       Kthread --- Waiting  Semaphore 00000000<PHONE_NUMBER>60  33.1%  hpwork 0x2d0597f4
    3     3 ---  60 RR       Kthread --- Waiting  Semaphore 00000000<PHONE_NUMBER>00  15.0%  lpwork 0x2d05980c
    5     5 --- 200 RR       Task    --- Waiting  MQ empty  00000000<PHONE_NUMBER>72  48.3%  cxd56_pm_task
    6     6   0 100 RR       Task    --- Running            00000000<PHONE_NUMBER>00  49.6%  spresense_main
nsh> ls -l /mnt/sd0/bin
/mnt/sd0/bin:
 -rw-rw-rw-    3716 hello
nsh> help
help usage:  help [-v] [<cmd>]

  .          cmp        exec       ls         mv         set        uname
  [          dirname    exit       md5        nfsmount   sleep      umount
  ?          date       false      mkdir      printf     source     unset
  basename   dd         free       mkfatfs    ps         test       uptime
  break      df         help       mkfifo     pwd        telnetd    usleep
  cat        dmesg      hexdump    mkrd       reboot     time       wget
  cd         echo       ifconfig   mksmartfs  rm         true       xd
  cp         env        kill       mount      rmdir      truncate

Builtin Apps:
  nxhello     ntpcstatus  udpblaster  getprime    nsh         msdis
  ftpc        nxrecorder  sh          tcpclient   smp         nxplayer
  webserver   gs2200m     nx          ftpd_stop
  tcpserver   ntpcstart   ntpcstop    taskset     nxlines
  renew       ostest      ftpd_start  nxdemo      msconn
nsh> hello

I will take a look tonight or tomorrow, thanks.

@masayuki2009 I am trying to repro on sim:loadable, but the result looks good:
./nuttx

NuttShell (NSH) NuttX-10.4.0
nsh> /system/bin/hello
Hello, World!!

Does it work before my change in your environment?

Does it work before my change in your environment?

@xiaoxiang781216
Yes. The latest upstream works.

@masayuki2009 Could you please verify this PR again?

@anchao @xiaoxiang781216
It seems that the hello app issue with spresense:wifi has been resolved.
However, sabre-6qaud:knsh_smp has the following issue.
+ /home/ishikawa/opensource/QEMU/qemu-7.1/build/qemu-system-arm -semihosting -M sabrelite -m 1024 -smp 4 -kernel nuttx -nographic
ABCDGHIJKNOPQ
[    0.040000] [CPU0] up_assert: Assertion failed CPU0 at file:common/arm_createstack.c line: 91 task: CPU0 IDLE
[    0.040000] [CPU0] up_assert: Assertion failed CPU0 at file:armv7-a/arm_syscall.c line: 488 task: CPU0 IDLE
[    0.040000] [CPU0] arm_registerdump: R0: 00000000 R1: 108184a4 R2: 02020000  R3: 00000000
[    0.040000] [CPU0] arm_registerdump: R4: 108184a4 R5: 10817ab8 R6: 10817a58  FP: 1081a5f8
[    0.040000] [CPU0] arm_registerdump: R8: 1081a5f8 SB: 00000064 SL: 10817ab8 R11: 00000005
[    0.040000] [CPU0] arm_registerdump: IP: 00000009 SP: 1081a5e4 LR: 10806141  PC: 10806218
[    0.040000] [CPU0] arm_registerdump: CPSR: 6000017f
[    0.040000] [CPU0] arm_dump_stack: IRQ Stack:
[    0.040000] [CPU0] arm_dump_stack: sp:     10816020
[    0.040000] [CPU0] arm_dump_stack:   base: 10815850
[    0.040000] [CPU0] arm_dump_stack:   size: 00000800
[    0.040000] [CPU0] arm_stackdump: 10816020: 1081a49c 10817a58 fffffff8 1081a5f8 1081a5f8 10803e39 00000000 10800d75
[    0.040000] [CPU0] arm_dump_stack: User Stack:
[    0.040000] [CPU0] arm_dump_stack: sp:     1081a5e4
[    0.040000] [CPU0] arm_dump_stack:   base: 10819f18
[    0.040000] [CPU0] arm_dump_stack:   size: 000007e8
[    0.040000] [CPU0] arm_stackdump: 1081a5e0: 6000017f 10806141 1081559e 0000005b 10817b58 10806f57 10817ab8 1081ce00
[    0.040000] [CPU0] arm_stackdump: 1081a600: 00000000 00000000 10813513 10803e39 0000000c 1081275f 00000000 1081ce00
[    0.040000] [CPU0] arm_stackdump: 1081a620: 00000000 1080fed9 1081ce00 10813513 80000761 1081ce00 1081cdc0 10813513
[    0.040000] [CPU0] arm_stackdump: 1081a640: 1081cdd8 1081a6cc 10817dd4 1080c9fb 10817ab8 80000761 00000000 1081ced0
[    0.040000] [CPU0] arm_stackdump: 1081a660: 1081ced0 00000000 80200000 00000000 00000000 00000000 00000000 1081cdc0
[    0.040000] [CPU0] arm_stackdump: 1081a680: 10813513 1081a6bc 1081a6c0 1080bed9 00000000 00000000 1081a6c0 1081a6cc
[    0.040000] [CPU0] arm_stackdump: 1081a6a0: 10817ab8 10817dc4 10817ab8 10801c09 00000000 1081a6cc 00000002 00000000
[    0.040000] [CPU0] arm_stackdump: 1081a6c0: 108134d0 108134d6 00000000 10016400 00000000 10817ab8 00000004 10817dc8
[    0.040000] [CPU0] arm_stackdump: 1081a6e0: 10817db8 10801b71 18000000 08000000 80500000 00000000 00000000 00000000
[    0.040000] [CPU0] arm_dump_stack: Kernel Stack:
[    0.040000] [CPU0] arm_dump_stack: sp:     1081a5e4
[    0.040000] [CPU0] arm_dump_stack:   base: 00000000
[    0.040000] [CPU0] arm_dump_stack:   size: 00000c00
[    0.040000] [CPU0] arm_dump_stack: ERROR: Kernel Stack pointer is not within the stack
[    0.040000] [CPU0] arm_showtasks:    PID    PRI   CPU     STACK      USED   FILLED    COMMAND
[    0.040000] [CPU0] arm_showtasks:   ----   ----  ----      2048       420    20.5%    irq
[    0.040000] [CPU0] arm_dump_task:      0      0     0      2024       896    44.2%    CPU0 IDLE
[    0.040000] [CPU0] arm_dump_task:      1      0     1      2024       664    32.8%    CPU1 IDLE
[    0.040000] [CPU0] arm_dump_task:      2      0     2      2024       664    32.8%    CPU2 IDLE
[    0.040000] [CPU0] arm_dump_task:      3      0     3      2024       664    32.8%    CPU3 IDLE

@anchao @xiaoxiang781216 It seems that the hello app issue with spresense:wifi has been resolved. However, sabre-6qaud:knsh_smp has the following issue.
+ /home/ishikawa/opensource/QEMU/qemu-7.1/build/qemu-system-arm -semihosting -M sabrelite -m 1024 -smp 4 -kernel nuttx -nographic
ABCDGHIJKNOPQ
[    0.040000] [CPU0] up_assert: Assertion failed CPU0 at file:common/arm_createstack.c line: 91 task: CPU0 IDLE
[    0.040000] [CPU0] up_assert: Assertion failed CPU0 at file:armv7-a/arm_syscall.c line: 488 task: CPU0 IDLE
[    0.040000] [CPU0] arm_registerdump: R0: 00000000 R1: 108184a4 R2: 02020000  R3: 00000000
[    0.040000] [CPU0] arm_registerdump: R4: 108184a4 R5: 10817ab8 R6: 10817a58  FP: 1081a5f8
[    0.040000] [CPU0] arm_registerdump: R8: 1081a5f8 SB: 00000064 SL: 10817ab8 R11: 00000005
[    0.040000] [CPU0] arm_registerdump: IP: 00000009 SP: 1081a5e4 LR: 10806141  PC: 10806218
[    0.040000] [CPU0] arm_registerdump: CPSR: 6000017f
[    0.040000] [CPU0] arm_dump_stack: IRQ Stack:
[    0.040000] [CPU0] arm_dump_stack: sp:     10816020
[    0.040000] [CPU0] arm_dump_stack:   base: 10815850
[    0.040000] [CPU0] arm_dump_stack:   size: 00000800
[    0.040000] [CPU0] arm_stackdump: 10816020: 1081a49c 10817a58 fffffff8 1081a5f8 1081a5f8 10803e39 00000000 10800d75
[    0.040000] [CPU0] arm_dump_stack: User Stack:
[    0.040000] [CPU0] arm_dump_stack: sp:     1081a5e4
[    0.040000] [CPU0] arm_dump_stack:   base: 10819f18
[    0.040000] [CPU0] arm_dump_stack:   size: 000007e8
[    0.040000] [CPU0] arm_stackdump: 1081a5e0: 6000017f 10806141 1081559e 0000005b 10817b58 10806f57 10817ab8 1081ce00
[    0.040000] [CPU0] arm_stackdump: 1081a600: 00000000 00000000 10813513 10803e39 0000000c 1081275f 00000000 1081ce00
[    0.040000] [CPU0] arm_stackdump: 1081a620: 00000000 1080fed9 1081ce00 10813513 80000761 1081ce00 1081cdc0 10813513
[    0.040000] [CPU0] arm_stackdump: 1081a640: 1081cdd8 1081a6cc 10817dd4 1080c9fb 10817ab8 80000761 00000000 1081ced0
[    0.040000] [CPU0] arm_stackdump: 1081a660: 1081ced0 00000000 80200000 00000000 00000000 00000000 00000000 1081cdc0
[    0.040000] [CPU0] arm_stackdump: 1081a680: 10813513 1081a6bc 1081a6c0 1080bed9 00000000 00000000 1081a6c0 1081a6cc
[    0.040000] [CPU0] arm_stackdump: 1081a6a0: 10817ab8 10817dc4 10817ab8 10801c09 00000000 1081a6cc 00000002 00000000
[    0.040000] [CPU0] arm_stackdump: 1081a6c0: 108134d0 108134d6 00000000 10016400 00000000 10817ab8 00000004 10817dc8
[    0.040000] [CPU0] arm_stackdump: 1081a6e0: 10817db8 10801b71 18000000 08000000 80500000 00000000 00000000 00000000
[    0.040000] [CPU0] arm_dump_stack: Kernel Stack:
[    0.040000] [CPU0] arm_dump_stack: sp:     1081a5e4
[    0.040000] [CPU0] arm_dump_stack:   base: 00000000
[    0.040000] [CPU0] arm_dump_stack:   size: 00000c00
[    0.040000] [CPU0] arm_dump_stack: ERROR: Kernel Stack pointer is not within the stack
[    0.040000] [CPU0] arm_showtasks:    PID    PRI   CPU     STACK      USED   FILLED    COMMAND
[    0.040000] [CPU0] arm_showtasks:   ----   ----  ----      2048       420    20.5%    irq
[    0.040000] [CPU0] arm_dump_task:      0      0     0      2024       896    44.2%    CPU0 IDLE
[    0.040000] [CPU0] arm_dump_task:      1      0     1      2024       664    32.8%    CPU1 IDLE
[    0.040000] [CPU0] arm_dump_task:      2      0     2      2024       664    32.8%    CPU2 IDLE
[    0.040000] [CPU0] arm_dump_task:      3      0     3      2024       664    32.8%    CPU3 IDLE

@masayuki2009 the problem is fixed. sabre-6qaud:knsh_smp should work now.

@masayuki2009 the problem is fixed. sabre-6qaud:knsh_smp should work now.

@xiaoxiang781216
I confirmed that the latest PR fixes the issue.


Making mxnet/examples compatible for python2/3

This is inspired by the issue #3995  as most examples in mxnet/examples still only support python2.
currently, common incompatible issues in the mxnet/examples are:

print
raise errors.
urllib
StringIO
iterator
dict keys to list.

@leopd  I realized you planned to work on this. Let me know your opinions on this.
I will try to create a pr for each compatibility update for each example.
Please let me know if there are any questions or concerns.

This issue is closed due to lack of activity in the last 90 days. Feel free to reopen if this is still an active issue. Thanks!


requirement.txt not found during make pdk

Description
I am trying to install OPENLANE with a script(the script is attached), when I give the command ''make pdk'', following error occurs

I'm absolute beginner in openlane and ubuntu, hence can't understand the error.
script file: -
openlane_setup.zip
Im following the below playlist: https://youtube.com/playlist?list=PL6lEfVxcwjW3tOnmmU_4WAqRYppDvGLHM&si=8n1bkk7bmQmUELyv
Expected Behavior
Installation should have been completed
Environment report
python3: can't open file './env.py': [Errno 2] No such file or directory

Reproduction material
#!/bin/bash
Log_File=./installation.log
CommandLog () {
author='APR-Training'
startdate=$(date)
scriptName='installation.log'
echo "${author}"
echo "[$startdate]:[INSTALLATION]: This is ${scriptName}, which shows the loging of install_openLane.sh:"
set -ex
echo "=============================================="
echo "----KICK OFF Basic Toolschain INSTALATTION----"
echo "=============================================="
echo
sudo apt update
sudo apt install build-essential
sudo apt-get install lsb-core
sudo apt install git-all
sudo apt install ufw
sudo apt-get install cmake
sudo apt-get update -y
sudo apt-get install -y device-tree-compiler
sudo apt-get install -y make
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
sudo apt install containerd
sudo apt-get install python-pip
sudo apt-get install python3-pip
sudo pip install --upgrade pip
echo "=================================="
echo "---KICK OFF DOCKER INSTALLATION---"
echo "=================================="
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
echo "=================================="
echo "----------DOCKER  ENABLED---------"
echo "=================================="
docker --version
sudo apt install klayout
making tools folder
mkdir -p apr; cd apr
echo "=================================="
echo "--------MAGIC INSTALLATION--------"
echo "=================================="
pre-req for magic
sudo apt-get install m4
sudo apt-get install csh
sudo apt-get install libx11-dev
sudo apt-get install libncurses-dev
sudo apt-get install tcl-dev tk-dev
sudo apt-get install blt-dev
sudo apt-get install freeglut3
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libglu1-mesa-dev
git clone https://github.com/RTimothyEdwards/magic.git
cd magic
./configure
sudo make
sudo make install
magic --version
cd ../
echo "======================================"
echo "----KICK OFF OpenLane INSTALATTION----"
echo "======================================"
echo
git clone https://github.com/The-OpenROAD-Project/OpenLane.git
cd OpenLane/
git checkout v0.23
Default PDK_ROOT is $(pwd)/pdks. If you want to install the PDK at a differnt location, uncomment the next line.
#export PDK_ROOT=
make openlane
make pdk
make test # This is to test that the flow and the pdk were properly inst
}
CommandLog | tee "${Log_File}"
#ErrorLog "Found error in logic to logging for investigation" | tee "${Log_File}"
Relevant log output
yashn@yashn-HP-Laptop-15s-gr0xxx:~/Desktop/pr3/11dbef9b83075b06b9ec90fddb8dc96f/apr/OpenLane$ sudo make pdk
[sudo] password for yashn:
cd /home/yashn/Desktop/pr3/11dbef9b83075b06b9ec90fddb8dc96f/apr/OpenLane/pdks/skywater-pdk && \
	git checkout main && git submodule init && git pull --no-recurse-submodules && \
	git checkout -qf 00bdbcf4a3aa922cc1f4a0d0cd8b80dbd73149d3
M	third_party/make-env
Previous HEAD position was 00bdbcf Merge pull request #323 from mithro/fix-make-submodule
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
Already up to date.
cd /home/yashn/Desktop/pr3/11dbef9b83075b06b9ec90fddb8dc96f/apr/OpenLane/pdks/skywater-pdk && \
	git submodule update --init libraries/sky130_fd_sc_hd/latest && \
	git submodule update --init libraries/sky130_fd_io/latest && \
	git submodule update --init libraries/sky130_fd_sc_hvl/latest && \
	make timing
make[1]: Entering directory '/home/yashn/Desktop/pr3/11dbef9b83075b06b9ec90fddb8dc96f/apr/OpenLane/pdks/skywater-pdk'
cd /home/yashn/Desktop/pr3/11dbef9b83075b06b9ec90fddb8dc96f/apr/OpenLane/pdks/skywater-pdk; git submodule update --init third_party/make-env
source /home/yashn/Desktop/pr3/11dbef9b83075b06b9ec90fddb8dc96f/apr/OpenLane/pdks/skywater-pdk/env/conda/bin/activate && conda env update --name skywater-pdk-scripts --file environment.yml
Retrieving notices: ...working... done
Collecting package metadata (repodata.json): done
Solving environment: done
Installing pip dependencies: / Ran pip subprocess with arguments:
['/home/yashn/Desktop/pr3/11dbef9b83075b06b9ec90fddb8dc96f/apr/OpenLane/pdks/skywater-pdk/env/conda/envs/skywater-pdk-scripts/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/yashn/Desktop/pr3/11dbef9b83075b06b9ec90fddb8dc96f/apr/OpenLane/pdks/skywater-pdk/condaenv.8xpkz01_.requirements.txt', '--exists-action=b']
Pip subprocess output:

Pip subprocess error:
ERROR: 404 Client Error: FileNotFoundError for url: file:///requirements.txt

failed

CondaEnvException: Pip failed

make[1]: *** [/home/yashn/Desktop/pr3/11dbef9b83075b06b9ec90fddb8dc96f/apr/OpenLane/pdks/skywater-pdk/third_party/make-env/conda.mk:145: /home/yashn/Desktop/pr3/11dbef9b83075b06b9ec90fddb8dc96f/apr/OpenLane/pdks/skywater-pdk/env/conda/envs/skywater-pdk-scripts/bin/python] Error 1

@78yashn
Just run following steps will setup everything automatically. No need to run make pdk separately.
Steps to follow: https://github.com/The-OpenROAD-Project/OpenLane#installation-the-short-version

OpenLane v0.23 is no longer supported. We kindly ask you to follow the official documentation here: https://openlane.readthedocs.io/en/latest/getting_started/installation/installation_ubuntu.html
I'm curious as to which instructions you were following.


Sieve of eratosthenes

Sieve of eratosthenes
what will change -
Type of Issue -

[x] Adding New Code

Programming Language

[x] C++

Self Check

Ask for issue assignment before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

Happy Coding,

remember to make a folder mathematical algorithms under algorithms and then put that inside it

Hey I would like to work on this issue, Can you assign it to me?

Code ready on my forked repo. Please assign this issue to me so that I can open a valid PR.


[Docs] documentation with both of stable and development version

What we need to document?
We have documentation with development version. It may be confusing when users uses the latest stable version because the stable version may not have some functionalities.

Netlify provides environment to deploy multiple branches.
https://www.netlify.com/

pylons_sphinx_latesturl extension may solve the issue, but not maintained at this time.

Read the Docs also solve the issue.
However, the url of documentation will be changed.


Error creating panel with the json file in Kivy

Tell me why the code that works in Python 27 does not work in the third version, though like all right?
theme.json
[
{{"type": "title",
  "title": "{a}" }},

{{"type": "options",
  "title": "{b}",
  "desc": "{c}",
  "section": "Theme",
  "key": "theme",
  "options": ["{d}"] }},

{{"type": "bool",
  "title": "{e}",
  "desc":  "{f}",
  "section": "Theme",
  "key": "edit_theme",
  "true": "auto" }},

{{"type": "bool",
  "title": "{g}",
  "desc":  "{h}",
  "section": "Theme",
  "key": "create_theme",
  "true": "auto" }}
]

test.py
#! /usr/bin/python3.4

import traceback

try:
    import kivy
    kivy.require('1.9.2')

    from kivy.app import App
    from kivy.config import ConfigParser
    from kivy.uix.button import Button
except Exception:
    raise Exception(traceback.format_exc())

class Program(App):

    def __init__(self, **kvargs):
        super().__init__()

    def build_config(self, config):
        config.adddefaultsection("Theme")
        config.setdefault("Theme", "theme", "blue_orange")
        config.setdefault("Theme", "edit_theme", "0")
        config.setdefault("Theme", "create_theme", "0")

    def build_settings(self, settings):
        theme_settings = open('theme.json').read()
        theme_data = theme_settings.format(
            a='1', b='2', c='3', d='4', e='5', f='6', g='7', h='8')
        settings.add_json_panel('Theme', self.config, data=theme_data)

    def build(self):
        self.config = ConfigParser()
        self.config.read('program.ini')
        return Button(text='Press', on_press=self.open_settings)

Program().run()

Tell me where the error?
Text error:
Traceback (most recent call last):
   File "test.py", line 39, in <module>
     Program().run()
   File "/usr/local/lib/python3.4/dist-packages/kivy/app.py", line 828, in run
     runTouchApp()
   File "/usr/local/lib/python3.4/dist-packages/kivy/base.py", line 487, in runTouchApp
     EventLoop.window.mainloop()
   File "/usr/local/lib/python3.4/dist-packages/kivy/core/window/window_pygame.py", line 403, in mainloop
     self._mainloop()
   File "/usr/local/lib/python3.4/dist-packages/kivy/core/window/window_pygame.py", line 290, in _mainloop
     EventLoop.idle()
   File "/usr/local/lib/python3.4/dist-packages/kivy/base.py", line 330, in idle
     self.dispatch_input()
   File "/usr/local/lib/python3.4/dist-packages/kivy/base.py", line 315, in dispatch_input
     post_dispatch_input(*pop(0))
   File "/usr/local/lib/python3.4/dist-packages/kivy/base.py", line 221, in post_dispatch_input
     listener.dispatch('on_motion', etype, me)
   File "_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:7173)
   File "/usr/local/lib/python3.4/dist-packages/kivy/core/window/__init__.py", line 1034, in on_motion
     self.dispatch('on_touch_down', me)
   File "_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:7173)
 File "/usr/local/lib/python3.4/dist-packages/kivy/core/window/__init__.py", line 1050, in on_touch_down
     if w.dispatch('on_touch_down', touch):
   File "_event.pyx", line 718, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:7173)
   File "/usr/local/lib/python3.4/dist-packages/kivy/uix/behaviors/button.py", line 159, in on_touch_down
     self.dispatch('on_press')
   File "_event.pyx", line 714, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:7132)
   File "_event.pyx", line 1224, in kivy._event.EventObservers.dispatch (kivy/_event.c:12357)
   File "_event.pyx", line 1148, in kivy._event.EventObservers._dispatch (kivy/_event.c:11955)
   File "/usr/local/lib/python3.4/dist-packages/kivy/app.py", line 916, in open_settings
     self._app_settings = self.create_settings()
   File "/usr/local/lib/python3.4/dist-packages/kivy/app.py", line 985, in create_settings
     self.build_settings(s)
   File "test.py", line 31, in build_settings
     settings.add_json_panel('Theme', self.config, data=theme_data)
   File "/usr/local/lib/python3.4/dist-packages/kivy/uix/settings.py", line 950, in add_json_panel
     panel = self.create_json_panel(title, config, filename, data)
   File "/usr/local/lib/python3.4/dist-packages/kivy/uix/settings.py", line 990, in create_json_panel
     instance = cls(panel=panel, **str_settings)
   File "/usr/local/lib/python3.4/dist-packages/kivy/uix/settings.py", line 289, in __init__
     super(SettingItem, self).__init__(**kwargs)
   File "/usr/local/lib/python3.4/dist-packages/kivy/uix/floatlayout.py", line 65, in __init__
     super(FloatLayout, self).__init__(**kwargs)
   File "/usr/local/lib/python3.4/dist-packages/kivy/uix/layout.py", line 72, in __init__
     super(Layout, self).__init__(**kwargs)
   File "/usr/local/lib/python3.4/dist-packages/kivy/uix/widget.py", line 312, in __init__
     super(Widget, self).__init__(**kwargs)
   File "_event.pyx", line 254, in kivy._event.EventDispatcher.__init__ (kivy/_event.c:4673)
 TypeError: object.__init__() takes no parameters

I have a big list of settings. By process of elimination, I found that the problem is in the above json file.

This seems to be a bug in Kivy related to #3699.  Following the settings panel video tutorial using Python 3.4 also crashes in a similar manner for me:
Traceback (most recent call last):
File "main.py", line 191, in
MyDemo().run()
File "C:\Python34\lib\site-packages\kivy\app.py", line 828, in run
runTouchApp()
File "C:\Python34\lib\site-packages\kivy\base.py", line 487, in runTouchApp
EventLoop.window.mainloop()
File "C:\Python34\lib\site-packages\kivy\core\window\window_sdl2.py", line 619, in mainloop
self._mainloop()
File "C:\Python34\lib\site-packages\kivy\core\window\window_sdl2.py", line 556, in _mainloop
self.modifiers)
File "kivy_event.pyx", line 714, in kivy._event.EventDispatcher.dispatch (kivy_event.c:7654)
File "kivy_event.pyx", line 1224, in kivy._event.EventObservers.dispatch (kivy_event.c:13497)
File "kivy_event.pyx", line 1148, in kivy._event.EventObservers._dispatch (kivy_event.c:13023)
File "C:\Python34\lib\site-packages\kivy\app.py", line 1033, in _on_keyboard_settings
if not self.open_settings():
File "C:\Python34\lib\site-packages\kivy\app.py", line 916, in open_settings
self._app_settings = self.create_settings()
File "C:\Python34\lib\site-packages\kivy\app.py", line 985, in create_settings
self.build_settings(s)
File "main.py", line 179, in build_settings
settings.add_json_panel('Program Options', self.config, data=settings_json)
File "C:\Python34\lib\site-packages\kivy\uix\settings.py", line 951, in add_json_panel
panel = self.create_json_panel(title, config, filename, data)
File "C:\Python34\lib\site-packages\kivy\uix\settings.py", line 991, in create_json_panel
instance = cls(panel=panel, **str_settings)
File "C:\Python34\lib\site-packages\kivy\uix\settings.py", line 290, in init
super(SettingItem, self).init(**kwargs)
File "C:\Python34\lib\site-packages\kivy\uix\floatlayout.py", line 65, in init
super(FloatLayout, self).init(**kwargs)
File "C:\Python34\lib\site-packages\kivy\uix\layout.py", line 72, in init
 super(Layout, self).__init__(**kwargs)

File "C:\Python34\lib\site-packages\kivy\uix\widget.py", line 312, in init
super(Widget, self).init(**kwargs)
File "kivy_event.pyx", line 254, in kivy._event.EventDispatcher.init (kivy_event.c:4895)
TypeError: object.init() takes no parameters

Fixed in https://github.com/kivy/kivy/pull/3699.

It's not fixed.  I am using Kivy 1.9.1 with this change merged and it still fails.

Ah sorry, I thought it was the exact same bug.

I think #3579 is a duplicate of this and is also not fixed.  However, something is fishy because I can run the Kivy example just fine.  I'm digging further.

Turns out I had the 'desc' item in my json as 'description'.  This causes that weird failure.  So, the original poster should check that their end json is proper.  I see your boolean options have "true" in them.  Not sur that is valid.

It works like this (without arguments [b]"true": "auto"[/b])
[b]theme.json[/b]
[
{{"type": "title",
  "title": "{a}" }},

{{"type": "options",
  "title": "{b}",
  "desc": "{c}",
  "section": "Theme",
  "key": "theme",
  "options": ["{d}"] }},

{{"type": "bool",
  "title": "{e}",
  "desc":  "{f}",
  "section": "Theme",
  "key": "edit_theme" }},

{{"type": "bool",
  "title": "{g}",
  "desc":  "{h}",
  "section": "Theme",
  "key": "create_theme"}}

]

I'm still getting an error with Python 3.5 on Raspbian Stretch on a Praspberry Pi Model 3 B+.  Kivy version is v2.0.0.dev0, git-fd7e81e.
When I call add_json_panel(), I get the following error:
03-Dec-19 11:43:18.941 [GUI] - Error: Traceback (most recent call last):
  File "/opt/24acoustics/ro/modules/kivyapp.py", line 1623, in button_pressed
    self.open_settings()
  File "/usr/local/lib/python3.5/dist-packages/kivy/app.py", line 1057, in open_settings
    self._app_settings = self.create_settings()
  File "/usr/local/lib/python3.5/dist-packages/kivy/app.py", line 1126, in create_settings
    self.build_settings(s)
  File "/opt/24acoustics/ro/modules/kivyapp.py", line 978, in build_settings
    data=self.remove_bad_keys_from_json_string(self.visible_settings[0]))
  File "/usr/local/lib/python3.5/dist-packages/kivy/uix/settings.py", line 977, in add_json_panel
    panel = self.create_json_panel(title, config, filename, data)
  File "/usr/local/lib/python3.5/dist-packages/kivy/uix/settings.py", line 1017, in create_json_panel
    instance = cls(panel=panel, **str_settings)
  File "/usr/local/lib/python3.5/dist-packages/kivy/uix/label.py", line 318, in __init__
    super(Label, self).__init__(**kwargs)
  File "/usr/local/lib/python3.5/dist-packages/kivy/uix/widget.py", line 350, in __init__
    super(Widget, self).__init__(**kwargs)
  File "kivy/_event.pyx", line 245, in kivy._event.EventDispatcher.__init__
TypeError: object.__init__() takes no parameters

The solution I've found is to replace part of the create_json_panel() function in /usr/local/lib/python3.5/dist-packages/kivy/uix/settings.py:
if ttype == 'title':
    instance = cls(panel=panel)
else:
    instance = cls(panel=panel, **str_settings)

That's because it only complained with the 'title' items.  I never had this problem with Python 2.  I don't know if this is a genuine bug, but this might help someone else experiencing the problem.


Adds Windows api export symbols + small fixes for windws compilation

adds the windows compatibility. what was failing was particular static member variables that were used in template inline function, so directly compiled in the user compilation target but not properly exported. in linux you can't see those kind of errors because everything get exported by default. if this is not useful or important feel free to ignore the pull request or closing it. it miss extensive test, i just tested the compilation and the FramerLite application.

Thanks Andrea - this is most certainly useful. something that has been on the to-do list for a while. I'll review it as soon as I can actually.

Thanks @aerydna , a few comments:

In my experience using EXPORT as  a macro definition is dangerous, as you could have collisions with other libraries that use the same definition. Using a project specific macro such as EVENT_DRIVEN_EXPORT may be probably more safe.
FYI the current changes may not permit to compile the library as  a static library anymore on Windows, for more discussions on how to this while also supporting static compilation see https://github.com/robotology/how-to-export-cpp-library/issues/41 .

thanks for the feedback @traversaro i also thinked about that while i was already doing the pull request,
however the purpose of this pull request was to simply give the code i adapted for me (quite quickly to have something to test what i am actually developing) to the event driven community and not spending more time on it since i'm focused on other things. So possible modification can be done by by the community if needed.

once i finish the developing process of what i'm on i can maybe properly fix that and update the PR, but if someone what to fix it and merge it feel free to do it

Thanks for the contribution @aerydna. I haven't developed on windows for a while - and I haven't ever had to compile a library that other applications can link to on windows. I would like to learn something though. Also @traversaro if you can clarify anything it would be great.
As I understand if we are on windows, certain parts of the library will be defined as #EXPORT and then those classes will use __declspec(dllexport), which I guess allows them to be part of the library and other applications linking to event-driven can then find and use those classes. I'll assume this is the standard way to do things. In the future, if we add or update the library, and new functions need to have the EV_API part added to their definition to have them useable in windows. Is there anything else important to understand?

Hi @arrenglover, you recap is more and less correct. To give a bit more context, the root reason for that is the difference on how Linux/macOS and Windows deal with "visibility" of symbols in shared libraries. By default Windows set the visibility to "hidden" , while on Linux and macOS the visibility by default is set to "visibile" .
On Windows there are several ways of setting the visibility of a class to "visibile", what we typically recommend is setting CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS  to ON at the CMake level (see https://github.com/robotology/how-to-export-cpp-library/blob/master/CMakeLists.txt#L45 ), as it does not require all the modifications that you see in this PR for using dllimport/dllexport . However CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS is not able to automatically export static or global variables, so if you want to use those additional care is necessary, see https://github.com/robotology/how-to-export-cpp-library/issues/41 .

Thanks very much @traversaro , it is clearer now.
I would prefer to make things as simple as possible, such that it is easier to maintain for us that aren't experts on this exact procedure. Therefore, if I can makeCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS  work, I would prefer it.
question: do you know if CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS  can export static variables when they are members of a class? is it only global and global static that it has troubles with?
@aerydna - does CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS  not work in our case, and that's why you opted for the method you did?

question: do you know if CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS can export static variables when they are members of a class? is it only global and global static that it has troubles with?

I think it also has problems for static members of a class. However, this is a problem only if the static variable is public member of the class, and need to be accessed directly by code outside of the library. In that case, a classical workaround is to hide the static variable inside a method to access it (even just a method that returns a reference to the static variable).

@arrenglover  CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS doesn't work with static member variables. as far as i know the only possible other solution can be the one mentioned by @traversaro, so to wrap static variable access with a member method (remember that with that they become lazy initialized). example code can be:
auto& myStaticVariable()
{
    static int name = [initial value];
    return name;
}

i personally consider this to be more invasive than the way i did, it change the way the code looks and have more changes to do.

so to wrap static variable access with a member method (remember that with that they become lazy initialized). example code can be:
i personally consider this to be more invasive than the way i did, it change the way the code looks and have more changes to do.

Why don't you just add a method to access the static attribute, without moving the variable from static attribute of the class to be a local static variable of the method? That should minimize the required changes.

@traversaro it can be also done but actually the required changes almost remain the same wrapping only the access to the variable, for the fact that in almost all the point the repo is currently using those member you would have to change direct variable access with wrapper method since most of the time we are in template context. Also putting the variable as static inside the function ensure the usage via the wrapping method everywhere (also in private context) and not mixed, avoiding confusion in unaware code reader and avoiding the necessity of initializing the variable in the implementation file/context. but those are only some of my thought so actually i'm fine with that also.

thanks for the discussion @traversaro @aerydna . I understand the ideas here. I'm not sure if I will just merge this in as is and then look at any other improvements for windows compilation, or to make sure to have everything done correctly before merge - but this won't be done immediately. Is it useful for you at all to have this in master immediately @aerydna ?

@arrenglover  absolutely not, i have my branch functioning here and that is the only thing needed for me to finish the task i have at the moment. feel free to merge it whenever you wish

closing for obsolescence


Dataproc module fails on init when dataproc_config (optional) is missing

The variables table here mentions that only name, project_id and region are mandatory.
The following example fails on init for some reason though:
module "beam-dataproc" {
  source     = "github.com/GoogleCloudPlatform/cloud-foundation-fabric.git//modules/dataproc?ref=daily-2023.03.10"
  project_id = "myproject"
  name       = "beam-dataproc"
  region     = "europe-west1"
}

Outputting the following error
│ Error: Invalid default value for variable
│
│   on .terraform/modules/beam-anywhere-dataproc/modules/dataproc/variables.tf line 181, in variable "dataproc_config":
│  181:   default = {}
│
│ This default value is not compatible with the variable's type constraint: attribute "cluster_config": attribute
│ "master_config": attributes "machine_type", "min_cpu_platform", and "num_instances" are required.
╵

Not sure if any changes are needed in the variable.tf file for modules/dataproc or whether cluster_config should be marked as a mandatory field? Thanks!

I just pushed a fix to the dataproc module. Can you try with HEAD?

Thanks @juliocc that works now 👍


normalized tables DDL to support FHIR in RDBMS

Hi @grahamegrieve, have you worked by any chance or felt the need to normalize FHIR documents into RDBMS flat tables? We want to load data from FHIR server for analytics and while we can store JSON documents, it is not easy to consume this data for analytics / dashboards. I wonder if you have done any work in that direction or if it even makes sense for you for that use case. I cannot find any related projects. E.g. patient resource will turn into multiple related tables with columns and simple values such as patient, patient_names, patient_identifiers etc.

Also raised at https://chat.fhir.org/#narrow/stream/analytics.20on.20FHIR/subject/traditional.20relational.20model. Closed - see further discussion there.


CRSP specificity

#877. The highlights include

general replicate validation wdl (mutect2-replicate-validation.wdl)
hardcode docker in mutect2.wdl (it's a public docker, so any user of Mutect should use this docker by default)
bring back the glob fix because the old code doesn't work in the cloud
CountFalsePositives.java is now a variant walker
Concordance.java is still beta. But it's so intertwined in the commit history I did not want to change it. Besides, the tool works and I thought it'd good to make it easily accessible to @davidbenjamin (i.e. no need to check out my branch to use it) as he plans to use it on CRSP sensitivity validation.

@davidbenjamin Since there is a significant change coming to Concordance.java (to make it a variant walker) I think it does not need to be reviewed just yet.

@davidbenjamin could you review this? For best reviewing experience please just review the final product (i.e. not commit by commit)

@takutosato Will do.  I agree with you about leaving in Concordance.java, and you're right that having it as a beta version will help me move forward with CRSP sensitivity.

Back to @takutosato

@takutosato Is Concordance different conceptually from GenotypeConcordance?

@lbergelson Similar, but we need something more precise for comparing somatic calls.  For example, in the CRSP sensitivity validation we look at allele fractions.

thanks for reviewing @davidbenjamin. back to you.

@davidbenjamin This PR is blocking me.  I'll make changes once this PR is in to rectify the WDLs.  We've had discussions in the office.

@takutosato You can squash and rebase.  Since the rebase will involve non-trivial conflicts with recent changes to the wdl, please let me review the rebased commit.  I will do so ASAP.

@davidbenjamin rebased and squashed. back to you.


[CARBONDATA-2415][WIP] Support Refresh DataMap command for all Index datamap

WIP

[ ] Any interfaces changed?

[ ] Any backward compatibility impacted?

[ ] Document update required?

[ ] Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/4348/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5513/

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/4614/


Wrong Comparison

According to the comment, the previous state should be compared to the current state:
dev->gyro_cfg.power  should be used, or?
https://github.com/BoschSensortec/BMI160_driver/blob/e69b9472c2a49300fd86325f374ce0c467a64792/bmi160.c#L3076

@kg3DtHFb1J802J1Ut ,
Yes it is a typo. This will be corrected in the next release.
Thank you.

@kg3DtHFb1J802J1Ut ,
Fixed in the release 3.7.2


Fix org.eclipse.lyo.oslc4j.rio:oslc4j-auto-common dep of hudson sample or rewrite

See https://github.com/eclipse/lyo.rio/issues/26 as well

wontfix, rio is EOL; hudson sample moved to unmaintained


Integrate IMA with Flatcar

Looking at my notebook, the only works done on this so far are:

https://github.com/flatcar/coreos-overlay/compare/main...vbatts/ima
https://github.com/flatcar/coreos-overlay/compare/main...vbatts/ima.01
https://github.com/flatcar/coreos-overlay/compare/main...vbatts/ima.02 (latest)

Additionally adding ima-evm-utils, like:
diff --git a/coreos-base/coreos-dev/coreos-dev-0.1.0.ebuild b/coreos-base/coreos-dev/coreos-dev-0.1.0.ebuild
index d23dbb2a5..c6a3d5bd5 100644
--- a/coreos-base/coreos-dev/coreos-dev-0.1.0.ebuild
+++ b/coreos-base/coreos-dev/coreos-dev-0.1.0.ebuild
@@ -17,6 +17,7 @@ KEYWORDS="amd64 arm arm64 x86"
 # and debugging failures.
 RDEPEND="
        app-portage/gentoolkit
+       app-crypt/ima-evm-utils
        coreos-base/coreos
        coreos-base/coreos-experimental
        coreos-base/gmerge
diff --git a/coreos-base/coreos/coreos-0.0.1.ebuild b/coreos-base/coreos/coreos-0.0.1.ebuild
index 2a3c2648a..00a69c9a3 100644
--- a/coreos-base/coreos/coreos-0.0.1.ebuild
+++ b/coreos-base/coreos/coreos-0.0.1.ebuild
@@ -101,6 +101,7 @@ RDEPEND="${RDEPEND}
        app-arch/zip
        app-crypt/gnupg
        app-crypt/tpmpolicy
+       app-crypt/ima-evm-utils
        app-editors/vim
        app-emulation/rkt
        app-emulation/actool

Semi-related note: In case we ever use soft-reboot, Luca Boccassi mentioned that CONFIG_IMA_WRITE_POLICY should be disabled because it appends the policy over and over again until the system is quite slow.


CI regression tests don't work with alternative branch for pipeline config

Rasa Open Source version
3.0.x
Rasa SDK version
No response
Rasa X version
No response
Python version
3.8
What operating system are you using?
OSX
What happened?
When trying to use a newly added config in the regression tests, following the steps described here, only the dataset is pulled from the branch specified in dataset_branch, but the config is looked up on main.
This is likely due to the hard-coded branch here and should be adapted to also use dataset_branch.
Command / Request
No response
Relevant log output
No response
** Definition of Done **

[ ] Fix this on main
[ ] Test with some example (e.g. Vincent's logistic regression component)
[ ] Get review from infrastructure squad

Thomasz has seen this issue before (-> reviewer ?)


Operator SDK latest version

Hi Team,
I see that the operator-sdk 0.15.2 is pretty old, do you have any plans to upgrade the operator-sdk version?

@kishkulk yes, we are planning to upgrade it to Operator SDK 1.0. The testing framework has completely changed in 1.0. So we would need to repurpose our tests to validate that nothing has broken.

@leochr thanks for your reply, any release date is planned as such ?

@kishkulk let you know when we have a release date. Thanks.

@leochr we are using runtime component operator framework for our product. As the runtime component operator serves majority of operator functionality it really helped us to use it and develop the operator. So is there a way that I contribute to this project?

@kishkulk we welcome contributions. Perhaps having a meeting would be easier to understand how you use Runtime Component Operator and where/how you can contribute. Considering the time zone difference, may I ask you to book a meeting? Preferably, sometimes next week. Thank you.

Resolved by https://github.com/application-stacks/runtime-component-operator/pull/185


Add coveralls support

Changes Unknown when pulling 822b9aa3708103a829c9c87bca24d8d8b37b204f on jdpedrie:coveralls into ** on GoogleCloudPlatform:master**.

Changes Unknown when pulling d2a577bace3f844b06968a9e6aed3be21cc7dd79 on jdpedrie:coveralls into ** on GoogleCloudPlatform:master**.

Changes Unknown when pulling 304e8f3d84fe66b6e1751f26eb7d15ebd7b53c3c on jdpedrie:coveralls into ** on GoogleCloudPlatform:master**.

LGTM

@jdpedrie I'm just curious. Where did you read that you should use dev-master?

@tmatsuo There were a few things that led me in that direction.
First was the quote I posted earlier about the 1.x series being needed for legacy PHP versions, and there not being any releases or branches I saw that were targeted for newer editions of PHP.
The second was later on in the README file, under the phpcov header, the docs specifically target dev-master.
Finally, most examples I've seen in other PHP projects using coveralls use dev-master.


Catch all unhandled exceptions to prevent the entire service going down

Follow-up to https://github.com/dart-lang/pub-dartlang-dart/issues/1098

[x] frontend
[x] analyzer
[x] search
[x] dartdoc

With #1148, the following parts are inside isolates that are automatically restarted on uncaught exceptions (after a 1-minute delay):

analyzer's job processing
search (both the indexing and http serving)
dartdoc's job processing

Shall we put all the other http serving parts (frontend, analyzer, dartdoc) in a separate, restartable isolate?
How much delay should we use for http-serving isolate restarts (if at all)?

I think restartable isolates could provide a good catch-all handler, and if there is too many of them (e.g. 3+ in a minute), we could just abort/exit the DartVM and let AppEngine do its thing. WDYT @jakobr-google ?

Running the http handlers in a separate isolate from the job runners sgtm. I don't think I'd put a delay on restarting the http handler isolate, at least not the first time - but maybe limit it to 1 restart per 10-20 seconds? And then abort completely on too many failures.

I was checking package:isolate if it can help us, but I don't think it is a good match for our use-case. Pinging @kevmoo as he contributed to that package to confirm that it is more for running short-lived tasks through a "main" controller than our "managed process" case.

Reopening, because local development didn't show frontend isolate error, and it was confusing what is happening.


Added languages dict for convenience.

Added languages for easier lookup instead of the wiki's nasty pages and links (found them discouraging) + it helps me automate my overall crawling task (so I can properly check for languages, if they exist).

Hey @EmilLuta,
Once question:
Are you sure that this is a complete list of all the languages? I mean, I've noticed that there are some missing dialects, don't you think these are important?
For instance, you only included ara as Arabic, but what if there's a difference in the way you pronounce a certain name in different dialects of Arabic?
What do you think?

@bluzi I've also been thinking about that. My judgement at that time was:

I strongly felt that dialects had same names.
Easier to scrape.
Couldn't find a single counter-example to 1).

As far as it is concerned, I'm flexible about it.
P.S. What about the extra branch where we can keep the current scraper?

Hey @EmilLuta,
I made you a collaborator, so you can create a branch.

@bluzi Sorry for the high off-time, been in a holiday.
I can't push already, did you give me write access?
Also, I believe we should make a decision with this PR. Either 'fix' it or close it. Let me know how you'd like to process. I'll move forward with the scraper.

Hi @EmilLuta, looks like you haven't approved the invitation.

@bluzi You were right. I've been a bit clumsy. On this note, I'll need to have a small chat with you on my latest PR (functionality wise).
On a side note, I could give you a hand of help with closing PRs, as long as you communicate clearly your expectations from a PR. Let me know what you think.

Sure, feel free to add me on Hangouts.
eliran013 AT gmail.com


feat(og-list-item): introduce own component for a list item

Pull Request
Type of change

New feature (a non-breaking change)

Description
Introduce a separate component for a list item.
Checklist

[x] Local build is still running with my changes
[x] I added tests
[x] New and existing unit test pass locally with my changes
[x] My changes do not contain any dead or commented out code
[x] I added documentation for public functionality
[x] I added comments, at least in hard-to-understand areas

@tikri I accepted your recommendations.


MainLoop.RunTimers(): System.ArgumentException: 'An entry with the same key already exists

Hello,
I'm having trouble in the MainLoop execution which is throwing an exception in the RunTimers() method. It is failing when trying to add the Timeout back to be run again in the next iteration. The issue seems to be that the calculated ticks can be a duplicate with what is already in the SortedList which then throws the exception. I'm thinking that when RunTimers() adds the Timeouts back for the next iteration, it causes DateTime.UtcNow to possibly be the same for multiple timeouts. So then any timeouts with the same TimeSpan defined would then cause a collision.

One possible solution might be to implement a custom IComparer that allows for duplicate keys.

It is failing when trying to add the Timeout back to be run again in the next iteration.

Can you show how you are doing this please.

Ill see if I can come up with a simple recreation.

This code triggers the exception even without attempting the setup the second iteration of the Timers.
public static void Main()
{
    Application.Init();

    var window = new Window() { Height = Dim.Fill(), Width = Dim.Fill() };
    Application.Top.Add(window);

    var progress1 = new ProgressBar() { Height = 1, Width = Dim.Fill(), Y = 1 };
    var progress2 = new ProgressBar() { Height = 1, Width = Dim.Fill(), Y = 2 };

    window.Add(progress1);
    window.Add(progress2);

    Application.MainLoop.AddTimeout(TimeSpan.FromMilliseconds(100), loop =>
    {
        progress1.Pulse();
        return true;
    });

    Application.MainLoop.AddTimeout(TimeSpan.FromMilliseconds(100), loop =>
    {
        progress2.Pulse();
        return true;
    });

    Application.Run();
}

This code snippet will make it through and execute Application.Run(), but when the MainLoop attempts to setup the next iteration of the Timeouts, thats when it will throw the exception.
public static void Main()
{
    Application.Init();

    var window = new Window() { Height = Dim.Fill(), Width = Dim.Fill() };
    Application.Top.Add(window);

    var progress1 = new ProgressBar() { Height = 1, Width = Dim.Fill(), Y = 1 };
    var progress2 = new ProgressBar() { Height = 1, Width = Dim.Fill(), Y = 2 };
    var progress3 = new ProgressBar() { Height = 1, Width = Dim.Fill(), Y = 3 };

    window.Add(progress1);
    window.Add(progress2);

    Application.MainLoop.AddTimeout(TimeSpan.FromMilliseconds(100), loop =>
    {
        progress1.Pulse();
        return true;
    });

    Thread.Sleep(1000);
    Application.MainLoop.AddTimeout(TimeSpan.FromMilliseconds(100), loop =>
    {
        progress2.Pulse();
        return true;
    });

    Thread.Sleep(1000);
    Application.MainLoop.AddTimeout(TimeSpan.FromMilliseconds(100), loop =>
    {
        progress3.Pulse();
        return true;
    });

            Application.Run();
}

None of them are giving any error. Do you are using the nuget package or the Gui repository?

I am running a clone of master.

I haven't any exception.

This might be something you are doing that there isn't in these snippets that is causing the exception.

I’ll pull from master again and rerun my test but I’ll post the whole Program class along with my .csproj when I have a chance.

Does this still repro? I'm closing for now. Please comment if it's still repro and we can reopen.


HWKINVENT-70 Resource to be checked is invalid when creating a new

environment

@metlos could you please review?

Please ignore this one, it was replaced by https://github.com/hawkular/hawkular/pull/214


encoding/asn1: class and tag constants shouldn't be private.

I'm trying to extract an otherName from the subjectAltName of a certificate. Currently the code looks like this
if ext.Id.Equal(subjectAltName) {
    var altName asn1.RawValue
    asn1.Unmarshal(ext.Value, &altName)
    if altName.Class == 0 && altName.Tag == 16 {
        data := altName.Bytes
        for len(data) > 0 {
              var alt asn1.RawValue
              data, _ = asn1.Unmarshal(data, &alt)
              if alt.Class == 2 {
                  switch (alt.Tag) {
                  case 0:
                      ...
                  }
              }
          }
     }
}

As you can see there's a lot of magic numbers there. Almost all of those are defined constants in asn1/common.go, but they're set to private, so I can't use them. I don't think they should be private since they're well defined ASN.1 constants.

@agl for a decision

Considering that asn1.RawValue already exposes them, I'm also in favor of exporting the constants.
If they were public, it might be nice to make them typed constants so they can have methods, but https://golang.org/pkg/encoding/asn1/#RawValue already uses Tag and Class as just int, so I guess typed constants are out.

For @agl if he wants it: https://go-review.googlesource.com/17311


Grype feed group count

What this PR does / why we need it:
This pr adds an additional function (along with a test) to return the feed and group vulnerability record counts from grype db.
Which issue this PR fixes (optional, in fixes #<issue number>)(, fixes #<issue_number, ...) format, will close the issue when PR is merged: fixes #1021

@nightfurys @Vijay-P I've addressed all feedback on this, either here or in https://github.com/anchore/anchore-engine/pull/1029 as made sense merge-ease-wise. (My plan is to merge this one into the feature branch first, then rebase 1029 on that and class-ify anything new added here). Are you good for me to merge this one now?

Thanks for being patient with the feedback @dspalmer99! Merging this into integration branch, if there's any remaining work a new PR can be opened


Report memory bandwidth

Is there an existing proposal for this?

[X] I have searched the existing proposals

Is your feature request related to a problem?
One thing that needs to be checked before trying to parallelize a code is to see whether or not memory bandwidth has already been saturated. Adding this feature would help programmers make more informed decisions as to when parallelizing a code is worth the effort.
Describe the solution you'd like
I'd like to see a memory bandwidth (MB/s) metric as part of the profile.
Alternatives you considered
Currently, I use pcm to track memory bandwidth, but it's very manual and tedious (as I need to dynamically monitor the terminal output generated by pcm by "eye" while the program is running and somehow draw conclusions!)

Hi @ma-sadeghi and thanks for opening this issue.
What you are asking seems to be related to measuring memory bandwidth (at least in the same sense as pcm does). pcm can do those measurements because they have much more control over the CPU, instructions and many other things that we don't (is an INTEL product and only works with INTEL processors). On the other hand, memray is a general-purpose heap memory profiler, which is a very different tool. memray can only track APIs that increase the heap size like malloc, realloc, mmap... but it can not track memory bandwidth and other CPU/RAM specific metrics as we don't have visibility on those. memray can be used to track memory usage (as in, how much memory is being used by a program and where that memory came from) but any other metric regarding memory would require another specialized tool that has more control over the hardware and the drivers.
Unfortunately, I am afraid that you will need to find some other tool that can do these reports. In any case, thanks for opening the issue with us and thanks for using memray ❤

Hi @pablogsal, thank you so much for your detailed response, it all makes sense :)


Adding support for complex dtypes

Hi,
I finally have the time to actually finish this PR. I've been trying to start from scratch instead of going over all of the changes, and currently the solvers are able to return a solution, it's just the wrong solution.
I'm not sure how to debug this, any suggestions?

Some suggestions:

Go through the guts of the integration code, adding jax.experimental.host_callback.id_print statements to see what value each array takes, and where things go wrong.
Try using e.g. Tsit5().step directly instead of the diffeqsolve interface. Check if that works as you expect.
Try using only constant step sizes, and not adaptive step sizing, if you aren't already. Just trying to get the simplest possible thing working first.

It seems that jax.experimental.host_callback.id_print is doing nothing when I run in debug mode. Should I use it directly in a print statement?


Score is set incorrectly when adding a result

When you add result with command like this:
/klesk addresult +klesk anarki 23:18
and in the ladder.json players are placed in a different order:
{
    matches: [
        {
            player1: 'anarki', player2: 'klesk'
        }
    ]
}

then you get stats like this:
[ anarki vs +klesk (23:18) on furious heights]
but should be
[ anarki vs +klesk (18:23) on furious heights]
The best solution would be to fix how the score is saved, not how it is displayed.

I dunno, imo this is overkill (score is just a text)... and I'd honestly only format it correctly and let user input the score in whatever order they like (less annoying validation on input is always better)

did some magic in PR #30 - displaying score in the same order as players everywhere


Add "Text data" to data section

Please add a section for "text data" under data types and include the following:
COVID-19 publications on EuropePMC
https://www.covid19dataportal.org/literature?db=literature
COVID-19 Open Research Dataset (CORD-19)
CORD-19 is a growing collection of more than 128,000 scholarly articles about SARS-CoV-2 and other coronaviruses, which is put together by the Allen Institute for AI.
https://www.semanticscholar.org/cord19/download

@talavis - I'm not sure this is fully solved yet? The issue auto-closed because of the merge, but will reopen for now.

According to the discussion we had on Slack this "morning", this should be solved in the intended way now. The way I understood is that Sonja will add links herself, while we created the sections (also "service" instead of data type).


Create /newgibill redirect

Feature
Why is this feature being added?
There exist external references to operationcode.org/newgibill and it's a big search engine optimization. OC will gain more views if this page is added.
What should your feature do?

Create a page that provides information on the new GI Bill, and how it can be utilized to fund an education to get a tech job.
Link this page in the header (topNav and sideNav)

Change of scope - let's just redirect to http://www.benefits.va.gov/gibill/post911_gibill.asp.

Edited OP to be more beginner friendly.


Unable to read import plotting_modules

while giving the command import plotting_modules , its seems an error . Actually i want know which is the directory that i want to give with cd

apologies for this very late reply. If possible, could you please provide more information regarding the problems you have. I am not able to help with the info you provided right now.

Thankyou sir for your consideration.
I am not able to install mpi4py=3.0.1.
Hereby attaching the screenshot of the conda prompt.
Thankfully
JITHIN P M
On Wed, Apr 7, 2021 at 8:48 AM chengxinjiang @.***>
wrote:

apologies for this very late reply. If possible, could you please provide
more information regarding the problems you have. I am not able to help
with the info you provided right now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mdenolle/NoisePy/issues/25#issuecomment-814570391,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASQFRRV4HUQQKROJWAMONNDTHPFG3ANCNFSM4XZ3G5UA
.

I see. So the problem is not caused by potential bugs in the NoisePy, but rather installing the dependent libraries. In this case, I will need to close this issue. The complex environment and system at the users' end make it really hard to provide a useful suggestion. But I would like to suggest you try "pip install mpi4py" to see whether it helps you install the mpi4py.

Sir but in pip i failed to install obspy.
Hereby attaching the screenshot.
On Thu, Apr 8, 2021 at 4:28 PM chengxinjiang @.***>
wrote:

I see. So the problem is not caused by potential bugs in the NoisePy, but
rather installing the dependent libraries. In this case, I will need to
close this issue. The complex environment and system at the users' end make
it really hard to provide a useful suggestion. But I would like to suggest
you try "pip install mpi4py" to see whether it helps you install the mpi4py.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mdenolle/NoisePy/issues/25#issuecomment-815665732,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASQFRRXHAMBQ6EEHEBZ2VMLTHWD35ANCNFSM4XZ3G5UA
.


Feature: start Origin/EA minimized and add an option to close the console

Alt-tabbing and sharing screens on Discord can be a pain with the console window open, and not many people are going to use it anyways, so a command-line argument that can be placed into origin's launch args or into the Northstar arguments text file would be really nice to have. Also, when starting Northstar without Origin or EA Desktop open, when it opens the app it should be minimised or hiding in the system tray.

I'm not totally sure if there are any specific window tags/hints/etc that Discord uses to figure out whether something can be streamed, so I wasn't able to figure out that sort of thing, but this diff is something that'll hide the console.
I'm not sure if this is the sort of thing people would want integrated into the launcher or not. If the console is hidden it currently makes it impossible (as I've tested) to stream the app on Discord.
I also added CREATE_NO_WINDOW for launching Origin, but that doesn't seem to make it start minimized. I don't personally know much about programming on windows specific API's so someone else might need to look into it.
diff --git a/LauncherInjector/main.cpp b/LauncherInjector/main.cpp
index 7697e80..7ff89b1 100644
--- a/LauncherInjector/main.cpp
+++ b/LauncherInjector/main.cpp
@@ -106,7 +106,7 @@ void EnsureOriginStarted()
     memset(&pi, 0, sizeof(pi));
     STARTUPINFO si;
     memset(&si, 0, sizeof(si));
-    CreateProcessA(originPath, (char*)"", NULL, NULL, false, CREATE_DEFAULT_ERROR_MODE | CREATE_NEW_PROCESS_GROUP, NULL, NULL, (LPSTARTUPINFOA)&si, &pi);
+    CreateProcessA(originPath, (char*)"", NULL, NULL, false, CREATE_DEFAULT_ERROR_MODE | CREATE_NEW_PROCESS_GROUP | CREATE_NO_WINDOW, NULL, NULL, (LPSTARTUPINFOA)&si, &pi);

     printf("[*] Waiting for Origin...\n");

@@ -139,6 +139,18 @@ void PrependPath()
     }
 }

+bool ShouldHideConsole()
+{
+    return strstr(GetCommandLineA(), "-hideConsole") != NULL;
+}
+
+bool HideConsole()
+{
+    // Could also use ShowWindow(GetConsoleWindow(), SW_HIDE);
+    // Not clear what the main difference is between these things.
+    return FreeConsole();
+}
+
 bool ShouldLoadNorthstar(int argc, char* argv[])
 {
     bool loadNorthstar = true;
@@ -230,6 +242,12 @@ int main(int argc, char* argv[]) {
         }
     }

+    if (ShouldHideConsole())
+    {
+        printf("[*] Goodbye console...");
+        HideConsole();
+    }
+
     printf("[*] Launching the game...\n");
     auto LauncherMain = GetLauncherMain();
     if (!LauncherMain)

Will look into this issue for next release

#107 allows you to hide the console so that's a start

#108 makes origin start in the background

also it seems like the problem with discord not identifying the titanfall window is fixed and may have been for a while; i get the thing in the bottom left prompting me to screen share titanfall 2 when i have northstar open


fix: misc ads bugs

Description
https://www.notion.so/appsmith/Entity-explorer-functionality-QA-callout-bb3f7b44f544497cba6d8ce800909f38?pvs=4#2c80b9c6a17c44ef88f10cf72b44af81
The MenuContent height seems to shrink when it doesn't have much space. Resetting the max height seems to maintain the height and positions itself to be fully visible. Fixed in https://github.com/appsmithorg/appsmith/pull/23259
https://www.notion.so/appsmith/Entity-explorer-functionality-QA-callout-bb3f7b44f544497cba6d8ce800909f38?pvs=4#7113a59d1c7e481693ad9b855bcb0899
Not closing the menu programmatically makes the menu component eat up all keyboard shortcuts. Closing the menu as in setting the isOpen to false seems to get the keyboard shortcuts working again.
https://www.notion.so/appsmith/Changes-are-being-saved-when-not-intended-in-Application-page-d3c5f5bae2e84463916560d4bd7fef88
Missed workspace name in https://github.com/appsmithorg/appsmith/pull/23259 fixed it here.
https://www.notion.so/appsmith/Entity-explorer-functionality-QA-callout-bb3f7b44f544497cba6d8ce800909f38?pvs=4#d8d8e69d79b14c4ca519239de251c19a
Added back tooltip

/build-deploy-preview env=release

/build-deploy-preview env=release

/build-deploy-preview env=release


Separate distincts clouds

Currently, I have two distinct clounds, but they are stick together.

Is there a way to separate them with UMAP? Otherwise, what could be a good alternative to separate them topologically? Is there an analytic approach which can be used here?
UPDATE
I am looking for an analytical approach to separate the clouds after applying umap.fit_transform(). I used different approach to get distinct clouds with t-SNE, PCA, SVM, used NN to classify the points. The problem is I always got clouds stick together. The better result though was with UMAP. Now, I am interested to force to separate the clouds once the UMAP has been applied.

What does the original data look like, which you apply UMAP (or one of the other DR techniques) too?


GPII-3377- Enable logging APIs

Some APIs are needed to enable the logging feature

LGTM

LGTM

LGTM


better description of Code Champ

I have added new lines better describing code Champ and removed possible errors

Thanks for making our website more readable @Saksh8 .
Happy Coding ♥.


LIMIT/OFFSET with parameters

Hi,
When using #offset and #limit methods, the provided values are always inlined in generated SQL like e.g.:
SELECT ... FROM ... LIMIT 100
SELECT ... FROM ... LIMIT 100 OFFSET 100
SELECT ... FROM ... LIMIT 100 OFFSET 200
etc...
This is a problem when we want to create a prepared statement. Prepared statements must not have (as far as I know) inlined values because it would cause separate execution plan for all possible combinations.
I was trying something like this: squel.select()...limit('?', limit).offset('?', offset) but the parameter verifier throws exception prventing SQL injections.
What do you think about extending the #toParam() functionality, so it would parametrize the limit/offset in generated queries?

That's doable. Do most db engined allow for parameterization of these clauses?
On 14 February 2015 00:11:15 Witold Szczerba<EMAIL_ADDRESS>wrote:

Hi,
When using #offset and #limit methods, the provided values are always
inlined in generated SQL like e.g.:
SELECT ... FROM ... LIMIT 100
SELECT ... FROM ... LIMIT 100 OFFSET 100
SELECT ... FROM ... LIMIT 100 OFFSET 200
etc...
This is a problem when we want to create a prepared statement. Prepared
statements must not have (as far as I know) inlined values because it would
cause separate execution plan for all possible combinations.
I was trying something like this: squel.select()...limit('?',  limit).offset('?', offset) but the parameter verifier throws exception
prventing SQL injections.
What do you think about extending the #toParam() functionality, so it
would parametrize the limit/offset in generated queries?

Reply to this email directly or view it on GitHub:
https://github.com/hiddentao/squel/issues/129

Well, I checked with PostgreSQL and it works. I cannot say about other databases as I do not use any of them now.
Maybe @lukaseder could tell? He rules the world of SQL in Java-land as an author of jOOQ. He knows SQL databases better than cumulative of all other people I know :)

Thanks, @witoldsz, for pinging and for your flattering words. First off, I don't even want to start (again) about how difficult it is to get LIMIT .. OFFSET emulation right for all databases. I've already published this informative (but incomplete) rant here, so you get the idea:
http://blog.jooq.org/2014/06/09/stop-trying-to-emulate-sql-offset-pagination-with-your-in-house-db-framework/
Of course, you're off to implement and support a whole framework yourself, so the above is not applicable advice in this case.
Luckily (for you), this issue here is merely about bind variables, which are supported in at least these databases:

CUBRID
Derby
Firebird
MariaDB
MySQL
H2
HSQLDB
Oracle 12c (OFFSET .. FETCH)
PostgreSQL
SQLite
SQL Server 2012 (OFFSET .. FETCH)

But not in these ones:

Access (TOP)
DB2 (FETCH)
Ingres
Informix
SQL Server (TOP)
Sybase ASE (TOP)
Sybase SQL Anywhere (TOP .. START AT)

If you're using ROWNUM (Oracle) or ROW_NUMBER() OVER() emulation for offset calculation, then you can also use bind variables for:

DB2 (ROW_NUMBER())
Oracle (ROWNUM)
SQL Server (ROW_NUMBER())
Sybase SQL Anywhere (ROW_NUMBER())

Given that Squel is not really building a complete AST (from what I can tell), but rather helping compose string-based SQL templates, I don't think you should worry about whether bind variables are supported in LIMIT .. OFFSET and just pass them through to the SQL engine.
Hope this helps
Lukas

@lukaseder Thanks for that very informative clarification! Indeed, Squel isn't really building a complete AST - it's simply an attempt to provide a nicer alternative to raw string concatenation.


OSQP solver: Problem contains unspecified parameters.

def _lstsq_initial(self, z):
        fodf_sh = csd._solve_cholesky(self._P, z)
        s = np.dot(self._reg, fodf_sh)
        fodf_sh_ = cvx.Variable(fodf_sh.shape)
        fodf_sh_.value = fodf_sh
        s_ = cvx.Variable(s.shape)
        s_.value = np.clip(s, 1e-10, None)
        init = {'x': fodf_sh_,
                's': s_}
        return init

def __init__(self, X, reg):

        # self._P_init = np.dot(X[:, :N].T, X[:, :N])
        self._P = P = np.dot(X.T, X)
        self._X = X

        # No super res for now.
        assert _rank(P) == P.shape[0]

        self._reg = reg

        # Make cvxpy matrix types for later re-use.
        self._P_mat = cvx.Parameter(P.shape)
        self._P_mat.value = P
        self._x_mat = cvx.Parameter(P.shape[0], 1)
        self._reg_mat = cvx.Parameter(reg.shape)
        self._reg_mat.value = -reg
        self._h_mat = cvx.Parameter(reg.shape[0], 1)
        h_ = np.zeros((reg.shape[0]))
        self._h_mat.value = h_

def __call__(self, signal):
        z = np.dot(self._X.T, signal)
        init = self._lstsq_initial(z)
        z_mat = cvx.Variable(z.shape[0], 1)
        z_mat.value = z
        constraints = [self._reg_mat * self._x_mat >= self._h_mat]
        objMin = cvx.Problem(cvx.Minimize(0.5 * cvx.quad_form(self._x_mat, self._P_mat) + \
                                         (z_mat.T * self._x_mat)), constraints)
        r = objMin.solve(solver=cvx.OSQP)
        fodf_sh = r['x']
        fodf_sh = np.array(fodf_sh)[:, 0]
        return fodf_sh

I am constructing the OSQP problem as above but am getting the error: 'Problem contains unspecified parameters'. Does this mean that the quad_form has been written wrongly with 2 parameters?
I am relatively new to CVXPY and any help would be appreciated!
Thanks!

Thank you @bstellato ! Can you also point me to some example/ tutorial that solves some QP problem in a similar manner? I am unable to find some using OSQP...

All the cvxpy problems that can be cast as QPs are solved by default with OSQP. For additional ones, you can check out the osqp docs.

The same problem (mentioned above) was formulated and was working in CVXOPT as:
def _lstsq_initial(self, z):
        fodf_sh = csd._solve_cholesky(self._P, z)
        s = np.dot(self._reg, fodf_sh)
        init = {'x': cvx.matrix(fodf_sh),
                's': cvx.matrix(s.clip(1e-10))}
        return init

def __init__(self, X, reg):
        self._P = P = np.dot(X.T, X)
        self._X = X

        # No super res for now.
        assert _rank(P) == P.shape[0]

        self._reg = reg
        # self._P_init = np.dot(X[:, :N].T, X[:, :N])

        # Make cvxopt matrix types for later re-use.
        self._P_mat = cvx.matrix(P)
        self._reg_mat = cvx.matrix(-reg)
        self._h_mat = cvx.matrix(0., (reg.shape[0], 1))

def __call__(self, signal):
        z = np.dot(self._X.T, signal)
        init = self._lstsq_initial(z)

        z_mat = cvx.matrix(-z)
        qp = cvx.solvers.qp
        r = qp(self._P_mat, z_mat, self._reg_mat, self._h_mat, initvals=init)
        fodf_sh = r['x']
        fodf_sh = np.array(fodf_sh)[:, 0]
        return fodf_sh

I intend to just port this code to CVXPY.. Just facing a hard time in understanding how to!

Thank you @bstellato ! Can you also point me to some example/ tutorial that solves some QP problem in a similar manner? I am unable to find some using OSQP...

I want self._x_mat to be my optimization variable. But when I set it up as:
self._x_mat = cvx.Variable(P.shape[0], 1)
It gives me a dcp error. As in:
objMin = cvx.Problem(cvx.Minimize(cvx.quad_form(self._x_mat, self._P_mat)))
objMin.is_dcp()

returns False. Am I doing something wrong in setting up the problem? Because in CVXOPT I did not have to explicitly set up the optimization variable and the interface was a little simpler to understand.
Any help would be super useful!
Thanks!

@bstellato also, how can I set initvals in CVXPY as in CVXOPT? Is there an equivalent function to do so?

You cannot set initvals in CVXPY. It shouldn't matter too much for a QP, I would think.

The only way you could get objMin.is_dcp() to be False is if self._P_mat is not PSD, assuming everything has the correct dimensions.

The only way you could get objMin.is_dcp() to be False is if self._P_mat is not PSD, assuming everything has the correct dimensions.

Hi Steven,
Thank you for your response! I think I have corrected this, by specifying the values in setting up the problem as follows:
objMin = cvx.Problem(cvx.Minimize(0.5 * cvx.quad_form(self._x_mat, self._P_mat.value) + z_mat.value.T * self._x_mat)), constraints)
Does this seem correct to you?
On doing the above, objMin.is_dcp()  is returning True!

You cannot set initvals in CVXPY. It shouldn't matter too much for a QP, I would think.

Thank you! I actually need this for another open-source project: DIPY (Diffusion Imaging in Python). The model needs to start the QP from a Cholesky Decomposition's initvals generated by another algorithm (Constrained Spherical Deconvolution).
I read that I could set the Variable.value to my primal initial point. Is there a way that I can make use of this to set the initvals as 'x' and 's' like in CVXOPT: QP ?
Thanks again :)

Unfortunately cvxpy does not yet support setting initial values. You can add it as a requested feature, though it's probably already in the TODOs.


Create virtualenv with python3.5 in local installation

I'm trying to reproduce #2582 and I found a problem in my local instance.
Details

Project URL: http://readthedocs.org/projects/diofant/

Expected Result
Build the project using python3.5 inside the virtualenv.
Actual Result
The command executed is python3.5 but the virtualenv created is for python2.7
Image

Correct command to be executed
This is the command that creates a virtualenv with python3.5 in my pc:
$ python3.5 -mvirtualenv --python python3.5 --no-site-packages --no-download /home/humitos/readthedocs/readthedocs.org/user_builds/diofant/envs/latest
Already using interpreter /usr/bin/python3.5
Using base prefix '/usr'
New python executable in /home/humitos/readthedocs/readthedocs.org/user_builds/diofant/envs/latest/bin/python3.5
Not overwriting existing python script /home/humitos/readthedocs/readthedocs.org/user_builds/diofant/envs/latest/bin/python (you must use /home/humitos/readthedocs/readthedocs.org/user_builds/diofant/envs/latest/bin/python3.5)
Installing setuptools, pkg_resources, pip, wheel...done.

Is this using the docker builder, or the local environment builder?

I suppose that the local environment builder since I didn't change the default values and I have DOCKER_ENABLE = False in readthedocs/settings/base.py

Okay, yeah, we don't develop this method for building docs anymore, we only use the local environment to trigger the virtualenv creation. We've talked of just supporting docker build environments as that's all we run in production anyways. This might be solved by using the interpreter name on the other python calls, to force python3.5 to be called

I'm trying the docker build now and there is another problem:
[24/Feb/2017 08:11:17] ERROR [readthedocs.doc_builder.environments:306] (Build) [pip:9.0.0] mem_limit has been moved to host_config in API version 1.19
Traceback (most recent call last):
  File "/home/humitos/readthedocs/readthedocs.org/readthedocs/doc_builder/environments.py", line 504, in __enter__
    self.create_container()
  File "/home/humitos/readthedocs/readthedocs.org/readthedocs/doc_builder/environments.py", line 627, in create_container
    mem_limit=self.container_mem_limit,
  File "/home/humitos/.virtualenvs/rtd-py2/local/lib/python2.7/site-packages/docker/client.py", line 243, in create_container
    volume_driver
  File "/home/humitos/.virtualenvs/rtd-py2/local/lib/python2.7/site-packages/docker/utils/utils.py", line 552, in create_container_config
    'mem_limit has been moved to host_config in API version 1.19'
InvalidVersion: mem_limit has been moved to host_config in API version 1.19

I had to downgrade the docker-py requirements to
pip install docker-py==1.2.3

Now, it passed that section but it failed because I wasn't pulled the docker image yet. I'm pulling it right now but it seems to be very big, so it will take a while.

Now, there is another issue:
[24/Feb/2017 11:42:50] INFO [readthedocs.doc_builder.environments:472] Creating container
[24/Feb/2017 11:42:51] "PUT /api/v2/build/31/ HTTP/1.1" 200 317
[24/Feb/2017 11:42:51] INFO [readthedocs.doc_builder.environments:196] Running in container build-31-project-29-retriever: 'python2.7 -mvirtualenv --no-site-packages --no-download /home/humitos/readthedocs/readthedocs.org/user_builds/retriever/envs/stable' [/home/humitos/readthedocs/readthedocs.org/readthedocs/settings]
[24/Feb/2017 11:42:51] "POST /api/v2/command/ HTTP/1.1" 201 395
[24/Feb/2017 11:42:51] ERROR [readthedocs.doc_builder.environments:306] (Build) [retriever:stable] Command python2.7 -mvirtualenv --no-site-packages --no-download /home/humitos/readthedocs/readthedocs.org/user_builds/retriever/envs/stable failed:
/bin/sh: 1: cd: can't cd to /home/humitos/readthedocs/readthedocs.org/readthedocs/settings
Traceback (most recent call last):
  File "/home/humitos/readthedocs/readthedocs.org/readthedocs/projects/tasks.py", line 172, in run
    self.setup_environment()
  File "/home/humitos/readthedocs/readthedocs.org/readthedocs/projects/tasks.py", line 315, in setup_environment
    self.python_env.setup_base()
  File "/home/humitos/readthedocs/readthedocs.org/readthedocs/doc_builder/python_environments.py", line 100, in setup_base
    bin_path=None,  # Don't use virtualenv bin that doesn't exist yet
  File "/home/humitos/readthedocs/readthedocs.org/readthedocs/doc_builder/environments.py", line 313, in run
    return self.run_command_class(cls=self.command_class, cmd=cmd, **kwargs)
  File "/home/humitos/readthedocs/readthedocs.org/readthedocs/doc_builder/environments.py", line 350, in run_command_class
    raise BuildEnvironmentWarning(msg)
BuildEnvironmentWarning: Command python2.7 -mvirtualenv --no-site-packages --no-download /home/humitos/readthedocs/readthedocs.org/user_builds/retriever/envs/stable failed:
/bin/sh: 1: cd: can't cd to /home/humitos/readthedocs/readthedocs.org/readthedocs/settings

[24/Feb/2017 11:42:52] INFO [readthedocs.doc_builder.environments:523] Removing container build-31-project-29-retriever
[24/Feb/2017 11:42:52] INFO [readthedocs.doc_builder.environments:537] (Build) [retriever:stable] Build finished

I will try to fix it by myself, but I will probably need some guidance.

OK, the previous error was because I was launching runserver from another path different than where the manage.py is.
Now, the problem is related to permissions since Docker container is using a docs user which doesn't have permissions to edit what humitos (my own user) has created. I will fix that now and continue with this process.

OK, this is a mess but I found a hacky and ugly solution for this.

create docs user in my system using the commands from the Dockerfile (be careful here with the group and user id because you can break everything! :) )
 groupadd --gid 205 docs
 useradd -m --uid 1005 --gid 205 docs

Create the project using the web interface

Change the group of the just created folders
 sudo chgrp -R docs user_builds

Re-run the build

Can you share how is your development environment setup since I think this is not the right way of doing it?

My environment is going to be different, because I'm on OSX. I'm running docker on a VM, and much of that won't translate to your set up. You shouldn't need to downgrade the docker python package, just set the version of the docker API that matches your server. On my machine, this is:
DOCKER_ENABLE=True
DOCKER_SOCKET='tcp://<IP_ADDRESS>:2375'
DOCKER_VERSION='1.17'

Your fix is actually correct, given you're running docker on your host system. My Vagrant VM just mounts the path with o+wrx,g+wrx,u+wrx permissions.

I'm closing this one. The original problem was solved with #2692 and there is another attempt more general at #3152 and also #3003


Plugin doesn't Start

After the latest update I get an error loading the plugin.  there is no further information although I turned on noble mode.  this is the only info:
21HOOBSFEHLERError loading plugin "homebridge-openwebif-tv"
Best regards

Report please on HOOBS support, it is HOOBSFEHLER

ok, i will do


When I have 2 button, How can I hiden the tableview?

When I have 2 button, How can I hiden the tableview?

I've pushed a new version (0.1.3). Can you tell me if this resolved the issue you had? If not, can you provide a bit more details into what you are trying to make so I can try and replicate the issue?
I'm aware of the overlapping dropdowns, and I'll fix that in the next version.

I have some suggestions for you:

I create multiple dropdowns. When I click first dropdown, other dropdowns can auto hidden.
Auto create background mask, when I click the mask, dropdowns will be hidden.
When click then button of dropdown, The title can set bold or other color.
Build some function help us control dropdowns. (E.g onClicked do something)

I create multiple dropdowns. When I click first dropdown, other dropdowns can auto hidden.
Auto create background mask, when I click the mask, dropdowns will be hidden.
hide dropdowns on tap outside.

Added in 0.1.4

Build some function help us control dropdowns. (E.g onClicked do something)

There already is a callback function that activates when the user selects an item in the dropdown list. Did you have something else in mind?

When click then button of dropdown, The title can set bold or other color.

I don't think that everyone would want the font to change on button press. However, I might be able to add an event to handle this case. I asume this is what you meant by 5. ?
Thanks for the feedback

Build some function help us control dropdowns. (E.g onClicked do something)

Update: Added in 0.1.5
self.dropdownMenu.onMenuButtonTapped = {

willOpen -> () in

// do something

}


MinGW fails to compile due to warnings

(From here: https://github.com/asmaloney/libE57Format/issues/245#issuecomment-1518088249)
I think his fix in CRCpp (which is what I used here) won't work for MinGW.
@UshnaGul - can you try changing the checks in CheckedFile.cpp from
#if defined( WIN32 ) || defined( _WIN32 ) || defined( WINCE )

to
#if defined( _MSC_VER )

That should turn off the pragmas MinGW doesn't understand. Not sure if it will throw other errors though.

I did that and it appears to be fixed. But I did the same thing in another place as I had a similar error and now I am running into more issues:

E57SimpleData.cpp:

Errors:
undefined reference to `e57::Data3DPointsData_t::Data3DPointsData_t(e57::Data3D&)'

I don't know how to fix this since I can't compile with MinGW and it seems like it's a bigger problem (whac-a-mole!).
I'll check in a couple of fixes and leave this issue open in case someone with MinGW wants to fix it.


[Event Request]Application “Tests-Workflow”, 134209 "Workflow Overview Tests"

[Event Request]Application “Tests-Workflow”, 134209 "Workflow Overview Tests"
Could you please insert the OnTestInitialize Event at the beginning of Initialize procedure:

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


index.md

Hello
I am Sanjay Kumar Thkaur
I am a computer science Student
This is an <h1> header, which is the largest
This is an <h2> header
This is an <h3> header
This is an <h4> header
This is an <h5> header
This is an <h6> header

In CPP
cout<<"Hello World"<<endl;

[x] CPP
[x] Java
[ ] JavaScript

accepted


Initial draft of yaqd-controld yep

merging to render for future reference---it's only a draft as of now :smile:


is there a way to send failed message to another appender ?

when the logstash tcp server cann't be connected , is there a way send the failed message to another appender , eg FileAppender ?

You can provide either a logback StatusListener or a logstash-logback-encoder TcpAppenderListener, and perform additional logging in those listeners.

When I close the logstash , I got the warning message below:
WARN in net.logstash.logback.appender.LogstashTcpSocketAppender[logstash-compose] - Log destination <IP_ADDRESS>:9601: Waiting 987ms before attempting reconnection.
But in the custom TcpAppenderListener event handle method didn't receive the failed message . my test implemention just empty method . I just want to test when the logstash server down how the message to be deliveried.
`public class FailureEventAppenderListener implements TcpAppenderListener {
private Logger log = LoggerFactory.getLogger("logstash-failure");

/**
 * Called after given appender successfully sent the given event over the TCP connection.
 *
 * @param appender                the appender that sent the event
 * @param socket                  the socket over which the appender sent the event
 * @param deferredProcessingAware the event that was sent
 * @param durationInNanos         the time (in nanoseconds) it took to send the event
 */
@Override
public void eventSent(Appender appender, Socket socket, DeferredProcessingAware deferredProcessingAware, long durationInNanos) {

}

/**
 * Called when the given appender fails to send the given event over a TCP connection.
 *
 * @param appender                the appender that attempted to send the event
 * @param deferredProcessingAware the event that failed to send
 * @param reason                  what caused the failure
 */
@Override
public void eventSendFailure(Appender appender, DeferredProcessingAware deferredProcessingAware, Throwable reason) {
    log.warn("event send failed");
}

/**
 * Called after the given appender successfully opens the given socket
 *
 * @param appender the appender that opened the socket
 * @param socket   the socket that was opened
 */
@Override
public void connectionOpened(Appender appender, Socket socket) {

}

/**
 * Called after the given appender fails to open a socket
 *
 * @param appender the appender that attempted to open a socket
 * @param address  the address to which the appender attempted to connect
 * @param reason   what caused the failure
 */
@Override
public void connectionFailed(Appender appender, InetSocketAddress address, Throwable reason) {

}

/**
 * Called after the given appender closes the given socket
 * (either due to a reconnect, or shutdown)
 *
 * @param appender the appender that closed the socket
 * @param socket   the socket that was closed
 */
@Override
public void connectionClosed(Appender appender, Socket socket) {

}

/**
 * Called when the given appender is started.
 *
 * @param appender the appender that was started
 */
@Override
public void appenderStarted(Appender appender) {

}

/**
 * Called when the given appender is stopped.
 *
 * @param appender the appender that was stopped
 */
@Override
public void appenderStopped(Appender appender) {

}

/**
 * Called when the given event was successfully appended by the given appender.
 *

 * Note that for Asynchronous appenders, this generally means that the event was
 * accepted for processing, but hasn't finished processing yet.
 *
 * @param appender                the appender when successfully appended the event
 * @param deferredProcessingAware the event that was appended
 * @param durationInNanos         the time (in nanoseconds) it took to append the event
 */
@Override
public void eventAppended(Appender appender, DeferredProcessingAware deferredProcessingAware, long durationInNanos) {

}

/**
 * Called when the given event was failed to be appended by the given appender.
 *
 * @param appender                the appender when successfully appended the event
 * @param deferredProcessingAware the event that was appended
 * @param reason                  what caused the failure
 */
@Override
public void eventAppendFailed(Appender appender, DeferredProcessingAware deferredProcessingAware, Throwable reason) {
    log.warn("event append failed");
}`

You can provide either a logback StatusListener or a logstash-logback-encoder TcpAppenderListener, and perform additional logging in those listeners.

The connectionClosed callback will be invoked when the tcp connection closes.
Did you log any messages after the connection was closed?

The connectionClosed callback will be invoked when the tcp connection closes.
Did you log any messages after the connection was closed?

`public class FailureEventAppenderListener implements TcpAppenderListener {
private Logger log = LoggerFactory.getLogger("logstash-failure");

/**
 * Called after given appender successfully sent the given event over the TCP connection.
 *
 * @param appender                the appender that sent the event
 * @param socket                  the socket over which the appender sent the event
 * @param deferredProcessingAware the event that was sent
 * @param durationInNanos         the time (in nanoseconds) it took to send the event
 */
@Override
public void eventSent(Appender appender, Socket socket, DeferredProcessingAware deferredProcessingAware, long durationInNanos) {
    log.info("event send");
}

/**
 * Called when the given appender fails to send the given event over a TCP connection.
 *
 * @param appender                the appender that attempted to send the event
 * @param deferredProcessingAware the event that failed to send
 * @param reason                  what caused the failure
 */
@Override
public void eventSendFailure(Appender appender, DeferredProcessingAware deferredProcessingAware, Throwable reason) {
    log.warn("event send failed");
}

/**
 * Called after the given appender successfully opens the given socket
 *
 * @param appender the appender that opened the socket
 * @param socket   the socket that was opened
 */
@Override
public void connectionOpened(Appender appender, Socket socket) {
    log.info("connection opened");
}

/**
 * Called after the given appender fails to open a socket
 *
 * @param appender the appender that attempted to open a socket
 * @param address  the address to which the appender attempted to connect
 * @param reason   what caused the failure
 */
@Override
public void connectionFailed(Appender appender, InetSocketAddress address, Throwable reason) {
    log.info("connection failed");
}

/**
 * Called after the given appender closes the given socket
 * (either due to a reconnect, or shutdown)
 *
 * @param appender the appender that closed the socket
 * @param socket   the socket that was closed
 */
@Override
public void connectionClosed(Appender appender, Socket socket) {
    log.info("connection closed");
}

/**
 * Called when the given appender is started.
 *
 * @param appender the appender that was started
 */
@Override
public void appenderStarted(Appender appender) {
    log.info("append started");
}

/**
 * Called when the given appender is stopped.
 *
 * @param appender the appender that was stopped
 */
@Override
public void appenderStopped(Appender appender) {
    log.info("append stoped");
}

/**
 * Called when the given event was successfully appended by the given appender.
 *

 * Note that for Asynchronous appenders, this generally means that the event was
 * accepted for processing, but hasn't finished processing yet.
 *
 * @param appender                the appender when successfully appended the event
 * @param deferredProcessingAware the event that was appended
 * @param durationInNanos         the time (in nanoseconds) it took to append the event
 */
@Override
public void eventAppended(Appender appender, DeferredProcessingAware deferredProcessingAware, long durationInNanos) {
    log.info("event appended");
}

/**
 * Called when the given event was failed to be appended by the given appender.
 *
 * @param appender                the appender when successfully appended the event
 * @param deferredProcessingAware the event that was appended
 * @param reason                  what caused the failure
 */
@Override
public void eventAppendFailed(Appender appender, DeferredProcessingAware deferredProcessingAware, Throwable reason) {
    log.warn("event append failed");
}

}`
the log show :
2019-10-25 09:24:21.365  INFO 42240 --- [<IP_ADDRESS>:9601-2] logstash-failure                         : event send 2019-10-25 09:24:21.365  INFO 42240 --- [<IP_ADDRESS>:9601-2] logstash-failure                         : event appended 2019-10-25 09:24:21.366  INFO 42240 --- [<IP_ADDRESS>:9601-2] logstash-failure                         : event send 2019-10-25 09:24:21.366  INFO 42240 --- [<IP_ADDRESS>:9601-2] logstash-failure                         : event appended 2019-10-25 09:24:21.366  INFO 42240 --- [<IP_ADDRESS>:9601-2] logstash-failure                         : event send 2019-10-25 09:24:21.366  INFO 42240 --- [<IP_ADDRESS>:9601-2] logstash-failure                         : event appended 2019-10-25 09:24:21.366  INFO 42240 --- [<IP_ADDRESS>:9601-2] logstash-failure                         : connection closed 2019-10-25 09:24:21.367  INFO 42240 --- [<IP_ADDRESS>:9601-2] logstash-failure                         : event appended
Only the appended and connection closed event fired ,  event eventAppendFailed,eventSendFailure not fired when loging event  .
Did the message droped when logstash server not serve ?

The appender will buffer events internally until the connection can be re-established.  When the connection is re-established, the buffered messages will be sent.
The event buffer size defaults to 8192, and can be configured by setting <ringBufferSize>8192</ringBufferSize> on the appender  (The value must be a power of 2).
eventSendFailure will be called if there is an I/O error encountered while sending the event that cannot be automatically recovered.
eventAppendFailed will be called when the buffer is full, and new events are attempted to be added to the buffer.

thanks , I 'll process the eventAppendFailed event to catch the failed message .

Hello,
Is it possible to see the logback.xml configuration file?


Bump ruby

Bumps ruby and gems where possible. Check commits for details.

 Upgrade Ruby and gem dependencies


Docs-UG: Update screenshots

As we changed the UI, screenshots of the old interface should be updated throughout the documentation.

Screenshot examples of each command could also be added to help new users visualize the UI


Power Toys Keyboard Repeat bug

Microsoft PowerToys version
0.59.1
Running as admin

[ ] Yes

Area(s) with issue?
Keyboard Manager
Steps to reproduce
Stops auto repeat and there is nothing you can do -- it is also highly incompatible with the other windows 11 -- look ahead functions.
✔ Expected Behavior
keyboard repeat work
❌ Actual Behavior
not work
Other Software
No response

can you provide more detail here? /reportbug


file: Update to 5.29

The CI error seems to be the same as in https://github.com/Alexpux/MSYS2-packages/pull/723#issuecomment-255720900.


petit x apres solal

@sol-dnn you have a conflict, refer to the readme for how to fix it. If you run into difficulties, do not hesitate to ask the teachers.


ng-disabled not read

this busy function overrides the ng-disabled.
if ng-disabled = false then when busy is done, ng-disabled get ignored.

Had the same issue. Just use this instead of ng-disabled:
not-busy-disabled="{{ yourFlagForDisable }}"