SAM inferrence fails with FileNotFoundError while pulling from local storage

Annotation with SAM backend fails consistently when trying to retrieve images from local storage. Tasks in question are loaded in the label studio itself and images are visible, it is only when annotation is requested that issues manifest.
The annotation works with manually uploaded files. The only problem is local storage.
Local storage settings:

Docker compose file snippet (I've cut out secrets etc., but relevant parts remain):
  label-studio:
    image: heartexlabs/label-studio:latest
    command: label-studio start
    user: "1587059813:0"
    volumes:
      - ./mydata:/label-studio/data:rw # Main storage in user home
      - images-extracted:/label-studio/files/external:rw # External storage - general
      - labels:/label-studio/files/labels:rw # External storage - labels
      - source-images:/label-studio/files/sourcedata:rw # External storage - data only
        #  - ./labelstudio:/root/.local/share/label-studio:rw
    depends_on:
      - db
    ports:
      - 9000:8080
    deploy:
      resources:
        reservations:
          cpus: '1'
    environment:
...
      - LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED=${LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED:-true} # Necessary for local file connection
      - LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT=${LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT:-/label-studio/files/} # Location of local file connection mount
      - DJANGO_DB=default
      - POSTGRE_NAME=${DB_NAME:-postgres}
      - POSTGRE_USER=${DB_USER:-postgres}
      - POSTGRE_PASSWORD=...
      - POSTGRE_PORT=5432
      - POSTGRE_HOST=localhost
    restart: unless-stopped
    network_mode: "host"

...

  sam_server:
    container_name: sam_server
    image: humansignal/sam:v0 # Locally build, is not available in online repos
    deploy:
      resources:
        limits:
          memory: 16G # Hard memory limit
        reservations:
          memory: 8G # Soft maximum
          cpus: '1'
    environment:
     # Change this to your model name
      - SAM_CHOICE=MobileSAM # Other options are available, but may be slower
      - LOG_LEVEL=DEBUG # We can disable this, but it's useful
      # Add these variables if you want to access the images stored in Label Studio
      - LABEL_STUDIO_HOSTNAME=http://localhost:8080 # Always set to 'localhost' if we are on "host" network
      - LABEL_STUDIO_ACCESS_TOKEN=${LABEL_STUDIO_USER_TOKEN}
    ports:
      - 9090:9090
    volumes:
      - ./sam_data/server:/data:rw # Location of SAM model weights and checkpoints
    restart: unless-stopped
    network_mode: "host"

Full trace:
  File "/usr/local/lib/python3.8/site-packages/label_studio_ml/exceptions.py", line 39, in exception_f
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/label_studio_ml/api.py", line 61, in _predict
    predictions = model.predict(tasks, context=context, **params)
  File "/app/model.py", line 48, in predict
    predictor_results = PREDICTOR.predict(
  File "/app/sam_predictor.py", line 195, in predict
    return self.predict_sam(img_path, point_coords, point_labels, input_box)
  File "/app/sam_predictor.py", line 167, in predict_sam
    self.set_image(img_path, calculate_embeddings=False)
  File "/app/sam_predictor.py", line 83, in set_image
    image_path = get_image_local_path(
  File "/usr/local/lib/python3.8/site-packages/label_studio_ml/utils.py", line 64, in get_image_local_path
    image_local_path = get_local_path(
  File "/usr/local/lib/python3.8/site-packages/label_studio_tools/core/utils/io.py", line 68, in get_local_path
    raise FileNotFoundError(filepath)
FileNotFoundError: /external/subdir/someimage.jpg

I was having the same issue. I managed to fix it by adding LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT and mounting the image volume to the SAM Docker container.
In your case, it should be fixed by:
  sam_server:
    container_name: sam_server
    image: humansignal/sam:v0 # Locally build, is not available in online repos
    deploy:
      resources:
        limits:
          memory: 16G # Hard memory limit
        reservations:
          memory: 8G # Soft maximum
          cpus: '1'
    environment:
     # Change this to your model name
      - SAM_CHOICE=MobileSAM # Other options are available, but may be slower
      - LOG_LEVEL=DEBUG # We can disable this, but it's useful
      # Add these variables if you want to access the images stored in Label Studio
      - LABEL_STUDIO_HOSTNAME=http://localhost:8080 # Always set to 'localhost' if we are on "host" network
      - LABEL_STUDIO_ACCESS_TOKEN=${LABEL_STUDIO_USER_TOKEN}
+     - LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT=${LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT:-/label-studio/files/} # Location of local file connection mount
    ports:
      - 9090:9090
    volumes:
      - ./sam_data/server:/data:rw # Location of SAM model weights and checkpoints
+     - images-extracted:/label-studio/files/external:rw # External storage - general
    restart: unless-stopped
    network_mode: "host"


Add a new LWC

Critical Changes
Changes
Issues Closed

What should happen with this PR, @davidmreed ?


Simple Toast messages

I see you utilized Stack to contain toasts. FYI: Page/View component is already a Stack and page.splash gives an access to one of its layers. Look at this example: https://github.com/flet-dev/examples/blob/main/python/controls/page/splash-test.py
Maybe we could rename it to something like overlay to make it more obvious?...

Never mind, I was thinking aloud :) I will give more thoughts on splash behavior and maybe get back to this.


Added new zip action

This is requires with the appetize action

:truck: :dancer: :+1:

I see this is already merged - I'll submit another PR addressing your 2 comments


[BUG] Ruff raises "undefined name" error in notebooks with objects imported from

A project I maintain, functime, uses ruff to lint the notebooks. I just ran ruff on this notebook and I get a slew of errors of imported objects (e.g. pl) that are flagged as undefined variables:

docs/notebooks/evaluation.ipynb:cell 6:2:5: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 6:4:19: F821 Undefined name `train_test_split`
docs/notebooks/evaluation.ipynb:cell 8:2:5: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 8:3:5: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 8:4:5: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 10:1:16: F821 Undefined name `snaive`
docs/notebooks/evaluation.ipynb:cell 12:1:9: F821 Undefined name `rank_point_forecasts`
docs/notebooks/evaluation.ipynb:cell 13:2:10: F821 Undefined name `plot_forecasts`
docs/notebooks/evaluation.ipynb:cell 13:3:21: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 13:4:32: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 15:1:9: F821 Undefined name `rank_point_forecasts`
docs/notebooks/evaluation.ipynb:cell 16:2:10: F821 Undefined name `plot_forecasts`
docs/notebooks/evaluation.ipynb:cell 16:3:21: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 16:4:32: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 18:2:14: F821 Undefined name `lightgbm`
docs/notebooks/evaluation.ipynb:cell 18:2:61: F821 Undefined name `detrend`
docs/notebooks/evaluation.ipynb:cell 20:1:9: F821 Undefined name `rank_point_forecasts`
docs/notebooks/evaluation.ipynb:cell 21:2:10: F821 Undefined name `plot_forecasts`
docs/notebooks/evaluation.ipynb:cell 21:3:21: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 21:4:27: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 23:1:9: F821 Undefined name `rank_point_forecasts`
docs/notebooks/evaluation.ipynb:cell 24:2:10: F821 Undefined name `plot_forecasts`
docs/notebooks/evaluation.ipynb:cell 24:3:21: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 24:4:27: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 26:1:9: F821 Undefined name `rank_residuals`
docs/notebooks/evaluation.ipynb:cell 27:2:10: F821 Undefined name `plot_residuals`
docs/notebooks/evaluation.ipynb:cell 27:3:30: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 29:1:9: F821 Undefined name `rank_residuals`
docs/notebooks/evaluation.ipynb:cell 30:2:10: F821 Undefined name `plot_residuals`
docs/notebooks/evaluation.ipynb:cell 30:3:30: F821 Undefined name `pl`
docs/notebooks/evaluation.ipynb:cell 32:1:10: F821 Undefined name `plot_fva`
docs/notebooks/evaluation.ipynb:cell 34:1:10: F821 Undefined name `plot_comet`

Our configs:
[tool.ruff]
include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]
select = [
    "E",  # pycodestyle errors
    "W",  # pycodestyle warnings
    "F",  # pyflakes
    "I",  # isort
    "B",  # flake8-bugbear
    "UP", # pyupgrade
    "I",  # isort
]
ignore = [
    "E501", # line too long, handled by black
    "B008", # do not perform function calls in argument defaults
    "B905", # `zip()` without an explicit `strict=` parameter
]

[tool.ruff.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true

\cc @dhruvmanila

This is happening because the cell containing the imports has a cell magic defined:
%%capture
import polars as pl

# ...

We ignore cell containing cell magics as they apply to the entire cell. The reasoning behind that is mentioned here: https://github.com/astral-sh/ruff/issues/7908#issuecomment-1756749556
Separately, I'm not sure if %%capture is really useful in a cell containing imports as there probably won't be any output when running the cell.
I'll close this considering this as expected but feel free to ask any further questions or clarification required.

Ops totally right, sorry @dhruvmanila. Thank you for the prompt answers!

No problem, happy to help :)


Add mathjax integration

Expected Behavior

Great theme, thanks! I'm writing an academic blog using blogdown and hugo-future-imperfect. Posts usually involve at least a few mathematical equations, so wanted to build that capacity into this theme
Current Behavior

Equations do not seem to be currently supported, and I couldn't find any reference to equations in the documentation, current issues, or pull requests. So, this will allow users of the theme to easily integrate equations in their blogs.
Possible Solution

I simply integrated the steps for integrating mathjax from the blgodown default theme. I'm very new to hugo but it works on my end, branch with mathjax integration here. Should be ready for a pull request if you feel this feature is worth exploring
Steps to Reproduce or Template with Error (for bugs)

Context

Sometimes despite our best intentions we're forced to write equations in blogs, hopefully this helps other users accomplish this using your theme
Your Environment

Hugo Version:
0.36
Browser:
Firefox
Desktop or Mobile:
Desktop
Link to your project:
https://github.com/DanOvando/hugo-future-imperfect/tree/add-mathjax

mathjax

Feel free to make the PR and we can review from there.
Thanks for your contribution!


fixed a typo in 4-2-association-and-⿻-publics.md

Branch is not yet deployed.

@florihas please join Gov4Git so we can credit you.

https://github.com/pluralitybook/plurality/issues/984 thanks!


✨ [REQUEST] tandoor: enable ingress

Which addon?
Tandoor recipes
Is your feature request related to a problem? Please describe.
The addon does not support ingress, which makes it require additional steps to make the addon accessible if you have a remote setup, e.g. nabucasa access and/or HA App.
Describe the solution you'd like
enable ingress in config.yaml plus required config for custom port
Describe alternatives you've considered
using nginx proxy manager but this is not a neat solution in my eyes as integration into HA ui fits much better in my opinion
Additional context
not applicable

Hi, there is already a thread on this topic, please use it for further comments : https://github.com/alexbelgium/hassio-addons/issues/484
Current status is that the app doesn't seem compatible


use DigitalOcean's dedicated sign up page during cloud setup (closes #2415)

This change is

Tested and appears to work like a charm:

Thank you! :+1:

Thanks for reviewing!


Multiple faces

Could you tell me if it is possible to fire an event for multiple faces detected? Also is it possible to integrate and object detection in the same stream?

I have integrated glanceTracker into an Angular 7 project and it works great.

Hi,
GlanceTracker is a very minimalistic library, so multiface detection is not implemented.
You can use https://github.com/jeeliz/jeelizFaceFilter if you need multiface detection , with a light neuron network model (several are provided with the library) . You may need to increase the animateDelay initialization parameters to use fewer resources.
Object detection is not handled by GlanceTracker, but by this similar library: https://github.com/jeeliz/jeelizAR
We provide custom training services for object detection.
Best,
Xavier

thanks very much


Remove storybook-addon-designs plugin

Description
The storybook-addon-designs plugin doesn't support Storybook 7, so it has to be removed before upgrading. We probably don't need it anyways.
Verification

[x] Your code builds clean without any errors or warnings
[x] Manual testing done (required)
[x] All tests run green

Codecov Report
Patch and project coverage have no change.

Comparison is base (d7fc6c3) 91.07% compared to head (0045043) 91.07%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #314   +/-   ##
=======================================
  Coverage   91.07%   91.07%
=======================================
  Files          41       41
  Lines         560      560
  Branches      162      162
=======================================
  Hits          510      510
  Misses         43       43
  Partials        7        7

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Incorrect citation for bits back coding

Thank you so much for citing our paper! I was very happy to see bits-back coding getting attention :)
Page 226, line 46. The bits-back coding section cites the incorrect paper. HHLMF18 is about deep Gaussian processes.
The correct citation is our paper about bits-back coding for model compression
@inproceedings{havasi2018minimal,
  title={Minimal Random Code Learning: Getting Bits Back from Compressed Model Parameters},
  author={Havasi, Marton and Peharz, Robert and Hern{\'a}ndez-Lobato, Jos{\'e} Miguel},
  booktitle={International Conference on Learning Representations},
  year={2018}
}

(and possibly our follow up paper, which applies bits-back coding to image compression)
@article{flamich2020compressing,
  title={Compressing images by encoding their latent representations with relative entropy coding},
  author={Flamich, Gergely and Havasi, Marton and Hern{\'a}ndez-Lobato, Jos{\'e} Miguel},
  journal={Advances in Neural Information Processing Systems},
  volume={33},
  pages={16131--16141},
  year={2020}
}

Thank you and kind regards,
Marton

fixed


Error Message and only one click then nothing else

https://imgur.com/a/ynYPTA8
whats the problem here?
im new into coding would be nice if u could help me out ^^

Please check the instructions again - looks like the game window was not positioned correctly and the bot couldn't take a screenshot of the game window.
The script works if your game is fullscreen in 1080p or 1440p, or if you have windowed 1080p on larger resolution desktop.


Remove old project files

As part of the restructuring, this removes no longer used directories.

Cypress has not been used for a while since we removed Applitools.
Gemini no longer works and is out of support.
Dev app is being retired and thus is removed in support of future Storybook work.
Website is being actively rebuilt and v3 will host the website until it is ready for master.

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)
[ ] If applicable, have a visual design approval

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] clarity.design website / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

I'm going to close this for now, we'll still want to remove things soon.


Register provider via policy For DeviceUpdate.

Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

/azp run java - deviceupdate - ci

API change check
API changes are not detected in this pull request.

/azp run java - deviceupdate - mgmt - tests


Triggers on range of values

On a Rating question type how can I have a trigger show visible if the value is in a range? For example, if the rating value is 3/5 or lower, I want to show a followup question.

@mellogarrett  hello, please check this example: https://jsfiddle.net/surveyjs/o5vhduwz/ Is it what you need?

@dmitrykurmanov that example is not working

It works correctly. Anyway the idea is to use visibleIf property.
Here is another example: http://surveyjs.org/examples/jquery/questiontype-panel.html

Should I be using visibleIf everywhere in place of triggers?

@mellogarrett yes. visibleIf is the better way in the most scenarios.


Did web http client

This adds the HTTP client as discussed in https://github.com/spruceid/ssi/issues/516
Note that this is a breaking change because of the semantics of the DIDWeb struct:

Currently, DIDWeb is an empty struct and can be instantiated as DIDWeb by itself (no {} needed), and appears in various places as &DIDWeb.
This change requires DIDWeb to be instantiated via methods DIDWeb::new_with_default_http_client (this is the drop-in replacement for existing functionality) or DIDWeb::new_with_http_client (if you want to specify your own HTTP client).

I altered the various call sites that were using &DIDWeb, and changed them to use an instance created with DIDWeb::new_with_default_http_client.  However, codebases downstream of ssi that use DIDWeb will need to update their uses of DIDWeb (e.g. when constructing a DIDMethods) in order to integrate this change.

 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.

Same deal here, I sent in a signed CLA Oct 6, 2021, but let me know if you need a new one for whatever reason.


Coverage metadata validation

Added validation for 'point' values and bounding 'box' values.

Can one of the admins verify this patch?

@gantian127 Can you review this?


midi_file_player.py + multiprocessing

Hi,
I'm trying to modify this example in order to make it compatible with multiprocessing.
Mainly I had to rename some global variables:
#!/usr/bin/env python3

import sys
import threading

import jack
from mido import MidiFile
from multiprocessing import Process

midi_file = '../Musica/Mozart/k265/Zwölf-Variationen.midi'

try:
    mid = iter(MidiFile(midi_file))
except Exception as e:
    sys.exit(type(e).__name__ + ' while loading MIDI: ' + str(e))

client = jack.Client('Luces')
midi_port = client.midi_outports.register('output')
midi_event = threading.Event()
midi_msg = next(mid)
midi_fs = None  # sampling rate
midi_offset = 0

@client.set_process_callback
def process(frames):
    global midi_offset
    global midi_msg
    midi_port.clear_buffer()
    while True:
        if midi_offset >= frames:
            midi_offset -= frames
            return  # We'll take care of this in the next block ...
        # Note: This may raise an exception:
        midi_port.write_midi_event(midi_offset, midi_msg.bytes())
        try:
            midi_msg = next(mid)
        except StopIteration:
            midi_event.set()
            raise jack.CallbackExit
        midi_offset += round(midi_msg.time * midi_fs)

@client.set_samplerate_callback
def samplerate(samplerate):
    global midi_fs
    midi_fs = samplerate

@client.set_shutdown_callback
def shutdown(status, reason):
    print('JACK shutdown:', reason, status)
    midi_event.set()

def run_midi():
    with client:
        print('Playing', repr(midi_file), '... press Ctrl+C to stop')
        try:
            midi_event.wait()
        except KeyboardInterrupt:
            print('\nInterrupted by user')

if __name__ == "__main__":
    processes = [Process(target=run_midi)]
    for p in processes:
        p.start()
    for p in processes:
        p.join()

Now I get this error at the end of the execution:
Playing '../Musica/Mozart/k265/Zwölf-Variationen.midi' ... press Ctrl+C to stop
Cannot read socket fd = 5 err = Success
CheckRes error
JackSocketClientChannel read fail
JACK shutdown: JACK server has been closed <jack.Status 0x21: failure, server_error>

How can I fix it?
Thank you!
Carlo

What OS are you on? (there is some specifics of spawning child processes with multiprocessing that do not work on Windows quite the way they work on Linux or macOS)
Also, I believe you want to use multiprocessing.Event instead of threading.Event in order to be consistent. This is to begin with and most probably not going to solve your problem (yet).

Hi @HaHeho,
thank you for your reply.

What OS are you on?

Debian GNU/Linux (testing).

I believe you want to use multiprocessing.Event instead of threading.Event in order to be consistent.

Yes, this makes sense.
Here is my current code:
#!/usr/bin/env python3

import sys
import jack
from mido import MidiFile
from multiprocessing import Process, Event

midi_file = '../Musica/Mozart/k265/Zwölf-Variationen.midi'

try:
    mid = iter(MidiFile(midi_file))
except Exception as e:
    sys.exit(type(e).__name__ + ' while loading MIDI: ' + str(e))

client = jack.Client('Luces')
midi_port = client.midi_outports.register('output')
midi_event = Event()
midi_msg = next(mid)
midi_fs = None  # sampling rate
midi_offset = 0

@client.set_process_callback
def process(frames):
    global midi_offset
    global midi_msg
    midi_port.clear_buffer()
    while True:
        if midi_offset >= frames:
            midi_offset -= frames
            return  # We'll take care of this in the next block ...
        # Note: This may raise an exception:
        midi_port.write_midi_event(midi_offset, midi_msg.bytes())
        try:
            midi_msg = next(mid)
        except StopIteration:
            midi_event.set()
            raise jack.CallbackExit
        midi_offset += round(midi_msg.time * midi_fs)

@client.set_samplerate_callback
def samplerate(samplerate):
    global midi_fs
    midi_fs = samplerate

@client.set_shutdown_callback
def shutdown(status, reason):
    print('JACK shutdown:', reason, status)
    midi_event.set()

def run_midi():
    with client:
        print('Playing', repr(midi_file), '... press Ctrl+C to stop')
        try:
            midi_event.wait()
        except KeyboardInterrupt:
            print('\nInterrupted by user')

if __name__ == "__main__":
#    run_midi()
    processes = [Process(target=run_midi)]
    for p in processes:
        p.start()
    for p in processes:
        p.join()

When calling run_midi() (by commenting the multiprocessing part) now I get this output at the end of the execution:
Playing '../Musica/Mozart/k265/Zwölf-Variationen.midi' ... press Ctrl+C to stop
Cannot read socket fd = -1 err = Success
Could not read result type = 7

but after that the command line is available. So, something wrong happens with multiprocessing.Event() used as replacement of threading.Event().
When running the code I posted here (by commenting the run_midi() call) I get this output at the end of the execution:
Playing '../Musica/Mozart/k265/Zwölf-Variationen.midi' ... press Ctrl+C to stop
Cannot read socket fd = 5 err = Success
CheckRes error
JackSocketClientChannel read fail
JACK shutdown: JACK server has been closed <jack.Status 0x21: failure, server_error>

and the process doesn't stop: so no differences compared to my previous attempt with multiprocessing+threading.
Thanks!

@Stemby Let's take a step back: do you really need multiprocessing?
This is really hard to get right and some libraries might not support it very well. I don't know if the jack module does or not.
If you don't really need multiprocessing, you should do yourself the favor and not use it.
If you are willing to load the whole audio file into memory (the MIDI file is already in memory), you might not even need threading!
If you really need multiprocessing, you should try to simplify your reproducible example:

remove the mido dependency. Just send some dummy MIDI messages.
remove everything else that's not needed to reproduce the problem

Then we can start debugging ...

Thanks @mgeier!

do you really need multiprocessing?

I'm not sure. I suppose it would be the must solid solution for my purpose (if it works properly). At the moment I'm testing a simpler way (threading) and postponing the migration to multiprocessing.

If you really need multiprocessing, you should try to simplify your reproducible example

OK, thank you!

do you really need multiprocessing?

Isn't that the only way to realize file playback (either audio or MIDI) as an independent component which can be e.g. invoked or remote controlled by other parts of an application?
If then multiprocessing or threading is used probably doesn't change the method or required effort of the implementation, or does it?
Since quite a while, I was thinking to create a simple reference example for (audio) file playback which utilizes multiprocessing (and/or maybe also one with threading). @mgeier do you think that would be useful, especially with regards of investigating the latter part of:

This is really hard to get right and some libraries might not support it very well. I don't know if the jack module does or not.

do you really need multiprocessing?

Isn't that the only way to realize file playback (either audio or MIDI) as an independent component which can be e.g. invoked or remote controlled by other parts of an application?

It depends on what exactly you mean by "independent component", but I don't think so.
In simple cases, neither threading nor multiprocessing are needed, because the audio callback runs in a separate thread anyway, and whatever else has to be done, can be done in the main thread.
But if multiple things have to be done concurrently in the main thread, a solution has to be found.
I guess the next best solution is to use threading, but probably async/await (with or without asyncio) could be used as well.
multiprocessing should only be used if it's really needed.

If then multiprocessing or threading is used probably doesn't change the method or required effort of the implementation, or does it?

In my experience it very much does, because multiprocessing is harder to use than it might seem at first glance.
The resulting code is certainly less intuitive, because you have to think about which parts of the program state will be duplicated in multiple processes, which often isn't very obvious.

Since quite a while, I was thinking to create a simple reference example for (audio) file playback which utilizes multiprocessing (and/or maybe also one with threading). @mgeier do you think that would be useful, especially with regards of investigating the latter part of:

This is really hard to get right and some libraries might not support it very well. I don't know if the jack module does or not.

Yes, having an example to test whether the jack module works with multiprocessing would be great!
But it would be really good if the example would somehow represent a situation where multiprocessing matters.
Of course it should be as simple as possible, but it would be good for illustration if one of the processes would do some CPU-intensive work.

@Stemby Any news on this?


Add ability to make a static build

Not sure how to handle dynamic modules though, what would they link with? The CLI? The embedding application?

On linux, and OSX (homebrew? not XCode, at any rate) you simply compile the application with -rdynamic in CFLAGS, or -export-dynamic in LDFLAGS (gcc and ld flags, respectively).
This exports all symbols, so that when dynamic libraries are loaded, they transparently bind to the application.

This is now the default. In addition, the executable is already built with -rdynamic, since CMake defaults to that.


[DRAFT] Checksum hashing algorithm changes

Impact

[ ] Bug fix (non-breaking change which fixes expected existing functionality)
[X] Enhancement/New feature (adds functionality without impacting existing logic)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Description
Reasoning from source issue: There are some companies, that believe MD5 is an agent of evil and even mentioning it in a codebase will instantly cause all security to fail. Regardless if it is only being used in a way to provide a general hash value to avoid collisions in non-cryptographically-security situations. Having a config value to indicate that SHA256 should be used in preference to MD5 would mean not having to jump through hoops.
What this PR does:

Introduces a new Global Flag , CHECKSUM_ALGORITHM, that allows to switch from default MD5 to SHA1 or SHA256
Increase the MD5 column from databasechangelog table  to support those new hash sizes
Refactorings and tests

Things to be aware of
So far, this PR is not handling migrations. So if an user wants to go from MD5 to SHAX, he first needs to run clearchecksums THEN run an update. Same logic to rollback.
Should we add a new changeCheckSums command to handle this migration smoothly? Should it be done under the hood?
Things to worry about
We are not storing the algorithm used to calculate checksum anywhere. So if someone runs liquibase using-checksumAlgorithm=SHA256, and in the next run forgets the parameter there will be a checksum error message.
Should we improve our current checksum from VERSION:CHECKSUM to VERSION:ALGORITHM:CHECKSUM , or add a new column to dbcl, or do nothing? some thoughts:

adding the algorithm we can have mixed checksum algorithms, so the user can switch from MD5 to SHAX without changing the existing values.
But this would be against the whole point of changing the checksum, right?
This would be mostly useful if the user forgot which algorithm he used, or to remove the requirement of keeping the global flag after migrating everything - but who does it?
Changing the checksum string would break backwards compatibility, and it means that we would need to bump checksums version again, impacting everyone - even people that is not migrating
Adding a new column would be less intrusive is this case, as we don't need to bump checksum version
Doing nothing is already implement, works like a charm

Additional Context

Fixes #6062
Still need to verify if there is any impact to liquibase-commercial (hopefully not)

Should we add a new changeCheckSums command to handle this migration smoothly? Should it be done under the hood?

I would prefer we not add a command for this, as it is unlikely to happen often. More to maintain and go wrong. If we do, it should be an effort separate from this PR. I also think doing it under the hood should be separate from this effort too (but don't think we should do it under the hood either).

Should we improve our current checksum from VERSION:CHECKSUM to VERSION:ALGORITHM:CHECKSUM , or add a new column to dbcl, or do nothing?

My vote would be to do nothing. Messing with the DBCL DDL is not a lot of fun, so the less we have to change, the better.

This is great @filipelautert!
I agree with @StevenMassaro here:

My vote would be to do nothing. Messing with the DBCL DDL is not a lot of fun, so the less we have to change, the better.

One question about this scenario:

if someone runs liquibase using-checksumAlgorithm=SHA256, and in the next run forgets the parameter there will be a checksum error message

If they see the error and then remember to add checksumAlgorithm=SHA256 will they be able to proceed without a problem?

If they see the error and then remember to add checksumAlgorithm=SHA256 will they be able to proceed without a problem?

@lbadam right, we do not change anything. Based on the checksum size we can try to guess and give them a hint too: as md5 is 32 chars, SHA1is 40 and SHA256 is 64 we can check the size and say something like Did you mean to use SHA1 as checksum algorithm? Try adding ......

@filipelautert I think that suggestion would be a really good addition.
I'm also good with this solution as-is to help users leverage SHA256. Once people are using it, we should get feedback to see if we need to add or change the behavior at all.


loot tracker: truncate name instead of kills

Closes #5673

Doesn't break with high killcount, even up to the limit of a long (though it's not really usable at that point anyway)

@psikoi can you review this?


should not auto fix when configured to warn

Was surprised to find that setting this to warn still results in auto fix, unfortunately that makes this library unusable when a disable directive is being used for an autogenerated file that may not always be present.

This is out of the rule's control. ESLint rules aren't aware of whether the user enables them with warn or error severity. And the autofixer can be used anytime the rule is enabled regardless of severity.


Error while setting up platform yeelight (RGB Yeelight YLDP02YL)

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.39.3
Python release (python3 --version):
3.4.2
Component/platform:
yeelight
Description of problem:
Error while setting up platform yeelight
I have added my RGB Yeelight (YLDP02YL) to my Home Assistant configuration, but it gives an error while setting up. Developer mode is enabled in the Yeelight and the firmware is up-to-date according to the app (version 1.4.1_48).
Expected:
Problem-relevant configuration.yaml entries and steps to reproduce:
light:
  - platform: yeelight
    devices:
      <IP_ADDRESS>:
        name: Huiskamer

Add config section
Restart Home Assistant from the /config page
Check the /dev-info page

Traceback (if applicable):
17-03-07 18:09:47 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform yeelight
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform
    entity_platform.add_entities, discovery_info
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/yeelight.py", line 87, in setup_platform
    add_devices(lights, True)  # true to request an update before adding.
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 305, in add_entities
    entity.update()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/yeelight.py", line 216, in update
    self._rgb = self._get_rgb_from_properties()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/light/yeelight.py", line 156, in _get_rgb_from_properties
    return colorsys.hsv_to_rgb(hue, sat, val)
  File "/usr/lib/python3.4/colorsys.py", line 146, in hsv_to_rgb
    i = int(h*6.0) # XXX assume int() truncates!
TypeError: can't multiply sequence by non-int of type 'float'

Additional info:
I am using a recent (march 6th) install of Hassbian on a Raspberry Pi 1.

Same here
17-03-09 06:17:51 ERROR (MainThread) [homeassistant.components.light] Error while setting up platform yeelight Traceback (most recent call last):   File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 151, in _async_setup_platform     entity_platform.add_entities, discovery_info   File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__     yield self  # This tells Task to wait for completion.   File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup     value = future.result()   File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result     raise self._exception   File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run     result = self.fn(*self.args, **self.kwargs)   File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/yeelight.py", line 87, in setup_platform     add_devices(lights, True)  # true to request an update before adding.   File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 305, in add_entities     entity.update()   File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/yeelight.py", line 216, in update     self._rgb = self._get_rgb_from_properties()   File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/light/yeelight.py", line 156, in _get_rgb_from_properties     return colorsys.hsv_to_rgb(hue, sat, val)   File "/usr/lib/python3.4/colorsys.py", line 146, in hsv_to_rgb     i = int(h*6.0) # XXX assume int() truncates! TypeError: can't multiply sequence by non-int of type 'float'

Same here - a workaround is to set the bulb to a specific color (like green/blue/etc) and then restart home-assistant

Can you post a log including the communications with the bulb after enabling debug logging for the component and the backend lib? The problem is that its misinterpreting the reported HSV values, and I can't find a way from the app to enable that color mode.
logger:
  logs:
     homeassistant.components.light.yeelight: debug
     yeelight: debug

The same problem,the color can't set white(the HASS can't find it)! but you can set other color,HASS can find the bulb. how to resolve this problem?????

I am still having this issue with the latest 0.50.2 release. The yeelight only get discovered when it's set to certain colour using the native app

We need more input how to activate that HSV mode like I mentioned in the comment on Mar 26. My bulbs are not using that mode so I can't really help without seeing what kind of values are being reported by the bulb.

I have this problem since i control the Lamp via Alexa and the Yeelight skill. in HA the bulb is hidden in emulated hue. Everything works, until i change the color via Alexa.
Is there a way i can help you to fix that problem?
I have to go this way until emulated_hue supports colorchanging ;(

@Blueforcer yes, we are going to need some logs. Please enable debug logging for yeelight  (the backend library) and report back with what kind of information it's receiving from the bulb when it is not working. color_modevariable received from the bulb is probably3` in those cases where this issue pops up.

Here are the logs. The colorlamp is <IP_ADDRESS> (Schreibtischlampe).
<IP_ADDRESS> is only white one.
https://pastebin.com/ve98ApH2


run choo event handlers first

Fixes #463 by letting choo handle events before any other handlers run (unless other handlers explicitly want to run before choo through .prependListener() instead of .on()). Thanks!

lgtm

v5.2.0 :tada:


HTTPS entryPoint not working

I've been trying to get this to work for the last hour with no luck. Since I'm using your official traefik docker image which is based off of the scratch image there are no ways to debug/inspect the container. I'm trying to get the HTTPS entryPoint working as well as HTTP -> HTTPS redirection.
Everything I've tried thus far has lead to only the daemon listening on port 80
See: https://gist.github.com/2894436a56c8eb92e59941499231ec06
Any ideas what I'm doing wrong?

@prologic your config seems ok. Could you give us your traefik DEBUG logs?

So despite what looks like a good config and the right options pssed it looks like it isn't loading that config at all?
$ docker-compose -f traefik.yml logs traefik
Attaching to prologic_traefik_1
traefik_1      | time="2016-08-02T06:11:34Z" level=info msg="Traefik version v1.0.1 built on 2016-07-19_03:07:34PM"
traefik_1      | time="2016-08-02T06:11:34Z" level=debug msg="Global configuration loaded {\"GraceTimeOut\":10,\"Debug\":true,\"AccessLogsFile\":\"/data/access_log\",\"TraefikLogsFile\":\"\",\"LogLevel\":\"DEBUG\",\"EntryPoints\":{\"http\":{\"Network\":\"\",\"Address\":\":80\",\"TLS\":null,\"Redirect\":null}},\"Constraints\":[],\"ACME\":null,\"DefaultEntryPoints\":[\"http\"],\"ProvidersThrottleDuration\":2000000000,\"MaxIdleConnsPerHost\":200,\"Retry\":null,\"Docker\":{\"Watch\":true,\"Filename\":\"\",\"Constraints\":[{\"Key\":\"tag\",\"MustMatch\":true,\"Regex\":\"web\"}],\"Endpoint\":\"unix:///var/run/docker.sock\",\"Domain\":\"mills.io\",\"TLS\":null},\"File\":null,\"Web\":{\"Address\":\":8080\",\"CertFile\":\"\",\"KeyFile\":\"\",\"ReadOnly\":false},\"Marathon\":null,\"Consul\":null,\"ConsulCatalog\":null,\"Etcd\":null,\"Zookeeper\":null,\"Boltdb\":null,\"Kubernetes\":null}"
traefik_1      | time="2016-08-02T06:11:34Z" level=info msg="Preparing server http &{Network: Address::80 TLS:<nil> Redirect:<nil>}"
traefik_1      | time="2016-08-02T06:11:34Z" level=info msg="Starting provider *provider.Docker {\"Watch\":true,\"Filename\":\"\",\"Constraints\":[{\"Key\":\"tag\",\"MustMatch\":true,\"Regex\":\"web\"}],\"Endpoint\":\"unix:///var/run/docker.sock\",\"Domain\":\"mills.io\",\"TLS\":null}"
traefik_1      | time="2016-08-02T06:11:34Z" level=info msg="Starting provider *main.WebProvider {\"Address\":\":8080\",\"CertFile\":\"\",\"KeyFile\":\"\",\"ReadOnly\":false}"
traefik_1      | time="2016-08-02T06:11:34Z" level=info msg="Starting server on :80"
traefik_1      | time="2016-08-02T06:11:34Z" level=debug msg="Docker connection established with docker 1.11.2 (API 1.23)"

Did you passed the "-c" flag to load the toml ?

I believe do 😀 be kind of silly if I didn't!
On Tuesday, August 9, 2016, Miguel Elias dos Santos <
<EMAIL_ADDRESS>wrote:

Did you passed the "-c" flag to load the toml ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/containous/traefik/issues/574#issuecomment-238614432,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABOv-pjv77XwGmawhK91YdFO0Yz1bFZrks5qeK6_gaJpZM4JZPHt
.

--
James Mills / prologic
E<EMAIL_ADDRESS>W: prologic.shortcircuit.net.au

@prologic the issue seems to be that traefik doesn't use your toml file. You should see a line like INFO[2016-08-09T19:49:33+02:00] Using TOML configuration file /.../traefik.toml  in your logs.

I can confirm I am starting traefik with -c (was --configfile).
It does not seem to actually read the config though and I don't see the
above aforementioned line in the logs.
James Mills / prologic
E<EMAIL_ADDRESS>W: prologic.shortcircuit.net.au
On Tue, Aug 9, 2016 at 10:50 AM, Emile Vauge<EMAIL_ADDRESS>wrote:

@prologic https://github.com/prologic the issue seems to be that
traefik doesn't use your toml file. You should see a line like
INFO[2016-08-09T19:49:33+02:00] Using TOML configuration file
/.../traefik.toml in your logs.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/containous/traefik/issues/574#issuecomment-238634177,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABOv-p58fY-dm1WQL0djRQzpX9VIXZ69ks5qeL3wgaJpZM4JZPHt
.

Okay I finally got this working by supplying all of the configuration I really wanted/needed via cli flags:
command: --accesslogsfile=/data/access.log --web --docker --docker.domain="domain.local" --docker.constraints="tag==web" --entrypoints="Name:http Address::80 Redirect.EntryPoint:https" --entryPoints="Name:https Address::443 TLS:/ssl/ssl.crt,/ssl/ssl.key" --defaultentrypoints="http,https" --debug

I'm not sure what the  issue is per se; but trying to use a configuration file as well as cli options doesn't seem to work very well.

And even trying to move all configuration into a config file didn't seem to work either.

@prologic it is working ;) We use toml configuration all the time. The issue is that your file is probably not mounted correctly by Docker (bad path?).

Nope; it was there and where it should have been :) sigh I'll just use
the cli flags!
James Mills / prologic
E<EMAIL_ADDRESS>W: prologic.shortcircuit.net.au
On Wed, Aug 10, 2016 at 12:39 AM, Emile Vauge<EMAIL_ADDRESS>wrote:

@prologic https://github.com/prologic it is working ;) We use toml
configuration all the time. The issue is that your file is probably not
mounted correctly by Docker (bad path?).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/containous/traefik/issues/574#issuecomment-238789526,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABOv-l1PQgMYPCImxd6MkNuabatWAT4mks5qeYA-gaJpZM4JZPHt
.

sigh

Hum, I was just trying to help...

you should version your traefik image in your compose file
you should try to copy the toml from the traefik container to debug this: docker cp yourTraefikContainer:/config/traefik.toml .

It's okay! Thank you for helping! I'll see if I can debug what was going on
in case it helps someone else!
James Mills / prologic
E<EMAIL_ADDRESS>W: prologic.shortcircuit.net.au
On Wed, Aug 10, 2016 at 1:17 AM, Emile Vauge<EMAIL_ADDRESS>wrote:

sigh
Hum, I was just trying to help...

you should version your traefik image in your compose file
you should try to copy the toml from the traefik container to debug
this: docker cp yourTraefikContainer:/config/traefik.toml .

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/containous/traefik/issues/574#issuecomment-238797111,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABOv-omKQ3x4ae-R2_o7PTiGY62GUXM_ks5qeYkEgaJpZM4JZPHt
.

Closing this one for now ;)


