No such file or directory initializing TLS on Python 3.7

When connecting using roomba.py, negotiating TLS with a Roomba 980 or i7+running current firmware dies with a "No such file" error under Python 3.7:
[I 2019-12-25 07:42:04,310] Seting TLS
[E 2019-12-25 07:42:04,312] Error: [Errno 2] No such file or directory

Apparently, with Python 3.7, TLS initialization now returns a FileNotFoundError when the initial attempt fails.
Changing the following around line 375 of roomba.py from:
            except ValueError:   #try V1.3 version

to:
            except (ValueError, FileNotFoundError):   #try V1.3 version

addresses this issue and allows the connection.
I can now connect to my 980.  Unfortunately, the i7+ still has issues.

Okay, with the above fix, here is the behavior with the i7+:
(homeassistant) [homeassistant@hass roomba]$ python ./roomba.py -R <IP_ADDRESS> -u <roomba i7+ ID> -w <roomba i7+ password>
./roomba.py:30: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import OrderedDict, Mapping
[I 2019-12-25 10:17:47,577] *******************
[I 2019-12-25 10:17:47,577] * Program Started *
[I 2019-12-25 10:17:47,577] *******************
[I 2019-12-25 10:17:47,577] Roomba.py Version: 1.2.1
[I 2019-12-25 10:17:47,577] Python Version: 3.7.4 (default, Dec 13 2019, 13:20:25) [GCC 9.2.0]
[I 2019-12-25 10:17:47,578] Paho MQTT Version: 1.5.0
[I 2019-12-25 10:17:47,578] CV Version: 4.1.2
[I 2019-12-25 10:17:47,578] PIL Version: 6.2.1
[I 2019-12-25 10:17:47,578] <CNTRL C> to Exit
[I 2019-12-25 10:17:47,578] Roomba 980 MQTT data Interface
[I 2019-12-25 10:17:47,578] Creating Roomba object <IP_ADDRESS>
[I 2019-12-25 10:17:47,578] CONTINUOUS connection
[I 2019-12-25 10:17:47,578] connecting Roomba <IP_ADDRESS>
[I 2019-12-25 10:17:47,579] Posting DECODED data
[I 2019-12-25 10:17:47,579] MAP: Maps Enabled
[I 2019-12-25 10:17:47,579] MAP: openening existing line image
[I 2019-12-25 10:17:47,603] MAP: openening existing problems image
[I 2019-12-25 10:17:47,618] MAP: openening existing map no text image
./roomba.py:920: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  self.log.warn("MAP: map no text image problem: %s: set to None" % e)
[W 2019-12-25 10:17:47,619] MAP: map no text image problem: [Errno 2] No such file or directory: './map_notext.png': set to None
./roomba.py:930: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  self.log.warn("error loading font: %s, loading default font" % e)
[W 2019-12-25 10:17:47,619] error loading font: cannot open resource, loading default font
[I 2019-12-25 10:17:47,620] MAP: home_pos: (400,750)
./roomba.py:845: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  self.log.warn("error loading %s: %s, using default icon instead" % (icon_name,e))
[W 2019-12-25 10:17:47,620] error loading roomba: [Errno 2] No such file or directory: './roomba.png', using default icon instead
[W 2019-12-25 10:17:47,621] error loading stuck: [Errno 2] No such file or directory: './roombaerror.png', using default icon instead
[W 2019-12-25 10:17:47,622] error loading cancelled: [Errno 2] No such file or directory: './roombacancelled.png', using default icon instead
[W 2019-12-25 10:17:47,622] error loading battery: [Errno 2] No such file or directory: './roomba-charge.png', using default icon instead
[W 2019-12-25 10:17:47,622] error loading home: [Errno 2] No such file or directory: './home.png', using default icon instead
[W 2019-12-25 10:17:47,622] error loading bin full: [Errno 2] No such file or directory: './binfull.png', using default icon instead
[I 2019-12-25 10:17:47,622] MAP: Initialisation complete
[I 2019-12-25 10:17:47,623] Connecting
[I 2019-12-25 10:17:47,623] Seting TLS
./roomba.py:375: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
  self.log.warn("TLS Setting failed - trying 1.3 version")
[W 2019-12-25 10:17:47,624] TLS Setting failed - trying 1.3 version
[E 2019-12-25 10:17:47,742] Error: [Errno 104] Connection reset by peer
(homeassistant) [homeassistant@hass roomba]$

@ratsputin Are you on the most current branch? There was a fix a month ago that addressed an issue with TLS.
Then, later, the code was reworked which helps explain why the logic in your 375 is now in the mid 200s.
I think if you try the new code, if you get an error, it will be for a different reason - or you'll get none at all.

@BramWarrick Thank you for pointing this out.  Apparently, a separate fix I installed made it appear I had the current version; however, I didn't.  The following addressed that issue:
pip install --upgrade --force-reinstall roombapy

Now, however, the following issue has cropped back up again:
(homeassistant) [homeassistant@hass roomba]$ python ./roomba.py -R <IP_ADDRESS> -u <Roomba ID> -w <Roomba password>
./roomba.py:24: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import OrderedDict, Mapping
Traceback (most recent call last):
  File "./roomba.py", line 25, in <module>
    from roomba.password import Password
  File "/srv/homeassistant/lib/python3.7/site-packages/roomba/roomba.py", line 25, in <module>
    from roomba.password import Password
ModuleNotFoundError: No module named 'roomba.password'; 'roomba' is not a package
(homeassistant) [homeassistant@hass roomba]$

I had run into this error previously (apparently, when running an earlier version of roombapy installed by Home Assistant).  With that version, I was able to run the following (the "separate fix" I referred to above) to fix the above issue:
pip install git+https://github.com/pschmitt/roombapy@python3-fixes

I did try running it again, on a whim, to see if it addressed this; it didn't.  Sadly, my pip and git kung fu aren't up to the task of interpreting what's going on here, so I can't really break down how the above fixed the earlier version.
Based on a bit of research I've been doing, it appears that from/import handling keeps changing from version to version; I'm wondering if my (forced thanks to Home Assistant) upgrade to v3.7 caused this issue?  After reading the following, it appears that addressing this error is well outside the scope of my limited Python abilities.
I'm hoping someone can assist here--I really don't have the option of going back to Python 3.6.

Okay, I spoke too soon and now have a better understanding of what's going on.  Apparently, that syntax forces a specific branch to be pulled--in this case python3-fixes.
It appears in that version that password handling was moved out of password.py into roomba.py.  That branch is way out-of-date, so clearly, switching to it isn't an option.

I was able to address the import error by changing line 25 from:
from roomba.password import Password

to
from password import Password

I don't know if Python 3.7 is now picky about the fact that roomba.py exists in a directory called roomba and that's why it was throwing the error.  Once again, I know almost nothing about Python so it's purely guesswork on my part after doing a bit of digging.
Unfortunately, now roomba.py just exits when I run it:
(homeassistant) [homeassistant@hass roomba]$ python ./roomba.py -R <IP_ADDRESS> -u <Roomba ID> -w <Roomba password>
./roomba.py:24: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import OrderedDict, Mapping
(homeassistant) [homeassistant@hass roomba]$

Running it through the debugger (excerpt), gives the following:
> /srv/homeassistant/lib/python3.7/site-packages/roomba/roomba.py(72)<module>()
-> input = raw_input
(Pdb) n
NameError: name 'raw_input' is not defined
> /srv/homeassistant/lib/python3.7/site-packages/roomba/roomba.py(72)<module>()
-> input = raw_input
(Pdb) n
> /srv/homeassistant/lib/python3.7/site-packages/roomba/roomba.py(73)<module>()
-> except NameError:
(Pdb) n
> /srv/homeassistant/lib/python3.7/site-packages/roomba/roomba.py(74)<module>()
-> pass
(Pdb)

Presumably, the NameError on raw_input is what's killing it.  I'll dig a bit more but it appears that Python 3.7 is problematic.

Perhaps I should look at the source code before posting...  raw_input was changed in Python 3.x and the exception is there to address that.  I'm at a bit of a loss as to why roomba.py is just exiting instead of connecting or at least throwing an error.

Okay, so the issue I'm running into with the import failure is not a Python 3.7 issue.  I did the following on another system:
root@ubuntu:/srv/homeassistant# source bin/activate
(homeassistant) root@ubuntu:/srv/homeassistant# python --version
Python 3.6.8
(homeassistant) root@ubuntu:/srv/homeassistant# pip install roombapy
Collecting roombapy
  Downloading https://files.pythonhosted.org/packages/d3/0b/05e91ac59092968120e58fcd24cf665fbca098f573be757ee55cb8b0ca50/roombapy-1.    100% 92kB 1.7MB/s
Collecting paho-mqtt (from roombapy)
  Downloading https://files.pythonhosted.org/packages/59/11/1dd5c70f0f27a88a3a05772cd95f6087ac479fac66d9c7752ee5e16ddbbc/paho-mqtt-1    100% 102kB 6.3MB/s
Requirement already satisfied: six in ./lib/python3.6/site-packages (from roombapy)ˆâ–ˆâ–
Building wheels for collected packages: roombapy, paho-mqtt
  Running setup.py bdist_wheel for roombapy ... done
  Stored in directory: /root/.cache/pip/wheels/cd/f7/40/3316f529fc914faf58f7f6a7da2b46d2b3889c55c59b1d26f7
  Running setup.py bdist_wheel for paho-mqtt ... done
  Stored in directory: /root/.cache/pip/wheels/02/94/6c/8474137cb7a5a3e001d70a22c8ff919caee69435376bccce79
Successfully built roombapy paho-mqtt
Installing collected packages: paho-mqtt, roombapy
Successfully installed paho-mqtt-1.5.0 roombapy-1.4.2
(homeassistant) root@ubuntu:/srv/homeassistant# cd ./lib/python3.6/site-packages/roomba
(homeassistant) root@ubuntu:/srv/homeassistant/lib/python3.6/site-packages/roomba# python ./roomba.py
Traceback (most recent call last):
  File "./roomba.py", line 25, in <module>
    from roomba.password import Password
  File "/srv/homeassistant/lib/python3.6/site-packages/roomba/roomba.py", line 25, in <module>
    from roomba.password import Password
ModuleNotFoundError: No module named 'roomba.password'; 'roomba' is not a package
(homeassistant) root@ubuntu:/srv/homeassistant/lib/python3.6/site-packages/roomba#

Making the change from above on the import causes the same behavior--it just exits.
Is Python 3 supported in the current version of roombapy?

  I get the same behavior with this version under Python 2.7.  Import errors and exiting if I fix the import.

Is Python 3 supported in the current version of roombapy?

yes

