The --enable-vm-service= flag doesn't work with the "dart language-server" command

This might be expected, but I wanted to check before changing anything in VS Code...
Sometimes to track down analysis server issues, I ask users to enable the VM Service for the analysis server to open Observatory or connect DevTools. In Dart v2.15.0 we switched from using dart sdk-path/bin/snapshots/analysis_server.dart.snapshot to dart language-server and that seems to have prevented this from working.
Eg,:
dart --enable-vm-service=8123 sdk-path/bin/snapshots/analysis_server.dart.snapshot --lsp

will output:
Observatory listening on http://<IP_ADDRESS>:8123/dJ_UTkyYsZg=/

However,:
dart --enable-vm-service=8123 language-server

will not (and nothing will be bound to port 8123).
I don't know if this is a bug or there's something special about how "dart language-server" works. If required, I could switch back to using the snapshot when we need to run with the VM Service enabled, but since the goal was to avoid clients needing to know about the snapshots and their locations, I'd like to check that's necessary before doing so.
@bkonyi @bwilkerson

//cc @bkonyi

dart language-server currently spawns a secondary process, so the --enable-vm-service flag isn't being forwarded to the server process.

@bkonyi do you know where the code that spawns the process is? I found LanguageServerCommand but as far as I can tell it's all in-progress from there down.

We spawn the secondary process here.

Oh, I think I confused this with the analysis server. I'll look more closely.

Oh, I see - I think there are two different paths here:

dart fix and dart analyze commands go through the code you linked
dart language_server which I think uses a different path

