rebar3 warning in elixir projects

First off, thanks for the great library! I have tried out several BEAM geoip libraries, and locus is by far my favorite and the most performant one I have found.
I am using locus in an Elixir project, and am constantly getting the nice big warning:
        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        *********************************************************************

        [locus] You're **strongly** incentivized to use `rebar3`.
        Compatibility with rebar 2 is unmaintained and will be removed in the near future.

        *********************************************************************
        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

from both locus and tls_certificate_check.
You probably do not use Elixir yourself, but I was hoping to begin a discussion on how we could modify the check so that locus can be used within Elixir projects without emitting these warnings.

Oh! It never occurred to me that mix could be detected as being rebar 2... but it makes sense, given the way that detection is performed.
Perhaps the check could be expanded into looking for mix's presence - I'll need to look for appropriate module and function names (which will likely need to be prefixed with 'Elixir.', assuming they'll be named after Elixir-style upper case atoms.)

Fixed under e7bfbcb and released as 1.12.1.
Closing this; please re-open if for some reason the fix doesn't work. Cheers!

It works, thanks!


Unblock request for keybase.io username zero24

Dear Keybase Team,
i was about to register as "zero24" but it seams this username is blocked for some reason? As it does not look like to be used ( https://keybase.io/zero24 ) is it possible to unblock the username, and what can be done on my site to request such an unblock? Is this the right place to post such issues? Please direct me to the right place if it is not here.
Thanks

There's probably a team named zero24, in which case you can't register a user with the same name.

Thanks for the reponse just double checked the error message:

Well when the account has been deleted can we free that account name than anyhow?

nope.
a deleted account can not be reused on the blockchain.

Ah. Didn't know this is a blockchain. Than thanks for your feedback. Closing.


⚠ ClamAV has degraded performance

In 4fd20ff, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 69 ms

Resolved: ClamAV performance has improved in f7c59ff after 25 minutes.


Add formbricks

Formbricks is an Open Source Qualtrics Alternative (can be given inside the forms category)
It has a free plan

GitHub Repo

https://github.com/wdhdev/free-for-life/blob/7b5f655e25075b853104caabebc7ffbd1c3ae4eb/data/Forms.md?plain=1#L6
Form-data provides a total of 2020 free submissions per month btw

Seems good to me, feel free to open a PR to add it.

@wdhdev It seems like both form-data and formpost has been mixed up
https://github.com/wdhdev/free-for-life/blob/9c98a65847e91c5e2931c012c483b3121777ef4b/data/Forms.md?plain=1#L6
https://github.com/wdhdev/free-for-life/blob/9c98a65847e91c5e2931c012c483b3121777ef4b/data/Forms.md?plain=1#L15

Thanks, do you think you can fix that sorting in your PR as well?


CrowdstrikeFalconAPISentinelConnector is ignoring secondary events

Describe the bug
CrowdstrikeFalconAPISentinelConnector is ignoring the secondary events that it pulls from the SQS URL
To Reproduce
Steps to reproduce the behavior:

Enable the integration between CrowdStrike and Sentinel using the ContentHub
Input all the necessary fields
Go to the function app in Azure
See the Monitor

Expected behavior
All the Events should be in Sentinel not just the raw events from the data file
Screenshots

Desktop (please complete the following information):

OS: MacOS
Browser: Chrome

Maybe it's because the Logsource has more than 500 properties, that is just a speculation

@ZLT-ops : This seems to be a very old problem, and this connector may have already had numerous updates, can you please check if your problem has been solved? Thanks!!

@ZLT-ops As per previous comment closing this issue. Feel free to reopen the issue if you need more assistance. Thanks!


Clarification on get_gripper_control_points()

Hi @adithyamurali, I would like to clarify why you used 7 points to represent the gripper in get_gripper_control_points(). I noticed there is a duplicate point. What is the purpose of this?
Thanks!

Hi @patrickeala the control points are just an approximate representation of the Franka gripper pose and is more compact than using the full gripper mesh. Other papers have also done it - see https://arxiv.org/abs/1905.10520


:zap: add Rita to the contrib list

Creating a new pull request!

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

@RKoulikova Great work 🎸


Android Java: 03.06 Fragment Lifecycle in android

Description :scroll:

Give a brief explanation of the fragment lifecycle in Android (Java).
Required Documentation or Video or Audio.

Domain of Contribution :bar_chart:

[x] Android Dev (java)

References :
https://www.geeksforgeeks.org/fragment-lifecycle-in-android/

Please Read it Carefully Before Contributing

Changes should be made in Android_Development_With_Java/ directory under Android_Development_With_Java branch.
Inside Android_Development_With_Java directory/ creates a directory and names it according to the topic
Inside Topic Name directory/ add your task with subtopic number and name and make changes accordingly.
You have to push your PR to the Android_Development_With_Java branch only.
You can take help to the references but don't simply try to copy it. Just explain in your own word.
This issue is for GWOC'21 contributors only.
You need to push in a single commit. If there exists more than one commit then you need to squash your commits into one commit.
Will assign you on a first come first serve basis.
Please try to complete your assigned task within 7 days. If you need some more time then, please inform mentors and supervisors.
If you have two previously assigned issues on Android-Java pending then please first complete them.

Supervisor @VikasPandey121

@sitamadex11 Sir this issue has been created already. Issue #5925

Yeah! Thanks for mentioning it.


[Documentation]: If absolute path is not specified, the quick start image location is not found

Is there an existing issue for this?

[X] I have searched the existing issues

What kind of documentation would you like added or changed?
Read image towhee_logo.png failed
img_path = 'towhee_logo.png', should we just specify the image file location?

Why is this needed?
No response
Anything else?
No response

Please run wget https://github.com/towhee-io/towhee-docs/raw/main/docs/get-started/towhee.jpeg before running tutorial.

sure,  I will try and fix it on readme

Fixed (clarified) via https://github.com/towhee-io/towhee-docs/pull/132.


json serializer : a way to only serialize populated fields

I am using this to use TDAmeritrade's API
It works awesome for reading an order from them and turning it into c# classes, but when I try to place an order it serializes too many fields.
String json = QuickType.Serialize.ToJson(order);
I would like a way to serialize only the fields in the QuickType generated class which I have populated.
it is currently sending some nulls, or for integer fields a default value.
For example creating a new order using the class which was generated loads the order status correctly when i deserialize from TDA, but when i create a new order, it says the order status is CANCELED which is the enum assigned to 0 by Quicktype.  I can't send any status to TDA.  They set the status.
I need to read that field in, but not send it to them.
Currently i have to have an entire separate set of classes to send orders, which is problematic because several fields are optional.  I can't serialize optional fields to json to send to them unless i need them for that order.  I don't really want to have  a class for each combination of optional fields.

After opening this i found decorations like:
, DefaultValueHandling = DefaultValueHandling.Ignore
Which do exactly what I wanted.


Pre-launch analysis

BRO analysis

Persist set-independent metrics
Archetypes support
Mechanics distribution

Color
Cmc

Build-arounds
Cmc vs power and vs toughness

Per color, per rarity

Once I have that, develop familiarity with set, qnd rate cards in context — ggradient descent between the two

Explore set via graph of mechanics
https://towardsdatascience.com/pyvis-visualize-interactive-network-graphs-in-python-77e059791f01


fix: iOS minimum deployment target

First merging in release/0.0.2 for testing if the changes resolve the error
Maybe closes #927

Thanks for your review @monsieurtanuki, is there any big difference in increasing the min version except of some very old devices not beeing able to use it?
@teolemon I don't have the rights to merge, you can if you want

Xcode's output:
↳
/Users/runner/work/smooth-app/smooth-app/packages/smooth_app/ios/Runner/AppDelegate.swift:11:5: warning: setter for 'isStatusBarHidden' was deprecated in iOS 9.0: Use -[UIViewController prefersStatusBarHidden]
UIApplication.shared.isStatusBarHidden = false
^
/Users/runner/work/smooth-app/smooth-app/packages/smooth_app/ios/Runner/AppDelegate.swift:10:9: warning: initialization of variable 'flutter_native_splash' was never used; consider replacing with assignment to '' or removing it
var flutter_native_splash = 1
^~~~~~~~~~~~~~~~~
_
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
remark: Incremental compilation has been disabled: it is not compatible with whole module optimization
/Users/runner/work/smooth-app/smooth-app/packages/smooth_app/ios/Runner/AppDelegate.swift:11:5: warning: setter for 'isStatusBarHidden' was deprecated in iOS 9.0: Use -[UIViewController prefersStatusBarHidden]
UIApplication.shared.isStatusBarHidden = false
^
/Users/runner/work/smooth-app/smooth-app/packages/smooth_app/ios/Runner/AppDelegate.swift:10:9: warning: initialization of variable 'flutter_native_splash' was never used; consider replacing with assignment to '' or removing it
var flutter_native_splash = 1
^~~~~~~~~~~~~~~~~
_
/Users/runner/work/smooth-app/smooth-app/packages/smooth_app/ios/Runner/GeneratedPluginRegistrant.m:12:9: fatal error: module 'camera' not found
@import camera;
~~~^~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
════════════════════════════════════════════════════════════════════════════════
Building a deployable iOS app requires a selected Development Team with a
Provisioning Profile. Please ensure that a Development Team is selected by:
1- Open the Flutter project's Xcode target with
open ios/Runner.xcworkspace
2- Select the 'Runner' project in the navigator then the 'Runner' target
in the project settings
3- Make sure a 'Development Team' is selected under Signing & Capabilities > Team.
You may need to:
- Log in with your Apple ID in Xcode first
- Ensure you have a valid unique Bundle ID
- Register your device with your Apple Developer Account
- Let Xcode automatically provision a profile for your app
4- Build or run your project again
For more information, please visit:
https://flutter.dev/docs/get-started/install/macos#deploy-to-ios-devices
Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════
Encountered error while building for device.


Weave should re-fetch the docker bridge address on restart

Currently the weave script passes in the docker bridge address as --dns-listen-address x.x.x.x:53.
If the bridge changes address on reboot (which can happen if something that was obstructing the first address Docker tries is not running the next time it tries), then the weave container will still have the old address in its arguments when it is restarted under policy by Docker.
Any containers using that DNS server, with a restart policy, will also have the wrong address.  It's harder to see how this could be improved.

It's harder to see how this could be improved.

Solving #1891 might show the way.


Replace some ARG with ENV to avoid invalidation in later builds.

These should be ARG not ENV variables, could you explain this change a bit more?

➜  cosmos-omnibus git:(master) ✗ docker build . --build-arg "http_proxy=http://<IP_ADDRESS>:7890" --build-arg "https_proxy=http://<IP_ADDRESS>:7890" --network host -t temp
Sending build context to Docker daemon  482.8kB
Step 1/59 : ARG BUILD_IMAGE=default
Step 2/59 : ARG BUILD_METHOD=source
Step 3/59 : ARG GOLANG_VERSION=1.16-buster
Step 4/59 : FROM golang:${GOLANG_VERSION} AS build_base
 ---> 5957ecd0d41f
Step 5/59 : ARG PROJECT=akash
 ---> Using cache
 ---> 9bf3243cbf3e
Step 6/59 : ARG PROJECT_BIN=$PROJECT
 ---> Using cache
 ---> 32b44c96049e
Step 7/59 : ARG APT_INSTALL_EXTRA_DEPS
 ---> Using cache
 ---> 6418d6905902
Step 8/59 : RUN apt-get update &&   apt-get install --no-install-recommends --assume-yes curl unzip ${APT_INSTALL_EXTRA_DEPS} &&   apt-get clean
 ---> Using cache
 ---> 791cafc7a31d
Step 9/59 : FROM build_base AS build_source
 ---> 791cafc7a31d
Step 10/59 : ARG VERSION=v0.12.1
 ---> Using cache
 ---><PHONE_NUMBER>c1
Step 11/59 : ARG REPOSITORY=https://github.com/ovrclk/akash.git
 ---> Using cache
 ---> 9e3009e40c79
Step 12/59 : ARG BUILD_COMMAND="make install"
 ---> Using cache
 ---> 6fa5fea9e2d7
Step 13/59 : RUN git clone $REPOSITORY /data
 ---> Using cache
 ---> 5e252e14fc03
Step 14/59 : WORKDIR /data
 ---> Using cache
 ---> 8f07c33221aa
Step 15/59 : RUN git checkout $VERSION
 ---> Using cache
 ---> 14ec00b30375
Step 16/59 : FROM build_source AS build_starport
 ---> 14ec00b30375
Step 17/59 : ARG BUILD_COMMAND="starport chain build"
 ---> Using cache
 ---> 96dfdf709918
Step 18/59 : RUN curl https://get.starport.network/starport! | bash
 ---> Using cache
 ---> d3ed7f97dae8
Step 19/59 : FROM build_${BUILD_METHOD} AS build
 ---> 14ec00b30375
Step 20/59 : RUN $BUILD_COMMAND
 ---> Running in 5c9c8565203f
Removing intermediate container 5c9c8565203f
 ---> c3ea578b1b96
Step 21/59 : RUN ldd $GOPATH/bin/$PROJECT_BIN | tr -s '[:blank:]' '\n' | grep '^/' |     xargs -I % sh -c 'mkdir -p $(dirname deps%); cp % deps%;'
 ---> Running in ded004dab326
ldd: /go/bin/: not regular file
Removing intermediate container ded004dab326
 ---> 49b33b2391b5
Step 22/59 : RUN mv $GOPATH/bin/$PROJECT_BIN /bin/$PROJECT_BIN
 ---> Running in bc7ce9aa2a70
Removing intermediate container bc7ce9aa2a70
 ---> 435e085c664d
Step 23/59 : FROM debian:buster AS default
 ---> 6642e362a825
Step 24/59 : ARG PROJECT=akash
 ---> Using cache
 ---> aeb0e7f06173
Step 25/59 : ARG PROJECT_BIN=$PROJECT
 ---> Using cache
 ---> 25774de69fe3
Step 26/59 : COPY --from=build /bin/$PROJECT_BIN /bin/$PROJECT_BIN
COPY failed: stat bin/akash: file does not exist

The important thing is here.
 ---> 14ec00b30375
Step 20/59 : RUN $BUILD_COMMAND
 ---> Running in 5c9c8565203f
Removing intermediate container 5c9c8565203f
 ---> c3ea578b1b96
Step 21/59 : RUN ldd $GOPATH/bin/$PROJECT_BIN | tr -s '[:blank:]' '\n' | grep '^/' |     xargs -I % sh -c 'mkdir -p $(dirname deps%); cp % deps%;'
 ---> Running in ded004dab326
ldd: /go/bin/: not regular file

In step 20, it did nothing, becasue of the $BUILD_CCOMMAND doesn't exist.
And in step 21, The variable $PROJECT_BIN does not exist.So it says /go/bin/:not regular file.

The build process requires buildx which is why it's not building correctly in your example. See the .github/workflows/publish.yml file which actually builds the images.
You also shouldn't need to build these yourself unless you plan on contributing a new chain

Ok，i know that.
I want to build by my self because i want to know why it always exits.

If you use docker buildx build instead of docker build it will use buildx correctly, but I'd be surprised if the issues you are having are a problem with the container image. I've enabled tests on this PR so you can see if the changes you're making work or not.


with lgi how to setup signal callback , like g_signal_connect in c !!

like
g_signal_connect(dem, "pad-added", G_CALLBACK(demux_pad_added), par);
help!!

Please read the documentation.  Signals are covered even in intro: https://github.com/pavouk/lgi/blob/master/docs/overview.md
This particular case can be written e.g. like this:
function dem:on_pad_added(...)
    ...
end


Device not found

i'm trying to get this working but when it goes to process using rcv i get this error: Cuda or MPS not detected
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Users\M\AppData\Local\Programs\Python\Python39\lib\threading.py", line 980, in _bootstrap_inner
self.run()
File "C:\Users\M\AppData\Local\Programs\Python\Python39\lib\threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\M\PycharmProjects\pythonProject2\tortrvc.py", line 549, in handle_message
processed_audio_path = rvc_convert(model_path=model_path, input_path=original_audio_path)
File "c:\users\m\pycharmprojects\pythonproject2\venv\src\rvc-tts-pipe\rvc_infer.py", line 330, in rvc_convert
config=Config(device,is_half)
NameError: name 'device' is not defined
i'm new to coding so sorry if the issue is obvious

did a fresh install and changed these lines is rvc_convert: if torch.cuda.is_available():
device = "cuda:0"
elif torch.backends.mps.is_available():
device = "mps:0"
else:
print("Cuda or MPS not detected")
to: device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
and that seems to have fixed it

also had an issue with the half parameter
changing this line: self.is_half = True
to: self.is_half = False
which fixed the issue

Are you running it with an Nvidia GPU? The issues your running into is due to the script running on CPU as I didn't code the alternative logic needed for it.
I'll have to add this as an enhancement to the original logic in case people wanna run the pipeline using CPU inference.

ah yup that's exactly why, im trying to run it on gpu, thanks for clearing that up

ah yup that's exactly why, im trying to run it on gpu, thanks for clearing that up

Gotcha, a common thing that happens is something went wrong with the torch installation, so you can pip uninstall torch and then run it again as it's not seeing that CUDA is available.

thank you! reinstalling torch and reseting the infer file fixed it! thanks!

Awesome, glad it's working so I'll be closing this issue now :)!


Only 1 option there in settings

was 4-5 tabs in settings but now showing only one

same issue here... 22.04.1 / 42.2

The issue is fixed in #203, would be great if you could check it out and comment that it works. That way it can get merged more quickly.

What timing! I literally hit submit and the fixed appeared... applied and it is indeed fixed!  Thank you!

Thank You @landegt <3


SteamVR_InteractGrab fails to get the tip of the controller on Start

I assume it's running too early and the models haven't been built yet, but SteamVR_InteractGrab's Start() method tries to get the "tip" GameObject before it exists, which in turn prevents the grabbing events from binding to AliasGrabOn/Off.
EDIT: Just realised it's because I'm not using the bundled prefab. Oops. Might be worth having it add the RigidBody on the fly as not every controller will use this structure.

The bundled prefab has the additional children on the Controller that are required (like the tip, etc).
The prefab that comes in the SteamVR plugin seems to be missing all these children (except for the version of the prefab in the Test Throw scene...no idea why!).
Basically, the prefab in my project is just the one from the SteamVR Test Throw scene.
If you use the default prefab then it has no child objects on it to even add a rigidbody to. (I think they are generated at runtime, but it's too late by then)


Add missing docs to primitive_conversions library in standard library

Description
Checklist

[ ] I have linked to any relevant issues.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have updated the documentation where relevant (API docs, the reference, and the Sway book).
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
[x] I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
[x] I have requested a review from the relevant team or maintainers.

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

@crodas @bitzoic please review


otc-private-address-only config parameter is not implemented

The README documents a parameter to create a ECS without an Elastic IP (--otc-private-address-only) but this configuration option is not implemented in the driver.

@zzhaoy
So the fix was to remove it from the documentation instead of implement it? How are we supposed to create machines with no elastic ip? Also, I find it an inconvenient the fact that docker-machine tries to ssh over the elastic ip by default.


Fix redis env var references in entrypoint

Change incorrect env references from POSTGRES_ENDPOINT to REDIS_ENDPOINT

Should have searched first, closing since this is a dupe of #598


Add additional cleanup options for the "check latest=true" option

If using "check latest=true" to obtain a new version, delete the old version after downloading the latest version.

Hello @Doddddd, Thank you for your suggestion! We will investigate it further and see what can be done :)


Interesting reduction not caught by hlint.

So I have this function:
-- "Dual" of map, takes an object and a list of functions
-- and applies the object to each function in the list.
pam :: a -> [a -> b] -> [b]
pam a (f:fs) = f a : pam a fs
pam a [] = []

I was able to reduce it to:
pam :: a -> [a -> b] -> [b]
pam a = map (\f -> f a)

Sadly hlint didn't catch this reduction(Although it's able to catch a whole bunch of other reductions in my code any other day!), maybe this might lighten the way for a whole set of new reductions? Thanks for the awesome tool!