@ratsputin if u r using roombapy from home-assistant, i propose u to update to latest version of home-assistant,
if problem still persist, you probably doesn't have certificate  on your machine.
Check configuration on this page, part Configuration, parameter certificate

@freekode If you bring in the project, as-is, it will not work correctly. The version HA is using is fine for HA, but anyone trying to use the current code from GitHub will run into issues.
This is, in part, because there are so many moving parts (imo). This is part of why I'd like to see a HA fork (with no plans to merge back).
HA has far fewer needs. I do want us to have the ability to pass arguments into send_command... But that's only a few changed lines of code.
If only I could get on there other side of the same issues @ratsputin describes. Then I may add the argument passing logic.

@BramWarrick thank you so much for clarifying.  I have been beating my head against a wall on this for a while.
@freekode It hasn't worked at all since before I upgraded to Python 3.7 and HA 0.103.0.  It spontaneously stopped working about a month ago under v102 and Python 3.6.
I'm not using the certificate parameter; it's listed as optional in the link you specified.  Is it required?  Here's the extent of my config:
#
# Roomba - integrate with the vacuum cleaners
#
vacuum:
  - platform: roomba
    name: Rosie
    host: <IP_ADDRESS>
    username: !secret roomba_rosie_username
    password: !secret roomba_rosie_password

  - platform: roomba
    name: Alice
    host: <IP_ADDRESS>
    username: !secret roomba_alice_username
    password: !secret roomba_alice_password

Here is the extent of that directory (/etc/ssl/certs):
(homeassistant) [root@hass certs]# ls -Flash
total 12K
   0 drwxr-xr-x. 2 root root  117 Dec 13 07:41 ./
   0 drwxr-xr-x. 5 root root   81 Dec 13 07:41 ../
   0 lrwxrwxrwx. 1 root root   49 Dec 13 07:41 ca-bundle.crt -> /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
   0 lrwxrwxrwx. 1 root root   55 Dec 13 07:41 ca-bundle.trust.crt -> /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt
4.0K -rwxr-xr-x. 1 root root  610 Aug  8 20:38 make-dummy-cert*
4.0K -rw-r--r--. 1 root root 2.5K Aug  8 20:38 Makefile
4.0K -rwxr-xr-x. 1 root root  829 Aug  8 20:38 renew-dummy-cert*
(homeassistant) [root@hass certs]#

I see there's no ca-certificates.crt file there (the default).  This is CentOS 7 and everything I'm seeing that talks about that specific file is Ubuntu-related.  Should my certificates parameter be pointing to one of the listed files or do I need to generate a ca-certificates.crt file somehow?
This may very well be the core of my issue.  Here is the startup log from HA relevant to the roomba integration.  Is the No such file or directory referring to the lack of the .crt file?
2019-12-31 10:20:31 DEBUG (MainThread) [homeassistant.components.roomba.vacuum] Initializing communication with host <IP_ADDRESS>
2019-12-31 10:20:31 DEBUG (MainThread) [homeassistant.components.roomba.vacuum] Initializing communication with host <IP_ADDRESS>
2019-12-31 10:20:31 ERROR (SyncWorker_28) [roomba.vacuum] Error: [Errno 2] No such file or directory
2019-12-31 10:20:31 ERROR (SyncWorker_33) [roomba.vacuum] Error: [Errno 2] No such file or directory
2019-12-31 10:20:31 ERROR (SyncWorker_10) [homeassistant.components.command_line.sensor] Command failed: cat /mnt/airvisual/latest_config_measurements.json
2019-12-31 10:20:31 ERROR (MainThread) [homeassistant.components.vacuum] Error while setting up platform roomba
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/roomba/vacuum.py", line 112, in async_setup_platform
    await hass.async_add_job(roomba.connect)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.7/site-packages/roomba/vacuum.py", line 289, in connect
    raise Exception("failed to connect!")
Exception: failed to connect!
2019-12-31 10:20:31 ERROR (MainThread) [homeassistant.components.vacuum] Error while setting up platform roomba
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/roomba/vacuum.py", line 112, in async_setup_platform
    await hass.async_add_job(roomba.connect)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.7/site-packages/roomba/vacuum.py", line 289, in connect
    raise Exception("failed to connect!")
Exception: failed to connect!

(Ignore the fact that the module in /srv/homeassistant/lib/python3.7/site-packages/roomba is called vacuum.py.  I renamed it and tweaked the integration point in HA to address the Password import issue I was running into in trying to get the command-line version working).

u need this certificate, i'm not sure how to make it,
google says u can run yum install ca-certificates, and it should appear in /etc/ssl/certs/
after that restart HA

@freekode It appears that ca-certificates is installed as part of either HA or something else I've installed.  However, thanks to your hint, I was able to get it to work!
Here is the change I made; it would be nice if someone would update the component page for those of us running CentOS as this has been an issue for me for something like six months:
vacuum:
  - platform: roomba
    name: Rosie
    host: <IP_ADDRESS>
    username: !secret roomba_rosie_username
    password: !secret roomba_rosie_password
    certificate: /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt

  - platform: roomba
    name: Alice
    host: <IP_ADDRESS>
    username: !secret roomba_alice_username
    password: !secret roomba_alice_password
    certificate: /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt

I should note that it would probably work fine with /etc/ssl/certs/ca-bundle.trust.crt as well, as that's just a link to the file I used:
(homeassistant) [root@hass .homeassistant]# cd /etc/ssl/certs
(homeassistant) [root@hass certs]# ls -Flash
total 12K
   0 drwxr-xr-x. 2 root root  117 Dec 13 07:41 ./
   0 drwxr-xr-x. 5 root root   81 Dec 13 07:41 ../
   0 lrwxrwxrwx. 1 root root   49 Dec 13 07:41 ca-bundle.crt -> /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
   0 lrwxrwxrwx. 1 root root   55 Dec 13 07:41 ca-bundle.trust.crt -> /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt
4.0K -rwxr-xr-x. 1 root root  610 Aug  8 20:38 make-dummy-cert*
4.0K -rw-r--r--. 1 root root 2.5K Aug  8 20:38 Makefile
4.0K -rwxr-xr-x. 1 root root  829 Aug  8 20:38 renew-dummy-cert*
(homeassistant) [root@hass certs]#

This does, however, explain why it seems to work for most people.  Between the Raspbian, Docker and native Ubuntu users, the default settings would work.  I honestly don't recall why I used CentOS originally, but I do remember there was a specific reason for me to do so a year ago.
In closing, I do have a suggestion here:
Could the code be updated to give a more detailed error message beyond just [roomba.vacuum] Error: [Errno 2] No such file or directory?  Had the error message been more detailed and pointed me at the missing certificate file, I wouldn't have gone down the rabbit-hole of trying to get this code to work standalone (and renamed it to vacuum.py to get the from vacuum import Password to work correctly.

#20 added exception if certificate not found


feat: handle nonce cases

Case 1: No option provided - generate nonce.
Case 2: Option provided with empty string - use empty.
Case 3: option provided with nonce - use nonce from option.

Signed-off-by: Firas Qutishat<EMAIL_ADDRESS>

We will have to see if Case 1 goes away or stays.


Re-branching

Merging into main, fixing dirrectory structure.
For future, during feature implementations we'll branch off main for features.


 vs.  styling differences

I've been working on a fields override to allow editing some global styles and used <AutoFieldPrivate> because it is styled perfectly when rendered directly in the override and<AutoField> is not.
Per #661, <AutoFieldPrivate> shouldn't be exported (which makes sense). However, I wanted to flag that <AutoField> isn't a direct replacement.
const field = {
  "label": "Colors",
  "type": "object",
  "objectFields": {
    "foreground": {
    "label": "Foreground",
    "type": "select",
    "options": [
      {"value": "#000000", "label": "Black" },
      {"value": "hsl(0 68% 51%)", "label": "Red"}]
    },
    "primary": {
      "label": "Primary",
      "type": "object",
      "objectFields": {
        "DEFAULT": {
          "type": "custom",
          "label": "Default"
        },
        "foreground": {
          "type": "custom",
          "label": "Foreground"
        }
      }
    }
  }
}

const value = {
  "foreground": "#000000",
  "primary": {
    "DEFAULT": "#a73fd1",
    "foreground": "#ffffff"
  }
}

return (
  <AutoFieldPrivate
    field={field}
    onChange={(value) => onThemeChange(parentStyleKey, value)}
    value={values}
  />
);

        return (
          <FieldLabel key={parentStyleKey} label={field.label!}>
            <AutoField
              field={field}
              onChange={(value) => onThemeChange(parentStyleKey, value)}
              value={values}
            />
          </FieldLabel>
        );

i alrdy mentioned that in #662 that its missing icons for first lvl fields.
but then i realized its not a bug rather than its waiting from you to wrap it into a FieldLabel and provide your own icon and styling (cuz FieldLabel is missing some inline padding compared to FieldLabelInternal which is the one used by AutoFieldPrivate)

as you u can see here that Label prop which is causing the issue (if we call it so) meanwhile AutoFieldPrivate doesnt provide that prop so it uses the default value for the Label prop which is FieldLabelInternal as u can see in the following ss

it will be perfect for us if it doesnt provide that Label prop but then there would no point of the FieldLabel component

@chrisvxd  maybe yeah just remove the FieldLabel component entirly and provide the FieldLabelInternal component to the AutoField component instead of that DefaultLabel and let us pass the icon and label via AutoField if we want otherwise use the default ones

Hey both. Removing AutoField here: https://github.com/measuredco/puck/pull/685
To answer questions about the differences

field.label is ignored by AutoField. I've removed it from the type the PR.
FieldLabel is the correct way to do this
I can't reproduce your issues @benlife5, and have added an example to the Hero component in the demo, which uses the AutoField inside an object field as you are. It renders as expected, so you might have something else going on.

Thanks for taking a look at this @chrisvxd!
My issue was coming up when doing a fields override and then rendering these components directly in the override. It seems like the issue with margin/padding was fixed. However, FieldLabel still renders without the expected styling.
Here's a demo: https://stackblitz.com/edit/vitejs-vite-gw1ksa?file=src%2FEditor.tsx.
I get this may not really be a supported use case so I understand if I should just add my own styling and close out this issue.


What's the future of this project?

Hi :D, first of all. Thank you very much for your work, this is a great project. I'm moving from linux and as a i3/dwm user Windows default interface seems a little off :/. I found this project and it's working great. If you don't mind I would like to know what is the plans for the future of the project :D. In addition, can you answer 2 questions please?
The project supports multiple screens?
The project have a configuration file? For custom configs?
Thank you very much for you time :D

I use this dwm-win32 everyday on windows, so I don't see it going anywhere even though there may not be any commits.

