text:
Unable to build packages assert next_token == "("

When trying to build any toltec package I am seeing this error:
$  make koreader
./scripts/package_build.py  "koreader"
Traceback (most recent call last):
  File "/var/home/alistair/sources/remarkable/toltec/./scripts/package_build.py", line 44, in <module>
    repo = Repo(paths.RECIPE_DIR, paths.REPO_DIR)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alistair/sources/remarkable/toltec/scripts/toltec/repo.py", line 56, in __init__
    self.generic_recipes[name] = GenericRecipe.from_file(
                                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alistair/sources/remarkable/toltec/scripts/toltec/recipe.py", line 45, in from_file
    return GenericRecipe(name, path, recipe.read())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alistair/sources/remarkable/toltec/scripts/toltec/recipe.py", line 58, in __init__
    variables, functions = bash.get_declarations(definition)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alistair/sources/remarkable/toltec/scripts/toltec/bash.py", line 147, in get_declarations
    assert next_token == "("
AssertionError
make: *** [Makefile:60: koreader] Error 1

It doesn't matter what package I build, I see the same error.
$ python3 --version
Python 3.11.0

bash --version
GNU bash, version 5.2.2(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Have you tried with python 3.8
https://github.com/toltec-dev/toltec/blob/stable/.github/workflows/pr.yml#L31

I think this has more to do with the bash version, since the error is coming from the bash “parser”. It works on my computer running Bash 5.1.1, perhaps they changed their output format in 5.2.2? @alistair23 Could you add a print(declarations) after line 123 of scripts/toltec/bash.py and give us some of the output? I get the following output for one recipe:
declare -- LINENO
declare -- MACHTYPE="x86_64-pc-linux-gnu"
declare -x OLDPWD
declare -- OPTERR="1"
declare -i OPTIND="1"
declare -- OSTYPE="linux-gnu"
declare -x PATH="..."
declare -a PIPESTATUS=([0]="0")
declare -ir PPID="4130"
declare -- PS4="+ "
declare -x PWD=".../toltec"
declare -i RANDOM
declare -- SECONDS
declare -- SHELL="/bin/zsh"
declare -r SHELLOPTS="braceexpand:hashall:interactive-comments"
declare -x SHLVL="1"
declare -i SRANDOM
declare -- TERM="dumb"
declare -ir UID="1000"
declare -- _="-f"
declare -- arch="rmall"
declare -a flags=([0]="patch_rm2fb")
declare -- image="python:v2.1"
declare -a installdepends=([0]="display")
declare -- license="MIT"
declare -- maintainer="raisjn <of.raisjn@gmail.com>"
declare -a makedepends=()
declare -a noextract=()
declare -- pkgdesc="Wordle clone"
declare -- pkgname="wordlet"
declare -a pkgnames=([0]="bufshot" [1]="dumbskull" [2]="genie" [3]="harmony" [4]="iago" [5]="lamp" [6]="mines" [7]="nao" [8]="remux" [9]="rpncalc" [10]="simple" [11]="wordlet")
declare -- pkgver="0.0.1-2"
declare -- section="games"
declare -a sha256sums=([0]="e7f0379d5ad9de61c32a296ab831780cfea73352fbccfe2472422165943457ef" [1]="SKIP" [2]="SKIP")
declare -a source=([0]="https://github.com/rmkit-dev/rmkit/archive/070d5df29a71e55050a5e993f047f1590d69ec1c.zip" [1]="remux.service" [2]="genie.service")
declare -- timestamp="2022-06-23T20:03:10Z"
declare -- url="https://rmkit.dev/apps/wordlet"

build ()
{
    cmake -B build -DCMAKE_TOOLCHAIN_FILE="/usr/share/cmake/$CHOST.cmake" -DCMAKE_INSTALL_PREFIX="/opt";
    cmake --build build
}
package ()
{
    install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/build/vnsee "$srcdir"/vnsee-gui;
    install -D -m 644 -t "$pkgdir"/opt/etc/draft/icons "$srcdir"/vnsee.png;
    install -D -m 644 -t "$pkgdir"/opt/etc/draft "$srcdir"/vnsee.draft;
    install -D -m 644 -t "$pkgdir"/opt/usr/share/applications "$srcdir"/VNSee.oxide
}
prepare ()
{
    patch -d "$srcdir" -p1 < "$srcdir"/vnsee-gui-set-path.patch;
    bsdtar --strip-components 1 -xf "$srcdir"/"$_boost_pp_ver".zip -C "$srcdir"/vendor/boost-preprocessor
}

This is the output
$ make koreader
./scripts/package_build.py  "koreader"
build ()
{
    rm .cargo/config;
    cargo build --release --bin appmarkable
}
package ()
{
    install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/target/armv7-unknown-linux-gnueabihf/release/appmarkable
}
declare -- BASH="/usr/bin/bash"
declare -r BASHOPTS="checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath"
declare -i BASHPID
declare -A BASH_ALIASES=()
declare -a BASH_ARGC=()
declare -a BASH_ARGV=()
declare -- BASH_ARGV0
declare -A BASH_CMDS=()
declare -- BASH_COMMAND
declare -a BASH_LINENO=()
declare -- BASH_LOADABLES_PATH="/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:."
declare -a BASH_SOURCE=()
declare -- BASH_SUBSHELL
declare -ar BASH_VERSINFO=([0]="5" [1]="2" [2]="2" [3]="1" [4]="release" [5]="x86_64-redhat-linux-gnu")
declare -- BASH_VERSION="5.2.2(1)-release"
declare -- COMP_WORDBREAKS
declare -a DIRSTACK=()
declare -- EPOCHREALTIME
declare -- EPOCHSECONDS
declare -ir EUID="1000"
declare -a FUNCNAME
declare -a GROUPS=()
declare -i HISTCMD
declare -- HOSTNAME="als-thinkpad-x1"
declare -- HOSTTYPE="x86_64"
declare -- IFS=$' \t\n'
declare -- LINENO
declare -- MACHTYPE="x86_64-redhat-linux-gnu"
declare -x OLDPWD
declare -- OPTERR="1"
declare -i OPTIND="1"
declare -- OSTYPE="linux-gnu"
declare -x PATH="/var/home/alistair/.cargo/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/home/alistair/.local/bin"
declare -a PIPESTATUS=([0]="0")
declare -ir PPID="39382"
declare -- PS4="+ "
declare -x PWD="/var/home/alistair/sources/remarkable/toltec"
declare -i RANDOM
declare -- SECONDS
declare -- SHELL="/bin/bash"
declare -r SHELLOPTS="braceexpand:hashall:interactive-comments"
declare -x SHLVL="1"
declare -i SRANDOM
declare -- TERM="dumb"
declare -ir UID="1000"
declare -- _="-f"
declare -a flags=([0]="patch_rm2fb")
declare -- image="rust:v2.1"
declare -a installdepends=([0]="display")
declare -- license="MIT"
declare -- maintainer="Linus K. <linus@cosmos-ink.net>"
declare -- pkgdesc="Front-end for apps that do not have a graphical user interface"
declare -a pkgnames=([0]="appmarkable")
declare -- pkgver="0.0.0-11"
declare -- section="devel"
declare -a sha256sums=([0]="76e151aeae0f18b206dd3c6258bf74bcb5256ee2f803e1ed2073278831158f60")
declare -a source=([0]="https://github.com/LinusCDE/appmarkable/archive/c44ee87ea2b1f1e41c9592476c076150c9a1acf4.zip")
declare -- timestamp="2021-03-10T18:36Z"
declare -- url="https://github.com/LinusCDE/appmarkable"

Traceback (most recent call last):
  File "/var/home/alistair/sources/remarkable/toltec/./scripts/package_build.py", line 44, in <module>
    repo = Repo(paths.RECIPE_DIR, paths.REPO_DIR)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alistair/sources/remarkable/toltec/scripts/toltec/repo.py", line 56, in __init__
    self.generic_recipes[name] = GenericRecipe.from_file(
                                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alistair/sources/remarkable/toltec/scripts/toltec/recipe.py", line 45, in from_file
    return GenericRecipe(name, path, recipe.read())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alistair/sources/remarkable/toltec/scripts/toltec/recipe.py", line 58, in __init__
    variables, functions = bash.get_declarations(definition)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alistair/sources/remarkable/toltec/scripts/toltec/bash.py", line 149, in get_declarations
    assert next_token == "("
AssertionError
make: *** [Makefile:60: koreader] Error 1

with this diff applied:
diff --git a/scripts/toltec/bash.py b/scripts/toltec/bash.py
index cb194e2..3617024 100644
--- a/scripts/toltec/bash.py
+++ b/scripts/toltec/bash.py
@@ -122,6 +122,8 @@ declare -p

     declarations = declarations_subshell.stdout.decode()

+    print(declarations)
+
     # Parse `declare` statements and function statements
     lexer = shlex.shlex(declarations, posix=True)
     lexer.wordchars = lexer.wordchars + "-"

shfmt’s upcoming 3.6.0 release will include both a way to build an AST for a Bash program (--to-json), and a way to generate a Bash program from an AST (--from-json). I think I’ll replace our primitive parser with that.

3.6 has been released, is it possible to update to use that?

At some point we need to switch over to using toltecmk to build the repo instead of maintaining two versions of the build code.

@alistair23 you indicated that you are still having issues with c-quoted strings when using the latest toltecmk version? Could you provide some further context?

Yeah, so running make doesn't work
$ make linux-mainline
./scripts/package_build.py  "linux-mainline"
Traceback (most recent call last):
  File "/var/home/alistair/sources/remarkable/toltec/./scripts/package_build.py", line 44, in <module>
    repo = Repo(paths.RECIPE_DIR, paths.REPO_DIR)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alistair/sources/remarkable/toltec/scripts/toltec/repo.py", line 60, in __init__
    self.generic_recipes[name] = GenericRecipe.from_file(
                                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alistair/sources/remarkable/toltec/scripts/toltec/recipe.py", line 46, in from_file
    return GenericRecipe(name, path, recipe.read())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alistair/sources/remarkable/toltec/scripts/toltec/recipe.py", line 59, in __init__
    variables, functions = bash.get_declarations(definition)
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/alistair/sources/remarkable/toltec/scripts/toltec/bash.py", line 147, in get_declarations
    assert next_token == "("
           ^^^^^^^^^^^^^^^^^
AssertionError
make: *** [Makefile:60: linux-mainline] Error 1

Running toltecmk directly does work though

Right, totlec doesn't use toltecmk yet, which was the comment I left. We still have to port the changes over to this repo. It's good to hear that toltecmk itself is working though.

authors: Eeems alistair23 matteodelabre


text:
Stable merge for week 29 of 2021

Important notices:

When upgrading, users should run opkg update && opkg upgrade twice because of the changes introduced by this merge. (#310)
Toltec no longer supports OS releases earlier than 2.6. You can check your current OS version in the settings panel. Please upgrade to 2.6 or newer after upgrading your Toltec install. (#366)
To re-enable Toltec after a system upgrade, run toltecctl reenable instead of the previous entware-reenable script that has been removed with this update.

Major change: The repository is now split into architecture subfolders. The rmall subfolder contains packages that can run both on reMarkable 1 and reMarkable 2 without modification. The rm1 and rm2 subfolders contain packages that are specific to each of the two devices. This change requires updating the Opkg configuration to point to the appropriate architectures. The migration is automated by placing an upgrade to the toltec-bootstrap package in the root folder of the repo that contains a migration script. (Note that this package is not generated automatically by our build system but will be added manually by the server administrator.)
New packages:

bash-completion - 2.11-3 (#277, #375)
display - 1.0.1-7 (replaces the server part of the old rm2fb package) (#310)
fuse - 1.0.0-2 (#331)
gocryptfs - 2.0-beta2 (#318)
innernet - 1.3.1-2 (#350, #358, #361)
netsurf - 0.4.0-1 (#339)
puzzles - 0.2.2-2 (#326)
remarkable-stylus - 0.0.3-1 (#383)
rm2fb-client - 1.0.1-7 (replaces the client part of the old rm2fb package) (#310)
tilem - 0.0.7-1 (#352)
toltec-completion - 0.2.0-1 (#277)
yaft - 0.0.4-3 (#261, #353)
zoneinfo-utils - 2021a-2 (#182)

Updated packages:

appmarkable - 0.0.0-11
bufshot - 0.1.0-5
calculator - 0.0.0-15
chessmarkable - 0.7.1-2 (#362, #373)
ddvk-hacks - 23.02-1 (#385)
draft - 0.2.0-20
evtest - 1.34-3
fbink fbdepth fbink-doom - 1.23.1-4
fingerterm - 1.3.5-14
genie - 0.1.5-3
harmony - 0.1.3-3
iago - 0.1.0-4
keywriter - 0.1.0-3
koreader - 2021.06-1 (#330, #348, #357, #378)
lamp - 0.1.0-4
libdlib libdlib-dev - 19.21-2
libvncserver libvncclient libvncserver-dev - 0.9.13-2
mines - 0.1.2-4
nao - 0.1.3-3
oxide erode fret rot tarnish decay corrupt anxiety - 2.2-1 (#382)
plato - 0.9.17-2 (#344)
quickjs - 2020.11.08-2
recrossable - 0.0.0-7
remarkable-splash - 1.0-5
remux - 0.1.9-3
restream - 1.1-2
retris - 0.6.3-3
rmservewacominput - 0.3.0-2
simple - 0.1.4-3
templatectl - 0.1.3-3
toltec-bootstrap - 0.1.0-1 (includes toltecctl) (#379)
vnsee - 0.4.0-2 (#355)
wikipedia - 0.1.0-3
wireguard - 1.0.20210219-2
xochitl - 0.0.0-7 (#383, #382, #386)
zshelf - 0.3.1-3

Website: The source files and scripts used for generating the website have been transferred to a separate repository (https://github.com/toltec-dev/web). A website rebuild is triggered automatically from this repository’s workflow when the stable branch is updated, so that the displayed checksum of the bootstrap script is always accurate.

The build artifacts are hosted at https://toltec-dev.org/stable-next to facilitate testing. Starting from an existing stable install, edit /opt/etc/opkg.conf and replace https://toltec-dev.org/stable with https://toltec-dev.org/stable-next to simulate the roll-out of this merge.

Testing on rM2, version 2.8:

puzzles: When starting a game or when the program tries to autosave, I can see a line saying that it can’t read or write in /opt/etc/puzzles/save. The game state is therefore not restored as it should when exiting and re-entering a game. This can be fixed by creating the /opt/etc/puzzles/save folder (although it might make more sense to store this in ~/.cache?)
netsurf: Is missing the rm2fb ELF patch, so running it directly from a SSH session without prefixing it with rm2fb-client doesn’t work.
tilem: Is downloading the TI ROM over HTTP, it might be better to use HTTPS here. Also it would be advisable to store the ROM and the state saves outside of the /home/root folder so that it doesn’t get too crowded.
fbink, fbdepth, & fbink-doom: Are missing the rm2fb ELF patch too, it seems. At least, I couldn’t make them work without prefixing them with rm2fb-client.
harmony: I get a SIGABRT when I open the Load menu if it contains previously saved images.
remux: I can’t start Xochitl (blank screen, logs seem to show that Xochitl doesn’t go beyond a certain point in its starting sequence).

Not tested:

innernet (couldn’t make it work, but this is probably because I don’t know enough about innernet itself)
remarkable-stylus (I don’t have a Lamy pen)

Some of these issues I would consider blockers. Have you opened issues for any of them yet?

@raisjn any ideas on what's happening with remux?

Some of these issues I would consider blockers. Have you opened issues for any of them yet?

Not yet, but I plan to do it very soon. I’ll add links in my previous comment when they are open.

any ideas on what's happening with remux?

This only happens when running remux directly from the command line instead of as a systemd service. So it’s not a major bug if we expect that most users will use it as a service.

any ideas on what's happening with remux?

This only happens when running remux directly from the command line instead of as a systemd service. So it’s not a major bug if we expect that most users will use it as a service.

Ah, so I'm guessing it's just missing environment variables. If it's working fine as a service, which is the expected use-case, I no longer consider this a blocker.

This only happens when running remux directly from the command line instead of as a systemd service. So it’s not a major bug if we expect that most users will use it as a service.

what is the bug? is it something to do with rm2fb or something in remux's env variable setup? i'd prefer not to ship bug if we can avoid it (because down the line will still have to field this request of 'broken remux' but have even less details)

what is the bug? is it something to do with rm2fb or something in remux's env variable setup? i'd prefer not to ship bug if we can avoid it (because down the line will still have to field this request of 'broken remux' but have even less details)

From https://github.com/toltec-dev/toltec/pull/391#issuecomment-886076197

* `remux`: I can’t start Xochitl (blank screen) [EDIT: Only when run directly from the command line instead of as a service.]

Since this is likely a pre-existing issue, I'm not as concerned about shipping it, especially since it's better than shipping nothing and having stable remain "broken".

The remux bug proved difficult to consistently reproduce, but in the end it can happen regardless of whether remux is running as a service or not. I opened a bug report with more details: https://github.com/rmkit-dev/rmkit/issues/135

So what is remaining to be tested? I think the primary focus should be for testing the upgrade of apps from existing stable installs to make sure they still work.

I’ve only tested on rM2 so far, we would also need to confirm that everything works on rM1.

Also, shall we take this opportunity to change the rM2 support badge to “supported” on the README? I think rM2 support is pretty much on par with rM1 support now.

Also, shall we take this opportunity to change the rM2 support badge to “supported” on the README? I think rM2 support is pretty much on par with rM1 support now.

I agree

Alright, has anyone done an upgrade from stable with this on a rM1 yet?

Not yet. Just updated https://toltec-dev.org/stable-next with a new build of this branch, by the way.

Completed testing on rM1. The only issue I found is the following: after installing gocryptfs and fuse, I needed to manually run modprobe fuse before gocryptfs path/ would work. Wasn’t the depmod -a command included in the configure script of the fuse package meant to automate this?

Completed testing on rM1. The only issue I found is the following: after installing gocryptfs and fuse, I needed to manually run modprobe fuse before gocryptfs path/ would work. Wasn’t the depmod -a command included in the configure script of the fuse package meant to automate this?

It is meant to automate the module loading. It might not work at updating a module that's already been loaded though.

This happens when first installing the module, without it being loaded first.

This happens when first installing the module, without it being loaded first.

Very odd. I do seem to remember that it was working last I tested.

I think we need to run systemctl restart kmod-static-nodes && systemctl restart systemd-tmpfiles-setup-dev after depmod -a in the configure() script so that /dev/fuse gets created. Once /dev/fuse is present, the kernel module will get automatically loaded whenever a program tries to access that device.

It probably isn't needed for the stable merge for now. Anything else outstanding? Or should I approve the PR?

Since it’s a rather simple fix that I’ve confirmed to work I’d rather add it to this merge, if you don’t mind. This may save us some user reports that the module doesn’t work.

This being done, I think we’re ready for the merge.

source: gharchive/pull-request

authors: Eeems matteodelabre raisjn

repo: toltec-dev/toltec

license: MIT

license_type: permissive

license_source: github-api


text:
Where are the veins?

I have never been able to use the machine, I have never found a vein of minerals in the chunk, always nearby or traces, but never in the chunk so I have never been able to extract anything

Press F3+G to see chunk borders, nearby means it's in a neighboring chunk, traces is in a 2 chunk radius.

source: gharchive/issue


text:
"held item" animation group is full of irrelevant animations

in test animation, there are several animations in the "held item" animation group that have nothing to do with held items
said irrelevant animations:
air
head pitch
head yaw
health
hunger
light level
speaking

These do though, I believe air is when you are midair like jumping or something, head pitch is moving your head up and down, head yaw is left to right, hunger is player low on hunger, heath is the same, but health, light level is the player in a low light level I think, and speaking is actually for the simple voice chat mod or for Minecraft's builtin command only "voice" sound option.


text:
Dashboard preview/admin console of current state

Proposal
Do not know whether it is possible with plugins, but add a dashboard preview of all banned IPs with the ability to unban, possibly whitelist/blacklist them (this would require a separate db file probably), ...

Hello @aqos156,
I don't think it is possible to have a dashboard for plugins in traefik. This may need a feature request on traefik itself.


text:
assert_no_error() fails immediately after build_glium() in the triangle example on OSX

I was debugging my own program and noticed that assert_no_error() was failing after build_glium().  Inserting assert_no_error() into the glium triangle example also failed.
Trace file here: https://www.dropbox.com/s/lsa63yj35hso69e/triangle.trace?dl=0

Does the program work?
After some investigation I think it comes from this code: https://github.com/tomaka/glium/blob/master/src/context/extensions.rs#L228
On older versions of OpenGL, you have to call glGetString to get the list of extensions, and on newer versions you have to call glGetStringi. In this code glium tries to call the former, and if it fails calls the latter. The problem is that this probably triggers a GL error.
I'll fix this to be cleaner, and add assert_no_error at the end of the initialization.

The program does work, but it makes it hard for me to find the other error in my program :cry:

I merged #782, maybe this fixes it.

This seems to have done it; thanks!
Now to find the actual error in my program! :sob:

authors: TyOverby tomaka

repo: tomaka/glium

license_source: bigquery


text:
How to change TileLayerWMS?

'tiles' diretive uses only TileLayer. not TileLayerWMS.
I want do like this.
http://tombatossals.github.io/angular-leaflet-directive/examples/0000-viewer.html#/basic/tiles-example

Ok seems a useful feature and easy to code, I can take a look on this if you help me.
Do you have any source of WMS that we can use for an example?

@ENDiGo, I think the example you need is this:
http://tombatossals.github.io/angular-leaflet-directive/examples/0000-viewer.html#/layers/overlays-simple-example
The "tiles" example you referenced before is used when you want to load a simple layer in a map, but normally you are using WMS with a baselayer down, and the WMS layer at from.

@tombatossals thanks for your response.
my controller code:
$scope.tiles = {
 standard: {
                    name: 'MAP Standard',
                    type: 'wms',
                    url: $window.config.tileserver,
                    layerParams: {
                        layers: 'layer:standard',
                        format: 'image/png',
                        transparent: true,
                        tiled: true,
                        version: '1.3.0',
                        maxZoom: 19
                    }
                },
                blue: {
                    name: 'MAP Blue',
                    type: 'wms',
                    url: $window.config.tileserver,
                    layerParams: {
                        layers: 'layer:blue',
                        format: 'image/png',
                        transparent: true,
                        tiled: true,
                        version: '1.3.0',
                        maxZoom: 19
                    }
                },
}

in my html
 <leaflet center="options.center" maxbounds="options.maxBounds" tiles="tiles" defaults="options.defaults" controls="options.controls" url-hash-center="yes" id="map-canvas"></leaflet>

Then I want to change between above wms tile layers like this example
http://tombatossals.github.io/angular-leaflet-directive/examples/0107-basic-tiles-example.html

Ok, so the trasparency overlays doesn't fit your needs?
We could code the TileLayerWMS funcionality, but I really need a WMS server to create an example to show it working.
Are you using a public WMS service? Could you publish the contents of "$window.config.tileserver", or is a private server?

It doesn't fit my needs.
You may use this url: https://api.minu.mn/wms
standard: {
                    name: 'MAP Standard',
                    type: 'wms',
                    url: https://api.minu.mn/wms,
                    layerParams: {
                        layers: 'mongolid:mimap',
                        format: 'image/png',
                        transparent: true,
                        tiled: true,
                        version: '1.3.0',
                        attribution: "MINU Map",
                        maxZoom: 19
                    }
                }

and center is
lat: 47.918464,
lng: 106.917678,

Thank you

Hi @ENDiGo, I have added this functionality with this commit:
https://github.com/tombatossals/angular-leaflet-directive/commit/50e4449c6a91129c10ee1aebde74159e4c0c31db
You have an example included so it's easy to know how to use it.  But the WMS server you provide us shows an error loading tiles, for example this:
https://api.minu.mn/wms?SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=&STYLES=&FORMAT=image%2Fjpeg&TRANSPARENT=false&HEIGHT=256&WIDTH=256&SRS=EPSG%3A3857&BBOX=-313086.06785608194,6731350.458905762,-156543.03392804097,6887893.4928338
Do you know what's the problem loading tiles that the minu.mn server refers?

The published example is this, but of course, no tiles loading because of the error message commented before:
http://tombatossals.github.io/angular-leaflet-directive/examples/0127-basic-tiles-wms-example.html
Any ideas @ENDiGo?

it's work with this layers.
layers: 'mongolid:mimap',
layers: 'mongolid:mimap_blue', // it's published not yet.

And center is must be
lat: 47.918464,
lng: 106.917678,

We have only Ulaanbaatar tiles.
thanks

That's great @ENDiGo , I have added all the configuration you provided, but I'm still unable to see any tile. Maybe I need to have a localhost server of tiles running?

Hmm, it's working fine in https://map.minu.mn/beta
In this example http://tombatossals.github.io/angular-leaflet-directive/examples/0127-basic-tiles-wms-example.html tiles load request hasn't any parameters.

I'm going to rework&redesign angular-leaflet-directive to be compatible with Leaflet v1.0. It will mantain almost all its functionality, and will be compatible with the current features of the directive, but I must start from a fresh point, so I'm going to close this issue. If you think it must be worked with the new version, please reopen it.

Ok, thank you

authors: ENDiGo tombatossals

repo: tombatossals/angular-leaflet-directive

license: mit


text:
watch Path function performance issues

I am currently using angular-leaflet-directive for displaying response objects from an api request.
The objects are implemented as leaflet path objects. The map is set up with an Angular watcher on zoom level. For a higher zoom level the maps path object holds round 3000 items (drawn as circles).
Unfortunately the panning performance of the map with 3000 items is unsatisfactory
(FramesPerSecond: far below 30).
During reading the directives source code I came up against the 'watchPathfunction' on line 1006.
This implements a watcher on all added paths.
As this feature is possibly causing my performance issues, I wanted to ask if it's on your plan to implement a disabling the path watcher feature.

Hi @skoslitz, it could be implemented, seems interesting.
Could you please provide an example (jsfiddle) where we can see the low performance? It could be a good starting point to start working this feature.

Here is a simplified example
At zoom level 3 the map is rendering 125 path objects.
At zoom level 4 the map is rendering 3065 path objects.
With 3000+ items, map is panning at low frames per second (Hint: Use chrome://flags/ FPS counter)
Pure leaflet (without Angular) is rendering 3000 items properly.

I ran into a similar performance issue. The directive does a deep watch on paths, which seems to significantly slow down the app with large path objects. See issue #559 . Here's your fiddle example using my fork: http://jsfiddle.net/quhmbkpv/1/ .
Full disclosure: my fork will break some features in this directive (all test don't pass), so it's probably worth it to do a diff (very few changes) and understand the changes.

Thanks @cgat!
Based on the fact that this is not a one-time problem it should be worse to implement it officially.
So I'm not closing this issue until @tombatossals expresses something.

Great example @skoslitz , I'm going to take a loot at it.
Thanks for your reply @cgat, I'm going to take a look at your fork so your changes could be added to the main code.
Would you mind if I add your code example as a performance example in the repository?

Hi, I have used the @cgat solution, adding the possibility to disable marker watching (bi-directional update), so better performance is accomplished.
<leaflet paths="paths" watch-paths="false"><leaflet>

I have added your example to the repository @skoslitz , please tell me if this seems good to you.
This is the example with the new code, I think better performance is accomplished:
http://tombatossals.github.io/angular-leaflet-directive/examples/path-3000-items.html

Thanks a lot @tombatossals for the implementation of this useful feature and @cgat for contributing to this issue.
I am fully supporting the usage of my example.

authors: cgat skoslitz tombatossals


text:
removeLayer is not a function

Hi, I have an error when I remove paths having a layer.
TypeError: overlay.removeLayer is not a function

Here is the definition of my layer and my path:
angular.extend($scope, {
   layers: {
      baselayers: {
         ...
      },
      overlays: {
         test: {
            name: 'test',
            visible: false,
            type: 'group'
         }
      }
   },
   paths: {}
});

...

var test = function () {
   $scope.paths['test'] = {
      layer: "test",
      type: "polyline",
      latlngs: latlngs
   };
};

And how I remove it from my map:
$scope.paths = {}

Thanks

No solutions ?

I haven't had time to look into it. Have you dug into the directive yourself?

This issue was moved to angular-ui/ui-leaflet#162

I'm going to rework&redesign angular-leaflet-directive to be compatible with Leaflet v1.0. It will mantain almost all its functionality, and will be compatible with the current features of the directive, but I must start from a fresh point, so I'm going to close this issue. If you think it must be worked with the new version, please reopen it.

authors: antoinegiret nmccready tombatossals


text:
Cant drag or zoom map when directions are on

I have the directions showing, they are working, but when you drag or zoom the map it defaults back to where the directions are. It is like the map is locked on the directions.
GIF  to show => http://g.recordit.co/R3sDpLyqB6.gif
        <GoogleMapLoader
          containerElement={
            <div
              {...this.props}
              style={{ height: '100%' }}
            />
          }
          googleMapElement={
            <GoogleMap
              ref='map'
              defaultZoom={14}
              defaultCenter={{lat: this.props.center[0], lng: this.props.center[1]}}
              onDragend={this.handleBoundsChange}
              onIdle={this.handleBoundsChange}>
              { this.props.directions ? <DirectionsRenderer directions={this.props.directions} /> : null }
              { (this.props.directions === null) &&
                <MarkerClusterer
                  averageCenter
                  enableRetinaIcons
                  styles={clusterStyles}
                  gridSize= {25} >
                  { this.props.locations.map((location, i) => {
                    const geometry = location.address.geometry.location
                    let icon = '/images/marker.png'
                    if (location._id === this.state.hoverMarker || location._id === this.props.locationId) {
                      icon = '/images/marker-hover.png'
                    }
                    return (
                      <Marker
                        position={{ lat: geometry.lat, lng: geometry.lng }}
                        onClick={this.props.openModal.bind(this, location._id, 'location')}
                        onMouseover={this.markerHoverOn.bind(this, location._id)}
                        onMouseout={this.markerHoverOn.bind(this, null)}
                        icon={icon}
                        key={i}
                      />
                    )
                  })}
                </MarkerClusterer> ||
                null
              }
            </GoogleMap>
          }
        />
`

What version are you using? I'm seeing similar behaviour on 5.0.0, even with the default search box example (http://react-google-maps.tomchentw.com/#/places/search-box), but not on 4.x.

I am having a similar problem using fitBounds, did either of you find a resolution?

@zlwaterfield @JoshuaGross @tbtommyb I'm not sure what's the cause to this. Could you check out if there's any option in DirectionsRenderer that can disable this (because react-google-maps just by-pass everything into Google Maps JavaScript API)? https://developers.google.com/maps/documentation/javascript/3.exp/reference#DirectionsRendererOptions
Also, 6.0.0 is released on npm beta tag now. We also have a new demo page. Feel free to try it:
https://tomchentw.github.io/react-google-maps/

@tomchentw In my case it turned out to be because fitBounds was immediately rebounding the map, so I had to change it so that it was only called once when my map's markers were created.

Please refer to Getting Help section in the README (or #469).

@tbtommyb can you please tell me how you managed to call the fitbounds only once after markers were created?? I used the fitbounds method in the onTilesLoaded so it will be calling all the time when i try to zoom.

authors: JoshuaGross adarshks tbtommyb tomchentw zlwaterfield

repo: tomchentw/react-google-maps


text:
Check symlink creation in no-dev mode

If composer executed in "--no-dev" mode only symlink's to non only-dev tools should be created.
Actually symlinks to all existing PHAR tools are created.

Workflow:
composer update - all symlinks created
composer update --no-dev - all symlinks created

repo: tommy-muehle/tooly-composer-script


text:
RAM amount on G2 devices

Mine is G2 Rev.C, it has 2 D9LPX RAM chip on it, which is 2 x MT47H32M16. I believe each chip is 512Mb in 32M x 16bits configuration, which is 64 MBytes, and two chips add up to 128 MBytes instead of 256 MBytes.

I mistakenly converted 512mbit to 128Mbyte instead of 64Mbyte. So the G2 rev.B and rev.C have the same amount of memory.
Fixed with commit bd78ec57d4efaa4d3134.
Thanks for letting me know!

authors: tomverbeure zephray


text:
JNativeHook.jar does not work with jdk15.0.2 64-bit (workaround available)

I recently updated to jdk15.0.2 and realized that gmk stopped working for me. I did however find a workaround for this issue:

Download jnativehook-2.1.0.zip
Open jnativehook-2.1.0.zip and navigate to jnativehook\jar\jnativehook-2.1.0.jar
Extract jnativehook-2.1.0.jar to <project-path>\node_modules\gkm\lib\lib\
Delete file JNativeHook.jar in <project-path>\node_modules\gkm\lib\lib\
Re-name jnativehook-2.1.0.jar to JNativeHook.jar

I have yet to test this method with earlier versions of java.

Did you have any specific error when you called java -jar JNativeHook.jar? #15 reported a core dump on Linux. What OS are you using? (given the path in your examples I assume Windows, but could you specify if it's W7/8/10, thanks!)

Did you have any specific error when you called java -jar JNativeHook.jar? #15 reported a core dump on Linux. What OS are you using? (given the path in your examples I assume Windows, but could you specify if it's W7/8/10, thanks!)

I am using windows 10. JNativeHook.jar that comes with the gkm package wouldn't open for me when I tried to open it. The updated version does.

authors: bomeers tomzx

repo: tomzx/gkm


text:
coverlet fails when using Moq

I have a couple projects that use coverlet. The ones that do not use Moq work fine, but the one I have using Moq throws errors when running the code coverage. Is there a problem with coverlet and Moq?
Error Message:
System.IO.FileLoadException : Could not load file or assembly 'Moq, Version=4.8.0.0, Culture=neutral, PublicKeyToken=69f491c39445e920' or one of its dependencies. Strong name signature could not be verified.  The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)

I'm not seeing this issue. Are you using .Net Core? What version? If you could copy+paste the csproj file for the failing project that would be extremely helpful.

I work with .NET Core 2.0 with Moq and it works fine. For some reason, you seem to suspect the cause is the combo coverlet + Moq. Did you try to remove Moq to check if this is true ?

The XUnit project is .Net Framework 4.6.2 class library. I removed Moq from the XUnit project and coverlet ran perfect. I had to comment out all tests using Moq, but after I did it worked fine. So, my initial assumption is still valid. Something with .Net Framework 4.6.2 class library XUnit project and Moq is causing coverlet to error while running tests that use Moq.

It's for sure something on your end. I would look into re-installing the .Net framework SDK and see if that helps.
Here's my csproj for reference:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net462</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="coverlet.msbuild" Version="2.3.1">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
    </PackageReference>
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
    <PackageReference Include="Moq" Version="4.10.0" />
    <PackageReference Include="xunit" Version="2.4.1" />
    <PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
    </PackageReference>
  </ItemGroup>

</Project>

And the command I'm using to run tests:
dotnet test .\XUnitTestProject1.csproj -c Release --logger:"console;verbosity=normal" /p:CollectCoverage=true
Notice that I'm using .Net Framework 4.6.2, Moq 4.10.0 and coverlet 2.3.1.

@tliebl can you try with last version?

I think it's solved now, we should skip Moq because we cannot instrument so the issue with tampering should gone.
Feel free to re-open if needed.

authors: MarcoRossignoli fiuzaB obtuse-whoosh tliebl

repo: tonerdo/coverlet


text:
检测就是闪退

*Appscan 版本
系统版本
1.机械革命code01
2.pixel2
Bug 描述
Bug 重现步骤(有截图更好)
1.adb给了root权限
2.开始检测,打开了某app
3.某app已停止运行
4.手机重启后,再次操作
5.开始检测,手机没反应了
还是差点意思

请问安卓版本是多少

8.1
..........
@.***

------------------ 原始邮件 ------------------
发件人:                                                                                "tongcheng-security-team/AppScan"                                                                                @.>;
发送时间: 2023年3月27日(星期一) 晚上7:50
@.>;
@.@.>;
主题: Re: [tongcheng-security-team/AppScan] 检测就是闪退 (Issue #6)
请问安卓版本是多少
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

非常感谢, 目前已知安卓低版本有兼容问题, 正在修复. #7

新版本已推送, 麻烦测试一下

已经可以检测到app,但是正在检测一个app中返回了一下就找不到检测的页面了,只能看到这个
显示已有app在检测,但是找不到正在检查的app那那个页面
..........
@.***

------------------ 原始邮件 ------------------
发件人:                                                                                "tongcheng-security-team/AppScan"                                                                                @.>;
发送时间: 2023年4月19日(星期三) 晚上7:27
@.>;
@.@.>;
主题: Re: [tongcheng-security-team/AppScan] 检测就是闪退 (Issue #6)
新版本已推送, 麻烦测试一下
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

返回指的是跳到软件列表页吗? 软件列表页每一个app后有按钮, 如果是正在检测的app会有停止检测和继续检测两个按钮和其他app区分的, 您看一下呢? 或者截个图发一下

视频
录制_2023_04_19_20_23_10_196.mp4 https://www.aliyundrive.com/s/QPjGNdfYXdF 点击链接保存，或者复制本段内容，打开「阿里云盘」APP ，无需下载极速在线查看，视频原画倍速播放。
..........
@.***

------------------ 原始邮件 ------------------
发件人:                                                                                "tongcheng-security-team/AppScan"                                                                                @.>;
发送时间: 2023年4月19日(星期三) 晚上8:18
@.>;
@.@.>;
主题: Re: [tongcheng-security-team/AppScan] 检测就是闪退 (Issue #6)
返回指的是跳到软件列表页吗? 软件列表页每一个app后有按钮, 如果是正在检测的app会有停止检测和继续检测两个按钮和其他app区分的, 您看一下呢? 或者截个图发一下
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

你好, 请在app列表页查找是否有上次未检测完的app. 然后通过点击 继续检测 继续检测或者点击 停止检测 来停止上一次检测, 开始新的检测

类似这样

您好, 1.0.8版本已推送, 请安装更新

authors: ChnMig VVeakee

repo: tongcheng-security-team/AppScan


text:
z3-sys

Hi! Thank you for the nice bindings. Would it be possible to add a static-link-z3 feature to z3-sys, so that users don't need to manually install z3-dev on their systems to access z3.h?

Hello! That's a good idea. I'll add a feature flag to use the existing one in z3 when I get a chance. Thanks for the suggestion!

repo: toolCHAINZ/jingle


text:
io.toolisticon.cute.impl.CompileTest should always check compileTestBuilder.compilationShouldFail()

I have an issue where my failed test should pass but it is not.
I've created an annotation that has an attribute withInterface of type Class<? extends ApiService>
I've then created a test that ensures that the compilation will fail when we do not use the right interface.
  @Test
  void test_processingShouldntSucceesWithPlainInterfacesNotExtendingApiService() {
    compileTestBuilder
                     .addSources("api_service/TestcaseInvalidUseWithInterfaceNotExtendingApiService.java")
                      .compilationShouldFail()
                      .executeTest();
  }

But this test is failing.
I think that is because the method from CompileTest below:
    void checkIfProcessorsHaveBeenApplied(DiagnosticCollector<JavaFileObject> diagnostics) {

      Set<String> messages = CompileTestUtilities.getMessages(diagnostics, Diagnostic.Kind.NOTE);

      outer:
      for (AnnotationProcessorWrapper processor : compileTestConfiguration.getWrappedProcessors()) {

          for (String message : messages) {
              if (message.equals(processor.getProcessorWasAppliedMessage())) {
                  continue outer;
              }
          }

          throw new FailingAssertionException(Constants.Messages.MESSAGE_PROCESSOR_HASNT_BEEN_APPLIED.produceMessage(processor.getWrappedProcessor().getClass().getCanonicalName(), processor.getSupportedAnnotationTypes()));

      }
      ```

      Perhaps would be possible to verify the compileTestBuilder.compilationShouldFail() before throw FailingAssertionException even if the processor was not called ?

Hi,
I added that check by intent. I used googles compile testing framework before and got into the situation that i expected a successful outcome but encountered the situation that the annotation processor wasn't applied at all.
So a check validates that all configured annotation processors are really used to prevent false positives.
So  please remove the annotation processors from unit test configuration that you don't expect to be called, since they doesn't change test outcome in any way.
It may also be that your testcase source file doesn't trigger the processor. So please check if the processor mentioned in the MESSAGE_PROCESSOR_HASNT_BEEN_APPLIED log statement is the one that you expect to trigger the compilation to fail.
In this case you should check if your test souce file and the annotation processor are configured correctly.

Can you also post the common initialisation part of the compileTestBuilder?

So please remove the annotation processors from unit test configuration that you don't expect to be called, since they doesn't change test outcome in any way.

Well, I use only one compileTestBuilder for the entire test class. Do you mean that for this test method I  would need to create one specific compileTestBuilder for it?

Can you also post the common initialization part of the compileTestBuilder?

  CompileTestBuilder.CompilationTestBuilder compileTestBuilder = CompileTestBuilder
                                                                                .compilationTest()
                                                                                .addProcessors(ApiServiceProcessor.class);

and that is the result I'm getting:
java.lang.AssertionError: Annotation processor br.com.c8tech.hawkx.dev.apt.processors.http.ApiServiceProcessor hasn't been called! Please check that there's at least one source file using an annotation supported by the processor: [br.com.c8tech.hawkx.annotations.http.ApiServiceTag]

-------------------------------
-- ERROR MESSAGES:
-------------------------------
[1]'/api_service/TestcaseInvalidUseWithInterfaceNotExtendingApiService.java:6: error: incompatible types: java.lang.Class<br.com.c8tech.hawkx.dev.apt.processors.tests.apiservices.TestSpiInterface> cannot be converted to java.lang.Class<? extends br.com.c8tech.hawkx.services.http.ApiService>
@ApiServiceTag(id = "x", withInterface = TestSpiInterface.class)
                                                         ^'

-------------------------------
-- GENERATED FILEOBJECTS:
-------------------------------
{
  'GENERATED JAVA FILE OBJECTS' : 'No files were generated !!!',
  'GENERATED FILE OBJECTS' :'No files were generated !!!'
}
-------------------------------
-- COMPILE TEST CONFIGURATION:
-------------------------------
CompileTestConfiguration{

	compilerOptions=[],
	sourceFiles=[io.toolisticon.cute.JavaFileObjectUtils$JavaSourceFromResource[resource:///api_service/TestcaseInvalidUseWithInterfaceNotExtendingApiService.java]],
	 processors=[],
	 processorTypes=[class br.com.c8tech.hawkx.dev.apt.processors.http.ApiServiceProcessor],
	 processorsWithExpectedExceptions=[],
	 expectedThrownException=null,
	 modules=null,
	 compilationShouldSucceed=false,
	 compilerMessageChecks=[],
	 generatedJavaFileObjectChecks=[],
	 generatedFileObjectChecks=[],
	 passInConfiguration=null
}
	at io.toolisticon.cute.extension.plainjava.AssertionErrorAssertion.fail(AssertionErrorAssertion.java:11)
	at io.toolisticon.cute.impl.CompileTest.executeTest(CompileTest.java:170)
	at io.toolisticon.cute.CompileTestBuilder$BasicBuilder.executeTest(CompileTestBuilder.java:527)
	at br.com.c8tech.hawkx.dev.apt.processors.http.ApiServiceAnnotationProcessorTest.test_processingShouldntSucceesWithPlainInterfacesNotExtendingApiService(ApiServiceAnnotationProcessorTest.java:77)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:688)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
	at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$6(TestMethodTestDescriptor.java:210)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:206)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:131)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:65)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:143)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:129)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:127)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:126)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:84)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:96)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:84)
	at org.eclipse.jdt.internal.junit5.runner.JUnit5TestReference.run(JUnit5TestReference.java:98)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:41)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:542)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:770)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:464)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:210)

So please remove the annotation processors from unit test configuration that you don't expect to be called, since they doesn't change test outcome in any way.

Yep, creating another instance of CompilationTestBuilder without adding a processor resolved the issue. :)
  @Test
  void test_processingShouldntSucceesWithPlainInterfacesNotExtendingApiService() {
    CompileTestBuilder.CompilationTestBuilder compileTestBuilder2 = CompileTestBuilder
                                                                                .compilationTest();

    compileTestBuilder2
                       .addSources("api_service/TestcaseInvalidUseWithInterfaceNotExtendingApiService.java")
                       .compilationShouldFail()
                       .executeTest();
  }

I forgot to say. thanks for your quick support, and mainly for the very useful projects ;)

Yes, the main issue was, that the error that you have expected comes from Java itself because of the broken contract.
The processor phase hasn't been started then.
Thanks by the feedback. Hope you like those processor frameworks and that they will help you on your way :)
Please contact me if you have any additional questions or feature requests.

authors: cvgaviao tobiasstamann

repo: toolisticon/cute


text:
verspätung bei mehrfachen manövern

stellwerk bischofshofen: V 75345 flügelt VG 75345 und kuppelt Lok 75345 am selben gleis. lok hat verspätung. die vorhergesagte verspätung müsste 6 minuten betragen, nicht 0:

effektive verspätungen nach  abfahrt des zuges:

gelöst in 380055f2

repo: topological-state/stskit


text:
[CI] Make build-publish-alpha-package work with custom runners

CI-3174
build-publish-alpha-package failed when the workflow was switched to use custom runners.
I moved actions/setup-node step before the step that uses npm command. It's necessary because our custom runners doesn't have preinstalled node/npm.
How to test

I tested setting up node here: https://github.com/toptal/inf-toolbox/actions/workflows/test-davinci-alpha-package.yml

Development checks

[ ] Add changeset according to guidelines (if needed)

PR commands

List of available commands:

@toptal-anvil ping reviewers - Ping FX team for review

@toptal-anvil ping reviewers

@Jakub-Kwak Can you please add changeset?

@Jakub-Kwak Can you please add changeset?

Sure, I'm checking how to do it 👀

@sashuk changeset added. Could you please check if it's correct?

@Jakub-Kwak Looks great, thank you!

authors: Jakub-Kwak sashuk

repo: toptal/davinci-github-actions


text:
feat(Icon): add BellSolid icon to picasso

FX-3495
Description
Add new icon BellSolid16 and BellSolid24
How to test

check storybook

Screenshots

Development checks

[x] Add changeset according to guidelines (if needed)
[x] Read CONTRIBUTING.md and Component API principles
[x] Make sure that additions and changes on design follow Toptal's BASE design, and it's been already discussed with designers at #-base-core
[x] Annotate all props in component with documentation
[x] Create examples for component
[x] Ensure that deployed demo has expected results and good examples
[x] Ensure the changed/created components have not caused accessibility issues. How to use accessibility plugin in storybook.
[x] Self reviewed
[x] Covered with tests

Breaking change

[x] codemod is created and showcased in the changeset
[x] test alpha package of Picasso in StaffPortal

All development checks should be done and set checked to pass the
GitHub Bot: TODOLess action

PR commands

List of available commands:

@toptal-bot run package:alpha-release - Release alpha version
@toptal-anvil ping reviewers - Ping FX team for review

PR Review Guidelines

When to approve? ✅
You are OK with merging this PR and

You have no extra requests.
You have optional requests.

Add nit: to your comment. (ex. nit: I'd rename this variable from makeCircle to getCircle)

When to request changes? ❌
You are not OK with merging this PR because

Something is broken after the changes.
Acceptance criteria is not reached.
Code is dirty.

When to comment (neither ✅ nor ❌)
You want your comments to be addressed before merging this PR in cases like:

There are leftovers like unnecessary logs, comments, etc.
You have an opinionated comment regarding the code that requires a discussion.
You have questions.

How to handle the comments?

An owner of a comment is the only one who can resolve it.
An owner of a comment must resolve it when it's addressed.
A PR owner must reply with ✅ when a comment is addressed.

@toptal-anvil ping reviewers

repo: toptal/picasso


text:
refactor: migrate Modal to TailwindCSS

FX-4034
Description
This PR is the POC of migrating a complex component from MUI4 to TailwindCSS. We chose Modal.
This PR involves:

Install TailwindCSS and make it work in the Storybook
Apply BASE tokens to the TailwindCSS config
Migrate the Modal component

How to test

Temploy
FIXME: Add the steps describing how to verify your changes

Screenshots

Before.
After.

Insert screenshots or screen recordings
Insert screenshots or screen recordings

Development checks

[ ] Add changeset according to guidelines (if needed)
[ ] Read CONTRIBUTING.md and Component API principles
[ ] Make sure that additions and changes on the design follow Toptal's BASE design, and it's been already discussed with designers at #-base-core
[ ] Annotate all props in component with documentation
[ ] Create examples for component
[ ] Ensure that deployed demo has expected results and good examples
[ ] Ensure the changed/created components have not caused accessibility issues. How to use accessibility plugin in storybook.
[ ] Self reviewed
[ ] Covered with tests (visual tests included)

Breaking change

[ ] codemod is created and showcased in the changeset
[ ] test alpha package of Picasso in StaffPortal

All development checks should be done and set checked to pass the
GitHub Bot: TODOLess action

PR commands

List of available commands:

@toptal-bot run package:alpha-release - Release alpha version
@toptal-anvil ping reviewers - Ping FX team for review

PR Review Guidelines

When to approve? ✅
You are OK with merging this PR and

You have no extra requests.
You have optional requests.

Add nit: to your comment. (ex. nit: I'd rename this variable from makeCircle to getCircle)

When to request changes? ❌
You are not OK with merging this PR because

Something is broken after the changes.
Acceptance criteria is not reached.
Code is dirty.

When to comment (neither ✅ nor ❌)
You want your comments to be addressed before merging this PR in cases like:

There are leftovers like unnecessary logs, comments, etc.
You have an opinionated comment regarding the code that requires a discussion.
You have questions.

How to handle the comments?

An owner of a comment is the only one who can resolve it.
An owner of a comment must resolve it when it's addressed.
A PR owner must reply with ✅ when a comment is addressed.

@toptal-bot run package:alpha-release

@toptal-bot run package:alpha-release

@toptal-bot run package:alpha-release

@toptal-bot run package:alpha-release

@toptal-bot run package:alpha-release

authors: TomasSlama dmaklygin


text:
[FX-4492] Remove unwanted tag transitions

FX-4492
Description
Remove the default transitions from all Tag components.
I was not able to disable them in a single place (in theory, it should be possible to use overrides in PicassoProvider, however, in practice it just didn't work at all, probably due to class overrides inside components).
How to test

Temploy
You can use the code below to test the transition, both on master and temploy

import React, { useState } from 'react'
import { Button, Container, Tag } from '@toptal/picasso'

const Example = () => {
    const [type, setType] = useState('red')

    return (
        <Container flex>
            <Button
                onClick={() =>
                    setType(prevType => (prevType === 'green' ? 'red' : 'green'))
                }
                size='small'
            >
                Change color
            </Button>
            <Tag.Rectangular variant={type}>Tag</Tag.Rectangular>
        </Container>
    )
}

export default Example

Screenshots
Before
https://github.com/toptal/picasso/assets/18409292/05409c53-22fc-4384-83b9-2868a5878a8d
After
https://github.com/toptal/picasso/assets/18409292/892ccfd2-1722-4ddc-9111-42860644170e
Development checks

[x] Add changeset according to guidelines (if needed)
[x] Read CONTRIBUTING.md and Component API principles
[x] Make sure that additions and changes on the design follow Toptal's BASE design, and it's been already discussed with designers at #-base-core
[x] Annotate all props in component with documentation
[x] Create examples for component
[x] Ensure that deployed demo has expected results and good examples
[x] Ensure the changed/created components have not caused accessibility issues. How to use accessibility plugin in storybook.
[x] Self reviewed
[n/a] Covered with tests (visual tests included)

All development checks should be done and set checked to pass the
GitHub Bot: TODOLess action

PR commands

List of available commands:

@toptal-bot run package:alpha-release - Release alpha version
@toptal-anvil ping reviewers - Ping FX team for review

PR Review Guidelines

When to approve? ✅
You are OK with merging this PR and

You have no extra requests.
You have optional requests.

Add nit: to your comment. (ex. nit: I'd rename this variable from makeCircle to getCircle)

When to request changes? ❌
You are not OK with merging this PR because

Something is broken after the changes.
Acceptance criteria is not reached.
Code is dirty.

When to comment (neither ✅ nor ❌)
You want your comments to be addressed before merging this PR in cases like:

There are leftovers like unnecessary logs, comments, etc.
You have an opinionated comment regarding the code that requires a discussion.
You have questions.

How to handle the comments?

An owner of a comment is the only one who can resolve it.
An owner of a comment must resolve it when it's addressed.
A PR owner must reply with ✅ when a comment is addressed.

@toptal-anvil ping reviewers

authors: mkrl sashuk


text:
Scale factor

Thanks for a great plugin, this is by far the cleanest AMS HAN solution I have looked at.
In my home, the Energy Meter (a Aidon 6540) is not connected directly to main power, but through a current transformer with a reduction factor of 50. I believe this setup is common when you have a large main fuse (in my case 125A).
The data output of the HAN port is also reduced by a factor of 50.
Is it possible to add a config variable for scaling the data that is read, this has to be done for all currents, power and energy measurements?
Thanks,
Magnus

I am glad you like it.
I'll look into it.
Do you have a litt bit more context about an installation using a current transformer? I cannot remember to have seen anything about this in the official HAN documentation. Maybe the scale factor is somewhere in the data stream and can be used automatically.
Thanks for the feedback.
Tore

I am glad you like it.
I'll look into it.
Do you have a litt bit more context about an installation using a current transformer? I cannot remember to have seen anything about this in the official HAN documentation. Maybe the scale factor is somewhere in the data stream and can be used automatically.
Thanks for the feedback.
Tore

Sure, it would be great if it is in the data, but I suspect it isn't. I think the meter itself is unaware of the fact that the current is measured indirectly, and that the net provider only has this information in their backend system. I will ask my provider about it.
When I look at the energy consumption on the display of the meter, it is also off by a factor 50.
I found a document https://docplayer.me/295393-Retningslinjer-og-krav-for-malermontasje-og-kontroll-av-malepunktet-tilhorende-eidsiva-nett-as.html that describes the electrical principle and regulations around this, turns out it is done when the main fuse is 80A or larger.
Thanks for looking into it.

Sure, it would be great if it is in the data, but I suspect it isn't. I think the meter itself is unaware of the fact that the current is measured indirectly, and that the net provider only has this information in their backend system. I will ask my provider about it.
When I look at the energy consumption on the display of the meter, it is also off by a factor 50.
I found a document https://docplayer.me/295393-Retningslinjer-og-krav-for-malermontasje-og-kontroll-av-malepunktet-tilhorende-eidsiva-nett-as.html that describes the electrical principle and regulations around this, turns out it is done when the main fuse is 80A or larger.
Thanks for looking into it.

Please also ask your provider exactly what values in the HAM feed should be scaled to be sure I do it correctly.

Please also ask your provider exactly what values in the HAM feed should be scaled to be sure I do it correctly.

I just got feedback from Hafslund, that the meter is unaware about the scaling factor. It is applied in their backend systems for billing, etc. Hence, it is not possible to read this from the HAN port.

I just got feedback from Hafslund, that the meter is unaware about the scaling factor. It is applied in their backend systems for billing, etc. Hence, it is not possible to read this from the HAN port.

Do you known if exports and reactive power also should be scaled?
See  Active power - (Q2+Q3), Reactive power + (Q1+Q2), Reactive power - (Q3+Q4), Cumulative hourly active export energy (A-) (Q2+Q3), Cumulative hourly reactive import energy (R+) (Q1+Q2) and Cumulative hourly reactive export energy (R-) (Q3+Q4) on page 6: https://www.nek.no/wp-content/uploads/2018/11/Aidon-HAN-Interface-Description-v10A-ID-34331.pdf

Do you known if exports and reactive power also should be scaled?
See  Active power - (Q2+Q3), Reactive power + (Q1+Q2), Reactive power - (Q3+Q4), Cumulative hourly active export energy (A-) (Q2+Q3), Cumulative hourly reactive import energy (R+) (Q1+Q2) and Cumulative hourly reactive export energy (R-) (Q3+Q4) on page 6: https://www.nek.no/wp-content/uploads/2018/11/Aidon-HAN-Interface-Description-v10A-ID-34331.pdf

Yes they should be.
On Tue, Jan 12, 2021, 22:04 Tore Amundsen notifications@github.com wrote:

Do you known if exports and reactive power also should be scaled?
See Active power - (Q2+Q3), Reactive power + (Q1+Q2), Reactive power -
(Q3+Q4), Cumulative hourly active export energy (A-) (Q2+Q3), Cumulative
hourly reactive import energy (R+) (Q1+Q2) and Cumulative hourly reactive
export energy (R-) (Q3+Q4) on page 6:
https://www.nek.no/wp-content/uploads/2018/11/Aidon-HAN-Interface-Description-v10A-ID-34331.pdf
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/toreamun/amshan-homeassistant/issues/1#issuecomment-758988514,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARX6LEJEL3ESZGO5H6NIXTSZS2NDANCNFSM4V2ODREA
.

Yes they should be.
On Tue, Jan 12, 2021, 22:04 Tore Amundsen notifications@github.com wrote:

Do you known if exports and reactive power also should be scaled?
See Active power - (Q2+Q3), Reactive power + (Q1+Q2), Reactive power -
(Q3+Q4), Cumulative hourly active export energy (A-) (Q2+Q3), Cumulative
hourly reactive import energy (R+) (Q1+Q2) and Cumulative hourly reactive
export energy (R-) (Q3+Q4) on page 6:
https://www.nek.no/wp-content/uploads/2018/11/Aidon-HAN-Interface-Description-v10A-ID-34331.pdf
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/toreamun/amshan-homeassistant/issues/1#issuecomment-758988514,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARX6LEJEL3ESZGO5H6NIXTSZS2NDANCNFSM4V2ODREA
.

This should now be resolved 0.2.2 pre-release. Currents, power and energy measurements are now multiplied by scale factor 1 by default. This can be configured in options.
You have a transformer reduction factor of 50. Do this mean that this new scale factor in you case should 50?
You may have to select reinstall and enable beta versions for the integration in HACS to see the pre-release as an install option.
Please give feedback if this solves the issue when you have tested the pre-release.

This should now be resolved 0.2.2 pre-release. Currents, power and energy measurements are now multiplied by scale factor 1 by default. This can be configured in options.
You have a transformer reduction factor of 50. Do this mean that this new scale factor in you case should 50?
You may have to select reinstall and enable beta versions for the integration in HACS to see the pre-release as an install option.
Please give feedback if this solves the issue when you have tested the pre-release.

@mnordseth Have you had the chance to check if the pre-release solves your problem?

@mnordseth Have you had the chance to check if the pre-release solves your problem?

Thanks a lot, this seems to solve my issue!

Thanks a lot, this seems to solve my issue!

authors: mnordseth toreamun

repo: toreamun/amshan-homeassistant


text:
could not detect network

Hello guys,
When i executive docker-compose up and get the "noNetwork" error below. How could I setup the network in env file, thanks

Getting events for blocks 11475128 to 11567309
app_1    | Submitting tree update with 60 deposits and 60 withdrawals
app_1    | Tx failed... Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.0.13)
app_1    |     at Logger.makeError (/app/node_modules/@ethersproject/logger/lib/index.js:179:21)
app_1    |     at Logger.throwError (/app/node_modules/@ethersproject/logger/lib/index.js:188:20)
app_1    |     at JsonRpcProvider. (/app/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:399:54)
app_1    |     at step (/app/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:46:23)
app_1    |     at Object.throw (/app/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:27:53)
app_1    |     at rejected (/app/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:19:65) {
app_1    |   reason: 'could not detect network',
app_1    |   code: 'NETWORK_ERROR',
app_1    |   event: 'noNetwork'
app_1    | }
app_1    | Retrying

Hello.
You have to have .env file. It's used by docker-compose.yml file.
Also make sure you specified a correct RPC_URL in the .env.

Hello.
You have to have .env file. It's used by docker-compose.yml file.
Also make sure you specified a correct RPC_URL in the .env.

I tried to setup the .env file as below, add the NET_ID and RPC_URL, however it is not work
NET_ID = 1
RPC_URL = ws://my_ip_address:8546 (replaced by http_rpc_url and alchemy, either of them get the same result)

Hello.
You have to have .env file (without .example postfix). It's used by docker-compose.yml file.
Also make sure you specified a correct RPC_URL in the .env.

I tried to setup the .env file as below, add the NET_ID and RPC_URL, however it is not work
NET_ID = 1
RPC_URL = ws://my_ip_address:8546 (replaced by http_rpc_url and alchemy, either of them get the same result)

Hello.
You have to have .env file (without .example postfix). It's used by docker-compose.yml file.
Also make sure you specified a correct RPC_URL in the .env.

You don't need the NET_ID. Just RPC_URL without spaces (http should work)
Like this
RPC_URL=https://mainnet.infura.io/v3/...

You don't need the NET_ID. Just RPC_URL without spaces (http should work)
Like this
RPC_URL=https://mainnet.infura.io/v3/...

authors: davidqw pertsev

repo: tornadocash/tornado-root-updater


text:
Modify and update infomation 26/05/2022

Modify and update infomation 26/05/2022

Modify and update infomation 26/05/2022

repo: torogoz-sv/sitio


text:
Release 1.4.0

https://github.com/toughdeveloper/oc-imageresizer-plugin/blob/999b5bc6c39f1d0193b39cf608d72769be4e4b25/updates/version.yaml#L15-L21

v1.4.0 branch contain only ce5fa210a1ac3002e3fe581df65bf7b566e2e63f, so it should be reviewed, code changes ported to develop and finally removed to avoid confusion.
@toughdeveloper @maartenmachiels @rejuvenatedigital please comment with 👍 or 👎

Looks good. Maybe mention in version.yaml that files that have spaces are now handled properly. I'll be testing out shortly.

@matteotrubini @maartenmachiels - Seems fine on the face of it to me, I'm not in a position to test. But as soon as its merged to master @ me and I'll push the update on October.

@toughdeveloper v1.4.0 renamed in aws-s3 to complete the feature before merge it into develop.
Here we go!

Thanks everyone for changes on this. Glad to see the project being maintained again :)

repo: toughdeveloper/oc-imageresizer-plugin


text:
Game Speed > Debug acc. has confusing tooltip label

See above image

"Debug acc." stands for "Debug acceleration" and will make it so that holding down the space bar makes the game run at the maximum speed your PC can handle. It is only properly implemented in th13

This issue is now superceded by https://github.com/touhouworldcup/thprac/issues/66

repo: touhouworldcup/thprac


text:
[Bug]: The date on Towhee website has not been updated

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
https://towhee.io/
At the bottom right of the page, it's still in 2022 as we can see. I think it should be modified to 2023

Expected Behavior
update
Steps To Reproduce
https://towhee.io/
Environment
- Towhee version(e.g. v0.1.3 or 8b23a93):
- OS(Ubuntu or CentOS):
- CPU/Memory:
- GPU:
- Others:

Anything else?
No response

@NicoYuan1986
could you please translate Chinese into English? Thanks.

@NicoYuan1986
Fixed now, please verify, thanks.

Verified fixed.

repo: towhee-io/towhee


text:
Raise PlatformMismatchError if using wrong class

Instead of leaving abstract methods without definition when running on the other platform (Unix vs Windows), define them and raise a PlatformMismatchError if called on the wrong platform.
This fixes pylint warnings such as
   Abstract class 'WindowsFileLock' with abstract methods instantiated
   Abstract class 'UnixFileLock' with abstract methods instantiated

Fixes tox-dev/py-filelock#102

I don't see why you'd want the class to remain abstract, regardless of what pylint may or may not think of it. An abstract class is a class for which the client can be expected to provide an implementation, which doesn't make sense in this case — the client isn't supposed to implement a WindowsFileLock if he's running on Unix, so why would you want it to be an abstract class?
I took your comment on #102 as an indication that you were willing to consider a solution "that pleases both the static checker + type checker + documentation generation." Wouldn't this work?

I don't see why you'd want the class to remain abstract,

I mean because it's abstract and lacking methods that should be implemented? 😂
I guess our definition of what abstract class differs significantly. In my book an abstract class is a class that shouldn't be created as it does not have some of its required methods defined (for whatever reason). The current design satisfies that requirement.

took your comment on #102 as an indication that you were willing to consider a solution "that pleases both the static checker + type checker + documentation generation.\

I did consider it, but I'm not in love at the moment with the proposal 🤔

Ah, OK, fair enough. I did consider raising an issue with Pylint instead, but, well... with my interpretation of what an abstract class is, Pylint's behavior seems rather reasonable to me. If an abstract class defines an interface for client code to implement, if that is what we mean by "abstract class," then it should be fair to assume that being abstract or not isn't a runtime property: If there's any branch where the class is abstract, then it's defining an interface, and then you shouldn't use it without subclassing it first.
Let me know if there's any way to tweak my proposal to make it more to your liking.

authors: gaborbernat vonschultz

repo: tox-dev/py-filelock

license: unlicense


text:
fails on test_setuptools_prepare_metadata_for_build_wheel with Python 3.9

https://github.com/tox-dev/pyproject-api/blob/0f0239c32b3750e629604b9c60018c8f8ff2a14f/tests/test_frontend_setuptools.py#L78
Tests passes with 3.10, but not with 3.9:
[   12s] _______________ test_setuptools_prepare_metadata_for_build_wheel _______________
[   12s]
[   12s] frontend_setuptools = <pyproject_api._via_fresh_subprocess.SubprocessFrontend object at 0x7fba9b7caa90>
[   12s] tmp_path = PosixPath('/tmp/pytest-of-abuild/pytest-13/test_setuptools_prepare_metada0')
[   12s]
[   12s]     def test_setuptools_prepare_metadata_for_build_wheel(frontend_setuptools: SubprocessFrontend, tmp_path: Path) -> None:
[   12s]         meta = tmp_path / "meta"
[   12s]         result = frontend_setuptools.prepare_metadata_for_build_wheel(metadata_directory=meta)
[   12s]         dist = Distribution.at(str(result.metadata))
[   12s]         assert list(dist.entry_points) == [EntryPoint(name="demo_exe", value="demo:a", group="console_scripts")]
[   12s]         assert dist.version == "1.0"
[   12s]         assert dist.metadata["Name"] == "demo"
[   12s]         values = [v for k, v in dist.metadata.items() if k == "Requires-Dist"]  # type: ignore
[   12s]         # ignore because "PackageMetadata" has no attribute "items"
[   12s] >       assert values == ["requests (>2)", "magic (>3)"]
[   12s] E       AssertionError: assert ['magic (>3)'...equests (>2)'] == ['requests (>... 'magic (>3)']
[   12s] E         At index 0 diff: 'magic (>3)' != 'requests (>2)'
[   12s] E         Full diff:
[   12s] E         - ['requests (>2)', 'magic (>3)']
[   12s] E         + ['magic (>3)', 'requests (>2)']

Complete build log with all details of versions of packages used and steps taken to reproduce.

PR welcome 🤗

authors: gaborbernat mcepl

repo: tox-dev/pyproject-api


text:
Python preference

This PR enables the usage of the flag --python-preference to better control which Python interpreter is used.
See https://docs.astral.sh/uv/python-versions/#adjusting-python-version-preferences
It does so by exposing a uv_python_preference configuration field.
Note: this can be used to download missing Python interpreter. Use for example
[testenv]
uv_python_preference = only-managed

tox-uv does not interact with uv python, only with uv venv. Doesn't the later only uses system pythons?

using python_preference = managed allows uv venv to use uv python toolchain if my understanding is correct.
I proposed this PR as it allows me to stop worrying about my python versions installed on my system and let tox-uv manage this through uv python.
By default no flag is passed to uv venv preserving the old behaviour. If python_preference is set, the flag --python-preference is passed, controlling wjether to use system python or some uv managed python.

using python_preference = managed allows uv venv to use uv python toolchain if my understanding is correct.

Can you link to upstream docs of this?

using python_preference = managed allows uv venv to use uv python toolchain if my understanding is correct.

Can you link to upstream docs of this?

https://docs.astral.sh/uv/python-versions/#adjusting-python-version-preferences
Should be in the README.md too.

The CI is broken.

Blocking now with the typing error. Optional or Union[Type, None] are not working. Investigating.

At this point the CI pass locally

Seem it is not. Note you can setup https://github.com/RomainBrault/tox-uv/actions to not need to wait for my approval.

Here we go. I had to remove some type information to make it compatible with Python <3.10.
Thank you for your patience.

I guess this is why I reported https://github.com/tox-dev/tox-uv/issues/72
I thought tox-uv didn't "do this" because it was not advertised, and some open issues suggest otherwise. This is a feature that has just turned up, because uv venv already does it depending on configuration (that I already had).

authors: RomainBrault bluss gaborbernat

repo: tox-dev/tox-uv


text:
Build fails

Classic "works on my machine". Build fails with an error, cannot find a dependency... 🙄
https://github.com/tplive/comicbot/runs/3369559011?check_suite_focus=true#step:4:9

...and now it works, after a little cleanup.. 😁

repo: tplive/comicbot


text:
Update sbt-scoverage to 1.9.2

Updates org.scoverage:sbt-scoverage from 1.8.2 to 1.9.2.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scoverage", artifactId = "sbt-scoverage" } ]

labels: sbt-plugin-update, early-semver-minor, semver-spec-minor

Codecov Report

Merging #574 (db12549) into main (7dff634) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #574   +/-   ##
=======================================
  Coverage   85.30%   85.30%
=======================================
  Files         124      124
  Lines        1599     1599
  Branches       34       34
=======================================
  Hits         1364     1364
  Misses        235      235

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 7dff634...db12549. Read the comment docs.

authors: codecov-commenter scala-steward

repo: tpolecat/skunk


text:
Simplify node startup definitions - let node generate identity

According to https://tezos.gitlab.io/releases/version-8.html#changelog-version-8-0-rc1, starting with 8.0 rc1 tezos-node run now automatically generates identity. node.yaml and bootstrap.yaml can be now simplified and not check for identity.json themselves

node.yaml  still contains this functionality.

node.yaml  still contains this functionality.

@itkach Should we keep in mind that a user would want to use an earlier version of Tezos? We can templatize the key gen then.

I suggest we park this for a while, and remove the code once 8 is adopted. I'd rather not focus on old versions unless we absolutely have to.

I'd rather not focus on old versions unless we absolutely have to.

I agree

closed by #117

authors: brandisimus harryttd itkach


text:
binaryEqualBallを実装

closes #37

#48 と重複しているので閉じます


text:
How to acquire MulticastLock when listening for broadcasted UDP messages?

We use this project to listen for broadcasted UDP messages. Those UDP messages are broadcasted to the whole network (using 255.255.255.255 IP mask.
For some Android devices, this works fine, for others it does not. I created a blank native App to analyse this problem further, and it seems that it works, when the MulticastLock is acquired.
I scanned the source code, it seems that the MulticastLock is acquired when adding a membership.
But I did not find out how to use this, and how to add a membership as a UDP listening App. Which multicastAddress I am supposed to put there?
Do you have an example or some hints how to do this? Is this already implemented in 4.1.7?

This is still pending, and it would be great to get a response.

I would still love to get some feedback about this.

I would still love to get some feedback about this.

I would still love to get some feedback about this.

repo: tradle/react-native-udp


text:
Rule Priority v2 vs v3

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?
Porting router rules from v2 to v3
What did you see instead?
Rule matching priority has changed.
For hostname zzzz.ahost.net:

with v2 router from service AAAAA matches first
with v3 router from service BBBBB matches first.

According to doc "length of rule" is used but in this case rule length is same for v2 and v3 but priority is not?
What version of Traefik are you using?
Version:      3.1.2
Codename:     comte
Go version:   go1.22.5
Built:        2024-08-06T13:37:51Z
OS/Arch:      linux/amd64
What is your environment & configuration?
docker-compose.yml:
AAAAA:
  ...
  traefik.http.routers.AAAAA.ruleSyntax: "v2"
  traefik.http.routers.AAAAA.entrypoints: http
  traefik.http.routers.AAAAA.middlewares: "mdw-http-to-https@file"
  traefik.http.routers.AAAAA.rule: "
	  Host(`zzzz.ahost.net`)
	  || Host(`zzzz-host-net.bhost.net`)
	"

BBBBB:
  ...
  traefik.http.routers.BBBBB.ruleSyntax: "v2"
  traefik.http.routers.BBBBB.entrypoints: "http"
  traefik.http.routers.BBBBB.tls: "false"
  traefik.http.routers.BBBBB.middlewares: "mdw-http-to-https@file"
  traefik.http.routers.BBBBB.rule: "
	HostRegexp(`^(.+\\.)?ahost\\.net$`)
	  || HostRegexp(`zzzz(-xxxx)?.bhost.net`)
	"

Add more configuration information here.
If applicable, please paste the log output in DEBUG level
No response

Hello @bugficks,
Thanks for your interest in Traefik!
At glance, the priority computation did not change between v2 and v3.
When trying the dynamic configuration with v3, I get:
    "test2@file": {
      "entryPoints": [
        "web"
      ],
      "service": "api@internal",
      "rule": "Host(`zzzz.ahost.net`) || Host(`zzzz-host-net.bhost.net`)",
      "ruleSyntax": "v2",
      "priority": 57,
      "status": "enabled",
      "using": [
        "web"
      ]
    },
    "test3@file": {
      "entryPoints": [
        "web"
      ],
      "service": "api@internal",
      "rule": "HostRegexp(`^(.+\\\\.)?ahost\\\\.net$`) || HostRegexp(`zzzz(-xxxx)?.bhost.net`)",
      "ruleSyntax": "v2",
      "priority": 75,
      "status": "enabled",
      "using": [
        "web"
      ]
    }
  },

Unfortunately in v2 the priority is not part of the API, but v3 looks to compute the priority correctly.
Have you tried to configure the priority to see if it fixes your issue?

Yes, that's what I've ended up doing to work around the issue. I've set priority to high number for the rule I want to match first and the other one with default priority.

authors: bugficks rtribotte

repo: traefik/traefik


text:
[WIP] Configure DNSChallenge provider using environment variables passed through config.

What does this PR do?
Adds the ability to apply multiple configurations to DNS challenge providers.
It allows passing specific environment variables during the creation of the DNS challenge provider.
Those variables are placed under certificatesResolvers.<name>.acme.dnsChallenge.environment
Example:
[certificatesResolvers.CertificateResolver1.acme.dnsChallenge.environment]
  foobar = "foobar"

Environment variable foobar with the value foobar will be passed to the DNS challenge provider during its creation.
This is done by overriding environment variables during provider creation and restoring the previous environment status after it.
Motivation
I wanted the ability to pass different configurations to different providers because I own several domains and my DNS provider generates different API keys for different domains.
Also, there's an issue that is not resolved yet: https://github.com/traefik/traefik/issues/5472
More

[x] Added tests for dns challenge provider configuration
[x] Updated documentation

Additional Notes
I'm completely aware that this implementation is quite hacky.
The right solution will require huge PR to https://github.com/go-acme/lego for it to support configuration through code.

Hello,
As explained here https://github.com/traefik/traefik/issues/5472#issuecomment-534908109, this approach will not really work.
And there is a concurrency issue.
I already declined PRs with this kind of approach in lego.
So we will decline.

Hello,
As explained here #5472 (comment), this approach will not really work.
And there is a concurrency issue.
I already declined PRs with this kind of approach in lego.
So we will decline.

According to my small research, every single DNS provider in lego currently uses environment variables to configure itself.
So, this approach does really work. And it works for each of supported providers in lego.
Until there no other ways to configure providers in lego, I think this is not that bad way to fix this issue.

I'm the main maintainer of lego, according to my knowledge, every single DNS provider doesn't use env vars, sorry.

I'm the main maintainer of lego, according to my knowledge which is exhaustive, every single DNS provider doesn't use env vars, sorry.

Ok.
I've looked over every provider before writing previous message and haven't seen any which can't be configured using env vars :smile:
Maybe I've missed one or two, my fault. (you could have pointed on one of them for this conversation to be more productive, btw)
Nevertheless, my approach adds a configuration entry called environment.
I think it's quite obvious for consumers that this feature allows to configure only those DNS providers which can be configured using environment variables.
What's wrong with ability to solve several users' issue?
This change does not seem to impact on any other traefik subsystems.
It's very easy and clear.
It would be easy to remove once proper solution will be implemented.
Current situation involves a lot of unneeded complexity for cases which does not require it.

authors: IlyaGulya ldez


text:
Further Let's Encrypt ratelimit warnings

From recent first hand experience I thought adding these further warnings were worthwhile:

highlight the ratelimits are serious (1 week), not just a matter of minutes.
add warning about why preserving the certificate file across container restarts is important and easily overlooked

Hello @hcooper,
Thanks for your interest in Traefik!
Can you please rebase your PR to the v2.9 branch ?

Getting very strange results trying to rebase this. Just going to make a new PR.

authors: hcooper tomMoulard


text:
Fix Airflow Doc Ingestion Task Incorrect Typing Error (#283)

Description

See https://github.com/astronomer/ask-astro/issues/282 for details of why the error occurs. This won't be explained again in this PR.
TL;DR: A previous refactor PR deleted parts where we convert a set of URLs for airflow docs into a list of dataframes containing the actual docs.

Technical Changes

Added previous incorrectly deleted code back (from this PR https://github.com/astronomer/ask-astro/pull/237/files#diff-a9a4a2183823324d52b3b700e73457392b9117a8fdbd252621e8d4d2f10b2ec1, and this file
https://github.com/astronomer/ask-astro/blob/f0967a60ac8e37b8d3885940d636b2b381d36e4e/airflow/include/tasks/extract/airflow_docs.py)

Tests

Previously

Now

closes #282

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

authors: CLAassistant bismuthsalamander

repo: trailofbits/ask-astro


text:
VOR Issue-001

[ ] LaTeX file
[x] Both affiliations
[x] New license
[x] Minor corrections #24

Both affiliations.

Hola Bastián, cuál es el doc que tengo que revisar? el que se me abre es uno que ya revisé (https://github.com/training-datalab/tufte-working-papers/blob/master/issue-001/VOR/gonzalezbustamante2020.pdf) @bgonzalezbustamante

@AntoRebolledo acá está el último: https://doi.org/10.31235/osf.io/npc9e

@AntoRebolledo también acá https://github.com/training-datalab/tufte-working-papers/blob/master/issue-004/02.Preprint/gonzalezbustamante2023.pdf #27

authors: AntoRebolledo bgonzalezbustamante

repo: training-datalab/tufte-working-papers


text:
🛑 Anakin is down

In a90e295, Anakin (https://anakin.langstadlinger.eu) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Anakin is back up in 5b2b0f5.

repo: traktuner/status


text:
Use pytest-pythonpath to set PYTHONPATH

Use pytest-pythonpath to set PYTHONPATH instead doing manually in the Makefile.

Bitbucket: https://bitbucket.org/transcode/transcode-django-project/issue/10
Originally reported by: Markus Zapke-Gründemann
Originally created at: 2014-10-17T12:17:01.510

From Max Brauer on 2015-01-05 14:39:03+00:00
I was not able to get the testsuite to run with pytest-pythonpath. Even after adding the full path manualy (e.g. /tmp/my_project/my_project/ which would be the path the makefile generates currently) it is not able to find the settings or the pytest plugins.


text:
Clarify GOROOT troubleshooting for asdf and don't hardcode env value

While trying to run the standalone ato-linter tool I was having what looked like go build/version issues with types and packages.  I knew we were on go version 1.17.2 so it was weird to see references to an older go version that wasn't pointing to the asdf install.
pkg/services/mocks/SFTPClient.go:6:2: package io/fs is not in GOROOT (/usr/local/Cellar/go@1.14/1.14.7/libexec/src/io/fs)
Upon further research I saw that my GOROOT was not being set to the asdf go location so I reshimed and updated my GOROOT with asdf reshim golang && export GOROOT="$(asdf where golang)/go/"
I am going to add GOROOT to my ~/.zshrc file going forward with the output from asdf as per instructions.

Just to make sure I understand fully, the asdf reshim golang part was only needed for you because you did it directly as a command, but having export GOROOT="$(asdf where golang)/go/" in your .*rc file will be enough?
Also, maybe we should update the wording here:

running asdf where go and then set that appropriately for your shell

To explicitly say to set it in the .*rc files?

Yea I don't believe the asdf reshim was necessary since I didn't install golang outside of the asdf plugin https://asdf-vm.com/manage/core.html#reshim .  That would be solving a different problem.

repo: transcom/mymove-docs