chore(main): release 0.5.0

:robot: I have created a release beep boop
0.5.0 (2023-12-03)
Features

better workflow (#50) (9a2ec5e)
Release Please init (4027a9f)

Bug Fixes

update release please token (#46) (cb3885e)

Miscellaneous Chores

bootstrap releases for path: . (#44) (2fb4497)
fix syntax (ad92253)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/constructions-incongrues/yazoo/releases/tag/v0.5.0 :sunflower:


Update PNPM to 8.15.5

Addresses a toolVersion bug
Fixes #9321

Bumping the version like this breaks compatibility with every project that is pinned to a specific version of pnpm, which is likely most projects that use pnpm.  There must be a better way.


Make preamble in vector query prompt customisable

Closes https://github.com/griptape-ai/griptape/issues/641

Closing. For now the best solution is to override template_generator. And this process may become easier with some upcoming changes to how Prompt Stack works.


unable to locate package arc-theme

hello
today i cloned the lates updated and i tried to build it but i face this error

the way i solved is i added add-apt-repository ppa:noobslab/themes to the Dockefile :
RUN apt-get update \
    && apt-get install -y --no-install-recommends software-properties-common curl apache2-utils \
    && add-apt-repository ppa:noobslab/themes\
    && apt-get update \
    && apt-get install -y --no-install-recommends --allow-unauthenticated \
        supervisor nginx sudo vim-tiny net-tools zenity xz-utils \
        dbus-x11 x11-utils alsa-utils \
        mesa-utils libgl1-mesa-dri \
        lxde xvfb x11vnc \
        gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf gtk2-engines-murrine arc-theme \
        firefox chromium-browser \
        ttf-ubuntu-font-family ttf-wqy-zenhei \
    && add-apt-repository -r ppa:fcwu-tw/apps \
    && apt-get autoclean \
    && apt-get autoremove \
    && rm -rf /var/lib/apt/lists/*

and the problem is solved

Hi,
arc-theme is in official 18.04 repo. It should not add any 3rd repo for this.
arc-theme:
  Installed: (none)
  Candidate: 20180114-1ubuntu1
  Version table:
     20180114-1ubuntu1 500
        500 http://tw.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://tw.archive.ubuntu.com/ubuntu bionic/universe i386 Packages

Build successfully in last few days https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc/builds/.


Remove VScode config

Otherwise developers using VScode clobber each other's configs
NOTE:

This will delete developers' current VScode configurations on pull.
After pulling and recreating the config, to avoid re-adding run:

git update-index --skip-worktree .vscode/settings.json

See https://stackoverflow.com/questions/1274057/how-to-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore

Coverage remained the same at 27.941% when pulling a5dc91c586374463615b7953302a2914e1e65b9a on MrCreosote:dev-testing into 9735c058b6eb1e5093d482bc76b7354180d9e700 on kbaseapps:dev-testing.


fix: Modify challenge test suite for project based curriculum

Modified challenge test suite so it does not throw an error if two steps for the project based curriculum have the same title.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Related to https://github.com/freeCodeCamp/freeCodeCamp/pull/37792.

Thank you for your reviews and merging this, @ojeytonwilliams :1st_place_medal:


Support locking site-packages

Support locking site-packages (making it read-only, forcing any -mpip install to --user)
Test with py3.12

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (334b0df) 99.75% compared to head (8f0fb93) 99.80%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #30      +/-   ##
==========================================
+ Coverage   99.75%   99.80%   +0.05%
==========================================
  Files          12       12
  Lines        2026     2039      +13
==========================================
+ Hits         2021     2035      +14
+ Misses          5        4       -1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


People are confused by chat messages, they don't know which plugin it's coming from.

Multiple people have asked in runelite support channel where the "<col=ff9040>Protect from Melee!clicked" message comes from.
Could it be made to be more clear what plugin it comes from? e.g. add "your class cannot use that!" maybe?

Hi there
Unfortunately this is a bit of debugging code I (foolishly) left behind. It's been commented out in the latest release, which I will commit/release ASAP. 🙂


Adds instructions to README.

Read nicely here: https://github.com/scryfall/servo/blob/22da0f6e3cd7f4d61e8edaa8612a4e90c8d0eed5/README.md

Servo is a Discord bot that will ~add the text~ post the text
~While referring to a Magic: the Gathering card on Discord, surround its name~ Surround Magic card names you talk about

[ ] Mention or show that misspellings and slight typos work
[ ] What does it look like if you don't have emoji?
[ ] Do you think you want to add some big buttons for the install/download actions? GitHub lets you embed cute image links

Punting on the images for now, PRs welcome!


optimize agg queries

this should reduce the query times without changing the results

@OriHoch why was only a day of tolerance problematic?

the gtfs date is the date that the data was collected on, it's not necesarily related to the date of the actual ride
I noticed it on the site where it showed less data with the optimization then without..

Alright I see it in the code now, but I was sure that this is the day we downloaded it from the MOT FTP, the therefore we still have reference to the original date. Can you help me here with understanding the gtfs loading process? (when are we downloading from the ftp? when is the original date is getting lost in the way?)

We actually rely on that when setting the siri_ride.scheduled_time_gtfs_ride_id to optimize the search there as well, maybe we shouldn't?
Maybe best would be adding an ETL that will update the route date based on the most common gtfs_rides.start_time? I definitely feel like I understand nothing again 😅
Basically AFAIK, we only use that date to narrow down searches, as the date that really matters is the ride's.
I think it will help me to look at the raw data, do we store it like we store siri?

yes, the raw data is availab,e see here - https://github.com/hasadna/open-bus-pipelines/blob/main/STRIDE_ETL_PROCESSES.md#gtfs-etl-download-upload

@OriHoch can you expand on how did you see this bug?
I wan unable to find such cases in the data (this returns 0 results) -
-- get all rides in which the diff between the gtfs_route.date and the gtfs_ride.start_time is more than 1 day. Sometimes we do have 1 day diff, mostly when the ride hour is late.
select EXtract(epoch from date_trunc('day', gtfs_ride.start_time) - gr.date) , * from gtfs_ride join gtfs_route gr on gtfs_ride.gtfs_route_id = gr.id
where date_trunc('day', gtfs_ride.start_time) != gr.date
  and EXtract(epoch from date_trunc('day', gtfs_ride.start_time) - gr.date) not in (-86400, 86400)
and date_trunc('day', gtfs_ride.start_time) between '2023-10-01' and '2023-10-30'

This is the original complaint - https://hasadna.slack.com/archives/C1M8YT5AN/p1701675411278589
this change fixed it


python310Packages.weconnect: 0.48.2 -> 0.48.3, python310Packages.weconnect-mqtt: 0.40.2 -> 0.40.3

Description of changes
https://github.com/tillsteinbach/WeConnect-python/releases/tag/v0.48.3
https://github.com/tillsteinbach/WeConnect-mqtt/releases/tag/v0.40.3

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 196012 run on x86_64-linux 1

4 packages built:

python310Packages.weconnect
python310Packages.weconnect-mqtt
python39Packages.weconnect
python39Packages.weconnect-mqtt


As a busy artist with several commissions ongoing, I can track my progress in each of them

Implemented in https://github.com/AY2223S1-CS2103T-W11-3/tp/pull/84


Small http gateway puts are failing

Unknown cause currently. Likely an issue with the usage of warp or stream conversion in main.c.

Seems to be solved. Unknown solution.


ARROW-10446: [C++][Python] Roundtrip Timestamp ns with TzInfo correctly

The value does not need to have offset applied if getting the epoch offset from pd.Timestamp.
Discovered on a hypothesis run.

CC @jorisvandenbossche @kszucs


Stop accepting key info into bootstrap ceremony payload

We no longer need to accept the information regarding keys as all roles
except root will reuse the same online key and information for it
could be provided by using the KeyVault implementations configuration
options.
Close #260
Signed-off-by: Martin Vrachev<EMAIL_ADDRESS>

@kairoaraujo the pr is ready for review.
I had to fix a CI failure, but now it's fixed and ready.

I just realized it will be a good idea to also update the tests/data_examples/bootstrap/payload.json file, so it doesn't contain information about any keys.
Maybe we can do that when we refactor the CLI and it's clear what information the bootstrap payload will contain.
What do you think @kairoaraujo?

Yes, I'm working on it and I will review it testing the CLI against your branch :)

The last think I have to do is update payload.json which is in progress.

Codecov Report

:exclamation: No coverage uploaded for pull request base (feature/roles-simplification@94f4f4a). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@                       Coverage Diff                       @@
##             feature/roles-simplification     #262   +/-   ##
===============================================================
  Coverage                                ?   93.41%
===============================================================
  Files                                   ?       16
  Lines                                   ?      577
  Branches                                ?        0
===============================================================
  Hits                                    ?      539
  Misses                                  ?       38
  Partials                                ?        0

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

@kairoaraujo updated the expected payload.json and bootstrap payload to match the ones you will send with your latest changes in the CLI.

I added a new method to the Roles enum to escape the need of creating a new alias type and thinking of a name similar to Roles, but not the same.
Also, it seems like a logical solution to me.
I checked and it seems as if the problem is removed.

I added a new method to the Roles enum to escape the need of creating a new alias type and thinking of a name similar to Roles, but not the same.
Also, it seems like a logical solution to me.
I checked and it seems as if the problem is removed.
@kairoaraujo can you test it again?

It worked well with my PR.
❯ rstuf admin ceremony -b -u
Starting online bootstrap
Bootstrap status: ACCEPTED (b143178d12774af5915a3a7bce488001)
Bootstrap status: SUCCESS
Bootstrap completed using `payload.json`. 🔐 🎉

@MVrachev, better merge after https://github.com/vmware/repository-service-tuf-worker/pull/210

@MVrachev, better merge after vmware/repository-service-tuf-worker#210

We will also need a change in docker-compose.yml here to follow the changes.
a. Add tests/files/keystorage/online.key as the same file key from https://github.com/vmware/repository-service-tuf-cli/blob/feature/roles-simplification/tests/files/online.key
b. Also, update the docker-compose.yml, RSTUF_LOCAL_KEYVAULT_PATH to use this key following the changes in the vmware/repository-service-tuf-worker#210

@MVrachev, better merge after vmware/repository-service-tuf-worker#210

We will also need a change in docker-compose.yml here to follow the changes. a. Add tests/files/keystorage/online.key as the same file key from https://github.com/vmware/repository-service-tuf-cli/blob/feature/roles-simplification/tests/files/online.key
b. Also, update the docker-compose.yml, RSTUF_LOCAL_KEYVAULT_PATH to use this key following the changes in the vmware/repository-service-tuf-worker#210

I think I did that in one of my latest commits in #210: https://github.com/vmware/repository-service-tuf-worker/pull/210/commits/7015f7dbf789e69847e741deaf820d55213662cc

I think I did that in one of my latest commits in #210: vmware/repository-service-tuf-worker@7015f7d

Yes, but this change is also required in the API.
We must align the development environment (docker-compose.yml) to correctly use the new RSTUF Worker.
We need include the online.key and configure the container to use the environment variables RSTUF_LOCAL_KEYVAULT_PATH and RSTUF_LOCAL_KEYVAULT_PASSWORD.
This is how I ran this PR together with the PR https://github.com/vmware/repository-service-tuf-worker/pull/210
Remove:
https://github.com/vmware/repository-service-tuf-api/blob/8619d32f2af0dcacf9461f0af5788617716b8368/docker-compose.yml#L7
Add a volume to the local tests
    volumes:
      - ./tests/files/keystorage:/var/opt/repository-service-tuf/keystorage

Change from
https://github.com/vmware/repository-service-tuf-api/blob/8619d32f2af0dcacf9461f0af5788617716b8368/docker-compose.yml#L64
To:
      - RSTUF_LOCAL_KEYVAULT_PATH=/var/opt/repository-service-tuf/keystorage/online.key
      - RSTUF_LOCAL_KEYVAULT_PASSWORD=strongPass

We can remove lines 19 and 20
https://github.com/vmware/repository-service-tuf-api/blob/8619d32f2af0dcacf9461f0af5788617716b8368/docker-compose.yml#L19-L20

I had to rebase to fix the merge conflict.
Added the suggestions you asked for @kairoaraujo (thanks you made them so detailed).
Ready for another review.


Added CERN

Adds or updates the following events or companies:

CERN

Checklist
Company updates

[X] I have put the most recent relevant date in the "Last Update" column
[X] I have linked to the article about the change, not the company's website (Please put N/A if there is no public post)

Event updates

[ ] I have linked to the article about the change, not the event's website

Fixed!


the permutation augmentation method

Q1: in augmentation-->permutation-->ret[i]=pat[0,warp], i think should be changed to pat[:,warp] for multiple channels
Q2:  In the latest version of your code, the time domain augmentation method only used jitter and there is big change compared with previous code, i want to know the reason.

Hi Changru, please see the attached updated TD bank for time domain augmentation.
def DataTransform_TD_bank(sample, config):
    """Augmentation bank that includes four augmentations and randomly select one as the positive sample.
    You may use this one the replace the above DataTransform_TD function."""
    aug_1 = jitter(sample, config.augmentation.jitter_ratio)
    aug_2 = scaling(sample, config.augmentation.jitter_scale_ratio)
    aug_3 = permutation(sample, max_segments=config.augmentation.max_seg)
    aug_4 = masking(sample, keepratio=0.9)

    li = np.random.randint(0, 4, size=[sample.shape[0]])
    li_onehot = one_hot_encoding(li)
    aug_1 = aug_1 * li_onehot[:, 0][:, None, None]  # the rows that are not selected are set as zero.
    aug_2 = aug_2 * li_onehot[:, 0][:, None, None]
    aug_3 = aug_3 * li_onehot[:, 0][:, None, None]
    aug_4 = aug_4 * li_onehot[:, 0][:, None, None]
    aug_T = aug_1 + aug_2 + aug_3 + aug_4
    return aug_T


cmd/go: improve error message for package not found?

What version of Go are you using (go version)?

$ go version
1.12.4

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
Ubuntu 16.04.6/amd64
go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/.go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/root/.go/src/github.com/firebase/firebase-admin-go/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build012231754=/tmp/go-build -gno-record-gcc-switches"

What did you do?

The following is my tree:
snippets/
├── constants
│   └── constants.go
├── libs
│   ├── auth.go
│   ├── db.go
│   ├── init.go
│   ├── messaging.go
│   └── storage.go
└── snippets.go
I was trying to import constants from snippets.go:
cat snippets.go
package main
import (
	"snippets/constants"
)
.
.
.

And did:
go build -x -v
What did you expect to see?
No error or verbose output from go build
What did you see instead?
Quite unhelpful output:
build firebase.google.com/go/snippets: cannot load snippets/constants: cannot find module providing package snippets/constants
Now for whatever reason my import might have failed, I can understand that. But I would at least like a detailed explanation from go build. (In fact, the same is true to go get, go run etc.)

I am guessing your module here is called firebase.google.com/go/snippets, not snippets, so the import should have been firebase.google.com/go/snippets/constants. Not sure how go build could give a better error message here without guessing.
/cc @bcmills

@thatreguy You said your tree contains a directory snippets/constants. Where is this directory in relation to /root/.go/src/github.com/firebase/firebase-admin-go/go.mod? How was it created?
This is not something that would work in module mode: the Go command won't search local directories for imports outside of the main module. This worked for manually created GOPATH directories, but I'm not sure we can provide good diagnostics for that case.

For the particular case where the import path doesn't start with a leading dot, there is no way such a module can exist without using a replace directive.

Duplicate of #30723


Application error: a client-side exception has occurred

I keep running into a client side error whenever I try to access a material. I'm getting this one call paths in the materials.
Please the screenshot attached.

Adding console output here as well for ease:
Warning: meshopt_decoder is using experimental SIMD support
plausible.js:1

       Failed to load resource: the server responded with a status of 404 ()
site.webmanifest:1 Manifest: property 'start_url' ignored, should be same origin as document.
market-assets.fra1.cdn.digitaloceanspaces.com/market-assets/models/suzanne-high-poly/model.gltf:1

       Failed to load resource: net::ERR_SSL_UNRECOGNIZED_NAME_ALERT
230cd56ec8b4292fd1d19f6bfd4b67b1689d06305.83cbc2919ca5e19bf43c.js:1 Could not load https://market-assets.fra1.cdn.digitaloceanspaces.com/market-assets/models/suzanne-high-poly/model.gltf: undefined
va @ 30cd56ec8b4292fd1d19f6bfd4b67b1689d06305.83cbc2919ca5e19bf43c.js:1
framework.efe182f2d62be1d8151a.js:1 Could not load https://market-assets.fra1.cdn.digitaloceanspaces.com/market-assets/models/suzanne-high-poly/model.gltf: undefined
uu @ framework.efe182f2d62be1d8151a.js:1
main-f684ac199186f1a324e7.js:1 Could not load https://market-assets.fra1.cdn.digitaloceanspaces.com/market-assets/models/suzanne-high-poly/model.gltf: undefined
se @ main-f684ac199186f1a324e7.js:1
site.webmanifest:1 Manifest: property 'start_url' ignored, should be same origin as document.
fb7d5399.98172db3c8b944779753.js:1 THREE.WebGLRenderer: Context Lost.
230cd56ec8b4292fd1d19f6bfd4b67b1689d06305.83cbc2919ca5e19bf43c.js:1 Could not load https://market-assets.fra1.cdn.digitaloceanspaces.com/market-assets/models/suzanne-high-poly/model.gltf: undefined
va @ 30cd56ec8b4292fd1d19f6bfd4b67b1689d06305.83cbc2919ca5e19bf43c.js:1
framework.efe182f2d62be1d8151a.js:1 Could not load https://market-assets.fra1.cdn.digitaloceanspaces.com/market-assets/models/suzanne-high-poly/model.gltf: undefined
uu @ framework.efe182f2d62be1d8151a.js:1
main-f684ac199186f1a324e7.js:1 Could not load https://market-assets.fra1.cdn.digitaloceanspaces.com/market-assets/models/suzanne-high-poly/model.gltf: undefined
se @ main-f684ac199186f1a324e7.js:1
site.webmanifest:1 Manifest: property 'start_url' ignored, should be same origin as document.
fb7d5399.98172db3c8b944779753.js:1 THREE.WebGLRenderer: Context Lost.

this was fixed when we moved the hdris to supbase

@SaraVieira  Unfortunately something is still up, trying to access a material:

oh this may be a specifuic material then, what is the one you are seeing?

THE MATCAPS, one sec

Now it should be fixed!


Compatibility with Python 2/3

Lean does not compile if python is python3. I can think of two ways to increase the compatibility: (1) replace every python by python2, or (2) convert the code so that it can run under python3 and also later versions of python2. (I can also submit a pull request once a consensus is reached.)

Thanks for reporting the issue. I think (2) is the ideal solution.

It would be great if you could submit a pull request :-)

Support of Python <= 2.5 is likely to be lost. Is that okay?

Yes, this is fine.

Hi @favonia, good to see you here :-)
I used to put python2 instead of python to specify its version. Then I found that some system didn't have python2 but only have python. So, I changed it back to python. Note that we want to support major platforms - Windows, Linux, and OS X.

I can also submit a pull request once a consensus is reached.

It will be great if you can submit a pull-request for this one.

@soonhokong I found the usage of sys.setdefaultencoding() in bin/linja, which is not portable at all.  Could you explain the trouble without that function call?

It's for the unicode support: http://stackoverflow.com/questions/3828723/why-we-need-sys-setdefaultencodingutf-8-in-a-py-script

Question: How to install the python six package in the travis script?

@favonia, I found the following script installing six via pip in the travis script:
https://github.com/amitu/importd/blob/0000e3f131c70b153bee94ceef0d51f667fd227a/.travis.yml#L9

@soonhokong I already put pip install six in .travis.yml in the current pull request, but the Travis service failed to install that library. I feel the current travis script is highly engineered and that I don't think I modified the script correctly.
@leodemoura @soonhokong In general, I think the current travis script is "broken" in the sense that some builds actually failed but Travis thought they were okay. You can check the logs of the "successful" builds and find "Fail" in them.

In general, I think the current travis script is "broken" in the sense that some builds actually failed but Travis thought they were okay. You can check the logs of the "successful" builds and find "Fail" in them.

Do you what is the problem?
The travis script is a little bit mysterious to me.
Thanks

Sorry but I have no ideas.

@leodemoura @soonhokong In general, I think the current travis script is "broken" in the sense that some builds actually failed but Travis thought they were okay. You can check the logs of the "successful" builds and find "Fail" in them.

There are two reasons that this happens:

Anything error in 'after_script' script is ignored when it comes to determine the 'success' of a build
When we use "A; B" in a script, the error code of 'A" is ignored and it can cause problem.

Let me think about more and refactor the travis script.

@leodemoura and @favonia,
I merged Favonia's commit and added six.py under /bin directory. I pushed them to the new branch python3-compat. @leodemoura, could you test this on a Windows machine? I've tested it on OSX and Ubuntu machines with Python2.7. @favonia, it would be great if you can test it on a machine with python3 (I guess you've already done this though)

if I were you I'll put six.py into python-lib/ or lib/ or something like that.
changes in .travis.yml should be dropped since there's no need to install the six library
I only compiled it without testing it.

if I were you I'll put six.py into python-lib/ or lib/ or something like that.

@leodemoura, which of the follows would be the best?

lib
python-lib
bin/lib
bin/python-lib

To me, bin/python-lib seems a nice place to put.

changes in .travis.yml should be dropped since there's no need to install the six library.

Done.

@leodemoura, could you test this on a Windows machine?

I will test it.

@leodemoura, which of the follows would be the best?

For me, bin/lib and bin/python-lib are both fine.

To clarify, the organization suggestion is just a suggestion. I figured that you simply meant six is used in the files in bin/.

@soonhokong python3-compat branch works smoothly on Windows (with MSYS2)
:-)


stdio.h file not found.

I am on mac os Catalina. And clang is not able to find stdio.h for some weird reason.
I looked into the files in the sdk to my surprise I could not find the stdio header file.
I am using the following command:
clang -v sample.c --sysroot=/home/mac/Downloads/wasi-sdk-7.0/opt/wasi-sdk/share/wasi-sysroot/ --target=wasm32-wasi -o sample.wasm

I get the following error:
Apple LLVM version 10.0.1 (clang-1<IP_ADDRESS>)
Target: wasm32-wasi
Thread model: single
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple wasm32-wasi -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name sample.c -mrelocation-model static -mthread-model single -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu generic -fvisibility hidden -dwarf-column-info -debugger-tuning=gdb -target-linker-version 450.3 -momit-leaf-frame-pointer -v -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1 -isysroot /home/mac/Downloads/wasi-sdk-7.0/opt/wasi-sdk/share/wasi-sysroot/ -internal-isystem /home/mac/Downloads/wasi-sdk-7.0/opt/wasi-sdk/share/wasi-sysroot//include -Wno-atomic-implicit-seq-cst -Wno-framework-include-private-from-public -Wno-atimport-in-framework-header -Wno-quoted-include-in-framework-header -fdebug-compilation-dir /Users/mac -ferror-limit 19 -fmessage-length 181 -fobjc-runtime=gnustep -fno-common -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/dw/m7rkkl9x1ds7176r6_mqq5cc0000gn/T/sample-187628.o -x c sample.c
clang -cc1 version 10.0.1 (clang-1<IP_ADDRESS>) default target x86_64-apple-darwin19.0.0
ignoring nonexistent directory "/home/mac/Downloads/wasi-sdk-7.0/opt/wasi-sdk/share/wasi-sysroot//include"
ignoring nonexistent directory "/home/mac/Downloads/wasi-sdk-7.0/opt/wasi-sdk/share/wasi-sysroot//usr/local/include"
ignoring nonexistent directory "/home/mac/Downloads/wasi-sdk-7.0/opt/wasi-sdk/share/wasi-sysroot//usr/include"
#include "..." search starts here:
#include <...> search starts here:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
End of search list.
sample.c:1:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^~~~~~~~~
1 error generated.

FYI sample.c
#include <stdio.h>

int main(){
	printf("Hello world \n");
}

found a similar issue https://github.com/CraneStation/wasi-sdk/issues/35
Looking into it for now. Will reopen it. If it doesn't work. Sorry for not doing proper due diligence before opening this.

When I remove stdio.h
error: unable to create target: 'No available targets are compatible with this triple.'

Turns out for some reason clang that comes along with XCode is as useless as XCode itself. So
./clang -v sample.c --sysroot=../../wasi-sdk/share/wasi-sysroot -o sample.wasm

works with me.


Does ppx_deriving_yojson support GADTs, or am I using it completely wrong?

Hi! I'm still pretty new to strictly typed languages in general, much less OCaml — maybe a year or so — so forgive me if this is suuuuuper obvious! Don't want to waste anybody's time!
So, I've got a pretty central type from my lexer that looks like this:
type 'a located = 'a * Lexing.position * Lexing.position

I'm consuming it in a file that I'm trying to use Yojson in; but I need a custom located_to_yojson function that basically discards the location-information:
open Lexer

let located_to_yojson (next : 'a -> Yojson.Safe.json) (x : 'a located) =
   let (x', _, _) = x in
   next x'

type _ node =
 | Comment : string located -> string located node
 | Node : 'a located -> 'a located node
[@@deriving to_yojson]

(* --- 8< ----- *)

Unfortunately, this isn't working as expected — I'm getting this … rather, uh, unhelpful error:
❯ excmd-parser master* ⟰  rm src/aST.ml; dune runtest
rm: src/aST.ml: No such file or directory
         ppx src/aST.pp.ml
    ocamldep src/.excmd_parser.objs/aST.pp.ml.d
    ocamlopt src/.excmd_parser.objs/excmd_parser__AST.{cmx,o} (exit 2)
(cd _build/default && /Users/ec/Sync/Code/excmd-parser/_opam/bin/ocamlopt.opt -w -40 -w -K -g -I src/.excmd_parser.objs -I src/.excmd_parser.objs/.private -I /Users/ec/Sync/Code/excmd-parser/_opam/lib/biniou -I /Users/ec/Sync/Code/excm
d-parser/_opam/lib/easy-format -I /Users/ec/Sync/Code/excmd-parser/_opam/lib/gen -I /Users/ec/Sync/Code/excmd-parser/_opam/lib/ocaml-migrate-parsetree -I /Users/ec/Sync/Code/excmd-parser/_opam/lib/ocaml/compiler-libs -I /Users/ec/Sync/
Code/excmd-parser/_opam/lib/ppx_deriving -I /Users/ec/Sync/Code/excmd-parser/_opam/lib/ppx_deriving_yojson -I /Users/ec/Sync/Code/excmd-parser/_opam/lib/ppx_tools_versioned -I /Users/ec/Sync/Code/excmd-parser/_opam/lib/result -I /Users
/ec/Sync/Code/excmd-parser/_opam/lib/sedlex -I /Users/ec/Sync/Code/excmd-parser/_opam/lib/uchar -I /Users/ec/Sync/Code/excmd-parser/_opam/lib/yojson -intf-suffix .ml -no-alias-deps -open Excmd_parser -o src/.excmd_parser.objs/excmd_par
ser__AST.cmx -c -impl src/aST.pp.ml)

File "src/aST.ml", line 14, characters 0-127:
Error: Unbound value poly_a

Presumably, the poly_a is supposed to be a 'a -> Yojson.Safe.json-type function to convert the polymorphic argument of the node GADT-type into a Yojson type? But I tried to include that argument in my custom located_to_yojson function, and I'm still getting that error … what'm I doing wrong?

I don't think ppx_deriving_yojson supports GADTs, but also I think your code should work. It seems to be a bug.

Christ @whitequark, a minute and a quarter — that's gotta be some sort of new record 🤣.
Okay! I think that's good news! Let me know if you need any help narrowing it down or reproducing it; my setup is really strange.
Random maybe-relevant numbers:

OCaml: 4.02.3
ppx_deriving_yojson: 3.1
ppx_deriving: 4.2.1
ppx_tools: 5.0+4.02.0
yojson: 1.4.1

(The rest are in the linked repository's opam-lockfile.)

Unfortunately I haven't touched any of my OCaml code in... probably close to two years at this point. Been doing other things.

Is there any update on this @whitequark?
How did you proceed from here @ELLIOTTCABLE?

No, there isn't any update on this. Why would you expect any? I no longer work on any of this code myself.

To complement @whitequark answer: ideally we would indeed have support for some forms of GADTs (some subsets may be easier to handle than others, and some plugins may make this easier than others), but no one is working on this as far as I can tell. It's an interesting problem, so if there are any volunteers, please speak up :-)

I am certainly interested in having GADTs work better with deriving; but can't promise any work in the short term. See also https://github.com/janestreet/ppx_sexp_conv/issues/8

Also-see-also: ocaml-ppx/ppx_deriving#7.


DebugUndefined does not retain filters in variable

Description
When using DebugUndefined to make a partial template, the filters are not kept if a variable is not passed to the template. Similar-ish to #1871 and other DebugUndefined issues.

Replication
>>> import jinja2
>>> jinja2.__version__
'3.1.2'
>>> env = jinja2.Environment(undefined=jinja2.DebugUndefined)
>>> template = env.from_string("{{ var|safe }}")
>>> template.render()
'{{ var }}'
>>> template.render(var="hello")
'hello'
>>>

Expectation
I'm not sure 100% sure if this is the best way to do a partial template rendering, but was all I found on Stackoverflow and other places.
https://stackoverflow.com/questions/12994028/multiple-renders-of-jinja2-templates (old)
Environment:

Python version: 3.8.12
Jinja version: 3.1.2

Workaround
My current workaround is just a string replace like
base_template = base_template.replace(
        "var", "var | safe"
    )

I'm pretty sure that your usecase is not what DebugUndefined is meant for - it's simply meant to be a way to quickly see the variable that's missing. Not to get something that's again to be used as a functional jinja template....


Same tag puts the tag

t/family t/Family

Mention that everything is case sensitive, for those that are not write it as case insensitive in UG


Don't append duplicate nodes returned by the finder

Noticed as per #140.  This extends 8e3ed60 but rather than ensuring all pathExprs are unique, ensure that all paths in  multi_nodes or single_nodes are unique before calling the reader.

I'm guessing how __multi_fetch__ works here.  But having duplicate nodes in the single_nodes produces bad results.

Thanks @ibuclaw!

Thanks, and no problem!


Extraction does not write .checked, this is a performance issue

I updated Forge (makefiles) to know that if it is going to do an extraction to OCaml or FSharp that it does not need to run the validation phase. This can be a significant developer time saver. Although I have a method, make prove, that puts expensive proofs in a separate phase (thank you Jonathon), you still don't want to run validation twice if it can be avoided.
But --codegen Ocaml with a cache dir complains about missing .checked files, claims to be creating them but is not.

Is it really the case that full validation is occuring in codegen?
If so then why is it not writing .checked files and should it?

As per Nik today: validation is to be performed first to ensure that all dependent modules have been validated and the .checked file is used in the generation of extracted code.


Revert #1047

Effectively reverts #1047 to fix #1128, #1120, #1122 as many users are seeing deadlocks after updating to 1.5.0.
The potential reason being is that calling WithFields from within a Hook tries to acquire the same lock, which is already acquired by the hook
This will re-open #1046

@markphelps is there a way we can get a new tag with this bugfix please? Or is it advised to downgrade instead?

we should provide a new tag soon

happy to create one, im assuming v1.5.1 would be most appropriate?

1.6.0 would be more appropriate, I've just merged a small feature in the TextFormatter. We should try to get back on the monthly release. I'll create an issue for the 2020-05 tag release. The first of us who is available to do it should assign to itself for sync up the work between us.

I've just tag v1.6.0 on tip of master. @thanosp feel free to upgrade to this one.


Opacity on lines borked

Expected Behavior
Should be able to add opacity to a line
Current Behavior
Where the line overlaps in a curve streaks appear in it.

Possible workaround
Draw the line solid, render to a texture and then apply opacity (can be seen by applying circle.cacheAsBitmap = true to the attached pixiplayground). This suffers a loss of fidelity in the curve though.
Steps to Reproduce
Create an ellipse or curve and put a line on it
Environment

pixi.js version:  5.2.1
Browser & Version:  Chrome 80
OS & Version:  Mac OS Mojave
Running Example: https://pixiplayground.com/#/edit/Ib5smxGx9ksTU0mYKhPig

Someone modified that example, i dont see a problem there.

The problem is known , and it would be good if you point me to WebGL renderer that solved ;)
however, it might work with whatever we have in dev, because @SukantPal worked on joints a bit.
put "https://pixijs.download/dev/pixi.js" in setting of that playground - that will be saved only if you modify source too - that's the bug of playground

Someone modified that example, i dont see a problem there.
I updated the link. Not sure what happened there.

and it would be good if you point me to WebGL renderer that solved ;)
Don't know of any open source ones.

There are a lot of easy workaround for this issue. The underlying issues is complicated to solve because of how the strokes are tessellated. Some workarounds:

use AlphaFilter example
use cacheAsBitmap example
don't use strokes, convert your shapes to fills
use a parallel CanvasRenderer, which shouldn't have these issues

Sorry miss pressed close there.
Thanks @bigtimebuddy just evaluating the alternatives you suggested:

AlphaFilter: it works but destroys the crispness of the lines, would require some sort of anti-aliasing on top not sure if I can maintain the fidelity of edges to an acceptable degree here.
useCacheAsBitmap: same as above ^
Don't use strokes: convert your strokes to fills. Very difficult in my case as these are not pre-generated assets but parameterised assets in a vector drawing tool so would need a general case solution for stroke conversion to outlines which isn't cheap, especially as they can then edit these strokes on the fly.
use a parallel CanvasRenderer: possibly the best solution? Doesn't require antialiasing, worried about how it scales as I need to do this to thousands of vectors.

@georeith I think you can take create a custom renderer for graphics using pluginName. Your renderer will then use the depth buffer to eliminate overlapping fragments.
Tell me if you need help with that.
https://github.com/pixijs/pixi-batch-renderer might be too complicated; however, if you have thousands of vectors, you might want to create a batch renderer that fixes this issue as well.

Thanks @SukantPal I need a bit to digest this information as I'm very new to WebGL and the concepts of batching etc. I'm going to drop you a line if thats OK as I have a lot of features and this is part of a larger project and want to make sure of the suitability of the approach.

@georeith Come over to our slack workspace so you can ping me when you need: https://join.slack.com/t/pixijs/shared_invite/zt-dcem1map-uVuVGC7pZ0trF8SrcA2p9g, :)

@ivanpopelyshev introduced multisampling in dev (will be in 5.3.0). You will be able to do something like this which is rendering your graphics to a RenderTexture.
https://jsfiddle.net/bigtimebuddy/6tzyv91j/
Ignore the issue with ellipse stroke in the middle, we have a fix for that in the queue.


Move Api Activity from the Access Control category to the Application Activity category

Per Weekly discussion and #555 Discussion

Note: I used uid 3 instead of 2 as there is a pending PR coming from @maxhotta for Application LIfecycle that was marked as uid 2.


DB for transgender

We need to have a different Db for transgender so that we can save the logs for transgender website.

its done


New update not released

According to https://packagecontrol.io/packages/SublimeLinter-contrib-mypy this package hasn't been modified in over a year. In addition, the fixes made recently aren't actually available. So (I assume) there's something you have to do to update it. Thanks.

A new tag has to be pushed to the repo in order to make Package Control pick up a new releases.
I just pushed https://github.com/fredcallaway/SublimeLinter-contrib-mypy/releases/tag/1.1.0, which should get picked up in the next hour or so.

Also, small note that I might start working on this soonish now that I switched to Linux. My main blocker previously was that typed_ast, a requirement for the "modern" mypy, wasn't compatible with Windows, but now it finally is. Either way, I'm not affected by it anymore so I expect to start using mypy for my projects soon™-ish.


macOS installer requires Rosetta

hi @talaviram
TICK can not be installed on M1+M2 Macs because of Rosetta requirement - https://support.apple.com/en-us/HT211861 -
I guess the installer is still Intel binary.
could you update the installer to universal binary?

Thanks for opening this issue.
Indeed.
Though from what I understand it's not a binary but rather explicit wrong configuration in the xml of the pkg.
https://scriptingosx.com/2020/12/platform-support-in-macos-installer-packages-pkg/
TICK uses Packages.
So with upcoming build this would also be addressed as my entire build toolchain is updated.

Let me know if 0.5.0 just released resolves this.

@talaviram 0.5.0 requires Rosetta too

Thanks. I've fixed it. so this will be reflect on next build.


AttributeError: 'bool' object has no attribute 'click'

I am using LinuxMint
I had to reinstall my chrome because selenium session is not supported after when i run  python api_backend.py
It is showing me error
06/14/2024 05:51:28 PM - ERROR: # Element '//*[contains(text(), 'Log in with your OpenAI account to continue')]' is not present.
Already logged in
06/14/2024 05:51:50 PM - ERROR: # Element '//*[contains(text(), 'Tips for getting started')]' is not present.
06/14/2024 05:51:50 PM - ERROR: # Element '//*[contains(text(), 'Tips for getting started')]' is not present.
No guidlines found
Enter text: hi how are you doing
06/14/2024 05:52:27 PM - ERROR: # Element '//*[@data-testid='send-button']' is not present.
06/14/2024 05:52:27 PM - ERROR: # Element '//*[@data-testid='send-button']' is not found.
Traceback (most recent call last):
  File "/media/karthik/myVolume/Project_Python/ChatGPT-unofficial-api-selenium/api_backend.py", line 127, in <module>
    resp = make_gpt_request(req)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/media/karthik/myVolume/Project_Python/ChatGPT-unofficial-api-selenium/api_backend.py", line 94, in make_gpt_request
    send_btn.click()
    ^^^^^^^^^^^^^^
AttributeError: 'bool' object has no attribute 'click'

Hello @dankarthik25 , i will update the code soon. Since ChatGPT UI has been updated so elements are changed so the code is not able to locate correct button.

Code has been updated!!, take a pull and retry!!


Release tags for post 1.17.0 missing from Github

The 2.x version has seen 2.0.0 and 2.1.0 but there are no tags in GitHub to track these versions.

Oops, you're right. I've tracked them down and tagged a bunch of the missing tags. Thanks for pointing it out :+1:


Fabex

The aim of this lab is to create a flexible block explorer written in Go.

How would this compliment https://github.com/hyperledger/blockchain-explorer , would this rather be a cli for HLF?

I removed "project" from the name because this label is reserved for official HLP projects approved by the TSC.
Otherwise, I agree with @arsulegai, it would be good to explain how this differs from HLP Explorer, what the motivation to do something different is.
Thanks.

@lehors @arsulegai the main difference is:

GRPC API, not UI for communication;
language in which it's written;
flexible db interface (2 db's implementations available right now)

It's not a replacement for Hyperledger Explorer, but just another option.

I am assuming that this is specifically for Hyperledger Fabric, but the proposal does not mention that. Instead flexible block explorer written in Go. Can you update the proposal to reflect that (unless of course you are truly intending for this to be a flexible block explorer for multiple blockchain projects)?

@lehors thanks for the comments. I added a little more information and left some links in the proposal.

The existing repository does not have DCO sign-off. Assuming this lab is approved, we will not be able to directly transfer the repository as is. You will either need to modify the commits to include DCO sign off in the existing repository or you will need to bring the code over manually.

@trbs thanks, you absolutely right. I changed description.

The existing repository does not have DCO sign-off. Assuming this lab is approved, we will not be able to directly transfer the repository as is. You will either need to modify the commits to include DCO sign off in the existing repository or you will need to bring the code over manually.

I need to rewrite all commits?

@vadimInshakov If you wish to keep the history, you will need to rewrite the commits in your existing repo. Otherwise, we will need to bring it over to hyperledger-labs organization as a single commit with DCO sign-off

@vadimInshakov If you wish to keep the history, you will need to rewrite the commits in your existing repo. Otherwise, we will need to bring it over to hyperledger-labs organization as a single commit with DCO sign-off

Ok, done. I rewrote all commits.

 :-)

No problem, fixed :)

Thanks! :-)

@C0rWin Can you confirm sponsorship?

@C0rWin Can you confirm sponsorship?

yes, I do, in fact @vadimInshakov confirmed with me prior to submission.

GRPC API, not UI for communication;

language in which it's written;

flexible db interface (2 db's implementations available right now)

Let me probably clarify a bit on the points mentioned here, this is an SDK which augments the ledger and index it providing set of additional APIs for comprehensive queries.
Actually I love the fact that this is has been done as stand alone third party library without trying to change Fabric internal. I think this is might be of practical use in many places.

@tkuhrt @vipinsun @trbs what do you think? Maybe you have any recommendations?

@tkuhrt yes - once this is merged, @vadimInshakov, please transfer the repo to me (@ryjones) and I will put it in place.

@vadimInshakov I need you to transfer ownership - this is in settings for the repo, at the bottom. Thanks.

@ryjones done, thanks.


Text gets lost on mobile devices

I've used draft-js form and got a feedback from some users, that on mobile devices wrotten text disappears.
Couldnt reproduce it by myself, but however bug appears.

I've seen a similar issue on both android and ios browsers. I'm hoping #1035 will give us the tools to fix the problem.

+1
When I visit draftjs.org and type on my Google Pixel each word that I type disappears after I press space.

Seems to be somewhat keyboard dependent. On the draftjs.org editor using a Google Pixel XL, Android 7.1.1, Chrome 57:

GBoard (android default): I can type text, but as soon as I press space the word disappears. However there's a few edge cases with autocomplete. If I use the keyboards word suggestions without typing anything, that text is entered. If I start typing a word, and select an autocorrect/suggestion, the text for the current word that I've entered is removed and a portion of the autocorrection is applied.

SwiftKey: I can type a few letters on occasion, but generally the virtual keyboard is dismissed after typing a letter or selecting an autosuggestion.

This bug is present on Facebook's own https://www.messenger.com (you need to select "Request Desktop site" in Chrome's menu)

Looking deeper into this issue, it looks like Chrome with GBoard doesn't do the same thing as every other browser.
There's a 5 year old issue about that on Chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=118639 (marked as WontFix in 2014).
Here is a codepen that appends Draft's internal state with every "onChange": http://codepen.io/anon/pen/rmwdxz
Debugging a bit on a real device with it, it looks like Chrome changes the text directly inside the contentEditable element, but sends dummy keyboard events on each keypress.
I think that any fix for this issue will have to look at what was added inside the element directly, instead of trying to catch every single event that could change the text.

Current Chrome 58 reproduces: with both GBoard or default Samsung Keyboard (I've tested on Galaxy phone).
Newer version lacks 'textInput' + 'input' events giving info about actual word inserted after pressing spacebar.
In older versions, after you press spacebar, it's these two events, and then also 'textInput' + 'input'  about whitespace inserted. In newer version, it's only two events about whitespace inserted. So Draft.js doesn't know about word inputted, it only gets events for whitespace inserted, and hence it inserts whitespace only.

"if auto-correct is on, word is replaced with a whitespace after pressing spacebar"
Doesn't reproduce on old Chromium-derived browsers or on older mobile Chrome 54.
Reproduces on newer mobile Chrome 58.
Keyboard-agnostic, reproduces both on GBoard or Samsung Default Keyboard (tested on a Galaxy phone).
In newer Chrome, there are no 'textInput' + 'input' events about the very inputted word.
In older Chrome, these two events were present. After these two events, another pair of 'textInput' + 'input' is fired, now about whitespace being inserted.
So, if we input "Chrome" with auto-correct, normally we expect:
textInput (about word "Chrome")
input
textInput (about " ")
input
In newer Chrome, former two are not fired.
So the newer Chrome doesn't give Draft.js any event clue about the actual word inputted. Draft.js decides that only whitespace was inserted, and changes Editor's contents accordingly.

@flarnie @pofigizm we're hearing about this bug from our Android users and can reproduce on newer versions of Chrome (tapping spacebar removes text). Glad to hear you're working on it.
What's the plan with https://github.com/pofigizm/draft-js/commit/87ccadc56c94ffa6df813160ec81496b6b404810 moving forward? This is a big problem for us so if the fix isn't likely to make it into master how dangerous would it be to point to that fork?

I didn't work on it.
@tedmx worked with the problem and going to open PR when he has free time. I don't know current status.

Sup everyone, thanks for appreciating effort of @pofigizm's team.

Short answer: feel free to get some insight from the repo, but please test it and don't trust it. There are many more issues which immediately crop out. Some may seem to appear because of that very fix.

Initially I thought that there are just a couple of things broken with composition*s on Android. It turns out, one issue immediately brings the other to the table.
You fixed this one? Well, here you are, deleting the symbols is not working. Can't blame draft-js, it's the mobile Chrome which doesn't tell a tiny distinguishable thing about backspace key -- you have no clue about the key pressed being backspace -- events have ambigous code (did I press "a"? maybe a number? maybe it was a backspace?), no special event, you have to guess from how DOM is changed.
Okay, imagine we fix that somehow. Then immediately you'll find a bug of that tapping on another word while in composition mode breaks things. Seriously, just tapping on other word.
So the problem with composition on Android is big, not solveable with a couple of glorious PRs with precise fixes. Chrome mobile has changed its APIs for mobile events a couple of times in just preceding month, working with composition* events looks like a guessing game, and you'll have to build a kind of guessing adapter to get even basic stability in that area. No single fix, no fast fix, and that all should go inside 'Chrome on Android' conditional branch in source code.
The core file which has to be reworked into the mega-combine is src/component/handlers/composition/DraftEditorCompositionHandler.js.

Yeah, from what I have seen when I looked at it a few months ago, it looks
like an architectural issue. Draft operates by catching all keyboard events
and changing its state from that, whereas Chrome changes the DOM directly
while being quite vague on keyboard events.
Le sam. 5 août 2017 06:26, Fyodor Ananiev<EMAIL_ADDRESS>a
écrit :

Sup everyone, thanks for appreciating effort of @pofigizm
https://github.com/pofigizm's team.

Short answer: feel free to get some insight from the repo, but
please test it and don't trust it. There are many more issues which
immediately crop out. Some may seem to appear because of that very fix.

Initially I thought that there are just a couple of things broken with
composition*s on Android. It turns out, one issue immediately brings the
other to the table.
You fixed this one? Well, here you are, deleting the symbols is not
working. Can't blame draft-js, it's the mobile Chrome which doesn't tell
a tiny distinguishable thing about backspace key -- you have no clue
about the key pressed being backspace -- events have ambigous code (did I
press "a"? maybe a number? maybe it was a backspace?), no special event,
you have to guess from how DOM is changed.
Okay, imagine we fix that somehow. Then immediately you'll find a bug of
that tapping on another word while in composition mode breaks things.
Seriously, just tapping on other word.
So the problem with composition on Android is big, not solveable with a
couple of glorious PRs with precise fixes. Chrome mobile has changed its
APIs for mobile events a couple of times in just preceding month, working
with composition* events looks like a guessing game, and you'll have to
build a kind of guessing adapter to get even basic stability in that area.
No single fix, no fast fix, and that all should go inside 'Chrome on
Android' conditional branch in source code.
The core file which has to be reworked into the mega-combine is
src/component/handlers/composition/DraftEditorCompositionHandler.js.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/facebook/draft-js/issues/1077#issuecomment-320435905,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA2C7gIkp309408UteB9Ds_suKLNnJMFks5sVENQgaJpZM4MfRBV
.

Can repro this in browserstack with Pixel XL and default chrome browser, here's a gif of the behavior:

I get the same issue using Chrome Mobile and Google Keyboard on a BLU Vivo 5.
And yes as @tedmx said, many things trigger it so to would be crazy to fix one by one. For what I was able to test: space key, :  key, picking a word from predictive suggestions.

@ashevtcov has a PR fixing this issue, would be nice to have code review and get more support there.
https://github.com/facebook/draft-js/pull/1500

@tedmx any update on this issue? @fabiomcosta were you able to get your pull request merged?

@maxhartshorn that's not my PR, but it says it's not merge yet.

I also encountered this problem. Is it possible to come up with a solution?

Has this been fixed?

@julianguyen No, unfortunately. It's well over a year on, and nothing seems to have been done here.
If it's never going to be actioned, it'd be great if FB made it a tad more obvious that this doesn't work...

Merging this into a general Android bug issue - see https://github.com/facebook/draft-js/issues/1895

Space bar erases previous input in Android Desktop versions of Twitter et Facebook
I have suffered the same bug for years on my Android 4 ICS (Ice Cream Sandwich), 6 Marshmallow, et 9 Pie.
After a number of tries and tests I found that, in my case at least, the bug systematically existed on facebook AND TWITTER pages in Android, NOT in Windows; when the web page was open in its DESKTOP version, NOT in the MOBILE version; and that no other change would have any influence on it (in particular changing the keyboard, as Samsung keyboard, Google Gboard, etc, or any other settings, brought no change). Only reverting from my habit of systematically requesting the desktop site as soon as arriving on any web page (Android > Chrome > Settings > Desktop site) and remaining on the MOBILE SITE did remove the bug.
Versailles, Tue 10 Sep 2019 12:37:10 +0200

I'm also facing the same issue in 2021 in android. Whenever I try to send a text without space at the end of line it cuts the last word and I also can't send simple "hi", it changes the word into an empty string

Having the same issue with @shamimfahad any update or hacky trick to fix this?

having the same problem, anyone know how to get around this?

having the same problem, anyone know how to get around this?

try adding a space at the end of the string if there isn't any before you save it


Using the dataframe option in Python

It seems like there are a series of changes and updates required to get this to work in python 3. Has anyone been able to upgrade the code to get it to make a dataframe? I have had a lot of trouble and it would be great if someone could explain this or show how it works.

Not sure; I'm not actively maintaining it any longer.  Sorry!

Hi @lawlessz, integration with python 3 is in the works and will be rolled out in the next update. Monitor the repository for upcoming changes :)


Add ... to meta description to avoid akward cut-offs

This is just a small change for those who share articles from Busy to Twitter/Facebook/ect.
It looks weird when the word gets cutoff. I was thinking I made a typo. Also I'm thinking it could be awkward if the last word gets cut-off and makes it seem like the article says something it doesn't. (Example: Dickens being cut to Dick, or anything else like that)
I wasn't actually able to fully test this as it doesn't render on my localhost:3000 copy of the site.

Also I noticed the Twitter card uses the Steemit account on Twitter. I've updated it to the busyorg account.

Prettier is working locally for me on this, but fails on circle.

hey @kirkins, we had to revert the commit, since it was failing the build. Sorry my fault, I tested old build and it worked. But new build with your latest changes, fails the build.

@jm90m that is really strange.
How do I reproduce the build error, should I just run npm run build:client?
I seem to get the same results with that command for my branch and master.

@jm90m I can't reproduce because even when I run those commands with a fresh master I get:
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: Unexpected server response: 503
    at ClientRequest._req.on (/tmp/busy/node_modules/busyjs/node_modules/ws/lib/websocket.js:645:21)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:551:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
    at TLSSocket.socketOnData (_http_client.js:440:20)
    at emitOne (events.js:116:13)
    at TLSSocket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
[nodemon] app crashed - waiting for file changes before starting...

Do you have any idea why it broke the build?

@kirkins probably this entire function - https://github.com/busyorg/busy/pull/1639/files#diff-3790f296954d7550bfd6609c20a66551R10
Try using lodash for some of the operations you're doing here.


Download hangs

Download is hanging for me. Could the website be blocking the User-Agent?

Hmm no, my browser is going at 16kb/s.

I did observe a similar behavior. I think the servers are sometimes overloaded.


v1.4.0

Coverage decreased (-7.7%) to 36.022% when pulling 3b594b072d3f55e7199cb0c7cf7f2ed13a0f7187 on 1.x-dev into 5ff8814833eff3d2c6aeef92b300083fb5ab82b8 on master.


Path simplification is very slow compared to routing

For example for 50 random locations in Germany PathSimplification.simplify takes about 80% of the time needed for calculating the route (GraphHopper.route(request) for node-based CH), something like: 600 of 720ms.
Apparently, for more locations this gets even worse, e.g. for 500 locations the path simplification takes 55s out of the 57s it takes to calculate the route (>95%). This is maybe expected, because for longer routes CH does not get so much slower, while the path contains a lot more points that need to be simplified.
I added a little measurement file in the performance_via_routing branch.

Thanks, there is indeed something wrong.
When I disable instructions via request.getHints().put("instructions", false) then simplification gets much faster (5x for my simple tests). Although I would have expected that looping over smaller paths will only add a small slowdown.

Maybe this is due to the class PathSimplification? There is a short cut if you don't simplify. Also DouglasPeucker itself is quite computation heavy.

Also DouglasPeucker itself is quite computation heavy

Yes, but why should several calls to parts of the path being much slower than one call for the full path? It should be even faster for the smaller parts as we keep certain points and do not throw them away.

That's true as well. That's indeed a bit weird. Are you using any PathDetails? That slows down the simplification as well.

The problem is that when there are path details or instructions we are calling DouglasPeucker#simplify many times on the different intervals and every time it is called we do a full compressNew on the PointList.  For my example via-route through Germany with 50 points this means moving the lat/lon/ele arrays with more than 100.000 points in memory for thousands of times. In DouglasPeucker#approx=true we do something similar, but in this case its no problem because even though we are calling subSimplify many times there is only a single call to compress at the end.
So the problem occurs if:

path simplification is enabled (GraphHopper.forServer())
the route has many points
there are instructions and/or path details

Had to revert #1782 in 6cc92dfb1ab36057354f16524160e84554d21f63, because of incompatibility with the navigation SDK.


Bind self.calculate_fid for the case when FID is not requested.

Important: Fixes an issue that was introduced in #227 (by yours truly and due to negligence 😭 ) where the class attribute self.calculate_fid was never bound unless calculate_fid was set to True in the Trainer which causes a fatal error in the case when FID is not requested from the Trainer.

want to bump the patch version too? (i can immediately release the fix)

Done.


Publish documentation to rubydoc.info

Something is not working and the documentation is not making it to https://www.rubydoc.info/gems/aspera-cli/4.0.0.pre1

@laurent-martin seem to think this is a limitation of the rubydoc system and that only full versions 4.0.0 get the doc published.
For example https://rubygems.org/gems/factory_girl/versions/4.0.0.rc1 does not have a doc either.

The documentation probably does not generate due to non digital version number. probably a bug in rubydoc ?
see: https://rubygems.org/gems/factory_girl/versions/4.0.0.rc1
digit version => doc, non dit -> no doc
Also:
one can add a li nk to source code using metadata field “source_code_uri” in aspera-cli.gemspec
see https://guides.rubygems.org/specification-reference/#metadata

According to @laurent-martin this should "just work" once we do a proper (non pre) release. Let's wait and hope. 🤞🏻

According to @laurent-martin this should "just work" once we do a proper (non pre) release. Let's wait and hope. 🤞🏻


Conflict: can't use getUpdates method while webhook is active [...]

When running the bot (version 0.2), after logging in via the browser, I get the following output:
2022/12/08 10:17:19 Started ChatGPT
2022/12/08 10:17:19 Started Telegram bot! Message @######### to start.
2022/12/08 10:17:19 Conflict: can't use getUpdates method while webhook is active; use deleteWebhook to delete the webhook first
2022/12/08 10:17:19 Failed to get updates, retrying in 3 seconds...
2022/12/08 10:17:22 Conflict: can't use getUpdates method while webhook is active; use deleteWebhook to delete the webhook first
2022/12/08 10:17:22 Failed to get updates, retrying in 3 seconds...
2022/12/08 10:17:25 Conflict: can't use getUpdates method while webhook is active; use deleteWebhook to delete the webhook first
2022/12/08 10:17:25 Failed to get updates, retrying in 3 seconds...

It just loops over and over and I'm never able to get any answer from my bot in Telegram.

Ah my bad, renewing the bot's token solved the issue.


Keyboard overlaps modal on older Androids

With Android API 29. Works automatically on API 34.

I think that's fine. Not that big of a deal imo. FWIW, IOS doesn't even support sized sheets below IOS 15 so it's fair 😅
Feel free to open PR if you can find a fix for it. Thank you!


Add Filter options based on controller.

Filter routes based on controller.
Enabled select box of controllers in right side of screen.

This got merged into Rails so I don't really maintain the standalone gem anymore.


this._sailsService.on("event name") not fired in angular 4

Hey Team,
I am using this service.
and on button click i have call post request with this._sailsService.post and i had successfully applied.
but when i use this._sailsService.on in ngOnInit() then this is not fired in another end.
please help me how can i send data from sails server to client (angular 4) or how can i get the data from sails server to client.

my client is built by angular 4 and back-end in sails 0.12.

please help me asap to resolve such issue.

have you checked, that the sailsService is already connected in ngOnInit?

post your code here

@joeherold yes i have checked it the service has connected in ngOnInit. but the service.on() method is not fired.

If you want ASAP, than show your code. Otherwise it's not possible.

How did you implement the entity listener?

@joeherold please see the above code i have mention both code client side & server sode.
constructor(private _sailsService:SailsService, private _userService:UserService) { }
ngOnInit(): void {
let opts = {
url: "http://localhost:1337",
transports: ['polling', 'websocket'],
headers: this._userService.socketHeaderToken(),
}
this._sailsService.connect(opts);
this._sailsService.on("user").subscribe(t => {
console.log(t),
error=>console.log(error)
});
}
message(){
this._sailsService.get('http://localhost:1337/hello', (data, jwRes)=>{
console.log('Server responded with status code ' + jwRes + ' and data: ', data);
});
}
--------------------------------------And server side---------------------------------------
hello:function (req, res) {
if (!req.isSocket) {
return res.badRequest();
}
User.findOne({id: '59198b25fbf18ac732180657'}).exec(function(err, foundUser){
if (err) return res.serverError(err);
if (!foundUser) return res.notFound();
	console.log("foundUser : ",foundUser);
	//User.message(foundUser.id, {count: 12, hairColor: 'red'});
	console.log("req.socket.id : ",req.socket.id);
	sails.sockets.broadcast('message', 'msg', { greeting: 'Hola!' }, req);
	return res.ok();
});

}

i have tried both model.message & broadcast:
but on client side nothing has happen.

Before I get deeper into explanation of the sails framework. Please check of answer on listening to user model, when you mutate model records over a rest GUI like postman. But check auto pubsub is turned on ( by default on blueprint )

So start your app, listen to user and then mutate user via postman

And btw, get, post, .... is used with route, not with Uri. So /user instead of http://...

my server api hosted on other location and client on another location that's why i use http.

@joeherold when i use "this._sailsService.get" to get records, its work well but my problem is broadcast a message and receive on client side that's is build by angular 4.
my server api & front end client are hosted in different locations.
so please tell me what i do.

You define API host in connect. No need to do so in get/post/put/delete

If get works, so connection established, you do something wrong in your sails app. Is not related to angular2-sails

Have you done, what I asked you to do? (Postman)

Btw: I am not sure, if you understand the socket idea, if you use get with Uri.
You establish in connect a bidirectional socket connection. Angular2-sails is a wrapper for socket.io, not a common http Rest API...

When you want to push a message from the server to a client, you have to fulfill some requirements to access the right socket connection, room and namespace
That's why I ask you to check your subscription with postman

BTW: in a controller action ( hello(req, res, next){} )
You do not emit to socket. You return a sails response

Check out documentation for using sockets in sails:
http://sailsjs.com/documentation/reference/web-sockets

@joeherold how can i emit to socket in sails. can you give me some example?

Please. Do what I asked you to. Subscribe for user and then mutate or add a dataset with a rest GUI client like Postman.
Then you should see a response. If not, you messed up you sails config

Sry man. But it's weekend now

@joeherold thanks for motivate me. i resolved the problem.

@satishverma143
try the following:
// server
sails.sockets.blast('myEvent', {myData: "data 1", alsoData: "data 2"})

// client

    this._sailsService
         .on('myEvent')
         .subscribe(
            /*success*/
            (response) => {
               console.log("response", response);
             },
            /*success*/
             (error) => { console.log("oooops, error occured") }
            /*finished/closed*/
             () => { console.log("we are finished") }
        )

@satishverma143 when you use sails.sockets.broadcast('message', 'user', { greeting: 'Hola!' }, req);with broadcast, you should check, to what rooms your client has access ;)
check it out here: http://sailsjs.com/documentation/reference/web-sockets/sails-sockets/sails-sockets-rooms


File too big

Telegram Bot Api. Need to handle error 'File is too big' in getFile() method (For the moment, bots can download files of up to 20MB in size)

Fixed


vnstat: 2.9 -> 2.10

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/vergoh/vnstat/releases.
meta.description for vnstat is: "Console-based network statistics utility for Linux"
meta.homepage for vnstat is: "https://humdi.net/vnstat/"
meta.changelog for vnstat is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.10 with grep in /nix/store/j22h723qg0ai5c4vsg8gkys557dj065v-vnstat-2.10
found 2.10 in filename of file in /nix/store/j22h723qg0ai5c4vsg8gkys557dj065v-vnstat-2.10

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
vnstat

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/j22h723qg0ai5c4vsg8gkys557dj065v-vnstat-2.10 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A vnstat https://github.com/r-ryantm/nixpkgs/archive/ab9e48e63a661c29ae6c9fd3e8de710a76f09ac4.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/j22h723qg0ai5c4vsg8gkys557dj065v-vnstat-2.10
ls -la /nix/store/j22h723qg0ai5c4vsg8gkys557dj065v-vnstat-2.10/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

vnstat

Maintainer pings
cc @evils for testing.

Result of nixpkgs-review pr 197328 run on aarch64-linux 1

1 package built:

vnstat


release_v1.2

Please pull #448 first, this includes variability for mutation burden based on number of callers


document descending order of resolutions array

Fixes #12354

Perhaps there should be an explanation of why, such as  "If specified the resolutions define the view zoom levels and must be in descending order."

Yeah, maybe rephrase the whole thing, because the main purpose of resolutions is not the constraint, but setting the zoom levels. Good point!

Thanks, @simonseyock.


Use constants in to sql

I was going through the comments at the top and discovered that strings were a major hotsport for creating SQL. Therefore, I decided to continue looking through the source and realized... wait... there's still spots to optimize. I froze the constants to give it an ever so minor perf boost (fingers crossed) and made sure that some of the existing constants were used.
Also added a new one for ' AS ', 'UNBOUNDED', and ' ESCAPED ' and would love to add more; this way we could also have a laundry list of text that we use :D
Parenthesis are also widely used and they can also be moved to the constants. The only problem is that some of the require a space before/after and some of the shouldn't. I'm think this should also get tacked on to this PR:
OPEN_PAREN    = '('.freeze
OPEN_PAREN_S  = '( '.freeze
CLOSE_PAREN   = ')'.freeze
CLOSE_PAREN_S = ') '.freeze

With Ruby 2.3 this kind of optimization is not required anymore so I prefer to not merge. Thank you so much for the pull request.


🐛 / 🔎 - Bug on search - Google doesn't show our individual rules pages!

Cc: @adamcogan @pierssinclairssw @jaydenalchin
Uly has noticed recently that we can’t google a rule anymore. All that we find when I google is the rule category roll up page (i.e. Rules to Better XXX), not the rule itself (i.e. Do you XXX)… even when extremely specific in the search term.
e.g. Trying to find this rule:  SSW.Rules | Do you know that it's bad to win the fight, but lose the customer?

Figure: ssw rules "Do you know that it's bad to win the fight, but lose the customer?" - Google Search
To Reproduce

Google - Go to https://www.google.com/search?q=ssw+rules+"Do+you+know+that+it's+bad+to+win+the+fight%2C+but+lose+the+customer%3F"&sxsrf=AOaemvIVYt1_g2k63KuR1VX1PSAZDU0Wqg%3A1637799478667&ei=NtaeYbuYKJ2a4t4PsPq56AE&ved=0ahUKEwi7i47BnrL0AhUdjdgFHTB9Dh0Q4dUDCA4&uact=5&oq=ssw+rules+"Do+you+know+that+it's+bad+to+win+the+fight%2C+but+lose+the+customer%3F"&gs_lcp=Cgdnd3Mtd2l6EAMyBAgjECc6BwgAEEcQsANKBAhBGABQ3gZY3hdgoSFoAXACeACAAYcBiAGIApIBAzAuMpgBAKABAcgBCMABAQ&sclient=gws-wiz

Bing - Go to https://www.bing.com/search?q=ssw+rules+"Do+you+know+that+it's+bad+to+win+the+fight%2C+but+lose+the+customer%3F"&qs=n&form=QBRE&sp=-1&pq=ssw+rules+"do+you+know+that+it's+bad+to+win+the+fight%2C+but+lose+the+customer%3F"+-&sc=0-80&sk=&cvid=89A692A767E44443BD978D467DD6A6C8

Tasks

Investigate why the individual rules are not showing in Google results
Make sure individual rules show up in Google search results

Environment
Any browser
Thanks!
AB#65681

Some of my investigation:
From Google Console it seems like the page is supposed to be indexed:

Note: As per https://stackoverflow.com/questions/26199705/github-repository-not-listing-in-google-search

Update 2019: the section "Enabling GitHub Pages to publish your site from master or gh-pages" is now (since 2014) more precise:
To select master or gh-pages as your publishing source, you must have the branch present in your repository.
If you don't have a master or gh-pages branch, you can create them and then return to source settings to change your publishing source.
Once the correct branch is created/populated, and selected as the publishing source, the Google indexing seems to be very quick.

Cc: @bradystroud @adamcogan @drwharris @tiagov8
Adding here questions asked by Camilla (Cannot @ Camilla for some reason)

Does Github generates a sitemap .xml?
Gatsby (what we use to build rules), does not automatically build a sitemap.xml. @bradystroud, you may be able to simply add this Gatsby plugin to generate it at build time.

Did that rule already exist before SSW rules were migrated to Github? If so, was that redirected?
Commits to this rule only date back to late November. Though the creation date on the rule itself is in 2010. It looks like it was redirected properly when the uri was changed.

Cc: @tkapa @adamcogan @drwharris @tiagov8
Hi @tkapa

Does Github generates a sitemap .xml?

Yes - the gatsby-plugin-sitemap plug was already enabled and is generating a sitemap
As per my conversation with @drwharris, we have investigated this problem.
We currently have 4 sitemap files on ssw.com.au

Root sitemap - https://www.ssw.com.au/sitemap.xml
SSW Website sitemap - https://www.ssw.com.au/ssw/sitemap.xml
SSW Rules sitemap index - https://www.ssw.com.au/rules/sitemap/sitemap-index.xml
SSW Rules sitemap - https://www.ssw.com.au/rules/sitemap/sitemap-index.xml

The SSW Rules index and sitemap files are generated by Gatsby on build, so they will always be up to date.
I have added the SSW Rules sitemap index to Google Search Console, which should ensure all rules are indexed during the next index. This should make all rules googlable.
The root sitemap contains some links to SSW Rules. These should be removed as they are included in SSW Rules sitemap.
The SSW Website sitemap has links to the old SharePoint rules pages.
e.g.
<url>
    <loc>https://www.ssw.com.au/ssw/Standards/Rules/RulesToBetterGoogleRankings.aspx</loc>
    <lastmod>2020-02-04T03:24:39+00:00</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.00</priority>
</url>

These should be removed as the pages don't exist.
No PBIs have been created for these tasks as the SSW Website is being moved to a new project, and these problems will be fixed as a result of this.
A re-index has been requested, but this can take weeks.

Check that SSW.Rules | Do you know that it's bad to win the fight, but lose the customer? is googleable 2 weeks from today.
If it is still not googleable, further investigation is required.

Cc: @tkapa @adamcogan @drwharris
Hey @tiagov8

Check that SSW.Rules | Do you know that it's bad to win the fight, but lose the customer? is googleable 2 weeks from today.
If it is still not googleable, further investigation is required.

Done - This rule is googleable

Figure: Found the rule by searching


moarvm: 2023.08 -> 2023.09

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/moarvm/moarvm/releases.
meta.description for moarvm is: VM with adaptive optimization and JIT compilation, built for Rakudo
meta.homepage for moarvm is: https://moarvm.org
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2023.09 with grep in /nix/store/ffdiry04sw8vqsbwjx1warq7390vzj75-moarvm-2023.09
found 2023.09 in filename of file in /nix/store/ffdiry04sw8vqsbwjx1warq7390vzj75-moarvm-2023.09

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

4 package rebuild(s)

First fifty rebuilds by attrpath
moarvm
nqp
rakudo
zef

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/ffdiry04sw8vqsbwjx1warq7390vzj75-moarvm-2023.09 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A moarvm https://github.com/r-ryantm/nixpkgs/archive/ecfc18b1ba650b91a6de2c7b2bd55a0793474fc1.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/ecfc18b1ba650b91a6de2c7b2bd55a0793474fc1#moarvm

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/ffdiry04sw8vqsbwjx1warq7390vzj75-moarvm-2023.09
ls -la /nix/store/ffdiry04sw8vqsbwjx1warq7390vzj75-moarvm-2023.09/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

4 packages built:

moarvm
nqp
rakudo
zef

Maintainer pings
cc @thoughtpolice @vrthra @stigtsp for testing.

moarvm should be updated together with nqp and rakudo


Package missing in R installation instructions

I noticed a minor issue in the installation instructions for r-pytetrad (which are otherwise great, thank you!):
use_python("[...path...to...your...Python...installation...]")

ought to be
reticulate::use_python("[...path...to...your...Python...installation...]")

or even
reticulate::use_python(Sys.which("python"))

And I'm not sure if you are aware of this, but you can source in a specific R script using source() (in the final step):
setwd("~/py-tetrad/pytetrad")
source("R/sample_r_code2.R")

Awesome, thanks! :-) :-)
On Thu, Dec 7, 2023 at 6:01 AM Anne Helby Petersen @.***>
wrote:

I noticed a minor issue in the installation instructions for r-pytetrad
(which are otherwise great, thank you!):
install.packages("reticulate")
install.packages("DiagrammeR")
install.packages("psych")
use_python("[...path...to...your...Python...installation...]")
ought to be
install.packages("reticulate")
install.packages("DiagrammeR")
install.packages("psych")
reticulate::use_python("[...path...to...your...Python...installation...]")
And I'm not sure if you are aware of this, but you can source in a
specific R script using source() (in the final step):
setwd("~/py-tetrad/pytetrad")
source("R/sample_r_code2.R")
—
Reply to this email directly, view it on GitHub
https://github.com/cmu-phil/py-tetrad/issues/14, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACLFSRYKMFZCPEQNWISLB5TYIGOYDAVCNFSM6AAAAABAK3QXOOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTANBYG42DQMQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I finally made these changes!!! Thank you so much!!!
They were so easy; I had just gotten overwhelmed.
By the way, we're going to release a new version of Tetrad soon, version 7.6.2, maybe in a week or two. There will be many updates.
All best,
Joe

Thanks, and no problem!


Crash on newMusic using RoboVM Gradle 1.0.0-SNAPSHOT plugin

When using RoboVM Gradle 1.0.0-SNAPSHOT plugin, the app crashes during async music loading according to crash log: http://pastebin.com/deQwHcqL
More information on the possible cause in the RoboVM tracker: https://github.com/robovm/robovm/issues/664#issuecomment-67854385