Thanks for the bug report. Running your example, I get:
Sample.hs:4:1: Error: Use map
Found:
   pam a (f : fs) = f a : pam a fs
   pam a [] = []
Why not:
  pam a fs = map (\ f -> f a) fs

That's using version 1.9.16. Do you see any suggestions for your original input?

Strange, so I guess it seems when the function has a wildcard instead of the a is when it fails.
This works:
pam :: a -> [a -> b] -> [b]
pam a (f:fs) = f a : pam a fs
pam a [] = []

This doesn't:
pam :: a -> [a -> b] -> [b]
pam a (f:fs) = f a : pam a fs
pam _ [] = []

I have a custom recogniser for these types of expression, it just needs generalizing a little. Three examples which don't match but which should are:
pam :: a -> [a -> b] -> [b]
pam a (f:fs) = f a : pam a fs
pam _ [] = []

pam2 :: a -> [a -> b] -> [b]
pam2 a (f:fs) = f a : pam2 a fs
pam2 _ _ = []

pam3 :: a -> [a -> b] -> [b]
pam3 a (f:fs) = f a : pam3 a fs
pam3 b _ = []

Interesting!  On my end it's really not a game-ending issue, so no reason to keep this thing around. Thanks for the speedy replies!
Well either way thanks a bunch for this super great project! I can't imagine life without it!

Nope, I only investigated after your report, and I'll use this ticket to record the cases I should still do better.

Oh! Sounds great!

Should hlint further suggest
pam a = map ($ a)

or even
pam = map . flip ($)

?

Yes, I would agree if generalize is turned on, it would be good to have those suggestions recommended.

The final map . flip ($) seems pretty confusing to my eye - HLint used to go that far with point-free operations, but generally it doesn't make code more readable in general.
For reducing \ f -> f a, it's certainly a hint I could add, and then HLint when run twice would do the replacement in two steps. At the moment I don't have it though, since it feels a little complex - it's in the ballpark of what I think would be reasonable though.