The project supports multiple screens?

I don't use multiple monitors. More thoughts are mentioned here and how I would like to support it via lua. If someone is willing to send a PR more than happy to merge it.

The project have a configuration file? For custom configs?

Currently it is similar to the original dwm project where config file is code and you need to compile it. There is a ci task you should be able to change to fit your needs since compiling c projects on windows can be pain. Lua would solve this.
I do have lots of goals to make dwm-win32 better but currently it is struggle in prioritization with my other open/closed source projects that I work on personal time.


kite not working

We have written the needed data into your clipboard because it was too large to send. Please paste.

/needsMoreInfo

/needsMoreInfo


Use request encoding charset to URL decode form params & parse body

Resolves: #837
Signed-off-by: Thibault Meyer<EMAIL_ADDRESS>

Thanks @thibaultmeyer, could you also add a test for this?

@thibaultmeyer I tried running this locally, and it's causing some odd behavior. Tests take almost twice as long, and some of them become flaky 🤔

If I do this instead, then everything works:
val encoding = req.getHeader(Header.CONTENT_TYPE)?.let { it.substring(it.lastIndexOf("=") + 1).trim() } ?: "UTF-8"

It's weird that req.characterEncoding doesn't work though, I'm guessing it does something magic in case the content-type isn't set 🤔

Hello,
Very strange about req.characterEncoding. I will try to do modification today

Commit updated. All tests are OK

Thanks @thibaultmeyer, I'll add a test after merge :)

Added a test an a minor refactor here: https://github.com/tipsy/javalin/commit/32fe62a73437c340a574a0e1fbcb9b1e4f86cdfb

This has been released as part of 3.7.0 now!
https://javalin.io/news/2020/01/01/javalin-3.7.0-released.html


Add to mocking module

Add function assert_args_and_return_or_raise.
Clean up docstrings.
Checked with python3 -m doctest.py
This function is added because I want to use it in https://github.com/alphagov/digitalmarketplace-buyer-frontend/pull/764.

(oh, you didn't bump the version after this - surprised you were able to import it...)


Backfill license metadata on older dependencies

With the implementation of https://github.com/paketo-buildpacks/dep-server/issues/38 and https://github.com/paketo-buildpacks/dep-server/issues/39, license metadata is now something we retrieve for our dependencies. Any new versions of dependencies that the dep-server picks up will contain license metadata from now on.
The problem is that our older versions of dependencies do not have license metadata (and some don't have CPEs still) and must have their metadata republished in order to have this information available. It's important for completeness that all of our dependency versions contain the same set of metadata when possible.
We should backfill this metadata on all of our older dependencies. This can be achieved by:
Running the build-upload workflow for each dependency, and each version we support of that dependency. This will re-build the dependency, and update the metadata on the dependency. This is easy to run because all the information that's needed to re-build is the version.
If we can trigger workflows via the GH API, it might be easiest to write a script for this rather than doing it by hand.
The outcome of this story should be that every version of the following dependencies will contain license metadata when you hit the associated dep-server endpoint:

[x] bundler
[x] composer
[x] curl
[x] dotnet-aspnetcore
[x] dotnet-runtime
[x] dotnet-sdk
[x] go
[x] httpd
[x] icu
[x] nginx
[x] node
[ ] php
[x] pip
[x] pipenv
[x] python
[x] ruby
[x] rust
[x] tini
[x] yarn

The last dependency that does not contain license metadata is PHP version 7.2.34,  the associated test-upload workflow  fails, which is preventing the metadata from getting updated.


No loader is configured for ".node" files

System Info
macOS, esBuild, node v20
Environment/Platform

[ ] Website/web-app
[ ] Browser extension
[X] Server-side (e.g., Node.js, Deno, Bun)
[ ] Desktop app (e.g., Electron)
[ ] Other (e.g., VSCode extension)

Description
No loader is configured for ".node" files<EMAIL_ADDRESS>for buiding project with esbuild.
Reproduction
my script file looks likes this
"scripts": {
    "clean": "rm -rf lib dist",
    "prebuild": "npm run clean",
    "build": "esbuild src/index.ts --bundle --minify --sourcemap --platform=node --target=es2020 --outfile=dist/index.js && npm run copy-files",
    "postbuild": "cd lib && zip -r index.zip index.js*",
    "copy-files": "mkdir -p ./lib/data && cp -r ./src/data/* ./lib/data/",
    "rebuild": "npm rebuild onnxruntime-node",
    "lint": "tslint -c tslint.json src/**/*.ts",
    "prepublish": "npm run build && npm run rebuild"
  },

The module is inculded via llamaindex

issue can be resolve by adding library in external list.

can be resolved via adding library in external list


elastalert does not install on amazon linux 2 ec2

elastalert does not install on amazon linux 2 ec2

look
https://elastalert.readthedocs.io/en/latest/running_elastalert.html#

Do you have Python3 installed?
# Install Python 3
sudo yum install python3

yes, i have first install python3 and started installing elastalert

look
https://elastalert.readthedocs.io/en/latest/running_elastalert.html#

thank, let me check

@rishi360
It seems that another question is being asked, is it already solved? .. If resolved, please close this issue.

closing this now.


how to generate the eco.yaml

have a question that how to generate the *.yaml ,is handwriting? or generate this through other file.
thx : )

I like this question ,haha


feat: Builder macro to assist with App/Arg/Group/SubCommand building

#217

I am the last fan of macros, but it looks very cool to me! Thank you!
Let's wait until @kbknapp check this.
And have you planned to add integration test for this feature?

Due to the dynamics of the macro literally translating to the builder. The example is in itself, a test case. Compilation is the only thing that can really be tested. Past that, any tests are actually testing the builder itself - not the macro.

"I am the last fan of macros" did you mean you are "now a fan of macros", don't like, or don't yet understand them ? ;-)

Additional note: The examples/18_builder_macro.rs should reach every macro pattern matching arm. If not; that is a bug in the example and I'm sorry. :-)

The example is in itself, a test case.

Yes it tests that macro builds but it can't claim that in works.

I am the last fan of macros

I meant don't like, there was a lot of problems in C++ with macros. In rust macros are pretty better, but I still have some mistrusts to them :)

@Vinatorul I'm not against a test case, but now we're limited to the input that is given to the macro. A complex sample as I have in the example covers all features of the macro and I've verified the generated code for this complex sample.
Bad input to the macro will generate bad code. This will cause a compile time error.

Typo in an identifier used for setting booleans, iterating over lists or running functions will cause the expected compile time error.
Failing to meet the requirements of the macro's matching arms will cause a headache and require the consumer to do the normal macro debugging. -Z trace-macros is the most suitable for this context.

Only testcases that come to mind is to use the macro to generate an App to some variable, then do an equality test against the manually written builder. Again, anything deeper is testing the capabilities of the builder itself, not the macro.

@james-darkfox This test can save once live when developer made copy-paste or misspell error, for example:
 (@arg ($arg:expr) $modes:tt #{$n:expr, $m:expr} $($tail:tt)*) => {
        clap_app!{ @arg ($arg) $modes min_values($n) min_values($m) $($tail)* }
 };

You successfully got me re-checking my code and generated code. =D
Again... Such suitable test would need to be an equality test against two instances of App, one build manually and one aided with the macro.

Maybe I don't understand something, but why can't it be like this one, but with checks: https://github.com/kbknapp/clap-rs/blob/master/tests/yaml.rs

I have a feeling that test gets optimized out to nothing anyway... Just typechecks.
Nothing is stopping a test from existing. My original point was simply, that the example code stresses all features of the macro; and has been manually verified to generate the correct code.
To programmatically confirm the integrity of the generated builder, is to simply check equality against a manually built and equivalent instance of App.

Yes, example code stresses all features of the macro.
I meant test not for current macro, but test for future changes to avoid regression caused by programmer misspel or copy-paste or smth like that.
May be I'll implement it sometime :wink:
Travis build finally ended, so let's wait for @kbknapp approvement.

Again. I'm not against such a test. I also see the point for regression. I'm unsure without diving back into the code, if App implements Eq; which if it does, the test would just need to compare the generated builder by the macro and the known-good state of the builder as proven here.

Also. As an extract from the checklist on #217

[x] Future proof macro design.

[x]    App/@subcommand depend on: with_name arg_group subcommand setting arg.
[x]    @arg depends on: with_name long short takes_value required multiple value_name min_values max_values.
[x]    @group depends on: with_name add.