hey guys, me too having this issue, but for both robovm gradle plugin: 1.0.0-SNAPSHOT as well as 1.0.0-beta-01 (or beta-02 for that matter).

Can also confirm that this is still an issue with the latest versions. I don't think this is a LibGDX issue but rather a RoboVM issue with threading. The app should definitely not crash when a native method with strong references is called on a Java worker thread.
For now there is a simple fix to prevent the app from crashing. Just wrap the setDelegate call in a call to DispatchQueue.getMainQueue().sync();
      DispatchQueue.getMainQueue().sync(new Runnable() {
            @Override
            public void run () {
                IOSMusic.this.track.setDelegate(new AVAudioPlayerDelegateAdapter() {
                    @Override
                    public void didFinishPlaying (NSObject player, boolean success) {
                        final OnCompletionListener listener = onCompletionListener;
                        if (listener != null) {
                            Gdx.app.postRunnable(new Runnable() {
                                @Override
                                public void run () {
                                    listener.onCompletion(IOSMusic.this);
                                }
                            });
                        }
                    }
                });
            }
        });

This will ensure that the native method is called on a native thread.

Just noticed that the workaround seems to only work when asynchronously loading music. When you load it on the main thread the workaround above will freeze your app.
So we will have to wait for a proper fix on the RoboVM side.