The first two are spawning servers for their own use (and don't have flags for things like using the LSP protocol), and the second just runs the server directly (and passes all of the analysis server flags over).
This issue is specifically about the second one, so I don't think it's caused by an additional process, but I'm not very familiar with the code so could be mistaken.

So I think this is WAI. The VM service doesn't advertise itself if it's expecting a DDS instance to connect since it doesn't know which URI to advertise until that happens. Since DDS is only wired up to be started via dart run --observe (or implicitly via dart --observe foo.dart), the VM service is never advertised when you invoke dart --observe language-server.
This behavior can be disabled by passing --no_dds which will configure the VM service to advertise it's URI as soon as it's finished initializing. However, running this way will also prevent DevTools from being served since we're not going through the dart run flow. Also, you won't have a great debugging experience since you'll be debugging an app-jit snapshot with no sources.
I think the right thing to do here is to run pkg/dartdev/bin/dartdev.dart directly. This way you'll have a DDS instance, access to a DevTools instance, and the ability to inspect sources. Something like this seems to work: dart --observe pkg/dartdev/bin/dartdev.dart language-server.

So I think this is WAI. The VM service doesn't advertise itself if it's expecting a DDS instance to connect since it doesn't know which URI to advertise until that happens.

The issue here wasn't just the banner, it also doesn't binding to the provided port (manually trying to connect on the port that was passed doesn't work). Should that work?

Also, you won't have a great debugging experience since you'll be debugging an app-jit snapshot with no sources.

Ah, interesting. Is that different to when running from the analysis_server.snapshot file, or the same? The sources themselves probably aren't that important, but being able to use CPU/Memory profiler in DevTools could be.
Today it's possible in VS Code to do this (if Dart-Code runs the .snapshot file directly, instead of the language_server command):

set the dart.analyzerVmServicePort setting in VS Code workspace settings (this restarts the analysis server)
run dart devtools
use the port number configured above to connect DevTools to the analysis server's VM Service
Use CPU Profiler, Memory Profiler, Debugger, etc. in DevTools

I'm not sure from the above how much of this would be lost if dart language_server supported the VM Service. If it's just sources missing, but CPU/memory profiler still give useful information (valid class/method names etc.) then it's probably still useful. If none of that will work, then it's probably better for VS Code to just fall back to the .snapshot file in the case where this port number has been set.

I think the right thing to do here is to run pkg/dartdev/bin/dartdev.dart directly

To be clear - this is for other users that won't have the SDK sources. The use case here is if a user has high analysis_server memory usage or CPU that we can't reproduce, this allows us to easily get CPU/memory profiles from them. It's very infrequently used, but sometimes it can be useful.
For someone with the SDK sources, pkg/analysis_server/bin/server.dart can be run directly (via the dart.analyzerPath setting in VS Code), and everything works as expected there.
Given how infrequently this is used though, unless this is just a simple bug that's easily fixed (or, if it won't support getting good memory/cpu profiles), I think using the .snapshot in VS Code (when the dart.analyzerVmServicePort setting is set) is probably the simplest way to resolve this. On the chance the .snapshot ceases to be (or moves/renames), it breaking temporarily isn't critical (the setting is only used temporarily, there's a prompt at startup to remind you when it's enabled encouraging you to turn it off).

Maybe the simplest way forward here is just to pass --no_dds when a service port is provided?

Ah, that seems to work fine - thanks!

maybe it's worth considering making requests directly to the service from VSCode to get the details you're interested in and manually dump the responses to files on disk so users don't need to try and connect with a DevTools instance.

It's hard to know what might be useful in advance. This is a bit of an escape hatch so if we can't repro/understand an issue, there's a way to give the user (potentially customised) instructions for getting additional useful info. It's not used that often so not really worth doing much work for it, but it's useful to have if there are no other options for getting more info.
Thanks!


fix : Fixed stage environment variable

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


Add option for button text color inlining

See #42

Codecov Report

Merging #43 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master      #43   +/-   ##
=======================================
  Coverage   98.45%   98.45%
=======================================
  Files           3        3
  Lines         907      907
=======================================
  Hits          893      893
  Misses          8        8
  Partials        6        6

Impacted Files
Coverage Δ

hermes.go
77.77% <ø> (ø)
:arrow_up:

flat.go
99.53% <100%> (ø)
:arrow_up:

default.go
100% <100%> (ø)
:arrow_up:

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 23ab47d...c343183. Read the comment docs.


Compiler warnings while updating catkit conda environment

Here is the screenshot of the terminal. I got two warnings when I updated the environment.

C++, seems to be an actual bug.

Since properties have to be a Value object, they have to be either a float64 or a int64 type. These are the only types listed there. However, there should be a default clause that is hit when a different type somehow is passed. This is easy to implement.
In practice, the dtype validity is checked when creating the property with the stream, so it is practically impossible to have a stream-backed property with the wrong type, but strictly speaking there still should be a default return path.


Incorrect project classifiers count

The events_controller api is incorrectly updating the project classifier count on all activity messages. It should only count them when the user_project_preference is created for the first time and thus indicating a new user for a project.
For reference, the events_controller is used to link legacy project activity counts to the new zooniverse api, this is the way we keep counters in sync between legacy projects and older api's.

Inspired by this blog post, I've made a start on fixing this issue and written specs that can verify a solution (TDD) on this here.
If anyone wants to help fix this it'd be a great chance to get a PR into the panoptes api, just take my specs as a template.
See the How to contribute section of the readme for best practices on submitting a PR.

@zooniverse/developers does any non-api contributor want to try their hand at this? This is an ideal way to get exposure to the API code.

@amyrebecca Here's that issue Cam mentioned yesterday.


Multiple constraints with the same source do not work

Dep Version
v0.3.0, darwin-amd64 - Downloaded from GitHub releases page
What dep command did you run?
$ dep ensure

What did you expect to see?
A lock file that reflected the contents of the toml file.
What did you see instead?
A lock file that did not respect the contents of the toml file. What happened was I had the following constraints in the toml file:
[[constraint]]
  name = "gopkg.in/yaml.v1"
  source = "https://github.com/akutz/yaml.git"
  revision = "bc35f417f8a7664a73d46c9def2933417c03019f"
[[constraint]]
  name = "gopkg.in/yaml.v2"
  source = "https://github.com/akutz/yaml.git"
  revision = "bc35f417f8a7664a73d46c9def2933417c03019f"

But in the lock file only the yaml.v1 package was using my fork as its source. The yaml.v2 package was pointing to its primary repo.
It appears dep does not tolerate multiple packages with the same source.

yeah this seems super weird - we'll need to start in on this with some test cases.

turns out, this is the same problem as in #1119 (i think). it's not that multiple instances of the same source field don't work, just that multiple of gopkg.in at different path-versions weren't separating correctly. i have a PR that should fix this, but it'd be great if you could test it out and verify!


Selling your software on envato

Hi
because i do not like this kind of people i just want to let you know that this guy here is selling your software on envato / codecanyon
https://codecanyon.net/item/trackme-realtime-location-tracking-system/

It's no longer there

thanks.
n
On Thu, Feb 1, 2018 at 9:12 AM, Caspar<EMAIL_ADDRESS>wrote:

It's no longer there
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nickfox/GpsTracker/issues/75#issuecomment-362189947,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGM8DhH15ecyhPYHkMZAKHDdEWLax8eks5tQXH0gaJpZM4NL5JV
.


Make RuboCop happy when run on rspec-mock test suite

Fix more than 100 style warnings from RuboCop.

Tried running the cucumbers locally on MRI 1.9.2-p330; they passed. Looks like the failure which occurred on Travis CI may be intermittent?

I don't understand how you're getting rubocop warnings. Here's the output I get from rubocop:
➜  rspec-mocks git:(master) bundle exec rubocop lib
Inspecting 40 files
........................................

40 files inspected, no offenses detected

As you can see, I don't get any warnings.

I got a slew of warnings from cd'ing into the project root and typing rubocop.

:+1:


MariaDB Addon - cant restore database from mysql dump

First thanks for the MariaDB Addon. I am currently writing my own addon and want my new addon to integrate with your MariaDB Addon. Unfortunatly I am unable to restore a mysql dump (sql file) into your addon.
I have created the database in the mariadb addon.
The following command works, but unfortunatly displaying tables, and entrys doesnt return anything.
`
host=$(bashio::services "mysql" "host")
password=$(bashio::services "mysql" "password")
port=$(bashio::services "mysql" "port")
username=$(bashio::services "mysql" "username")
bashio::log.info "Creating database $mariadb_filename on MariaDB Addon $host if required"
mysql \
    -u "${username}" -p"${password}" \
    -h "${host}" -P "${port}" \
    -e "CREATE DATABASE IF NOT EXISTS \`$mariadb_filename\` ;"
if [ -f /share/$mariadb_filename.sql ]; then
bashio::log.info "Listing current Tables of $mariadb_filename Database with user ${username}"
mysql \
    -u "${username}" -p"${password}" \
    -h "${host}" -P "${port}" \
    -e "SHOW TABLES FROM $mariadb_filename ;"
bashio::log.info "Importing file  /share/$mariadb_filename.sql on MariaDB Addon $host with user ${username}"
mysql \
    -u "${username}" -p"${password}" \
    -h "${host}" -P "${port}" \
    -e "--database=$mariadb_filename < /share/$mariadb_filename.sql ;"

`

I'm not really sure where the problem is with just this piece of information.
I do have an example on where I have done something similar with a migration from an internal add-on hosted MySQL instance to the MySQL service:
https://github.com/hassio-addons/addon-nginx-proxy-manager/blob/master/proxy-manager/rootfs/etc/cont-init.d/mysql.sh

Okay, I am sorry. Looks like I used the worng commands. Your link helped me.
Thank you!


Use events to handle updating the state of the context menu and status window

[x] Events to deal with state received and state changed
[ ] Change context menu according to state

... changing state of the contextmenu is a cross-thread issue; needs some additional work.


No such file or directory

Description of bug / unexpected behavior

After uninstalling 3blb mainm and installing ManimCommunity mainm, I followed ManimCommunity tutorials step by step.
Expected behavior

Following this example executed manim -pql scene.py SquareToCircle, it got a error as follows:
$ manim -pql scene.py SquareToCircle
Manim Community v0.10.0

[09/04/21 11:31:53] INFO     Animation 0 : Using cached data (hash :<PHONE_NUMBER>_2855632916_1793580042)                         cairo_renderer.py:107
                    INFO     Animation 1 : Using cached data (hash :<PHONE_NUMBER>_222290472_1793580042)                          cairo_renderer.py:107
                    INFO     Animation 2 : Using cached data (hash :<PHONE_NUMBER>_3021192394_1793580042)                         cairo_renderer.py:107
                    INFO                                                                                scene_file_writer.py:606
                             File ready at '/luneice/project/python/manim/media/videos/scene/480p15/SquareToCircle.mp4'

                    INFO     Rendered SquareToCircle                                                                                scene.py:233
                             Played 3 animations
                    INFO     Previewed File at: '/luneice/project/python/manim/media/videos/scene/480p15/SquareToCircle.mp4'         file_ops.py:193

gio: file:///luneice/project/python/manim/media/videos/scene/480p15/SquareToCircle.mp4: Error getting information about file "/luneice/project/python/ manim/media/videos/scene/48/SquareToCircle.mp4": Error getting information about file "/luneice/project/media/videos/scene/48/SquareToCircle.mp4": No such file or directory

How to reproduce the issue

Code for reproducing the problem
from manim import *

class SquareToCircle(Scene):
    def construct(self):
        circle = Circle()  # create a circle
        circle.set_fill(PINK, opacity=0.5)  # set color and transparency

        square = Square()  # create a square
        square.rotate(PI / 4)  # rotate a certain amount

        self.play(Create(square))  # animate the creation of the square
        self.play(Transform(square, circle))  # interpolate the square into the circle
        self.play(FadeOut(square))  # fade out animation

System specifications
System Details

OS: Ubuntu 20.04.3 LTS
RAM: 16GB
Python version (python/py/python3 --version): Python 3.8.11
Installed modules (provide output from pip list):

Package             Version
------------------- -------------------
certifi             2021.5.30
charset-normalizer  2.0.4
click               8.0.1
click-default-group 1.2.2
cloup               0.7.1
colorama            0.4.4
colour              0.1.5
commonmark          0.9.1
decorator           5.0.9
glcontext           2.3.4
idna                3.2
manim               0.10.0
ManimPango          0.3.0
mapbox-earcut       0.12.10
moderngl            5.6.4
moderngl-window     2.4.0
multipledispatch    0.6.0
networkx            2.6.2
numpy               1.21.2
Pillow              8.3.2
pip                 21.0.1
pycairo             1.20.0
pydub               0.25.1
pyglet              1.5.19
Pygments            2.10.0
pyrr                0.10.3
requests            2.26.0
rich                10.9.0
scipy               1.7.1
screeninfo          0.6.7
setuptools          52.0.0.post20210125
six                 1.16.0
tqdm                4.62.2
urllib3             1.26.6
watchdog            2.1.5
wheel               0.37.0

LaTeX details

LaTeX distribution (e.g. TeX Live 2020): TeX 3.14159265 (TeX Live 2019/Debian)
Installed LaTeX packages:

FFMPEG
Output of ffmpeg -version:
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil      56. 31.100 / 56. 60.100
libavcodec     58. 54.100 / 58.113.100
libavformat    58. 29.100 / 58. 64.100
libavdevice    58.  8.100 / 58. 11.103
libavfilter     7. 57.100 /  7. 90.100
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  5.100 /  5.  8.100
libswresample   3.  5.100 /  3.  8.100
libpostproc    55.  5.100 / 55.  8.100

Additional comments

This is very odd. Did you move some directories around by any chance? (The error is caused by gio looking for some file in a very similar directory; python is missimg from the path, and for some reason 480p15 is mangled to 48.)
Here are some things you could try:

Add --disable_caching after -p -ql,
move your scene.py to some path that doesn't have python in it,
manually run the command that Manim uses to open your file: xdg-open /luneice/project/python/manim/media/videos/scene/480p15/SquareToCircle.mp4

Please report back whether any of these suggestions helped.

This is very odd. Did you move some directories around by any chance? (The error is caused by gio looking for some file in a very similar directory; python is missing from the path, and for some reason 480p15 is mangled to 48.)
Here are some things you could try:

Add --disable_caching after -p -ql,
move your scene.py to some path that doesn't have python in it,
manually run the command that Manim uses to open your file: xdg-open /luneice/project/python/manim/media/videos/scene/480p15/SquareToCircle.mp4

Please report back whether any of these suggestions helped.

The terminal printing that File ready at '/luneice/project/python/manim/media/videos/scene/480p15/SquareToCircle.mp4', when I open the directory there is no SquareToCircle.mp4 file, but the partial_movie_files was created and there is a partial mp4 file.

You haven't answered all the questions.
Closing due to inactivity.


Provide more documentation in README.md

Updated list of supported cpus and operating systems
Mentioned settings described in Makefile.rule
Documented DYNAMIC_ARCH

fixes #2388

Nice! Thanks for the quick update of README. I believe more users will realize this important feature.


examples do not work. No figures shown in notebook.

I have installed ipyvolume following the instruction.
$ pip freeze | grep note
notebook==5.1.0
$ pip freeze | grep widg
autovizwidget==0.12.1
ipywidgets==7.0.3
widgetsnbextension==3.0.3
$ pip freeze | grep jupy
hdijupyterutils==0.12.1
jupyter==1.0.0
jupyter-client==5.1.0
jupyter-console==5.1.0
jupyter-contrib-core==0.3.0
jupyter-contrib-nbextensions==0.2.4
jupyter-core==4.3.0
jupyter-highlight-selected-word==0.0.7
jupyter-latex-envs==<IP_ADDRESS>
jupyter-nbextensions-configurator==0.2.2
jupyterlab==0.25.2
jupyterlab-launcher==0.3.1
jupyterthemes==0.12.3
have run widget check script from here(https://raw.githubusercontent.com/mwcraig/scipy2017-jupyter-widgets-tutorial/master/install_check.py):
$ python install_check.py
Checking requirements for Jupyter widget ecosystem
Please install these missing packages for the tutorial "Jupyter widget ecosystem":  (are these packages necessary?)
ccdproc
bqplot
ipyleaflet
ginga
Checking version numbers of these packages:  bqplot, ipyvolume, ipywidgets, ipyleaflet
**** Please upgrade ipywidgets to version 7.0.0a11 by running:
conda remove --force ipywidgets # if you use conda
pip install --pre --upgrade ipywidgets
jupyter nbextension enable --py widgetsnbextension
ipyvolume version is good!
Here is result from running examples
The  following example only shows sliders, no volume figure  in the notebook.
import numpy as np
import ipyvolume as ipv
V = np.zeros((128,128,128)) # our 3d array
V[30:-30,30:-30,30:-30] = 0.75
V[35:-35,35:-35,35:-35] = 0.0
V[50:-50,50:-50,50:-50] = 0.25
V[55:-55,55:-55,55:-55] = 0.0
ipv.quickvolshow(V, level=[0.25, 0.75], opacity=0.03, level_width=0.1, data_min=0,data_max=1)

The following example does not work and nothing shown in the notebook after this code snippet.
import ipyvolume as ipv
import numpy as np
x, y, z = np.random.random((3, 10000))
ipv.quickscatter(x, y, z, size=1, marker="sphere")
Same result as above for the following code.
x, y, z, u, v = ipv.examples.klein_bottle(draw=False)
ipv.figure()
m = ipv.plot_mesh(x, y, z, wireframe=False)
ipv.squarelim()
ipv.show()
Only controls shown but no figures after running the following code.
ds = ipv.datasets.aquariusA2.fetch()
ipyvolume.quickvolshow(ds.data, lighting=True)

My goal is to draw a 3-D scatter plot that can be rotated with a mouse. Is there a good example for this purpose?

I have the same problem.
The link from the README.md to mybinder.org:
https://beta.mybinder.org/v2/gh/maartenbreddels/ipyvolume/master?filepath=notebooks/simple.ipynb
Shows no graphs.
Looking at 'requirements_rtd.txt' in the github folder shows:
#jupyter_sphinx>=0.1.1
git+https://github.com/maartenbreddels/jupyter-sphinx@ipywidgets7require_d
ipyvolume==0.4.0
ipywidgets==7.0.0
traittypes
traitlets
Pillow
scipy
nbsphinx
recommonmark
matplotlib<2
ipywebrtc
requests

Running: ! pip freeze
in the mybinder, shows:
ipyvolume==0.4.0
ipywidgets==7.0.3
traittypes==0.0.6
traitlets==4.3.2
Pillow==4.3.0
scipy==0.19.1
matplotlib==2.1.0
ipywebrtc==0.3.0
requests==2.12.4

Is it necessary to downgrade matplotlib to under version 2?

(Sorry for the late reply, been of the radar for a while)
Can you check if this works: http://ipyvolume.readthedocs.io/en/latest/#scatter-plot
If not, your browser could be an issue, if so, can you let me know which browser?
Try chrome otherwise.
The binder example works for me btw.

requirements_rtd.txt is only for readthedocs btw, which early on gave issues for matplotlib. For binder the environment.yml) is used.

Hi.
When I try with Chrome, Version 62.0.3202.94 (Official Build) (64-bit) on Mac:
And mybinder:
https://beta.mybinder.org/v2/gh/maartenbreddels/ipyvolume/master?filepath=notebooks/simple.ipynb

And scatter plot
import ipyvolume as ipv
import numpy as np
x, y, z = np.random.random((3, 10000))
ipv.quickscatter(x, y, z, size=1, marker="sphere")

On Firefox, 52.5.0 (64-bit) It works!

great, what browser did you use before this?

Chrome. I will check errors in the developer console.

Interesting, which version and which is?
(from mobile phone)
On 30 Nov 2017 23:39, "Troels Schwarz-Linnet"<EMAIL_ADDRESS>wrote:

Chrome. I will check errors in the developer console.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/maartenbreddels/ipyvolume/issues/83#issuecomment-348344264,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABryPYxrmxee_5JNoZmonCwYY35R_v5nks5s7y6ngaJpZM4QYKtV
.

original issue is solved, if the problem persists, please open a new issue.

Plot does not show up in Chrome Version 76.0.3809.132 (Official Build) (64-bit).

Plot isn't showing up on Version 77.0.3865.90 (Official Build) (64-bit) MAC either.

Plot have no data on Version 78.0.3904.108 (Official Build) (64-bit) windows10. followed all installation instructions for ipyvolume.


Markdown Stuck

Category
Bug?
What is the current behavior?
I entered the markdown editor on the Desktop version of GitBook Editor and it now has the 'Edit Markdown' toggle option grayed out so I can't go back to the regular editor view for this section. It is only happening to this one section out of the thirteen I have in this particular repository so I'm rather frustrated.
What is the desired behavior?
I should be able to use the 'Edit Markdown' toggle...
Additional information
I'm running on a Windows operating system with the latest Gitbook Editor installed as a desktop application. I've been using it without any error for a few weeks now and now all of a sudden I can't get out of the markup view of my section...

It also is stuck in markdown on the Gitbook Editor available as a web application.

@enewmanMN The editor fallbacks to "raw mode" (markdown mode) if your page contains custom HTML or uses the template syntax. Those are not yet supported in document mode (but will at some point)

Okay I will look for that thank you!


VTK ASCii is formatted incorrectly or is not compatible with my reader

Hello,
First of all, this is a very useful tool so far.
I am trying to generate tetrahedral meshes from several simulation states described by point clouds.
I am having an issue writing a ASCii VTK that is functional.
Note below screenshots of: (1) a regular input ASCii VTK mesh and (2) the output generated by meshio
I have tried;
outmesh = meshio.Mesh(points,cells)
meshio.write('out_mesh.vtk', out_mesh, binary=False)

and also,
meshio.write_points_cells('out_mesh.vtk',points, cells, binary=False)

I am going to attempt a workaround, just wanted to see if this had been reported or if here is something I am missing...
Thank you!

Never post screen shots, they cannot be searched or copy-pasted. Please edit your post accordingly. Also make sure that that your provide completely copy-pastable code to reproduce the problem.

I don't get what you believe is wrong with the output mesh written by meshio. It is still a valid mesh (it can be opened with ParaView) although points are defined in a single line and cells on multiple lines.
Do you mean that you expect an output like below?
# vtk DataFile Version 4.2
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 4 double
0.0 0.0 0.0
1.0 0.0 0.0
1.0 1.0 0.0
0.0 1.0 0.0
CELLS 2 8
3 0 1 2
3 0 2 3
CELL_TYPES 2
5 5

I don't get what you believe is wrong with the output mesh written by meshio. It is still a valid mesh although points are defined in a single line and cells on multiple lines.
Do you mean that you expect an output like below?
# vtk DataFile Version 4.2
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 4 double
0.0 0.0 0.0
1.0 0.0 0.0
1.0 1.0 0.0
0.0 1.0 0.0
CELLS 2 8
3 0 1 2
3 0 2 3
CELL_TYPES 2
5 5

What reader are you using? It most likely is a problem related to your reader since VTK ASCII files written by meshio can be opened in ParaView.
Note that the fix is straightforward, though (simply replace tofile by numpy.savetxt in VTK ASCII writer).

@keurfonluu This is the problem/issue exactly. You are right, It is a reader problem. I am using FEBio , so the file import/read capabilities are not the best. I was actually just working on an implementation of numpy.savetext(). Glad to know I was on the right track!

Never post screen shots, they cannot be searched or copy-pasted. Please edit your post accordingly. Also make sure that that your provide completely copy-pastable code to reproduce the problem.

Just did! Thank you for the feedback,


Feature Request: Provide infomodel version

See feature request originally posted in Messaging-Services: https://github.com/International-Data-Spaces-Association/IDS-Messaging-Services/issues/249

Hello everyone,
looks like this issue is related to my problem. If not please tell me and I will open a new one.
I’d also like to read the version of the information model from the information model java library.
Something like this:
BaseConnector.class.getPackage().getImplementationVersion()

At the time writing this call returns null.
This version is defined in the MANIFEST.MF of the JAR. It’s possible to configure this in the maven-jar-plugin.
Here is the documentation of the plugin https://maven.apache.org/shared/maven-archiver/examples/manifest.html
Maybe you can add the version there and maybe this also solves the issue of @tmberthold ?
Greetings
Dominik
Dominik Pinsel<EMAIL_ADDRESS>Daimler TSS GmbH, legal info/Impressum


feat(benches): add binaries to bench scaling of non-conflicting transactions

Description
Scope:  benches
Type of change: new feature
Content description:
add two binaries, shift and shift-nc. both programs generate a grid and iterate on inner vertices, computing the average of their neighbors and taking it as new value. this is repeated for N rounds.
the main loop is parallelized using rayon, the easiest way to control execution resource is to use taskset.
shift-nc differs from shift by splitting the vertices into to independent batches before processing those. the intended effect is to decouple iterations that could conflict with each other, resulting in no transaction falures and retries.
Additional information

[x] New dependency: rayon

Possible follow-up

larger scale tests
add parallelism to predefined kernels

The two new programs are benchmarks, but what is the performance metric?

The main metric of interest is execution time, to evaluate how well our implementation scales. Both weak and strong scaling can be estimated by controlling grid size and # of thread used.
We don't necessarily care about flat exec time since we don't have anything to compare against, and I'm not even sure the algorithm makes too much sense meshing-wise.

As an indication, I'm reaching quasi ideal speedup for a 512*512 map, from 1 to 12 threads (from 92s down to 12s, given that map creation is not parallelized)


[GHSA-62wf-24c4-8r76] Cross-site Scripting vulnerability in Jenkins

Updates

References

Comments
Link for fix patch

interesting - multiple suggested changes will overwrite each other. This is not great for combinations of "obviously useful" and "open to discussion" changesets for advisories via the UI.


Works in Russian

Rewrote the algorithm, much more verbose now. About 4x slower according to my tests. But should work in any language supported by JavaScript.
¯\_(ツ)_/¯

The additional time seems to be about 1 part toUpperCase(), 1 part toLowerCase(), and 1 part parseFloat(). So, the 4x slowdown is pretty much fundamental to this specific approach to solving the problem.
I'm sure there's a faster way, but this way seems very "correct" to me, in that it just uses JavaScript built-ins to decide if a character is upper, lower, or numeric.
If you want to test the speed, you can check out the old version:
git show 625e9:index.js > old-index.js

And then run this test:
var newDashify = require("./index.js")
var oldDashify = require("./old-index.js")

function letters() {
  return Math.random().toString(36)
}

function string() {
  return letters()+" "+letters()+" "+letters()+" "+letters()
}

var strings = []
for(var i=0; i<10000; i++) {
  strings[i] = string()
}

var start = new Date()
strings.map(oldDashify)
var oldTime = new Date() - start

start = new Date()
strings.map(newDashify)
var newTime = new Date() - start

console.log("old version took", oldTime)
console.log("new version took", newTime)

@erikpukinskis thanks for the fast response! fwiw I'm going to be packing to leave on a trip in a few min, if possible I'll review before I leave or while I'm traveling, but it's possible it might be a few days before I can get back to this. Sorry! bad timing on my part!

@jonschlinkert That's all good! Enjoy your trip. I've got my own version of dasherize inline'd in my project for temporary, I just didn't want to create yet another NPM module since yours has the same semantics as what I wanted.

(fwiw i'm also trying to publish a lib I've been working on before I leave. In case you see that pushed up, don't think I forgot about this, just trying to prioritize before I leave) thanks again!

Just a reminder to peek at this!

If you take too long I'm going to register dasherifizicize on npm and then the world will be an uglier place :)

If you take too long I'm going to register dasherifizicize

haha none of us want to see that happen. sorry for the lack of response, I'll pull this down and review this weekend. thanks for the ping!

I would love you so hard if you clicked that merge button, and published to npm.
For now, this is my life:
cp ../meals/dashify.js .

Truth be told, I'm starting to wonder if it's not better to copy/paste this kind of stuff anyway! After the left-pad fiasco, and these kinds of security issues... I'm a little wary of npm dependencies. But that's part of our reality I guess.

@erikpukinskis sorry for the late reply. It seems like we should have been able to just update the regex to fix this issue. is there a reason why regex wouldn't work?

I’m not aware of another way to tell alphabetical characters from non-alphabet characters besides my upper/lowercase hack. And even that doesn’t work with all alphabets.
I guess you could maybe test for \w which gives you letters, numbers, and underscore, and then detect out the numbers and underscore. Might be worth a shot.


Doesn't seem to be working.. multiple Stickies windows open and Rosetta just for a workflow?

Entered all the details required into the .py file but this seems to be a little under cooked. I couldn't get it to work at all.. Also, the ChatID only appears in the URL on previous chats. Not sure if that is the issue but yeah.. didn't work for me at all. :(

Wrong forum.

It is used to open the previous created chat so that you can continue different conversations for different tasks at any time. For example, you can duplicate this workflow and set one's keyword as "travel planner" and the other's as "weekly plan". Every time you use "travel planner", you do not need to tell the bot again where you are traveling now. You can just type "travel planner I get one more free night, where should I visit".
can you tell me what is the exact problem you encounter? thanks!

I've jumped to a different solution that uses a small app in the menu bar. Basically this would just open a blank note and if I asked ChatGPT anything, another blank note would appear.


Added support for 3 new params - r_communities, w_communities and purge

The 2 new community params add support to create both read only and write communities. Current users do not need to make any changes to their manifests as backwards compatibility is maintained.
The purge param provides a way to use the module without clobbering existing configuration and ensuring the module only touches what it explicitly manages.

Thanks for submitting! Please update PR to target the "develop" branch and have a look at those couple of comments, then we'll see about getting this merged.

Closing request to target development branch


Added a sidenave topic for troubleshooting the on demand service broker

Signed-off-by: Jatin Naik<EMAIL_ADDRESS>

Thank you, tinygrasshopper


Limit memory usage

make the app more lightweight , currently taking 216 mb of RAM .

looks like memory usage highly depends on the length of the song currently loaded


iTop.iTopVPN version <IP_ADDRESS>5

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

force install hash overide using --force

it happens every single time

it happens every single time

Some publishers update their applications multiple times per day, so it's normal, especially since this isn't a vanity link.

ok the closing. cant have the hash changing every single day just because they are patching it


Unable to authenticate with secrets or environment variables

Discussed in https://github.com/felddy/foundryvtt-docker/discussions/867

Originally posted by ZStrouse January  5, 2024
The container was running without issue as of this morning. A few hours ago, I stopped the container and did a routine reboot on my server. After the reboot, foundry is unable to authenticate my credentials. I did not change anything in my configuration files in that time. I tried following the solutions from the "Credentials getting mangled" and "EAI_AGAIN error" discussions, but neither of the steps in those seemed to help.
I run the container with docker-compose. My compose file is
version: "3.8"
secrets:
  foundry_secrets:
    file: /Config/foundryvtt/foundry/secrets_me.json

services:
  foundry:
    image: felddy/foundryvtt:release
    container_name: foundry
    hostname: foundry
    init: true
    restart: "unless-stopped"
    volumes:
      - /srv/disk/Storage/Foundry/me:/data
    environment:
      - CONTAINER_CACHE=/data/cache
      - FOUNDRY_HOSTNAME=removed
      - FOUNDRY_MINIFY_STATIC_FILES=true
      - FOUNDRY_PROXY_PORT=443
      - FOUNDRY_PROXY_SSL=true
      - FOUNDRY_UID=1000
      - FOUNDRY_GID=1000
      - TIMEZONE=removed
      - CONTAINER_VERBOSE=true
    expose:
      - 30000
    secrets:
      - source: foundry_secrets
        target: config.json

and the secrets file is
{
  "foundry_admin_key": "adminkey",
  "foundry_password": "password",
  "foundry_username": "username"
}

I also tried removing all the secrets lines and replacing them with directly entering the password and username as environment variables, with the same result. Here are the verbose logs for the situation.
foundry  | Entrypoint | 2024-01-05 04:27:07 | [debug] Timezone set to: removed
foundry  | Entrypoint | 2024-01-05 04:27:07 | [info] Starting felddy/foundryvtt container v11.315.0
foundry  | Entrypoint | 2024-01-05 04:27:07 | [debug] CONTAINER_VERBOSE set.  Debug logging enabled.
foundry  | Entrypoint | 2024-01-05 04:27:07 | [debug] Running as: uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
foundry  | Entrypoint | 2024-01-05 04:27:07 | [debug] Environment: CONTAINER_CACHE=/data/cache
foundry  | CONTAINER_VERBOSE=true
foundry  | FOUNDRY_GID=1000
foundry  | FOUNDRY_HOME=/home/foundry
foundry  | FOUNDRY_HOSTNAME=removed
foundry  | FOUNDRY_MINIFY_STATIC_FILES=true
foundry  | FOUNDRY_PROXY_PORT=443
foundry  | FOUNDRY_PROXY_SSL=true
foundry  | FOUNDRY_UID=1000
foundry  | FOUNDRY_VERSION=11.315
foundry  | HOME=/root
foundry  | HOSTNAME=foundry
foundry  | NODE_VERSION=18.18.2
foundry  | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
foundry  | PWD=/home/foundry
foundry  | SHLVL=1
foundry  | TIMEZONE=removed
foundry  | YARN_VERSION=1.22.19
foundry  | Entrypoint | 2024-01-05 04:27:07 | [info] Reading configured secrets from: /run/secrets/config.json
foundry  | Entrypoint | 2024-01-05 04:27:07 | [info] No Foundry Virtual Tabletop installation detected.
foundry  | Entrypoint | 2024-01-05 04:27:07 | [info] Using FOUNDRY_USERNAME and FOUNDRY_PASSWORD to authenticate.
foundry  | Authenticate | 2024-01-05 04:27:08 | [debug] Saving cookies to: cookiejar.json
foundry  | Authenticate | 2024-01-05 04:27:08 | [info] Requesting CSRF tokens from https://foundryvtt.com
foundry  | Authenticate | 2024-01-05 04:27:08 | [debug] Fetching: https://foundryvtt.com
foundry  | Authenticate | 2024-01-05 04:27:09 | [info] Logging in as: username
foundry  | Authenticate | 2024-01-05 04:27:09 | [debug] Fetching: https://foundryvtt.com/auth/login/
foundry  | Authenticate | 2024-01-05 04:27:09 | [error] Unable to log in as username, verify your credentials...
foundry  | Authenticate | 2024-01-05 04:27:09 | [error] Unable to authenticate: Unable to log in as username, verify your credentials...

Per the recommendation in the "Credentials getting mangled" discussion back in July I also opened a shell in the container and tried manually authenticating.
docker run --rm --interactive --tty --entrypoint /bin/sh felddy/foundryvtt:release
/home/foundry # ./authenticate.js --log-level=debug username password /tmp/cookiejar.json

This also failed, and the output for that attempt was
Authenticate | 2024-01-05 11:01:41 | [debug] Saving cookies to: /tmp/cookiejar.json
Authenticate | 2024-01-05 11:01:41 | [info] Requesting CSRF tokens from https://foundryvtt.com
Authenticate | 2024-01-05 11:01:41 | [debug] Fetching: https://foundryvtt.com
Authenticate | 2024-01-05 11:01:41 | [info] Logging in as: username
Authenticate | 2024-01-05 11:01:41 | [debug] Fetching: https://foundryvtt.com/auth/login/
Authenticate | 2024-01-05 11:01:42 | [error] Unable to log in as username, verify your credentials...
Authenticate | 2024-01-05 11:01:42 | [error] Unable to authenticate: Unable to log in as username, verify your credentials...

My username has a - in it and my password has a _ but I was under the impression that that shouldn't be an issue when using secrets. Also, it was working without issue for the past several weeks. I don't think it's a network issue either, because when I do nslookup on foundryvtt.com I get a destination IP address instantly.
Been fighting with this for hours and I'm out of ideas. Any help that can be offered would be deeply appreciated.

Doh.  Duplicate of #868


Version 1.0.7

Landed in https://github.com/metarhia/metawatch/commit/0ce5964c4aedb93c870ae4c6a62538c5fc88ee48


Adding collapsible sidebar

#240

https://www.loom.com/share/da9af4cfb7f84025a09649690151157c

Fantastic! Going to hop on and do some minor tweaks to take it home, but killing it @karanvirsb 🚀

Moving stuff to #265, but awesome job here @karanvirsb , let me know if you have any feedback or ideas on my updates!


Please set this as the tutorial for PermissionsEx

] Edit by Stormbow: Link deleted. [

This is not the place to advertise YouTube channels.
Also, that video is more than 2 years old.

Some of the information in the video is relevant, but if people want video tutorials, they can easily find them themselves.


Cannot read property 'classList' of null

Uncaught TypeError: Cannot read property 'classList' of null tooltip.js:1661
hasClass tooltip.js:1661
DropInstance.isOpened tooltip.js:3138
DropInstance.close tooltip.js:3176(anonymous function)

This happens sometimes

Thanks for using Tooltip. I believe this issue should be resolved with the most recent version of Tooltip that was just released. From my experience, this happened when there were either multiple versions of Tether or Drop included. We have since moved away from bundled versions, so you should only be requiring both Tether and Drop once. However, if this is still an issue, it'd be great if you could create a jsFiddle or Codepen to show us the issue and I'll be more than happy to help out. :smile_cat:

@geekjuice the problem is still here but the stacktrace has changed a little it seems.
Uncaught TypeError:
Cannot read property 'classList' of null tether.js:199
addClass tether.js:199
(anonymous function) drop.js:40

The line seems:
        setTimeout(function () {
          addClass(_this4.drop, '' + drop.classPrefix + '-after-open');
        });

The tooltip works fine but it's just annoying to have this logged oftenly :)

Hmm, would it possible to create an example of this issue through jsFiddle or similar? Trying to wrap my head around why just that instance of drop would be undefined when the lines right above that use addClass on the same reference correctly.

unfortunately it is deeply integrated in my ReactJS project and hard to reproduce in a sandbox.
It may be possible that I setup tethertooltip and then remove the dom node directly after (synchronously)
This way the setTimeout will try to add a class on a dom node that doesn't exist anymore.
This is a corner case but I think you should still handle it, as well as I should find in my app why I would setup a tooltip and remove the node just behind...

Ah. Now this Pull Request in Drop makes more sense. It stills like a hack, but I think for the time being, checking for the existence of the drop instance and only then adding the class makes sense. I'll that fix soon

yes that seems to be :)

@geekjuice is this fixed in new releases?

@slorber Yup, it was fixed in drop here. As long as your version of drop is >1.0.6, you should no longer see all the logging.
If that's not the case though, let me know and I'll take another look.

ok thanks i've upgraded the lib and will let you know if there are errors


Training MVXNet fails on custom dataset after a few epochs. Nan in loss then CUDA error.

First after a few epochs losses got nan:
2021-04-24 14:46:51,719 - mmdet - INFO - Epoch [6][3950/8195]   lr: 2.886e-03, eta: 2 days, 12:01:48, time: 0.764, data_time: 0.006, memory: 4553, loss_cls: 0.3132, loss_bbox: 0.8662, loss_dir: 0.0910, loss: 1.2704, grad_norm: 2.3257
2021-04-24 14:47:31,521 - mmdet - INFO - Epoch [6][4000/8195]   lr: 2.886e-03, eta: 2 days, 12:01:20, time: 0.796, data_time: 0.006, memory: 4553, loss_cls: 0.3746, loss_bbox: 0.9762, loss_dir: 0.0898, loss: 1.4406, grad_norm: 2.3565
2021-04-24 14:48:11,032 - mmdet - INFO - Epoch [6][4050/8195]   lr: 2.886e-03, eta: 2 days, 12:00:50, time: 0.790, data_time: 0.006, memory: 4553, loss_cls: 0.3404, loss_bbox: 0.8319, loss_dir: 0.0908, loss: 1.2632, grad_norm: 2.4758
2021-04-24 14:48:50,557 - mmdet - INFO - Epoch [6][4100/8195]   lr: 2.886e-03, eta: 2 days, 12:00:20, time: 0.790, data_time: 0.006, memory: 4553, loss_cls: 0.3433, loss_bbox: 0.8730, loss_dir: 0.0953, loss: 1.3115, grad_norm: 2.6249
2021-04-24 14:49:29,933 - mmdet - INFO - Epoch [6][4150/8195]   lr: 2.886e-03, eta: 2 days, 11:59:49, time: 0.788, data_time: 0.006, memory: 4553, loss_cls: 0.3695, loss_bbox: 0.8402, loss_dir: 0.0922, loss: 1.3018, grad_norm: 2.6444
2021-04-24 14:50:09,230 - mmdet - INFO - Epoch [6][4200/8195]   lr: 2.886e-03, eta: 2 days, 11:59:18, time: 0.786, data_time: 0.006, memory: 4553, loss_cls: 0.3588, loss_bbox: 0.8540, loss_dir: 0.0885, loss: 1.3013, grad_norm: 2.4400
2021-04-24 14:50:48,505 - mmdet - INFO - Epoch [6][4250/8195]   lr: 2.886e-03, eta: 2 days, 11:58:46, time: 0.785, data_time: 0.006, memory: 4553, loss_cls: 0.3558, loss_bbox: 0.8192, loss_dir: 0.0881, loss: 1.2631, grad_norm: 2.4894
2021-04-24 14:51:27,110 - mmdet - INFO - Epoch [6][4300/8195]   lr: 2.886e-03, eta: 2 days, 11:58:10, time: 0.772, data_time: 0.006, memory: 4553, loss_cls: 13.6469, loss_bbox: nan, loss_dir: nan, loss: nan, grad_norm: nan
2021-04-24 14:52:06,332 - mmdet - INFO - Epoch [6][4350/8195]   lr: 2.886e-03, eta: 2 days, 11:57:39, time: 0.784, data_time: 0.006, memory: 4553, loss_cls: 21.8341, loss_bbox: nan, loss_dir: nan, loss: nan, grad_norm: nan
2021-04-24 14:52:43,261 - mmdet - INFO - Epoch [6][4400/8195]   lr: 2.886e-03, eta: 2 days, 11:56:52, time: 0.739, data_time: 0.006, memory: 4553, loss_cls: 21.8341, loss_bbox: nan, loss_dir: nan, loss: nan, grad_norm: nan
2021-04-24 14:53:22,458 - mmdet - INFO - Epoch [6][4450/8195]   lr: 2.886e-03, eta: 2 days, 11:56:20, time: 0.784, data_time: 0.006, memory: 4553, loss_cls: 21.8341, loss_bbox: nan, loss_dir: nan, loss: nan, grad_norm: nan
2021-04-24 14:54:00,749 - mmdet - INFO - Epoch [6][4500/8195]   lr: 2.886e-03, eta: 2 days, 11:55:43, time: 0.766, data_time: 0.006, memory: 4553, loss_cls: 21.8341, loss_bbox: nan, loss_dir: nan, loss: nan, grad_norm: nan
2021-04-24 14:54:38,475 - mmdet - INFO - Epoch [6][4550/8195]   lr: 2.886e-03, eta: 2 days, 11:55:01, time: 0.755, data_time: 0.006, memory: 4553, loss_cls: 21.8341, loss_bbox: nan, loss_dir: nan, loss: nan, grad_norm: nan
2021-04-24 14:55:17,240 - mmdet - INFO - Epoch [6][4600/8195]   lr: 2.886e-03, eta: 2 days, 11:54:27, time: 0.775, data_time: 0.006, memory: 4553, loss_cls: 21.8341, loss_bbox: nan, loss_dir: nan, loss: nan, grad_norm: nan
2021-04-24 14:55:55,833 - mmdet - INFO - Epoch [6][4650/8195]   lr: 2.886e-03, eta: 2 days, 11:53:51, time: 0.772, data_time: 0.006, memory: 4553, loss_cls: 21.8341, loss_bbox: nan, loss_dir: nan, loss: nan, grad_norm: nan

then after a few more just got cuda error:
2021-04-25 06:20:34,017 - mmdet - INFO - Epoch [15][1150/8195]  lr: 2.181e-03, eta: 1 day, 20:29:04, time: 0.739, data_time: 0.006, memory: 4553, loss_cls: 21.8341, loss_bbox: nan, loss_dir: nan, loss: nan, grad_norm: nan
2021-04-25 06:21:10,596 - mmdet - INFO - Epoch [15][1200/8195]  lr: 2.181e-03, eta: 1 day, 20:28:24, time: 0.732, data_time: 0.006, memory: 4553, loss_cls: 21.8341, loss_bbox: nan, loss_dir: nan, loss: nan, grad_norm: nan
2021-04-25 06:21:47,305 - mmdet - INFO - Epoch [15][1250/8195]  lr: 2.181e-03, eta: 1 day, 20:27:44, time: 0.734, data_time: 0.006, memory: 4553, loss_cls: 21.8341, loss_bbox: nan, loss_dir: nan, loss: nan, grad_norm: nan
Traceback (most recent call last):
  File "tools/train.py", line 212, in <module>
    main()
  File "tools/train.py", line 208, in main
    meta=meta)
  File "/home/kirilly/mvx_env/lib/python3.6/site-packages/mmdet/apis/train.py", line 170, in train_detector
    runner.run(data_loaders, cfg.workflow)
  File "/home/kirilly/mvx_env/lib/python3.6/site-packages/mmcv/runner/epoch_based_runner.py", line 125, in run
    epoch_runner(data_loaders[i], **kwargs)
  File "/home/kirilly/mvx_env/lib/python3.6/site-packages/mmcv/runner/epoch_based_runner.py", line 51, in train
    self.call_hook('after_train_iter')
  File "/home/kirilly/mvx_env/lib/python3.6/site-packages/mmcv/runner/base_runner.py", line 307, in call_hook
    getattr(hook, fn_name)(self)
  File "/home/kirilly/mvx_env/lib/python3.6/site-packages/mmcv/runner/hooks/optimizer.py", line 27, in after_train_iter
    runner.outputs['loss'].backward()
  File "/home/kirilly/mvx_env/lib/python3.6/site-packages/torch/tensor.py", line 198, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph)
  File "/home/kirilly/mvx_env/lib/python3.6/site-packages/torch/autograd/__init__.py", line 100, in backward
    allow_unreachable=True)  # allow_unreachable flag