Add documentation for perspective-api-client Node.js client

The API reference says that there are no ready-made client libraries.
I've created one for Node.js, https://github.com/sloria/perspective-api-client,  and documented it here.

Oh nice! Thanks for this!
One thing I'd like to do is keep both the raw discovery example code; and then also reference your client library. At the moment, it looks like your client library doesn't support the suggest-comment score (nice to see you already made an issue for that :) https://github.com/sloria/perspective-api-client/issues/3 )
Could you update the docs to keep the original example, and include a link to your client library below (I think the docs on your page can be the canonical place for how to use your library).
As it turns out, someone has written a python client library too... but I'll update that in a separate PR.

@iislucas Done.

Thanks!


[BUG] Trying to tag users leads to Invalid Tagged Users error

Compensate with donations ($10 and more) for the time I spent to fix problems or send  me your Pull Request with fixes

Bitcoin: 3KHgnvNNWio6wyQ71cgNeBQojXStxzkzfd
Ethereum: 0x6e644c6b975B47801072b07a9a57DDfEC10DE74F
https://paypal.me/adw0rd
For Russia: СБП, Qiwi и тп: +79118107609

Describe the bug
A clear and concise description of what the bug is.
Trying to tag users within Client.photo_upload results in InvalidTag errors.
To Reproduce
Provide a piece of code to reproduce the problem.
from instagrapi import Client
from instagrapi.types import Usertag, UserShort
import random

client = Client()
client.login("usr", "pswd")
lidl = Usertag(x=10, y=10, user=UserShort(username="lidlus", pk="5310318684"))
peru = Usertag(x=20, y=20, user=UserShort(username="avosfromperu", pk="1382501091"))
tags = [lidl, peru]

client.photo_upload("path", "caption", usertags=tags)

Traceback
Show your full traceback so that it is clear where exactly the error occurred.
Traceback (most recent call last):
  File "/Users/kaiji/PycharmProjects/avotesla/lib/python3.8/site-packages/instagrapi/mixins/private.py", line 298, in _send_private_request
    response.raise_for_status()
  File "/Users/kaiji/PycharmProjects/avotesla/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/media/configure/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/kaiji/PycharmProjects/avotesla/main.py", line 16, in <module>
    client.photo_upload(f"/Users/kaiji/PycharmProjects/avotesla/avocados/p{i}.jpeg", "Another delicious whole avocado... \r\n\r\n\r\n#LidlAvoTeslaSweepstakes @lidlus @avosfromperu", usertags=tags)
  File "/Users/kaiji/PycharmProjects/avotesla/lib/python3.8/site-packages/instagrapi/mixins/photo.py", line 234, in photo_upload
    if self.photo_configure(
  File "/Users/kaiji/PycharmProjects/avotesla/lib/python3.8/site-packages/instagrapi/mixins/photo.py", line 310, in photo_configure
    return self.private_request("media/configure/", self.with_default_data(data))
  File "/Users/kaiji/PycharmProjects/avotesla/lib/python3.8/site-packages/instagrapi/mixins/private.py", line 446, in private_request
    raise e
  File "/Users/kaiji/PycharmProjects/avotesla/lib/python3.8/site-packages/instagrapi/mixins/private.py", line 433, in private_request
    self._send_private_request(endpoint, **kwargs)
  File "/Users/kaiji/PycharmProjects/avotesla/lib/python3.8/site-packages/instagrapi/mixins/private.py", line 355, in _send_private_request
    raise UnknownError(**last_json)
instagrapi.exceptions.UnknownError: Invalid Tagged Users in this media

Expected behavior
A clear and concise description of what you expected to happen.
I expected for the post to succeed.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. Ubuntu 21.04] MacOS Monterey
Python version [e.g. 3.8.3]  3.8.5
instagrapi version [e.g. 1.9.3, not "latest"]  1.16.20
moveipy version if used
imagemagick version if used

Additional context
Add any other context about the problem here.

nvm

solved?


Adding a style specifically for FF Browse button on Listing Managemen…

…t page
@lsemesky @akonsowski @rkenyon1969
This works, updates the style for FF only, does not affect Chrome.  Welcome to suggestions if there's a different way any of you would approach it however.

:+1:


[SDN-1364] Update OVN-K config for Audit logging

API changes For SDN-1364
See Enhancement for
details on the changes
Signed-off-by: Andrew Stoycos<EMAIL_ADDRESS>

/retest

/retest

/assign @russellb

/lgtm
@sttts are you okay with this based on @astoycos's responses?  Or do you want changes?


Missing corpora for the 2016 NLTK and Gensim talk

Looks like the galactic corpus is missing from the repo?

@afk314, unfortunately, we could not push the corpus to the repo because they contain copyright material. There are a few sites you could potentially grab them though:
http://www.chakoteya.net/movies/
and
http://www.imsdb.com/scripts/Star-Wars-A-New-Hope.html


How to append an element to element

So the below handler allows us to do things with element.  I am wondering how can we append a nested/child element to  element?
class ElementHandler {
  element(element) {
    // An incoming element, such as `div`
    console.log(`Incoming element: ${element.tagName}`)
  }
}

According to the docs, the Content type must be a string. Though it’s not the same, you can append a string and have it be treated as HTML:
element.append(htmlString, { html: true })

But as far as the docs say, you cannot hold onto an element and append it later to another element, e.g.
cc @ispivey
Sources:
https://developers.cloudflare.com/workers/runtime-apis/html-rewriter#methods
https://developers.cloudflare.com/workers/runtime-apis/html-rewriter#global-types

Given the last comment, this question has been resolved. Please reach out to community.cloudflare.com or support.cloudflare.com for additional assistance!


[qt5-webengine:x64-windows] build failure: c1xx: fatal error C1083: Cannot open source file: media_control_display_cutout_fullscreen_button_element.cc

Host Environment

OS: Microsoft Windows Windows 10 Pro (Version: 20H2 - OS build: 19042.789 - Experience: Windows Feature Experience Pack 120.2212.551.0)
Compiler: Visual Studio 2019 Developer Command Prompt v16.8.3 ** Copyright (c) 2020 Microsoft Corporation

Build machine is an Intel 64 bit machine, has 7 cores and 16GB of RAM installed.

The installed copy of Windows 10 has the 'Enable Win32 long paths' group policy object. I checked this due to the very long path and file name which I thought possibly might be the cause of the issue.
For reference, the group policy object is set via gpedit.msc on Windows 10 Pro and can be found at:

LCP->Computer Configuration->Administrative Templates->System->Filesystem->Enable Win32 long paths

Please don't ask for any further information regarding this port to try to 'solve' the issue. I'm merely reporting what is wrong here so that it is known that the port does not work. I don't have any merge requests at the ready and will be moving away from vcpkg in the future for most projects.
On a side note, this error has finally given me the empetus to move away from vcpkg and on to the much more widely supprted conan. This specific port (qt5-webengine) took so long just to get to a point where it worked but it now constantly breaks. I honestly recommend removing it from the ports because there clearly isn't a build bot confirming that it builds everytime. There should be.
Thanks

So I can confirm that the problem is related to path length.
When building qt5, we added warning to handle this:
qt5-base's buildsystem uses very long paths and may fail on your system.
We recommend moving vcpkg to a short path such as 'C:\\src\\vcpkg' or using the subst command.

So I can confirm that the problem is related to path length.

@JackBoosY: So I assume you build it successfully with a shorter path? The last time I tested it it also worked. Maybe vcpkg should just fast fail in the portfile for qt5-webengine if the root path is too long instead of issuing a warning and then fail much later.
@heydojo  Qt is a beast. Even Qt6 with the CMake based build system had problems with generating ridiculous long paths on build which failed the compilation. Have fun with conan and encounter other problems ;)

Never assume. 👍
I tried again today with the latest master and with some changes to the port file it did eventually build. In four hours.


--requiredToBeDocumented options not validated correctly

Search terms
require
docs
warning
requiredToBeDocumented
Expected Behavior
Validate provided types array
Actual Behavior
Incorrect error reported
Steps to reproduce the bug
Attempt to run TypeDoc with --validation.notDocumented and --requiredToBeDocumented Enum
Results in:
Error: 'Enum' is an invalid value for 'requiredToBeDocumented'. Must be one of: Project, Module, Namespace, Enum, EnumMember, Variable, Function, Class, Interface, Constructor, Property, Method, CallSignature, IndexSignature, ConstructorSignature, Parameter, TypeLiteral, TypeParameter, Accessor, GetSignature, SetSignature, ObjectLiteral, TypeAlias, Event, Reference
See: #1819
src/lib/utils/options/sources/typedoc.ts
Environment

Typedoc version: 0.22.12
TypeScript version: ~4.4.0
Node.js version: 14.15.4
OS: Win10

D'oh, that's a problem...


Fix tiny doc typos.

This provides 2 minor changes to some of the current pages under docs/.
If you want a more thorough work, I can review the whole directory, as soon as possible.
_Note that this is a way to sneak into the current Hacktoberfest event. It is only a humble small contribution to your amazing work, as I am reading the docs to prepare a migration.

Coverage remained the same at 83.816% when pulling f7b6d396971403ce5d8a009c669467cca0b19f42 on Kineolyan:fix-doc-typos into 56ed527658be4085cd60c25e3af896d6ab222acc on Geal:master.

thanks


Use private aws ecr instead of docker.io

Hi, due to security reasons, I cannot pull images from public docker.io.
I am using private AWS ECR repository from where to pull images from.
How do I force milvus to use a private ecr instead of public docker? Specifically I need to modify helm chart dependencies section, but having issues to get apache pulsar and milvusdb/milvus as documentation is not clear on how to enforce private repo.
can you help with this? Thanks

Hi @aladevlearning,
the images you may need to upload to ECR can be found in https://github.com/zilliztech/milvus-operator/blob/main/Makefile#L223

Then you need to altering all the images' address in deployment to your ECR address.
For milvus itself, check https://github.com/zilliztech/milvus-operator/blob/main/docs/administration/upgrade.md
For all the dependencies, check https://github.com/zilliztech/milvus-operator/tree/main/docs/administration/manage-dependencies.


Create relative symlinks to autohook, at install

Which issues are addressed?
Using relative symlink targets instead of absolute ones. Helps if the whole git repo gets moved around in the filesystem (with absolute links, all symlinks are broken after such a move)
#4 is resolved as side-effect, since realpath isn't used anymore now.
What's implemented?
Relative links from .git/hooks to autohook.sh (via ../../hooks/ path)
Why this implementation?
Any caveats?
Any additional notes?
Checklist

[ ] Everything works.
[ ] Test are present and pass.
[ ] Documentation has been updated.