Right, do you know if this has been reported in RoboVM land yet @BlueRiverInteractive ?

I guess we could use the hotfix if we check if we are loading async or not?

As of yet there's no corresponding issue on RoboVM land.
Yes, checking for async loading should make that hotfix safe. Is there a simple way to know if we are loading asynchronously or synchronously?

NSThread.getCurrentThread().isMainThread() should be sufficient?

I tried that but that doesn't seem to make any difference. In both cases (sync and async) it did return false for me. Not sure why though.
BTW I could make a simple test case for the issue and added it to RoboVM: https://github.com/robovm/robovm/issues/687

Using the NSThread check I can run both sync and async now.  Strange that in both cases you get false...

I really don't know. I am using AssetManager.finishLoading() on the render thread.

Ah, I wasn't blocking, just calling assetManager.update().

So all is good apart from if you want to call finishLoading(), in which case NSThread doesn't return the correct? value for isMainThread() (true), and we get nice and locked up.

Yes, it's seems so. Don't know if there's a way around that hangup, other than not using finishLoading() for the time being. It would be very interesting what @ntherning can say about the issue https://github.com/robovm/robovm/issues/687. Perhaps it's a simple fix and we won't need a hotfix here, just the latest robovm nightly?

Hopefully! I guess we'll see what they say and if it's a tough one think about adding the hotfix then.

