Connection with login password

Hello, I'm trying to connect to remote mongo server 2.6.4 like this
mongo:connect([{database, list_to_binary(DB)}, {host, Host}, {port, Port}, {login, list_to_binary(U)}, {password, list_to_binary(P)}])

and getting this error
[error] CRASH REPORT Process <0.376.0> with 1 neighbours crashed with reason: bad argument in call to erlang:iolist_to_binary([{ok.......<<"my_login_here">>......in crypto:hash/2 line 223

Connection like this
mongo:connect([{database, list_to_binary(DB)}, {host, Host}, {port, Port}

works just fine in the same time.
Any ideas?

Problem is in your login variable U. I suppose, that it is a tuple {ok, Login}, so list_to_binary fails. If you get it through application:get_env - put your attention to it's spec.

No I read from the file, so it's not a tuple.
I've tried to put values directly like this
mongo:connect([{database, <<"DB_name">>}, {host, "Host"}, {port, 27017}, {login, <<"login">>}, {password, <<"password">>}])

The result's the same.

What driver version do you use?

It's a legacy branch.
I've tried the same with master and v0.7.3 and got this error
 [error] CRASH REPORT Process <0.276.0> with 1 neighbours exited with reason: bad argument in gen_server:init_it/6 line 330
** exception exit: badarg

Version of erlang - 17.5

I am trying to reproduce this.
There is no errors on mongo3+, so I am installing 2.6 mongo

fixed


tblextr.py: missing import of commands

running rocprofiler:
Traceback (most recent call last):
  File "/opt/rocm-3.5.1/rocprofiler/bin/tblextr.py", line 466, in <module>
    metadata_gen(sysinfo_file, '/opt/rocm/bin/rocminfo')
  File "/opt/rocm-3.5.1/rocprofiler/bin/tblextr.py", line 69, in metadata_gen
    status, output = commands.getstatusoutput(sysinfo_cmd + direct_str + sysinfo_file)
NameError: global name 'commands' is not defined

import commands needs to be added to metadata_gen function in tblextr.py

What branch are you using?
Could you try roc-3.5 branch?

I'm using amd-master.
I get a cmake error when using the roc-3.5 branch:
> cmake -DCMAKE_INSTALL_PREFIX=/opt/rocm-3.5.1 ../rocprofiler
----------------NBit: 64
----------Build-Type: release
------------Compiler: /opt/rh/devtoolset-7/root/bin/g++
----Compiler-Version: 7.3.1
-----HSA-Runtime-Inc: /opt/rocm/include/hsa
-----HSA-Runtime-Lib: /opt/rocm/lib
----HSA_KMT_LIB_PATH: /opt/rocm/lib64
-------ROCM_ROOT_DIR: /opt/rocm
-----CMAKE_CXX_FLAGS: -std=c++11 -Wall -Werror -Werror=return-type -fexceptions -fvisibility=hidden -fno-math-errno -fno-threadsafe-statics -fmerge-all-constants -fms-extensions -fmerge-all-constants -Werror=unused-result -fPIC -m64  -msse -msse2
---CMAKE_PREFIX_PATH: /opt/rocm/include/hsa:/opt/rocm
---------GPU_TARGETS:
-- LIB-VERSION: 1.0.0
-- LIB-VERSION STRING: 1.0.0
CMake Error at CMakeLists.txt:90 (MESSAGE):
  Profiling API header not found.  Tracer integration disabled.  Use
  -DPROF_API_HEADER_PATH=<path to prof_protocol.h header>

Something strange. If you check roc-3.5 branch you will see that 'metagen_gen' function uses 'subprocess' python module:
https://github.com/ROCm-Developer-Tools/rocprofiler/blob/roc-3.5/bin/tblextr.py#L76
I will check with packaging team what was pacckaged in 3..5.1.

I had to add  /opt/rocm/roctracer to the CMAKE_PREFIX_PATH to get it to work.
Do I need to use the roc-3.5 branch of roctracer as well?

Do you have roctracer installed?
You can use the cmake parameter -DPROF_API_HEADER_PATH :
-DPROF_API_HEADER_PATH=/opt/rocm/roctracer/icnlude/ext

Yes, please use roc-3.5 branch of roctracer as well.

there's a non-fatal error in the cmake step of roctracer:
+ /opt/rocm/llvm/bin/clang -cl-std=CL2.0 -include /opt/rocm/llvm/lib/clang/11.0.0/include/opencl-c.h -Xclang -mlink-bitcode-file -Xclang /opt/rocm/lib/bitcode/opencl.amdgcn.bc -Xclang -mlink-bitcode-file -Xclang /opt/rocm/lib/bitcode/ockl.amdgcn.bc -Xclang -mlink-bitcode-file -Xclang /opt/rocm/lib/bitcode/ocml.amdgcn.bc -target amdgcn-amd-amdhsa -mcpu=gfx900 -mno-code-object-v3 /home/leggett/install/roctracer/roctracer/test/hsa/test/dummy_kernel/dummy_kernel.cl -o /home/leggett/install/roctracer/bld/gfx900_DummyKernel.hsaco
fatal error: cannot open file '/opt/rocm/lib/bitcode/opencl.amdgcn.bc': No such file or directory
1 error generated.

opencl.amdgcn.bc is installed in /opt/rocm/lib. made a symlink, and it proceeded to completion.

using the rocm-3.5 branch fixed this issue.


Make a "template" eventure

Create a template eventure that others can easily use as the basis of writing their own versions, and update contribution instructions to show how to use this, and how to contribute it back.

See [stories/onceuponatime.html](stories/onceuponatime.html]


[Bug]: Ambiguity in how Simple Fusion Retriever handles de-duplicating nodes

Bug Description
The current implementation of Simple Fusion Retriever includes,
def _simple_fusion(
    self, results: Dict[Tuple[str, int], List[NodeWithScore]]
) -> List[NodeWithScore]:
    """Apply simple fusion."""
    # Use a dict to de-duplicate nodes
    all_nodes: Dict[str, NodeWithScore] = {}
    for nodes_with_scores in results.values():
        for node_with_score in nodes_with_scores:
            text = node_with_score.node.get_content()
            all_nodes[text] = node_with_score

    return sorted(all_nodes.values(), key=lambda x: x.score or 0.0, reverse=True)

The all_nodes dictionary is useful in handling the duplicate nodes. But the scores are not handled properly, all_nodes[text] = node_with_score just replaces the prev_node with cur_node. But ideally you should take the maximum of prev_node and cur_node score when replacing.
Ideally i am expecting the implementation like this,
def _simple_fusion(
    self, results: Dict[Tuple[str, int], List[NodeWithScore]]
) -> List[NodeWithScore]:
    """Apply simple fusion."""
    # Use a dict to de-duplicate nodes
    all_nodes: Dict[str, NodeWithScore] = {}
    for nodes_with_scores in results.values():
        for node_with_score in nodes_with_scores:
            text = node_with_score.node.get_content()
            if(text in all_nodes):
                score = max(node_with_score.score,all_nodes[text].score)
                all_nodes[text].score = score
            else:
                all_nodes[text] = node_with_score

    return sorted(all_nodes.values(), key=lambda x: x.score or 0.0, reverse=True)

Version
0.10.14
Steps to Reproduce
Explained in Bug Description
Relevant Logs/Tracbacks
No response

@Kirushikesh yea thats fair -- feel free to make a PR for this


base_url not working

Although calls directly to the azure webapp URL are working, the api should be behind the APIM and therefore accept calls to https://api.rcpch.ac.uk/nhs-organisations/v1/ the same as https://rcpch-nhs-organisations.azurewebsites.net/
Currently this returns a 404, whereas the azure URL works

I think this is because there is an Open API spec registered for that API which does not include a root endpoint (internal forum link)


Don't suggest that users file a bug report unless they are using the newest version

Is your feature request related to a problem? Please describe.
Currently, aqtinstall requests that users file a bug report any time that it raises an exception that it cannot recover from. Quite frequently, we get bug reports for bugs that we have already fixed. It would be nice if aqtinstall would only display the PLEASE FILE A BUG REPORT message when the user is using the most recent version of aqtinstall.
Describe the solution you'd like
When an exception is raised that aqtinstall does not know how to handle, aqtinstall should first check with PyPI to find out if there's a newer version available. If there is, aqtinstall should print PLEASE USE THE NEWEST AQTINSTALL instead. It should only request that users file a bug report if aqtinstall is already on the newest version.
Describe alternatives you've considered
Add an empty checkbox to the "Bug Report" issue template that asks users if they are using the newest version of aqtinstall. Use a bot to automatically close any bug reports where the user has not checked the box.
Additional context
None

You can fetch a list of releases via JSON api here: https://pypi.org/pypi/aqtinstall/json

People in certain parts of the world may not have easy access to PyPI.
Here are two result pages of the PING test to "pypi.org":

DateTime
Screenshot on Archive Today
URL to Archive Today

6 May 2023 17:07:39 UTC

https://archive.today/1ywgd

14 May 2023 04:51:49 UTC

https://archive.today/9L03A

On the webpage (open the URL, not the screenshot), you can find the word "美国", the USA, has the "<1ms" latency. It's good, I think.
Thanks, GFW (Great Firewall - Wikipedia).

Good point. There are also these two JSON apis that might work:

https://api.github.com/repos/miurahr/aqtinstall/tags
https://api.github.com/repos/miurahr/aqtinstall/releases

We could make a "best effort" attempt: check either pypi or github and use the other as a fallback. If both attempts fail, maybe it makes sense to print the "File a bug report" message anyway?

We could make a "best effort" attempt: check either pypi or github and use the other as a fallback. If both attempts fail, maybe it makes sense to print the "File a bug report" message anyway?

Agree.

The procedure could be as follows:

Error occurs.
Check version within a limited time.
If the running aqtinstall is old, say "PLEASE USE THE NEWEST AQTINSTALL AND TRY AGAIN".
If it's the latest version, say "please file a bug report".
If no version info obtained, say "please check the GitHub page to see if there is newer version and try again... if the error persists, file a bug report".


Detect and process all entities in an update object.

Happy to discuss and change before any merging! Some TODO/Readmes left in.

Some extra important commits there and I hope a little bit of a clean up.
I'm very slow at this, but that bug took me a while to work out what was happening.

Let me take it from here :)
Thanks!


📝[Docs]: Enhance Resources for Machine Learning Algorithms and Add Generative AI

Is there an existing issue for this?

[X] I have searched the existing issues

Issue Description
This issue suggests improvements to the documentation by adding essential Generative AI resources and filling in some missing libraries and tools. These updates will make the repository more comprehensive and valuable for the machine learning community.
Suggested Change
#Missing Courses:
While some ML resources are included, notable courses such as Andrew Ng's Machine Learning course on Coursera and other popular ML courses (like Generative AI, Transformers, GANs) are absent.
Add Generative AI Content:
Generative Adversarial Networks (GANs): Include resources for learning GANs.
Variational Autoencoders (VAEs): Add tutorials and implementation examples.
Transformers (GPT, BERT): Add resources covering transformers for NLP and generative tasks.
Diffusion Models: Include resources on diffusion models for image generation.
Missing Libraries:
Add SciPy for scientific computation.
Add OpenCV for image processing.
Rationale
Generative AI has gained enormous traction in machine learning, with applications in text generation, image creation, and more. Adding this content will ensure the repository is up-to-date with the latest trends in AI and ML. Including missing libraries like SciPy and OpenCV will also enrich the overall learning experience.
Additional Note:
If possible, please label this issue as GSSoC'24 and Hacktoberfest.
Urgency
Medium
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@sanjay-kv


feat: disable mkcert default install

Depends on update on template:

https://github.com/kubefirst/gitops-template/pull/244

Solves:

#920
#912

Other changes:

Make mkcert -install an user action, to prevent need of sudo access to installer
guides user on how to install cert
update some var names to follow golang conventions

Signed-off-by: 6za<EMAIL_ADDRESS>

If you want to explore more mkcert possibilities, this dockerfile can help:
FROM --platform=linux/amd64 buildpack-deps:bullseye-scm
RUN apt-get update && \
    apt-get install -y unzip curl jq vim unzip less wget libnss3-tools sudo \
     && rm -rf /var/lib/apt/lists/*
RUN useradd -ms /bin/bash developer
#USER developer
WORKDIR /home/developer
RUN  wget https://github.com/FiloSottile/mkcert/releases/download/v1.4.4/mkcert-v1.4.4-linux-amd64
RUN chmod +x mkcert-v1.4.4-linux-amd64 && mv mkcert-v1.4.4-linux-amd64 mkcert

Based on tests:

mkcert -install can be executed before or after certs are generated
mkcert -CAROOT shows where the root cert is stored, files added to the trust chain of users OS.
mkcert -key-file key.pem -cert-file cert.pem example.com *.example.com will generate certificates and return exit 0 even if the keystore is not trusted.
Generate and Trust are 2 different actions

New user warning:
Notes:
  Kubefirst generated certificates using 'mkcert' for your convenience
   If you have root access you could run:
  .../_tmp_k3d_user/.k1/tools/mkcert -install
  This will update yours OS truststore allowing our certs to be trusted
  by your browser and more smooth expirience
  Learn more at: https://github.com/FiloSottile/mkcert#changing-the-
  location-of-the-ca-files

Sample of certificate generated:

  ----------------------------------------------------------------------
  Cluster "kubefirst" is up and running!:
  This information is available at $HOME/.kubefirst

  Access the kubefirst-console from your browser at:
  https://kubefirst.localdev.me

  Press ESC to leave this screen and return to your shell.

  Notes:
    Kubefirst generated certificates to ensure secure connections to
    your local deployment. Even if your browser warn you about the
    origin, you can use Kubefirst without any issue.
    If you want, you can update your OS trust store by running
    this command and pass your root password:
      /Users/user/.k1/tools/mkcert -install
    Details:
    https://github.com/FiloSottile/mkcert#changing-the-location-of-the-ca
  -files
  --- Github -----------------------------------------------------------


Any plans on supporting Edge?

I don't think rtcninja will handle the pseudo-ORTC API implemented by Edge.


Add about text for Oliver

Adds a little about text for myself at about/oliver. I hope it is not too long...

Very well written! Thanks!!


Obfuscation errors?

AnimatedEntityModel.java implements render() and setRotationAngles() obviously, but the bytecode doesn't match the source. Those methods are obfuscated when I look at the bytecode. So when I try to extend that class, It says that I still have to implement the said methods.

https://gist.github.com/lilypuree/59cb9b44d4eb608b2f8039b7425b905d
Here's the error when I launch geckolib in a dev environment


When Client and Server items are in some certain sizes, server.CreateSetupMessage raise ValueError: basic_string::resize

Description
When client items size and server items size are in certain values, the PSI code throw basic_string::resize Value Error.
For example, using the tests.py https://github.com/OpenMined/PSI/blob/master/private_set_intersection/python/tests.py#L28
if we change the client items and server items range into the following values:
client_items = ["Element " + str(i) for i in range(333334)]
server_items = ["Element " + str(2 * i) for i in range(397)]
You should be able to get the exception
File ~/nvflare-env2/lib/python3.8/site-packages/openmined_psi/__init__.py:140, in server.CreateSetupMessage(self, fpr, num_client_inputs, inputs)
    129 def CreateSetupMessage(
    130     self, fpr: float, num_client_inputs: int, inputs: List[str]
    131 ) -> ServerSetup:
    132     """Create a setup message from the server's dataset to be sent to the client.
    133     Args:
    134         fpr: the probability that any query of size `num_client_inputs` will result in a false positive.
   (...)
    138         A Protobuf with the setup message.
    139     """
--> 140     interm_msg = self.data.CreateSetupMessage(fpr, num_client_inputs, inputs).save()
    141     msg = ServerSetup()
    142     msg.ParseFromString(interm_msg)

ValueError: basic_string::resize

How to Reproduce

check the code in  https://github.com/chesterxgchen/psi_mpc_related/blob/main/psi/psi_intersect.ipynb
command Cell No. 5 should re-produce the error.
The code in this notebook is essentially the same as   https://github.com/OpenMined/PSI/blob/master/private_set_intersection/python/tests.py#L28

pip install the openmined.psi

start the jupyter notebook with https://github.com/chesterxgchen/psi_mpc_related/blob/main/psi/psi_intersect.ipynb

execute the import the psi packages, and def dup() function, then run cmd 5, to see error

Expected Behavior
No error
Screenshots

System Information

OS: Ubuntu
OS Version: 20.04
Openmined PSI version:  openmined.psi-0.3.5 ( directly downloaded from Pipy)
Language Version: python 3.8.16 (default, Dec  7 2022, 01:12:06)
Package Manager: Version pip 22.3.1
Browser (if applicable):  NA
Browser Version (if applicable): NA

Additional Context
We experience this issue while testing our openmined-based PSI solution

This is a bug with the GCS data structure and having an extremely low fpr. The data structure enum (GCS, BloomFilter) was added much later and was never exposed as a configurable parameter in Python's binding for CreateSetupMessage. We will publish a new release to allow you to specify BloomFilter which temporarily solves the underlying problem.

This has been fixed in https://github.com/OpenMined/PSI/releases/tag/v1.0.1

Yep, looks like smaller false positive rate causes the backing GCS datastructure to try and allocate too much memory. This is 'fixed' in the sense that you must use the psi.DataStructure.BLOOM_FILTER enum and pass it into CreateSetupMessage as the last argument.

Ah yes, I put the param outside of the function. Oops.

Looking at the example code, it looks like the client has many more values than the server. This will yield much higher chances of receiving a false positive value in return and isn't the intended way of how to use this library.
The protocol is asymmetric in the sense that both client and server sets can be different sizes, but the real use case is for when the client has much fewer items in its set and wants to check against a server with many more items in its set.
If you flip the client and server set sizes, you should get more reasonable results in expectation of the FPR you've set.

I see, yeah this is a bug. I'll investigate.

There was a bug that produced more erroneous results than normal; however, it is quite possible for false positives to manifest themselves in the form of intersection index values that are out of range of the original client set. Checkout the my comments in the PR to handle those cases.


UNABLE TO UPLOAD STICKERS IN TEAMS WITH CUSTOM APP

Hi
I am not able to upload stickers in custom app in teams. Please help to resolve this so I can use this feature.

seems a bug in the New Teams client.
But you can upload by right click

Thank you for your help this option is working…
From: New Future @.***
Sent: Friday, 26 August 2022 7:52 AM
To: NewFuture/custom-stickers-teams-extension
Cc: Aliasgar Happawala; Author
Subject: Re: [NewFuture/custom-stickers-teams-extension] UNABLE TO UPLOAD STICKERS IN TEAMS WITH CUSTOM APP (Issue #83)
seems a bug in the New Teams client.
But you can upload by right click
[image]https://user-images.githubusercontent.com/6290356/186813670-587c7f86-0b2b-4c59-a2a0-b12c08aba225.png
—
Reply to this email directly, view it on GitHubhttps://github.com/NewFuture/custom-stickers-teams-extension/issues/83#issuecomment-1228022054, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2XHTNNBY5Y5MNTBWNAG2R3V3A5N5ANCNFSM57TJPQSQ.
You are receiving this because you authored the thread.Message ID: @.***>
Aliasgar Happawala | Senior Manager - IT
T: +971 4 4151737  | M: +971 56 1183233
[Facebook]https://www.facebook.com/zulekhahospitals   [LinkedIn] https://www.linkedin.com/company/zulekha-hospitals-llc     [Twitter] https://twitter.com/zulekhahosptls  [Instagram] https://www.instagram.com/zulekhahospitals        [YouTube] https://www.youtube.com/user/Zulekhahospital        [Whatsapp] https://api.whatsapp.com/send?phone=971600524442
[MainLogo]<www.zulekhahospitals.com>    [https://www.zulekhahospitals.com] https://www.zulekhahospitals.com
zulekhahospitals.com http://www.zulekhahospitals.com zulekhacareers.com http://www.zulekhacareers.com alexishospital.comhttp://www.alexishospital.com
Download our Application
@.@.https://apps.apple.com/ae/app/zulekha-hospitals/id914494489
Disclaimer: This message is confidential and is intended solely for the addressee, and may also be privileged. If you are not the intended recipient please delete this email and inform the sender as soon as possible. Any unauthorized disclosure; copying, distribution or use of this message is strictly prohibited, and if done, will result in strict legal action. This message is not guaranteed to be complete or error free. No liability is assumed for any errors and/or omissions in the contents of this message.

we change the entry in v2 version


Minor fix: variable name spelling in src/platform/device.gni

This PR fixes a spelling error in the src/platform/device.gni file.
Problem
In src/platform/device.gni a sequence of if statements assigns the internal variable _chip_device_layer to different values depending on the chip_device_platform variable. One of the assignments has a bug: it misspells the variable name that is being assigned, _chip_device_layter (incorrect) instead of _chip_device_layer (correct).
Change overview
This PR fixes the spelling error in src/platform/device.gni.
Testing
No testing done.

 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.


fix(a11y): FCC logo link

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either on my machine.

Closes #XXXXX

There are two issues with the FCC logo link at the top of every page. First, the svg has a label of "freeCodeCamp Logo" and the link itself has sr-only text of "freeCodeCamp.org", so screen reader users will hear "freeCodeCamp Logo freeCodeCamp.org link" which is unnecessary duplication. Second, the label for the svg should not refer to itself as a "logo". Since this svg is being used as the link text it should only include the text needed for the link to describe where it is pointing to. In this case, the link is pointing to freeCodeCamp.org, not a logo of freeCodeCamp.org.
Hence, the link does not need any extra sr-only text since it can use the svg's label as the link text, and that label should just be "freeCodeCamp.org".

more precisely, the link will take you to freecodecamp.org/learn if you click on it on the english websites.
For all other languages, the link would be freecodecamp.org/lanugage/learn e.g. freecodecamp.org/italian/learn.
We have extracted a lot of the strings from our UI to facilitate localization. We could use one of the following solutions:

use the description of the page that the logo is linking  and have it translated to different languages.
make a function that turns the link to the desired length for readability and set it to  aria-label.

The logo link takes you to the same page as the "Curriculum" link in the main menu button, so really they should use the same link text (or very similar) since they go to the same place. Thus, the link text for the logo link should probably read "freeCodeCamp Curriculum" for assistive technology.

sounds good, we could add a key for the english in this file for fcc-curriculum and remove fcc-logo if it is no longer used.

They'll get automatically updated in the nightly upload/download flow.


Conflicting Information - Need clarification about deployment

Clarification needed about the deployment of Staged Rollout.
Under the PTA section:
https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-pta-quick-start#step-2-enable-the-feature
NOTE: the first agent is always installed on the Azure AD Connect server itself as part of the configuration changes made in the User Sign In section of the Azure AD Connect tool.  You can enable Pass-through Authentication on the Azure AD Connect primary or staging server. It is highly recommended that you enable it from the primary server.
But under this page, it states:
Identify a server that's running Windows Server 2012 R2 or later where you want the pass-through authentication agent to run.
Do not choose the Azure AD Connect server
What would be the recommendation to deploy, going from a Federation to use Pass-Though Auth deployed via a Staged approach?

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

ID: 3f2a7330-82fa-9c0d-0f34-b2a99ef13c64
Version Independent ID: d941f435-3443-02a1-57c0-7f4173173249
Content: Azure AD Connect: Cloud authentication via staged rollout
Content Source: articles/active-directory/hybrid/how-to-connect-staged-rollout.md
Service: active-directory
Sub-service: hybrid
GitHub Login: @billmath
Microsoft Alias: billmath

@mybm3w ,  Thanks for raising the issue.We will investigate the issue and update you.

@mybm3w For a staged deployment, you should use a dedicated server (other than AD Connect) for installing the PTA agent.
This is primarily because you are not completely doing a cut-over from ADFS to PTA yet. So, We did not want the customers to change any configuration settings on the AD Connect server directly while testing through staged rollout.
If you are planning to do a cut over completely, then the first agent will automatically be deployed on the AD Connect server.

@mybm3w We have not heard from you in a while. We will now proceed to close this thread. If you have further questions, please tag me in the comments and I will gladly continue the conversation.


Mesos service script missing \

Basic info
To make sure that we are on the same page:

Kernel: Linux mesos1 3.18.21 #1-NixOS SMP Thu Jan 1 00:00:01 UTC 1970 x86_64 GNU/Linux
System: 16.09pre78722.11c486c (Emu)
Nix version: nix-env (Nix) 1.11.2
Nixpkgs version: "15.09.1119.f6d1666"

Describe your issue here
I'm attempting to use nixops to deploy a mesos cluster. However, I noticed that the produced init script is missing a backslash.
This is the produced service script.
[Unit]
After=network-interfaces.target
Description=Mesos Master

[Service]
Environment="LOCALE_ARCHIVE=/nix/store/0b0y9jz2b1q0hlf40p50ygrj2vhbk0fq-glibc-locales-2.23/lib/locale/locale-archive"
Environment="PATH=/nix/store/95wmyhk0y60r09b98l6v4vswv5m7xm4q-coreutils-8.25/bin:/nix/store/zcxyd6kp9hky1hici2bmdlx0zhnwf45p-findutils-4.4.2/bin:/nix/store/y50jbamh4iw1nhgyi3xdxg14fd8hslpg-gnugrep-2.22/bin:/nix/store/wgy9kf7z23wd422nirlylq0whhy49ipw-gnused-4.2.2/bin:/nix/store/ncx9b20bpm584kbrp2gvzmdvsgvmgj2c-systemd-229/bin:/nix/store/95wmyhk0y60r09b98l6v4vswv5m7xm4q-coreutils-8.25/sbin:/nix/store/zcxyd6kp9hky1hici2bmdlx0zhnwf45p-findutils-4.4.2/sbin:/nix/store/y50jbamh4iw1nhgyi3xdxg14fd8hslpg-gnugrep-2.22/sbin:/nix/store/wgy9kf7z23wd422nirlylq0whhy49ipw-gnused-4.2.2/sbin:/nix/store/ncx9b20bpm584kbrp2gvzmdvsgvmgj2c-systemd-229/sbin"
Environment="TZDIR=/nix/store/ahfhgqrn621xs458dx8wp9lxr66fm609-tzdata-2015g/share/zoneinfo"

ExecStart=/nix/store/9hlhf66izzahsl293b4n5cmsibdrhm2y-mesos-0.27.1/bin/mesos-master \
  --port=5050 \
  --zk=zk://zookeeper1:2181,zookeeper2:2181,zookeeper3:2181/mesos
 --registry=replicated_log --quorum=2 \
  --work_dir=/var/lib/mesos/master \
  --logging_level=INFO \

ExecStartPre=/nix/store/b6xzr9imi35sjdzbf2cfaygpv8n55fxy-unit-script/bin/mesos-master-pre-start
PermissionsStartOnly=true
Restart=on-failure

Expected result
ExecStart=/nix/store/9hlhf66izzahsl293b4n5cmsibdrhm2y-mesos-0.27.1/bin/mesos-master \
  --port=5050 \
  --zk=zk://zookeeper1:2181,zookeeper2:2181,zookeeper3:2181/mesos \
 --registry=replicated_log --quorum=2 \
  --work_dir=/var/lib/mesos/master \
  --logging_level=INFO \

Actual result
ExecStart=/nix/store/9hlhf66izzahsl293b4n5cmsibdrhm2y-mesos-0.27.1/bin/mesos-master \
  --port=5050 \
  --zk=zk://zookeeper1:2181,zookeeper2:2181,zookeeper3:2181/mesos
 --registry=replicated_log --quorum=2 \
  --work_dir=/var/lib/mesos/master \
  --logging_level=INFO \

Note the missing \ at the end of --zk=zk://zookeeper1:2181,zookeeper2:2181,zookeeper3:2181/mesos
Steps to reproduce
  mesos1 =
    { config, pkgs, ... }:
    { services.mesos.master.enable = true;
      services.mesos.master.zk = ''
        zk://zookeeper1:2181,zookeeper2:2181,zookeeper3:2181/mesos
      '';
      services.mesos.master.quorum = 2;

      services.marathon.enable = true;
      services.marathon.master = ''
        zk://zookeeper1:2181,zookeeper2:2181,zookeeper3:2181/mesos
      '';
      services.marathon.zookeeperHosts = [ "zookeeper1:2181" "zookeeper2:2181" "zookeeper3:2181" ];

      networking.firewall.allowedTCPPorts = [ 5050 8080 ];
    };

Is the script I am using to describe the server, and the following is what I am using for deployment.
let
  vbox =
    { config, pkgs, ... }:
    { deployment.targetEnv = "virtualbox"; };
in
{
  zookeeper1 = vbox;
  zookeeper2 = vbox;
  zookeeper3 = vbox;
  mesos1 = vbox;
  mesos2 = vbox;
  mesos3 = vbox;
}

cc @kevincox

The problem is that your config has a newline after the url. Please don't have any whitespace around it.
If you want to be a little hacky you could add the backslash in your config but I would recommend just removing the whitespace, in particular the newline.

That did seem to fix it. Thank you!


Different ID object property name and document field in 2.0

BC Break Report

Q
A

BC Break
yes

Version
2.0.0-alpha1

Summary
I don't seem to be able to use an ID name that is different in the mapped object and the document field anymore.
Previous behavior
In 1.x we used <field name="id" fieldName="companyId" type="string"/>
Current behavior
In 2.0, the name property isn't allowed anymore and I can't find a replacement for it.
 The field wasn't even an ID field before. It was just called id. Still, this might affect people who called their IDs something other than id before. If that was even possible.


可以一打开网页不需要点击动作自动复制内容到剪贴板吗？？

Minimal example

Fork this JSFiddle and reproduce your issue.

Expected behaviour
I thought that by going to the page '...' and pressing the button '...' then '...' would happen.
Actual behaviour
Instead of '...', what I saw was that '...' happened instead.
Browsers affected
I tested on all major browsers and only IE 11 does not work.

No.

if the translation is correct, as @ogonkov said is not possible for the button to click itself
due to security reasons

if the translation is correct, as @ogonkov said is not possible for the button to click itself
due to security reasons


Add gasless support for thirdweb template

Add a way to add a gasless support for the thirdweb template.

@warengonzaga, please open a PR to update the example if you still want this.


setup.cfg in version 0.3 wrongly mentions setuptools in install_requires?

cssselect2-0.3 version does not seem to be using setuptools at runtime, but it's mentioned in install_requires in setup.cfg

Hi!

cssselect2-0.3 version does not seem to be using setuptools at runtime, but it's mentioned in install_requires in setup.cfg

It was actually needed for the installation, I’m not sure that having it in install_requires is needed, so you’re probably right.
By the way, the current master branch doesn’t use setuptools anymore, I think that we can close this issue as it will be solved when the next version is released. What do you think?

Great, thanks. I'll close the issue then!


Update eclipse-{cpp,ide,java,jee,modeling,php,ptp,rcp} to 4.5.2.

Thank you for the contribution. It was merged directly as 48804d20de2bcfba633aa9c21ce003d37bb1b206 to keep commit history cleaner. Your contribution is still credited to you.


feat: adding support for authentication type on UserAuthorizer

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[ ] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[x] Ensure the tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> ☕
The change basically following the logic that NodeJS change: https://github.com/googleapis/google-auth-library-nodejs/pull/1814
The key point is telling the client how are the UserAuthorizer going to provide auth with token URI.
Our current way is to have client_secret sending as part of the post url parameter. The STS endpoint won't allow that and they are not accepting client_secret field. Instead, the STS is using basic auth which takes a base64 encoding of client_id:client_secret.
Here the change is to provide a parameter to UserAuthorizer which auth from #RFC we are using and set the POST (Current way) as default.
Then in the implementation, when sending the token request, we apply a basic auth header if the authentication type is set to BASIC.
If you write sample code, please follow the samples format.

The library methods here return UserCredentials. Is this compatible with BYOID? We have ExternalAccountAuthorizedUserCredentials for BYOID.

ExternalAccountAuthorizedUserCredentials won't need any changes to have the capability of BYOID. Cloud Code can choose this one if they want to switch.
Per the sync with Cloud Code, they currently using UserAuthorizer for existing flow, what we do is just adding the capability to UserAuthorizer calling token endpoint with basic auth header.

The library methods here return UserCredentials. Is this compatible with BYOID? We have ExternalAccountAuthorizedUserCredentials for BYOID.

ExternalAccountAuthorizedUserCredentials won't need any changes to have the capability of BYOID. Cloud Code can choose this one if they want to switch. Per the sync with Cloud Code, they currently using UserAuthorizer for existing flow, what we do is just adding the capability to UserAuthorizer calling token endpoint with basic auth header.

The method you've updated here returns UserCredentials. This is not compatible with the BYOID flow.

The library methods here return UserCredentials. Is this compatible with BYOID? We have ExternalAccountAuthorizedUserCredentials for BYOID.

ExternalAccountAuthorizedUserCredentials won't need any changes to have the capability of BYOID. Cloud Code can choose this one if they want to switch. Per the sync with Cloud Code, they currently using UserAuthorizer for existing flow, what we do is just adding the capability to UserAuthorizer calling token endpoint with basic auth header.

The method you've updated here returns UserCredentials. This is not compatible with the BYOID flow.

UserCredentials is holding clientId, tokenServerUri, refreshToken, access_token etc. That's all the user wants.
And during the authentication flow. Now with modification. We have the generate auth URL done inside the getCredentialsFromCode with the addtionalParameters properly set. That will give the auth url we need, then we make the http request to sts.googleapis.com/v1/oauthtoken and exchange the access token. The access token is going to be set in the property of UserCredentials. And this will be return to the user agent (Cloud Code in our case).
Maybe this is not the same flow with our existing BYOID flow. I believe the flow is still work as help the UserAuthorizer class able to get the access token with minimum changes.


Media3 Transformer: Support mediaStoreOutputOptions  when calling transformer.start()

When working with Media3 Transformer, a transformation on a video is started by transformer.start(editedMediaItem, outputPath), but it would be more convenient if transformer.start() was also able to take in MediaStoreOutputOptions instead of a String outputPath.
This would be similar to how CameraX starts video recordings (https://developer.android.com/training/camerax/video-capture#configure-and-create-recording):
// Create MediaStoreOutputOptions for our recorder
val name = "CameraX-recording-" +
        SimpleDateFormat(FILENAME_FORMAT, Locale.US)
                .format(System.currentTimeMillis()) + ".mp4"
val contentValues = ContentValues().apply {
   put(MediaStore.Video.Media.DISPLAY_NAME, name)
}
val mediaStoreOutput = MediaStoreOutputOptions.Builder(this.contentResolver,
                              MediaStore.Video.Media.EXTERNAL_CONTENT_URI)
                              .setContentValues(contentValues)
                              .build()

// 2. Configure Recorder and Start recording to the mediaStoreOutput.
val recording = videoCapture.output
                .prepareRecording(context, mediaStoreOutput)
                .withAudioEnabled()
                .start(ContextCompat.getMainExecutor(this), captureListener)

If this request is not prioritized, it would be useful to know what the best way is to work with a filepath and MediaStoreOutput. As in, how can the app take the file path and feed that into MediaStore so that the newly created file is also stored with the other media items of the app?

Thanks for the request. We will look into it. For the current implementation, we are writing data using MediaMuxer which means it will be necessary to map onto a path or file descriptor eventually (used here).

Is there any update about this request?
I set outfile path to that of Download directory instead of cache. Its not getting saved for me in latest 1.3.1 version
private fun createExternalDirectoryFile(fileName: String): File {
        val downloadsDirectory = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS)
        val file = File(downloadsDirectory, fileName)
        check(!(file.exists() && !file.delete())) { "Could not delete the previous export output file" }
        check(file.createNewFile()) { "Could not create the export output file" }
        return file
    }

Do I need to get storage permissions ?

Yes, you need storage permissions to save the output file. But that would also be the case even if MediaStoreOutputOptions was used instead.
Was this working for you before the 1.3.1 version?

Yes, you need storage permissions to save the output file. But that would also be the case even if MediaStoreOutputOptions was used instead.
Was this working for you before the 1.3.1 version?

I updated my code base yesterday to bump version to 1.3.1 (touching it after few months). Output is never saved in Downloads directory now. Previously in Dec 2023, I was able to save. Let me also double check my code as with storage permissions it was giving me permission denied error https://github.com/hassanabidpk/Media3Sample/blob/devfest-2023/app/src/main/java/com/hassan/media3sample/TransformerActivity.kt
I was using it to demo at Devfest 2023 events.

Just installed fresh sample (demo-transformer) again on Android 14 device and it crashed in export process

Thanks for testing and reporting back, I'll see if I can reproduce.

@hassanabidpk We haven't been able to reproduce this.
Would you be able to see if it's still reproducible on the latest demo-transformer sample with the main branch?


Add ::Extend() method

library(arrow, warn.conflicts = FALSE)
#> See arrow_info() for available features

Array$create(as.difftime(123, units = "secs"))
#> Array
#> <duration[s]>
#> [
#>   123
#> ]
Array$create(as.difftime(123, units = "mins"))
#> Array
#> <duration[s]>
#> [
#>   7380
#> ]

Created on 2021-12-10 by the reprex package (v<IP_ADDRESS>00)


Isn't this incorrect.

" Virtual Network (VNet) service endpoint provides secure and direct connectivity to Azure services over an optimized route over the Azure backbone network. "
I remember reading Private Endpoints documentation, exactly contradicting the idea.
If I remember reading it correctly the whole idea of the private endpoint is it goes through the Azure backbone network and exposes a private IP. At the same time, Service Endpoint used a public endpoint to reach the Azure service.  Which means it exits the Azure Backbone.
Pardon me if I am wrong.  But I think it is a crucial point to revisit and rewrite so the public who is reading this have a clear idea.
[Enter feedback here]

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

ID: 1eb0407d-f4a5-6059-488d-fd082915c675
Version Independent ID: 7c2fb429-743c-aea0-f1d5-de6dc2e62e8e
Content: Azure virtual network service endpoints
Content Source: articles/virtual-network/virtual-network-service-endpoints-overview.md
Service: virtual-network
GitHub Login: @sumeetmittal
Microsoft Alias: sumi

@D-Moonesinghe
Thanks for your feedback! We will investigate and update as appropriate.

Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.

Thank you for you dedication to our documentation.
Unfortunately, we have been unable to review this issue in a timely manner. We sincerely apologize for the delayed response. We are closing this issue. If you feel that the problem persists, please respond to this issue with additional information.
Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close


Post-Doc in Deep Learning for Climate Change [Milan, Italy]

The Post-Doc positions is in Deep Learning for climate change impacts/mitigation, with a particular emphasis on convolutional neural networks (CNNs) application.

Qualifications:

Phd in computer science, applied mathematics, computational economics
Proficiency in Python programming with hands-on experience in Keras.
Familiarity with PyTorch or TensorFlow is highly valued.
User-level proficiency in bash scripting and UNIX environments, especially for supercomputing applications.
Experience with Dask is a distinct advantage.
Interest and ideally some experience in climate change research

Role Overview:
You will be at the forefront of applying deep learning to address environmental and societal challenges. A particular emphasis will be on convolutional neural networks (CNNs) application to climate change physical and economic risks or on climate mitigation action.
Key Responsibilities:
Design and implement a comprehensive deep learning architecture with a global perspective, integrating diverse spatial and temporal resolutions with the aim of uncovering the determinants of climate change impacts and progress on emissions reduction efforts.
Modalities:
The researcher will join the ERC project EUNICE (https://www.eunice-erc.eu/) under the supervision of Professor Massimo Tavoni at Politecnico di Milano, a leading technical university. The project aims to quantify the deep uncertainties associated with climate mitigation and adaptation strategies, advancing the foundations of mathematical modeling and data science for climate change policy.  The researcher will have the opportunity to be affiliated with the European Institute on Economics and the Environment (https://www.eiee.org/).
Post-doc positions will last for 2 years with the possibility of renewal. Place of work is Milan, Italy, with some flexibility in smart working. Salary is competitive.
Interested candidates should send their CV to<EMAIL_ADDRESS>


can't use CKEditor to update text styling after using style manager

I'm not sure how to resolve this. If I haven't chosen any style options from the style manager for a  block I can use CKEditor (installed via the grapesjs plugin) and all the font changes work, but if I have set something with Style Manager, I can no longer use CKEditor to change anything, I thought maybe mjml was overriding the CKEditor styles, but I can't even use i, b or u tags once something has been chosen from the Style Manager. If necessary I can disable the style manager stuff and just use CKEditor, but this still seems like an bug

Could you maybe provide a reproduction / git repo? so it's easier to figure out what is going on.

It's happening without any major modifications, I'm using grapesjs-mjml 0.1.17 (it's the last one with a dist folder, haven't built a newer one yet, but I don't see a fix in the release notes) and grapesjs 0.16.17
Here's my settings:
var editor = grapesjs.init({
container : '#gjs',
height: '100%',
avoidInlineStyle: false,
fromElement: true,
clearOnRender: true,
plugins: ['grapesjs-mjml', 'gjs-plugin-ckeditor'],
pluginsOpts: {
'grapesjs-mjml': {
columnsPadding: '0',
},
'gjs-plugin-ckeditor': {
position: 'center',
options: {
startupFocus: true,
extraAllowedContent: '();{}',
allowedContent: true,
enterMode: CKEDITOR.ENTER_BR,
extraPlugins: 'justify,colorbutton,panelbutton,font,placeholder,mnlink',
toolbarGroups : [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{ name: 'forms', groups: [ 'forms' ] },
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
{ name: 'links', groups: [ 'links' ] },
{ name: 'insert', groups: [ 'insert' ] },
'/',
{ name: 'styles', groups: [ 'styles' ] },
{ name: 'colors', groups: [ 'colors' ] },
{ name: 'tools', groups: [ 'tools' ] },
{ name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] }
],
removeButtons : 'Source,Save,NewPage,Preview,Print,Templates,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Find,Replace,Scayt,Language,Anchor,Image,Flash,PageBreak,Iframe'
}
}
}
});
So if I drag a column and a text block I can edit the italic/bold/whatever with CK Editor, but as soon as I do something like center it with the style manager I can no longer do anything with the CKEditor

Any reason you need the dist folder? it is still being published to npm and various cdns

no, I just haven't got around to upgrading yet, because it wasn't handy here on github. If the newer version fix this bug I can upgrade but I didn't see anything pressing in the release notes to warrant it

I got back to this and updated to 0.2.4 today and there's still the conflict with the CKEditor plugin, as soon as I change anything in Typography the CKEditor can no longer update bold, italic, etc...

I get the same issue on demo https://grapesjs.com/demo-mjml.html
To reproduce :

select a text block
click on Style Manager > Typography and change the font size
open gjs-plugin-ckeditor on the same text block
bold the text with gjs-plugin-ckeditor

Issue : imposible to complete step 4.

I still has the same issue with mjml emails but fix Rte destroy on disable seems to work for me. @artf @DRoet is there a chance that it will be resolved in soon?
If this somehow helps to fix the problem, when the gjs-plugin-ckeditor stops working, trying to convert the selected text to a bulleted or numbered list returns an error in the console:
ckeditor.js:186 Uncaught TypeError: Cannot read properties of null (reading 'isContextFor')
at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.command.refresh (ckeditor.js:186:481)
at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.command.exec (ckeditor.js:715:448)
at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.command.exec (ckeditor.js:186:379)
at a.execCommand (ckeditor.js:252:231)
at CKEDITOR.tools.extend.click (ckeditor.js:766:419)
at Object.execute (ckeditor.js:767:490)
at ckeditor.js:768:326
at ckeditor.js:29:180
at Object.callFunction (ckeditor.js:29:296)
at HTMLAnchorElement.onclick (demo-mjml.html:1:16)


it seems to have some error with new version(1.3.0-rc.1)

it doesn't sync

I have maked a sandbox:
v1.2.8 work well: https://codesandbox.io/s/zustand-yjs-middleware-v1-2-8-eguvxj

v1.3.0-rc.1 doesn;t sync: https://codesandbox.io/s/zustand-yjs-middleware-new-version-30uvnb

I'm going to have to return to this with renewed patience at a later time. For some reason, your CodeSandboxes either 1) don't load (Firefox) or 2) don't compile (Chrome). When I tried one of the projects from the repository's examples folder, I couldn't get my WebRTC provider to connect to the new signaling server that dmonad added a few weeks ago in either Chrome or Firefox.
However, there was a fleeting period where I did see the error you reported, so I know it happens. Still, I can't reliably reproduce it due to the signaling server fiasco. My best bet now would be to spin up my own signaling server, and I need to set aside more time to tackle that.

take your time to work on it~

OK, using a local signaling server, I can't replicate your issue with the counter example project. But I have found a different issue and I don't like the implications of it.
The issue I have found is that all of the instanceof checks in my patching code are failing when checking Yjs shared type objects, even when, as far as I'm aware, they shouldn't be. This leads to no data being transferred between peers.
Of course, that's not what your seeing - your seeing data transfer, just no update when the state is being updated by a peer. But I have a sneaking suspicion that this instanceof nonsense is related.

Double-check your CodeSandbox. I can't reproduce the exact bug you reported. Instead, I see the same bug I saw this morning... And I am still trying to figure out why. At least the good news is that both my local and your CodeSandbox are exhibiting the same behavior, so I'm not hunting down a Heisen-bug.
Now I need to figure out how to reproduce it in a test.

Ok, so I pushed a new release candidate, but there's no fix. It's just a lot of upgrades for heavily out of date dependencies to see if that helps.

it seems still don't work on 1.3.0-rc.2

Ok, finally got back around to this.
As I slowly step through the code when a remote update is received, it seems that Zustand store is being improperly modified. This probably has something to do with how the middleware registers itself with Zustand, so I'm going to look into middleware best practices.

Hmph.
It's not an issue with how the middleware registers with Zustand. The middleware is side-stepping Zustand's setState() by modifying a reference to Zustand's underlying state object when a remote update is received. I need to figure out how to duplicate this locally to get a closer look at what is happening.

OK. RC 3 is live. Tested a fork of your CodeSandbox, and everything is in working order. When you are able, test it yourself to make sure everything is working as you expect.

it works well!  Thanks for your great job~


[fastlane] Emoji in file names cause issues for TeamCity (💪, 🚀)

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
We have to update Ruby gems via Artifactory rubygems.org mirror. Company proxy is (to put it politely) unreliable and causes bundle install/update command to fail quite often. So we decided to bundle all the gems with the repo using bundle install --path .vendor command.
Committing .vendor and .bundle directories to git caused no issues. Bitbucket server worked fine. However, TeamCity (9.1) couldn't fetch change information from Bitbucket and the error was SQL error like so:
SQL exception: Incorrect string value: '\xF0\x9F\x92\xAA' for column 'vcs_file_name' at row 1

The '\xF0\x9F\x92\xAA' is actually 💪 emoji. So TeamCity's SQL database can't properly handle correct UTF-8 sequences for emojis. I'm pretty sure our TeamCity instance is running on Windows platform, which may have additional contribution to the issue.
I know that this is definitely TeamCity issue, but I would still like to get some input from Fastlane community.
Should I manually (or with help of a script) remove all filenames containing emoji from .vendor path?
Is it possible to make emoji aliases optional and not installed by default? Or have a switch to opt out from installing them.
Maybe there's some budnler trick that can automate this task for me...
Related PR: https://github.com/fastlane/fastlane/pull/4436
Environment
✅ fastlane environment ✅
Stack

Key
Value

OS
10.11.6

Ruby
2.2.2

Bundler?
true

Git
git version 2.9.3 (Apple Git-75)

Installation Source
~/.rvm/gems/ruby-2.2.2/bin/fastlane

Host
Mac OS X 10.11.6 (15G1108)

Ruby Lib Dir
~/.rvm/rubies/ruby-2.2.2/lib

OpenSSL Version
OpenSSL 1.0.1j 15 Oct 2014

Is contained
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.1

System Locale

Variable
Value

LANG
en_AU.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
`./fastlane/Fastfile`
# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.111.0"

default_platform :ios

platform :ios do
  # Redacted
end

`./fastlane/Appfile`
json_key_file "" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one
package_name "au.com.commbank.app.tools" # e.g. com.krausefx.app

fastlane gems

Gem
Version
Update-Status

credentials_manager
0.16.2
✅ Up-To-Date

fastlane_core
0.58.0
✅ Up-To-Date

spaceship
0.38.5
✅ Up-To-Date

cert
1.4.4
✅ Up-To-Date

deliver
1.16.1
✅ Up-To-Date

frameit
3.0.0
✅ Up-To-Date

gym
1.12.1
✅ Up-To-Date

sigh
1.12.1
✅ Up-To-Date

match
0.11.1
✅ Up-To-Date

pem
1.4.1
✅ Up-To-Date

pilot
1.12.1
✅ Up-To-Date

produce
1.3.2
✅ Up-To-Date

scan
0.14.2
✅ Up-To-Date

screengrab
0.5.6
✅ Up-To-Date

snapshot
1.16.4
✅ Up-To-Date

supply
0.8.0
✅ Up-To-Date

fastlane
1.111.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

executable-hooks
1.3.2

bundler-unload
1.0.2

rubygems-bundler
1.4.4

bundler
1.13.6

rake
0.9.6

CFPropertyList
2.3.4

i18n
0.7.0

json
1.8.3

minitest
5.10.1

thread_safe
0.3.5

tzinfo
1.2.2

activesupport
<IP_ADDRESS>

public_suffix
2.0.4

addressable
2.5.0

babosa
1.0.2

colored
1.2

highline
1.7.8

commander
4.4.1

security
0.1.3

credentials_manager
0.16.2

excon
0.54.0

gh_inspector
1.0.2

multi_json
1.12.1

plist
3.2.0

rubyzip
1.1.7

terminal-table
1.4.5

fastlane_core
0.58.0

multipart-post
2.0.0

faraday
0.10.0

unf_ext
<IP_ADDRESS>

unf
0.1.4

domain_name
0.5.20161129

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

faraday_middleware
0.10.1

fastimage
1.6.8

multi_xml
0.6.0

claide
1.0.1

clamp
0.6.5

colorize
0.7.7

mini_magick
4.5.1

rouge
1.11.1

xcpretty
0.2.4

dotenv
2.1.1

net-ssh
3.2.0

net-sftp
2.1.2

krausefx-shenzhen
0.14.11

slack-notifier
1.5.1

xcpretty-travis-formatter
0.0.4

jwt
1.5.6

little-plugger
1.1.4

logging
2.1.0

memoist
0.15.0

os
0.9.6

signet
0.7.3

googleauth
0.5.1

httpclient
<IP_ADDRESS>

hurley
0.2

mime-types-data
3.2016.0521

mime-types
3.1

uber
0.0.15

representable
2.3.0

retriable
2.1.0

google-api-client
0.9.20

terminal-notifier
1.7.1

word_wrap
1.0.0

xcode-install
2.0.9

nanaimo
0.2.3

xcodeproj
1.4.1

mini_portile2
2.1.0

nokogiri
<IP_ADDRESS>

slather
2.3.0

commbank-app-tools
0.21.1

generated on: 2016-12-07

Argh, this is not good. Emoji names are just fun, and shouldn't cause an actual build error. However we can't just remove the emoji binary now, as people already use the emoji binaries. It's probably best if you remove those binaries before using your own script. Feel free to share it here, so that other users benefit from it 👍

I see. I've found an answer here: http://unix.stackexchange.com/questions/109747/identify-files-with-non-ascii-or-non-printable-characters-in-file-name
This simple command finds them all: LC_ALL=C find .vendor -name '*[! -~]*'
~ git:(branch) ✗ LC_ALL=C find .vendor -name '*[! -~]*'
.vendor/ruby/2.2.0/bin/💪
.vendor/ruby/2.2.0/bin/🚀
.vendor/ruby/2.2.0/gems/fastlane-1.111.0/bin/🚀
.vendor/ruby/2.2.0/gems/gym-1.12.1/bin/💪

So using -delete does the job: LC_ALL=C find .vendor -name '*[! -~]*' -delete.
I guess I will just use this bash command in our tools to "sanitize" bundle directory from emojis. Can also stick it in git commit hooks.
I'll close the issue as well. Thanks for your help! 👍

How does someone actually use emoji binaries?

Check this out: https://twitter.com/KrauseFx/status/727887795734380545

sry i still dont think I get it 🐳  so they cmd $emoji[rocket] using the emoji zsh plugin?

if anyone else was curious:
on macs you can hit Ctrl + Cmd + Space to open a "character viewer" https://support.apple.com/en-us/HT201586


Change order of parameters in StreamFilter

What's needed?
To be consistent with the other filter, time_filter and include_options should be switched around (time_filter = 2, include_options = 3)
Proposed solution
No response
Use cases
No response
Alternatives and workarounds
No response
Additional context
No response

Here is the diff:
// Request message for receiving stream of metrics, such as electrical
// measurements, and other information for individual microgrid components.
//
// !!! note
//     In addition to the raw metrics, the API can also return additional information
//     like errors or operational states of the components during the specified time period.
//
message ReceiveMicrogridComponentsDataStreamRequest {
  // General filter criteria for querying microgrid components data.
  //
  // !!! note
  //     The filter criteria defined here are applied universally across all
  //     specified microgrids and their respective components.
  message StreamFilter {
    // Optional resampling options like resolution for the data, represented in seconds.
    // If omitted, data will be returned in its original representation.
    ResamplingOptions resampling_options = 1;

-    // Include options specifying additional fields to be included in the response.
+   // Optional time-based filter criteria.
+   // If omitted, data will start streaming from the timestamp that the request was received.
-   IncludeOptions include_options = 2;
+   TimeFilter time_filter = 2;

-   // Optional time-based filter criteria.
-   // If omitted, data will start streaming from the timestamp that the request was received.
+    // Include options specifying additional fields to be included in the response.
-   TimeFilter time_filter = 3;
+   IncludeOptions include_options = 3;

    // List of metric source filters
    // For the metrics present in this list, the data from only the specified
    // sources will be returned. If no sources are provided for a metric in this
    // list, then no data will be returned for the said metric.
    // For the metrics not present in this list, data from all of their sources will
    // be returned.
    repeated MetricSourceOptions metric_sources = 4;
  }

  // ...

Blocking this, we will be removing the list endpoints so there will only be one filter message going forward

Closing this, in case the list endpoints are introduced we can re-introduce the ListFilter


[flutter_tools] Update WebAssetServer to avoid context, fix tests

Description
WebAssetServer could fail if some of the global statics it depended on were initialized in a different order. Fix this by removing globals.
Delete dwds startup test that needs to spawn a real server.

Almost! Sorry I didn't accept the suggestions, that seems to trip up the CLA bot

Almost! Sorry I didn't accept the suggestions, that seems to trip up the CLA bot

Not offended at all. It's probably easier to do locally anyway.

Started Google testing for this PR

Google testing passed!


Apply ConsistencyLevel header to directoryObjects EntitySet.

This PR applies ConsistencyLevel header to directoryObjects EntitySet. This header will be used by AutoREST.PowerShell to generate the right request header for directoryObjects entitySet.
Closes #45.

@baywet It was already added to all directortyObject based entitySets in this PR https://github.com/microsoftgraph/msgraph-metadata/pull/39. This was just missed.
Also, ReadRestrictions can only be applied to EntitySet and Singleton. We don't have a way in OData of specifying CustomHeaders to NavigationProperties.

@baywet It was already added to all directortyObject based entitySets in this PR https://github.com/microsoftgraph/msgraph-metadata/pull/39. This was just missed.
Also, ReadRestrictions can only be applied to EntitySet and Singleton. We don't have a way in OData of specifying CustomHeaders to NavigationProperties.


Is the database method able to support high concurrent user traffic for read/write?

Hi @morrisjdev
I love the idea! Is the database method able to support high concurrent user traffic (maximum database concurrent connections) for read/write files?
Best regards,
Huy

Hi.
I don't think so.
A small to medium number of concurrent operations is possible because the database primary operates in memory, means the whole dataset of a table is loaded once one entry of a table is queried. This makes it possible to support multiple operations at a time. The storing in files is a next step and will always store the whole dataset if something was changed. This involves a new problem: For huge amounts of data or operations this will introduce massive I/O loads on the disk.
So all in all I wouldn't recommend that.
Best regards
Morris

I see, thanks for the explanation 👍


python random module

Environment data

VS Code version: 1.28.2
Extension version (available under the Extensions sidebar): XXX
OS and version: Windows 10
Python version (& distribution if applicable, e.g. Anaconda): 3.6.5
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): Python
Relevant/affected Python packages and their versions: random latesed

Actual behavior
Error
Expected  behavior
import random
print(random.randint(1,6))
expected to give me a random number between 1 to 6
Steps to reproduce:

XXX

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

##########Linting Output - pylint##########
##########Linting Output - pylint##########
##########Linting Output - pylint##########
##########Linting Output - pylint##########
##########Linting Output - pylint##########
##########Linting Output - pylint##########
##########Linting Output - pylint##########
##########Linting Output - pylint##########
##########Linting Output - pylint##########
##########Linting Output - pylint##########

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
print(random.randint(1,6))
AttributeError: module 'random' has no attribute 'randint'

Since random.randint() exists, this is most likely because you have a file named random.py which is shadowing the random module from Python. Rename the file and it should be fine.
Otherwise this isn't a bug with the extension as we don't touch the entry for the standard library for your interpreter (Python sets that).


Add a contact us button in the navbar for easy navigation to the form and add the client side email validation to save resources

Issue Description
Add a contact us button in the navbar for easy navigation to the form and add the client side email validation to save resources
Currently the form is acception malicious/incomplete emails like abc@a and wasting server resources.
Steps to Reproduce (if applicable)

scroll down to contact us form
enter email as abc@a
submit and see the error by formspree

Expected Behavior
it should not let the form submit if there is any error in the email from the client side itself
Current Behavior
it is wasting resources by sending improper emails to the server
Possible Solution (optional)
adding a proper RegEx would solve the issue of email validation
adding contact us button is easy using direct html with already used css
Additional Context (optional)
NA

@jainmudit68 assigned


Regularization step always stops almost at the end

Why can this be happening?

Can you provide any details?


(TRAINTECH-1729) Remove Unnecessary Windows Notes

TRIANTECH-1729 #resolved #time 10m
Fix the conditional to check if there are actually Windows nodes

@binford2k updated based on your suggestion


PHPLIB-1115: Fix waitForSnapshot() for MongoDB 7.0+

https://jira.mongodb.org/browse/PHPLIB-1115
Using find instead of aggregate should ensure documents are available in the calling test case on 7.0+ servers.

The initial patch didn't address the test failure so I've moved this back to draft while I work on it further.

Note: test failures on mongodb-latest are due to PHPLIB-1071.


Run storm-benchmark on GearPump

The storm-benchmark source code can be found at:
github.com/intel-hadoop/storm-benchmark

do we create a new repo or place it under experiment or somewhere else ?


Rewrite hooks from console

I am packaging Gogs for NixOS.
With every update of the Gogs package, the Gogs binary path changes so that it is necessary to rewrite all git hooks.
Can you provide a shell command, for example gogs admin rewrite-hooks so that this can be done automatically by NixOS?

I don't remember the binary path changing, is there a special way you are compiling it?

@LefsFlarey on nixos, we store every package with the scheme /nix/store/<hash>-<package>-<version>. This way we resolve version conflicts between packages and can also rollback to older version.

I see, in that case, would a solution like symlinking it to a standard path regardless of versions solve it?

As long as the old gogs service exists, the referenced binary should be not garbage-collected.
So it would sufficient to update gogs hooks, when the corresponding service is started/restarted. We could also solve this on our own using sed, I think.

I was thinking of more of having a python like structure, where all python version are symlinked to simpler executable names. There are, after all, no incompatibilities between Gogs versions and repositories.
Nevertheless, you guys do what you guys gotta do ^_^

I've made a PR for this feature: https://github.com/gogits/gogs/pull/4813


Disable activation keys for OTAA

Disable the Activation tab keys for OTAA devices.

@brocaar
Please review the above change.

@sagar-patel-sls am I correct that the scope of this PR is that OTAA devices can't be (re)activated manually? I see quite some different changes, including changes to the key-field component.
Please note that there is a use-case for this, e.g. when migrating devices from one NS to an other, this allows to copy over the session-keys and frame-counter such that a new join-request is not needed and the device can continue to work on the new NS.

@Brocaar You are right but I think this will makes confuse users same as the gateway profile in v3.
What did you say?


Travis working. Will build client and server, create the docker image…

Travis working.

Will build client and server
create the docker image
run server functional tests, failing if any fail
then push images to quay.io if credentials present and master branch

Looks good to me after https://github.com/Autodesk/molecular-simulation-tools/pull/268 goes in 👍
Let me know if things look good after this is merged with my migration fixes!


VideoPlayerController not working inside inside Existing Android App

Hi Team,
I am trying to integrate with flutter with the existing Android App. Basic page of flutter is working fine. However when try running video using VideoPlayerController it breaks with below error. When I try some code in pure flutter app it works. It look like some bug in Add to app functionality
Error
VideoPlayerApi
exception = {PlatformException} PlatformException(channel-error, Unable to establish connection on channel., null)
replyMap = null
VideoPlayerController.network(
          'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4')
        ..initialize().then((_) {
          setState(() {
            _controller.play();
            _controller.setLooping(true);
          });
        });

Hi @rishisaraf11
could you provide your flutter doctor -v, logs when running your app and hitting the error and a minimal project to reproduce it?
I tried to use the sample add-to-app android project with plugin's sample in flutter module with current master 1.20.0-3.0.pre.142 and I'm not experiencing the error

@VladyslavBondarenko  thanks for looking into it. You can find sample flutter app here https://github.com/rishisaraf11/flutter_video_module . It will be great if you provide sample app where it worked.
app/build.gradle
implementation project(path: ':flutter')

settings.gradle
setBinding(new Binding([gradle: this]))
evaluate(new File(
  settingsDir,
  '../bakar_flutter_module/.android/include_flutter.groovy'
))

include ':bakar_flutter_module'
project(':bakar_flutter_module').projectDir = new File('../bakar_flutter_module')

include ':bakar_flutter_module'
project(':bakar_flutter_module').projectDir = new File('../bakar_flutter_module')

Exception is coming in VideoPlayerApi at  `final Map<dynamic, dynamic> replyMap = await channel.send(null);` . replyMap remain empty hence this exception is thrown.

flutter doctor -v output

[✓] Flutter (Channel stable, v1.17.3, on Mac OS X 10.14.6 18G5033, locale en-IN)
    • Flutter version 1.17.3 at /Users/rsaraf/projects/flutter
    • Framework revision b041144f83 (5 weeks ago), 2020-06-04 09:26:11 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/rsaraf/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[✗] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install:
        sudo gem install cocoapods

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[!] IntelliJ IDEA Ultimate Edition (version 2019.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] Connected device (2 available)
    • GM1901         • e1866886      • android-arm64 • Android 10 (API 29)
    • sdk gphone x86 • emulator-5554 • android-x86   • Android R (API 29) (emulator)

! Doctor found issues in 3 categories.
(base) m-c02zj2mxlvcg:kwik rsaraf$ flutter doctor -v
[✓] Flutter (Channel stable, v1.17.3, on Mac OS X 10.14.6 18G5033, locale en-IN)
    • Flutter version 1.17.3 at /Users/rsaraf/projects/flutter
    • Framework revision b041144f83 (5 weeks ago), 2020-06-04 09:26:11 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/rsaraf/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✗] Xcode - develop for iOS and macOS
    ✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
      Download at: https://developer.apple.com/xcode/download/
      Or install Xcode via the App Store.
      Once installed, run:
        sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
        sudo xcodebuild -runFirstLaunch
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install:
        sudo gem install cocoapods

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[!] IntelliJ IDEA Ultimate Edition (version 2019.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] Connected device (2 available)
    • GM1901         • e1866886      • android-arm64 • Android 10 (API 29)
    • sdk gphone x86 • emulator-5554 • android-x86   • Android R (API 29) (emulator)

! Doctor found issues in 2 categories.

@rishisaraf11
the only what I can see is loading page. If I set children: tikTokVideos without checking it's length I can see empty screen, because there are no of them. Would be good if you create a minimal reproducible project.
Also could you attach error log here and check if it persist when using current dev or master channel

@VladyslavBondarenko I have the same issue, possible duplicate of https://github.com/flutter/flutter/issues/61096

Without additional information we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Return no content status code on empty event data

Resolve #992

@nduyphuong thanks a lot for your contribution!
The original issue is not well explained, sorry for that.
A source can be connected to any HTTP endpoint that consumes CloudEvents. The Webhooks source could be used either to produce events to a broker, which produces no response, or to a CloudEvents consumer that might produce a response.
We are yet to define how the WebhookSource should handle responses, for now only error responses are defined. A successful response would return a CloudEvent, which contains attributes and data.
When a response to the WebhookSource contains no data, we know that we should answer 204.
So looking at the code:
		if result := h.ceClient.Send(ctx, event); !cloudevents.IsACK(result) {
			h.handleError(fmt.Errorf("could not send Cloud Event: %w", result), http.StatusInternalServerError, w)
		}
		if event.Data() != nil {
			w.WriteHeader(http.StatusOK)
			return
		}
		w.WriteHeader(http.StatusNoContent)

I wouls say that insted of calling Send at the CloudEvents client, we should use Request, then read if the response event data is empty, and if so use 204.
If you need guidance on that we are here to help.

@odacremolbap  Thanks for your warm support, I've made some change and updated test also. Please help to correct me since i'm just getting started to familiar with the code base

@odacremolbap Thanks for your warm support, I've made some changes and updated test also

@nduyphuong this is looking fine now.
We could add the new case to the tests, if you will.
The steps would be:

Create a helper function that creates a new event for tests. Add the type and source constants to the top of the file. Let the function produce body-full and body-less events.

func newEvent(body string) *event.Event {
       e := event.New(event.CloudEventsVersionV1)
       e.SetType(tResponseEventType)
       e.SetSource(tResponseEventSource)

       if body != "" {
               e.SetData("text/json", body)
       }

       return &e
}

Adding these 2 new parameters to the test case struct, we will use them at your replierFn. To make them backwards compatible we will consider that no result defined at cases means ACK, and no response event defined creates a default body-full response. Alternatively we could add the responseResult and responseEvent to all other cases.
               responseResult protocol.Result
               responseEvent  *event.Event

The replierFunc would need to take care of those 2 new test parameters, providing a default behavior that does not make the rest of tests fail.
			replierFn := func(inMessage event.Event) (*event.Event, protocol.Result) {
				// If the test case does not define a response event use a default one
				e := c.responseEvent
				if e == nil {
					e = newEvent(`{"test":"default"}`)
				}

				// If the test case does not define a result return ACK
				r := c.responseResult
				if r == nil {
					r = protocol.ResultACK
				}
				return e, r
			}

Then we could define a new test case that tests these conditions
		"empty response": {
			body: read("arbitrary message"),

			responseEvent: newEvent(""),

			expectedCode:       http.StatusNoContent,
			expectedEventData:  "arbitrary message",
			expectedExtensions: expectedExtensionsBase,
		},

What I don't love from my proposal here is that usually WebHookSource is connected to a broker, which returns no content, while here we are defaulting all cases to body-full instead. But that is probably a nit.

@nduyphuong
It looks that there is a linting warning at my suggested code.
   Running [/home/runner/golangci-lint-1.53.3-linux-amd64/golangci-lint run --out-format=github-actions --out-${NO_FUTURE}format=colored-line-number --timeout 15m] in [] ...
  Error: pkg/sources/adapter/webhooksource/webhook_test.go:313:12: Error return value of `e.SetData` is not checked (errcheck)
  		e.SetData("text/json", body)

We don't expect an error from that call, and test cases are limited. I would say panicking is allowed in this context, sort of ...
		if err := e.SetData("text/json", body); err != nil {
			panic(err)
		}

@nduyphuong thanks so much for this.
I think we might have next steps, like converting responses into payloads when a body is returned.
We might want to use the structured CloudEvents encoding.
Would you like to discuss and work on that?

@odacremolbap  Thanks for the quick review. About the next steps, can you please kindly help to describe the intention a little bit more


Cannot modify timeout using KongIngress and Service annotation

I have tried following this issue to modify the default 60s timeout but nothing is changing.
Kong Ingress Controller I'm using is kong-docker-kubernetes-ingress-controller.bintray.io/kong-ingress-controller:1.2
Ingress is defined as such:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    konghq.com/https-redirect-status-code: "301"
    konghq.com/preserve-host: "false"
    konghq.com/protocols: https
    konghq.com/strip-path: "true"
    kubernetes.io/ingress.class: kong
    kubernetes.io/tls-acme: "true"
...

KongIngress is defined as such:
apiVersion: configuration.konghq.com/v1
kind: KongIngress
metadata:
  name: abc
proxy:
  protocol: http
  path: /
  connect_timeout: 600000
  retries: 3
  read_timeout: 600000
  write_timeout: 600000

The relevant service is defined as below:
apiVersion: v1
kind: Service
metadata:
  annotations:
    configuration.konghq.com: abc
...

All that the ingress controller logs show are this:
time="2021-06-02T04:46:16Z" level=info msg="syncing configuration" component=controller
time="2021-06-02T04:46:16Z" level=info msg="no configuration change, skipping sync to kong" component=controller

I have tried running /kong-ingress-controller --v 3 but the logs are the same.
Am I doing something wrong?

The correct service annotation was konghq.com/override: abc. Not configuration.konghq.com: abc as I expected based on the linked issue.


Pioneering DeFi against Real World Assets - $600 Million and counting

Target Audience:
Beginner, Intermediate
Description:
We have seen tremendous ups and downs in the crypto segment. DeFi came into the picture to help the unbanked and underbanked get access to a wide variety of financial products. With volatility still an active part of DeFi, it is imperative to make more meaningful protocols that can support seamless financial tools and products that actually help the unbanked. These protocols need to support stable real world assets, which is where more than $4 Trillion worth of lending happens annually.
In this talk, we discuss how bridging this massive gap between CeFi and DeFi is the talk of the hour and how this can enable financial inclusion for several population strata across the globe.
Style of Your Session:
30-min Regular Talk
About:
Abhishek is a Co-founder and Head of Blockchain Tech at Brú Finance - India's only blockchain native fintech platform. He's a Forbes 30 under 30 honoree and a 3-times Entrepreneur and an Author. At Bru, he's bringing Blockchain to farmers to save their income, covering 1,400 warehouses & 18,000+ farmers and US $300 Million in committed TVL and now connecting them to global DeFi lenders, supported by United Nations Development Programme, IIM Ahmedabad and MassChallenge USA. He's also a Blockchain Educator and has taught 6,000+ faculty, PhDs, and students globally.
LinkedIn: https://www.linkedin.com/in/abhib3012
Twitter: https://twitter.com/abhib3012

Please add the audience type too.

Hi, I've already added the Audience Type. Is this what you're looking for?
Target Audience:
Beginner, Intermediate


Use default version scheme for setuptools_scm

Including local_scheme = "guess-next-dev" in pyproject.toml caused the +unknown to be included in the distribution name. This PR removes that configuration and updates the release workflow to build the package on PRs, but only upload to TestPyPI for releases.
Relates to #13

[ ] Closes #xxxx
[ ] Tests added
[ ] Changes are documented in docs/releases.rst
[ ] New functions/methods are listed in api.rst

I think this is ready. It won't upload v0.1.0 but should work fine for the next release.


Click events don't fire from Material Menu while using nested NgFor/NgSwitch

Bug, feature request, or proposal:
Bug
What is the expected behavior?
Click event fires from menu item
What is the current behavior?
Click event does not fire from menu item
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
https://stackblitz.com/edit/permissions-menu?file=app%2Fapp.component.html
What is the use-case or motivation for changing an existing behavior?
I have a dynamically created menu from an object in a component, I need to display buttons on the mat-menu dynamically from values in this object - I also need these to have click events bound to them.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5.1.2, Material 5.1.2, Mac OS X, Typescript 2.4.2, Chrome, Firefox.
Is there anything else we should know?
I've tried many different combinations of layouts for the html and data and have come up with nothing.

Here is an example of a template that does work (fires click events properly)
                        <mat-menu #menu="matMenu" class="menu-profile">

                                <mat-spinner class="mat-spinner" [diameter]="30" [strokeWidth]="4"></mat-spinner>
                                Loading actions...

                            <ng-container *ngIf="allowedActions">
                                <button *ngFor="let action of rowDisplayActions(row)" [ngSwitch]="action" (click)="rowAction(action, row)" mat-menu-item>
                                    <ng-container *ngIf="selectedMultiple(); else single_selection">
                                        <ng-container *ngSwitchCase="'move'">
                                            <mat-icon>content_copy</mat-icon>
                                            Move
                                        </ng-container>
                                    </ng-container>
                                    <ng-template #single_selection>
                                        <ng-container *ngSwitchCase="'view'">
                                            <mat-icon>pageview</mat-icon>
                                            View
                                        </ng-container>
                                        <ng-container *ngSwitchCase="'add'">
                                            <mat-icon>note_add</mat-icon>
                                            Add
                                        </ng-container>
                                        <ng-container *ngSwitchCase="'edit'">
                                            <mat-icon>mode_edit</mat-icon>
                                            Edit
                                        </ng-container>
                                        <ng-container *ngSwitchCase="'publish'">
                                            <mat-icon>publish</mat-icon>
                                            Publish
                                        </ng-container>
                                        <ng-container *ngSwitchCase="'security'">
                                            <mat-icon>security</mat-icon>
                                            Security
                                        </ng-container>
                                        <ng-container *ngSwitchCase="'move'">
                                            <mat-icon>content_copy</mat-icon>
                                            Move
                                        </ng-container>
                                        <ng-container *ngSwitchCase="'replace'">

                                                <mat-icon>autorenew</mat-icon>
                                                <input class="upload-button" type="file" ngFileSelect [options]="options" (uploadOutput)="onUploadOutput($event, row, 'replace')"
                                                    [uploadInput]="uploadInput" multiple> Replace

                                        </ng-container>
                                        <ng-container *ngSwitchCase="'rapid-transfer'">

                                                <mat-icon>cloud_upload</mat-icon>
                                                Replace (Rapid Transfer)

                                        </ng-container>
                                        <ng-container *ngSwitchCase="'delete'">
                                            <mat-icon>delete</mat-icon>
                                            Delete
                                        </ng-container>
                                    </ng-template>
                                </button>
                            </ng-container>
                        </mat-menu>

I'm not sure this is a material problem at all.
My theory: I believe that the hover action is somehow telling angular to check for changes and it, in turn, call getPermissions() that redraws the menu and this cycle goes over and over and over... You'll be able to solving it by switching the getPermissions() from *ngFor for a permissions array.
Calling a function inside a template is a bad practice because of this effect. You should be using a pipe instead.

Use a pipe to call a function? I'm a bit confused, I am using a pipe in this case to format the object to an array.

@iamwhitebox, I'm refering to use a pipe in the template. Instead of:
*ngFor="let permission of displayPermissions()"

you should use something like:
*ngFor="let permission of rawArray | displayPermissions: args"

In @angular pipes are called just once. To force the pipe to run again you can:

change rawArray (change => change reference, not just add/delete elements)
Change the pipe args

@julianobrasil that is beautiful, I had no idea you could use args with a pipe like that, closed the issue


Functional Description For from_orbit Method Not Rendered Correctly

🐞 Problem
The class method from_orbit description inside Ephem class is not being rendered correct & can be seen here in the latest documentation build.
💡 Possible solutions
Formatting the docstring for the from_orbit class method may fix the rendering issue. Care must be taken so as to adhere to the .rst format for Sphinx documentation generation for API Docs

https://github.com/poliastro/poliastro/blob/48bf2c6b64f3d35b005d0a60abe8bcd483adbced/src/poliastro/ephem.py#L313-L331
Unclear what's failing 🤔 But we should investigate and fix it.

Yes, locally testing does render that part correctly but maybe something happened that causes the latest docs to not render it as expected...

Hello @astrojuanlu... This seems to be something weird going on ... I recently rebased the #1107 PR & then tried checking for the documentation of the from_orbit function ... and it fixes the documentation as seen here

Perhaps a transient version problem. I'll try to rebuild main and see what happens.

The Description in the from_orbit seems to render Correctly as per https://docs.poliastro.space/en/latest/autoapi/poliastro/ephem/index.html#poliastro.ephem.Ephem.from_orbit.So it Doesn't Look Unclear @DhruvSondhi :)

It got fixed after rebuilding the docs. Closing!


Even better block watching + various code refactorings

Pull Request Test Coverage Report for Build 1086

51 of 72 (70.83%)  changed or added relevant lines in 6 files are covered.
5 unchanged lines in 3 files lost coverage.
Overall coverage increased (+5.7%) to 82.448%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Actions/Pending.ts
0
1
0.0%

src/Router/Router.ts
4
8
50.0%

src/Scanner/Scanner.ts
16
22
72.73%

src/Actions/Actions.ts
20
30
66.67%

Files with Coverage Reduction
New Missed Lines
%

src/EconomicStrategy/EconomicStrategyHelpers.ts
1
57.69%

src/Wallet/Wallet.ts
1
87.74%

src/Actions/Pending.ts
3
38.62%

Totals

Change from base Build 1069:
5.7%

Covered Lines:
529

Relevant Lines:
616

💛  - Coveralls


Issue #248 - Added null check for res object in postFile

Thanks a lot @MahdiMontgomery !!

Fixes #248


https://github.com/jiseoblim/Dracula

New Theme?
We would love to support all code editors out there, but we need your help to accomplish that. Feel free to create a new theme based on our color palette.
Existing Theme?
Find the appropriate repository on the Dracula organization. This is just the umbrella place where we store all themes.
And remember - consider fixing the issue yourself. That's the best way to contribute ;)

Hi @jiseoblim, I believe you created the Issue wrongly or didn't save your changes; Please check and reread so I can help!


Add EL 8 and 9 support

includes: #357

Can also add Rocky and AlmaLinux. Example: voxpupuli/puppet-autofs@8fa684c

I see that in #359. :)


Image loaded, with glide, flickers

I am using the cards, that have an ImageView with the content loaded from the web/cache with glide.
When the top card is moved, I see the next card with ImageView that has a picture loaded into it.
However, once the top card goes away, adapter gets datasetchanged event and re-inflates all cards' views. That causes the next card to re-load the image and it blinks.
Any ideas how to work around this issue?

Hi,
How to add images . Can you please share the code ?

Hi,
How to add images . Can you please share the code ?

I do it like this.
If user has an image uploaded in DB, we get the default method and load this image, orhetwise, we set user's image like default profile image.
        switch (card_item.getProfileImageUrl()) {
            case "default":
                Glide.with(convertView.getContext()).load(R.mipmap.ic_launcher).into(image);
                break;
            default:
                Glide.with(convertView.getContext()).load(card_item.getProfileImageUrl()).into(image);
                break;
        }

Hi
I am using this but I did'nt get appropriate result . Can you check this out please .
SwipeCardsAdapter lAdapter;
ArrayList ex1
ex1 = new ArrayList();
ex1.add(R.drawable.image1);
ex1.add(R.drawable.image2);
ex1.add(R.drawable.image3);
ex1.add(R.drawable.image4);
    lAdapter = new SwipeCardsAdapter(MainActivity.this, ex1);
    Log.d("images", String.valueOf(ex1));
    flingContainer.setAdapter(lAdapter);

    flingContainer.setFlingListener(new SwipeFlingAdapterView.onFlingListener() {
        @Override
        public void removeFirstObjectInAdapter() {
            // this is the simplest way to delete an object from the Adapter (/AdapterView)
            Log.d("LIST", "removed object!");
            ex1.remove(0);
            //al.remove(0);
            //arrayAdapter.notifyDataSetChanged();
            lAdapter.notifyDataSetChanged();
        }

		@Override
        public void onAdapterAboutToEmpty(int itemsInAdapter) {
            // Ask for more data here
            ex1.add(itemsInAdapter);
            lAdapter.notifyDataSetChanged();
            Log.d("LIST", "notified");
            i++;
        }


HOSTEDCP-2077: [CPO Refactor] Refactor kube-scheduler

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #
Checklist

[ ] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/retest

/approve

/lgtm

/override "Red Hat Konflux / hypershift-operator-main-on-pull-request"


[SPARK-45247][BUILD][PYTHON][PS] Upgrade Pandas to 2.1.1

What changes were proposed in this pull request?
This PR proposes to upgrade Pandas to 2.1.1.
See https://pandas.pydata.org/docs/dev/whatsnew/v2.1.1.html for detail
Why are the changes needed?
Pandas 2.1.1 is released, and we should support the latest Pandas.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

The existing CI should pass
Was this patch authored or co-authored using generative AI tooling?

No.

Merged to master for Apache Spark 4.0.0.


Application Insights no longer provides generateAnswer url for my bot

Previously I was using the Application Insights to get QnA Maker insights based on my bot questions and answers.
Before I dive in, this issue was reported here but was then closed.
If I run the following query I don't seem to get back a URL that ends with generateAnswer for some reason. Below I've listed the output for just the urls that do exist in my query.
Query
requests | distinct url
Output
http://teamsqnabot-fha.azurewebsites.net/default.htm
https://teamsqnabot-fha.azurewebsites.net/content/Notifications.png
https://teamsqnabot-fha.azurewebsites.net/content/Enduserchat.png
https://teamsqnabot-fha.azurewebsites.net/content/Ticketsystem.png
https://teamsqnabot-fha.azurewebsites.net/content/Sharefeedback.png
https://teamsqnabot-fha.azurewebsites.net/content/Askaquestion.png
https://teamsqnabot-fha.azurewebsites.net/content/Expertinquiry.png
https://teamsqnabot-fha.azurewebsites.net/api/messages
I also tried to do a simple inner join to the traces table from my requests table where my requests id = operation_ParentId, which doesn't show any output.

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

ID: 82bd07c0-ce21-9630-4aea-c93190c227fa
Version Independent ID: f1912f4f-df33-edf2-9efe-3b7ae9e77876
Content: Analytics on knowledgebase - QnA Maker - Azure Cognitive Services
Content Source: articles/cognitive-services/QnAMaker/How-To/get-analytics-knowledge-base.md
Service: cognitive-services
Sub-service: qna-maker
GitHub Login: @nerajput1607
Microsoft Alias: nerajput

Thanks for the feedback! We are currently investigating and will update you shortly.

Thanks for the feedback! We are currently investigating and will update you shortly.

Hello Neha, could you please help to check this issue and update the code sample? Thanks a lot.

@colbytimmsl -
The list of URLs in the requests output are related to the Web App which hosts the Bot. QnAMaker Cognitive Service uses a different Web App, and can you please verify if Application Insights is configured there?
Also please verify if all the application insights configurations mentioned in this doc are configured in the QnaMaker Web App - https://docs.microsoft.com/en-us/azure/cognitive-services/qnamaker/reference-app-service?tabs=v1

@rokulka is correct. I was querying the wrong App Insights resource. Closing this ticket.


Drop 'Database.read' and 'Database.execute_sql' convenience methods.

Because the context managers they use returned the session to the database's pool, application code could not safely iterate over the result sets returned by the methods.
Update docs for Snapshot.read and Snapshot.execute_sql to emphasize iteration of their results sets before the session is returned to the database pool (i.e., within the with block which constructs the snapshot).
Closes #3769.

Not waiting for appveyor.


UI/UX of Application form for an Counsellor App

I will make UI/UX of Application form for Counsellor form where we can collect information for counsellor app . I will also some attached the backend code.
@thestarsahil Sir kindly assigned me these issue

@thestarsahil Sir kindly assigned me these issue

@thestarsahil Sir kindly assigned me these issue

@thestarsahil ?

Sounds Good !
Work on Data, Collecting The information from User and Intergrate to Firebase
Our Web Repo is intergrated with Firebase , So that will be easy
As such same user can open the Web portal and App