Sorry for the neglect, but this looks good!
I'm merging into master for now, and will make another release when I clean up a few more things.
(Bonus: closes #4!)


CSS File imported with url imports looses original location

Do you want to request a feature or report a bug?
I believe this to be a bug

What is the current behavior?
Take a file within node_modules file.css containing style background: url(default-skin.png) 0 0 no-repeat;
with the original folder the png exists. When importing @import "module/file.css" the file looses reference to the original png location and now looks in the imported location (where it does not exist)
If the current behavior is a bug, please provide the steps to reproduce.
I found this with photoswipe

npm install photoswipe
inside main css  file @import "photoswipe/dist/default-skin/default-skin.css";
note build error ERROR in ./src/main/css/index.css Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ModuleNotFoundError: Module not found: Error: Can't resolve './default-skin.png' in '..../src/main/css'

What is the expected behavior?
The file would maintain reference to it's original position and pull the file from the node_modules location
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.
macOS 10.14.6
node 10.16.0
webpack 4.41.0
postcss-loader 3.0.0
sass-loader 8.0.0
css-loader 3.2.0

photoswipe have invalid url, it is not bug

Thanks @evilebottnawi but I don't think it's the url, as when I copy the files to a different location they then get picked up and built (where they then get a url). It's trying to find them in the build directory. Also invalid url wouldn't affect the build, wouldn't it only throw errors on runtime in the browser?
I can still open in css-loader should you like. can you link the github?

@JustJarethB please open issue with reproducible test repo, i am link issue in future or reopen issue if problem will be in webpack

@JustJarethB  This worked for me while trying to get Photoswipe into my bundle using Webpack:
$pswp__assets-path: "../node_modules/photoswipe/src/css/default-skin/";
@import "~photoswipe/src/css/main";
@import "~photoswipe/src/css/default-skin/default-skin";

@JustJarethB This worked for me while trying to get Photoswipe into my bundle using Webpack:
$pswp__assets-path: "../node_modules/photoswipe/src/css/default-skin/";
@import "~photoswipe/src/css/main";
@import "~photoswipe/src/css/default-skin/default-skin";

So I spent quite some time looking for a solution and this one would never pop into my head.. Great thing pal. Thanks a lot!

@JustJarethB This worked for me while trying to get Photoswipe into my bundle using Webpack:
$pswp__assets-path: "../node_modules/photoswipe/src/css/default-skin/";
@import "~photoswipe/src/css/main";
@import "~photoswipe/src/css/default-skin/default-skin";

So I spent quite some time looking for a solution and this one would never pop into my head.. Great thing pal. Thanks a lot!


Set default number of threads to 1

Also, adjusted logging output to make it more obvious how many threads are used (and which mode). Example:
...
Total time indexing: 3.79 s
Processing paired-end reads in mapping-only mode using 1 worker thread
 Mapped         1.00 M reads @    11.02 us/read
Done!

Other example messages:
Processing single-end reads in abundance estimation mode using 4 worker threads
...
Processing single-end reads using 4 worker threads

Closes #401

Great! About your comment on making it 'easily interpretable' for less experienced users (https://github.com/ksahlin/strobealign/issues/401); what do you think about removing 'worker' in 1 worker thread and just state using 1 thread?
One may think that worker threads are not directly related to number of threads the program is using. For example, in the producer/consumer solution there is one producer and several consumers that sometimes might be confused with 'workers'.

One may think that worker threads are not directly related to number of threads the program is using.

I somehow misremembered that the main thread does the I/O, so it was actually my intention to convey that there are more than $n$ threads, but checking the code, I see that that isn’t the case: The main thread only prints the progress indicator, so it shouldn’t be counted. I have changed the text as you suggested.

Great, approved!


Setting column title automatically from collection2

In my app, I define the columns with
columns: [
  { data: "_id", title: "Id", visible: false },
  { data: "projectId", title: "Project" },
  { data: "groupId", title: "Group" },
]

Is it possible to use the title directly from the labels I have defined in my schema with collection2 instead of setting all the titles once again?

The only way would be like this:
{ data: "projectId", title: mySchema.getDefinition("projectId", "label").label }


Bump Kubernetes dependencies (#215)

Move to the new sets.Set type as sets.String is now deprecated. Bump mockgen to a version that supports generics.
Bump golangci-lint.
Co-authored-by: dependabot[bot]<EMAIL_ADDRESS>Signed-off-by: Yoni Bettan<EMAIL_ADDRESS>
Fixes https://github.com/rh-ecosystem-edge/kernel-module-management/issues/389

/cc @qbarrand

/hold
@ybettan OCP 4.12 uses Kubernetes 1.25, we should not upgrade those deps.

@qbarrand Indeed but I wanted to check if it passes CI and it does. Seems like a newer client still work with older clusters.
Do you still think we shouldn't update the API version?

Seems like a newer client still work with older clusters.

Some features might break. I do not see the benefit tbh.


Downloading and running

Hey Calteo, a slooh member and ambassador here. I was using this explorer (1.0.39) when it was publicly released in april of 2021, it was a great software and it made it a lot easier to download bulk images from missions. I reinstalled windows on my pc and the exlporer got deleted in that process. I again downloaded in march of this year but was facing a lot of lag in the explorer (1.0.42) so stopped using it. Today I came to check for updates and version 1.0.46 is available. How can I install and run it because every downloadable link is giving me the source code file instead of the explorer file which was in version 1.0.42?
Good luck developing this!
Yajvin

Hello Yajvin,
the explorer can be installed an updated via chocolately (https://chocolatey.org/).
Link to the package is https://community.chocolatey.org/packages/slooh-explorer
Sorry to hear that it has some lags.
But I I not using an official API from slooh. Just doing the same things that the web site is doing. Fortunately slooh uses some REST services that are self-explanatory.
I do not know how their site behaves on large image/mission counts. I would like to have an official API and some more performant operations, but I guess this is not the main focus of their site.
I should include a zip on github releases that contain the binaries – though.
Regards,
Matthias
Von: GNz-11 @.>
Gesendet: Freitag, 10. Juni 2022 16:04
An: Calteo/Slooh.Explorer @.>
Cc: Subscribed @.***>
Betreff: [Calteo/Slooh.Explorer] Downloading and running (Issue #1)
Hey Calteo, a slooh member and ambassador here. I was using this explorer (1.0.39) when it was publicly released in april of 2021, it was a great software and it made it a lot easier to download bulk images from missions. I reinstalled windows on my pc and the exlporer got deleted in that process. I again downloaded in march of this year but was facing a lot of lag in the explorer (1.0.42) so stopped using it. Today I came to check for updates and version 1.0.46 is available. How can I install and run it because every downloadable link is giving me the source code file instead of the explorer file which was in version 1.0.42?
Good luck developing this!
Yajvin
—
Reply to this email directly, view it on GitHub https://github.com/Calteo/Slooh.Explorer/issues/1 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKHVDT7NEH66MR2EY6EOFLTVONDNLANCNFSM5YNZOVXQ .
You are receiving this because you are subscribed to this thread.  https://github.com/notifications/beacon/AKHVDTYRCCR52X5UQPOV33DVONDNLA5CNFSM5YNZOVX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4S4OCTLQ.gif Message ID: @.*** @.***> >

I did all of the above and all went OK. However when I run Slooh.Explorer as Admin I get error message;
"The SSL connection could not be established, see inner exception"
If I just run it the normal way I get error message;
"An error occured while sending the request"
I was getting the same error message using the old version 1.0.42.
I am running Win 10 Pro x64, .Net Runtime 6.0.6.
I love this program and it always ran correctly for me until now. As I have 100's of FITS to download from Slooh I would really like to get this working again.
What gives?

I did all of the above and all went OK. However when I run Slooh.Explorer as Admin I get error message; "The SSL connection could not be established, see inner exception" If I just run it the normal way I get error message; "An error occured while sending the request" I was getting the same error message using the old version 1.0.42. I am running Win 10 Pro x64, .Net Runtime 6.0.6. I love this program and it always ran correctly for me until now. As I have 100's of FITS to download from Slooh I would really like to get this working again. What gives?

Hey Geekster. After Slooh changed its website URL from slooh.com to app.slooh.com , this software is not able to connect to the new website. I'm also facing the same issue. Waiting for Matthias to fix this issue in the next release

Are you sure that is the problem? I do hope this gets fixed fast. I would pay for this software it is so useful to me.

I got some information from slooh, but I will only be able to look into this next week. Hopefully it will solve the problem.
Am 5. Juli 2022, 22:35, um 22:35, geekster123 @.***> schrieb:

Are you sure that is the problem? I do hope this gets fixed fast. I
would pay for this software it is so useful to me.
--
Reply to this email directly or view it on GitHub:
https://github.com/Calteo/Slooh.Explorer/issues/1#issuecomment-1175473513
You are receiving this because you commented.
Message ID: @.***>

I have updated the slooh url and the version 1.0.47 is now functioning again.
It will show up at chocolately soon - I hope.

Hope this helps.


tests on admin

#delete tests pending

Wheeeee ... such pull request. Go team @Techylite :heart:

@Ressy77 @essymo wow, that are many changes ;) Thanks for your work!
I will try to review it asap and hope to get some help from @tyranja. I will start to make some inline comments.

@zaziemo thank you for this. We will look at the comments, correct and improve on what needs to be improved

Wow such a lot of tests! Great work! :+1:

@zaziemo we went through our code and we decided to change the little errors before they piled up.
Just to avoid having recurring errors when we do a new push request

Wohooo! All the tests are passing! We will merge them as soon as possible! Thanks for you work @Techylite!

Hum, apparently they are not passing on my local machine. There is a very strange behaviour. Sometimes I get 8 failures, sometimes 18, sometimes 34. Really strange. Did you have any problems with this before @Techylite?

Just for the navigation spec..let me run it again and see
On Friday, 4 September 2015, Maren Heltsche<EMAIL_ADDRESS>wrote:

Hum, apparently they are not passing on my local machine. There is a very
strange behaviour. Sometimes I get 8 failures, sometimes 18, sometimes 34.
Really strange. Did you have any problems with this before @Techylite
https://github.com/Techylite?
—
Reply to this email directly or view it on GitHub
https://github.com/rubymonsters/speakerinnen_liste/pull/392#issuecomment-137677194
.

--
Esther Monchari
Business Information Technology
Skype Esther.Monchari

@essymo I found the problem: apparently you deleted some lines in the devise.en.yml which caused the problems that some buttons were not found.

or maybe the file(devise.en.yml) was updated,I think.let me try and compare
On 4 September 2015 at 12:39, Maren Heltsche<EMAIL_ADDRESS>wrote:

@essymo https://github.com/essymo I found the problem: apparently you
deleted some lines in the devise.en.yml which caused the problems that some
buttons were not found.
—
Reply to this email directly or view it on GitHub
https://github.com/rubymonsters/speakerinnen_liste/pull/392#issuecomment-137691198
.

--
Esther Monchari
Business Information Technology
Skype Esther.Monchari

@Techylite ouff - everything merged now and refactored so it works now. Thanks for your contribution!

@Techylite Well done!! :ok_hand:

Yeeiy :-)
Thanks @zaziemo and @tyranja.

Awesome🙌
On 10 September 2015 at 16:51, Resla Wesonga<EMAIL_ADDRESS>wrote:

Yeeiy :-)
Thanks @zaziemo https://github.com/zaziemo and @tyranja
https://github.com/tyranja.
—
Reply to this email directly or view it on GitHub
https://github.com/rubymonsters/speakerinnen_liste/pull/392#issuecomment-139240613
.

--
Esther Monchari
Business Information Technology
Skype Esther.Monchari


Arbitrary matrix function, or one of the listed ones

For $A \in \mathbb{R}^{n \times n}$ admitting an eigenvalue decomposition $A = U \Lambda U^T$ and $f : \mathbb{R} \to \mathbb{R}$ is a scalar function, according to the docs this package helps to estimate the quantity:
$$ \mathrm{tr}(f(A)) =  \mathrm{tr}(U f(\Lambda) U^\top)$$
A couple of quantities I'm interested in computing:

The numerical rank of $A$ (or the eigencount in an interval), per one of the applications
The spectral density (also one of the applications)
The trace of an arbitrary matrix function, e.g. functions like $\lambda \mapsto \lambda / (\lambda + \epsilon)$ (often used in $\ell_1$/rank minimization tasks) or $\lambda \mapsto \exp(-t \lambda)$ (related to the heat kernel)

Though some of these are mentioned, the only one's I see in the API docs are logdet, trace, traceinv, and schatten. Does this package support (1) and (2), and does it support arbitrary matrix functions like (3) [if not from Python, what about on the C++ side?]?

Thanks for reaching out and sharing your interests. Originally, we had plans to include additional functions, including arbitrary matrix functions. In response to your request, I have added the following functions to version 0.20.0: trexp, trlinfrac, eigencount, and density. I hope you find them useful for your applications. If you run into any issues or have more feedback, please feel free to share.
Additionally, if you could point to some references or resources related to the $\ell_1$/rank minimization task and PDE kernels associated with the functions you mentioned, it would be a great help to better understand the context.

Wrote a response but forgot to hit send;

In response to your request, I have added the following functions to version 0.20.0

Thank you, these have helped a bunch!

Additionally, if you could point to some references or resources related to the
/rank minimization task and PDE kernels associated with the functions you mentioned, it would be a great help to better understand the context.

I've been working off a couple papers, but the main one being this paper[1], which is a bit dense, but quite general, as it encapsulates the constructions from other papers, like that of [2].
The gist is that integrating smoothed variations of the Dirac measure yields matrix functions with "nice" properties, including closed-form [sub]differentiability, certain monotonicity properties, and guarantees related to rank minimization, etc.
For example, for a positive semi-definite $A \in \mathbb{R}^{n \times n}$, the spectral sum:
$$ \mathrm{tr}(f(\Lambda)) = \sum\limits_{i=1}^n \frac{\lambda}{\lambda + \epsilon}, \quad \epsilon > 0 $$
ends up corresponding to this trace, for $A = X^T X$:
$$ \mathrm{tr}(f(\Lambda)) = \mathrm{tr}((X^T X + \epsilon I)^{-1} X^T X)$$
Notice that part of that expression is like the Tikhonov $\epsilon$-regularization applied to the columns of $X$.
It looks like maybe one could express this via a composition of AffineMatrixFunction's, and then interpolated similar to how you propose in your Statistics and Computing paper.
Another smoothing variation leads to $f(\lambda) = 1 - \mathrm{exp}(-\frac{\lambda}{\epsilon})$, which itself is related to the trace of the heat kernel of graph Laplacians. I'm aware of this is from its use in diffusion modeling, and also in generating spectral signatures for 3d meshes, but honestly PDE's is not really my area.

Bi, Shujun, Le Han, and Shaohua Pan. "Approximation of rank function and its application to the nearest low-rank correlation matrix." Journal of Global Optimization 57.4 (2013): 1113-1137.
Li, Chengjin. "A new approximation of the matrix rank function and its application to matrix rank minimization." Journal of Optimization Theory and Applications 163 (2014): 569-594.


Lazy Import for Field Types

Initial Checks

[X] I have searched Google & GitHub for similar requests and couldn't find anything
[X] I have read and followed the docs and still think this feature is missing

Description
Currently if you do:
from typing import TYPE_CHECKING
from pydantic import BaseModel, Field

if TYPE_CHECKING:
    from somelib import SomeClass

class A(BaseModel, arbitrary_types_allowed=True):
    a: "SomeClass | None" = None

A()

This will raise:
PydanticUserError: `A` is not fully defined; you should define `SomeClass`, then call `A.model_rebuild()`.

You will then have to do:
from somelib import SomeClass
A.model_rebuild()
A()

I'm wondering if it's possible to define the depending import statement for the model, so that I can still use string type hint for defining model and only actually import it when the model is imported somewhere.
The main benefit of this is avoiding a very long import time when you have defined a lot of models with custom classes as field types which have to be imported from some other packages.
Affected Components

[ ] Compatibility between releases
[ ] Data validation/parsing
[ ] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[ ] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[X] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[ ] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

and only actually import it when the model is imported somewhere.

There's no way for us to know when a model (or any object for that matter) is imported somewhere. model_rebuild will have to be called at some point. However, you can make use of the _types_namespace argument to avoid having to from somelib import SomeClass in the other module where you are also importing your model.
Maybe something like this could work for you:
from importlib import import_module
from functools import partial
from typing import Any, ClassVar

from pydantic import BaseModel

def _import(spec: str) -> Any:
    module_path, obj = spec.rsplit(".", 1)
    module = import_module(module_path)
    return getattr(module, obj)

class A(BaseModel):
    build_imports: ClassVar[dict[str, Any]] = {
        "SomeClass": partial(_import, "somelib.SomeClass"),
    }

    @classmethod
    def model_rebuild(
        cls,
        *,
        force: bool = False,
        raise_errors: bool = True,
        _parent_namespace_depth: int = 2,
        _types_namespace: dict[str, Any] | None = None,
    ) -> bool | None:
        _types_namespace = _types_namespace or {}
        _types_namespace.update({k: imp() for k, imp in cls.build_imports.items()})
        return super().model_rebuild(force=force, raise_errors=raise_errors, _parent_namespace_depth=_parent_namespace_depth, _types_namespace=_types_namespace)

Hi @atodniAr,
You can use the defer_build config setting on your models, which defers the build until the first validation / serialization call. You can read more about that here: https://docs.pydantic.dev/latest/api/config/#pydantic.config.ConfigDict.defer_build.
Going to close this as resolved for now, given that I think this config setting meets your needs.

Hi @atodniAr,
You can use the defer_build config setting on your models, which defers the build until the first validation / serialization call. You can read more about that here: https://docs.pydantic.dev/latest/api/config/#pydantic.config.ConfigDict.defer_build.
Going to close this as resolved for now, given that I think this config setting meets your needs.

Sorry for a late reply as I was too busy to fully test the defer_build option you recommended.
To further clarify my need, I want to have the behavior of instantiation time import in pydantic model, e.g. in a normal class:
class A:
    def __init__(self):
        from alib import ADep
        self.a = ADep()

class B:
    def __init__(self):
        from blib import BDep
        self.b = BDep()

now you can do:
from schema import A
a_cls = A()

without wasting time on importing blib.
In the initial description of this issue I tried to replicate similar behavior in pydantic (without defer build), which caused PydanticUserError asking me to manually reimport those dependencies and run model rebuild, which is not what I want.
Following your suggestion, I tried add/not add defer_build. I found even without defer_build, the following code works:
from pydantic import BaseModel, Field
from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from torch import dtype

class A(BaseModel, arbitrary_types_allowed=True):
    a: 'dtype | None' = Field(None)

# Where A is imported
from torch import dtype
A()

I.e. A.model_rebuild() doesn't have to be manually excuted, nor does defer_build flag has to be added. In the meantime, adding defer_build flag doesn't remove the neccessity of from torch import dtype line, which is expected as there is no way Python can figure what dtype is.
I however found a way (coverage and performance not tested or optimized) to work it around, defining:
from pydantic import BaseModel
from typing import TYPE_CHECKING, get_args, get_origin, Union
from types import UnionType

model_namespace = {}

class AutoRebuildModel(BaseModel, arbitrary_types_allowed=True):
    """Inherit this class and implement necessary __setup_dependencies__ to automatically rebuild the model namespace without worrying about ForwardRef rebuild."""

    def __init__(self, *args, **kwargs):
        if TYPE_CHECKING:
            return super().__init__(*args, **kwargs)
        for field_name, field_info in self.model_fields.items():
            field_type = field_info.annotation
            if get_origin(field_type) is Union or get_origin(field_type) is UnionType:
                for sub_field_type in get_args(field_type):
                    if isinstance(sub_field_type, type) and issubclass(
                        sub_field_type, AutoRebuildModel
                    ):
                        model_namespace.update(sub_field_type.__setup_dependencies__())
            elif isinstance(field_type, type) and issubclass(
                field_type, AutoRebuildModel
            ):
                model_namespace.update(field_type.__setup_dependencies__())

        model_namespace.update(self.__setup_dependencies__())
        # print(model_namespace)
        # for k, v in model_namespace.items():
        #     globals()[k] = v
        self.model_rebuild(_types_namespace=model_namespace)
        super().__init__(*args, **kwargs)

    @staticmethod
    def __setup_dependencies__() -> dict:
        return dict()

Now I can do:
if TYPE_CHECKING:
    from torch import dtype

class Z(AutoRebuildModel):
    z: 'dtype | None' = Field(None)

    @staticmethod
    def __setup_dependencies__() -> dict:
        from torch import dtype
        return {"dtype": dtype}

class A(AutoRebuildModel):
    z: "Z | None" = Field(
        None,
    )

class B(Z):
    some_field: str = Field(
        ...,
        description="Some field",
    )

class C(A):
    some_field: str = Field(
        ...,
        description="Some field",
    )

I tested above examples, all work as expected (fast import, resolving dependency in instantiation time). The only extra work needed in model definition is defining setup_dependencies if present


support multi pd server

PTAL @coocood

PTAL @coocood @cfzjywxk

LGTM

LGTM better to add some comments for new functions

@cfzjywxk we can do it later


Remove route /user/public

Follow up of https://github.com/serlo/serlo.org-cloudflare-worker/pull/209 with which the route /user/public can never be reached.

Does this also work correctly for logged-in users (that may be redirected to the legacy frontend at the moment)?

"Eigenes Profil" directs to user profile directly, without /user/public, so frontend is fine

"Eigenes Profil" directs to user profile directly, without /user/public, so frontend is fine

I'm talking about legacy. I.e. does it work for users that are logged in and are still served the legacy system.

Does this also work correctly for logged-in users (that may be redirected to the legacy frontend at the moment)?

Yes. /user/public is a redirect to the profile route /user/:id/:username which is the same as /user/me without the navigation left with buttons like change password, edit profile, etc. This PR would delete the button public profile and thus it would be harder for users to get to their public profile view without navigation. However I think that's okay (since they see everything) and it is planned to serve the new design to all logged in users in two weeks anyway...

(In the new design there is no distinction between a view on the user profile without and with a navigation -> both views are integrated in one)


[QUESTION] fatal error: 'frida-core.h' file not found

Please describe your feature request below in few sentences.
When I run the below code , it reported vendor/github.com/frida/frida-go/frida/application.go:3:10: fatal error: 'frida-core.h' file not found, how can I resolve it? Thanks.

Potential usage you would like to see
Small example of potential API usage.
package main

import (
	"bufio"
	"fmt"
	"os"

	"github.com/frida/frida-go/frida"
)

var script = `
Interceptor.attach(Module.getExportByName(null, 'open'), {
	onEnter(args) {
		const what = args[0].readUtf8String();
		console.log("[*] open(" + what + ")");
	}
});
Interceptor.attach(Module.getExportByName(null, 'close'), {
	onEnter(args) {
		console.log("close called");
	}
});
`

func main() {
	mgr := frida.NewDeviceManager()

	devices, err := mgr.EnumerateDevices()
	if err != nil {
		panic(err)
	}

	for _, d := range devices {
		fmt.Println("[*] Found device with id:", d.ID())
	}

	localDev, err := mgr.LocalDevice()
	if err != nil {
		fmt.Println("Could not get local device: ", err)
		// Let's exit here because there is no point to do anything with nonexistent device
		os.Exit(1)
	}

	fmt.Println("[*] Chosen device: ", localDev.Name())

	fmt.Println("[*] Attaching to Telegram")
	session, err := localDev.Attach("Telegram", nil)

	script, err := session.CreateScript(script)
	if err != nil {
		fmt.Println("Error ocurred creating script:", err)
	}

	script.On("message", func(msg string) {
		fmt.Println("[*] Received", msg)
	})

	if err := script.Load(); err != nil {
		fmt.Println("Error loading script:", err)
		os.Exit(1)
	}

	r := bufio.NewReader(os.Stdin)
	r.ReadLine()
}

Hi, what is your go version and did you install frida-core devkit files(libfrida-core.a) and frida-core.h

Hi, what is your go version and did you install frida-core devkit files(libfrida-core.a) and frida-core.h

Thanks for reply.
My go version is go version go1.19 darwin/arm64.
I don't know how to install frida-core devkit files(libfrida-core.a) and frida-core.h.
I just install python3 and pip3 and excute pip3 install frida frida-tools.

So you want to go to the releases and download the archive for your OS and architecture. For example frida-core-devkit-macos-x86_64.tar.xz.
You download the archive, extract it and copy libfrida-core.a to /usr/local/lib and frida-core.h inside /usr/local/include and then you should be able to build frida-go

Thank you very much, I will try it right away.

Thanks again, it works perfectly in my local.

Just came across this same issue.
Can't this be automated within the package?

I don't see how this could be automated inside the package. One of the solutions would be some kind of shell script that would be run prior to building the binary.
Feel free to PR it if would like to work on it.
Ideally, it should receive the following arguments:

os (linux, macos or android)
arch
include location
lib location


Add support for phpstan

Description
GitLab CI configures and runs phpstan against contrib modules. Would it make sense to add that to run here as well?

Yes, makes sense. PRs welcome.

Lets continue in PR


Add laravel-commando

Hi, I just created an interesting Laravel package that has some handy set of artisan commands like create or drop database, dump database or load from .sql dump, or to see which fields (and field types) are present in your models ...
Can you please add it, to the list. I think the most suitable section is Tasks, Commands and Scheduling.
The link is: https://github.com/vkovic/laravel-commando

Sorry, not enough stars: https://github.com/chiraggude/awesome-laravel/blob/master/CONTRIBUTING.md


chore: bdd-ghfjxy-import-1584517661 to 0.0.1

chore: Promote bdd-ghfjxy-import-1584517661 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

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


issues with the latest XCode

Looks like the latest version of XCode doesn't play nicely with brew. Here's a github issue with the question and an answer with 38 upvotes that involves modifying a file inside a brew keg. Given the number of upvotes, it seems like this is a problem for a lot of people and the fix is fairly effective. Can we make the fix directly to the keg so people don't have to fix this bug themselves? Also, is there a better repo to post this issue on?

Looks like your ticket here may be related to https://github.com/Homebrew/brew/issues/972

This is an issue with Qt itself so should be reported to them. If there's a change we can make in the Qt formula we'll accept a pull request to do so. Could you try and open a pull request? This document should help and I'm happy to walk you through anything else.
Thanks!


⚠ Bofrost.at has degraded performance

In c3c38b1, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1279 ms

Resolved: Bofrost.at performance has improved in 53c35a1 after 6 minutes.


Missing Ansible role to deploy Ansible rpm

In Multi Iceberg, an Ansible role to deploy Ansible itself is needed, and must be added into core.

https://github.com/bluebanquise/bluebanquise/pull/143


misspell in french

just a small misspell in french

cla signed

/lgtm
/approve
Em dom, 21 de jul de 2019 13:58, Cyprien Le Pannérer <
<EMAIL_ADDRESS>escreveu:

cla signed
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/website/pull/15490?email_source=notifications&email_token=AACJOIS4VDYUBA3PPY4RAVTQARFOJA5CNFSM4IFSAOPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2OBZBY#issuecomment-513547399,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AACJOITGNMCEMRKCRK74MYDQARFOJANCNFSM4IFSAOPA
.

/check-cla

/approve cancel

@cyplp Please try follow instructions here to debug CLA status if you have signed it.

/check-cla

@tengqm done

/approve


Clarify that the disk-sku is per node

[Enter feedback here]
Hi when examining the dis-sku, disk-capacity  option the description says  "for data centers" instead this characteristics is per node within the datacenter as detailed here https://docs.microsoft.com/en-us/azure/managed-instance-apache-cassandra/create-cluster-portal#:~:text=No. of disks - Choose the number of p30 disks to be attached to each Cassandra node.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: d5d3f63d-257c-1105-6061-99b8433ba0a7
Version Independent ID: 436c6152-b9c4-3194-cf2a-4c1f39dee28c
Content: az managed-cassandra datacenter
Content Source: latest/docs-ref-autogen/managed-cassandra/datacenter.yml
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

route to service team


Upgrade to support pydantic 2.0+

Currently pinned to pydantic<2.0.0 but pydantic 2.0 has been out for a few months.

+1 for this

+1 for this

+1 for this

+1 for this

+1 for this

Pydantic: 2.1.1
Python: 3.11.4
Optional Schema is not supported, please change it for me
from typing import Container, Optional, Type
from pydantic import BaseModel, ConfigDict, create_model

def sqlalchemy_to_pydantic(
    db_model: Type, *, exclude: Container[str] = []
) -> Type[BaseModel]:
    table = db_model.metadata.tables[db_model.__tablename__]
    fields = {}
    config = ConfigDict(from_attributes=True)
    for column in table.columns:
        name = column.name
        if name in exclude:
            continue
        python_type: Optional[type] = None
        if hasattr(column.type, "impl"):
            if hasattr(column.type.impl, "python_type"):
                python_type = column.type.impl.python_type
        elif hasattr(column.type, "python_type"):
            python_type = column.type.python_type
        assert python_type, f"Could not infer python_type for {column}"
        default = None
        if column.default is None and not column.nullable:
            default = ...
        fields[name] = (python_type, default)
    pydantic_model = create_model(db_model.__name__, __config__=config, **fields)
    return pydantic_model

If you are using pydantic v2 and sqlalchemy 2.0 and above, try this sqlalchemy-to-pydantic

For those looking for a link to the source code behind sqlalchemy-to-pydantic, it's here: https://github.com/wezhai/sqlalchemy-to-pydantic. Linking sqlalchemy-to-pydantic's source to PyPI was requested in https://github.com/wezhai/sqlalchemy-to-pydantic/issues/1

@wezhai that requires sqlalchemy 2 🤔

this make from_orm work again https://github.com/mohamed-aziz/pydantic-sqlalchemy/commit/4b1821c418014e26c53449a3800beba318c130f3


Group Toggle enhancement request

For groups with a single member, filter the group toggle switch.  (Bedroom group as an example)

I could also not create groups of single entities so the might be the better solution. :)
Just putting it out there.

Fixed the following:

do not show toggle if group can't be toggled
do not show toggle if only 1 toggle entity in group

:+1: :smile: :+1: :smile: :+1:


[FEATURE REQUEST] Get an "In-Trade" flag per each item on load my invnetory

tittle just say all, ll be good if the method get my inv can check if the items are in trade, and add som like "InTradeItems: false" and dont get the items that are in a active or waiting mobile Trade.
tnks!

This would require something like node-steam-tradeoffer-manager's polldata.json. However, this repository is meant to be more of a wrapper for Steam's API, so this wouldn't really be within the scope of this library. It would be pretty easy to write your own, though.

As @andrewda said, this is outside the scope of the library.


offer doesn't work as expected

hi,
I create a the following offer according to the doc. but I find it doesn't work as expected.
_offer: Buy 1 Lonely Planet books, get £5 off a Lonely Planet DVD

Create a range for Lonely Planet books and another for Lonely Planet DVDs
Use a count-based condition linking to the book range with a value of '1'
Use a fixed discount benefit that links to the DVD range and has a value of 5._
This offer only applies when I add one more product outside the Lonely Planet books range.
it can't work even if I just add 2 products in Lonely Planet books range.
the workaround is to change the value in step 2) to '0' instead of '1', then everything goes ok.