This has been fixed now in RoboVM: robovm/robovm#687. It will be in the next nightly (1.0.0-SNAPSHOT) and in the next beta release. Please try your code with the next nightly and close this libGDX issue if it works.

All fixed. Thanks @ntherning!

Hello!
You have a new message, please read http://miglas.valsts.lv/this.php?i8zd7
<EMAIL_ADDRESS>


The Highwire https://thehighwire.com - Site Support Request

Checklist

[ x] I'm reporting a new site support request
[ x] I've verified that I'm running youtube-dl version 2021.06.06
[ x] I've checked that all provided URLs are alive and playable in a browser
[ x] I've checked that none of provided URLs violate any copyrights
[ x] I've searched the bugtracker for similar site support requests including closed ones

Example URLs

Single video:  https://thehighwire.com/videos/risky-business/
Single video:  https://thehighwire.com/videos/episode-219-in-harms-way/
Single video:  https://thehighwire.com/videos/live-from-event-2021-in-dallas-tx/
Single video:  https://thehighwire.com/videos/concealing-casualties/
Single video:  https://thehighwire.com/videos/the-definition-of-a-bio-weapon/

Description

The videos can be downloaded by youtube-dl if you discover their real URLs, for example: https://media.livecast365.com/highwire/thehighwire/content/1622927384709.mp4
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://thehighwire.com/videos/live-from-event-2021-in-dallas-tx/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.9.2 (CPython) - Linux-5.10.25-linuxkit-x86_64-with-glibc2.31
[debug] exe versions: ffmpeg 4.3.2-0, ffprobe 4.3.2-0, rtmpdump 2.4
[debug] Proxy map: {}
[generic] live-from-event-2021-in-dallas-tx: Requesting header
WARNING: Falling back on generic information extractor.
[generic] live-from-event-2021-in-dallas-tx: Downloading webpage
[generic] live-from-event-2021-in-dallas-tx: Extracting information
ERROR: Unsupported URL: https://thehighwire.com/videos/live-from-event-2021-in-dallas-tx/
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 3520, in _real_extract
raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: https://thehighwire.com/videos/live-from-event-2021-in-dallas-tx/