Sidenote, I feel that App and Subcommand have some things that might need to be separated (I.e. subcommands don't have authors, settings, and possibly other things).

Looks great, I'm excited for this merge!
@james-darkfox could you add a commit adding yourself to the CONTRIBUTORS.md and this'll be ready for merge. We can also do it after the fact, but this gives you a chance to put whatever info you want in there.

Sidenote, I feel that App and Subcommand have some things that need to be separated (I.e. subcommands don't have authors, settings, and possibly other things).

Yes, and no. "Yes" in that they typically don't. "No" in that they can have authors and settings and such (think third party cargo subcommands, but on steroids...i.e. all inside the single cargo application which helps with call times. Ever notice it takes a good minute to call a third part subcommand while it searches your $PATH?
The settings piece is a little more subtle. While normally it doesn't matter, there can be times when it's nice to give a subcommand the ability to have different settings from the parent commands or application in general (such as the need for mandatory args or further subcommands).
The settings

@james-darkfox not sure which timezone you're in, so I'll give you a bit to put in the contributors commit. After a few hours, if nothing myself or @Vinatorul will merge and we'll just add your name in the next PR to update the versions and readme :wink:

As for that subcommand search; no I haven't noticed such delay. I also think that should be settings gated as the consumer would opt for this if they wanted such subcommands from third parties.
My timezone is AEST:Eastern Australia

Perhaps, but nothing is lost leaving those settings un-gated except maybe compile time and polluting of API space? As for the API space, I'd actually prefer leaving it un-gated so all possible options are displayed in the docs without confusing consumers.
I would say those settings are there if they need they want them, but aren't by any means required. If there is a detriment to leaving them un-gated I'm open for suggestions :)
As for this PR, I'm happy to say Merged!


set source of pip

set source of pip in docker-agent
*You can modify the pip source by yourself, and then update the pip source with PIP parameters
Signed-off-by: XuHugo<EMAIL_ADDRESS>

https://github.com/hyperledger/cello/wiki/Debug-cello-by-container

/azp run


How to install in Archlinux

Please add support for Archlinux. Now it is lack of some python modules

Spunky Bot is already running on Arch Linux.
There are several server admins using ARCH, Gentoo, CentOS, OpenBSD and Ubuntu/Debian.
There is no dependency to other Python modules, you just need python2.7.
Could you please check your Python version with the command
$ python --version
For the installation just perform the following:

Extract the archive: $ tar -xzvf spunkybot-x.x.x.tar.gz
Move the extracted folder to the location you want to place your files to: $ sudo mv spunkybot-x.x.x /opt/spunkybot
Set the ownership of this folder to the same user and group running your Urban Terror server: $ sudo chown -R q3ut4:q3ut4 /opt/spunkybot

python2  spunky.py


Add opts into sceanrio skip

Motivation/Description of the PR
Additional parameter opts don't use in In Scenario.skip(title, opts). But it would be useful for building reports.
Applicable helpers:

[ ] WebDriver
[ ] Puppeteer
[ ] Nightmare
[ ] REST
[ ] FileHelper
[ ] Appium
[ ] Protractor
[ ] TestCafe
[ ] Playwright

Applicable plugins:

[ ] allure
[ ] autoDelay
[ ] autoLogin
[ ] customLocator
[ ] pauseOnFail
[ ] puppeteerCoverage
[ ] retryFailedStep
[ ] screenshotOnFail
[ ] selenoid
[ ] stepByStepReport
[ ] wdio

Type of change

[ ] :fire: Breaking changes
[ ] :rocket: New functionality
[ ] :bug: Bug fix
[ ] :clipboard: Documentation changes/updates
[ ] :hotsprings: Hot fix
[ ] :hammer: Markdown files fix - not related to source code
[ ] :nail_care: Polish code

Checklist:

[ ] Tests have been added
[ ] Documentation has been added (Run npm run docs)
[ ] Lint checking (Run npm run lint)
[ ] Local tests are passed (Run npm test)

@AlexKo4 it'd great to add documentations around opts and how useful it will be with Scenario.skip

This changes very internal API so I don't think we need to document this... At least this is expected thing to be.
So I'm merging this.
Thanks!


add comment for future safety on Authenticator::as_single_owner

Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

[ ] Protocol:
[ ] Nodes (Validators and Full nodes):
[ ] Indexer:
[ ] JSON-RPC:
[ ] GraphQL:
[ ] CLI:
[ ] Rust SDK:
[ ] REST API:

similar comment added in another PR


Deprecate locations/router-scroll for Embers own implementation

Target removal in 2.0
close #193

@st-h @stefanpenner mind taking a look at your convenience?

I currently do not know enough to comment the planned removal, but the deprecation to introduce this looks reasonable 👍


Flowise Behind Proxy 504 results in Gateway Timeout - Local IP is working fine

Running Flowise on standard port 3000 behind a external Traefik proxy results in a 504 Gateway timeout.
Traefik logs just show a standard timeout and Flowise does not show any connected logs in the following files:

server-error.log
server-requests.log.jsonl
server.log

Version: 1.3.0 on docker
Is there maybe a Cors origin needed?
On the local IP:3000 it is reachable without any problems and I have tons of services running behind the same proxy without any issues.

I have the same issue right now did you fix it? and how?

+1
Deployed using nginx ingress, got 504 when accessing api

+1
I have the same issue with traefik


Tree sample has outdated vscode.proposed.d.ts file

Testing https://github.com/microsoft/vscode/issues/81635
Tree sample has outdated vscode.proposed.d.ts file. For example it declares a message inside TreeView.

I was planning on refreshing samples this week :)


docker: slimmer image

I am not sure if it is related but when I am trying to run hello-world workflow on freshly builded R-W_E-CWL image I am getting version conflict error.
(reana-cluster3) rokas@rokas-macbook reana-workflow-controller (slimer-images) $ kubectl logs batch-cwl-35a9fa32-b51e-4f19-9d22-956a97e44776-h2wsb
Traceback (most recent call last):
  File "/usr/local/bin/run-cwl-workflow", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3191, in <module>
    @_call_aside
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3175, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (kombu 4.4.0 (/usr/local/lib/python2.7/site-packages), Requirement.parse('kombu<4.4,>=4.2.0'), set(['celery']))

Hmm, interesting... I just rebuilt the image with --no-cache and I can run the CWL example workflow still fine... Let's compare IRL to see what is different in our two scenarios.

DEBUG=true is causing this.
ARG DEBUG=false
RUN if [ "${DEBUG}" = "true" ]; then pip install -r requirements-dev.txt; pip install -e .; else pip install .; fi;

requirements-dev.txt
wdb
ipdb
Flask-DebugToolbar

So probably it is caused by one these packages.

This comes via new r-commons, created an issue for the celery/kombu version troubles: https://github.com/reanahub/reana-commons/issues/102


Runtime error when using --build-optimizer, happens in --prod mode only

Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Repro steps.
git clone git@github.com:contentacms/contenta_angular.git
npm install
ng serve --prod --bo
The log given by the failure.

Mention any other details that might be useful.
The build seems fine using ng serve --prod --bo, but this error occurs at runtime. The build and runtime work fine if we use ng serve --prod alone, or if we use ng serve --aot --bo.

Thank you for the report and repro, will investigate.

I do not recieve exactly the same error, but i noticed that i can use AOT with BO or AOT with PROD but you cannot mix PROD and BO.

I looked into it a bit today. Wasn't able to reach a definite conclusion, but this is what I found:

only happens with both --prod --build-optimizer, --aot --build-optimizer doesn't trigger it. So it seems to be related to Uglify as well.
seems to be related to an __extends related optimization
seems related to angular2-jsonapi and contenta_angular_service

I have to investigate further.

Just tested and this is fixed on 1.3.0-rc.5.

This is indeed fixed, thanks! Unfortunately 1.3.0-rc.5 seems to have broken our service worker (worker-basic is still there, but sw-register bundle does not reference it) but I will open a new issue about that.

Just filed #7280 regarding the service worker issue.


ParallelRunnerController consuming a lot of CPU

Expected Behavior

ParallelRunnerController should not waste CPU time

Actual Behavior

ParallelRunnerController.ProcessHoldQueue()

                foreach (var workItem in _holdQueue.GetConsumingEnumerable(token))
                {
                    if (workItem.IsReady)
                    {
                        _processQueue.Add(workItem, token);
                    }
                    else
                    {
                        _holdQueue.Add(workItem, token);
                    }
                }

If the workItem is not ready it will add it and get it in a tight loop until its ready. Profiling bellow shows the CPU consumption of the thread and where its being used

Potential Solution

A simple solution would be: if the _holdQueue has no workItem which is ready, the thread should sleep.

                foreach (var workItem in _holdQueue.GetConsumingEnumerable(token))
                {
                    if (workItem.IsReady)
                    {
                        _processQueue.Add(workItem, token);
                    }
                    else
                    {
                        if (!_holdQueue.Any(x => x.IsReady))
                        {
                            Thread.Sleep(5);
                        }
                        _holdQueue.Add(workItem, token);
                    }
                }

Performance profile of this solution is bellow. CPU usage went down from 25% to 15%, having no real impact on execution times (see after image bellow).