I'm not able to reproduce this issue on master - following the steps you describe, the discount is correctly applied if I add one product from the condition range and one product from the benefit range to the basket.
Can you confirm whether you are still seeing the issue and if so, clarify the steps to reproduce?

Closing due to lack of feedback from OP. Feel free to reopen with steps to reproduce.


Performance degradation as commits accumulate

@mccanne identified a performance exposure as the commit log gets long, so I ran the following script on my Mac laptop to quantify the degradation. The test data is the first Zeek conn record from the zed-sample-data in ZNG format.
#!/bin/sh
rm -rf $ZED_LAKE_ROOT
zed lake init
zed lake create logs
zed lake checkout logs@main
NUM=1
while true; do
  echo "Performing commit #${NUM}:"
  time zed lake load one_conn.zng
  echo
  echo "Performing minimal query:"
  time zed lake query 'head 1' > /dev/null
  echo
  NUM=$(expr $NUM + 1)
done

As shown in the chart below, the simple head 1 query goes from 23 milliseconds when the pool contains just the one commit to 4+ seconds when there's 21k commits.

Just to be clear, this is all "by design" and shall be taken care of by not-yet-implemented cats and snanpshots of the commit history.  Since everything is immutable (and since ZNG can be simply concatenated), it is trivial to concatenate a commit history at any object and to create snapshots of the current state of the object store at any commit.