Fix delays in DS18B20 driver

There is a bug in the driver for DS18B20: instead of delaying for 750ms it waits only for 750us, which obviously causes that read temprature is not valid (it's default 85 degrees).

Ah, good catch.. On the couple of devices I have, it doesn't seem to return bad values, but I suspect it may just be returning the results from the previous read instead of the one that was just initiated.. Might explain why it seemed to be a little slow to react to changes sometimes..

ah, so sdk_os_delay_us() is how you do precise delays. I've been asking this yesterday on IRC. Will be handy for the ws2812b driver I'm building..

@foogod - are you OK to merge this then?
@MightyPork - yes, that's the current method. I keep meaning to re-implement it as it should be pretty easy to write our own one. Bear in mind that the NMI (Non-Maskable-Interrupt) means precise delays can be less precise than you hoped!

Yeah.. I had intended to do a quick double-check on my own DS18B20 setup before merging, but then got sidetracked and didn't actually follow through.. sorry about that.
Looks good to me, and does appear to make things substantially more stable.


Update OpenJ9 to use openssl 1.1.1j

OpenSSL 1.1.1j is released, pls update OpenJ9 builds to use it.
https://github.com/eclipse/openj9/issues/11980

Deployed onto the adoptopenjdk build machines and will be live in tonight's builds.(JDK8 and 16)


make fails!

nvidia@tegra-ubuntu:/media/nvidia/2c6c5cb4-7ae8-4363-870e-b924ad98185a/jtx1inst/build$ sudo i2cdump -y -r 0x14-0x26 2 0x50 b
[sudo] password for nvidia:
0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f<PHONE_NUMBER>abcdef
10:             36 39 39 2d 38 32 31 38 30 2d 31 30        699-82180-10
20: 30 30 2d 31 30 30 20                               00-100
SKU is same as @cezs 's
After doing 'cmake ..', make fails
Please help!
nvidia@tegra-ubuntu:/media/nvidia/2c6c5cb4-7ae8-4363-870e-b924ad98185a/jtx1inst/build$ make
[ 66%] Built target jtx1inst
[ 83%] Linking C executable jtx1inst_demo                                                                                libjtx1inst.so: undefined reference to `i2c_smbus_read_word_data'                                                         collect2: error: ld returned 1 exit status                                                                                CMakeFiles/jtx1inst_demo.dir/build.make:95: recipe for target 'jtx1inst_demo' failed                                      make[2]: *** [jtx1inst_demo] Error 1                                                                                CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/jtx1inst_demo.dir/all' failed                                     make[1]: *** [CMakeFiles/jtx1inst_demo.dir/all] Error 2                                                                   Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Perhaps installing userspace I2C programming library development files with sudo apt-get install libi2c-dev should help you?

@cezs thanks for the prompt reply... it worked !
however, one should do following while in /path/to/build
$ rm -rf *                  # to clear the build
$ cmake ..
$ make
and it should work ....

Ok. Thank you for the heads up, I will mark this issue as solved then.


separate style-class for question number in page

Are you requesting a feature, reporting a bug or asking a question?
feature
What is the current behavior?
i need to style the question number extra from title, currently it's not possible (or rather i simple don't found a solution, any hints are welcome). i tried with "::first-letter" but with a higher question number (over 10) i cannot style the second number.
first-page:

last-page:

What is the expected behavior?
the simplest solution i would like to see, is the page-number in a separate span/div-tag with own css-class, like:

    1.
     Question-Text

expected result:

How would you reproduce the current behavior (if this is a bug)?
see the code below
Provide the test code and the tested page URL (if applicable)
Tested page URL: https://plnkr.co/edit/ANQujBliB3HZQo69NZE4?p=preview
index.css
.sv_page_title span {
	font-size: 1.2em;
	color: #31465b;
	line-height: 120%;
}
.sv_page_title::first-letter {
	color: #fff;
	border-radius: 50%;
	background-color: #A0C0A0;
	padding: 3px 6px 3px 9px;
}

Specify your

browser: Google Chrome
browser version: v71
surveyjs platform: react v16.6.1
surveyjs version: v1.0.59

This can be achieved via custom page title rendering
Here is the sample - https://next.plnkr.co/edit/btiqZFUZ28BIm5uf?preview
Does it fit your needs?

yes thank you for help! it's little bit more complex than I imagined, but whatever, it works for me and i'm happy!

sorry, but this code doesn't work with multi-language. if i change the language, only answers will changing but the title doesn't. do i need to clear values or re-initialize some models in .onAfterRenderPage() ?

@b166er Your plunk gives the "Uncaught SyntaxError: Unexpected token <" error in console.
I've fized my original plunk - https://next.plnkr.co/edit/btiqZFUZ28BIm5uf
instead of "title" you chould use "locTitle.renderedHtml"

We've add a card in our TODO list to implement separate rendering for number/required/title for all titles

We've add a card in our TODO list to implement separate rendering for number/required/title for all titles - gor pages and questions

thats good news!
i've fixed now my code in plunker, here a sample of non-translated page-title: https://plnkr.co/edit/mVVfmODLt2bYdkpH5gTe?p=preview
you just need to click the button, show the title (in selected language), then close the popup (click to backgroud or to "X"), and click the other button, the page-title will stay the same language. still not work with "options.page.locTitle.renderedHtml"

@b166er It looks like you need to destroy previously rendered survey

We heed to put the required question mark (*) at the end of a question. See https://surveyjs.answerdesk.io/ticket/details/T1626 for more details.


spatial/r3: rework test for RotationFromQuat

Please take a look.

I test via Rotation.Rotate applied on a random point instead of Rotation.Matrix because the latter uses the same formula as RotationFromQuat and so could be considered not independent enough.
Working on the test I discovered Rotation.Matrix which does the same thing as Mat.RotationFromQuat. Shouldn't only one of them exist?

Codecov Report

Merging #1774 (c1afd5f) into master (8e43cfd) will decrease coverage by 0.16%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1774      +/-   ##
==========================================
- Coverage   73.41%   73.25%   -0.17%
==========================================
  Files         522      504      -18
  Lines       61709    61078     -631
==========================================
- Hits        45306    44743     -563
+ Misses      13849    13807      -42
+ Partials     2554     2528      -26

Impacted Files
Coverage Δ

internal/asm/c64/conj.go
0.00% <0.00%> (-100.00%)
:arrow_down:

spatial/r3/mat.go
69.90% <0.00%> (-1.95%)
:arrow_down:

graph/coloring/coloring.go
89.72% <0.00%> (-0.61%)
:arrow_down:

graph/formats/rdf/graph.go
71.23% <0.00%> (-0.46%)
:arrow_down:

internal/asm/f64/axpy.go

internal/asm/f64/ge_noasm.go

graph/iterator/lines_map_safe.go

internal/asm/f64/dot.go

...fourier/internal/fftpack/array_no_bounds_checks.go

internal/asm/f64/l2norm_noasm.go

... and 13 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 8e43cfd...c1afd5f. Read the comment docs.

My original intention was to not convert to a matrix. I forgot about Rotation. I think that the Rotation.Matrix code could return a Mat and have RotationFromQuat go away, maybe adding a Mat method that returns the type in its concrete form.

I'll have an API reduction ready soon.

Good to know, I've just been looking at it too :-)


On 10.11 with the 10.11 SDK, Safari won't allow mixed content.

I was looking to fix #156 and I stumbled upon something else while trying to compile the app. Initially, it wouldn't let me load anything, so I discovered I have to add something NSAppTransportSecurity-related in Info.plist. Now, Safari won't let me load http (or even resource://) content in a https page.

The only workaround I found is
auto mainJSURLString = [NSString stringWithFormat:@"data:application/x-javascript;base64,%@",
                        [[NSData dataWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"main" ofType:@"js"]] base64EncodedStringWithOptions:0]];

Now, that won't work in release builds where we're serving main.js from http://fbmacmessenger.rsms.me because it would mean doing a network call synchronously, which would hang the app on bad connections.
Any suggestions? What do I commit? Unless you have a HTTPS cert, I propose loading main.js from the app bundle even in release builds.

Work on building against 10.11 SDK is happening in this branch: https://github.com/rsms/fb-mac-messenger/tree/OSX10.11

Oh. Thanks. I wouldn't have noticed it.


DRILL-6356: batch sizing for union all

union all transfers the complete incoming batches as is. With this change, a single batch will be split into multiple output batches if needed, based on batch size. Added support to split and transfer as many rows that fit per memory budget i.e. as per configured output batch size.
This PR also has fix for
DRILL-6402: Repeated Value Vectors copyFrom methods are not updating the value count and writer index correctly for values vector.

@ppadma Travis failed because unused imports are now no longer allowed
/home/travis/build/apache/drill/exec/java-exec/src/main/java/org/apache/drill/exec/record/JoinBatchMemoryManager.java:20:8: Unused import - org.apache.drill.exec.ops.MetricDef.

@Ben-Zvi Boaz, can you help review this PR ?

@ppadma It looks like the Travis build took 7 minutes longer than usual and timed out and failed. Could this change have introduced a performance regression? Would it be possible to do a quick benchmark?

@ilooner I pushed the changes again to trigger travis build. It passed fine.

K thx, I guess the Travis servers had a glitch that slowed them down.


Add register and field definition for prison register

Add to discovery environment definitions for prison register.

@robmckinnon there's a few failing tests, would you mind taking a look?

@michaelabenyohai made the fixes - tests green now :)


NEW: It would be great to have dl_mesh_object support blendshapes

Need to be able to support blendshapes within the dl_mesh_object.
This data should be stored using group information (to isolate which verts are being modified)
as well, it should be accessed by names, similar to deformGroups.
This should support single/linear blends, interpolated blends (multiple shapes in sequence), potential for linking blendshapes to a PSD may be a good option in the future as well.

@noizfactory  @pranaymeher, I may want to have some convos about this to make sure I get some targets right here.

I'll check out your node Daniel

Haven't implemented it in the node yet.
More curious about how you would expect to deal with blendshape data when creating it for Bifrost.
Would you

Expect to input multiple meshes (as an array) into the dl_mesh_object compound, each with the matching "blend" group in  it?
Expect to input just the have a meshes, that ARE the "blend" group's faces, and those are put in
Would you expect a UI/Tool to help with this?
Is there some other way that I'm not thinking about?

I think a UI would be required. Because if you add any new mesh into an array, it should also create a respective input 'weight' attribute to allow manipulation of the target weight values. The UI would take care of that. I can't think of a way this can be achieved using only bifrost.

@pranaymeher  take a look at the blends-dev branch.
I’ve added basic support for blend shapes as well as a new dl_blend_deform. I’m using a new data type I created for the blend deformed, which you can create with a value node. Let me know what you think of The first pass.

Cool, I'd take a look at it.
On Fri, Sep 17, 2021, 2:53 AM Daniel Lindsey @.***>
wrote:

@pranaymeher https://github.com/pranaymeher take a look at the
blends-dev branch.
I’ve added basic support for blend shapes as well as a new
dl_blend_deform. I’m using a new data type I created for the blend
deformed, which you can create with a value node. Let me know what you
think of The first pass.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dtlindsey/bifrost-dl-core/issues/33#issuecomment-921666634,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFCOOP4OXNXZ7ZGOWTB2HXLUCMFZ3ANCNFSM5DFZVQIA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

@dtlindsey I have got the blends-dev on my local now but I'm bit clueless how to use the dl_mesh_object. Can you create an example file please? I opened your basic_deformer_setup.ma file but I guess it's not working.

You have an environment variable you have to set for the basic deformer
setup to work.
The dl_mesh_object should have docs on it. But I’ll make an example file as
well.
On Sat, Sep 18, 2021 at 12:09 PM Pranay Meher @.***>
wrote:

@dtlindsey https://github.com/dtlindsey I have got the blends-dev on my
local now but I'm bit clueless how to use the dl_mesh_object. Can you
create an example file please? I opened your basic_deformer_setup.ma file
but I guess it's not working.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dtlindsey/bifrost-dl-core/issues/33#issuecomment-922168954,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXTVXZZ7KJMAJQ3EL7EEZDUCP7GLANCNFSM5DFZVQIA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--
Thanks,
Daniel Lindsey

@pranaymeher just added an example file.  @noizfactory  it'd be great to get your opinion on this as well.  You've been using Bifrost for longer than I have.  How does this feel to use?


Package not found in pip

I'd like to try the api but pip wont install them. I cloned the repo but it would be nice to have the package installed by pip

Please try to install with pip install airbnb. I've updated the documentation.


layout.bottomSpace no longer accessible

Hi, why is the following property no longer accessible?
alertView.layout.bottomSpace = UIScreen.main.bounds.height
alertView.layout.topSpace = UIScreen.main.bounds.height

so I could have it displayed very well in full screen above everything.
Thanks

Now it renamed to margins. You can check more info here.

Now it renamed to margins. You can check more info here.

I get this error:

Thanks, you are right. Problem was with protect level for layout object. In last version it was fixed.


Describe AssetTargetFallback

We were discussing PackageTargetFallback (see: https://github.com/dotnet/cli/issues/3439#issuecomment-319702662), and there doesn't seem to be an issue to cover updating the Wiki here or the OPS topic here to surface AssetTargetFallback. Please close this if the topic updates are already handled.

Dupe of #511


Apihub improvements

Stability bug fixes

TBD: bricksFabrick/BrickStorage strategy - the autosave feature may potentially suffer from a race condition


Log start and end time attrs for s3 uploads

One of the short comings of our current log searching is that we don't have defined start and end timestamps for when the log was written to. Because logrotate is run, we know when the log file was done being written to, and when it got uploaded, but not when it started being written to.
This PR uses linux extended custom file attributes to keep track of start and end times for log files when using log rotate. an attribute is set when a log file is initially being written to (at least for the default service log). When a log is rotated, that start time attribute is transferred to the rotated file (along with setting the end time), and the start time on the original file is reset to the current time.
This is still a POC, but worked pretty well in local testing.

The file attributes are working and making it to the s3uploader now. The uploader is adding the metadata to the S3Object before upload. For some reason, I am still not seeing any metadata being return, either in the endpoint, or when inspecting headers downloading manually. Still investigating here.

This feature is turned off by default. Going to merge so there aren't so many horrid conflicts working on #1391


Time for new release?

Hi,
We had 0.0.4 almost one year ago, do we have plan to push new release recently?
I am packaging the package with 0.0.4, but it is hard to run test during the build. Now we have switched to pyproject build end, so I think it is friendly to packager maybe.

but it is hard to run test during the build.

No. It is easy. just not use pytest like other Python project.

Hi @yuzibo. Thanks for opening an issue! I was indeed thinking we needed a release, as there have been a lot of changes recently, some of which should make packaging and distribution easier.
@gabalafou, I would like to get the only other item in a new release is https://github.com/Quansight-Labs/accessible-pygments/issues/38 (changing background colour). Can we do this for a release late this week/early next week?

@yuzibo I just made a new release for the package https://pypi.org/project/accessible-pygments/
let me know if you encounter any issues

thanks!


So many models

Hey @ZhengPeng7  I have been busy not been able to keep up with your progress
I see many models on the drive ( stuff )
which is the best ones these days ?
Are you training even better one ?
Any comparison with closed source model now

Hi, @rishabh063 , you can see the GitHub release and my Hugging Face models  for those for practical use. Practically, you can directly use the one for general use, which is always maintained and updated on https://huggingface.co/ZhengPeng7/BiRefNet.

I didn't have time to do the comparison with closed models, but some others did it. However, there are only cases not a comprehensive one.

Hi,Peng,I would like to ask among the many versions, which one is better at segmenting real pictures with more obvious subjects. I look forward to your reply.

BiRefNet-general-epoch_244.pth should be the best one for you.
And, of course, you can go to HF demo to have a try online with different weights on some of your samples.

Hi,Peng,I would like to ask among the many versions, which one is better at segmenting real pictures with more obvious subjects. I look forward to your reply.

Hi，I used your excellent model（BiRefNet-general-epoch_244.pth），First of all, I think this model is very excellent，And believe that the future will be even better.
and found that there are some segmentation problems in actual pictures,

Mirror problem

Transparency problem

Hair problem (this is difficult)

4、At the same time, sometimes I feel like there are white edges（Appears mostly on white background）

Hi，Peng，I have tried many times and found that when the model is mounted on a plate, it is easy to miss the points on the plate. This phenomenon is very high. I don’t know if it is a problem.

Hi, cyy, that's caused by that the subject in the image seems to be the fruit/food, instead of the plate, which is recognized as the background. Since it's automatic subject extraction, this phenomenon is hard to avoid (it's correct).
Even so, I think you may be able to obtain the results you want through some tricks. For example, you can try with the box-guided segmentation colab -- add some background surroundings to make the plate and things on it look like a whole, then give a box surround the plate.

I tried it by myself, it's currently impossible to include things that are not subject. It may need prompts (points/box) as what's used in SAM.

Hi，Peng，I have tried many times and found that when the model is mounted on a plate, it is easy to miss the points on the plate. This phenomenon is very high. I don’t know if it is a problem.

Hi, cyy, I surprisingly found that model trained on DIS5K only seems better on these cases (that's caused by how the labels are made in the datasets), you can directly use this model: https://huggingface.co/ZhengPeng7/BiRefNet-DIS5K-TR_TEs. Here are the results of your cases above (I downloaded your screenshot and did a crop).

wow,Awesome, I will try the model you recommended. @ZhengPeng7

你俩为啥不直接中文说啊。。。

：https ://huggingface.co/ZhengPeng7/BiRefNet-DIS5K-TR_TEs

这个有个.pth的吗？好像没有看到

Hi，Peng，我试了很多次发现模型装在板上的时候，很容易漏掉板上的点，这个现象出现得非常多，不知道是不是有问题。

你这些问题找到新的模型了吗？

Github repo release和google drive 上都有的呀, 全全的.


Update selinux pkg and allow category range to be set in config

This allows an admin to set the upper bounds on the category range for selinux
labels.  This can be useful when handling allocation of PVs or other volume
types that need to be shared with selinux enabled on the hosts and volumes.
Signed-off-by: Michael Crosby<EMAIL_ADDRESS>

Windows is currently failing on other PRs fetching dependencies so this is unrelated to this change.  Verified it builds locally:
 GOOS=windows make
+ _output/containerd.exe
go build -o _output/containerd.exe \
        -tags '' \
        -ldflags '-X github.com/containerd/cri/vendor/github.com/containerd/containerd/version.Version=cde78726-TEST' \
        -gcflags '' \
        github.com/containerd/cri/cmd/containerd
+ binaries

will need to rebase after #1538 merges

/test pull-cri-containerd-node-e2e

@mikebrow @dmcgowan updated and rebased


E/MeshData: Wrong normal index: -1

My model give a error code
E/MeshData: Wrong normal index: -1

hi
this is my model, I load this file but load error
22.zip

1、贴片没有加载处理
2、动画加载也有问题

Hi
I think I fixed it.  You see it ok now ?
I think she is cute :1st_place_medal:

thank you very much!!!
but I have another problem，
when I load this model  with texture ，it doesn't work
what can i do next？

hi @houtian80
please check the texture has relative path in the xml
you have cowboy.dae as an example.
regards

hi @houtian80
please check the texture has relative path in the xml
you have cowboy.dae as an example.
regards

I tried, and it still doesn't work

hi @houtian80
please check the texture has relative path in the xml
you have cowboy.dae as an example.
regards

Uploading IMG_4208.MOV.zip…

hi @houtian80
please check the texture has relative path in the xml
you have cowboy.dae as an example.
regards

IMG_4208.MOV.zip


Check CSS syntax at compile time

It would be a neat feature to be informed of Syntax errors in the CSS at compile time.

Yea, I think compile time verification is the feature which would get me on board with using this project. Great work so far. Stoked to see this project is still making headway.

Howdy, here's some strawman syntax inspired by my own brain and rsx
use css_in_rust::{Px, Color, css};

let color: Color = Color::Keyword::Red.into();
let width: Px = 100.into();

let style = css! {
    // interpolate variables in rule assignment
    background-color: {color};

    .nested {
        background-color: blue;
        // not necessary, but slightly more ergonomic
        // shorthand for when variable + rule names the same
        {width}
    }
};

original (expand)

let style = match css_in_rust::Style::create(
    "Component", // The class prefix
    // The actual css
    r#"
    background-color: red;

    .nested {
        background-color: blue;
        width: 100px
    }"#,
) {
    Ok(style) => style,
    Err(error) => {
        panic!("An error occured while creating the style: {}", error);
    }
};

I'm probably available to help implement this as well!


WebP and local asset support?

Hi,
Will this have WebP support in the future?
Also is it possible to load local image assets using the require('..'), it doesn't seem to be supported at present.
Thanks

hey @jackholden

did you try it with WebP? I have to admit that I did not test it with WebP, but it seems Nuke and Coil
already support WebP.

https://github.com/kean/Nuke?tab=readme-ov-file
https://coil-kt.github.io/coil/getting_started/#supported-image-formats

Regarding to local image, yes. I will add it later.

@jackholden
seems it works with WebP. https://placehold.co/200x200/black/white/webp?text=turbo image

@duguyihou Ah ok thanks. I didn't actually try as I saw a Nuke WebP plugin was needed. Also I just realised Nuke doesn't support Animated WebP which is a bit of a bummer.
Thanks for your quick reply. The ability to use the package with local files would be a brilliant enhancement!

@jackholden I create a new release. You can give it a try with local asset.
https://github.com/user-attachments/assets/95b7a5f6-f334-4098-91ab-6e86847c1ba9
https://github.com/user-attachments/assets/f93c0c1f-46f5-44d6-81e6-206e23fbbbaa


Publish i18n-lookup code as a separate module

We want to re-use the same functionality elsewhere, so split this code into it's own module.
Code for that module is at https://github.com/UKHomeOffice/i18n-lookup

Looks good.
I'm also using this in my project now, too.


Return Route/Service hostnames from Launch

The frontend needs to know the URLs of the routes (for the services) that have been created.
Given the fact that creating resources is a dynamic process it might be a good option to have the websocket send this information once it is available.

@edewit @quintesse I modified the backend to send the routes during the OPENSHIFT_PIPELINE status message. It should return a routes parameter where the key is the route name and the value the exposed URL:
Here is an example returned from the WS when you deploy a Node.js Health Check booster:
{
   "id":"9b05e4af-73d7-48a1-986a-0ac15e39fdbc",
   "data":{
      "routes":{
         "nodejs-health-check":"http://nodejs-health-check-fooabc.devtools-dev.ext.devshift.net"
      }
   },
   "statusMessage":"OPENSHIFT_PIPELINE"
}


[Docs]: translation.md page

what's wrong in the documentation?
only the Tamil language is written in Tamil what about the other languages !
Add screenshots

Code of Conduct

[X] I agree to follow this project's Code of Conduct

@priyankarpal can you suggest to me if should  leave it or should I make changes

hey @akshaya-hub we need to improve the translation guide page do you want to work on this
issue?
What do we need to do?

fix all typos, mistakes, and grammar
add a proper translation guide
mention all contribution docs for translation
update all translated languages links
etc

@priyankarpal as i mentioned the above issue can you tell me should i make changes

yes we need to change
assigned to you

@priyankarpal sure!


Typing in Obsidian is extremely slow with 2.14.2

Describe the bug
Upgrading to 2.14.2 makes typing in Obsidian unbearably slow. It takes a good five or six seconds after typing before anything shows up. Other Obsidian functionality seems fine.
To Reproduce
Steps to reproduce the behavior:

Upgrade to 2.14.2

Expected behavior
I expect to be able to type in Obsidian.
Additional context

This is happening on two separate machines.
This happens with no other plugins installed.
Disabling Iconize solves the issue.
Both machines are Arch Linux.
Both machines are using X with the proprietary NVIDIA drivers.
One machine is running GNOME, the other is running herbstluftwm.
Both are running Obsidian 1.6.7 with the installed base of 1.6.5.
Downgrading to 2.14.1 resolves the issue.

EDIT
Apparently, I hadn't updated my Windows machine's version of Iconize. It's having the same performance issues.

Same on macOS Sonoma, M1 Pro.

I'm experiencing the same issue:

Obsidian version: v1.6.7
Installer version: v1.6.7
Sonoma 14.6
M1 Studio with 32GB

cc @FlorianWoelki

Please also see #534

I think this is related to #602, which was fixed recently.

This is still an issue in 2.14.5. Is the fix in that release?

Here is a recording of the issue with 2.14.5.
It does seem to be better. This one only has the two icons in it, but it gets worse with more (and better with less).
It's still fairly unusable though, IMO.


fix: update last build timestamp on mock function

Issue #, if available:
#4319
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Per offline discussion, we need to store a separate timestamp for invoke builds vs push builds because they are different for some runtimes. Closing this PR for now and will make another one


Bump engine versions and add pool instance initializer

This PR:

bumps versions of Wasmtime (v1.0.0) and wazero (v1.0.0-pre.1)
adds initializer callback for instances of a pool (example below).

pool, err := wapc.NewPool(ctx, module, 10, func(instance wapc.Instance) error {
	// Do something to initialize this instance before use.
	return nil
})

/cc: @codefromthecrypt

LGTM

neat!


Update to latest package versions and dependencies

Use Vue 3 and the latest version of Quasar?

Quasar is using Vue 2.
My understanding is that Quasar 2 will use Vue 3, but at the moment this is not compatible.

Quasar is using Vue 2.
My understanding is that Quasar 2 will use Vue 3, but at the moment this is not compatible.

Thanks for the clarification. Then, there is not much to do here. It turns out that I incidentally updated the dependencies when I refreshed the yarn.lock file while extracting the expanded patchiest for @reststate.


Typescript fix

Contributing to Twilio

All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.

[x] I acknowledge that all my contributions will be made under the project's license.

Pull Request Details
JIRA link(s):

AHOYAPPS-452

Description
Some users were seeing typescript errors while building the app (which would stop the build). The errors would occur when version 3.8.3 of Typescript is used, but not when version 3.7.5 of Typescript is used.
These users installed dependencies with yarn instead of npm. Yarn would ignore package-lock.json and it would install the newest major version of Typescript (3.8.3) as described by package.json instead of the version of TS that is specified in package-lock.json (3.7.5).
This PR updates TS to version 3.8.3 and fixes the errors. Now the app can successfully be built even when users install dependencies with yarn.
Burndown
Before review

[ ] Updated CHANGELOG.md if necessary
[ ] Added unit tests if necessary
[ ] Updated affected documentation
[ ] Verified locally with npm test
[ ] Manually sanity tested running locally
[ ] Included screenshot as PR comment (if needed)
[ ] Ready for review

Before merge

[ ] Got one or more +1s
[ ] Re-tested if necessary

The changes look good. Should we also update the documentation/README around here and mention something related to this? Something like if you use a package manager such as yarn, it might not pick up versions specified in package-lock.json which could cause issues.
I can see this happening in the future if we don't warn the customers.

Sure! What do you think about this:
If you want to use yarn to install dependencies, first run the yarn import command. This will ensure that yarn installs the package versions that are specified in package-lock.json.

Sure! What do you think about this:
If you want to use yarn to install dependencies, first run the yarn import command. This will ensure that yarn installs the package versions that are specified in package-lock.json.

Sounds good to me 👍


Rebuild for additional architectures

MNT: Re-rendered with conda-build 3.21.8, conda-smithy 3.19.0, and conda-forge-pinning 2<IP_ADDRESS>.52.04

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Add pylint

Short description
This PR adds pylint to our project. I copied the settings we have for Integreat. I noticed that we have a lot more settings disabled for Lunes and therefore kept the more stricter settings we have in Integreat. Please feel free to comment
Proposed changes

Add settings to pyproject.toml
Add Circle CI job
Add tool to run pylint.sh

Side effects

I hope none

Resolved issues

Fixes: #8

Thank you, and thank you for all the support :pray:


It does not work if source path contain space?

I'm having this problem as well. I added backslashes to try to escape the spaces, with no luck


Pin base Dockerfile image to 3.12

Changes
Stop using the latest version of alpine in Pipeline test/release pipelines. This prevents a hermetic build environment and is a potential source of instability.
Hopefully fixes https://github.com/tektoncd/pipeline/issues/2726.
3.12 chosen as the most recent stable version from https://wiki.alpinelinux.org/wiki/Alpine_Linux:Releases

Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[ ] Includes tests (if functionality changed/added)
[ ] Includes docs (if user facing)
[ ] Commit messages follow commit message best practices

See the contribution guide for more details.
Double check this list of stuff that's easy to miss:

If you are adding a new binary/image to the cmd dir, please update
the release Task to build and release this image.

Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.

Not sure what the best label for this is, so I guess
/kind bug


Fix for Deprecated Authorisation Method #2271

Replace Deprecated Authorisation Method #2271

 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.

Codecov Report

Merging #2272 into develop will decrease coverage by 0.06%.
The diff coverage is 59.33%.

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


Update event.json

Added new valentine event's catchable pokemons

didn't get a notif for this so already pushed it myself


prepare_rotary_positional_embeddings

Feature request  / 功能建议
train video with different resolution
Motivation / 动机
train video with different resolution
Your contribution / 您的贡献
Hi,
Thank you for your nice work again. I am confuse about the prepare_rotary_positional_embeddings function, https://github.com/THUDM/CogVideo/blob/da5fc1c1cab3b1451c866b1f9111eeec9d0410e4/finetune/train_cogvideox_lora.py#L822, in here you use base_height: int = 480, base_width: int = 720 for your fix resolution training. Could you explain the meaning of the base_height and base_width? If i want to train a video with height=720 and width=480, what base_height and base_width should be set in here? And if I want to train the video with random resolution, what base_height and base_width should be set in here?

Thank you

same problem

same problem


[Mixer-thread] [withdraw] Adding leaves fails

https://github.com/webb-tools/webb.js/blob/063624a5cec34b3387fdc431a8c540346902085d/packages/sdk-mixer/src/wasm-thread.ts#L186
mixer.add_leaves(mynote.tokenSymbol, mynote.id, leaves, root); fails with error 11
Args
tokensymbol
EGD
noteid
0

//leaves
 [Uint8Array(32), Uint8Array(32)]
 0: Uint8Array(32) [97, 184, 145, 124, 13, 37, 73, 198, 243, 165, 215, 5, 186, 179, 3, 99, 13, 63, 22, 8, 177, 149, 213, 196, 144, 174, 13, 217, 226, 208, 215, 8]
 1: Uint8Array(32) [228, 43, 140, 131, 118, 92, 31, 77, 61, 170, 98, 233, 179, 19, 29, 96, 223, 93, 219, 95, 1, 231, 68, 170, 5, 226, 81, 162, 27, 116, 235, 13]

// root
 Uint8Array(32) [131, 197, 12, 51, 79, 97, 146, 132, 17, 170, 106, 99, 82, 132, 57, 132, 131, 234, 248, 153, 18, 70, 112, 161, 67, 47, 104, 53, 187, 43, 30, 13]

Thanks, I will try to solve some issues in this first: https://github.com/webb-tools/anon/blob/master/wasm-utils/src/lib.rs#L218
And I will use the provided params as a quick test!


Errors in Bazel header includes and Clang symbol after 20.04 -> 22.04

Description
ICU's CI checks have been passing without problems for a long time, on Ubuntu 20.04. The last successful such run was a week ago:
https://github.com/unicode-org/icu/actions/runs/3617159333
Some time in the last week, our project was (apparently) migrated over to Ubuntu 22.04, and subsequent PRs have had tests failing. Ex:
https://github.com/unicode-org/icu/actions/runs/3688629611
If we pin the failing jobs back to using Ubuntu 20.04, they pass again:
https://github.com/unicode-org/icu/actions/runs/3691279527
@markusicu @gnrunge
Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[X] Ubuntu 22.04
[ ] macOS 11
[ ] macOS 12
[ ] Windows Server 2019
[ ] Windows Server 2022

Image version and build link
Image version: 20221204.2
https://github.com/unicode-org/icu/pull/2251/checks
Image version: 20221212.1
https://github.com/unicode-org/icu/actions/runs/3688629611
Is it regression?
20221125.1 https://github.com/unicode-org/icu/actions/runs/3617159333
Expected behavior
All of the CI checks should pass, including:

clang-release-build-and-test
run-with-stubdata
unicode-update-tools

Actual behavior

clang-release-build-and-test appears to cause the dependency checker script (which observes compiled symbols) to fail
run-with-stubdata` has a segfault
unicode-update-tools runs a Bazel build that claims header files are not declared on a build target

Repro steps

If you previously ran the ICU CI checks on Ubuntu 20.04, they passed
If you run ICU CI checks on Ubuntu 22.04, these tests fail (and their failure is not 100% predictable)

Hi @echeran we will take a look, can you provide minimal repro steps?

Hello! @echeran we can not guarantee that your code will work on ubuntu-22.04 at all due to version differences. From the log you provided we have not found faulty places we could fix on our side, that's why I am going to close the issue. Feel free to reach us out again if you have questions left.


[BUG]: Connection being lost/timed out on MySQL

What version of drizzle-orm are you using?
0.29.1
What version of drizzle-kit are you using?
0.20.6
Describe the Bug
I have a simple script running on my server along the database, where I got this error out of a sudden
error: Can't add new command when connection is in closed state

the database connection is as simple as this
const url =
	Bun.env.NODE_ENV === "development"
		? "mysql://root:password123@localhost:3306/mydb"
		: Bun.env.DATABASE_URL ?? bail("env DATABASE_URL does not exist");
const db = drizzle(await mysql.createConnection(url));
export default db;

and all the database operations happen on a worker thread
Expected behavior
No response
Environment & setup
2 Core VPS
Mysql version: 8.0.35
JS runtime: bun
localhost connection

I had the same issue until I changed over to the createPool() method for my SvelteKit project.
import { drizzle } from 'drizzle-orm/mysql2';
import mysql from 'mysql2/promise';

import * as schema from '$lib/server/db/schema';

import { env } from '$env/dynamic/private';

const connection = await mysql.createPool({
	uri: env.DATABASE_URL,
	connectionLimit: 10
});

const db = drizzle(connection, { schema, mode: 'default' });

export { db, connection };

thanks @maietta for the tip! I'll be closing this issue and reopening if it happens again.


tox: libtoxcore and assorted tox client updates

Motivation for this change
libtoxcore made breaking changes in 0.2 so we now carry both 0.1 and 0.2 for use by the various clients.
Cc @ehmry  @viric @jgeerds @akaWolf @domenkozar @cleverca22 @obadz
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build toxvpn utox toxic qtox ratox libtoxcore

evaluation error should be fixed.

Success on x86_64-linux (full log)
Attempted: toxvpn, toxic, qtox, ratox, libtoxcore
The following builds were skipped because they don't evaluate on x86_64-linux: utox
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/rbip69b29rd1lzn2r5g0kc99fp4win30-qtox-1.15.0/bin
patching script interpreter paths in /nix/store/rbip69b29rd1lzn2r5g0kc99fp4win30-qtox-1.15.0
checking for references to /build in /nix/store/rbip69b29rd1lzn2r5g0kc99fp4win30-qtox-1.15.0...
postPatchMkspecs
postPatchMkspecs
/nix/store/89mnad7x7bzcl5lbhigrf27bx80zmcig-toxvpn-2018-04-17
/nix/store/8qb3ghgj9dhbf85vikpd20xwrqwc7dxd-toxic-0.8.2
/nix/store/rbip69b29rd1lzn2r5g0kc99fp4win30-qtox-1.15.0
/nix/store/f5faiqzd2bxnakgyd1nqicyci433jfn4-ratox-0.4.20180303
/nix/store/xx0cddp4v9cs3c5yzd8vnj79dmnr445d-libtoxcore-0.2.2

Failure on x86_64-darwin (full log)
Attempted: toxvpn, qtox, libtoxcore
The following builds were skipped because they don't evaluate on x86_64-darwin: utox, toxic, ratox
Partial log (click to expand)
/tmp/nix-build-qtox-1.15.0.drv-0/source/src/platform/camera/avfoundation.mm:24:9: fatal error: 'AVFoundation/AVFoundation.h' file not found
#import <AVFoundation/AVFoundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/qtox_static.dir/build.make:3571: CMakeFiles/qtox_static.dir/src/platform/camera/avfoundation.mm.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:106: CMakeFiles/qtox_static.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
builder for '/nix/store/vp56fx6p4dxrcxl97lm0s7m6p380s1lm-qtox-1.15.0.drv' failed with exit code 2
error: build of '/nix/store/vp56fx6p4dxrcxl97lm0s7m6p380s1lm-qtox-1.15.0.drv', '/nix/store/wscil2jz4glgf63icfcr1235lmscnlvv-toxvpn-2018-04-17.drv' failed

Success on aarch64-linux (full log)
Attempted: toxvpn, toxic, qtox, ratox, libtoxcore
The following builds were skipped because they don't evaluate on aarch64-linux: utox
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/nf4hgjf1qd14xd9yrl3klpvfckl2s1lk-qtox-1.15.0/bin
patching script interpreter paths in /nix/store/nf4hgjf1qd14xd9yrl3klpvfckl2s1lk-qtox-1.15.0
checking for references to /build in /nix/store/nf4hgjf1qd14xd9yrl3klpvfckl2s1lk-qtox-1.15.0...
postPatchMkspecs
postPatchMkspecs
/nix/store/ss0va26k49g3mzfxvxyz3jjpy7zylj5w-toxvpn-2018-04-17
/nix/store/xsl1v7xsls47mc07lsbn6jv2card9rvw-toxic-0.8.2
/nix/store/nf4hgjf1qd14xd9yrl3klpvfckl2s1lk-qtox-1.15.0
/nix/store/xp1ridl7my6sv28pgb1gshdwm493gipy-ratox-0.4.20180303
/nix/store/n1qn9i9qy8qd10fvq06505l2885cdzvn-libtoxcore-0.2.2

evaluation error should be fixed.

Indeed @Mic92, I just don't have a mac so it's going to be trial and error from here.

Evaluation errors should not be platform dependent.

Success on x86_64-linux (full log)
Attempted: libtoxcore, qtox, ratox, toxic, toxvpn, utox
Partial log (click to expand)
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/n52xdnzx6wqlygh6fxjsrl47qlkqix4q-utox-0.17.0/bin
patching script interpreter paths in /nix/store/n52xdnzx6wqlygh6fxjsrl47qlkqix4q-utox-0.17.0
checking for references to /build in /nix/store/n52xdnzx6wqlygh6fxjsrl47qlkqix4q-utox-0.17.0...
/nix/store/xx0cddp4v9cs3c5yzd8vnj79dmnr445d-libtoxcore-0.2.2
/nix/store/rbip69b29rd1lzn2r5g0kc99fp4win30-qtox-1.15.0
/nix/store/f5faiqzd2bxnakgyd1nqicyci433jfn4-ratox-0.4.20180303
/nix/store/8qb3ghgj9dhbf85vikpd20xwrqwc7dxd-toxic-0.8.2
/nix/store/89mnad7x7bzcl5lbhigrf27bx80zmcig-toxvpn-2018-04-17
/nix/store/n52xdnzx6wqlygh6fxjsrl47qlkqix4q-utox-0.17.0

Success on aarch64-linux (full log)
Attempted: libtoxcore, qtox, ratox, toxic, toxvpn, utox
Partial log (click to expand)
strip is /nix/store/gp7fylxwn18b7pl2c18ks89hsiaxyfvf-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/v25i5inwkkw9klrjrx4x1qfcj2g9dj5a-toxvpn-2018-04-17/bin
patching script interpreter paths in /nix/store/v25i5inwkkw9klrjrx4x1qfcj2g9dj5a-toxvpn-2018-04-17
checking for references to /build in /nix/store/v25i5inwkkw9klrjrx4x1qfcj2g9dj5a-toxvpn-2018-04-17...
/nix/store/lir22fbzq5833chnrlkn39n40yqadf0z-libtoxcore-0.2.2
/nix/store/pil7ccdd9j0r33hv9zn7is5wghy49lbs-qtox-1.15.0
/nix/store/vglywllbd422g3fca8q09snfgk69iww8-ratox-0.4.20180303
/nix/store/0w963mxwckgc42m69k26farnd7n72qdb-toxic-0.8.2
/nix/store/v25i5inwkkw9klrjrx4x1qfcj2g9dj5a-toxvpn-2018-04-17
/nix/store/d7byjixlblkpgcrrq0zcizn7s4g42w7g-utox-0.17.0


Noisy neurons

I will include functionality to add noise to the neuronal firing rates. Currently, if you want noise, you best option is the add it post-hoc to the data obtained from RatInABox.

The ability add noise to neurons has now been added. For example:
Env = Environment()
Ag = Agent(Env)
PCs = PlaceCells(Ag)
PCs_noisy = PlaceCells(Ag,params={
                                'noise_std':0.1, #<-- amount of noise in Hz
                                })
while Ag.t < 20:
    Ag.update()
    PCs.update()
    PCs_noisy.update()
PCs.plot_rate_timeseries()
PCs_noisy.plot_rate_timeseries()

When initialising a neuron class, the parameters params["noise_std"], params["noise_coherence_timescale"] controls how much noise, and the noise coherence timescale is added. Specifically, a randomly evolving noise vector is continually updated according to an Ornstein Uhlenbeck process with standard deviation params["noise_std"], mean of zero, and coherence timescale of params["noise_coherence_timescale"].
Note if the coherence timescale is set very short (the default is currently 0.5s), say, comparable to dt then you will effectively be adding independent noise samples at each timestep. However is the timescale is very large the noise will evolve more slowly.
For example
PCs_slownoise = PlaceCells(Ag,params={'noise_std':0.1,
                                      'noise_coherence_time':5}) #<-- timescale of noise (5s)
PCs_fastnoise = PlaceCells(Ag,params={'noise_std':0.1,
                                      'noise_coherence_time':0.1}) #<-- timescale of noise (0.1s)


File download on Android doesn't understand "filename*=UTF-8''" nor basic auth

Bug description:
Downloading a file in Android where the filename is defined with this alternate format Content-Disposition: attachment; filename*=UTF-8''... makes the filename being ignored, using the URL pathname instead. Additionally, basic auth is ignored.
To Reproduce:

Expected behavior:
Filename and basic auth should be properly handled, as it is in the standalone browser.
Screenshots/Videos:

Environment:

OS: Android
OS version:
react-native version:
react-native-webview version:

Just ran into this bug, still an issue

Same for us :-/ still an issue

I made a fix in #2767 which has been included in version 11.25.1. You may try it out and leave feedbacks if the problem remains.


Install kubeless from UI

I'm wondering if it could be a good idea to allow the installation of kubeless/kubeless-controller directly from the UI
Just opening the discussion, to see what it involves 🙌

it is a bit of a chicken and egg issue.
I just committed a manifest to deploy the UI in the kubeless repo.
https://github.com/kubeless/kubeless/pull/154
But yes, we could start the UI npm start and have a button that checks it there is a reachable controller, if not, then propose to launch it (which would just be the creation of a manifest).

I am going to close this. we are going to have a chart to deploy Kubeless, and it will include the UI.


Typo

http://take.ms/eu9XK

Thanks! Fixed here and will be pushed out to the site, probably later today.


fix: supply offsets for osmo token

What is the purpose of the change
Fix the supply offset issues
cosmos-sdk PR => https://github.com/osmosis-labs/cosmos-sdk/pull/629
How to test
before and after in-place-testnet
osmosisd q bank total-supply-of uosmo --output json | jq
beware of dragons:

in-place-testnet adds tokens to the total supply so it's best to omit all the added tokens from the in-place-testnet code before testing this PR

This should be good to merge right? @PaddyMc


innerHTML / Binding not working

Hi guys,
I have an element like the one below
innerHTML.bind="filler(col, item)"
I need to be able to bind the raw HTML returned attributes. In my example I need to bind value attr. Example
	this.renders["check"] = function(col, item){
		return '<input type="input" value.bind="${hola}"/>';
	};

How can I accomplish that?
Thanks.

Try innerhtml.bind instead of innerHTML.bind

It did not work.
	this.renders["check"] = function(col, item){
		return '<input type="input" value.bind="${200 + 1}"/>';
	};

I changed to that simple example. It did not work.

The innerhtml binding doesn't compile templates- docs here: http://aurelia.io/docs.html#/aurelia/framework/1.0.0-beta.1.1.1/doc/article/cheat-sheet
More info on using the view-compiler here:
https://github.com/aurelia/templating/issues/35
In general you want to avoid using aurelia this way- there are often better approaches using html templating than construction your markup from strings.

This might be a separate issue. If so, let me know.
I'm using the innerHTML.bind on an svg for a custom element. This works in all browsers by IE.
<template>
    <svg innerHTML.bind="svgParts"></svg>
</template>

svgParts is a string that represents the insides of an svg. Works on everything by IE.

@AStoker please do open a separate issue- additional details about the version(s) of IE and a running example would be appreciated!

@AStoker I tried to use Aurelia sintax inside an Aurelia loop context and it was not working. Is that your case? I had to change my approach to get what I wanted. Guys here says it doesnt compile Aurelia sintax inside strings. I will looking forward to your running example. Thanks!

@hmarcelodn, no, that's not my case. I'll open a new story with an example. Edge and IE both have horrible support for SVG stuff, and my guess is the way they're loading up the html content just isn't supported by the browser.