Remove duplicate paragraph

Fixed by a bad LuaDoc tag via https://github.com/orbitalquark/textadept-lsp/commit/6eaf7671cad746199b4d6cc19f1b259f6ffb12a6
Thanks for catching it.


Error when import pisa on python 2.7.14 32bits

Hi,
I have installed xhtml2pdf using pip for a python 2.7.14 32bits installation without problem
However I got the following error when importing pisa
from xhtml2pdf import pisa
>>>Traceback (most recent call last):
  File "C:\tmp\maxdem\print\test.py", line 1, in <module>
    from xhtml2pdf import pisa             # import python module
  File "C:\Python27\ArcGIS10.6\lib\site-packages\xhtml2pdf\pisa.py", line 18, in <module>
    from xhtml2pdf.default import DEFAULT_CSS
  File "C:\Python27\ArcGIS10.6\lib\site-packages\xhtml2pdf\default.py", line 5, in <module>
    from xhtml2pdf import util
  File "C:\Python27\ArcGIS10.6\lib\site-packages\xhtml2pdf\util.py", line 22, in <module>
    import arabic_reshaper
  File "C:\Python27\ArcGIS10.6\lib\site-packages\arabic_reshaper\__init__.py", line 3, in <module>
    from .arabic_reshaper import reshape, default_reshaper, ArabicReshaper
  File "C:\Python27\ArcGIS10.6\lib\site-packages\arabic_reshaper\arabic_reshaper.py", line 242, in <module>
    default_reshaper = ArabicReshaper()
  File "C:\Python27\ArcGIS10.6\lib\site-packages\arabic_reshaper\arabic_reshaper.py", line 64, in __init__
    self.configuration = auto_config(configuration, configuration_file)
  File "C:\Python27\ArcGIS10.6\lib\site-packages\arabic_reshaper\reshaper_config.py", line 80, in auto_config
    if 'ArabicReshaper' not in configuration_parser:
TypeError: argument of type 'instance' is not iterable

It seems the problem is with ArabicReshaper library

@DemersM As this seems to be a problem with arabic-reshaper, you have to report it there:
https://github.com/mpcabd/python-arabic-reshaper/


Reimbursement NHS admin portal bugs

[x] Create program medication page
there is no program list in drop down list (not found value)
[x] fix page pointer
[x] change birth_date to age on medication request details and medication dispense details pages
[x] fix medication dispense details page

from fields with input type 'number' hide right bar


futures-macro (pulled in by futures-util) appears not to compile on musl

I have a CI pipeline that tests my project on glibc and musl and it appears that when I pull in futures-util as a dependency, this compiles just fine on glibc but does not compile on musl.
Here is the build log: https://travis-ci.org/github/jbaublitz/neli/jobs/738716295
This appears to be due to futures-macro exporting all of its procedural macros with #[proc_macro_hack] which is not allowed on musl.
I know that rust and musl have had problems in the past related to proc macros and I'm wondering if this is the right place to report this or if this should go into the rust repo.