I'm also curious about our commit-per-second speed.  There are some easy things here we can do here to speed this up too...

Also query times are slow because of the massive number of single-record ZNG objects in the store.  Small commits will be address with LSM-style rollups via the forthcoming compat command (which is trivial to implement... just read a bunch of small objects in a mergescan and write them back).

The addition of zed compact via #3940 justifies revisiting the tests performed here to see if compacting the objects from the large number of commits might improve query performance.,
As the initial tests were performed back in September of 2021, it first seemed appropriate to re-baseline by repeating the original test with current Zed. The Zed commands have changed a bit in the time since, so here's an update of the repro script that's in sync with current Zed commit 28029f06.
#!/bin/sh
export ZED_LAKE="$HOME/.zed-3027-lake"
rm -rf $ZED_LAKE
zed init
zed create logs
zed use logs@main
NUM=1
while true; do
  echo "Performing commit #${NUM}:"
  time zed load one_conn.zng
  echo
  echo "Performing minimal query:"
  time zed query 'head 1' > /dev/null
  echo
  NUM=$(expr $NUM + 1)
done

While I didn't let it run for as many hours, since the prior results indicated a linear degradation, I repeated the test up through 7000 commits. Here's results that chart the slower commit and query times as the number of commits increases.

While the results are roughly similar to what we saw in the past, comparing just the commit times then vs. now, we see that the time per commit is actually a bit worse now than it was before.