RuntimeError: transform: failed to synchronize: cudaErrorIllegalAddress: an illegal memory access was encountered
Traceback (most recent call last):
  File "/home/kirilly/mvx_env/lib/python3.6/weakref.py", line 624, in _exitfunc
    f()
  File "/home/kirilly/mvx_env/lib/python3.6/weakref.py", line 548, in __call__
    return info.func(*info.args, **(info.kwargs or {}))
  File "/home/kirilly/mvx_env/lib/python3.6/site-packages/numba/cuda/cudadrv/driver.py", line 1046, in core
    dealloc.add_item(module_unload, handle)
  File "/home/kirilly/mvx_env/lib/python3.6/site-packages/numba/cuda/cudadrv/driver.py", line 599, in add_item
    self.clear()
  File "/home/kirilly/mvx_env/lib/python3.6/site-packages/numba/cuda/cudadrv/driver.py", line 610, in clear
    dtor(handle)
  File "/home/kirilly/mvx_env/lib/python3.6/site-packages/numba/cuda/cudadrv/driver.py", line 294, in safe_cuda_api_call
    self._check_error(fname, retcode)
  File "/home/kirilly/mvx_env/lib/python3.6/site-packages/numba/cuda/cudadrv/driver.py", line 329, in _check_error
    raise CudaAPIError(retcode, msg)