The video URL (or URLs) is listed in the sources element of the JSON object that is the value of the data-vbwa attribute of the <video> element.

How to Crack The Highwire
URL Parsing
https://thehighwire.com/videos/the-definition-of-a-bio-weapon/
https://thehighwire.com/videos/<slug>/

Download Video

DL webpage
Get JSON+LD on webpage (script.yoast-schema-graph) for metadata

for each item in root["@graph"] [array]

where item["@type"] == "ImageObject" (thumbnail)

"url"
"width"
"height"

where item["@type"] == "WebPage" (video)

"datePublished"
"name"

Get JSON from attribute video[data-vbwa] for getting URL to video (thanks @dirkf!)

root["sources"][0] (MP4 URL)

Super easy extractor to implement. If I don't implement this extractor myself, I'll leave it as an exercise to the reader.


constructor OkHttpClient.Builder(OkHttpClient) is not public

Since 3.0.0-RC1 we don't have ability to clone() existing OkHttpClient, and this constructor in builder has package-level access.

Try OkHttpClient.newBuilder().


Async action support [Question]

Hey,
If I replace the action here https://codesandbox.io/s/wild-dawn-ud8bq?file=/src/yourDetailsAction.ts
with an async fn it doesn't work. Async is not supported, right? Any plans for future releases?
e.g.
export async function updateFirstLastName(state, payload) {
  return Promise.resolve({
    ...state,
    ...payload
  });
}