[Proposed Solution C# HistoryRequestBenchmark]
57.08 seconds at 16k data points per second. Processing total of 904,955 data points.
54.53 seconds at 17k data points per second. Processing total of 904,955 data points.
53.51 seconds at 17k data points per second. Processing total of 904,955 data points.
51.26 seconds at 18k data points per second. Processing total of 904,955 data points.
51.51 seconds at 18k data points per second. Processing total of 904,955 data points.
51.24 seconds at 18k data points per second. Processing total of 904,955 data points.
[MASTER C# HistoryRequestBenchmark]
56.97 seconds at 16k data points per second. Processing total of 904,955 data points.
53.48 seconds at 17k data points per second. Processing total of 904,955 data points.
52.25 seconds at 17k data points per second. Processing total of 904,955 data points.
51.07 seconds at 18k data points per second. Processing total of 904,955 data points.
51.48 seconds at 18k data points per second. Processing total of 904,955 data points.
51.07 seconds at 18k data points per second. Processing total of 904,955 data points.
Reproducing the Problem

The performance profile was captured using the C# HistoryRequestBenchmark https://github.com/QuantConnect/Lean/blob/master/Algorithm.CSharp/Benchmarks/HistoryRequestBenchmark.cs

System Information

N/A
Checklist

[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues

[x] I have provided detailed steps to reproduce the issue

Make sure to profile the dense universe benchmarks as well like 400 minute
securities
On Wed, Feb 20, 2019, 1:01 PM Martin-Molinero<EMAIL_ADDRESS>wrote:

Expected Behavior

ParallelRunnerController should not waste CPU time

Actual Behavior

ParallelRunnerController.ProcessHoldQueue()
       foreach (var workItem in _holdQueue.GetConsumingEnumerable(token))
       {
           if (workItem.IsReady)
           {
               _processQueue.Add(workItem, token);
           }
           else
           {
               _holdQueue.Add(workItem, token);
           }
       }

If the workItem is not ready it will add it and get it in a tight loop
until its ready. Profiling bellow shows the CPU consumption of the thread
and where its being used
[image: imagen]
https://user-images.githubusercontent.com/18473240/53123727-7b9f7800-3538-11e9-8c0c-9d8b3d58bae9.png
Potential Solution

A simple solution would be: if the _holdQueue has no workItem which
is ready, the thread should sleep.
       foreach (var workItem in _holdQueue.GetConsumingEnumerable(token))
       {
           if (workItem.IsReady)
           {
               _processQueue.Add(workItem, token);
           }
           else
           {
               if (!_holdQueue.Any(x => x.IsReady))
               {
                   Thread.Sleep(5);
               }
               _holdQueue.Add(workItem, token);
           }
       }

Performance profile of this solution is bellow. CPU usage went down from
25% to 15%, having no real impact on execution times (see after image
bellow).
[image: imagen]
https://user-images.githubusercontent.com/18473240/53123988-1435f800-3539-11e9-9116-a13a4406e8c1.png
[Proposed Solution C# HistoryRequestBenchmark]
57.08 seconds at 16k data points per second. Processing total of 904,955
data points.
54.53 seconds at 17k data points per second. Processing total of 904,955
data points.
53.51 seconds at 17k data points per second. Processing total of 904,955
data points.
51.26 seconds at 18k data points per second. Processing total of 904,955
data points.
51.51 seconds at 18k data points per second. Processing total of 904,955
data points.
51.24 seconds at 18k data points per second. Processing total of 904,955
data points.
[MASTER C# HistoryRequestBenchmark]
56.97 seconds at 16k data points per second. Processing total of 904,955
data points.
53.48 seconds at 17k data points per second. Processing total of 904,955
data points.
52.25 seconds at 17k data points per second. Processing total of 904,955
data points.
51.07 seconds at 18k data points per second. Processing total of 904,955
data points.
51.48 seconds at 18k data points per second. Processing total of 904,955
data points.
51.07 seconds at 18k data points per second. Processing total of 904,955
data points.
Reproducing the Problem

The performance profile was captured using the C#
HistoryRequestBenchmark
https://github.com/QuantConnect/Lean/blob/master/Algorithm.CSharp/Benchmarks/HistoryRequestBenchmark.cs

System Information
N/A
Checklist

I have completely filled out this template

I have confirmed that this issue exists on the current master branch

I have confirmed that this is not a duplicate issue by searching
issues https://github.com/QuantConnect/Lean/issues

I have provided detailed steps to reproduce the issue

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/QuantConnect/Lean/issues/2928, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACI6mY9VYe_KuZsjB54HSgDXPPnOfgHqks5vPbeagaJpZM4bGGwF
.

Ah! I have been seeing this but it never hit me that it would be a bug worthy of an issue. Thank you for looking into this, this is definitely an area deserving of work :)!


Invalid function

Environment Setup
I have used Bitnami image for Parse Setup on AWS. There I have cloud code in main.js file. I am able to call hello function using curl request. There i have created one more function as follows:
Parse.Cloud.define('demo',function(req,res){
   res.success('Hello From AWS');

});
Steps to reproduce
I tried calling using following curl
1)
curl -X POST
-H "X-Parse-Application-Id: myappid"
-H "X-Parse-REST-API-Key: ab**"
-H "Content-Type: application/json"
-d '{}'
http://ec2-52-77-221-66.ap-southeast-1.compute.amazonaws.com/parse/functions/demo

curl -X POST
-H "X-Parse-Application-Id: myappid"
-H "Content-Type: application/json"
-d '{}'
http://ec2-52-77-221-66.ap-southeast-1.compute.amazonaws.com/parse/functions/demo
Logs/Trace
I get following response.
{"code":141,"error":"Invalid function."}
Please Can someone help ?

Did you implement the hello function? Your repro steps show hello while your environment show you've created the demo function.

Thanks @peterdotjs , sorry that was by mistaked i edited it now.
Yes hello function is there which i am able to call successfuly, but my question is that why i am not able to call demo? While calling demo i am getting {"code":141,"error":"Invalid function."} even when the function is already defined in main.js file.

It sounds like your cloud code file is not being interpreted... You could add a top level console.log('hello from cloud code'); and verify that it's not being output when the server loads...  Check your ParseServer initialization, and make sure you are providing an absolute path to main.js in the cloud option, as seen here: https://github.com/ParsePlatform/parse-server-example/blob/master/index.js

Thanks for reply @gfosco . I am using https://aws.amazon.com/marketplace/pp/B01BLQ17TO this AMI image where all required setup is already done. I think In this parse server.js is running in background so where can i see console.log printed?
I have added following in server.js where ParserServer initialization is done.
cloud:process.env.CLOUD_CODE_MAIN || '/home/bitnami/apps/parse/htdocs/cloud '.
After adding this is it necessary to restart ParseServer after adding this changes?

I can't really support the AMI image, don't have any involvement on that... Can you clone the parse-server-example repository and run this locally to test?

Thanks @gfosco. Yes i will clone this and will try to run locally.

Clone the example repo, https://github.com/parseplatform/parse-server-example run npm install, then look at index.js for usage.  It's possible to run from this repo directly, but I think for most apps the best approach is using it as a module as in the example.

Was there ever a solution to this, I am having the same exact problem, except running on Heroku?

Same here! trying with heroku and locally without success.
beforeSave and afterSave are not working too... there's something missing?

I have noticed that main.js does not update when the application is redeployed. I am using elastic beanstalk and deploying using 'eb deploy'. I figured this out by checking timestamps of the main.js on the eb server at /var/app/current/cloud/main.js
Am I missing a step?

Any solutions? I'm stuck at this point too!

It seems that your code is not deployed properly... Double check elastic beanstalk documentation. We can't help much as this is provider specific.

I'm actually using Heroku. For curiosity, I tried to call the function hello, that default function that comes with main.js, and oddly it works, and the other functions I actually want call doesn't. I don't have the function hello in my main.js anymore. How's that can happen?
Get Outlook for iOS
	_____________________________

From: Florent Vilmart<EMAIL_ADDRESS>Sent: Wednesday, June 22, 2016 15:32
Subject: Re: [ParsePlatform/parse-server] Invalid function (#764)
To: ParsePlatform/parse-server<EMAIL_ADDRESS>Cc: Felipe Belluco<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>It seems that your code is not deployed properly... Double check elastic beanstalk documentation. We can't help much as this is provider specific.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

I had the same issue too.
Turn out at some point in time, I did a "git init" in my parse-server-example directory to initialize a repository....and then I made changes to to my /cloud/main.js.
Pushed the codes to amazon EB via "eb deploy" ---> it never deployed the updated main.js
fix: did a "git commit -a" to commit code changes to my local parse-server-example, and then "eb deploy" to push it
The reason you were getting "invalid function" was because on Heroku/AWS it still contains the default/un-updated main.js
good luck!

Thanks mate, I already had fixed it. In my case I just added the host url at the first line of my main.js and it worked.

On Aug 27, 2016, at 5:48 AM, jenlai1345<EMAIL_ADDRESS>wrote:
I had the same issue too.
Turn out at some point in time, I did a "git init" in my parse-server-example directory to initialize a repository....and then I made changes to to my /cloud/main.js.
Pushed the codes to amazon EB via "eb deploy" ---> it never deployed the updated main.js
fix: did a "git commit -a" to commit code changes to my local parse-server-example, and then "eb deploy" to push it
The reason you were getting "invalid function" was because on Heroku/AWS it still contains the default/un-updated main.js
good luck!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/ParsePlatform/parse-server/issues/764#issuecomment-242905356, or mute the thread https://github.com/notifications/unsubscribe-auth/AB0KmzI2E8fur2XBKo2vMy2ir_ks8Bvbks5qj_nmgaJpZM4HnT9_.

yes, @jenlai1345 is right. The new code has not been deployed yet to the actual server, so the server still looks toward the past code. So, you just have to deploy it. If you are using Heroku, this is  how I did it. You literally just have to click a button.

go to the heroku online dashboard and click on your app.
got to the "Deploy" tab
scroll down to the "Manual Deploy" section and hit the "Deploy Branch" button. Make sure your changes have been merged into the branch you choose to deploy with. I had mine changes merged into the master branch. This button basically tells the Heroku server to update to the new code you have written.

@felipebelluco
How did you add host url in main.js

@afuzail, Check his host url https://github.com/felipebelluco/parse-server-example/blob/master/cloud/main.js#L1


Radio button

Implements #24

Please add a radio button entry inside anlibs/anglify/ng-package.json

The default size of the Anglify checkbox does not comply with the Material Design specification (see Figma Design Template)


feat: EIP1559 Custom fee

#Linear Ticket

Few comments;

To enable EIP1559, you need to pass hardfork = 'london' to JsWallet provider. You can change createEthereumClient and accept hardfork argument.
Fee provider needs to be added immediately after Rpc provider. Can you move ethClient.addProvider(feeProvider) below Rpc provider? https://github.com/liquality/wallet/blob/f3249c005e8ee3631917da351aa3a03f43a66c3f/src/store/factory/client.js#L129
below Rpc provider?
Polygon testnet supports EIP1559. Can you enable it here? https://github.com/liquality/wallet/blob/f3249c005e8ee3631917da351aa3a03f43a66c3f/src/store/factory/client.js#L206

done :)


Prepare Solr Cloud local setup with test data

Will create a docker file and an image with test data.

Done.
We should discuss, if we provide a opportunity to download the local chronix cloud.


Include deepmind style Atari wrapper

As default pre-processing

Addressed https://github.com/moabitcoin/cherry-pytorch/pull/9


Validate Roles

With this PR #262 we have defined roles as Developers, Contributors, and Operators.
Operators: users who deploy, configure, and host the Apache OpenWhisk Function-as-a-Service platform for development, testing and/or production.
Developers: end users developing functions/actions, creating packages, feeds, and feed provider services using project APIs, clients and tooling.
Contributors: developers designing and developing backend architectural components and tooling that comprise the OpenWhisk platform and its project ecosystem.
Please validate these three roles and see if we need to redefine these roles to something like:
https://github.com/knative/docs/blob/master/images/knative-audience.svg
Or
Rename Developers with Users based on Apache standards.

We should further disambiguate users and developers.


[TOOLS-2539] Update Gobi RPC URL & screenshot

Jira ticket: TOOLS-2539 EON Docs: Update Gobi RPC URL & screenshot
In this PR, we:

Update the Gobi RPC URL to Node Gateway URL: https://gobi-rpc.horizenlabs.io/ethv1
Update the screenshot with EON connection details

Let's update the screenshot again later to remove that message about ticker symbol verification data.

So should we merge this PR? How will that message be removed? @yurikoinaba

@jmontesdeocanuez If it's possible to get the screenshot now without that messaging, let's include it here. I will approve again afterward.
If not, we can updated it later.

You can use this :)


Support disabled attribute on select options

This PR adds support for an optional disabled setting in an options array for dynamic <select> elements.
Local tests ran fine, but Saucelabs choked so I wasn't able to test full browser compatibility. I'm worried that the disabled="" test isn't going to be consistent across browsers.

disabled="" works fine across browsers, it's actually the value: null that makes the test fail in some browsers. I'll merge this and add the compatibility fix, thanks!


Arm64 docker images all contain x86 unoserver-rest-api binary

Thank you for doing this, it's an amazing project.
One thing I've noticed is that the image doesn't work on arm64 architecture.
# On an arm64 machine, e.g. an M2 Macbook
$ docker run libreofficedocker/libreoffice-unoserver:3.18
s6-rc: info: service unoserver-rest-api: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service unoserver-rest-api successfully started
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service update-font-cache: starting
s6-rc: info: service update-font-cache successfully started
s6-rc: info: service unoserver: starting
s6-rc: info: service unoserver successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
INFO:unoserver:Starting unoserver.
INFO:unoserver:Command: libreoffice --headless --invisible --nocrashreport --nodefault --nologo --nofirststartwizard --norestore -env:UserInstallation=file:///tmp/tmpmu2rk3sk --accept=socket,host=<IP_ADDRESS>,port=2002,tcpNoDelay=1;urp;StarOffice.ComponentContext
INFO:unoserver:Server PID: 110
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
docker-cmd.sh [Thu Jul 20 13:06:01 UTC 2023]: Alpine Linux version: 3.18.2
docker-cmd.sh [Thu Jul 20 13:06:01 UTC 2023]: Python version: Python 3.11.4
docker-cmd.sh [Thu Jul 20 13:06:01 UTC 2023]: openjdk 11.0.19 2023-04-18
docker-cmd.sh [Thu Jul 20 13:06:01 UTC 2023]: OpenJDK Runtime Environment (build 11.0.19+7-alpine-r1)
docker-cmd.sh [Thu Jul 20 13:06:01 UTC 2023]: OpenJDK 64-Bit Server VM (build 11.0.19+7-alpine-r1, mixed mode)
docker-cmd.sh [Thu Jul 20 13:06:01 UTC 2023]: LibreOffice <IP_ADDRESS> 50(Build:2)
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Segmentation fault
^Cs6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service unoserver-rest-api: stopping
s6-rc: info: service unoserver: stopping
s6-rc: info: service unoserver-rest-api successfully stopped
s6-rc: info: service unoserver successfully stopped
s6-rc: info: service update-font-cache: stopping
s6-rc: info: service update-font-cache successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
INFO:unoserver:Sending signal to LibreOffice

Note the Segmentation faults
Running the image on it's own, skipping the service start and just shell reveals the following:
$ docker run -it --entrypoint /bin/sh libreofficedocker/libreoffice-unoserver:3.18
/ # apk add file
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz
(1/2) Installing libmagic (5.44-r4)
(2/2) Installing file (5.44-r4)
Executing busybox-1.36.1-r0.trigger
OK: 1416 MiB in 385 packages
/ # file /usr/bin/unoserver-rest-api
/usr/bin/unoserver-rest-api: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, no section header
/ # uname -a
Linux 31932bb42c22 5.15.49-linuxkit-pr #1 SMP PREEMPT Thu May 25 07:27:39 UTC 2023 aarch64 Linux

As you can see, the unoserver-rest-api is an x86-64 binary.

Hi @ofipify apology for the inconvenience.
This is due to the the container image has been rework before the unoserver-rest-api. Anyway the unoserver-rest-api now have arm64 binary starting from v0.8.0.

Hi @socheatsok78,
Thank you for fixing it so fast. I can confirm that this now works on arm64. I've tested it earlier and it all worked as expected.
Kind regards,
@ofipify


Support Faraday 2.0, without which Rails 7.0 upgrade is blocked

Over the last year, most of the ruby gem ecosystem that uses Faraday http client library has migrated to Faraday 2.0. Most new gems only support Faraday 2.0.
See https://github.com/googleapis/google-auth-library-ruby/issues/355 for example.
I looked at the source code. There's no hard dependency on Faraday 1.x and the gemspec can simply be revised to
gem.add_dependency "faraday", ">= 0.17.3", "< 3.0"

https://github.com/googleapis/ruby-cloud-env/blob/e18f199813ebba816b1cb0ea19b4254c408f883d/google-cloud-env.gemspec#L23

@dazuma I'm also hitting this issue.
In Gemfile:
    faraday-follow_redirects was resolved to 0.2.0, which depends on
      faraday (< 3, >= 2)

    google-cloud-storage was resolved to 1.36.1, which depends on
      google-cloud-core (~> 1.6) was resolved to 1.6.0, which depends on
        google-cloud-env (~> 1.0) was resolved to 1.5.0, which depends on
          faraday (>= 0.17.3, < 2.0)

Hi @shivgautam / @NivedhaSenthil : Can you please release a new dot version with the faraday changes?


Avsridha/build fix windows

Adding a .gitignore to remove build artifacts and an AMD64 specific build file for IIS so that we don't have to keep modifying the build_release.bat when compiling on windows.

@azhao155 @allanbomsft could you take a look?

looks good to me


[REACT] Add onLogin callback to ConnectWallet authOptions props

Added an onLogin callback to the authOptions props of the ConnectWallet.tsx component to be able to use the JWT

@0xHendrix once merged, you can grab a version with your fix by installing @thirdweb-dev/react@nightly


operator: Fix setting fluentd config file name

Q
A

Bug fix?
yes

New feature?
no

API breaks?
no

Deprecations?
no

Related tickets
fixes #1572

License
Apache 2.0

What's in this PR?
A single character change to invert the check made on the FluentdConfFile field in the spec.
Why?
Currently the code checks if the value from the spec is not empty making it impossible to override the default.
If there is no value set it leaves the fluentd config file name as empty string ("").
This means we can only ever use fluent.conf or empty string "" as the name of the config file and the latter causes the validation error seen in #1572 .
We'd like to set it to fluent-bit.conf for use in the aws-for-fluent image.
See: https://github.com/aws/aws-for-fluent-bit/blob/mainline/entrypoint.sh
Additional context
Added two quick unit tests to check the configMapForFluentd function to confirm the behaviour.
Checklist

[x] Code meets the Developer Guide

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

@DewaldV  thanks for your contribution. LGTM, just need to wait the tests.

@DewaldV Please add a license header to your new file (operator/pkg/controller/vault/vault_controller_test.go). See the example: https://github.com/banzaicloud/bank-vaults/blob/main/pkg/webhook/common.go

@pbalogh-sa all done. Apologies for missing that! :smile:

thank you @DewaldV


ISSUE-785 Revisit manual service registerer

This closes #785

Define required and optional fields instead of uploading config file

we missed that config file doesn't have all fields and streamline can't infer default value

Introduce ComponentProcess to break down Component and Process

hosts / port / protocol are moved from Component to ComponentProcess
WARN: table schema changed

@hmcl
I modified lots of metadata codes because of ComponentProcess.
Could you help me reviewing the code and see if I'm breaking anything? Thanks in advance.

This change is

Manually tested with unsecured cluster: both manual / imported cluster with Kafka only topology.

This patch also fixes test failing on RestIntegrationTest.testAllResources. I disabled topology REST API test because it now depends on corresponding complicated entities (Namespace, Service, Component, ComponentProcess, ServiceConfiguration, Mapping).

This is quite a huge patch but I would be really happy if someone can take a stab with reviewing. I'll address conflicts after passing review process.

@hmcl can you review this.

@hmcl
Thanks for the detailed review. I addressed review comments.
 If then please let me know if you finish your review. Thanks again!

Filed #875 . Thanks for the review @hmcl. I'll merge.

Merged via 0b9279e873c6d6d21e20121613959d2799be2d8d


Site down

Died in the middle of a monster creation. :(

unsure if this was a temporary issue with github pages or a crash in the monster maker while making a monster. were you able to recover your monster data?

No, it's OK.  I really like the site.  Thx!


Is Google's new paper helpful to improve the strength of AQ?

The paper introduces AlphaGo Zero, the latest evolution of AlphaGo, the first computer program to defeat a world champion at the ancient Chinese game of Go. Zero is even more powerful and is arguably the strongest Go player in history.
Previous versions of AlphaGo initially trained on thousands of human amateur and professional games to learn how to play Go. AlphaGo Zero skips this step and learns to play simply by playing games against itself, starting from completely random play. In doing so, it quickly surpassed human level of play and defeated the previously published champion-defeating version of AlphaGo by 100 games to 0.

In the paper, they describes the training amount for the final version as

Over the course of training, 29 million games of self-play were generated.

The method is too heavy to deal with a normal GPU.
From my experience, the network in the paper takes about 4 msec for each position with my machine (i.e. GTX 1080).
Therefore, even if the average move count of self-play games is 250, it takes
29,000,000[games] * 250[positions] * 1600[playouts] * 0.004[sec]
= 46,400,000,000[sec] = 1471[year]

If you wait 1500 years, I will develop it.

I always thought the new paper had advanced methods,
I see, thank you

@ymgaq is it realistik to build and use some distributed resources provided by go community?
It achived AlphaGo Lee lvl in 3 days, so it kinda 150 years on usual GPU?)
If involve 100+ people to contribute their PC time... or I just dreaming and it basically impossible to achive? :)
P.S. what is your opinion of influence of this paper to existing/coming soon bots strength?
(Especially for avaliable for public, not like FineArt which has resources but not public)
Thank you.


os error 10060

I have my bitcoin core node running completely fine and at the latest block. I am trying to inscribe but it will not let me and it shows me this error:
error: JSON-RPC error: transport error: Couldn't connect to host: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (os error 10060)
OR
error: Failed to send commit transaction
because: JSON-RPC error: RPC error response: RpcError { code: -26, message: "non-mandatory-script-verify-flag (Witness program was passed an empty witness)", data: None }
I successfully inscribed 5 images yesterday with 5 utxos back-to-back. However now that I have 100 utxos loaded up to incribe, I keep getting these errors in ord. It shows me error 10060 at times when doing wallet balance, but a retry fixes it, however this is not the case for inscribing.
The command I am running is ord --bitcoin-data-dir  --cookie-file  wallet inscribe --fee-rate
My config file contains these:
txindex=1
rest=1
server=1
rpcallowip=<IP_ADDRESS>
rpcport=8332
(also tried without rpcport and rpcallowip and still the same issue)
My bitcoind launch command is just a datadir to the bitcoin folder.
I have tried NUMEROUS fixes such as editing my config, restarting bitcoind, restarting pc, etc. None were effective. I would really appreciate some help. Thanks.

To help debug, remove these two lines from bitcoin.conf and restart your bitcoind
rpcallowip=<IP_ADDRESS> rpcport=8332
Also, I thought --fee-rate went before the sub-command inscribe
If that still fails please provide any relevant error logs.

Removed both and restarted. Tried putting fee rate before inscribe but it is an invalid command, so it does go after.
Got this error now.
error: Failed to send commit transaction
because: JSON-RPC error: RPC error response: RpcError { code: -26, message: "non-mandatory-script-verify-flag (Witness program was passed an empty witness)", data: None }
The error above is one that I have been getting as well. So I either get error 10060 or the one I just stated above.

i have this too. have had it for weeks. tried a long list of things, none of which worked. I even bought an external ssd and redownloaded the bitcoin core node and the ord wallet again. still happens.

我也是这个错误，有人解决了吗

Me too.

Any solution for this "Bug", I'm having the same issue


.html() returns outerHTML, while .html(html) sets innerHTML

I can't believe this one has gone unnoticed. I'm not really sure what to do about it actually. I think it's more useful how it is right now, but I don't like the asymmetry. I also don't like straying away from the jQuery API.
What do you guy's think?

I think that we should stick to the jQuery spec. So .html() should both return and set innerHTML.

Yah.. but jQuery doesn't have anyway of getting "outerHTML".

Then it would be better to provide a separate function to get and set outerHTML, rather than mix and match with .html().

I'd like to be able to use this library to execute the same manipulation on the server as I do in the browser.  jQuery compatibility seems like the highest priority.  I think .html() should read and write innerHTML.
I'd vote for adding a special method like .toHtml() which would return an array of strings if you need to dump outerHTML of the collection for debugging purposes.

Yah, I tend to agree with you. I want it to be incredibly easy to get the outer HTML though, because most of my use cases involve manipulating the html string, then rendering the whole string.
I'm realizing though, that in jQuery i never needed to get the outer HTML, because I'm never rendering the whole document. So what if we took a hybrid approach, and did this:
$('.orange').html() // => returned innerHTML

$.html() // => Returned entire HTML string

I'm fine with that, also, I'd allow $.html to take an optional cheerio parameter, so in code like the following:
var span = $("
foobar
").children().get(1);
span.html() // => returns "bar"
$.html(span) // => returns "bar"

Jeez @ironchefpython you're on fire! I like it. Added to master.

The following assertion fails:
      $.html($('baz')).should.equal('baz');


ConsumerStartPosition.PRODUCER not handled properly in Consumer

I was testing out this option for the Consumer and it doesn't seem to be handled properly in the Consumer:
  File "/home/patrick/workspace/venv/hop/lib/python3.8/site-packages/hop/subscribe.py", line 55, in _main
    with stream.open(args.url, "r") as s:
  File "/usr/lib64/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/home/patrick/workspace/venv/hop/lib/python3.8/site-packages/hop/io.py", line 229, in _open_consumer
    client.subscribe(t)
  File "/home/patrick/workspace/venv/hop/lib/python3.8/site-packages/adc/consumer.py", line 64, in subscribe
    tp.offset = self.conf.start_at
TypeError: an integer is required (got type ConsumerStartPosition)

There should be another switch in the conditional here, and possibly also in the configuration at the bottom of consumer.py: https://github.com/astronomy-commons/adc-streaming/blob/master/adc/consumer.py#L48
I think I'm unclear on what ConsumerStartPosition.PRODUCER is supposed to represent though, is this intended to be OFFSET_STORED or something else?

I think my intention was for this to be "obey whatever the Producer set as the default for the topic when the topic was created." For some reason, I thought that auto.offset.reset could be an option defined for a particular topic. I think I was wrong about that. I think this value is meaningless and should be removed.

How about replacing this option with ConsumerStartPosition.STORED pointed towards OFFSET_STORED to allow starting where you left off with a given group id?

Oh I see, I misinterpreted what ConsumerStartPosition was really doing and that makes sense.

I think I'd prefer to fix things so that stored offsets get obeyed no matter what, and leave this down to just EARLIEST/LATEST.

That sounds like a good plan.


Fluent-bit host is incorrect

Problem Description
I followed this documentation and added my API key to the custom-values.yaml file. Then, I installed the Helm chart using the following commands:
helm repo add baselime-logs-exporter https://baselime.github.io/helm-charts
helm repo update
helm install baselime-logs-exporter baselime-logs-exporter/baselime-logs-exporter --values custom-values.yaml

However, when checking the logs, I noticed a 401 error:
$ kubectl -n baselime logs baselime-collector-cmqvz -f
Fluent Bit v3.0.3
* Copyright (C) 2015-2024 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

...

[2024/04/30 06:25:23] [error] [output:http:http.0] events.baselime.cc:443, HTTP status=401
{"message":"Unauthorised"}
[2024/04/30 06:25:23] [ warn] [engine] failed to flush chunk '1-1714458293.874966719.flb', retry in 8 seconds: task_id=0, input=tail.0 > output=http.0 (out_id=0)
[2024/04/30 06:25:32] [error] [output:http:http.0] events.baselime.cc:443, HTTP status=401
{"message":"Unauthorised"}
[2024/04/30 06:25:32] [error] [engine] chunk '1-1714458293.874966719.flb' cannot be retried: task_id=0, input=tail.0 > output=http.0
[2024/04/30 06:25:53] [error] [output:http:http.0] events.baselime.cc:443, HTTP status=401
{"message":"Unauthorised"}
[2024/04/30 06:25:53] [ warn] [engine] failed to flush chunk '1-1714458327.412361089.flb', retry in 7 seconds: task_id=0, input=tail.0 > output=http.0 (out_id=0)
[2024/04/30 06:26:00] [error] [output:http:http.0] events.baselime.cc:443, HTTP status=401
{"message":"Unauthorised"}
...

Expected Behavior
Fluent Bit should send log data without any errors or authentication issues.
Potential Cause
Upon further investigation, I found that the issue might be caused by an incorrect destination host in the Fluent Bit configuration. In the current fluentbit-configmap.yaml file, the destination host is set to events.baselime.cc
    [OUTPUT]
      Name         http
      Host         events.baselime.cc
      Port         443
      URI          /v1/logs

https://github.com/baselime/helm-charts/blob/main/charts/baselime-logs-exporter/templates/fluentbit-configmap.yaml#L33
However, according to this documentation, the correct destination host should be events.baselime.io
curl -X 'POST' 'https://events.baselime.io/v1/logs' \
  -H 'x-api-key: $BASELIME_API_KEY' \
  -H 'Content-Type: application/json' \
  -H 'x-service: my-service' \
  -d '[
        {
          "message": "This is an example log event",
          "error": "TypeError: Cannot read property 'something' of undefined",
          "requestId": "6092d6f0-3bfa-4d62-9d0b-5bc7ae6518a1",
          "namespace": "https://api.domain.com/resource/{id}"
        },
        {
          "message": "This is another example log event",
          "requestId": "6092d6f0-3bfa-4d62-9d0b-5bc7ae6518a1",
          "data": {"userId": "01HBRCB38K2K4V5SDR7YC1D0ZB"},
          "duration": 127
        }
      ]'

Temporary Workaround
I applied the manifest with the modified Host using helm template and it worked.
+       Host         events.baselime.io
-       Host         events.baselime.cc

$ kubectl logs -f baselime-collector-sf6z5
Fluent Bit v3.0.3
* Copyright (C) 2015-2024 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

...

[2024/04/30 06:56:41] [ info] [output:http:http.0] events.baselime.io:443, HTTP status=202
{"message":"Request Accepted"}
[2024/04/30 06:57:11] [ info] [output:http:http.0] events.baselime.io:443, HTTP status=202
{"message":"Request Accepted"}
...

Thanks for pointing it out @tunamaguro, I forgot to change it after running some tests. I've corrected it in the version 0.1.2.


changed logo reroute to an anchor tag

This should provide the page refresh that was requested.

This looks good @fudgemasterultra
Thanks for your contribution!


JPEG Camera Streaming

Probably due to my python knowledge level, I can't make it work with Sanic. I had this piece of code when I was on Flask :
def gen(camera):
    """Video streaming generator function."""
    while True:
        frame = camera.get_frame()
        yield (b'--frame\r\n'
               b'Content-Type: image/jpeg\r\n\r\n' + frame + b'\r\n')

@app.route('/video_feed')
def video_feed():
    """Video streaming route. Put this in the src attribute of an img tag."""
    return Response(gen(Camera()),
                    mimetype='multipart/x-mixed-replace; boundary=frame')

The problem is, I can't use plain "response" function to replace "return Response" because it has no mimetype or content_type. There's a stream function in sanic but whenever I use it , I get this TypeError: 'generator' object is not callable error and I don't know how to flip the boards. Any ideas? Thank you
P.S: Sorry, I know you guys are busy with engineering problems but I have been baffling with this for a week now. I could really use some ideas. Thank you.

Streaming in Sanic takes a function that can write directly to the response, not a generator.  So you'd probably need to structure your code like
from sanic import response
import asyncio

# hard-coded fps,
#   would probably be best to use
#   the camera's approx supported fps instead
FPS = 29.97
STREAM_RESPONSE = \
"""
--frame
Content-Type: image/jpeg

"""

@app.route('/video_feed')
async def video_feed(request):
    """Video streaming route. Put this in the src attribute of an img tag."""
    async def stream_camera(response):
        camera = Camera()
        while True:
            frame = camera.get_frame()
            response.write(STREAM_RESPONSE + frame)
            await asyncio.sleep(1.0 / FPS)

    return response.stream(
                stream_camera,
                content_type='multipart/x-mixed-replace; boundary=frame'
            )

If anyone is wondering, I solved it with this code
async def gen(camera, response):
    """Video streaming generator function."""
    loop = asyncio.get_event_loop()
    while True:
        frame = await loop.run_in_executor(None, camera.get_frame)
        response.write(b'--frame\r\n'
                       b'Content-Type: image/jpeg\r\n\r\n' + frame + b'\r\n')
        await asyncio.sleep(1.0/FPS)

@app.route('/video_feed')
def video_feed(request):
    """Video streaming route. Put this in the src attribute of an img tag."""
    return stream(partial(gen, Camera()),
                    content_type='multipart/x-mixed-replace; boundary=frame')

Although, the code before this comment by @nhydock works too. Thank you!

In sanic you should be getting the event loop from the request object just to be safe request.app.loop.
You might actually want to run your camera frame fetching in an async task on sanic as described in the Middleware docs and store the frame in memory, then have your streams fetch the stored frame instead of make a request to the camera.  That way you don't have too many IO connections open to it, which can improve throughput.
Glad to see that you are able to stream data from your camera, though, that's pretty cool.

@nhydock My code hangs after 5-10 seconds. Any idea why and how can I solve it?
Also where do we get the request object from?
I read the documentation but I couldn't make it work, how do I store the frame on memory. Can I have some examples?
Thank you so much.

@nhydock as of Python 3.5.3 request.app.loop is the same object as asyncio.get_event_loop(), isnt't it?
Anyway, respose.write() is a sync call, it means that if a socket peer didn't consume the data more often than sanic sends it -- MemoryError will catch you very soon.
Correct me if I'm wrong please.

ah, sorry, that was my misunderstanding from looking at the deployment docs, which state

loop (default None): An asyncio-compatible event loop. If none is specified, Sanic creates its own event loop.

The api docs/code say it's the same as asyncio.get_event_loop()
Anyway, streaming problems with synchronous write would be related to #1067

@asvetlov I'm not able to see any errors, it hungs up the system and my remote wi-fi connection gets interrupted until the program closes itself or I reboot it. But I suspect it's a memory error too.
@nhydock I checked it out before, but couldn't figure out how to implement it on my case. Thank you so much for your efforts

It's probably fixed by https://github.com/huge-success/sanic/pull/1179


Duplicate condition in 'if' statement inspection

What is the purpose of the change
fix Duplicate condition in 'if' statement inspection
https://github.com/apache/dubbo/blob/0f4e60dca31737ea905306b1c4a3cce399536db9/dubbo-rpc/dubbo-rpc-grpc/src/main/java/org/apache/dubbo/rpc/protocol/grpc/GrpcInvoker.java#L99-L103
Brief changelog
XXXXX
Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Run mvn clean install -DskipTests=false & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
[ ] If this contribution is large, please follow the Software Donation Guide.

Codecov Report

Merging #5802 into master will decrease coverage by 0.1%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #5802      +/-   ##
============================================
- Coverage     61.43%   61.33%   -0.11%
+ Complexity      497      496       -1
============================================
  Files           979      979
  Lines         38888    38839      -49
  Branches       5605     5571      -34
============================================
- Hits          23891    23820      -71
- Misses        12374    12399      +25
+ Partials       2623     2620       -3

Impacted Files
Coverage Δ
Complexity Δ

...rg/apache/dubbo/rpc/protocol/grpc/GrpcInvoker.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...rg/apache/dubbo/remoting/utils/PayloadDropper.java
46.15% <0%> (-30.77%)
0% <0%> (ø)

.../apache/dubbo/rpc/protocol/AsyncToSyncInvoker.java
70.83% <0%> (-16.67%)
0% <0%> (ø)

...ache/dubbo/remoting/transport/AbstractChannel.java
75% <0%> (-12.5%)
0% <0%> (ø)

...che/dubbo/remoting/transport/mina/MinaChannel.java
39.47% <0%> (-10.53%)
15% <0%> (-1%)

...mmon/threadpool/support/fixed/FixedThreadPool.java
80% <0%> (-7.5%)
0% <0%> (ø)

...moting/transport/netty4/NettyEventLoopFactory.java
30% <0%> (-6.37%)
0% <0%> (ø)

...dubbo/remoting/exchange/support/DefaultFuture.java
76.63% <0%> (-6.25%)
0% <0%> (ø)

.../threadpool/support/limited/LimitedThreadPool.java
83.33% <0%> (-5.56%)
0% <0%> (ø)

...he/dubbo/common/threadpool/ThreadlessExecutor.java
55% <0%> (-5%)
0% <0%> (ø)

... and 25 more

Continue to review full report at Codecov.

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

LGTM


[Enhancement] Allow finding operations from multiple directories

Hi,
I have an enhancement suggestion.
Allow loading operations from multiple directories just like laravel migrations.
This can be done via the config file directory key maybe renamed to directories with a fallback to directory to avoid breaking change.
Also you could add a method called loadOperationsFrom() the same way laravel provides loadMigrationsFrom()
Personally for my use case, i have two places where i can load laravel migrations from.

I have a similar request, so not opening a new issue.
My case is this. I have a multi-tenant application that uses two databases. So I would need to load operations from different directories - one for tenants, and one for the central app (landlord).
While this enhancement could work partially for me, I have trouble with migrating the operations table. This is just a thought for now. I will eventually need to create the table in both tenant and landlord database.
Since the operations table migration is not published, and always picks form the vendor directory, when I run migrate --database=tenant, its fine and creates the operations table in the tenant database. This works because for tenant database the migration files are stored in the default location - database/migrations. But when I want to run it for the default database migrate --database=landlord --path=database/migrations/landlord it wouldn't pick up the migration for operations as it is in the vendor directory. For now I just copied the migration to the landlord directory, but it would be nice if we could publish the migration file.

Never mind, I mitigated the issue by moving my tenant migrations to it's own directory.
But yeah, I can't wait for the enhancement to be merged 😀.


adds support for water model

Water consumption (especially the treatment part) contributes consequently to a person's CO2 emissions.
This model adds support for such activities, taking into account the distribution and treatment related emissions.
It's hard to find data of water consumption per capita that only includes residential use. Such information usually includes industry, farming etc, but such emissions are already included in the calculations of products and food.
Most countries now have a meter per household, (some even have smart ones!) making it easy for an application user to add their water consumption (like they'd do for electric consumption).
For countries that are still deploying meters (like Canada for instance), providing users with averages depending on their location in the UI could be interesting.
https://www.canada.ca/en/environment-climate-change/services/environmental-indicators/residential-water-use.html

Cc @corradio

Hi @baywet
Thank you very much for this PR! I'll take a look when I have time, but from what I see we would need to make changes in the UI to allow the user to add water consumption activities.
This means we will to prioritise some work internally, so I'll get back to you on that.

We discussed with @martincollignon that this could be easier to add to footprint.yml and thereby be considered a purchase (cc @sorensvejstrup ).
@martincollignon can I let you take over here and help @baywet ?

@corradio why not rename the "heating & electricity" category into "utility" ? The reason why I'm arguing it should work like electricity is because you could imagine integration with water providers kind of like you have with electricity today. Additionally a purchase could generate a water activity. (some metallurgic products are water intensive, same thing for some food products, going to a car wash, water park etc...)

@corradio why not rename the "heating & electricity" category into "utility" ? The reason why I'm arguing it should work like electricity is because you could imagine integration with water providers kind of like you have with electricity today. Additionally a purchase could generate a water activity. (some metallurgic products are water intensive, same thing for some food products, going to a car wash, water park etc...)

We thought about that as well! The issue is that it would require doing some UX work (specifically, have a new input screen), which we unfortunately can't prioritise given our limited resources. Later down the road it would make sense to have a unified "utility" input, but right now it's not possible unfortunately :/

I don't mind waiting a little bit for this PR to get merged if this means doing the right thing :)
What timelines are we talking about to get that new UI in place? weeks? months?

I think currently we may be looking at months, as our small team is working full-steam ahead on the B2B product :(

Let's close it for now - it would make more sense to add it as a purchase in footprint.yml


allow numbers at the start of the file name

great project!
for some reason I get this error:
seeds/01-applications.ts
  1:1  error  The filename "seeds/01-applications.ts" does not match the "KEBAB_CASE" style  check-file/filename-naming-convention

for this config:
"check-file/filename-naming-convention":[
			"error",
			{
				"**/*.{js,ts}":"KEBAB_CASE"
			},
			{
				"ignoreMiddleExtensions": true
			}
		],
		"check-file/folder-naming-convention":[
			"error",
			{
				"app/**/":"KEBAB_CASE",
				"test/!(__fixtures__)/**/":"KEBAB_CASE"
			}
		]

@rluvaton in your case, you need to use your own glob expression to describe the rule

@rluvaton you can try this one +([0-9])+(-+([a-z]))

Thanks


Supermatter!

Sorry this took so long but I feel it's about time to PR this again.
About the PR
adds the fabled spicerock in most of its exploding glory
the Supermatter does not radiate yet but that should change soon

[x] Supermatter graphics
[x] atmos interactions such as damage and healing
[x] delamination types
[x] Singularity needing to eat a Supermatter to get to size 6
[x] running into the Supermatter dust things and increases energy
[ ] Supermatter shards
[ ] radiation generation

Screenshots

Changelog

:cl: Stanbery Trask

add: added Supermatter component and system
add: added a new Supermatter explosion prototype
add: added a new region to the atmos constants for Supermatter gas constants to live
tweak: tweaked Singularity size 6 to need supermatter

the hero we needed

it is funny solely because we were talking about how SM was needed soon to keep atmos techs busy
time to delam the station for a week once it's added though

holy shit SM
Now add the clown car please

You should have just reopened the other PR, now all the reviews from it are not present in this one.

add: added Supermatter component and system
add: added a new Supermatter explosion prototype
add: added a new region to the atmos constants for Supermatter gas constants to live

Changelogs are meant to be player-facing, they don't care about how the internals of the supermatter works.

Re-open when you get a chance to go through the reviews.


Handle NSErrors from API responses

This explicitly allows us to handle NSErrors passed back from the
network layer in order to show a better error to the user.
Before:

After:

👍


Automatically enable 'instant' inspection at the hvplot level

When HoloViews supports Datashader inspections, it will still need to be enabled: at the very minimum you will need to apply the inspect operation appropriately.
However, at the hvPlot level, it would be appropriate to automatically configure this for you when switching to a datashaded/rasterized plot. The goal would be for datashaded plots to have all the same affordances and behaviors of normal Bokeh glyphs from the user perspective.
Technically, hvPlot should automate the generation of index layers or additional aggregate arrays so both index-based and non-index-based inspections just work.
This should include new documentation in hvPlot.
JLS note: One thing to note is that enabling instant inspection with some random sample (e.g first) could be an easy default but you probably want to have an API to allow hvplot to specify where aggregations instead (e.g. 'show the longest ship').

When HoloViews supports Datashader inspections

I'm a bit confused, HoloViews already has some support for datashader inspections? I see inspect_points and inspect_polygons in its code base at least.

This should include new documentation in hvPlot.

As far as I can see, inspection isn't yet documented in HoloViews. I'd say it should be documented in HoloViews first, before adding documentation in hvPlot (that should link to HoloViews).

I'm a bit confused, HoloViews already has some support for datashader inspections? I see inspect_points and inspect_polygons in its code base at least.

These are very crude implementations and cover a tiny fraction of what we want to support. See the Datashader Inspections project for the full vision.

Here's a more direct link to the draft issue containing the full Datashader inspections goal.
Also, the board shows there are several things to do before implementing in hvPlot. I estimated a target of April 2024 for this.


Description has too small area if title of talk is too long

Subject https://photos.app.goo.gl/gXL8pYfM1mDJ1Vfd8

Yeah, known issue :) The designs call for the appbar to collapse but it's very tricky and we had to deprioritise it as it was less important than making the app not crash 😅 But it's tracked already #161 so I'm closing this. Thanks for reporting! Hope you're enjoying the app.


Add StartupProjectRegistrar which adds/removes projects from IVsStartupProjectsListService

Tagging @dotnet/project-system for review

Implements #74

ping @dotnet/project-system

👍


[Feature] Add a AssetPath listener/file watcher

Is your feature request related to a problem? Please describe.
When you create a gallery app, you would like it to update UI when some files download/move folders in background. It would be nice if this library had a native support for this, with some Stream listener
Describe the solution you'd like
assetPath.watch((event) {
    print(event.type);
}

Describe alternatives you've considered
For now, I was doing it with watcher package, but it's not ideal, and new cache stuff broke it.

Oh, I see there actually is:
PhotoManager.addChangeCallback((value) { })
If it's efficient, and doesn't need any changes, I'll be happy to close the issue :sweat_smile:


(python3.0-compat) added python 3.x compatibility for ingester.

A.C.

[x] Imported urllib.request
[x] Imported urllib.parse
[x] Modified POST data generation to be encoded correctly
[x] Tested with a lambda log group

Description
Ported ingester.py to use python3 urllib to send cloudwatch data to Humio

Closing this PR as the issues should be fixed from merging another PR. Thank you for your contribution. :)