numba.cuda.cudadrv.driver.CudaAPIError: [700] Call to cuMemFree results in UNKNOWN_CUDA_ERROR

environment:
sys.platform: linux
Python: 3.6.9 (default, Jan 26 2021, 15:33:00) [GCC 8.4.0]
CUDA available: True
GPU 0,1,2,3: GeForce GTX TITAN X
CUDA_HOME: /usr/local/cuda-10.2
NVCC: Cuda compilation tools, release 10.2, V10.2.89
GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.5.0
PyTorch compiling details: PyTorch built with:
  - GCC 7.3
  - C++ Version: 201402
  - Intel(R) Math Kernel Library Version 2019.0.5 Product Build 20190808 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v0.21.1 (Git Hash 7d2fd500bc78936d1d648ca713b901012f470dbc)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - NNPACK is enabled
  - CPU capability usage: AVX2
  - CUDA Runtime 10.2
  - NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_37,code=compute_37
  - CuDNN 7.6.5
  - Magma 2.5.2
  - Build settings: BLAS=MKL, BUILD_TYPE=Release, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -DNDEBUG -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_INTERNAL_THREADPOOL_IMPL -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_STATIC_DISPATCH=OFF,

TorchVision: 0.6.0
OpenCV: 4.5.1
MMCV: 1.3.1
MMCV Compiler: GCC 7.5
MMCV CUDA Compiler: 10.2
MMDetection: 2.11.0
MMDetection3D: 0.12.0+f7356f4