Whereas the query times are slightly better now.

Finally, we see that we're able to compact the objects from the 7000 commits in 1.438 seconds.
$ ulimit -n 1000000
$ time zed compact $(zed query -f text 'from logs@main:objects | yield "0x${hex(id)}"')
2BXimaptwtcBm5U9vcixBureyxA compaction committed

real	0m1.438s
user	0m2.575s
sys	0m1.232s

Now the time for our head 1 query is 0.444 seconds, which is almost 3x better than the 1.26 seconds it took for the same query before compacting.
$ time zed query 'head 1' > /dev/null

real	0m0.444s
user	0m0.471s
sys	0m0.260s


[FEATURE] Port issue labels to PR

Coming from https://github.com/opensearch-project/OpenSearch/issues/8199
Port all labels overs from associated issues to PR.
There should be a logic to exclude some labels like untriaged

[Triage] Hi @DarshitChanpura thanks for opening this issue. It does not seem like Security is the best place to put this. Perhaps core would be more appropriate? Thank you.


Remove connection adapters and move things to middleware

Remove connection adapters from the public API surface (pubternal) and replace the existing adapters with connection middleware.
Updated the tests

Fixes #11402

The node services test exploded but things look good!

All good!
Before:
| Description |       RPS | CPU (%) | Memory (MB) | Avg. Latency (ms) | Startup (ms) | First Request (ms) | Latency (ms) | Errors |
| ----------- | --------- | ------- | ----------- | ----------------- | ------------ | ------------------ | ------------ | ------ |
|           √ | 2,481,298 |      95 |         411 |              1.34 |     412.5047 |           126.8114 |       0.1727 |      0 |
|           √ | 2,440,507 |      94 |         406 |              2.51 |     375.6787 |                  0 |            0 |      0 |
|           √ | 2,450,269 |      96 |         409 |              1.53 |     377.3042 |                  0 |            0 |      0 |

RequestsPerSecond:           2,457,358
Max CPU (%):                 95
WorkingSet (MB):             409
Avg. Latency (ms):           1.79
Startup (ms):                388
First Request (ms):          42.27
Latency (ms):                0.06
Total Requests:              37,104,666
Duration: (ms)               15,100
Socket Errors:               0
Bad Responses:               0
SDK:                         3.0.100-preview7-012531
Runtime:                     3.0.0-preview7-27812-08
ASP.NET Core:                3.0.0-preview7.19320.1

After:
| Description |       RPS | CPU (%) | Memory (MB) | Avg. Latency (ms) | Startup (ms) | First Request (ms) | Latency (ms) | Errors |
| ----------- | --------- | ------- | ----------- | ----------------- | ------------ | ------------------ | ------------ | ------ |
|           √ | 2,538,741 |      96 |         407 |              1.64 |      398.527 |           130.0194 |       0.1473 |      0 |
|           √ | 2,594,585 |      98 |         423 |              2.07 |     378.0464 |                  0 |            0 |      0 |
|           √ | 2,558,935 |      95 |         418 |              2.83 |     377.4521 |                  0 |            0 |      0 |

RequestsPerSecond:           2,564,087
Max CPU (%):                 96
WorkingSet (MB):             416
Avg. Latency (ms):           2.18
Startup (ms):                385
First Request (ms):          43.34
Latency (ms):                0.05
Total Requests:              38,701,248
Duration: (ms)               15,093
Socket Errors:               0
Bad Responses:               0
SDK:                         3.0.100-preview7-012531
Runtime:                     3.0.0-preview7-27812-08
ASP.NET Core:                3.0.0-preview7.19320.1


Let PPaaS add a TXT DNS record with the last update unix timestamp

With this TXT record in place, everyone knows when the last update of the DNS Records took place. The record itself should be named like the A/AAAA Records and contain the unix timestamp or an ISO 8601 timestamp with timezone of the last update

This feature has been added to v2.0.0 already (still not released though). Closing this issue.


TypeError: Cannot read properties of undefined (reading 'name')

Hello :)
I got an issue using the homebridge-freeathome plugin. The error message is as follows:
[31/01/2022, 21:48:47] TypeError: Cannot read properties of undefined (reading 'name')
     at Function.parseDeviceData (/usr/local/lib/node_modules/homebridge-freeathome/node_modules/freeathome-api/dist/lib/XmlParser.js:110:106)
     at Function.parseMasterUpdate (/usr/local/lib/node_modules/homebridge-freeathome/node_modules/freeathome-api/dist/lib/XmlParser.js:17:21)
     at SystemAccessPoint. (/usr/local/lib/node_modules/homebridge-freeathome/node_modules/freeathome-api/dist/lib/SystemAccessPoint.js:314:53)
     at Generator.next ()
     at /usr/local/lib/node_modules/homebridge-freeathome/node_modules/freeathome-api/dist/lib/SystemAccessPoint.js:8:71
     at new Promise ()
     at __awaiter (/usr/local/lib/node_modules/homebridge-freeathome/node_modules/freeathome-api/dist/lib/SystemAccessPoint.js:4:12)
     at SystemAccessPoint.handleRpcCallResult (/usr/local/lib/node_modules/homebridge-freeathome/node_modules/freeathome-api/dist/lib/SystemAccessPoint.js:293:16)
     at SystemAccessPoint. (/usr/local/lib/node_modules/homebridge-freeathome/node_modules/freeathome-api/dist/lib/SystemAccessPoint.js:267:26)
     at Generator.next () [31/01/2022, 21:48:47] Got SIGTERM, shutting down Homebridge... [31/01/2022, 21:48:52] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null

I'm not a javascript expert but digging a little into the XmlParser.js file I was able to get the  device variable.  Is the SysAp firmware to old?

Tested version SysAp Firmware 3.0.0.  It didn't work. I then quit the homebridge project and started to add thermostats.
It suddenly started working. However, devices took forever to execute the commands and it stopped working after restarting homebridge

Make sure each device in your home has a name.
Try to login into the free@home web panel and turn on/off a few accessories. Then restart the API. This should hopefully resolve the problem.

Every device had a name and a room assigned to it. And neither turning on and off nor deleting and re-adding the devices helped.
As you can see above, the error occurred when it tried to parse the xml of the SysAp which has no floor and no room assigned to it. I wonder if the SysAp is supposed to be parsed by Function.parseDeviceData since it has some kind of special status

Hello, I wanted to ask such a question, for some reason I do not add curtains to homebirdge for some unknown reason. Moreover, I have several objects and everything works fine on some, and on some curtains are simply not visible. Any suggestions why it might not work ?

anyone resolved this? I had the API running - but now I got this same error
pi@raspberrypi:~ $ node node_modules/freeathome-api/bin/freeathome-api
22/01/2023, 19:31:44 - INFO: Starting free@home API
22/01/2023, 19:31:48 - INFO: Connected as<EMAIL_ADDRESS>22/01/2023, 19:31:48 - INFO: Websocket Server started
22/01/2023, 19:31:48 - INFO: Webserver Started
22/01/2023, 19:31:48 - INFO: Sent Authenticator
22/01/2023, 19:31:48 - INFO: Received Local Key
22/01/2023, 19:31:48 - INFO: Sent New Session Request
22/01/2023, 19:31:48 - INFO: Sent Login SASL Message
22/01/2023, 19:31:48 - INFO: Received SASL Challenge
22/01/2023, 19:31:48 - INFO: Sent SASL Challenge Response
22/01/2023, 19:31:48 - INFO: Received SASL Login Confirmation
22/01/2023, 19:31:48 - INFO: Successfully Authenticated
22/01/2023, 19:31:48 - INFO: Announced Capabilities to System Access Point
22/01/2023, 19:31:48 - INFO: Requested Master Data Structure from System Access Point
22/01/2023, 19:31:52 - INFO: Received Master Update from System Acccess Point
/home/pi/node_modules/freeathome-api/dist/appRunner.js:34
throw up;
^
TypeError: Cannot read properties of undefined (reading 'name')
at XmlParser.parseDeviceData (/home/pi/node_modules/freeathome-api/dist/lib/XmlParser.js:111:106)
at XmlParser.parseMasterUpdate (/home/pi/node_modules/freeathome-api/dist/lib/XmlParser.js:18:21)
at SystemAccessPoint. (/home/pi/node_modules/freeathome-api/dist/lib/SystemAccessPoint.js:326:53)
at Generator.next ()
at /home/pi/node_modules/freeathome-api/dist/lib/SystemAccessPoint.js:8:71
at new Promise ()
at __awaiter (/home/pi/node_modules/freeathome-api/dist/lib/SystemAccessPoint.js:4:12)
at SystemAccessPoint.handleRpcCallResult (/home/pi/node_modules/freeathome-api/dist/lib/SystemAccessPoint.js:305:16)
at SystemAccessPoint. (/home/pi/node_modules/freeathome-api/dist/lib/SystemAccessPoint.js:273:26)
at Generator.next ()
Node.js v19.4.0