I will try to get it to work under V4. 👍 still under construction.

hey, @ssuvorov did some quick investigation, I think it's easier to keep async function as a wrapper and update state syn.


feat(ann): add es ann search options

es k-nearest neighbor (kNN) search
Add implementation of ann(Approximate kNN) in ElasticsearchEmbeddingStore
Elasticsearch supports two methods for kNN search:
Approximate kNN using the knn search option or knn query
Exact, brute-force kNN using a script_score query with a vector function
In most cases, you’ll want to use approximate kNN. Approximate kNN offers lower latency at the cost of slower indexing and imperfect accuracy.
Added ann option when building ElasticsearchEmbeddingStore.

Summary by CodeRabbit

New Features

Enhanced search capabilities with the introduction of approximate and exact k-Nearest Neighbors (kNN) search functionalities.
Implemented cosine similarity for vector comparisons in searches.

The solution is issue #759

Hi, thanks a lot! I it related to https://github.com/langchain4j/langchain4j/pull/712 ?

Hi, thanks a lot! I it related to #712 ?

yeah,

Hi, thanks a lot! I it related to #712 ?

Yes, the problem to be solved by PR #712 is the same. In comparison, the amount of code changes in my PR is very small, it still supports the original knn implementation, and is friendly to some lower versions of ES (7.x).