Strange that cuda not detected by the script, but the training works fine.
Can you please tell me what could be the issue? Where is better to look?
Thank you for the help!!!

It's hard to tell what's the problem from these error reports. It seems to me that your environment is fine. Can you try to train MVXNet on a dataset that we provide and use our configs (e.g. KITTI)? If this also crashes, then maybe your installation of MMDet3D has some problems. If this works, then maybe the label of your custom dataset has some errors.

According to #476, it seems that you can train MVXNet smoothly on KITTI using our data and scripts? Then I guess something is wrong with your custom dataset. Can you provide some information about your data?

@Wuziyi616 yep, I have solved the previous ones, and now the training works for a few epochs.
I am converting my dataset to Kitti format, so that it is fully compatible with Kitti. And then train MVXNet as it is a Kitti dataset.

@Wuziyi616 I have now found some samples which have empty label files (no objects on the picture), could it cause the error?

@Tai-Wang Can you kindly check this issue? As I am not familiar with outdoor LiDAR dataset.

@Wuziyi616 I have now found some samples which have empty label files (no objects on the picture), could it cause the error?

I have not ever encountered this problem. Maybe you can remove those samples and have a try, which sometimes causes some problems when training 2D detectors. Also please try to adjust the learning rate (use smaller learning rate) or optimization strategy. It is another common reason leading to the divergence of training losses.

@Tai-Wang thank you! I will try :)

@manonthegithub hi, have you solved this problem? I meet a similar problem. I train my model on the Waymo Dataset and the loss drops smoothly for the first 4 epochs. the loss suddenly rises and the training program crashes.
``

Hey @XiwuChen,
I just reran the training. It happened for me every 5th or so time (I mean every 5th training or so).

Setting a lower learning rate could solve this problem. I set the lr=0.0001 which works fine.

I faced similar error while training MVX-Net on KITTI. I used the provided config file, but with sampled_per_gpu = 1 (having only 11GB of VRAM on single GPU). Lowering the LR to 3e-4 seemed to stabilize training.


fix: clarify "Replace" in I-D submission form

Update help text In the "Replacement Information" section of the "Status" tab to fix #8059

Thanks for pushing on this. Some thoughts below:

An I-D submission will be automatically attached to the previous version of the I-D with the same name, or assigned "-00" version if no previous version exists. If this submission is intended to replace an I-D with a different name (e.g. when an individual I-D is adopted as a Working Group document), please enter that name here. (Approval required to replace an I-D for which you are not an author.)

The first sentence doesn't work for me - it sees to imply "-00" is a thing that happens at this point, but -00 was chosen by the submitter long before the submitter gets to this form.
I also don't think "automatically attached to a previous" is what happens, or is the right model of what's happening for other people to build. Instead, we need to reinforce that there are versions of an Internet-Draft, and that an Internet-Draft might get replaced with some other Internet-Draft(s).
Maybe imperative statements rather than explanation would work better? My alternate suggestion:

Do not enter anything here if you are only submitting the next version of your Internet-Draft. Only enter items here if this submission is intended to replace an I-D with a different name. A typical use of this field is to note what individual I-Ds are replaced by a new -00 Working group I-D. Note that additional approval will be required to replace an I-D for which you are not an author.

mph - just spotted that you're merging back into your fork's main. That will be painful for you in the long run. I'll followup with you on it offline.
For anyone else that may stumble across this - it's better to leave main in your fork alone - sync it with ietf-tools/main periodically. Build your PRs in another branch.


Damage dropping not working as intended

When I drag damage to a hex, it should apply damage to that character. I understand if there is more than one character in the hex. But there isn't. And it asks who I want to apply it to. Here, that's not so bad--it's easy enough to see the difference. But when you have five guys named "Guard" it can be maddening. Yeah, the workaround is to give everyone different names, but the problem is it shouldn't be doing that.
discord link with video example

Current proposal:

When drag damage on token, open ADD (Apply Damage Window)  for that token.
If you have multiple targets selected, open ADD for each of one of them.
AAD will show now the token image and name.
If you drag to a empty space, do nothing, and show a warning.
If you want to use the old behavior, disable the On drag, apply damage to selected token in settings.

Example

New settings option

Simple ADD Example

Please let me know if this helps with the issue.