Hello @bab200
Please enable debug logging and send me the log to my email address (see GitHub profile).
Set the key "debug" in the config file to "true" (see https://github.com/henry-spanka/freeathome-api/blob/master/config.example.json).
e.g. node node_modules/freeathome-api/bin/freeathome-api > debug.log (run for 30 secs then Ctrl+C)

Assigning a device to a floor but outside any room will result in a crash. The issue has now been fixed in v1.1.3. As a workaround you can also make sure that all devices are placed inside a room.


[RFE] Add option to output results in machine-readable format

It would be nice to get all of the output delivered in JSON or YAML or something else better machine-readable than CSV.

Since you are already creating a document for Opensearch, I imagine it's trivial to provide an option to output the JSON directly.

better machine-readable than CSV.

Curious why CSV doesn't suffice? Can you elaborate why -- seems easy to ingest in many modern tools.

Is the ask to just display json/yaml to stdout?

Checking in on this, haven't heard back...


The access key for the MAUI Maps NuGet package clashes with that of the Platform parameter in the MAUI Class Library template

The access key for the MAUI Maps NuGet package clashes with that of the Platform parameter in the MAUI Class Library template - Needs to be updated to some other key.
The feature will still work even though the same access key is mapped to two different parameters by manually selecting it.

This feature is updated in this release too:
.NET MAUI Project and Item Templates - v<IP_ADDRESS>


CCM: can't send messages from BSC using native tokens for fees

Contract with native fees
npx hardhat messaging Message message:string --fees native

npx hardhat compile --force

npx hardhat deploy --networks goerli_testnet,bsc_testnet

BSC: https://testnet.bscscan.com/address/0x91d800CD2a88cF7E453FfDd29A8E1194BC59AA1f
Goerli: https://goerli.etherscan.io/address/0xa8c98d5B5f20875F42d784485B327CDf8bb3051B
When I'm trying to send a message from BSC to Goerli it fails:
npx hardhat interact --contract 0x91d800CD2a88cF7E453FfDd29A8E1194BC59AA1f --amount 0.1 --network bsc_testnet --destination goerli_testnet --message hello

❌ https://testnet.bscscan.com/tx/0x26339a2852ce8c978592fee23565e7ae7ed620725a1bef1ab847b67ca3fdbf0a
When I'm sending from Goerli to BSC using the same contract, it's fine:
npx hardhat interact --contract 0xa8c98d5B5f20875F42d784485B327CDf8bb3051B --amount 0.1 --network goerli_testnet --destination bsc_testnet --message hello

✅ https://goerli.etherscan.io/tx/0xb2930e88cc0cf58d61597e8abd41e62c3f614bbab8c750b61c57397ffc0c7390
Contract with ZETA fees
The same simple CCM contract with ZETA as fees works just fine both ways.
npx hardhat messaging Message message:string --fees zeta

https://testnet.bscscan.com/address/0x5C1d498E4200402CAAe9c6BFF4e3891A19686599

@andresaiello can you, please, look into this? You suggested that it might be due to lack of liquidity in the BNB/ZETA pool on BSC, but I am able to swap on Pancake without issue.

Update from @andresaiello

1- there was a change on pancake router and they change the interface and is no more the same as uniswap. I have to update the contract for that.
2- the consumer v3 asumes liquidity on univ3 pool, and we only have liquidity on univ2 pool on pancake.

Related: https://github.com/zeta-chain/protocol-contracts/pull/91

Connector-based messaging has been deprecated.


Docker build for Spektate has numerous warnings

Describe the bug:
The Spektate Docker build produces numerous warnings:
...
warning react-scripts-ts > eslint > file-entry-cache > flat-cache ><EMAIL_ADDRESS>CircularJSON is in maintenance only, flatted is its successor.
warning react-scripts-ts > eslint > file-entry-cache > flat-cache > write ><EMAIL_ADDRESS>Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning react-scripts-ts > jest > jest-cli > istanbul-api > istanbul-lib-report ><EMAIL_ADDRESS>Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning react-scripts-ts > jest > jest-cli > prompts ><EMAIL_ADDRESS>Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
warning react-scripts-ts > terser-webpack-plugin > cacache > move-concurrently > copy-concurrently ><EMAIL_ADDRESS>Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning react-scripts-ts > workbox-webpack-plugin > workbox-build > joi ><EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning react-scripts-ts > workbox-webpack-plugin > workbox-build > joi ><EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning react-scripts-ts > workbox-webpack-plugin > workbox-build > joi > topo ><EMAIL_ADDRESS>This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
warning react-scripts-ts > jest > jest-cli > jest-environment-jsdom > jsdom ><EMAIL_ADDRESS>use String.prototype.padStart()
warning react-scripts-ts > jest > jest-cli > jest-environment-jsdom > jsdom ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning react-scripts-ts > @svgr/webpack > @svgr/core > h2x-core > h2x-parse > jsdom ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning react-scripts-ts > ts-loader > micromatch > snapdragon > source-map-resolve ><EMAIL_ADDRESS>Please see https://github.com/lydell/urix#deprecated
warning react-scripts-ts > ts-loader > micromatch > snapdragon > source-map-resolve ><EMAIL_ADDRESS>https://github.com/lydell/resolve-url#deprecated
warning spektate > azure-storage ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning pkg > pkg-fetch ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning pkg > pkg-fetch > unique-temp-dir ><EMAIL_ADDRESS>Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning ts-jest ><EMAIL_ADDRESS>Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning "react-scripts-ts ><EMAIL_ADDRESS>has incorrect peer dependency<EMAIL_ADDRESS>warning " ><EMAIL_ADDRESS>has unmet peer dependency "jest@>=24 <25".
Removing intermediate container 451a6dc414fc
 ---> a1a17021791b
Step 6/22 : RUN yarn global add ts-node --silent
 ---> Running in 6af56106cf59
warning package.json: No license field
warning " ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>...

To Reproduce:
Run the build
Expected behavior:
Zero to minimal warnings

Relevant thread and suggested workaround: https://github.com/yarnpkg/yarn/issues/6672#issuecomment-551136196


Streamlining the process for setting up a local instance of the documentation using Hugo.

Link the issue(s) this pull request is related to.
As a beginner to this project, setting up a local instance using Hugo had me some tweaks to do, so I have added changes in the readme.md file which make it very easy and simple to get a local instance running on any system from the get go.
The changes have been made keeping in mind that the new contributors to the project must have the very first step in their journey, i.e. "Setting up the local instance of the docs" easy and simple without any tweaking being needed.
https://deploy-preview-<pull-request-number>--elated-haibt-1b47ff.netlify.com/

Thanks for the contribution. Before we go any further, we probably need to resolve the EasyCLA error. It looks like the commit is missing your user ID. I think you can find some help in this article.
Also, please restrict this pull request to the changes in the README file.

Hi, thank you so much for your response, do I have to make a new PR now with my credentials added or can I tweak in this itself?

Reviewing the help article, it sounds like it might easier for you create a new PR. Either way, I think you need to make sure you've correctly configured your email address in your local Git client:
https://docs.github.com/en/free-pro-team@latest/github/committing-changes-to-your-project/why-are-my-commits-linked-to-the-wrong-user#commits-are-not-linked-to-any-user


Improve teardown/bringup mechanics

Can now bring up launch files at a set of nodes, in the same way as with the
teardown.
The two classes used to do the launching now have a base class to reduce code
duplication.
Tested on my own machine, but needs testing on the robot to make sure behaviour is the same.

Give it a go on the robot then I will merge.

Tested and working.


Fix Google API gem not being available in prod

This is currently causing an issue where the app cannot start due to the
a failing 'require' statement for this gem.
I, [2019-09-06T09:56:57.666428 #19754]  INFO -- : Refreshing Gem list
/data/vhost/finder-frontend/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require': No such file to load -- google/apis/drive_v3.rb (LoadError)
	from /data/vhost/finder-frontend/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
	from /data/vhost/finder-frontend/shared/bundle/ruby/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'

Search page examples to sanity check:

http://finder-frontend-pr-[THIS PR NUMBER].herokuapp.com/search/all
http://finder-frontend-pr-[THIS PR NUMBER].herokuapp.com/search/research-and-statistics
http://finder-frontend-pr-[THIS PR NUMBER].herokuapp.com/search/news-and-communications?parent=%2Feducation&topic=c58fdadd-7743-46d6-9629-90bb3ccc4ef0
http://finder-frontend-pr-[THIS PR NUMBER].herokuapp.com/drug-device-alerts
http://finder-frontend-pr-[THIS PR NUMBER].herokuapp.com/find-eu-exit-guidance-business
http://finder-frontend-pr-[THIS PR NUMBER].herokuapp.com/find-eu-exit-guidance-business?keywords=eori&order=relevance
http://finder-frontend-pr-[THIS PR NUMBER].herokuapp.com/find-eu-exit-guidance-business?sector_business_area%5B%5D=aerospace&order=topic
http://finder-frontend-pr-[THIS PR NUMBER].herokuapp.com/uk-nationals-living-eu
http://finder-frontend-pr-[THIS PR NUMBER].herokuapp.com/prepare-business-uk-leaving-eu

Other finders

How comes it's suddenly needed?

@DilwoarH it was only merged recently, and all PRs since then have failed the build.


"online help" email is a no-reply address

Over in Discord, https://discord.com/channels/413070382636072960/634106496560398349/1061681174919000194, user Koreller reported that his account got suspended for unknown reasons, and then he got an email that suggested contacting OHM at<EMAIL_ADDRESS>Naturally, emailing that address did not work!
One of those settings is here
https://github.com/OpenHistoricalMap/ohm-website/blob/staging/app/views/users/blocked.html.erb#L11
That's support_email, setting here https://github.com/OpenHistoricalMap/ohm-website/blob/staging/config/settings.yml#L12
But need to see how that is set in our production environment and what email that should be

this came back up in #614
There is no @openhistoricalmap.org email service that I am aware of.
@jeffreyameyer or @1ec5 given OHM's status as a OSM US charter project, do they offer email services?
In theory, I could set up free OHM.org Gmail through Greeninfo's nonprofit account (to which I can add domains and addresses), but I would prefer to have that bit of critical infrastructure owned by OHM proper rather than tying it up with GIN and having to unravel that at some future date.

We made an<EMAIL_ADDRESS>so we can add that to settings.yml and then is ticket would be fixed

This was done with https://github.com/OpenHistoricalMap/ohm-website/pull/240. The change is in https://github.com/OpenHistoricalMap/ohm-website/blob/6b61d2b1c37276d0ad3df6f1231a42a84f4f54a9/config/settings.yml#L12-L13.

@Rub21 can you remind me if changes like this need to be manually changed elsewhere?
Maybe we need to change every instance of<EMAIL_ADDRESS>in this file? https://github.com/OpenHistoricalMap/ohm-deploy/blob/main/values.production.template.yaml#L107

It seems we need to change those values here as well:

values.production.template.yaml#L50
values.staging.template.yaml#L57

These values are used by letsencrypt-prod-issuer (see here). I read somewhere that the email needs to use the same domain that we are using to deploy the ingress. However, it appears that it is actually used to contact us in case the certification expires. let me figure out a bit more.
cc. @batpad

@danrademacher I have changed the email for letsencrypt, and works fine, on the subdomains !

https://github.com/OpenHistoricalMap/ohm-deploy/blob/staging/values.production.template.yaml#L50
https://github.com/OpenHistoricalMap/ohm-deploy/blob/staging/values.staging.template.yaml#L57

There is a  issue on the email, that need to be verified :
E, [2024-04-18T16:56:33.263966 #296] ERROR -- : [ActiveJob] [ActionMailer::MailDeliveryJob] [f72810f4-e6b3-4ec8-9fe2-f037dd812136] Error performing ActionMailer::MailDeliveryJob (Job ID: f72810f4-e6b3-4ec8-9fe2-f037dd812136) from DelayedJob(mailers) in 150.18ms: Net::SMTPFatalError (554 Message rejected: Email address is not verified. The following identities failed the check in region US-EAST-1: OpenHistoricalMap<EMAIL_ADDRESS><EMAIL_ADDRESS>):

I have just added the email in  AWS

@danrademacher could you confirm the verification, AWS ask for 👇

This ticket has been completed; we are now able to use<EMAIL_ADDRESS>now.