I didn't realize at the time that #712 had solved the problem.

Closing in favor of https://github.com/langchain4j/langchain4j/pull/712


Works only once in macvim

Hey, awesome plugin! Works great in vim, but <Leader>i works only once in MacVim. On the second attempt to run this command an error is thrown.

Ouch, that's annoying. Can you try following the instructions listed under "Troubleshooting" and see if there's anything useful in the logs?

Somehow I've fixed it after reinstalling all the plugins.


Fix: Deleting multiple networks stops at first delete fail

fixing https://github.com/containerd/nerdctl/issues/1587
 ~ nerdctl network create deleteme --gateway <IP_ADDRESS> --subnet <IP_ADDRESS>/24
f9d6cec6deabf54691804bb7c1bf02ad7f461ab07f31a18398495b9de1cabf28

 ~ nerdctl network ls
NETWORK ID      NAME               FILE
                k8s-pod-network    /etc/cni/net.d/10-calico.conflist
17f29b073143    bridge             /etc/cni/net.d/nerdctl-bridge.conflist
f9d6cec6deab    deleteme           /etc/cni/net.d/nerdctl-deleteme.conflist
                host
                none

 ~ nerdctl network rm host k8s-pod-network test deleteme
Error: pseudo network "host" cannot be removed
Error: k8s-pod-network is managed outside nerdctl and cannot be removed
Error: No such network: test
deleteme

Signed-off-by: yaozhenxiu<EMAIL_ADDRESS>

@yzxiu do you need some help ?

@fahedouch thanks, I thought the issue would be fixed here https://github.com/containerd/nerdctl/pull/1581, but it doesn't seem to be.
I seem to have found some bugs, I will submit them.

I don't know how to reopen the pr...


audio: Noise on low FPS (< 60)

As (*audio.Context).Update proceeds only by 1/60 [sec], audio becomes very noisy on low FPS less than 60. We need to fix this to keep the current concept of sync/async mode.

Seems hard to fix this.

Reported that this happens on iPhone 5s with go-inovaiton. I reopen this

Now go-inovation works with 60FPS on iOS. This is not an urgent problem.


Clean up db in tearDown function

The tear down function needs to delete database entries.
Previously the database was only cleared before a test is called. If the last test adds data to the database, the database was never cleared as there are no more tests to setup.

FYI you may need to rebase as I just merged my changes into mainline


createComponent not supporting hooks yet

Code to reproduce the issue:
const $store = createStore();
const App = createComponent($store, (props, state) => {
  const [count, setCount] = useState(0)

  return <div>{state} {count}</div>
});
render(<App />, document.getElementById("root"));

Expected behavior:
No errors
Actual behavior:
Error: Invalid hook call. Hooks can only be called inside of the body of a function component.
Versions of packages used:
Latest (effector: 20.1.2, effector-react: 20.2.2)

IssueHunt Summary

Backers (Total: $100.00)

 issuehunt ($100.00)

Submitted pull Requests

#187 Fix createComponent usage with hooks

Become a backer now!
Or submit a pull request to get the deposits!
Tips

Checkout the Issuehunt explorer to discover more funded issues.
Need some help from other developers? Add your repositories on IssueHunt to raise funds.

IssueHunt has been backed by the following sponsors. Become a sponsor

looks like this going to be pretty hard task, because of differences between components and hooks nuances
but yes, you’re right, it’s important to have consistent api and we need to do that

Note that piling wrappers up is not an option

Fixed in https://github.com/zerobias/effector/pull/188
Will be published in next effector-react release