Yes, I think that would help. Previously, dragging worked just as above, but something happened that affected the hex boundaries or something, so the game now gets confused and thinks everyone surrounding the damaged token is in the hex you dragged it to (even though there's only one guy in that hex).
So, in your GIF, right now, if I drag that damage to MacChicun, it asks me if I want to apply it to MacChicun, or any adjacent tokens.

I guess it requires you to select the token first under this proposal?

Which shouldn't be a huge issue because as the GM, I probably just had it selected to make a defense roll, which fails.

You don't need to select the token before dragging, only if you want to open multiples ADDs at once.

I found the source of the original bug -- how Foundry selects tokens changed somewhere along the way. The new fix will correctly only try to apply damage to any token under the mouse pointer at the point of dropping the damage. It no longer incorrectly selects nearby tokens.

Yeeeeeeeha! Can't wait for the new release, looks like a lot of cool stuff
in there.
On Sun, Nov 24, 2024 at 5:20 PM Nick Coffin, PI @.***>
wrote:

I found the source of the original bug -- how Foundry selects tokens
changed somewhere along the way. The new fix will correctly only try to
apply damage to any token under the mouse pointer at the point of dropping
the damage. It no longer incorrectly selects nearby tokens.
—
Reply to this email directly, view it on GitHub
https://github.com/crnormand/gurps/issues/2007#issuecomment-2496271592,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALDN5UQLO2UAFXEH2ZZ7KVT2CJGMDAVCNFSM6AAAAABQLPF3GCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJWGI3TCNJZGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

This took way too long. I blame GenAI.

@chrismaille Did your fix include updates to the code that selects the token under the mouse pointer? It is not clear in your description above.

Yes, when using the fixed code, system will look for the token at the cursor's point. You only need to "target" tokens if you want to open one ADD for each token at once.


Some learnings / questions while building a CSI driver

Leaving these here, so I can get some feedback if someone else stumbles across these:
Learnings:

I can create volumes in the cluster without the plugin I refer to existing
I can't delete volumes that are active calling docker volume rm
I can drain a volume that is pending creation
To debug plugins, nerdctl is useful to exec into the plugin container. You can list plugin containers with nerdctl ps --namespace plugins.moby
To debug via logs (without filtering the docker engine log), you can change the entrypoint in the config.json to forward the logs to a file, then use nerdctl exec to exec into the container to get the logs

  "entrypoint": [
    "/bin/sh",
    "-c",
    "exec > /stdout 2> /stderr /plugin/aio.bin"
  ],

All managers have to have the plugin installed (especially the leader) for CSI calls to work

Unsure if these are bugs:

I can't delete a drained volume that is pending creation, I have to specify "-f"

Features that seem to be missing in the CSI support:

Volume resizing (docker volume rm -f bypasses the plugin alltogether, useful for manual volume resizing - unclear if this is expected behaviour)

@olljanat maybe moving the discussion about debug logs here, as this is useful for others as well. Did you find a way to access the plugin logs besides forwarding them to a file like I did above?
If there is no better way, I am thinking about using the mounts section of the plugin config.json to mount log files and simply append to those. This will require some log rotation logic then...

@s4ke if you don't forward logs anywhere they appear to docker engine own log.

Okay, this makes things easier then. I was under the impression that this didnt work this way, but this could have been a fluke due to debugging errors

@s4ke if you don't forward logs anywhere they appear to docker engine own log.

I think I told you this in Discord as well :laughing:


(#12403) Always create a default log destination

This patch series removes duplicate log setup code and ensures we always have a default log destination, even if the syslog feature is not present, e.g. puppet agent on Windows.

Other than the question above, this passes tests and is ready to merge.


no vsix file under releases

The installation documentation asks to download some vsix file from releases but the location is empty.
In order to build the vsix on one's own some prerequisites should be mentioned (e.g. installation of npm and then vsce, see https://code.visualstudio.com/api/working-with-extensions/publishing-extension).

Ohh yes, the CI is not yet set up correctly.
There is a release right in the code:
https://github.com/open-needs/open-needs-ide/blob/main/sphinx-needs-ext-0.0.8.vsix
But for sure this will change for future. So I keep this issue open, until we have a correct documented place for our releases.
Thanks for reporting :+1:

The delivered release is outdated as it displays to be a "Bosch" and not an "Open-Needs" extension. Morover the version number in setup.py is still 0.0.7 which should read 0.0.8 instead. After fix and sucessfull rebuild of the vsix one gets one step further though there might be additional issues, that require investigation.

Thanks for the details and the investigation.
I will try to fix them this week.

for Python we should store the version under a versions.py file and import it for package and setup.py.

This should all be fixed now with https://github.com/open-needs/open-needs-ide/pull/10 and PRs before.
The VS Code extension is now available on the marketplace and should be installed from there.
Docs got updated.
A fix for version matching is also added. It's not nice, but it works.
In future I would create common releases for the VS Code extension and the needls server.
So that e.g. both have the version 0.1.4 and only this combination is supported.
This makes it quite easy and we do not need to maintain compatibility lists.
As the installation of extension and needls is automated for the user, I see no important drawbacks.
For testing, the default way of using an "Extension Host" is implemented.
Debugging, setting breakpoints, watching the logs all works and is documented on the contribution page.
Also the CI executes this already, so that tests can now be written and get automatically executed on each PR.
So I think this issue can be closed :)


LDAP auth won't search subtrees

I'm experiencing an issue that would prevent me from being able to use LDAP auth on shipyard in a large enterprise.  The code is not structuring the LDAP queries such that the domain subtree is being searched which means that users in subtree cannot not log in.
Example:

There exists an account "CN=bob,OU=Atlanta,OU=Offices,DC=company,DC=com"

Set shipyard ldap-base-dn to "DC=company,DC=com".

When attempting to log in the following error is displayed: "LDAP Result Code 49 "Invalid Credentials": 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1\x00""

Change the ldap-base-dn value to "OU=Atlanta,OU=Offices,DC=company,DC=com".

Login is successful.

+1

+1

+1

+1

I was able to get around this with Active Directory before the Shipyard 3.1 release but 8edbeac7637d64fe59194a2adcc28f8ed043c339 broke it.
Pre 3.1 the LDAP logic by default would bind on essentially cn=${username},${ldap-base-dn}  But there was an undocumented option to put the string "{username}" in your ldap-base-dn in which case it would not prepend the cn= and just bind with the ldap-base-dn.
In active directory there are two ways that you can bind.  Either with a full DN or else with<EMAIL_ADDRESS>This meant that you could use<EMAIL_ADDRESS>as your ldap-base-dn and then any user that can bind to LDAP would be able to login (provided that you had created their account or enabled the auto create account setting).
Ideally Shipyard should have three more options.  ldap-bind-dn, ldap-bind-password, and ldap-search-filter.    That way the bind is done with the service account and we could provide an ldap query that returns the DN of the user wherever it exists in the search tree.  In this case ldap-base-dn shouldn't have anything to do with generating the user's DN it should just be the base of the search.


Fix crash due to invalid notify address for <IP_ADDRESS>5

Thanks to @rotech for pointing out the correct address.
I've tested this via config file /opt/etc/rm2fb.conf as explained here and it does get rid of the crash.

@ddvk or @raisjn


Inconsistent error position

The "unexpected property" error can either appear on the property or on the parent depending on if there is a value.  It should be consistent and preferably on the property

ext install ms-azure-devops.azure-pipelines

Fixed in https://github.com/microsoft/azure-pipelines-vscode/releases/tag/v1.155.0


Uploading a new movie

When i try to upload a new movie i get this error:

and no movie is uploaded
how do i upload movies in a different way, like manually?

Hey Fabio,
Thanks for looking out on my repository. I think there is an error with either the title and description that causes the Unexpected token '<', "br/>" stuff. Try to make a new content and put in just enough title and description without newlines or anything it should fix that error. Apparently this repository does not support uploading movies in a different way like manually.
Maybe if you could provide me with the JSON request payload via the Network Developer Tools that would be great!

ok, I understood the problem
this is the (not) json response
`Warning: POST Content-Length of 909955115 bytes exceeds the limit of 104857600 bytes in Unknown on line 0
Warning: session_start(): Session cannot be started after headers have already been sent in /var/www/html/index.php on line 3
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 100212768 bytes) in /var/www/html/Router/Router.php on line 54`
Indeed a small video works fine...
How do I change the file size limit?

Ok, I changed php.ini upload_max_filesize  and post_max_size  to 2GB, anyway the error should be catched in the php to return a valid json

Ah yes, missed about the limit size. Thanks for pointing it out.


[5.1] Add support for "always on" pipes to the (Job) Bus Dispatcher

I've been using the Bus Dispatcher as a command bus, and I'm trying to find a way to log every command (Job) upon dispatch. I've been doing the following, for example:
 public function store(CreateThing $createThingJob, BusDispatcher $busDispatcher) {
     $thing = $busDispatcher->pipeThrough([CommandLoggingPipe::class])->dispatch($createThingJob);
//...

As my application has a lot of Jobs, it's a bit cumbersome to call pipeThrough() with my logging pipe on every dispatch(). Instead, it would be really nice to be able to declare a set of pipes that can be used on all Jobs, while maintaining the existing pipeThrough() functionality, so that additional pipes can be added on a per-Job basis. So, then I could have a ServiceProvider where these "always on" pipes are configured:
final class JobsServiceProvider extends ServiceProvider
{
    public function boot(BusDispatcher $busDispatcher)
    {
        $busDispatcher->alwaysPipeThrough([CommandLoggingPipe::class]);
    }
//...

I was unable to find any Job-related events (outside of those that are queued), which I could listen for. So I came up with this solution, adding an alwaysPipeThrough() method to the Dispatcher and its corresponding contract.
I'm interested in getting feedback on this. Perhaps I've missed something that already provides this functionality, or maybe there's a better way?

Please send new features to 5.2, and you must not modify the contract on 5.2 because that's a major breaking change.

We already have "always pipe through" already though btw?

I have middleware setup for my commands and i onlt define it in one place.

Just call:
$dispatcher->pipeThrough([ValidatingMiddleware::class, ThrottlingMiddleware::class, LockingMiddleware::class]);

in the boot method of one of your service providers, only, with the middleware you want.

That will do the same thing you wanted from here won't it?

Looks like you've been missing pipe through to me, because it already behaves like always pipe though?

@GrahamCampbell Look at the way pipeThrough() works.

You're only meant to call it once in a service provider, and never again.

You're never meant to chain dispatch onto pipeThrough, because it's changes are persisted to the next call too.

I'd recommend designing you're command middlewares so they know how to skip commands that don't want them running on.

@GrahamCampbell, ah ok, well it wasn't entirely clear from the code comments that pipeThrough() was only ever intended to be used once in a ServiceProvider. As there's no mention of using the Pipeline with Jobs in the current documentation, I'd suggest adding this back to the Queues section: https://laravel.com/docs/5.0/bus#command-pipeline


Remove unused AVATAR_FROM_SYSTEM

In zerver/lib/export.py Steve left a comment in August saying:

NOTE: There is an avatar source called AVATAR_FROM_SYSTEM, but I'm not sure we support it any more

The only other places in the source code that mention AVATAR_FROM_SYSTEM are the models.py database definition (a system-generated avatar) and the test_get_system_generated_avatar test in zerver/tests/test_upload.py. I looked around to try to find whether/where Zulip generates avatars but I'm not seeing anything. Is this now obsolete, and if so, shall we remove the database definition and the test?

Yeah, this is not needed, I'll just remove it.


[fix] Capture Anemoi Training subcommands in MLFlow

This modifies the sys.argv to contain the subcommands as soon as it is passed to hydra.

What happened to the PR template?

What happened to the PR template?

We didn't have one for anemoi yet.


Mismatching of rebalancing frequency and the return in training dataset in benchmark_dynamic examples

❓ Questions and Help
In the benchmark_dynamic examples (Rolling and DDG-DA), the model are trained against 20-day returns (i.e. $Ref(close, -20)/$Ref(close, -1)). However, in backtesting the rebalancing frequency is still 1 day. Looks like a mismatch here. To my understanding, if model are trained against 20-day return, the rebalencing frequency should also be 20 days to ensure that each stock held realizes its 20-day return.
Any consideration here?
Thanks!

Thanks @Fivele-Li. Looks more tests needed to figure out how to get best performance.

how to adjust the rebalancing frequency is still not resolved?


[Gekidou - MM-44939] Search Screen - Add File Options Bottom Sheet

Summary
This PR adds the File Options bottom sheet.
TODO

[ ] Add File Type to info (ex. PDF)  Leaving out. Same as in the file Card.

Long filenames are limited to two lines.

Ticket Link

Checklist

[ ] Added or updated unit tests (required for all new features)
[ ] Has UI changes
[ ] Includes text changes and localization file updates
[ ] Have tested against the 5 core themes to ensure consistency between them.

Device Information
This PR was tested on:
Screenshots

Release Note

closing this PR and branching from the latest filecard PR https://github.com/mattermost/mattermost-mobile/pull/6385


Deactivating all schemas of a service doesn't deactivate the service

Hello,
I noticed a behaviour that seems a bit odd when it comes to deactivating schemas and was wondering if I was missing anything.
There are two levels of is_active flags in the data model of the registry, one at the schema level and the second one at the service level. When deactivating all schemas of a given service, the service level is_active flag stays set to true. The consequence of that is that inactive schemas still get picked and considered when building the federated graph, because the initial query issued for building the federated graph looks at the service is_active flag, not the schema level one.
Intuitively, I would have expected that inactive schemas don't get considered when building the federated graph. Is my assumption wrong?
If not, I would see the following two potential solutions.

When the last active schema gets deactivated, the service level is_active flag should be set to false.
Or, when building the federated graph, a join on the schema table is added to the query with an accompanying where on the schema is_active flag in order to filter out deactivated schemas.

It seems to me that option 1 would be preferable, and would involve no joins, and otherwise I don't see much use to the service level is_active flag. I see in the code there is a toggleService function that isn't used, maybe it was the intent to flip the service flag when deactivating the last schema?
Let me know what your thoughts are. If what I'm describing makes sense, I could submit a PR for either option.
Thanks
Etienne

Hey, thanks for noticing. We initially added flag on schema for scenarios when you need to disable schema temporarily in production without redeploying the service and for some complex rolling deployment cases where part of the schema gets moved between services. We don't use these flags much however.
I think nr 1 has a bit more complexity with state to it, as you need to count all schemas on deactivation and activation.
Whereas nr 2 always adds some performance footprint with a join.
But JOIN is needed anyway - https://github.com/pipedrive/graphql-schema-registry/blob/16d6ed954ef3c1f4eac1634cf0c156dc544b2219/app/database/schema.js#L56 so I think its a matter of just checking that flag in WHERE part

Ok, thanks for the background info. I will get going on a PR for option 2. To summarize, when fetching active services for building the federated graph, I will add a join on the schema table with a where schema.is_active=true clause. Services which have no active schemas will be considered effectively inactive, which should prevent them from being considered when building the federated graph.

Hello @tot-ra ,
Here's the PR for the change, seems to work with the tests I have done:
https://github.com/pipedrive/graphql-schema-registry/pull/37
In my tests, I didn't many schemas/versions in my registry DB, so the join I have added works fine. In our production environments, we might end up with many rows in the container_schema table, as we do many deployments of our graphql services each resulting in a new entry in this table, even though there was no actual schema change. We'll have to monitor response times on our end and see if they stay reasonable.

Any feedback on the PR?

Hello @tot-ra , friendly reminder to review this PR. Thanks

PR was merged, closing this issue. Thanks @tot-ra !

Hi i have tried the  logic present in examples/gateway_service_managed_federation when ever there is no service it shows internal error in playgroud present in cache...After adding one service playground is reflected but after deleting it . It still shows


Selenium2 driver to accept unexpectedAlertBehavior option

@stof, I have applied your suggestion, can you please merge the PR?


Body of water identified as "Occum Pond" in Hanover, NH should be "Occom Pond"

I don't understand.  Are you referring to a particular source?

From the map on https://openaddresses.io/ homepage -- the body of water labeled "Occum Pond" in Hanover, NH should be spelled "Occom Pond"

The map on our homepage has OpenStreetMap data in the background. If you'd like to fix it, you can login at https://openstreetmap.org and fix it yourself! If you'd like one of us to do it, I'm sure we would be happy to.

Left a note at OpenStreetMap awaiting verification. Thanks!


SA1514 (A documentation comment must be preceded by a blank line...) should not be reported when immediately preceded by a single line comment on a method body

Hi,
using Beta 6, I'm experiencing a similar issue (SA1514) for following code snippet:
public override bool SomeMethod() => true; // some comment

/// <summary>
/// ...
/// </summary>
public override void SomeOtherMethod()
{
}

Best regards,
Ralf

Grabbing this.


Adding ws0010 and winstar_weh drivers

Added ws0010 driver (and related winstar_weh) driver.  Should resolve #294

I have tried testing this branch with my WEG010016A display, but I couldn't get it to work. I'm not 100% sure I'm wiring it up correctly, or maybe there's an issue with the code.
This is the python I'm using:
from luma.core.interface.serial import parallel
from luma.core.render import canvas
from luma.oled.device import ws0010

p = parallel(RS=7, E=8, PINS=[25,24,23,27])
d = ws0010(p)
d.text = 'HELLO'

I'm wiring up my display like the following:

WEG010016A
Raspberry Pi

Pin 1 (GND)
GND

Pin 2 (5V)
5V

Pin 4 (RS)
GPIO 7

Pin 5 (R/W)
GND

Pin 6 (E)
GPIO 8

Pin 7 (DB0)
GPIO 25

Pin 8 (DB1)
GPIO 24

Pin 9 (DB2)
GPIO 23

Pin 10 (DB3)
GPIO 27

I'm assuming I don't have to use all 8 data bus pins on the display, but I can't find any documentation anywhere suggesting one way or another.

@GRA0007 could you be more specific? Did it just not display anything or did you see an error?
Maybe try putting a time.sleep(10000) at the end? The display driver will shutdown And cleanup the display once a program exits

@rm-hull Sorry, yeah it simply doesn't display anything at all. I did try sleeping after, and I tried just in the live python interpreter too to no avail.

@GRA0007 will the device run on 3.3V? reason i ask is because the GPIOs are all at 3.3V levels but you are supplying power at 5.0V, and it may be that you might need to use a voltage level shifter. I haven't looked at any tech-specs for these devices so i dont know for sure.
Actually that reminds me, @dhrone could you add any spec PDF's for the devices to the docs (https://github.com/rm-hull/luma.oled/tree/master/doc/tech-spec) and make references to them in the intro docs (see https://github.com/rm-hull/luma.oled/blob/master/doc/intro.rst). It would also be good to elaborate on the hardware setup too for the parallel interface (see https://github.com/rm-hull/luma.oled/blob/master/doc/intro.rst)

@GRA0007  Very close but your wiring is off.  When in 4 bit mode which is the default, the four PINS should be attached to data lines db4-db7 not db0-db3.  @rm-hull this display requires 5Vs.  There is a good document on the ws0010 at pixace.com and the pinout data is at the winstar site.    @GRA0007, this the wiring diagram you should use...

WEG010016A
Raspberry Pi

Pin 1 (GND)
GND

Pin 2 (5V)
5V

Pin 4 (RS)
GPIO 7

Pin 5 (R/W)
GND

Pin 6 (E)
GPIO 8

Pin 11 (DB4)
GPIO 25

Pin 12 (DB5)
GPIO 24

Pin 13 (DB6)
GPIO 23

Pin 14 (DB7)
GPIO 27

@dhrone omg thank you so much! Using pins 4-7 is a bit unintuitive, and I couldn't find that documentation anywhere. It's working perfectly now. I'll keep testing and report back if there are any issues, but it looks great. Thanks again :D

@GRA0007 glad to hear and somewhat relieved.  These parallel-bus devices can be difficult to debug when there are issues...
One feature you may want to play with is the ability to combine fonts to produce a font that contains symbols which are missing from the one you have selected.  The combine method is part of the embedded_font class.  The ws0010.font instance variable is an embedded_font object.  So you can combine the font tables (or other fonts) to form versions that fill in for missing symbols.  For examples...
  from time import sleep
  p = parallel(RS=7, E=8, PINS=[25,24,23,27])
  d = ws0010(p, selected_font='FT01')
  d.text = '\u25b6 Play'
  ft11fnt = d.get_font('FT11')
  d.font.combine(ft11fnt, '\u25b6')
  sleep(2)
  d.text = '\u25b6 Play'

In the first d.text command, the Unicode symbol u25b6 (Black right-pointing triangle) does not exist in the selected font (FT00) so the undefined character is displayed instead.  But once the selected font has been combined with the FT11 font it can display the character.  Note, the second parameter to the combine method allows you to select which characters to move from the source font.  If you leave this out, every character (at least the ones with unicode values mapped to them) will be moved.

@GRA0007  I was just reading up on the specifications for the weg010016 and there is some ambiguity in whether it will run with 3.3v or requires 5v.  Have you ever attempted to run it at 3.3v?  If it will run at 3.3v that will be safer for the RPi as the docs suggest that the voltage on the data pins can be as high as VDD so if we're supplying 5Vs we may get that back.  Having said that though, I've been running these displays at 5Vs on RPis for a long time with no ill effects.  That might relate to the fact that I only use them in write-mode with RS held low by tying it to ground.

ps. @rm-hull can you invite @dhrone to the github team/collaborators?

@dhrone is luma.oled ready for a new release or should we hold off till these potential luma.core import changes?

@thijstriemstra for some reason I thought this had already been published.  Since it has not, I'd hold up for a few days until I can make the changes to luma.core and also go through the documentation of both luma.lcd and luma.oled to make sure they are consistent.


⚠ Guya.moe Proxied has degraded performance

In de0f5a9, Guya.moe Proxied (https://ice.guya.moe/) experienced degraded performance:

HTTP code: 200
Response time: 13329 ms

Resolved: Guya.moe Proxied performance has improved in 2f32aa5 after 54 minutes.


Can not run JavaScript via Page.EvaluateAsync

System info

Playwright Version: [v1.41.1]
Operating System: [Windows 10]
Browser: [MS Edge version 120]
Other info:

Source code

[ ] I provided exact source code that allows reproducing the issue locally.
public async Task

Call_JS_Code(string url1, string user1)
        {
            // Get the cookies for the user
            {
                Debug.Print (All_Cookies);
                // Define the JavaScript code
                string script = @"
            new Promise((resolve, reject) => {
                var xhr = new XMLHttpRequest();
                xhr.open('GET', '" + url1 + @"', true);
                xhr.setRequestHeader('Cookie', '" + All_Cookies + @"');
                xhr.onreadystatechange = function () {
                    if (xhr.readyState == 4 && xhr.status == 200) {
                        resolve(xhr.responseText);
                    }
                };
                xhr.onerror = reject;
                xhr.send();
            });
        ";
                // Run the JavaScript code
                string result = await _Page.EvaluateAsync<string>(script);
                return result;
        }

Link to the GitHub repository with the repro
[https://github.com/your_profile/playwright_issue_title]
or
Test file (self-contained)
using System.Threading.Tasks;
using Microsoft.Playwright;

using var playwright = await Playwright.CreateAsync();
await using var browser = await playwright.Chromium.LaunchAsync();
await using var context = await browser.NewContextAsync();
var page = await context.NewPageAsync();

Steps

[Run the test]
[...]

Expected
[Describe expected behavior]
But what I really want to write some C# code with playwright to store a cookies and headers, around 60 cookies and about 10 headers, and run the first JavaScript from WinForms project.  It should run XHR JavaScript get request and return the fetched data
Actual
I got run time errors:
System.Reflection.TargetInvocationException
HResult=0x80131604
Message=Exception has been thrown by the target of an invocation.
Source=System.Private.CoreLib
StackTrace:
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in System.Reflection\MethodBaseInvoker.cs:line 125
at System.Delegate.DynamicInvokeImpl(Object[] args) in System\Delegate.cs:line 55
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in System.Threading\ExecutionContext.cs:line 154
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) in System.Threading\ExecutionContext.cs:line 154
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, MessageId msg, WPARAM wparam, LPARAM lparam)
at Windows.Win32.PInvoke.DispatchMessage(MSG* lpMsg)
at System.Windows.Forms.Application.ComponentManager.Microsoft.Office.IMsoComponentManager.FPushMessageLoop(UIntPtr dwComponentID, msoloop uReason, Void* pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
at PlaywrightJSBalanceForm.Program.Main() in D:\GlaxyBet\1Xbit\PlaywrightJSBalanceForm\PlaywrightJSBalanceForm\Program.cs:line 14
This exception was originally thrown at this call stack:
Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync(Microsoft.Playwright.Transport.ChannelOwner, string, System.Collections.Generic.Dictionary<string, object>, bool) in Connection.cs
Microsoft.Playwright.Transport.Connection.WrapApiCallAsync(System.Func<System.Threading.Tasks.Task>, bool) in Connection.cs
Microsoft.Playwright.Core.Frame.EvaluateAsync(string, object) in Frame.cs
PlaywrightJSBalanceForm.Form1.Call_JS_Code(string, string) in Form1.cs
PlaywrightJSBalanceForm.Form1.BTNBalance_Click(object, System.EventArgs) in Form1.cs
System.Threading.Tasks.Task.ThrowAsync.AnonymousMethod__128_0(object) in Task.cs
System.Reflection.MethodBaseInvoker.InvokeWithOneArg(object, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo) in MethodBaseInvoker.cs
Inner Exception 1:
PlaywrightException: Execution context was destroyed, most likely because of a navigation.
[Describe actual behavior]
More explanation what I am doing now:
I can do the following: I launch MS Edge browser to visit: https://www.bing.com/
Then open developer tools, in the console tab, I can write the following JavaScript:
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://www.bing.com/search?q=playwright', true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 200) {
console.log(xhr.responseText);
}
};
xhr.send();
But what I really want to write some C# code with playwright to store a cookies and headers, around 60 cookies and about 10 headers, and run the first JavaScript from WinForms project.
The All_Cookies are a long string containing many cookies name and values, like this:
is_rtl=1; v3fr=2; lng=fr; flaglng=fr; view=0; tz=2; _gid=GA1.2.1917113579.1705522091; _ym_uid=1705522091738494561; _ym_d=1705522091; __adm_tid=v1.0.13084392008.12389340447; sh.session.id=2d5dff83-853c-40aa-aa8a; etc...
All those cookies can only be obtained after I login to one web page, and the JavaScript XHR requests need all those cookies to get some data.  After I login to web site, I can open developer tool and find many HTTP GET or post request, as long as I have set the correct cookies and header, the JavaScript will usually work; but from testing in MS Edge console tab in DevTools; it seems, the console doesn’t recognize resolve or reject or even xhr.onerror; but it recognize xhr.send().
But I can not run this JavaScript, when I run my C# code in WinForm project, I always got this error:
I have to use JavaScript XHR request, because in C# httpclient request, cookies from some domain names are not allowed, as those domain name start with ”.”; like ”.1xbit.com”; but only those domain name like this works: "1xbit.com".  But from some HAR file, I can see all the JavaScript XHR requests used about 1/3 of cookies whose domain name start with ”.”.
Any suggestion on how can I make the _Page.EvaluateAsync works?
By the way, I tried to use the discord channel to report the issue, but I was not allowed to speak!

This issue is not following the issue template, hence I'm closing it for now. If you have a reduced test case, which we can easily run locally e.g. a small script with expected / actual, we can take a look. Thanks for your understanding and feel free to re-file.

I am having the same issue. Below code use to work on v1.37 but after upgrading to 1.41 it returns wrong locale.
var cultureName = Page.EvaluateAsync(@"() => {
return window.navigator.languages ? window.navigator.languages[0] : window.navigator.userLanguage || window.navigator.language || navigator.language || navigator.userLanguage || navigator.browserLanguage || navigator.systemLanguage || '';
}").Result;
1.37 use to return the correct browser culture (en-GB), after upgrading it always returns en-US
Regards
Toshan

Looks like a different issue, I recommend filing a new issue.


Provide background information or links regarding -shm and -wal files

I have found that 3 files are created, my "mydatabase.db", along with "mydatabase.db-wal" and "mydatabase.db-shm". I have only run across this in an attempt to backup the database. I am unable to simply copy "mydatabase.db" to the file system, as all changes are sitting in wait, in the -wal file. Even using db.close does not resolve this. Please provide best practices for opening and closing the database or how to get rid of wal file by using exclusive access. I am using all async calls. the -wal and -shm files are created immediately upon creating the database per these instructions. This is all being done on iOS simulator. The instructions here are helpful, but don't provide Xamarin/C# instructions. https://www.sqlite.org/walformat.html. Thank you.

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

ID: 3ab6098a-39c7-151f-124b-f88aa62c4659
Version Independent ID: dc27c1e4-ff12-c1af-646a-c2617def0bcd
Content: Xamarin.Forms Local Databases - Xamarin
Content Source: docs/xamarin-forms/app-fundamentals/databases.md
Product: xamarin
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Hi @robinne, my first suggestion would be to always test on an actual device rather than the simulator. You will get different behavior in the simulator.
Low-level details of SQLite are beyond the scope of our documentation.
The question about closing connections so the database file can be copied is a good one, we'll consider adding that in a future update of this content.

Actual device also uses wal file because when I export the .db file to iOS "Files", same issue, no data or very old data. Close() worked once, but never again (to flush the WAL file). This code did work:
var x = DependencyService.Get().DBConnect();
x.ExecuteScalarAsync("PRAGMA wal_checkpoint(RESTART);", new string[] { });

Great, thanks for the additional info - appreciate it. I've added it to our backlog.


Release next update as a JAR

Just something I need to do.

Latest release now has a JAR available for download.


Add MIT License and Contributors section

Add MIT License and Contributors section to README.

Line 1 of license file still references Platformatec.
On Mon, Dec 31, 2018 at 9:51 AM Justin Craig-Kuhn<EMAIL_ADDRESS>wrote:

Add MIT License and Contributors section to README.
You can view, comment on, or merge this pull request online at:
https://github.com/jcraigk/phishin/pull/83
Commit Summary

Add MIT License and Contributors section

File Changes

A MIT-LICENSE
https://github.com/jcraigk/phishin/pull/83/files#diff-0 (20)
M README.md
https://github.com/jcraigk/phishin/pull/83/files#diff-1 (11)

Patch Links:

https://github.com/jcraigk/phishin/pull/83.patch
https://github.com/jcraigk/phishin/pull/83.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jcraigk/phishin/pull/83, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAHXZndwx9BP48lW6TVYWQ7qUhBxrOsTks5u-k6UgaJpZM4Zlk0c
.


Hard-coded llama pad_token_id in examples/text-generation/utils.py

System Info
- optimum-habana: 1.12.1

Information

[X] The official example scripts
[X] My own modified scripts

Tasks

[X] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[X] My own task or dataset (give details below)

Reproduction
I noticed the issue when running the example code in examples/text-generation/text-generation-pipeline/README.md with llama-3.1-8b-instruct:
cd optimum-habana/examples/text-generation/text-generation-pipeline

python run_pipeline.py \
    --model_name_or_path meta-llama/Meta-Llama-3.1-8B-Instruct \
    --max_new_tokens 10 \
    --batch_size 4 \
    --max_input_tokens 128 \
    --bf16 \
    --use_hpu_graphs \
    --use_kv_cache

If you look at these lines:
https://github.com/huggingface/optimum-habana/blob/59d182dfa9a4c0ba068a1fd118b96b8ff0057c96/examples/text-generation/utils.py#L403C1-L417
You can see that pad_token_id, bos_token_id and eos_token_id are hardcoded to 0, 1 and 2.
In the vocab file for llama3.1, these correspond to the characters !, \ and #.
Expected behavior
I am not sure how we want to handle the lack of a pad token for llama in the official examples. I wanted to raise this to your attention in case it is something that you wanted to change going forward.

@muhark Good catch and thanks for raising this issue! This is solved by https://github.com/huggingface/optimum-habana/pull/1444 that I just merged into main.


Release of version 0.9.1

@camunda-community-hub/devrel: please release version 0.9.1

Hi @VonDerBeck - I see that you updated the parent pom. We actually fixed some things there - so we could also enable auto releases. I double checked and haven't found anything staged from you to release - so I think it worked and your artifact got directly released. Let me know if not!
That means, from now on you can simply release on your own 🎉


Some build simplification, implement MQCSP auth

I recommend reviewing commit-by-commit.
Some relevant docs:

https://www.ibm.com/docs/en/ibm-mq/9.2?topic=mqcno-securityparmsptr-pmqcsp
https://www.ibm.com/support/pages/how-specify-userid-and-password-when-connecting-ibm-mq

The amount of C in the gem is a little bit worrying from a maintainability perspective. Any feeling for how many more modifications we're going to need before it's usable?

I agree. The only other thing I'm aware of right now is wrapping the blocking MQGET call in rb_thread_call_without_gvl, so we can use it in a multi-threaded Ruby process. But who knows what else we'll find once we start using it in anger.


Updated LoginViewController for MSA accounts

MSA accounts don't work w/o the openid scope.

@brandwe