I believe this issue was fixed in Rust 1.44+ (see https://github.com/rust-lang/rust/issues/40174). Can you check musl-dev is installed?

This appears to be a different issue as I do have musl-dev installed (see here) and it is able to find the proc-macro crate. It is simply complaining about the usage of #[proc_macro_hack] which is not what the linked issue seems to be about. I read that one over before filing this one.

Hmm, I'm not sure what caused this problem, but this should eventually be fixed by https://github.com/dtolnay/proc-macro-hack/pull/64.
It should be able to compile by disabling futures-util's default features until that pr is merged or another workaround is found.
futures-util = { version = "0.3", default-features = false, features = ["std"] }

Oh thanks for putting up a PR! Do you want me to test anything for now?

I'm having the same or at least a similar issue. Adding
futures-util = { version = "0.3", default-features = false, features = ["std"] }

to Cargo.toml doesn't fix it. Here's my output:
❯ cargo build
   Compiling futures-macro v0.3.7
   Compiling pin-project-internal v0.4.27
   Compiling serde_derive v1.0.117
   Compiling thiserror-impl v1.0.21
error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
  --> /home/sebastian/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-macro-0.3.7/src/lib.rs:31:1
   |
31 | pub fn join_internal(input: TokenStream) -> TokenStream {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
  --> /home/sebastian/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-macro-0.3.7/src/lib.rs:37:1
   |
37 | pub fn try_join_internal(input: TokenStream) -> TokenStream {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
  --> /home/sebastian/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-macro-0.3.7/src/lib.rs:43:1
   |
43 | pub fn select_internal(input: TokenStream) -> TokenStream {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
  --> /home/sebastian/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-macro-0.3.7/src/lib.rs:49:1
   |
49 | pub fn select_biased_internal(input: TokenStream) -> TokenStream {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6: version `GLIBC_2.32' not found (required by /home/sebastian/git/latexbot-rs/target/debug/deps/libproc_macro_hack-59bcb376d337da05.so)
  --> /home/sebastian/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-macro-0.3.7/src/lib.rs:24:5
   |
24 | use proc_macro_hack::proc_macro_hack;
   |     ^^^^^^^^^^^^^^^

error: aborting due to 5 previous errors

error: could not compile `futures-macro`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

I don't know what the deal is with that specific version of glibc being required. The version I have available is 2.31.

@loewenheim I believe you have another dependency that enables async-await feature of futures-util. Can you show me the output of cargo tree -i -p futures-util?

❯ cargo build
Compiling futures-macro v0.3.7

Here's the output:
❯ cargo tree -i -p futures-util
futures-util v0.3.7
├── futures v0.3.7
│   └── teloxide v0.3.2
│       └── latexbot-rs v0.1.0 (/home/sebastian/git/latexbot-rs)
├── futures-executor v0.3.7
│   └── futures v0.3.7 (*)
├── h2 v0.2.7
│   └── hyper v0.13.8
│       ├── hyper-tls v0.4.3
│       │   └── reqwest v0.10.8
│       │       └── teloxide v0.3.2 (*)
│       └── reqwest v0.10.8 (*)
├── hyper v0.13.8 (*)
├── latexbot-rs v0.1.0 (/home/sebastian/git/latexbot-rs)
└── reqwest v0.10.8 (*)

@loewenheim

Here's the output:

Seems async-await feature is enabled by teloxide.

Since I merged #2243, this should be fixed on the master branch.

Unfortunately, that hasn't seemed to fix it for me. I now get
❯ cargo tree -i -p futures-util
futures-util v0.3.7 (https://github.com/rust-lang/futures-rs?rev=4122f3d5#4122f3d5)
├── futures v0.3.7
│   └── teloxide v0.3.2
│       └── latexbot-rs v0.1.0 (/home/sebastian/git/latexbot-rs)
├── futures-executor v0.3.7
│   └── futures v0.3.7 (*)
├── h2 v0.2.7
│   └── hyper v0.13.8
│       ├── hyper-tls v0.4.3
│       │   └── reqwest v0.10.8
│       │       └── teloxide v0.3.2 (*)
│       └── reqwest v0.10.8 (*)
├── hyper v0.13.8 (*)
└── reqwest v0.10.8 (*)

but the build still fails with exactly the same error as before.

@loewenheim Replacing dependencies with git doesn't replace dependencies of dependencies with git. It needs to add a patch section like the following to workspace root's Cargo.toml.
[patch.crates-io]
futures = { git = "https://github.com/rust-lang/futures-rs" }
futures-core = { git = "https://github.com/rust-lang/futures-rs" }
futures-channel = { git = "https://github.com/rust-lang/futures-rs" }
futures-executor = { git = "https://github.com/rust-lang/futures-rs" }
futures-io = { git = "https://github.com/rust-lang/futures-rs" }
futures-macro = { git = "https://github.com/rust-lang/futures-rs" }
futures-sink = { git = "https://github.com/rust-lang/futures-rs" }
futures-task = { git = "https://github.com/rust-lang/futures-rs" }
futures-util = { git = "https://github.com/rust-lang/futures-rs" }

(In any case, I should create a new release...)

Still no luck, I'm afraid. Though I'm not entirely sure that the problems are caused by this issue.
❯ cargo build
   Compiling futures-macro v0.3.7 (https://github.com/rust-lang/futures-rs#4122f3d5)
   Compiling pin-project v1.0.1
   Compiling tokio v0.2.22
   Compiling serde v1.0.117
error: /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6: version `GLIBC_2.32' not found (required by /home/sebastian/git/latexbot-rs/target/debug/deps/libpin_project_internal-71a017b8e79917db.so)
  --> /home/sebastian/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-1.0.1/src/lib.rs:85:9
   |
85 | pub use pin_project_internal::pin_project;
   |         ^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

error: could not compile `pin-project`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6: version `GLIBC_2.32' not found (required by /home/sebastian/git/latexbot-rs/target/debug/deps/libserde_derive-428f432050fd432d.so)
   --> /home/sebastian/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.117/src/lib.rs:286:1
    |
286 | extern crate serde_derive;
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
  --> /home/sebastian/.cargo/git/checkouts/futures-rs-b0bea7d4c3745ece/4122f3d/futures-macro/src/lib.rs:31:1
   |
31 | pub fn join_internal(input: TokenStream) -> TokenStream {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
  --> /home/sebastian/.cargo/git/checkouts/futures-rs-b0bea7d4c3745ece/4122f3d/futures-macro/src/lib.rs:37:1
   |
37 | pub fn try_join_internal(input: TokenStream) -> TokenStream {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
  --> /home/sebastian/.cargo/git/checkouts/futures-rs-b0bea7d4c3745ece/4122f3d/futures-macro/src/lib.rs:43:1
   |
43 | pub fn select_internal(input: TokenStream) -> TokenStream {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: `proc-macro` crate types currently cannot export any items other than functions tagged with `#[proc_macro]`, `#[proc_macro_derive]`, or `#[proc_macro_attribute]`
  --> /home/sebastian/.cargo/git/checkouts/futures-rs-b0bea7d4c3745ece/4122f3d/futures-macro/src/lib.rs:49:1
   |
49 | pub fn select_biased_internal(input: TokenStream) -> TokenStream {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6: version `GLIBC_2.32' not found (required by /home/sebastian/git/latexbot-rs/target/debug/deps/libproc_macro_hack-59bcb376d337da05.so)
  --> /home/sebastian/.cargo/git/checkouts/futures-rs-b0bea7d4c3745ece/4122f3d/futures-macro/src/lib.rs:24:5
   |
24 | use proc_macro_hack::proc_macro_hack;
   |     ^^^^^^^^^^^^^^^

error: aborting due to 5 previous errors

error: /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6: version `GLIBC_2.32' not found (required by /home/sebastian/git/latexbot-rs/target/debug/deps/libtokio_macros-b907bffc258ed627.so)
   --> /home/sebastian/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.22/src/lib.rs:403:13
    |
403 |     pub use tokio_macros::select_priv_declare_output_enum;
    |             ^^^^^^^^^^^^

error: aborting due to previous error

error: build failed

@loewenheim
Hmm, it seems all proc-macros failed to compile. Can you show me the version of rustc (rustc --version --verbose)?
Also, if you installed rustc using a way other than rustup, that may be the cause.
If updating the compiler and using the toolchain installed via rustup doesn't fix the problem, you may be able to fix it by using -C target-feature=-crt-static (https://github.com/rust-lang/rust/issues/59302):
RUSTFLAGS="-C target-feature=-crt-static" cargo build

I installed rust via rustup. rustc --version --verbose outputs
rustc 1.47.0 (18bf6b4f0 2020-10-07)
binary: rustc
commit-hash: 18bf6b4f01a6feaf7259ba7cdae58031af1b7b39
commit-date: 2020-10-07
host: x86_64-unknown-linux-gnu
release: 1.47.0
LLVM version: 11.0

Adding the target-feature flag didn't fix the problem. I'm very thankful for your assistance, but I'm honestly not sure investigating this further is worth your time—I'm using NixOS and there's just been a major update, the problem may be related to that.

Possibly related: https://github.com/rust-lang/rust/issues/78210
I think it's a slightly different issue, but the same workaround (specify target explicitly) may work:
RUSTFLAGS='-C target-feature=+crt-static' cargo build --target x86_64-unknown-linux-gnu

I finally figured out what the issue on my end was—it was a NixOS problem, nothing to do with the library at all.

@loewenheim

it was a NixOS problem,

Is the problem tracked on the NixOS side? (I searched for it a few days ago but I couldn't find any related issues...)

I'm sorry, I was being unclear. It was a problem with my specific NixOS configuration.

Ah, ok, thanks for clarifying.

@loewenheim: It seems some people encountered the same problem as you encountered (e.g., #2253). If you could tell us information about what configuration was the cause is very helpful.

@jbaublitz We have published 0.3.8. Can you see if it fixed the problem you encountered?

This may help:
I've encountered the same issue (on NixOS) in an older rust nightly version (I believe it was the nightly from 22th October), after I've updated to the most recent (8th November) (using rustup) the issue was gone. @loewenheim and all NixOS users have you tried the most recent nightly rust toolchain?
I'm not sure though if the rust toolchain update was the only necessary fix. For me it stopped working (with the same issue as @loewenheim had), and after some time (I didn't actively pursue this issue) it started working again...

error: /nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31/lib/libc.so.6: version `GLIBC_2.32' not found (required by /home/sebastian/git/latexbot-rs/target/debug/deps/libproc_macro_hack-59bcb376d337da05.so)

This error is likely https://superuser.com/questions/537683/how-to-fix-lib-x86-64-linux-gnu-libc-so-6-version-glibc-2-14-not-found.

That means the program was compiled against glibc version 2.14, and it requires that version to run, but your system has an older version installed. You'll need to either recompile the program against the version of glibc that's on your system, or install a newer version of glibc (the "libc6" package in Debian).

In my case, it worked like this: my system depends on the 20.09 channel of nixpkgs.
  # flake.nix
  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09";

I also make local dev environments for Rust projects. I use nix + direnv for this. I put this in the file flake.nix in the project directory:
{
  description = "Rust dev environment";
  outputs = { self, nixpkgs }: {
    # setup the devShell for x86_64-linux.
    devShell.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux;
      mkShell {
        nativeBuildInputs = [ pkgconfig rust-bindgen ];
        buildInputs = [
          # dependencies go here
          alsaLib
          libudev
          openssl
          …
        ];
      };
  };
}

and this in .envrc:
# reload when these files change
watch_file flake.nix
watch_file flake.lock
# load the flake devShell
eval "$(nix print-dev-env)"

This automatically rebuilds the dev environment whenever flake.nix changes.
The flake.nix above implicitly depends on nixpkgs. I assumed that it would use the same version as my system configuration above, but this was actually not the case—it used the unstable version. This was the cause of the problem. Some things were compiled with glibc 2.32 from unstable nixpkgs and some with 2.31 from 20.09. There are two ways to fix this.

Add an explicit line to the project's flake.nix that specifies the version of nixpkgs to use, like at the start of this post.
Modify the flake registry; see this blog post. By default, it says global flake:nixpkgs github:NixOS/nixpkgs. You can modify this using e.g. nix registry add flake:nixpkgs github:NixOS/nixpkgs/nixos-20.09. Running nix registry list now shows user flake:nixpkgs github:NixOS/nixpkgs/nixos-20.09 instead of the previous line. This means that you have overridden the standard definition of the nixpkgs flake and nixpkgs will refer to the 20.09 branch unless specified otherwise.

After doing either 1. or 2., you also have to update the flake using nix flake update --update-input nixpkgs --commit-lock-file.

Thanks @loewenheim for the detailed information! If I understand correctly, it can also be fixed by removing the old build artifacts (i.e., run cargo clean) that were generated before updating to nixos-20.09, right?

cargo clean wasn't sufficient in my case at least.

@jbaublitz: I think this is the solution to the error you encountered. (tl; dr, It seems that it can be fixed by installing libc6-compat or gcompat.)

@taiki-e I'll try to test this out when I get the change in my CI pipeline.

Hi @taiki-e, sorry this took so long! I was previously testing on a very handspun Ubuntu docker image. I've switched over to alpine with libc6-compat and it works perfectly. Thanks for your help! Closing.

For future NixOS users googling this error message, this can also happen when using rustup and updating your system / glibc version. Clearing ~/.rustup and reinstalling the needed toolchains solved it for me.


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 514

Questions ?
Please refer to the Backport tool documentation


tk103 not working with python

I have my gps TK103 , I configured for sms to can work via GPRS. actually work perfectly with different pages of services of tracker as it is: Orage, gpswebtracker or gpstrackerxy. Also I have my own server , this server have Static IP Public with port open also I have installed in this sever the software call "GPS Tracker" and work perfectly
The problem is that I am developing my  script in python to have communication from mi server to gps. I followed the next steps:

change IP and port of my gps to can connect to my server
open the connection btw gps and server
the gps send me : ##,imei:123456789012345,A;
anwer from my sever: LOAD (format text)

here begin the problem
5) the gps send me: imei:123456789012345,tracker,,,L,,,97f,,77c7,,,;

anwer from my sever: **,imei:123456789012345,B; (format Text)
the gps send me: imei:123456789012345,tracker,,,L,,,97f,,77c7,,,;

I repeat the step but with hex

the gps send me: imei:123456789012345,tracker,,,L,,,97f,,77c7,,,;

anwer from my sever: 2a2a2c696d65693a3132333435363738393031323334352c42 (format HEX)

the gps send me: imei:123456789012345,tracker,,,L,,,97f,,77c7,,,;

also with:

the gps send me: imei:123456789012345,tracker,,,L,,,97f,,77c7,,,;

anwer from my sever: **,imei:123456789012345,42; (format Text and HEX)

the gps send me: imei:123456789012345,tracker,,,L,,,97f,,77c7,,,;

and the manual traccar say: use 12-digit device identifier instead of IMEI. Usually it consists of 11 last digits from IMEI plus leading zero.   Whyyyyyy??
So really I dont have idea that why not work my scripting or why not can capture the data the coordinates of my gps. really a Im desperate.
Regards!
here my script in python
#!/usr/bin/python

_author__ = 'Alejandro hernandez'

import socket
import sys
import time
import re
import os

os.system('cls')

# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

# Connect the socket to the port where the server is listening
localhost = "<IP_ADDRESS>"
port = int("6000")
server_address = (localhost,port)

def echo_server():

    imei = []

    print >>sys.stderr, 'starting up on %s port %s' % server_address

    sock.bind(server_address)
    sock.listen(1)
    print >>sys.stderr, 'waiting for a connection'
    connection, client_address = sock.accept()

    print >>sys.stderr, 'client connected:', client_address
    data = connection.recv(1024)

    if data.find('##') > -1:

        imei.append(data)
        print >>sys.stderr, 'received %s' % data

        for line in imei:
            imeidevice = re.sub("\D",'', line)
            id = '0%s' %imeidevice[4:15]

        print >>sys.stderr, 'sending  msg to client: LOAD'
        message = 'LOAD'
        connection.sendall(message)

        while True:

            ansdev = connection.recv(1024)
            print >>sys.stderr, 'received %s' % ansdev

            if len(ansdev) == 16:

                #message = '**,imei:%s,B;' %id
                message = 'ON'

                print >>sys.stderr, 'sending  msg to client: %s' %message
                connection.sendall(message)

                ansdev = connection.recv(1024)
                print >>sys.stderr, 'received %s' % ansdev

    connection.close()

def main():

    echo_server()

if __name__ == '__main__':
    main()

attach images of data trafic

The problem is that your device doesn't seem to have a GPS fix. Are you testing it indoors?

No, the gps is in the street and no exist building  Or something that interferes with the signal. But i dont  understand, I have the same environment in the gps but with the web services (gpstracker u orange) work good perfectly, is more in my own server with the aplication 'gps tracker' have good results, but i try with python and can not. I haver the same trafic in the TCP ports such input and output, attached the images y the description cases.

All I can tell from your long post is that your device doesn't send any GPS data. The problem must be either lack of GPS signal, or some device configuration issue.

I checked the connection that technical did in the GPS in the motorcycle andd puff , him installed bad, the Athena GPS was in the gsm and viceversa. I changed the wire and just now received  the coordinates perfectly, sorry for the inconvenience.
imei:0123456789012345,tracker,170504035029,,F,225027.000,A,2039.2726,N,10324.1718,W,13.45,73.95;
imei:0123456789012345,tracker,170504035032,,F,225030.000,A,2039.2807,N,10324.1637,W,13.93,30.57;
imei:0123456789012345,tracker,170504035032,,F,225030.000,A,2039.2807,N,10324.1637,W,13.93,30.57;
imei:0123456789012345,tracker,,,L,,,97f,,77c7,,,;

Hey Alejan, I'm trying to use your script but it is now working on python3.7.
which version were you working?


Replace resolve/lib/core by is-core-module

This PR replaces resolve/lib/core by is-core-module is suggested in https://github.com/browserify/resolve/commit/1222da1fc7f249d053a9ba30dbab284640f13948
context: Babel e2e test is failing because resolve/lib/core is deprecated: https://app.circleci.com/pipelines/github/babel/babel/4244/workflows/de314db0-9b52-44c8-b6a5-9ca7d4b2cfd6/jobs/30580
/cc @ljharb

@JLHwung thanks; the deprecation warning has been removed in resolve v1.18.1, so this should be "fixed" for you, but this change is still a good idea.


Build Error: sawUniversalRobot Not Found

Hi Anton,
It seems like all other packages were built successfully except this one which complained about sawUniversalRobot not being found.
Starting >>> universal_robot
--- stderr: universal_robot
CMake Error at CMakeLists.txt:49 (find_package):
  By not providing "FindsawUniversalRobot.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "sawUniversalRobot", but CMake did not find one.

  Could not find a package configuration file provided by "sawUniversalRobot"
  (requested version 1.1.0) with any of the following names:

    sawUniversalRobotConfig.cmake
    sawuniversalrobot-config.cmake

  Add the installation prefix of "sawUniversalRobot" to CMAKE_PREFIX_PATH or
  set "sawUniversalRobot_DIR" to a directory containing one of the above
  files.  If "sawUniversalRobot" provides a separate development package or
  SDK, be sure it has been installed.

---
Failed   <<< universal_robot

Under /install/sawUniversalRobot/share/sawUniversalRobot/, I did not find sawUniversalRobotConfig.cmake.
I appreciate your help.

This is untested on real robot so proceed with caution.   You need to make sure you use the feature-updated-CMake-ros branch for the repository sawUniversalRobot.

On Jun 8, 2023, at 3:29 PM, Joshua Liu @.***> wrote:

Hi Anton,
It seems like all other packages were built successfully except this one which complained about sawUniversalRobot not being found.
Starting >>> universal_robot
--- stderr: universal_robot
CMake Error at CMakeLists.txt:49 (find_package):
By not providing "FindsawUniversalRobot.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"sawUniversalRobot", but CMake did not find one.
Could not find a package configuration file provided by "sawUniversalRobot"
(requested version 1.1.0) with any of the following names:
sawUniversalRobotConfig.cmake
sawuniversalrobot-config.cmake

Add the installation prefix of "sawUniversalRobot" to CMAKE_PREFIX_PATH or
set "sawUniversalRobot_DIR" to a directory containing one of the above
files.  If "sawUniversalRobot" provides a separate development package or
SDK, be sure it has been installed.

Failed   <<< universal_robot
Under /install/sawUniversalRobot/share/sawUniversalRobot/, I did not find sawUniversalRobotConfig.cmake.
I appreciate your help.
—
Reply to this email directly, view it on GitHubhttps://github.com/jhu-saw/sawUniversalRobotROS2/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAIRP42GGTEBPH6UXGU4GO3XKIRXZANCNFSM6AAAAAAY7W44WE.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Thanks, @adeguet1! I tested it on a CB2 UR5 robot. It seems working fine with a nice GUI.


[CI] - Run unit tests

As a car owner, I want the peace of mind that all new code is automatically tested by the CI framework before being merged, so that the errors can be specifically spotted before they pile up.

As a tester, I want to test the code pieces continiously, so that our group can better find what to fix in the code.

This issue was resolved in #81


Preview button not appearing if you extend the plugin with async code

Hello! I could not extend the plugin with the async code using the new "plugin/preview-button/before-build-url" hook.
Sync code works perfectly fine, but Strapi currently returns a minimal amount of fields for the relations. So to overcome that, we need to fetch particular fields of relations. If I add async code, the URL returned within the hook is correct but Live View button doesn't show on the admin FE. I have briefly checked the plugin admin code and the URL is returned as "undefined" assume because it's not ready to handle async code.
Here is the implementation:
 // ...
  bootstrap(app) {
    app.registerHook("plugin/preview-button/before-build-url", async ({ state, data }) => {
      const url = await parseUrlRelation(state, data);

      return {
        state: {
          ...state,
          url,
        },
      };
    });
  },
 // ...

And in "parseUrlRelation":
const parseUrlRelation = async (config, data) => {
  // ...

  for (const relation of relations) {
    // ...

    // get relations data and modify url
    const entity = await request(`/get-my-relation-data`, {
      fields: [field]
    });
    url = url.replace(relation, entity[field]);
  }

  return url;
};

Am I missing something or new hook just can't handle it? If so, any idea how to achieve that? Thanks!

Hi @bskuratov @benrychter Thank you for posting this issue. This is now fixed in the latest version 1.1.3 🎉  Let me know how it goes for you.

Hi @mattmilburn Thanks so much for the update, just tested it, all works perfectly.


update links in shopify store app setting (partner dashboard)

hello @kinngh keep up the good work 🚀,
i just have one question, which is related to app setup (step 3);
in which you said: "add the URL at your app settings in your Partner Dashboard";
how i'm gonna be able to update my app setting, if the app isn't installed in my dev store in the first place ??
i tried this:

You first need to create a Custom or Public app from your Shopify Partner Dashboard. In the app url, you'll be using the URL generated by local tunnel which looks like your-url.local.lt and in the "Allowed redirection URL" section you'll be using your-url.loca.lt/auth/callback.
Also, the repo doesn't work with the Shopify CLI just yet. I'll be adding support for CLI and/or extensions later.

one more thing, local tunnel doesn't change, right ??
(i won't need to update it each time i want to start the app.)

Every time you run npm run tunnel it generates a new URL. If you want to avoid that, you can change the tunnel script to include a subdomain. lt --port 8081 --subdomain <your-sub-domain> and that will generate the same subdomain every time, if it's available.
If you run into "URI not whitelisted" or similar issue, check your .env file and App Setup and make sure it's the same URL in both spaces.

I've made a new commit with extended docs that should help you in setting up everything. 4237ac3

thanks man, i really appreciate it.


Fix warning on using Channel.select

https://github.com/crystal-lang/crystal/issues/8409#issuecomment-548513517

should there be a test for this?

If deprecated code is not tested it is not guaranteed to stay working.
I prefer a CI with warnings rather than untested deprecated methods. But If I'm the only one who thinks that way, we can go ahead.

If deprecated code is not tested it is not guaranteed to stay working

Oh, I didn't know that was the reason it was kept.

Maybe we could consider adding comments for such specs that are explicitly meant to test deprecated behaviour. Otherwise I expect we will eventually get more "fix warning" PRs in the future.

I'll award bonus points for having a mechanism for designating a spec as testing a specific deprecated method and disabling deprecation warnings for this method inside the specs body.

Definitely. But is either be

a new keyword to be applied in a given lexical scope (as checked in https://github.com/crystal-lang/crystal/pull/6223) or
an annotation that could express only for the whole method level. (not useful in specs)
magic comments (I don't like it)

So, something like this?
pragma(allow_deprecated: true) { expr }

I don't think this is worth our efforts. After all it's just a warning.

I agree. It was just an idea that popped into my head but should be filed under "in case you're bored and have nothing else to do".

I don't know why I kept thinking about this. But it bugged me. And I think this could actually be very simple to implement. Because this really only affects specs and deprecated methods should only be called directly in the spec body, a naive static filter should be enough.
require "spec"

@[Deprecated]
def deprecated
end

it "test deprecated method" do
  deprecated
end

This is the warning:
In deprecation_spec.cr:8:3

 8 | deprecated
     ^---------
Warning: Deprecated top-level deprecated.

crystal spec, after compiling the program reports the warnings. These could simply be filtered based on file and line number. If it's in a spec file and maybe has some kind of annotation naming the deprecated method that should be suppressed.
Obviously this won't work if the deprecated method is called indirectly. But that should be avoided anyway because it would mean the deprecated method is used in some code other than specs.

The warnings are reported during compilation, not at runtime. I don't know if you took that into account.

Yes. Runtime doesn't matter. The spec command knows about the warnings an has the source code. So it can easily lookup the warning location in the source and check whether there is for example a comment designating this spec as testing a deprecated method.

The warnings code already has a check for which directories to ignore warnings in (lib). It would be trivial to expose that on the crystal commandline, and add spec.

This off-topic discussion should be continued in #8477


[1.10.2] IC2 compatability

Hi there,
thank you for this awesome mod :) However, there is a huge logspam...
https://gist.github.com/SpatiumPrinceps/ec37b0c82bba89b3f35ef12681ee5606
This happens very often... I think it started when the IC2 API got major changes.
IC2: 2.6.211
Mekanism: <IP_ADDRESS>8
Forge 2185
Thank you for your efforts!

Can you cut that out from the post and put it up on gist.com please?

Sorry 👍

Yea, just discovered something. The Mekanism machines cant pull EU as they used to do

Please get this working.

It's on the radar, but guessing the holidays are quite the same over the world, and so are schools, I guess there are exam periods which everyone is quite busy with.

Funny, the primary issue with 1.11 compatibility is the fact that all mod IDs became lowercase. I'm looking into this and should have a fix out by the end of the week.

Fixed in 1.11 development branch!


Use a dedicated library for tree handling

Hi,
I noticed that the class src/Node.php is basically re implementing a tree structure on itself.
Would you be interested to use a contrib library for handling the tree ? Would it be an option ?

Probably not, but I don't quite understand what you mean. Can you explain more and what the advantages would be?

Hi Rob,
Recently I had to find an easy solution to make images from an Abstract Syntax Tree of a PHP file.
I started investigating into nikic/php-parser and I used it at first to build my package.
Then I discovered this package. I really like the tree structure, it was much easier to parse.
You can find the package here: https://github.com/loophp/phptree-ast-generator
It's based on loophp/phptree and I recently added a custom importer for microsoft/tolerant-php-parser.
It's a command line tool, here are some examples:
To generate an image:
./bin/ast generate -p microsoft -t image -d graph.svg src/Command/Generator.php
To generate a dot script:
./bin/ast generate -p microsoft -d graph.dot src/Command/Generator.php
So, now to answer your question.
I was wondering why you were not using a dedicated library for handling trees, so you can dedicate all that logic and tests to the contrib library.
I built loophp/phptree, it might maybe a good candidate for this.
Let me know what you think.

Cool, thanks for sharing. And thanks for the suggestion, but I don't think we have enough complex tree logic here to justify it. Also, I am maintaining this project but not actively enough that I have the time to work on or validate a change like that.


Don't delete .ts files option

I've had issues, but rather than open an issue here I would rather just solve it myself.
All the .ts files are downloaded correctly and there is an error on merging.
It would be extremely helpful and simple to just add a check mark to not delete them so that I can manually merge them myself.
Thanks for your time

Instead of fixing issues yourself you might point out what the issues were so I could maybe fix them in a future TL update so not only you but everyone else also benefits from it.
Do think about all the average Joes out there who don't even know what a .ts file is (and they should not need to know).
TL will not provide such an option because 99.9% of the users don't know what it means. They just want a video... and that should just work. If it doesn't, we should work on how to make it work again and not provide weird workarounds only IT professionals and rocket engineers can use.

It's not an issue with TL its an issue with Twitch. If you download a stream that is live, and it ends, or the chunks get moved on the server (such as when twitch processes and mutes VODs), if it hits one of those files that it can't access for whatever reason, it just instantly fails and deletes everything you DID download. You could have all but a single 10sec chunk from a 5hr VOD, but it instantly deletes it and has to redownload it ALL when you click retry.
Simply changing the "clear temp folder" action to when the VOD is removed from the download list would allow retry actions to not waste everyones bandwidth because you only need to download the missing parts. If you have it set to auto clear the download when done, this then effectively changes nothing. It just makes zero sense to delete everything.


[main] Format Go code

Cron -knative-prow-robot
/cc knative-sandbox/eventing-writers
/assign knative-sandbox/eventing-writers
Produced by: knative-sandbox/knobots/actions/update-gofmt
Details:

/retest

closing and letting the bot create a new one. The failures have been fixed in https://github.com/knative-sandbox/eventing-rabbitmq/pull/986
/close


ARROW-11495: [Rust][Datafusion] Better numerical_coercion

We should consider number overflow in arithmetic operator functions.
UIn8 + UIn8 should be UInt16, but now it's UInt8
UInt16 * UInt16 should be UInt32, but now it's UInt16

The least supertype of UInt8 and Int8 should be Int16

Refer:  https://github.com/ClickHouse/ClickHouse/blob/bd81f43ecb/src/DataTypes/NumberTraits.h

Codecov Report

Merging #9596 (f2a9f34) into master (5ae63f8) will increase coverage by 0.01%.
The diff coverage is 80.18%.

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

Thanks @sundy-li  -- I will try and review this tomorrow sometime

I just tried a quick test on postgres which I think says postgres doesn't upcast integer types
alamb=# create table foo (x smallint);
CREATE TABLE
alamb=# create table bar as select x * x from foo;
SELECT 0
alamb=# \d bar
                  Table "public.bar"
  Column  |   Type   | Collation | Nullable | Default
----------+----------+-----------+----------+---------
 ?column? | smallint |           |          |

alamb=#

If a calculation overflows the maximum value of a smallint, postgres produces a runtime error rather than automatically upcasing:
alamb=# insert into foo values (32767);
INSERT 0 1
alamb=# select x + x from foo;
ERROR:  smallint out of range
alamb=#

.

I think this implementation looks really nice -- thank you @sundy-li . I believe that the code does what the PR description says it does.
I wonder if you happen to know what Postgres does in this situation (eg adding 2 32-bit numbers together?) I can imagine certain situations when the users wants to choose performance over avoiding possible overflow and would prefer not to upcast both arguments to 64-bit.
@Dandandan / @andygrove what do you think about what the default behavior should be?

I think this implementation looks really nice -- thank you @sundy-li . I believe that the code does what the PR description says it does.
I wonder if you happen to know what Postgres does in this situation (eg adding 2 32-bit numbers together?) I can imagine certain situations when the users wants to choose performance over avoiding possible overflow and would prefer not to upcast both arguments to 64-bit.
@Dandandan / @andygrove what do you think about what the default behavior should be?

I think it could be acceptable to do a bit more here than PostgreSQL does? It think it will make DataFusion behave differently however from PostgreSQL.
E.g. PostgreSQL returns an error integer out of range on SELECT<PHONE_NUMBER>0 +<PHONE_NUMBER>0 which I think the coercion will avoid by upcasting to 64 bit integers.

I think this implementation looks really nice -- thank you @sundy-li . I believe that the code does what the PR description says it does.
I wonder if you happen to know what Postgres does in this situation (eg adding 2 32-bit numbers together?) I can imagine certain situations when the users wants to choose performance over avoiding possible overflow and would prefer not to upcast both arguments to 64-bit.
@Dandandan / @andygrove what do you think about what the default behavior should be?

I think it could be acceptable to do a bit more here than PostgreSQL does? It think it will make DataFusion behave differently however from PostgreSQL.
E.g. PostgreSQL returns an error integer out of range on SELECT<PHONE_NUMBER>0 +<PHONE_NUMBER>0 but I think the coercion will avoid this error by upcasting to 64 bit integers.

Also for memory/performance concerns - I think it makes sense to think about those as well. We will do some extra copies by casting, so u8 + u8 will be converted if I understand correctly to c(u8, u16) + c(u8, u16), but u8 + u8 + u8 will involve more copies to something like c(c(u8, u16)+ c(u8, u16), u32) + c(u8, u32) etc. as the subexpressions are coerced to u16 already first. This could be optimized out a bit maybe to avoid the double casting, but it shows it can be quite inefficient.
Also when doing IO and keeping the result in memory will result in more storage costs, longer latency and/or higher memory usage if you don't convert them to use smaller types again.

Also for memory/performance concerns - I think it makes sense to think about those as well. We will do some extra copies by casting, so u8 + u8 will be converted if I understand correctly to c(u8, u16) + c(u8, u16), but u8 + u8 + u8 will involve more copies to something like c(c(u8, u16)+ c(u8, u16), u32) + c(u8, u32) etc. as the subexpressions are coerced to u16 already first. This could be optimized out a bit maybe to avoid the double casting, but it shows it can be quite inefficient.
Also when doing IO and keeping the result in memory will result in more storage costs, longer latency and/or higher memory usage if you don't convert them to use smaller types again.

Yes, it is. But correctness is important than efficiency. So it may be worth doing that.  I'm a fan of ClickHouse, ClickHouse always pursues the ultimate performance, but it had to do that too.
About behavior in mysql:
mysql> select 3 / 2, 2 - 3, 127 + 3, 255 + 8;
+--------------+-------------+--------------+--------------+
| divide(3, 2) | minus(2, 3) | plus(127, 3) | plus(255, 8) |
+--------------+-------------+--------------+--------------+
|          1.5 |          -1 |          130 |          263 |
+--------------+-------------+--------------+--------------+
1 row in set (0.01 sec)

I wouldn't expect most operations on numeric types to result in changes, other than division (ever the awkward one). Imo the user should opt into this kind of behaviour by casting at least one of the inputs to the desired result type.
For simple queries, it's not too bad, but if I were doing calculations in sql and then say writing back to another table, I would expect my u8 + u8 operations to yield more uint8s, not automatically convert to u16s. If I wanted that behaviour, I'd first promote one of those u8s to a u16 via casting.
I also think that if people are explicitly selecting the smaller sizes of [u]ints, they're aware of the constraints and probably have a valid domain/resource reason for not using something larger.

Make sense, thank you all guys. Closing this pr.

Thanks @sundy-li


Filecoin or Normal IPFS?

Research

https://docs.filecoin.io/about-filecoin/ipfs-and-filecoin/#using-ipfs-and-filecoin

Normal IPFS, it's decided. Since Filecoin doesn't support read and write without API keys as of now.


Cast POINTER_ID before comparison

-1 one tsc error; error TS2367: This condition will always return 'true' since the types 'string' and 'number' have no overlap.
See #8345.

Thx for the hint. Updated as suggested.

This is embarassing, sorry. Updated again.


Allow user-defined functions to accept pointers

See #728. There the user had defined a function that took a string and SQLite tried to pass NULL to it. That resulted in an error from this library stating argument must be BLOB or TEXT. Changing the function to take a *string instead didn't work and resulted in an error stating don't know how to convert to *string. Please update the private callbackArg func used by RegisterFunc to properly handle an input type of kind reflect.Ptr.

@rittneje I've implemented this feature request tested it only briefly. Could you add a test case for this to TestFunctionRegistration ?
About #728 This does not fix the issue with case #728 it only fixes "don't know how to convert to <reflect.Ptr>.
I hope you can write some nice RegisterFunc which uses Pointers as arguments.

@rittneje Code available in branch: feature-pointer-callback

Any updates on this?

@clarkmcc I don't believe a PR was ever raised. And I don't think the branch from @gjrtimmer will work without further changes. It needs to be something along these lines:

func callbackArg(typ reflect.Type) (callbackArgConverter, error) {
    switch typ.Kind() {
    case reflect.Ptr:
        f := callbackArg(typ.Elem())
        return func(v *C.sqlite3_value) (reflect.Value, error) {
            if C.sqlite3_value_type(v) == C.SQLITE_NULL {
                return reflect.Zero(typ), nil
            }
            rv, err := return f(v)
            if err != nil {
                return reflect.Value{}, err
            }
            ptr := reflect.New(rv.Type())
            ptr.Elem().Set(rv)
            return ptr, nil
        }
    ...


Get Pokestop/Arena Name & Skip tutorial

Hey,
is it possible to make the tutorial with the bot and how i can get a Pokestop/Arena name.

For the complete info of a fort (e.g. Arena/PokéStop) you can use .GetFortDetails().
I believe the API does not care if you are under level 5 for arena's so in this case you can obtain all data even if you are under level 5.


Feature Request Normal Map Light and shadow viewer control

Hi @MrForExample
I create this workflow base in this implementation article all info and Loras are there everything work in ComfyUI only need the Lightning node.

Can you implement a node viewer that can input the normal map and let the user tweak the light and shadows like in the video.

Article link:
https://note.com/tori29umai/n/nb265908c0ee9?sub_rt=share_h

Hi, this looks interesting, I'll take a look, but for now I have other priorities though, like MVS & 3DGS to 3D mesh conversion algorithm 👍

@MrForExample thanks for your reply there an implementation but the problem is that it needs to queue every time it supposed to be Realtime and them capturing the shadows and light and them use some blend mode to mix the Albedo, Ao ma, normal map, shadows, etc...


container: Support /etc/ostree/auth.json and in /run too

This is related to https://github.com/ostreedev/ostree-rs-ext/issues/121
as well as https://github.com/containers/containers-image-proxy-rs/pull/8
etc.
The CLI code here supports --authfile.  However, passing it on
the CLI each time for production use cases pushes complexity to
users.
Add support for global persistent and runtime config files in
/etc/ostree/auth.json and /run/ostree/auth.json.
Change the default constructor for image pulls to use that by default.
Note that the CLI options override the config defaults.
While we're here, also add --auth-anonymous to the CLI, which is
needed to ensure we don't use a config file if present.

Thanks for reviewing!


Search does not support fields selection ?

Hi !
I'm giving a try to Jest for some basic search features.
I'm trying to load only some fields from the documents hit by a search request, and get the results as domain objects (incomplete and dirty objects but still objects :))
@Test
public void testFindWithFieldsShouldReturnHermes() throws Exception {
    // given
    IndexesObjectFactory fact = new IndexesObjectFactory("http://localhost:9200");
    JestClient client = fact.jestClient();

    createIndex("futurama");
    index("futurama", "user", "1", userAsMap("Philip", "Fry"<EMAIL_ADDRESS>"pfry"));
    index("futurama", "user", "2", userAsMap("Hermes", "Conrad"<EMAIL_ADDRESS>"hconrad"));
    index("futurama", "user", "3", userAsMap("Amy", "Wong"<EMAIL_ADDRESS>"awong"));

    refresh();

    SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder()
            .fields("login", "email")
            .query(QueryBuilders.queryString("hconrad"));
    Search search = new Search.Builder(searchSourceBuilder.toString())
            .addIndex("futurama")
            .build();

    SearchResult result = client.execute(search);

    // when
    List<User> users = result.getSourceAsObjectList(User.class);

    // then
    assertEquals(1, users.size());
}

This test basically creates an index, populates it with some "users", and builds a query which looks like this when serialized :
{
  "query" : {
    "query_string" : {
      "query" : "hconrad"
    }
  },
  "fields" : [ "login", "email" ]
}

The ES cluster's response :
{
	"took" : 120,
	"timed_out" : false,
	"_shards" : {
		"total" : 4,
		"successful" : 4,
		"failed" : 0
	},
	"hits" : {
		"total" : 1,
		"max_score" : 0.11506981,
		"hits" : [{
				"_index" : "futurama",
				"_type" : "user",
				"_id" : "2",
				"_score" : 0.11506981,
				"fields" : {
					"login" : ["hconrad"],
					"email"<EMAIL_ADDRESS>				}
			}
		]
	}
}

The test fails returning 0 domain object instead of 1. The test is ok when I comment the fields() builder's method, which ends up with the following request/reply :
{
  "query" : {
    "query_string" : {
      "query" : "hconrad"
    }
  }
}

ES's response :
{
	"took" : 163,
	"timed_out" : false,
	"_shards" : {
		"total" : 8,
		"successful" : 8,
		"failed" : 0
	},
	"hits" : {
		"total" : 1,
		"max_score" : 0.11506981,
		"hits" : [{
				"_index" : "futurama",
				"_type" : "user",
				"_id" : "2",
				"_score" : 0.11506981,
				"_source" : {
					"lastName" : "Conrad",
					"email"<EMAIL_ADDRESS>					"login" : "hconrad",
					"firstName" : "Hermes"
				}
			}
		]
	}
}

The thing is Jest seems to extract the document from the path hits/hits/_source, which is correct when a request without fields selection is sent to ES but incorrect when fields are set in the query.
Imho, even if the correct path to the document is set (hits/hits/fields), the unmarshall process would fail because Jest relies on the Gson lib, which would not handle correctly the mapping JSon array -> String attribute (ES API returns the field values as arrays)
Do I miss something ? What is the recommended way to perform such queries with Jest ?
Thanks !

Hit the same problem yesterday :-) This might make a very nice improvement. I might even volunteer ;-) Anyone up for discussing possible solutions?

Did you consider using source filtering? This seems to solve field selection problem.

+1 I am planning on using fields in my queries, and I see that Jest supports that. However, as OP mentioned, there doesn't seem to be a way of deserializing the SearchResult object to access the fields.
A method analogous to getHits(Class) might work, but field names can contain nested results. I think something as simple as results.getFieldAsString(Boolean) would suffice.

Is this something that has been added/addressed in the new release?

@raunak No, it was not addressed hence the issue is still open.

I was able to workaround this by using SearchResult.setPathToResult("hits/hits/fields") before calling getHits().


rebase: update/remove some vendored packages

Some of the packages listed in go.mod have updates, and others are not used in the project (or vendored-in) dependencies anymore. This PR cleans up the go.mod and related artefacts a little.

Show available bot commands
These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

/retest ci/centos/<job-name>: retest the <job-name> after unrelated
failure (please report the failure too!)
/retest all: run this in case the CentOS CI failed to start/report any test
progress or results

/retest ci/centos/mini-e2e/k8s-1.19

/retest ci/centos/mini-e2e/k8s-1.19

Failed to start the minikube VM (logs):
X Exiting due to GUEST_PROVISION: Failed to start host: creating host: create: Error creating machine: Error in driver during machine creation: IP not available after waiting: machine minikube didn't return IP after 1 minute


Add riff logo

Ideally there is a better quality logo out there somewhere, but for now I took the logo from the twitter account, cropped it, and added it to the README

@Fitzoh - this has been implemented via #286 - thanks for the PR!


Bundling resources with Swift Package

Trying to publish a module with shared string resource over moko-resources. Internally moko-resources generates Resource files for iOS. However, upon running on device it throws Uncaught Kotlin exception: kotlin.IllegalArgumentException: bundle with identifier xx.xx.MR not found.
Moko resources suggest adding a command to copy over resources in build phase.
Would be nice to add resources field also added in Package.swift when doing spmDevBuild (Bundling resources with Swift Package)

Is this an issue just for local builds with spmDevBuild, or also for binary builds? Can toggling between static and dynamic frameworks help?

I haven't tried it on binary builds but the issue was there for spmDevBuild.

We have other priorities at the moment so probably won't get to this soon. But it should be possible to grab the updatePackageSwift task, call doLast {} or similar, and make edits manually.

Bubbling back up. KMMBridge is getting some refactor attention now, and this seems like something that should be included.
ETA, however, need to dig into it.


Add newline before example code block

This previously wasn't rendering correctly on http://electron.atom.io/docs/v0.35.0/api/web-view-tag/#allowpopups

/cc @jlord :eyes:

Yep, that's it!


Second monitor ghosting upon wake up

In Windows 10, with 2 monitors, upon waking up from hibernation the second monitor has a ghosting duplicate of the RainbowTaskbar effect positioned directly above the taskbar.

Does it revert back if you apply & save again?

inactive


Relocate Xen-on-Linux tests within virtual unit tests. Were mixed in with Solaris tests.

Tests for Linux had strayed into 'describe on Solaris' block. Not of a great deal of use there.
Sited with other Xen tests.

Merged into branch 1.6.x in commit 429801d33349b0b7e60fd525dbea0a28eb2e8f19, thank you very much for this contribution!


Pinterest Demo

Hello Team,
I want to developed pinterest like demo without npm so please help me.

This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux. Thanks!

Ok thanks
On Feb 9, 2017 9:58 PM, "Tim Dorr"<EMAIL_ADDRESS>wrote:

Closed #4498 https://github.com/ReactTraining/react-router/issues/4498.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ReactTraining/react-router/issues/4498#event-955865676,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APIcsm1aNDblN6rq97VPfz3CMQU1eV0Yks5raz64gaJpZM4L8Fqz
.


Extend jupyter/accessibility CI system even further

Add capabilities for automated reporting and callback through chatops

chatops?

yes we discussed having something like
bot please run accessibility tests in a comment to trigger - closed this issue as we need to rescope this based on Monday's session


Rename JAR to marklogic-client-api-M.m.p.jar

Today, the Java Client API is packaged as java-client-api-M.m.p.jar, for Major version, minor , patch. This makes it difficult to recognize, for example, in the classpath list of an IDE. A developer is likely looking for marklogic in the name somewhere. (It’s obvious that it’s Java already.)
Update the artifact (and its references in Maven et al) to be marklogic-client-api-M.m.p.jar.
Some relevant external examples:
<dependency>
    <groupId>org.mongodb</groupId>
    <artifactId>mongodb-driver</artifactId>
    <version>3.3.0</version>
</dependency>

<dependency>
  <groupId>com.datastax.cassandra</groupId>
  <artifactId>cassandra-driver-core</artifactId>
  <version>3.1.0</version>
</dependency>

<dependency>
  <groupId>com.oracle.jdbc</groupId>
  <artifactId>ojdbc7</artifactId>
  <version><IP_ADDRESS></version>
</dependency>

One thing to note is that this will shift our mvnrepository history away from https://mvnrepository.com/artifact/com.marklogic/java-client-api and instead we'll need to create https://mvnrepository.com/artifact/com.marklogic/marklogic-client-api

I guess Java gets to be THE Marklogic client API because we don't ever put the Node.js client distribution in maven?

That makes sense to me.  And if we want to put XCC into maven, we can call it XCC . . .

I guess Java gets to be THE Marklogic client API because we don't ever put the Node.js client distribution in maven?

Yes, npm is Node.js’s Maven equivalent.

One thing to note is that this will shift our mvnrepository history away from https://mvnrepository.com/artifact/com.marklogic/java-client-api

Can we edit that page with a link to the new one? And vice versa?

Note also, that the version string has changed from a hyphen to a dot to separate the minor and the patch. This aligns better with generally accepted semver.

Can we edit that page with a link to the new one? And vice versa?

Not that I'm aware of.  The page is auto-generated.

Note also, that the version string has changed from a hyphen to a dot to separate the minor and the patch. This aligns better with generally accepted semver.

The version string has changed in the description on this issue.  But using dots to separate the minor and the patch versions has been a part of the java-client-api releases since we started on github.

Right now, the project name here in github, the jar name, and maven names all align.  I think that's a plus.
It also makes a project look fickle if you go to a page like this and after just a couple of releases it looks gone:
https://mvnrepository.com/artifact/com.marklogic/java-client-api

Agreed, Charles, that it's not ideal to change the artifact id.
I talked with Justin, and his take is getting "marklogic" in the name is worth enough that we should take the hit on "looking fickle" in mvnrepository.  I'm fine with that.  So I think we'll proceed barring any other objections.

OK, so long as it's deliberate

Changing for ea-4 at this time means we need to update downstream projects too.  Not particularly happy about it, but will deal.

better to do now than later

We discussed today in the API Team meeting, and agreed that we will:

change the jar name as proposed
change the maven central artifact id to "marklogic-client-api"
leave the github project name as it is

For 1 and 2, we are making the change because it's obvious in the context of a jar or maven central that we're talking about java, but when someone looks at the jar or artifact id in eclipse, it may not be obvious that we're talking about marklogic.  For 3, we're not making a change because github hosts more than just java, so we need to clarify which client api we're talking about here: /marklogic/java-client-api or /marklogic/node-client-api

Maybe we could publish a relocation POM under the old artifact ID for some transition period? Benefits are:

downstream projects don't need to be adjusted immediately
the Maven repos will contain an official trace that the old artifact was renamed

See https://maven.apache.org/pom.html#Relocation

👍

Wonderful! 👍

@rashiatmarklogic just noted that this change has gone into develop branch.  Is it tracked in another spot besides this issue?

@sammefford this commit is in develop, but not referenced -- is there another issue for tracking this change?  I think this task should be set to 'test' now.

@grechaw , perhaps we need to break this process into multiple issues.  I was looking at the change in the pom.xml as just the first step.  I'm thinking the bigger step is getting things published in maven central and developer.marklogic.com, and testing everything.  That's why this is assigned to @itsshivaverma , because it's my understanding he'll take lead on this.

@robsman , I looked at the link about relocation, and I'm not groking how to apply it to us.  Downstream projects shouldn't need to change immediately . . . we can leave old versions available as they are now.  The only reason they'll need to change is if they want to use our upcoming releases, in which case they'll need to change both the artifact id and the version.

the Maven repos will contain an official trace that the old artifact was renamed

Can you help me understand how to achieve this?  Should we publish a dummy release with this relocation tag in the pom.xml?

Looks like I'm not the first to be confused: http://maven.40175.n5.nabble.com/Changing-the-groupId-artifactId-of-an-artifact-in-the-next-version-but-keep-maven-conflict-detection-td3345769.html

Maybe we just follow steps 4-6 plus "Releasing the next version" under "How to relocate a Maven 2 artifact to a different groupId" at Guide to relocation.  We're just changing the artifactid, but it seems the steps are the same.  I'm thinking we don't need to move any folders.  True?

I think this requires to publish one additional POM per release for a transition period. This can be a
stripped down relocation POM, but has to be under the old coordinate com.marklogic:java-client-api:x.y.z.
The real JAR's POM would go under the new coordinate com.marklogic:marklogic-client-api:x.y.z. Java package names should remain as is.
Previously published POMs would require no adjustment. Just from release 4.0.1 on these two POMs would exist in parallel and make it more convenient for clients using a variable to quickly switch between versions of the MarkLogic API.
I have set up a quick validation of this approach, please see https://github.com/robsman/maven-relocation-demo.

Wow, you rock, @robsman, thanks!

Tested with EA4 release. Works.


Whenever TaskbarX doesn't launch on startup, some other programs also don't launch on startup.

If I remove the Taskschedule, or if TaskbarX has an error that prevents it from launching on startup, other programs such as Discord, WallpaperEngine, and iCUE will also fail to launch, despite launching on startup normally.

To be able to focus on major/current bugs I had to close all issues. The issues section has gotten very messy to a point that I couldn't follow it anymore. Most issues are duplicates, very old or are already fixed/solved. Feel free to reopen this issue if you still have this issue on the latest version of TaskbarX to get my attention. All feature requests have been put in a list here: 💡| Feature requests #870
I hope you understand ❤


add file buffering to reduce memory consumption

We still had one pod OOMKilled, so file buffering might be a better strategy here.

/hold

/unhold


Can We Please Edit the About Page Text

Currently the about page focuses soley on the analytics hub. Can we work on a rewrite?
https://earthlab.github.io/dev-earthlab-site/about/
https://docs.google.com/document/d/1D66HzbpMr4YfS7xioA4psxo1cHNLbBBjfMpRzfI3BJo/edit
<EMAIL_ADDRESS>has access to edit the above doc)
Leah

I found a few typos and will give this another edit before we push it live!

@mbjoseph , i'm going to close this. I've edited the about page and think we are in good shape. When you review the courses branch you will see the changes.
Leah


release test tweak

The new bp release test doesn't work when verbose is off!
Fixed that, tweaked the output slightly.

+1
On Tue, Sep 4, 2018 at 6:20 AM Tom Swirly<EMAIL_ADDRESS>wrote:

The new bp release test doesn't work when verbose is off!
Fixed that, tweaked the output slightly.
You can view, comment on, or merge this pull request online at:
https://github.com/ManiacalLabs/BiblioPixel/pull/963
Commit Summary

Fix release_test bp to work when --verbose is False
More consistent test names in release_test

File Changes

M scripts/release_test/release_test
https://github.com/ManiacalLabs/BiblioPixel/pull/963/files#diff-0
(13)
M scripts/release_test/tests/bp.py
https://github.com/ManiacalLabs/BiblioPixel/pull/963/files#diff-1
(5)

Patch Links:

https://github.com/ManiacalLabs/BiblioPixel/pull/963.patch
https://github.com/ManiacalLabs/BiblioPixel/pull/963.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ManiacalLabs/BiblioPixel/pull/963, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA6a6u9jww98kMOmQRgWXH0S7maitZz5ks5uXlQGgaJpZM4WYtAW
.


        }
}

Thanks in advance :D
PS: I'm French sorry for my bad english :/

The easiest way is to simply put it as a parameter: void index(scope WebSocket ws) { ... } registerWebInterface will automatically detect that and establishes a web socket connection. If you want to do it manually instead, you'll have to use a closure and handleWebSocket:
void index(HTTPServerRequest request, HTTPServerResponse response)
{
    import vibe.http.websockets : handleWebSocket;
    handleWebSocket((scope ws) {
        ...
    }, request, response);
}

Closing for now. Please feel free to reopen!


proof2' doesn't pass type checking

Hi, I've been starting to read the book, and I can't get a code working:

proof₂′ : (A : Set) → A → A
proof₂′ _ x = x

proof₂ : (succ (succ zero)) even  → (succ (succ zero)) even
proof₂ x = proof₂′ ℕ x

The error that I've got:

(succ (succ zero) even) !=< ℕ of type Set
when checking that the expression x has type ℕ

Probably I'm missing something, or there is a typo in the book
I have Agda <IP_ADDRESS>
Thanks,
Michael

@grouzen
The error message you are getting is more helpful than you realize. Allow me to explain:
The type of x in proof₂ is "(succ (succ zero)) even". When you call proof₂′ however, you are telling it that the type is ℕ. These two types are not the same, so it gives you a type error.
BTW: proof₂′ is the identity function, and generally you do not need to pass in the argument explicitly.
id : {A : Set} → A → A
id a = a

@cjenkin2 Yeah! I noticed this too (types are different at all), that's why I created this issue.


Clean reflect cache

Codecov Report

:exclamation: No coverage uploaded for pull request base (5.5@23bb589). Click here to learn what that means.
The diff coverage is 100%.

@@          Coverage Diff           @@
##             5.5     #715   +/-   ##
======================================
  Coverage       ?   70.84%
  Complexity     ?     1149
======================================
  Files          ?      382
  Lines          ?    15902
  Branches       ?     2563
======================================
  Hits           ?    11265
  Misses         ?     3292
  Partials       ?     1345

Impacted Files
Coverage Δ
Complexity Δ

...va/com/alipay/sofa/rpc/server/bolt/BoltServer.java
75.51% <100%> (ø)
25 <1> (?)

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 23bb589...355aaf2. Read the comment docs.


Connection refused for only http requests

I set up mitmproxy on my mac and installed the certificate on my android device.
What I did was : I started the mitmproxy server on the system, and added manual proxy settings to the wifi settings in my android to point proxy server to my system's ip with port 8080.
I am facing a issue in accessing the internet on my phone through mitmproxy. For some reason, some of the requests are working perfectly (the https ones I guess) (see the image), but for all the http requests, I am getting connection refused error on my mitmproxy server.
Here is a screenshot with some example requests:

I tried the same with a different phone , Xiomi Mi3. The problem still persists. So, I believe I am making some error in the configuration on my system.

Hi there. This seems to indicate that mitmproxy is seeing a connection refused to the upstream server for these requests, which is weird. Are you passing any other options to mitmproxy? Could you please show us the output in the eventlog ("e" keyboard shortcut). Any chance there's something weird about the network you're using, like a transparent proxy in the way?


iOS compile error

Hi, thank you for your work to share the codes in this project.
I downloaded your project code and compiled iOS app on Mac OS 10.15 with xcode 12.5.
I met the following error in CameraViewControllor.swift.
case .arCamera:
        if #available(iOS 14.0, *) {

            recordingManager = ARCameraRecordingManager()
            let session = recordingManager.getSession() as! ARSession
            let arView = ARView()

            arView.session = session
            → (error) Value of type 'ARView' has no member 'session'

            arView.renderOptions = [.disablePersonOcclusion, .disableDepthOfField, .disableMotionBlur]
             → (error) Reference to member 'disableDepthOfField' , cannot be resolved without a contextual type

            arView.automaticallyConfigureSession = false
            → (error) Value of type 'ARView' has no member 'automaticallyConfigureSession'

             arView.debugOptions.insert(.showSceneUnderstanding)
             → (error) Type 'ARView.DebugOptions.Element' (aka 'ARView.DebugOptions') has no member 'showSceneUnderstanding'

Technically, ARView can read Scene class property, but my xcode generated compile error in this case.
Can you help me avoiding these compile error in this file?
In advance, thank you for your supporting.
Regards,

Hi @bagelcafe, thank you for your interest.
I tried to compile the ios scanner app on macOS 12.4 with Xcode 13.4.1, with an actual iPhone 12 Pro device (iOS 15) and an iPad Pro (iPadOS 15). I cannot reproduce the error you showed above.
I found this stack overflow post: ARKit Plane Detection - Value of type 'ARView' has no member 'session', it mentions "You get this error if your build destination is set to a Simulator. You need to select either an Actual Device or Generic iOS Device."
Then I also tried to compile the ios scanner app on macOS 12.4 with Xcode 13.4.1, with iOS Simulators set as iPhone 12 pro (I also tested with iPhone 12). And I cannot reproduce the error you showed above. I am not sure if this is because I am using the newer version of Xcode, so I don't get the error when building with simulators.
If you can kindly share us with your settings: whether you are building with simulators or an actual device, and which version of the OS, the actual model device, etc. We can better help you find the root cause of the issue. Thank you!
All the best

Hi @SamMaoYS ,
Thank you for your comment and I upgrade Mac OS 10.15 to 12.6.2 on notebook. Also, xcode version was upagrded to 14.1 version.
In the end, those compile error with arView were resolved via update the version of Mac OS and Xcode. The app was successfully compiled and installed to iPad pro.
I appreciated your comment and effort with this issue.
Best Regards,


Cannot remove plates from Known Plates Dashboard

Running on Linux Docker with the latest repo changes.
Tested in both Chrome and Safari.
Clicking on the delete button within the table of known plates doesn't delete the plate.
Console Log:
Failed to remove from known plates: ReferenceError: removeFromKnownPlates is not defined

Thank you. Fix pushed.
docker compose down, then docker compose up -d should fix. If not, docker pull algertc/alpr-dashboard and that should pull the latest version.

pulling the new image got it to work. Known plates are being removed correctly now.
Many thanks!


Update README for toolchain requirement

The consume keyword requires -enable-experimental-move-only frontend flag, which was only enabled in recent snapshots. Specify a snapshot version that we know works in README.

@swift-ci please test

Ahh it looks like snapshots younger than May 3rd should contain the availability macro feature.

@swift-ci please test


[Feature Request]: Open port 8085 of cluster-autoscaler to access "/metrics" via kube.tf

Description
Hello,
We use the cluster-autoscaler feature. Its working well.
Know we want to keep track of the node historic node count in Prometheus and Grafana.
We are wondering what is the best way to do it.
We see that the metrics are server on port 8085 via "/metrics".
However the Port is not opened by default and no Service is connected.

@zypriafl You could definitely use the extra_firewall_rules variable to open (or close) any ports even after the cluster is up.


Requirements: CDC Changes for ECMPS 2.0

We need to make some changes to the CAMDBSP CDC job that runs every hour from 8am to 11pm for ECMPS 2.0 release.
Add the following highlighted tables (the other 4 should already be there)…

Add CAMDECMPSAUX.PROGRAM_PARAMETER

Add CAMDAUX.INVENTORY_STATUS_LOG (this should be in the LOG schema on oracle)

Update CAMD.UNIT sync to ignore the NON_LOAD_BASED_IND column

This column will be set/editable in ECMPS 2.0

Confirm that the REGION_ANALYST table is NOT part of CDC process

This table will no longer exist in the NCC Oracle database and will live in the ECMPS 2.0 Postgres database and be managed via ECMPS 2.0 admin functionality

Remove the PLANT_PERSON table from the CDC process

The data in this table is needed by any ECMPS 2.0 process
Remove camd/tables/plant-person.sql and camd/constraints-indexes/2-plant-person.sql from Git repo and drop tables from Postgres db
Modify misc/select-counts-all.sql and misc/counts-by-module.sql to remove references to plant_person table

Once all data is synced please execute the camdecmpswks.update_mp_eval_status_and_reporting_freq procedure on cloud.gov postgres

Job should email only if one or more of the count diffs are not 0 or if the job fails for some reason

Job run interval needs to change from hourly to every 5 mins from 8am to 12midnight

@jwhitehead77 will veirfy and test this ticket

Moving to Sprint 14 to complete at the same time as adding the Informatica jobs to the lower environments.  These changes will only apply in lower environments until 2.0 is released.


doc: Adding Thalesgroup as Falco adopters

Adding Thalesgroup on the list of Falco adopters.
What type of PR is this?
/kind documentation

Any specific area of the project related to this PR?
What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

update(adopters): add Thalesgroup

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Nicolas-Peiffer
Once this PR has been reviewed and has the lgtm label, please assign jasondellaluce for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, Nicolas-Peiffer
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 1476c267370536e0fc444f8e91cbaaa9ad73348a

/milestone 0.36.0

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: FedeDP, LucaGuerra, Nicolas-Peiffer
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [FedeDP,LucaGuerra]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


[release-v1.12] imc dispatcher doesn't have duplicate reporting of metrics

fix: imc dispatcher doesn't have duplicate reporting
basically, porting back this PR: https://github.com/knative/eventing/pull/7870

/cherry-pick release-v1.14


MNIST Tutorial

In the first cell of this ipynb, caffe2_root is set, but never used throughout the entire notebook. What is the purpose of this variable and how is it utilized in the caffe2 code.

That can be removed! Was used in an earlier version...