Software Carpentry broken link fix in developer guide

Generalised all the software-carpentry links in the developers guide.  Fixes #240

I created a new branch (sc-devfix) for just fixing the broken links in the developers guide, but it's showing all my commits for pad_arrays.  Did I accidentally branch a branch?  Can you do that?

@drandykass well, there is probably a way do it without deleting the branch and staring over. Though knowing git I don't think it will be easy.
Probably better to make a new branch from master, copy over the file from this branch, and make a new commit.
You'll want to pull in the changes from the master of fatiando/fatiando. You can do this by:

Adding the fatiando/fatiando repo as a remote (if you haven't already):
 git remote add upstream https://github.com/fatiando/fatiando.git

Pull in the commits from upstream master to your branch:
 git checkout MY_BRANCH
 git pull upstream master

Also, don't worry about this sort of thing. It happens all the time. Sadly, even after years using git :disappointed:

https://xkcd.com/1597/
Why would I add the fatiando/fatiando repo rather than continuing to use my
fork?  What's the theory there?
On Thu, Dec 3, 2015 at 2:52 PM, Leonardo Uieda<EMAIL_ADDRESS>wrote:

Also, don't worry about this sort of thing. It happens all the time.
Sadly, even after years using git [image: :disappointed:]
—
Reply to this email directly or view it on GitHub
https://github.com/fatiando/fatiando/pull/244#issuecomment-161796442.

--
Dum inter homines sumus, colamus humanitatem.

https://xkcd.com/1597/

Hahaha that pretty much sums it up. I use that comic in the git part of my class.

Why would I add the fatiando/fatiando repo rather than continuing to use my fork? What's the theory there?

Well, your fork is a separate repository from fatiando/fatiando (I'll call this upstream). So your master branch is not the same the master of upstream. Since I merged #242 today there will be commits in upstream master that you don't have in your fork. When you create a branch from your master, it will be behind upstream master by a few commits. This wouldn't be a problem except that the PR changes the doc/changelog.rst file, which you'll change as well. So this would create a conflict.
The way around this is to always update your branches with the latest from upstream master. The commands above don't replace your fork with fatiando/fatiando, it  juts adds another option to pull commits from. Your fork is still the "origin" remote. Yeah, it gets kind of confusing with all the jargon.
For example, you can fetch the latest commits from upstream to your clone, then push them to your forks master branch like so:
git checkout master
git pull upstream master
git push origin master

OK, this pull request can be deleted.  PR 245 supersedes this pull request, and should have been done properly, as per @leouieda instructions.


add get_agent_deltas to ape_utils

from a transaction_recept:

get the inputs from event_arguments
parse the relevant logs to get outputs
calculate mint_time from maturity_time minus term_length
switch across 6 transaction types and create agent_deltas Wallet in line with elf-sims

fixes: #396

Codecov Report
Patch and project coverage have no change.

Comparison is base (1c038c7) 84.53% compared to head (2fac044) 84.53%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #420   +/-   ##
=======================================
  Coverage   84.53%   84.53%
=======================================
  Files          32       32
  Lines        4191     4191
=======================================
  Hits         3543     3543
  Misses        648      648

Flag
Coverage Δ

unittests
84.53% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Stable release 2.0.0

Time for the big release, last chance to find any remaining important issues before release.
PS: This depends on the readme/manpage PR #865.

Hi.  I'd be happy to test zlib-ng inside c-blosc2.  One of the decisions we have made there is that we must be able to vendor the different codecs that c-blosc2 uses, so we typically put them in a dedicated directory inside the c-blosc2 dir structure.  Right now, we are using miniz, and I have tried the next patch for compiling with zlib-ng instead:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7930e5b..9c3df43 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -153,12 +153,12 @@ if(NOT DEACTIVATE_ZLIB)
         set(ZLIB_ROOT $ENV{ZLIB_ROOT})
         find_package(ZLIB)
         if(NOT ZLIB_FOUND)
-            message(STATUS "No ZLIB found.  Using MINIZ internal sources.")
-            set(HAVE_MINIZ TRUE)
+            message(STATUS "No ZLIB found.  Using ZLIB-NG internal sources.")
+            set(HAVE_ZLIB TRUE)
         endif()
     else()
-        message(STATUS "Using MINIZ internal sources for ZLIB support.")
-        set(HAVE_MINIZ TRUE)
+        message(STATUS "Using ZLIB-NG internal sources for ZLIB support.")
+        set(HAVE_ZLIB TRUE)
     endif()
     # HAVE_ZLIB will be set to true because even if the library is not found,
     # we will use the included sources for it
@@ -356,6 +356,9 @@ endif()

 # subdirectories
 add_subdirectory(blosc)
+set(ZLIB_COMPAT TRUE)
+add_subdirectory(internal-complibs/zlib-ng-2.0.0-RC2)
+

 if(BUILD_TESTS)
     enable_testing()
diff --git a/blosc/CMakeLists.txt b/blosc/CMakeLists.txt
index 21ead9e..6c67b7c 100644
--- a/blosc/CMakeLists.txt
+++ b/blosc/CMakeLists.txt
@@ -32,7 +32,7 @@ if(NOT DEACTIVATE_ZLIB)
     if(ZLIB_FOUND)
         set(BLOSC_INCLUDE_DIRS ${BLOSC_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR})
     else()
-        set(ZLIB_LOCAL_DIR ${INTERNAL_LIBS}/miniz-2.0.8)
+        set(ZLIB_LOCAL_DIR ${INTERNAL_LIBS}/zlib-ng-2.0.0-RC2)
         set(BLOSC_INCLUDE_DIRS ${BLOSC_INCLUDE_DIRS} ${ZLIB_LOCAL_DIR})
     endif()
 endif()

After that, the cmake output for c-blosc2 looks pretty good:
$ cmake ..
<snip>
-- Using CMake version 3.19.2
-- ZLIB_HEADER_VERSION: 1.2.11
-- ZLIBNG_HEADER_VERSION: 2.0.0-RC2
-- Arch detected: 'aarch64'
-- Basearch of 'aarch64' has been detected as: 'arm'
<snip>
-- The following features have been enabled:

 * CMAKE_BUILD_TYPE, Build type: Release (selected)
 * WITH_GZFILEOP, Compile with support for gzFile related functions
 * ZLIB_COMPAT, Compile with zlib compatible API
 * ZLIB_ENABLE_TESTS, Build test binaries
<snip>
-- Generating done
-- Build files have been written to: /Users/faltet/blosc/c-blosc2/build

but during the make step, I run into issues:
$ make
Scanning dependencies of target blosc2_static
[  0%] Building C object blosc/CMakeFiles/blosc2_static.dir/blosc2.c.o
In file included from /Users/faltet/blosc/c-blosc2/blosc/blosc2.c:50:
/Users/faltet/blosc/c-blosc2/internal-complibs/zlib-ng-2.0.0-RC2/zlib.h:218:1: error: unknown type name 'Z_EXTERN'
Z_EXTERN const char * Z_EXPORT zlibVersion(void);
^
/Users/faltet/blosc/c-blosc2/internal-complibs/zlib-ng-2.0.0-RC2/zlib.h:218:31: error: expected ';' after top level declarator
Z_EXTERN const char * Z_EXPORT zlibVersion(void);
                              ^
<snip>

Could you shed some light on what I am missing?  Thanks in advance.

Build files have been written to: /Users/faltet/blosc/c-blosc2/build
This line shows what the binary directory for the project is... But it is not the same that add_subdirectory expects... you need to pass binary directory as second parameter for add_subdirectory if any files are generated so the directory is added to include path.

Planned release tomorrow, Monday March 15th, unless we find any new blockers.

@Dead2: Please see #872.
(Also, thank you for all of your fantastic work!)

I will postpone the release for PR #875, since it could cause silent corruption.


Model user puzzle

Assignee Tasks

[x ] added unit tests (or none needed)
[x ] written relevant docs (or none needed)
[x ] referenced any relevant issues (or none exist)

Guidelines

don't think we need userImg column
will double check securities of  user essential info later

Your PR Notes Here

reopen


iOS Simulator is not supported

It would be good to state in the documentation that  Email.ComposeAsync(message) does not work in the iOS simulator.

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

ID: 51ff7357-2cd8-7988-ed3c-de156cc18211
Version Independent ID: ff242941-6d92-9523-bd73-ec03dbcb095d
Content: Xamarin.Essentials: Email - Xamarin
Content Source: docs/essentials/email.md
Product: xamarin
GitHub Login: @jamesmontemagno
Microsoft Alias: jamont

Thanks for the feedback @taimila


Solution doesn't work!

Hey guys, I was also having trouble with VSCode not finding the CMake generator. I'm working on a project for my university. I found that someone had posted some kind of solution and I followed the steps. I copied and pasted the lines of code to the right files, but it doesn't work!
It now shows an error: "Bad CMake executable "C:\msys64\mingw64\bin\cmake.exe". Is it installed or settings contain the correct path (cmake.cmakePath)?".
I am very very very inexperienced with files and this technical kind of stuff.  I added the files that my university gives us for the assignment. Does anybody know what I can do?

CMakeLists.txt
secret.txt

CMake Tools Diagnostics

<!-- Paste the `CMake: Log Diagnostics` output HERE -->

Debug Log

<!-- Paste the debug log contents HERE -->

@driesvanheeswijk, do you confirm that there is a cmake.exe at the mentioned path?
If not, find where it is installed on your system and point the extension to that path via the setting "cmake.cmakePath" in your project .vscode/settings.json.
Let us know how it goes.


Make callable return lvalue reference if necessary

This is a requirement for some external libraries that have callable that do stuff like
kyosu::real(z) = 9;

Where real is a function object based on eve::callable.

Wait - no - this will mess up the enums

Yes indeed, I'll fix the external libraries internally.


Dbg - Better Gen

Changes the impl for Inspect on opaque types from payload to @Opaque payload. when using Opaque := payload implements [Inspect]
Changes roc_dbg to take the location (file_path:line_number) and the actual src in the dbg expression. This enables print outs that are identical to what you would get in rust.
Also changes the debug derivation to Inspect.toInspector x |> Inspect.apply (Inspect.init {}) |> Inspect.toDbgStr |> LowLevelDbg instead of Inspect.Inspect x |> Inspect.toDbgStr |> LowLevelDbg.
This final change hits an issue: 'Module Inspect not found in world abilities', crates/compiler/late_solve/src/lib.rs:80:32. I assume this is related to #6128, but a fix was not obvious to me. @ayazhafiz any ideas? fixed

This second change hits an issue: 'Module Inspect not found in world abilities', crates/compiler/late_solve/src/lib.rs:80:32.

For what case did you observe this?

Repro:
app "time"
    packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br" }
    imports [
        pf.Stdout,
        pf.Task,
        pf.Utc,
    ]
    provides [main] to pf

main =
    start <- Utc.now |> Task.await
    dbg start

    Stdout.line "Done"

This is now backwards compatible and platforms with 2 arg dbg will just keep working the exact same.
I also threw in an extra feature and fixed roc_dbg when used in roc test.
Assuming https://github.com/roc-lang/roc/issues/6121 isn't broken, this is ready to merge....If it is still broken on some platfroms, not exactly sure my plan. Hopefully it would be something minor that I can just temporarily disable.
Anyway. This is ready for review.


Opening a png image via keyboard shortcuts breaks tab/treeview keyboard navigation

Use treeview to browse to a png file
Hit enter to open and view png file
Note that you can no longer user Ctrl-0 to return focus to treeview, and Ctrl-tab to switch tabs until you click on another file in treeview to open it, or another tab. Then it works again.

If the image was opened previously, and you select it again in treeview, it seems navigation doesn't always break. Open the image for the first time via treeview seems to always break it.
Atom 1.0.2
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=17.1
DISTRIB_CODENAME=rebecca
DISTRIB_DESCRIPTION="Linux Mint 17.1 Rebecca"

I'm having trouble reproducing this on OSX. Can someone on linux try and reproduce? /cc @atom/feedback
Also, @DanielJoyce -- do you see the problem in safe mode?


Task fails when there are no test resources

A project without test resources should be accepted (?).
Everything (the actions) continue, but I'd prefer to have a clean output without red error messages.
From the output:
DEBUG - Executing task 'Create test archive' (runner.py:43)
DEBUG - Executing task 'Create class archive' (runner.py:43)
DEBUG - Executing task 'Remove test resources' (runner.py:43)
	[TASK] ERROR - 'out/assignment/src/test/resources' doesn't match any files, set 'force' to ignore
'out/assignment/src/test/resources' doesn't match any files, set 'force' to ignore
DEBUG - ✓ Prepared :) (runner.py:130)
Error code: 1

Note, there are a few warnings earlier on this as well, perhaps at 'info' level would be better?
DEBUG - Executing task 'Copy main resources' (runner.py:43)
[TASK] WARNING - Glob 'solution/src/main/resources' doesn't match any files
Glob 'solution/src/main/resources' doesn't match any files
DEBUG - Executing task 'Copy test resources' (runner.py:43)
[TASK] WARNING - Glob 'solution/src/test/resources' doesn't match any files
to reproduce: run on a project without test resources.

Not part of 'core', problem with a custom action.


Fix backend workflow

With a recent update to github set-env and add-path commands were deprecated
Read more here => https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
and because actions/setup-go uses internally these commands our ci was failing

Thanks @knrt10 for the help


feat: add 'pretty' parameter to optimize JSON serialization performance

This pull request introduces an optimization to the add method of the FileSystemSink class by allowing the specification of the pretty parameter. The default setting pretty=True in the fp_serialize function negatively impacts the insertion performance of large STIX objects. In some cases, such as XMitreCollection Enterprise ATT&CK, the addition may fail, crashing the thread. Setting pretty=False mitigates this problem, significantly improving performance.
Rationale
By allowing the pretty parameter to be specified in the add method, users can choose to disable "pretty" formatting when saving STIX objects, resulting in significant performance improvements, especially when dealing with large volumes of data.
Performance Tests

Performance: Insertion with pretty=False is approximately twice as fast compared to pretty=True.

Tue Jul  9 20:34:07 2024    ./pretty_true.txt

         267530643 function calls (261758598 primitive calls) in 395.561 seconds

   Ordered by: internal time
   List reduced from 1060 to 10 due to restriction <10>

   ncalls       tottime  percall  cumtime  percall filename:lineno(function)
   157612       118.332    0.001  118.332    0.001 {method 'read' of '_ssl._SSLSocket' objects}
   615930       24.570    0.000   25.648    0.000 {built-in method io.open}
557607/185998   18.579    0.000  108.664    0.001 /openstix-python/.venv/default/lib/python3.10/site-packages/stix2/base.py:115(__init__)
  1231019       13.523    0.000   15.540    0.000 {built-in method posix.stat}
   932494       10.714    0.000   10.714    0.000 {method 'write' of '_io.TextIOWrapper' objects}
   186047       10.701    0.000   10.701    0.000 {built-in method posix.mkdir}
   859476       10.171    0.000   10.719    0.000 {method '__exit__' of '_io._IOBase' objects}
   185998       6.705    0.000   22.124    0.000 /openstix-python/.venv/default/lib/python3.10/site-packages/simplejson/encoder.py:306(iterencode)
   371996       5.351    0.000    9.555    0.000 /usr/lib/python3.10/_strptime.py:309(_strptime)
      391       5.151    0.013    5.151    0.013 {method 'do_handshake' of '_ssl._SSLSocket' objects}

Results with pretty=False:
Tue Jul  9 20:34:15 2024    ./pretty_false.txt

         125050663 function calls (118632644 primitive calls) in 117.531 seconds

   Ordered by: internal time
   List reduced from 1015 to 10 due to restriction <10>

   ncalls       tottime  percall  cumtime  percall filename:lineno(function)
   327985       13.913    0.000   14.160    0.000 {built-in method io.open}
   147785       13.138    0.000   13.138    0.000 {method 'read' of '_ssl._SSLSocket' objects}
   571531       5.123    0.000    5.692    0.000 {method '__exit__' of '_io._IOBase' objects}
   655506       5.101    0.000    5.879    0.000 {built-in method posix.stat}
126659/42220    4.598    0.000   26.854    0.001 /openstix-python/.venv/default/lib/python3.10/site-packages/stix2/base.py:115(__init__)
    42264       2.481    0.000    2.481    0.000 {built-in method posix.mkdir}
5826222/2237607 2.266    0.000   14.854    0.000 /openstix-python/.venv/default/lib/python3.10/site-packages/simplejson/encoder.py:677(_iterencode)
   243585       1.851    0.000   31.258    0.000 /usr/lib/python3.10/zipfile.py:1664(_extract_member)
   243856       1.676    0.000    1.676    0.000 {method 'decompress' of 'zlib.Decompress' objects}
1393227/464409  1.654    0.000    4.674    0.000 /openstix-python/.venv/default/lib/python3.10/site-packages/stix2/serialization.py:159(find_property_index)

**Testing with a large dataset: Using the dataset mitre-atlas:

With pretty=True, the process was stopped after 301 seconds, generating 596K of incomplete data.
Wed Jul 10 20:49:26 2024    ./pretty_true_atlas.txt

<PHONE_NUMBER> function calls<PHONE_NUMBER> primitive calls) in 301.613 seconds

   Ordered by: internal time
   List reduced from 971 to 10 due to restriction <10>

   ncalls           tottime  percall  cumtime  percall filename:lineno(function)
220871233/18172     124.048    0.000  286.845    0.016 /openstix-python/.venv/default/lib/python3.10/site-packages/stix2/serialization.py:159(find_property_index)
590821359/590821355 52.875    0.000  105.371    0.000 {built-in method builtins.isinstance}
73587421/18160      42.840    0.000  286.805    0.016 /openstix-python/.venv/default/lib/python3.10/site-packages/stix2/serialization.py:137(_find_property_in_seq)
221211256           26.982    0.000   52.497    0.000 /usr/lib/python3.10/abc.py:117(__instancecheck__)
221211256           25.511    0.000   25.514    0.000 {built-in method _abc._abc_instancecheck}
220871233           10.677    0.000   10.677    0.000 {method 'isdigit' of 'str' objects}
 73551105           4.198    0.000    4.198    0.000 {method 'values' of 'dict' objects}
      924           3.480    0.004    3.480    0.004 {method 'read' of '_ssl._SSLSocket' objects}
  52483/1           1.613    0.000    9.912    9.912 /openstix-python/.venv/default/lib/python3.10/site-packages/stix2/base.py:115(__init__)
  1375284           0.605    0.000    1.170    0.000 /usr/lib/python3.10/collections/__init__.py:1000(__contains__)

With pretty=False, the process completed in 17 seconds, generating 90M of data.
Wed Jul 10 21:21:29 2024    ./pretty_false_atlas.txt

         31057698 function calls (30303084 primitive calls) in 17.029 seconds

   Ordered by: internal time
   List reduced from 979 to 10 due to restriction <10>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
  52925/2    1.599    0.000    9.891    4.946 /openstix-python/.venv/default/lib/python3.10/site-packages/stix2/base.py:115(__init__)
    21995    0.725    0.000    0.736    0.000 {built-in method io.open}
    22006    0.643    0.000    0.643    0.000 {built-in method posix.mkdir}
  1385596    0.607    0.000    1.174    0.000 /usr/lib/python3.10/collections/__init__.py:1000(__contains__)
    21991    0.602    0.000    2.389    0.000 /openstix-python/.venv/default/lib/python3.10/site-packages/simplejson/encoder.py:306(iterencode)
    66011    0.535    0.000    0.535    0.000 {built-in method posix.stat}
      959    0.523    0.001    0.523    0.001 {method 'read' of '_ssl._SSLSocket' objects}
   884643    0.465    0.000    0.796    0.000 /openstix-python/.venv/default/lib/python3.10/site-packages/simplejson/encoder.py:39(encode_basestring)
  1385596    0.438    0.000    1.807    0.000 /usr/lib/python3.10/collections/__init__.py:988(get)
    44034    0.373    0.000    0.635    0.000 /usr/lib/python3.10/_strptime.py:309(_strptime)

Checklist

[X] I have signed the Individual Contributor License Agreement (CLA)
[X] I have read the Contribution Guide
[X] I ran the unit tests and they all passed
[X] Added/updated documentation as necessary

 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.

Thanks a lot for the contribution.


python310Packages.nomadnet: 0.2.0 -> 0.2.1, python310Packages.rns: 0.3.10 -> 0.3.11

Description of changes

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

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

6 packages built:

python310Packages.lxmf
python310Packages.nomadnet
python310Packages.rns
python39Packages.lxmf
python39Packages.nomadnet
python39Packages.rns


In Progress: changed all options.db to options.PouchDB in lines 19-59

Next step is to adapt server-test.js
https://github.com/hoodiehq/camp/issues/51

@jeanhl do you want to continue working on this? I’d be happy to help if you have any questions?

I'm planning on revisiting this issue but I don't think I can do it in a
timely manner. I'll need to read the code and understand what's the need
first.
I thought it was a simple replacement from options.db to options.PouchDB
but it seems more complicated than that. Polina thinks I need to write new
tests for the code.
On Fri, Nov 18, 2016 at 1:43 AM, Gregor Martynus<EMAIL_ADDRESS>wrote:

@jeanhl https://github.com/jeanhl do you want to continue working on
this? I’d be happy to help if you have any questions?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hoodiehq/hoodie/pull/638#issuecomment-261489625, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ATZqPmaNRcZCPHuSoJdTjOG3QugMm7AKks5q_XMlgaJpZM4KzX8K
.

Polina thinks I need to write new tests for the code.

yes, most likely. Don’t worry if you can’t make it, just let us know, but I’m happy to help you get trough it, too :)

hey @jeanhl I’ll close this pull request in favor of #651, but please let me know if you’d like to work on something else, ok? I’d be happy to help find something and help you get started :)


Ignore .python-version file

Thanks for the interest! But I'm not really sure what this is about, what does it help with or what tool would use or generate this file, so I'll pass on this one.
I think it would probably be better to start with a GitHub Discussion question, filling all the template data with all the details, that would help me/us understand your use case and help you: https://github.com/tiangolo/fastapi/discussions/new?category=questions


Add Attribution.txt and LICENSE files in the archive file created by Makefile build-all

🚀 Feature Request
Each Archive file - *tar.gz and *zip , created as a result of executing make build-all should contain the CLI executable and Attribution.txt, LISENCE and ReadME files.
This request is inspired by the DevOps WG meeting on Sep 24,2020
Description
 A clear and concise description of the problem or missing capability...
Describe the solution you'd like
 If you have a solution in mind, please describe it.
Describe alternatives you've considered
 Have you considered any alternative solutions or workarounds?

Closed by #325


Currency prop is not populating in Stripe

I specify the currency to "USD" or "usd" and the response card info doesn't have the currency field on it. It also doesn't populate in my Stripe logs. It seems that the currency field is not getting sent to Stripe properly.

Do you see $ sign near the amount value? I use EUR code and it works, euro symbol is displayed.

I am not creating a charge, I am creating a token for the card so I can create a custom connect account within stripe.


The Percona PMM logo has been updated

Percona Monitoring and Management was added to PRs:
https://github.com/civo/kubernetes-marketplace/pull/373
However, the logo was wrong and needed to be corrected

@saiyam1814 this is fix for something you suggested in https://github.com/civo/kubernetes-marketplace/pull/373#issuecomment-1381634448

@dbazhenov after rebranding, we have a new logo ;)


Example using the new YML syntax

Hi, could you please provide an example about how to use rsync-deployments using the new YML syntax provided by Github Actions?

I've proposed an attempt to do that in #7.

- name: Deploy to Staging
  uses<EMAIL_ADDRESS>  env:
    DEPLOY_KEY: ${{secrets.DEPLOY_KEY}}
  with:
    args: "-avzr --delete --exclude .htaccess --exclude /uploads/ user@server.com:/srv/myapp/public/htdocs/"

For whoever is landing up here, I recommend ditching the pre-made rsync actions and going either fully manually or use simpler helper like ssh-agent:
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup SSH agent
        uses<EMAIL_ADDRESS>        with:
          ssh-private-key: ${{ secrets.DEPLOY_SSH_KEY }}
      - name: Setup known_hosts
        run: echo 'my.host.io ssh-rsa AAAAB3....+8U=' >> ~/.ssh/known_hosts
      - name: Sync project files
        run: rsync -avzr --delete ${GITHUB_WORKSPACE}/ user@my.host.io:/srv/files/

(you can generate the line for known_host with ssh-keyscan, or simply copy it from your own known_hosts)
The reasons being:

Secure - you provide a specific SSH fingerprint, so the workflow will fail on MitM or DNS attacks (unlike this action, which runs with -o StrictHostKeyChecking=no)
Simpler - you have full control over the rsync command without having to remember which action args go where


User can upload product image on cloudinary

What does this PR do?
User should be able to add images of a product
Description of Task to be completed?

The minimum images for each product is 4 images and maximum of 8 images
Images are stored on cloud server and access using cloudinary links

How should this be manually tested?

Clone the repository using git clone link

Checkout to the branch using git checkout <branch-name>

Install node packages that the application depends on: npm i

Create a .env file in the root directory and add all environment variables required to run the application. The required variables are listed in the .env.example file available in root directory of the application.

Start the application development server: npm run dev

Test addProduct route  logged in as admin or a seller

Any background context you want to provide?

You can read more about uploading assets and image transformation on Cloudinary

What are the relevant pivotal tracker/Trello stories?
#185029197

This PR is throwing unresolved errors in test, thee other corresponding PR is opened!


automatically extract timestamps from date and datetime objects

PROBLEM
Currently, a user has to manually define the timestamp property on the model and define the value on the typesense field

Hey @EricOuma I've looked into this, does this involve overriding the value method for TypesenseDateField, TypesenseDateTimeField and TypesenseTimeField?

Yeah. I have already worked on it
On Thu, 9 Nov 2023 at 20:00, Kengo Wada @.***> wrote:

Hey @EricOuma https://github.com/EricOuma I've looked into this, does
this involve overriding the value method for TypesenseDateField,
TypesenseDateTimeField and TypesenseTimeField?
—
Reply to this email directly, view it on GitHub
https://github.com/Siege-Software/django-typesense/issues/37#issuecomment-1804210331,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH4HSZEME6WZC5AR6EYLII3YDUD4VAVCNFSM6AAAAAA7EA4URSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBUGIYTAMZTGE
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Work hard and smart Anywhere with the resources you have.

Resolved by #40


Indexing Issue

Our team is using mediapipe for 3D pose estimation in a hallway using 4 cameras. We are encountering an issue where the skeleton from one camera seems to be placed on another camera (ie skeleton from camera 1 is placed over the view of camera 3). Has anyone encountered a similar problem/have a solution?

Hi @DestroytheCity,
Is it implemented through Python, Javascript or other solutions available in the MediaPipe. Could you let us know the complete steps followed and sample images to understand the issue better from our end. Thank you!

Hi @kuaashish! We are running python on Ubuntu. Attached is a sample image

Hi @DestroytheCity,
Could you please confirm that you are still looking for resolution or the issue has been resolved. Thank you!


Can't stack more than 42 aufs layers

Hello, thanks for this fabulous project
I'm encountering quite often an issue that I associate to broken images. In fact sometimes when I create a container, I'm getting the following error :
docker run -i -t #image# bash
2013/07/09 14:40:06 Error: Error starting container 042c2188714f: Unable to mount using aufs

However AUFS is working fine, using base image is just ok. The only way to use that image is to remove it and rebuild it again. What can be the causes of this image corruption ?
Thank you.
However, aufs is completely working

I can reproduce this on 1.10.3 . Any reason why this is closed?

@agherzan If you are reproducing a 42-layer issue, then most likely it's due to how your aufs kernel module is compiled.
We do have a 127 layer hard limit for all storage drivers, however.
What's your setup?

Are you referring to the max branch config of aufs? @cpuguy83

@agherzan Yes.

@cpuguy83 I have 127
CONFIG_AUFS_FS=y
CONFIG_AUFS_BRANCH_MAX_127=y

Just for reference I will tell here what happened in my case for people to benefit from it.
I was using docker 1.6 which hardcodes the page size of arm64 to 64. This made docker generate aufs mount commands that would make options not fit in 4K. In my case the kernel is configured without 64K page size support so mount command would return invalid argument due to string truncation as it uses a page size as maximum option size.
There are some patches in master (of golang) which removes this static behaviour and detects the pagesize at runtime. (https://go-review.googlesource.com/#/c/25021/) Backporting these fixed my problem.

@agherzan Thanks for the report!
I assume you mean go 1.6 and not docker 1.6?

Edited to clarify @cpuguy83 . Typo.

Thanks again!


Add richer exception info to all of the dbt exceptions

Implement error codes according to the RPC spec. Pick a subrange of the available codes, assign each exception a code. Add a user readable, static message to each exception.
Make sure that dbt returns the right codes and messages

Fixed in #1341


Tools/Software To turn an Android Smartphone into a Laptop/PC external speaker/audio

Are there any tools from Genymobile to turn an Android smartphone into external speakers/audio for a laptop/PC? The problem is, I've looked for software/tools on the internet and there aren't any. Meanwhile, my laptop/PC doesn't have an audio driver. Thank you 🙏🙏🙏

Nope, sorry.

Ok


PIXI.sound not working in IE11 via webpack

I know in the past I've had PIXI.sound working in IE11, but on my new project which is ES6 it fails just by importing as per the demo:
import 'pixi-sound'
will get this: : Object doesn't support property or method 'addEventListener'
relating to this line: e.addEventListener("canplaythrough",i,!1)

Please provide more information or an example that reproduces the problem.
Specifically versions of PixiJS, Webpack, pixi-sound?

apologies.
"pixi-sound": "^3.0.3",
"pixi.js-legacy": "^5.1.3",
"webpack": "^3.11.0",
I thought I would try to investigate, andI  have now isolated the issue.
Essentially, the problem with IE11 is trying to pass files to the loader like this:
{
name: 'sfx',
url: this.assetPath + 'audio/sfx.{mp3,ogg,m4a,ac3}',
preload: true
},
with IE you can only import MP3, I basically get around this by using this:
let audio_suffix = isIE11 ? '.mp3' : '.{mp3,ogg,m4a,ac3}';

That makes me think IE11 has a problem with identifying different types. Maybe it's getting hung up on ac3 which is not in the list of extensions I'm checking for. You could try to remove and see if that does anything.
Here's the reference source code:
https://github.com/pixijs/pixi-sound/blob/master/src/utils/supported.ts
Could . you try to do something simple like and make sure this returns something?
document.createElement("audio").canPlayType('audio/ogg')

Also, please refer to this boilerplate Webpack project: https://github.com/bigtimebuddy/pixi-sound-webpack-example/
You should not be importing pixi-sound like this: import 'pixi-sound'; anymore.

I tried stripping out the file types, getting down to .{mp3} and they all create the initial error.
trying this in IE11:
console.log(document.createElement("audio").canPlayType('audio/ogg'))
console.log(document.createElement("audio").canPlayType('audio/mp3'))
console.log(document.createElement("audio").canPlayType('audio/ac3'))
console.log(document.createElement("audio").canPlayType('audio/m4a'))
gets a 'maybe' for mp3, all the others are blank.
(I had noted about the imports, and changed it back, but not updated the post.)

What's what I'd expect.
Could you maybe try to debug this code in your project? This is the functionality that parses the {format,format2,format3} business from your load path.
https://github.com/pixijs/pixi-sound/blob/master/src/utils/resolveUrl.ts

Interestingly resolveUrl correctly returns the mp3.

Ok, I've spent a bit of time looking into this, and I'm not at all clear why it isn't working.
On IE11 the url is correctly evaluated, but for some reason if you use the filetypes the resource.data (in SoundLoader use) is not an HTMLAudioElement, I think it must be reference to the sound file itself.
Debugging in IE is an absolute pig.

Hmm I wonder if this is a loader issue. What is the data type instead of an Audio element?

If you just pass the mp3 to the loader the data is an audio tag in the page, if you pass the filetypes, it seems to be passing the mp3.
It's not very clear because the console shows a lot of gibberish (which it won't let me copy!!), but includes the text LAME3.99r.
I'm sorry if all this is a little vague.


Fix deprecations in PHP 8

Fixes #13

Do you have an idea how that can be tested properly, besides manual checks?
I couldn't entirely grasp where this code is used and what it is for.
I just see the triggered deprecations, so the code path is used.

Most things are tested here over the UsersController test I think: https://github.com/handcraftedinthealps/RestRoutingBundle/blob/d0e43e7f12bb6a24f1feaef29a42e1684023fa64/Tests/Routing/Loader/RestRouteLoaderTest.php#L29-L46 which just test it against some yaml configuration.

I will do some more testing and come back to you later

@kevinpapst just ping me if you think its ready :)

Results from my API integration test suite:
PHP 7.4 with this branch worked without problems.
PHP 8 with master:
OK (240 tests, 2740 assertions)
Unsilenced deprecation notices (386)
Remaining indirect deprecation notices (10)

PHP 8.0 with this branch
OK (240 tests, 2747 assertions)
Unsilenced deprecation notices (18)
Remaining indirect deprecation notices (10)

The left over deprecations are coming from other bundles ... one fix after another 😁
Everything seems to work as before.
Please note that I have not tried to use explicit PHP 8 features (namely the union types).
All I wanted to fix in this step was the deprecation.
@alexander-schranz from my side: good to go

@kevinpapst Thank you!


When using iota, the logic is confused. Is that a bug?

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

$ go version
1.13

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/chezixin/go"
GOPRIVATE=""
GOPROXY="https://goproxy.io"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/chezixin/go/src/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/mr/_x323k891dq9yvmvlgwqf4f40000gn/T/go-build490011880=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

package main
import "fmt"
type T struct {
Name  string
Port  int
State State
}
type State int
const (
Running State = iota
Stopped
Rebooting
Terminated
)
func (s State) String() string {
switch s {
case Running:
return "Running"
case Stopped:
return "Stopped"
case Rebooting:
return "Rebooting"
case Terminated:
return "Terminated"
default:
return "Unknown"
}
}
func main() {
t := T{Name: "example", Port: 6666}
fmt.Printf("t %+v\n", t)
}
###Result：
t {Name:example Port:6666 State:Running}
What did you expect to see?
What did you see instead?
Although string is rewritten, this is related to State. const.
I print T struct in main. Zero is 0.
But why do we show State:Running?
When T. State = 0, why does the program think T. State = const. Running?
I understand it as follows:
String is an interface type, T. State = 0, const. Running = 0. The two types are the same, the value is the same. Does the program think that the two are equal? Do you not distinguish const from struct at the moment?
Logically, const and struct should be distinguished, but the program thinks they are equal. Is that a bug? Or did I go into a misunderstanding?
Can you tell me how to understand it correctly?
Thanks very much
Thank you

I'm not sure I understand the problem/question, but it's been helpful in the past to state the obvious, so...
State implements https://golang.org/pkg/fmt/#Stringer so when you print it, the fmt package will call State.String() to get its printable value instead of printing its underlying value.

As @DisposaBoy has stated, this is because any integral value for State will get stringified when printed with %+v, in this case the zero-value value of State is set, so Running will be printed instead. See https://yourbasic.org/golang/iota/
For more questions about Go, please feel free to ask it in any of these forums below:

Stack Overflow with questions tagged "go"

The Go Forum, a web-based forum

Gophers Slack, use the invite app for access. The #general channel is a good starting point.

Go Community on Hashnode with questions and posts tagged with "go"

The golang-nuts mailing list

IRC channel #go-nuts on Freenode

Thanks

@DisposaBoy
Thank you very much for answering my question.
I built State. String (), but this is only about const.
In switch logic, case judges const.
Why is it related to T (struct)?
This is where I can't figure it out. In switch, the program uses struct = const?
I think Unknown should be printed because the names of the two are different. Can't you tell names when you use iota?
I hope you can help me again.

@smasher164    Thank you very much. The article you recommended is very helpful. Thank you.

Here's an runnable example that demonstrates what I'm talking about: https://play.golang.org/p/GXFC04aBV_2
The switch doesn't see a struct, it still sees the State value. However, when passed the format specifier "%+v", the fmt package will reflect on the struct and recursively print all of a struct's members, calling its String() method if it's available. To not see this behavior, use a format specifier like "%#v" instead.


release <IP_ADDRESS> not compatible with --with-debug

The 1.12 release tarballs no longer contain debug binaries.  This was an intentional change, because these binaries are much larger to download and (we believe).  If people need PSOL built with debugging symbols they can use the new --psol-from-source option in the install script to build their own PSOL.  But the current implementation conflicts with --with-debug:
  checking for psol ... not found
  ./configure: error: module ngx_pagespeed requires the pagespeed optimization library.
  Look in /home/jefftk/nginx-1.11.6/objs/autoconf.err for more details.
  Error: Failure running './configure --add-module=/home/jefftk/ngx_pagespeed-latest-beta --with-http_ssl_module --with-debug', exiting.

The error file has:
  cc: error: /home/jefftk/ngx_pagespeed-latest-beta/psol/lib/Debug/linux/x64/pagespeed_automatic.a: No such file or directory

(I put --with-debug in when the automated installer asked for additional configure flags)

https://github.com/pagespeed/ngx_pagespeed/pull/1332 should fix this

As a workaround, if you want to use --with-debug with the precompiled binaries in <IP_ADDRESS> you can change buildtype=Debug to buildtype=Release in ngx_pagespeed/config.

Version <IP_ADDRESS> released, with the fix for this.


[BUG] dashboard A pplication-Out-Of-The-Box panel error

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

DeepFlow Component
Grafana Dashbaord
What you expected to happen
异常比例 panel 可以正常工作
How to reproduce
直接使用 panel 无数据加载
选择 edit 后，报错 An unexpected error happened
DeepFlow version
version: 6.3
app:
image /deepflow-ce/deepflow-app:v6.3-130
agent:
image: /deepflow-ce/deepflow-agent:v6.3-9183
image: /deepflow-ce/deepflow-agent:v6.3-9222
server
image: deepflow-ce/deepflow-server:v6.3-9220
DeepFlow agent list
No response
Kubernetes CNI
No response
Operation-System/Kernel version
Linux asm-yuanfang-p1693-0272 4.18.0-425.3.1.el8.x86_64 #1 SMP Fri Sep 30 11:45:06 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux

Anything else
An unexpected error happened
详情
Error: "palette-classic-by-name" not found in: fixed,thresholds,palette-classic,continuous-GrYlRd,continuous-RdYlGr,continuous-BlYlRd,continuous-YlRd,continuous-BlPu,continuous-YlBl,continuous-blues,continuous-reds,continuous-greens,continuous-purples

    at te (https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:4815:3701)
    at div
    at div
    at d (https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:1475:20)
    at div
    at div
    at https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:6035:17312
    at div
    at div
    at div
    at ne (https://<IP_ADDRESS>/clusters/region/grafana/public/build/215.c1c0320c66de376bf22b.js:125:13314)
    at r (https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:475:3184)
    at div
    at div
    at wa (https://<IP_ADDRESS>/clusters/region/grafana/public/build/DashboardPage.1e7a423a51eb0f3b27eb.js:65:4131)
    at div
    at div
    at ar (https://<IP_ADDRESS>/clusters/region/grafana/public/build/DashboardPage.1e7a423a51eb0f3b27eb.js:188:21)
    at div
    at c (https://<IP_ADDRESS>/clusters/region/grafana/public/build/1725.61e439b7c07502f68e23.js:1:2293)
    at div
    at c (https://<IP_ADDRESS>/clusters/region/grafana/public/build/1725.61e439b7c07502f68e23.js:1:4277)
    at J (https://<IP_ADDRESS>/clusters/region/grafana/public/build/1725.61e439b7c07502f68e23.js:1:9639)
    at div
    at div
    at div
    at y (https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:4847:1016)
    at cs (https://<IP_ADDRESS>/clusters/region/grafana/public/build/DashboardPage.1e7a423a51eb0f3b27eb.js:324:1093)
    at xt (https://<IP_ADDRESS>/clusters/region/grafana/public/build/215.c1c0320c66de376bf22b.js:154:127638)
    at WithTheme(Connect(cs))
    at nt (https://<IP_ADDRESS>/clusters/region/grafana/public/build/DashboardPage.1e7a423a51eb0f3b27eb.js:387:424)
    at DashboardPage
    at xt (https://<IP_ADDRESS>/clusters/region/grafana/public/build/215.c1c0320c66de376bf22b.js:154:127638)
    at Suspense
    at i (https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:1270:169)
    at cm (https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:9759:330)
    at Kt (https://<IP_ADDRESS>/clusters/region/grafana/public/build/215.c1c0320c66de376bf22b.js:158:13496)
    at Kt (https://<IP_ADDRESS>/clusters/region/grafana/public/build/215.c1c0320c66de376bf22b.js:158:15691)
    at main
    at dc (https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:9720:2498)
    at Kt (https://<IP_ADDRESS>/clusters/region/grafana/public/build/215.c1c0320c66de376bf22b.js:158:9783)
    at div
    at l (https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:2525:4092)
    at p (https://<IP_ADDRESS>/clusters/region/grafana/public/build/215.c1c0320c66de376bf22b.js:32:52076)
    at i (https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:5204:16801)
    at i (https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:1270:169)
    at f (https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:1270:720)
    at S (https://<IP_ADDRESS>/clusters/region/grafana/public/build/215.c1c0320c66de376bf22b.js:154:125332)
    at Am (https://<IP_ADDRESS>/clusters/region/grafana/public/build/7911.ea59f714e69d0d502e5c.js:9772:122)

Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

原因为 grafana init 镜像版本导致，例如当前 DeepFlow 版本为 v6.4，则 init 镜像 tag 需对应此版本


How do a server face recognition with Node.js?

Hello everyone, well I have a question about face-api.js and I do not understand how a nodej.js server would read for example base64 or a file, and transfer it to a string where it says it was recognized or something , I have done it before with Angular and Typescript, but the thing now is to pass it as a service and for a server to take care of the heavy load of detecting the face and not the browser, since it is currently somewhat slow, I did not find solutions in java , more than javacv or opencv, and those solutions did not work for me when it is validation (from 1 to 1 not from 1 an) with only 3 or 12 images of the same person (probe with 3 and 12), and I have not found any tutorial of how to work in node.js (since in case I gave up on java) and now I am looking to do the recognition service only in node.js, but as I said, I only found the previous api that was face-recognition.js and I read that the same author made him obsolete, so I chose to look for this one but as I said before, I can't find a tutorial, more than the mini guide of the same github, which I did monkey.env which I don't know how I would do if it was just a server in node.js and that works in CanvasHtml I think, help me please: 'v
in other words a web services in node.js

If you need real time, check detecting expression in #467, its same with recognition, using node-webRTC, if you only recognion a snapshot, you upload image from client and convert buffer image to Tensor and response with JSON
Code from stack overflow
NOTE: consumption of CPU and RAM is very High
"use strict";
require("@tensorflow/tfjs-node");
const tf = require("@tensorflow/tfjs");
const nodeFetch = require("node-fetch");
const fapi = require("face-api.js");
const path = require("path");
const { createCanvas, createImageData } = require("canvas");
const {
  RTCVideoSink,
  RTCVideoSource,
  i420ToRgba,
  rgbaToI420
} = require("wrtc").nonstandard;

fapi.env.monkeyPatch({ fetch: nodeFetch });
const MODELS_URL = path.join(__dirname, "/weights");

const width = 640;
const height = 480;

Promise.all([
  fapi.nets.tinyFaceDetector.loadFromDisk(MODELS_URL),
  fapi.nets.faceLandmark68Net.loadFromDisk(MODELS_URL),
  fapi.nets.faceRecognitionNet.loadFromDisk(MODELS_URL),
  fapi.nets.faceExpressionNet.loadFromDisk(MODELS_URL)
]);

function beforeOffer(peerConnection) {
  const source = new RTCVideoSource();
  const track = source.createTrack();
  const transceiver = peerConnection.addTransceiver(track);
  const sink = new RTCVideoSink(transceiver.receiver.track);

  let lastFrame = null;

  function onFrame({ frame }) {
    lastFrame = frame;
  }

  sink.addEventListener("frame", onFrame);

  // TODO(mroberts): Is pixelFormat really necessary?
  const canvas = createCanvas(width, height);
  const context = canvas.getContext("2d", { pixelFormat: "RGBA24" });
  context.fillStyle = "white";
  context.fillRect(0, 0, width, height);
  const emotionsArr = {
    0: "neutral",
    1: "happy",
    2: "sad",
    3: "angry",
    4: "fearful",
    5: "disgusted",
    6: "surprised"
  };
  async function detectEmotion(lastFrameCanvas) {
    const frameTensor3D = tf.browser.fromPixels(lastFrameCanvas);
    const face = await fapi
      .detectSingleFace(
        frameTensor3D,
        new fapi.TinyFaceDetectorOptions({ inputSize: 160 })
      )
      .withFaceExpressions();
    //console.log(face);
    const emo = getEmotion(face);
    frameTensor3D.dispose();
    return emo;
  }
  function getEmotion(face) {
    try {
      let mostLikelyEmotion = emotionsArr[0];
      let predictionArruracy = face.expressions[emotionsArr[0]];

      for (let i = 0; i < Object.keys(face.expressions).length; i++) {
        if (
          face.expressions[emotionsArr[i]] > predictionArruracy &&
          face.expressions[emotionsArr[i]] < 1
        ) {
          mostLikelyEmotion = emotionsArr[i];
          predictionArruracy = face.expressions[emotionsArr[i]];
        }
      }
      //console.log(mostLikelyEmotion);
      return mostLikelyEmotion;
    } catch (e) {
      return "";
    }
  }
  let emotion = "";
  const interval = setInterval(() => {
    if (lastFrame) {
      const lastFrameCanvas = createCanvas(lastFrame.width, lastFrame.height);
      const lastFrameContext = lastFrameCanvas.getContext("2d", {
        pixelFormat: "RGBA24"
      });

      const rgba = new Uint8ClampedArray(
        lastFrame.width * lastFrame.height * 4
      );
      const rgbaFrame = createImageData(
        rgba,
        lastFrame.width,
        lastFrame.height
      );
      i420ToRgba(lastFrame, rgbaFrame);

      lastFrameContext.putImageData(rgbaFrame, 0, 0);
      context.drawImage(lastFrameCanvas, 0, 0);

      detectEmotion(lastFrameCanvas).then(function(res) {
        emotion = res;
      });
    } else {
      context.fillStyle = "rgba(255, 255, 255, 0.025)";
      context.fillRect(0, 0, width, height);
    }

    if (emotion != "") {
      context.font = "60px Sans-serif";
      context.strokeStyle = "black";
      context.lineWidth = 1;
      context.fillStyle = `rgba(${Math.round(255)}, ${Math.round(
        255
      )}, ${Math.round(255)}, 1)`;
      context.textAlign = "center";
      context.save();
      context.translate(width / 2, height);
      context.strokeText(emotion, 0, 0);
      context.fillText(emotion, 0, 0);
      context.restore();
    }

    const rgbaFrame = context.getImageData(0, 0, width, height);
    const i420Frame = {
      width,
      height,
      data: new Uint8ClampedArray(1.5 * width * height)
    };
    rgbaToI420(rgbaFrame, i420Frame);
    source.onFrame(i420Frame);
  });

  const { close } = peerConnection;
  peerConnection.close = function() {
    clearInterval(interval);
    sink.stop();
    track.stop();
    return close.apply(this, arguments);
  };
}

module.exports = { beforeOffer };


Bump SOR. Added default to V2 liquidity for non V1 case.

Fixes # .
Changes proposed in this pull request:

Bump SOR to Polygon supported version.
Add option to set MaxPools and SwapCost via .env
Set Liquidity selection to V2 by default if user currently has V1 manually set but V1 not supported.

LGTM. I could perform trades on this so all seems good.


[BUG] Padding is invalid and cannot be removed while doing client side encryption for storage blob data using keyvault key

Describe the bug
We are doing client side encryption for storage blob data using keyvault key.  This is the bug "https://github.com/Azure/azure-sdk-for-net/issues/16298" i intially filled for SNI. We were able to get it done but we are getting "Padding is invalid and cannot be removed" error now
Expected behavior
Should successfully decrypt and encrypt the data
Actual behavior (include Exception or Stack Trace)
Padding is invalid and cannot be removed error
To Reproduce
Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)
code snippet is exactly explained here except we are using SNI
https://github.com/Azure/azure-sdk-for-net/issues/16298
Environment:

Name and version of the Library package used: [e.g. Azure.Storage.Blobs 12.2.0]
Azure.Storage.Blobs : 12.8.0
Azure.Identity is 1.4.0-beta.1
Azure.Security.KeyVault.Keys 4.2.0-beta.2
Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): [e.g. Azure AppService or Windows 10 .NET Framework 4.8]
.Net core
IDE and version : [e.g. Visual Studio 16.3]
Visual Studi 2019

Call stack:
System.Security.Cryptography.CryptographicException:
   at Internal.Cryptography.UniversalCryptoDecryptor.DepadBlock (System.Security.Cryptography.Algorithms, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at Internal.Cryptography.UniversalCryptoDecryptor.UncheckedTransformFinalBlock (System.Security.Cryptography.Algorithms, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at Internal.Cryptography.UniversalCryptoTransform.TransformFinalBlock (System.Security.Cryptography.Algorithms, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at System.Security.Cryptography.CryptoStream+<ReadAsyncCore>d__42.MoveNext (System.Security.Cryptography.Primitives, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Security.Cryptography.CryptoStream+<ReadAsyncInternal>d__37.MoveNext (System.Security.Cryptography.Primitives, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Storage.Shared.WindowStream+<ReadInternal>d__18.MoveNext (Azure.Storage.Blobs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Storage.Shared.WindowStream+<ReadAsync>d__17.MoveNext (Azure.Storage.Blobs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.IO.Stream+<CopyToAsyncInternal>d__30.MoveNext (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Storage.Blobs.PartitionedDownloader+<CopyToAsync>d__9.MoveNext (Azure.Storage.Blobs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Storage.Blobs.PartitionedDownloader+<DownloadToAsync>d__5.MoveNext (Azure.Storage.Blobs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Storage.Blobs.Specialized.BlobBaseClient+<StagedDownloadAsync>d__74.MoveNext (Azure.Storage.Blobs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Storage.Blobs.Specialized.BlobBaseClient+<DownloadToAsync>d__72.MoveNext (Azure.Storage.Blobs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Azure.Storage.Blobs.Specialized.BlobBaseClient+<DownloadToAsync>d__68.MoveNext (Azure.Storage.Blobs, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=92742159e12e44c8)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Microsoft.AzureMonitor.Billing.Common.Storage.AzureBlobStorageClient+<**DownloadStreamAsync**>d__11.MoveNext (Common, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null: C:\source\src\Common\Storage\AzureBlobStorageClient.cs:78)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Microsoft.AzureMonitor.Billing.LogAnalyticsCollectorBusiness.BlobHelper+<DownloadEHInfoFromBlobAsync>d__15.MoveNext (LogAnalyticsCollectorService, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null: C:\source\src\LogAnalyticsCollectorService\Business\BlobHelper.cs:244)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e)
   at Microsoft.AzureMonitor.Billing.LogAnalyticsCollectorBusiness.BlobHelper+<CompareEHInfoWithBlob>d__13.MoveNext (LogAnalyticsCollectorService, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null: C:\source\src\LogAnalyticsCollectorService\Business\BlobHelper.cs:221)

@jsquire @schaabs can you help here ? Thanks.

Hi @PPrabinKumarPatro.  Thank you for your feedback and we regret that you're experiencing difficulties.   I'm not sure the source of your error - specifically if you're seeing this when acquiring the token as you were with #16298 or if this is being surfaced by the KeyVault or Storage libraries.   If you're able to share a stack trace and any other context that you have, it would be helpful in finding the right people to assist.
For now, I've looped in our Azure.Identity experts for their thoughts.

updated with call stack

Thank you!   The call stack appears to imply that this is occurring in the Storage SDK.   Rerouting to the storage team for assistance.

HI Storage team, can you help here as we are having issues in most of prod regions including EUS, It would be challenging before it became bigger issue. Thanks.

Can you provide a more detailed code snippet where the key is being passed to the BlobBaseClient, I can tell you're doing a DownloadToAsync but the error "Padding is invalid.." is not included in the stack trace, but you said that this is the error that appears for you.
I wonder what's wrong with the key being passed to the BlobBaseClient to be causing this error with the Cryptography library.
@jaschrep-msft Feel free to chime in about this.

"Padding is invalid" is the hardest issue to track down. It essentially means that the last 16 byte encryption block was an unexpected value according to the AES specification and so there was some sort of error. Something could have gone wrong during encryption, decryption, key wrapping, key unwrapping, upload, download, or even blob metadata management; some piece of data is incorrect in the whole process.
In the past, this has come up when users are working with their own IKeyEncryptionKey and IKeyEncryptionKeyResolver implementations and they made an error developing them. This doesn't appear to be the case here, though, since you're using KeyVault SDK.
Additionally, you point us to your other issue for code snippets, but there isn't any code in there that uses the storage SDK. That will likely be necessary to figure out what is happening.

Hi, what information do you need here to debug? Also can you ping me over teams for quick fix. We are still having the issue but in different region. The issue auto resolves in some regions by itself.

below is the code and we use storage SDK (            BlobClient blobClient = containerClient.GetBlobClient("test").WithClientSideEncryptionOptions(clientSideOptions);)
//Create CryptographyClient using Key Vault Key
CryptographyClient cryptographyClient = new CryptographyClient(clientSideKeyVaultKeyUri, credential);
        //Set up Client Side Encryption Options used for Client Side Encryption
        ClientSideEncryptionOptions clientSideOptions = new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
        {
            // KeyEncryptionKey = cryptographyClient,
            //KeyWrapAlgorithm = "RS256"
            KeyEncryptionKey = cryptographyClient,
           // KeyResolver = keyResolver,
            // string the storage client will use when calling IKeyEncryptionKey.WrapKey()
            KeyWrapAlgorithm = "RSA1_5"
        };

        //Create Blob Service Client
        BlobServiceClient blobServiceClient = new BlobServiceClient(storageConnectionString);

        BlobContainerClient containerClient = blobServiceClient.GetBlobContainerClient("example");
        //Create BlobClient with Client Side Encryption Options to upload client side encrypted data
        BlobClient blobClient = containerClient.GetBlobClient("test").WithClientSideEncryptionOptions(clientSideOptions);
        blobClient.Upload(stream);

Any update here?

Taken offline. Will update here when conclusions are reached.

@PPrabinKumarPatro Did you find any quick fix for this issue?

Any updates one this please???

@wonderphil thank you! I will look into this with your sample when I have the time. However, at a glance, it looks like you've provided me with code that only does the download, decrypt, reencrypt, and reupload. The initial upload isn't present. Depending on what root cause is, that part may be relevant. If you could convert (or wrap) this sample to cut the queue out of the way and just upload a new blob that will still produce this issue, I can look into this with my own creds and account.
If you can't manage a reproduction that way, or if you don't get a consistent reproduction, that's important! Let me know here. But since you actively have an instance of this issue and I have been unable to reproduce one, you're likely to have the code somewhere that can set this situation up. Otherwise, if this code succeeds in decryption with some blob I upload myself, I won't have an actual reproduction.

@jaschrep-msft any progress on this?

Closing this issue. Feel free to reopen if the problem persists after eliminating this race condition.


[DateTime] searchByTime() not correct when doing a comparison with milli seconds

"1970-01-01 00:46:58.741000" is not greater than "1970-01-01 00:46:58.740000", why ?

No more equality by DateTime but with micro seconds.
Fixed.


Follow symlinks?

Is it just me or doesn't bitpocket follow symlinks?
I would kill for that as a feature

added --copy-dirlinks to the rsync lines in bin/bitpocket

added --copy-dirlinks to the rsync lines in bin/bitpocket

+1

I prefer to sync symlinks as symlinks, without dereferencing (dereferencing drives me crazy in Dropbox).
But I think I can introduce some variable like RSYNC_OPTS to .bitpocket/config file where you could specify additional switches for rsync. What do you think?

@sickill RSYNC_OPTS sounds like a good suggestion, tho I like to be able to follow symlinks since ~/ differs from machine to machine. For some reason the symlink is broken, and just takes place as a regular folder and/or file, when I've completed one sync

I like the idea of RSYNC_OPTS, that'd be perfect. Would you want this variable to contain all the switches for rsync, or just those which are customizable? I think the latter might be a better idea. Thanks!

I think it only should contain the customizable, just to minimize
breakage
On 01/02/12, Parker Moore wrote:

I like the idea of RSYNC_OPTS, that'd be perfect. Would you want this variable to contain all the switches for rsync, or just those which are customizable? I think the latter might be a better idea. Thanks!

Reply to this email directly or view it on GitHub:
https://github.com/sickill/bitpocket/issues/4#issuecomment-3333289

--
Teo Ljungberg

Agreed! RSYNC_OPTS, with customizable options/switches, would be brilliant.

I'm atleast adding that to my fork

Here it is: https://github.com/sickill/bitpocket/commit/63b8392e2b66d64b7c2ec2210dba897bbf66bbbc

Awesome!


Nbconvert output of html/javascript in output does not render in 6.5 (works still in 6.4) #1844

Describe the bug
So this was noticed on RStudioConnect  on O2.  For some reason only vitessce seems affected but html widgets do not render after conversion with nbconvert (which is how RSC displays jupyter notebooks on the platform). Plotly and ipywidgets seem to work. There are potential issues with Nbconvert but we're running 6.4.4 on RSC, not sure what has changed.  Need help diagnosing what is going on in JS.
To Reproduce
Save an ipynb of a vitessce widget
for example config_vc_merfish.ipynb:
from vitessce import VitessceConfig, VitessceChainableConfig, VitessceConfigDatasetFile
import requests, json
#from example_configs import dries as dries_config
#from other_configs import merfish as merfish_config
url = "https://sealver.in/vitessce/merfish/config.json"
response = requests.request("GET", url)

merfish_config = response.json()
vc = VitessceConfig.from_dict(merfish_config)
imports, code = vc.to_python()
reconstructed_vc = eval(code)
reconstructed_vc.widget(theme="light")

Then convert to html with execution on.
jupyter nbconvert --to html --execute config_vc_merfish.ipynb
This will result in a mostly empty notebook with the following js console output

Expected behavior
We used to be be able to use jupyter notebooks to display Vitesse widgets. If the notebook is set to execute, then on the html page, the widget should run and display config contents.

More details from the chrome console:
DevTools failed to load source map: Could not load content for<EMAIL_ADDRESS>HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
this one is a bit odd because the file at that link is called index.js and not index.js.map
maybe filenames changed as part of a new release of vitesse-jupyter?
this works<EMAIL_ADDRESS>

Possibly related to https://github.com/jupyter/nbconvert/issues/1900


Added onEnter prop callback for TextField component

This allows us to optionally set a callback when enter is pressed on a TextField.

@hai-cea I have revised the PR as discussed. Thanks!

Thanks @cavneb


Text display error after restore down

Environment
Windows build number: 10.0.19013.0
Windows Terminal version: 0.6.2951.0

Steps to reproduce

SSH to a linux. I tired centos7.
Maximize the windows terminal window.
Enter a command which print something to the terminal. for example "ls".
Restore down the window.
keep pressing enter to create new lines.

Expected behavior
Nothing happens.
Actual behavior
Previous message is shown again.

This looks like a /dupe of #1465. Thanks!


Vehicle classes missing

I cant find classes like VehicleController  and others. Is there a way to compile this package with the vehicle support?

Hi,
Absolutely yes, just didn't had time to add it.
Make sure to send PR or as README states feel free to become sponsor and I'll give more priority.
Thanks!

Any update on this? I really need vehicle support. And by the way, thank you for your work on this project!

Hi @jjb-pro
As mentioned in README, any feature request would require becoming sponsor, I know lot of stuff are missing but I need to balance my free time.
Thanks!

@jjb-pro switch to bepu2 physics. they actually have a complete api

@jjb-pro switch to bepu2 physics. they actually have a complete api

LOL, go switch to bepu2


Refactor and fix bugs

Refactor the build tool and folder structure.
Fix the issue of not update when changing value via props. ( related #8 )

Coverage decreased (-11.7%) to 76.0% when pulling 1285db7f4edc27c1a52a76a5b871fb461252a188 on feature/refactoring into c6c1b9bb41d188000bfa606808ff03283e58a9de on master.

Coverage decreased (-11.7%) to 76.0% when pulling 7e7ac3fa5a5820ac3896b9812aa101470d207088 on feature/refactoring into c6c1b9bb41d188000bfa606808ff03283e58a9de on master.

Coverage decreased (-5.7%) to 82.0% when pulling 3b31fb76660a3db13a7340557298f96c416b1046 on feature/refactoring into c6c1b9bb41d188000bfa606808ff03283e58a9de on master.

Coverage decreased (-5.7%) to 82.0% when pulling fc51b8946d44b41055bb7931f5174fdd3072cc5b on feature/refactoring into c6c1b9bb41d188000bfa606808ff03283e58a9de on master.

Coverage decreased (-5.7%) to 82.0% when pulling adc9d54048323231e0764cdf38fa3b8929d5bf59 on feature/refactoring into c6c1b9bb41d188000bfa606808ff03283e58a9de on master.


add PNI and IXP session types

Codecov Report

Merging #86 (1b8885c) into prep-release (5fe30e4) will increase coverage by 0.01%.
The diff coverage is 26.66%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@               Coverage Diff                @@
##           prep-release      #86      +/-   ##
================================================
+ Coverage         23.86%   23.87%   +0.01%
================================================
  Files                82       84       +2
  Lines              4710     4724      +14
================================================
+ Hits               1124     1128       +4
- Misses             3586     3596      +10

Impacted Files
Coverage Δ

...nagement/commands/peerctl_set_peer_session_type.py
0.00% <0.00%> (ø)

src/django_peerctl/models/peerctl.py
43.70% <ø> (ø)

src/django_peerctl/rest/serializers/peerctl.py
0.00% <0.00%> (ø)

...ations/0041_alter_peersession_peer_session_type.py
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Override to from options.to for execute calls

We have Proxy implementation contracts which do not meet the "ctor without params" criteria for using built-in Proxy logic.
Therefore we handle setup of our Proxy environment by our own using "execute".
Having the to field respected, we can now call the implementation through Proxy address.

This is not intended to be used this way. I should actually remove to from the list of option
when you call execute(<name> ... the name will have a corresponding file with its deployed address
if you want to use execute on the proxy, I suggest you ensure a file is created where teh deployed address is the proxy and not the implementation
With hardhat-deploy 3 files are actually created when using proxy:

the file  that merge the abi of the proxy and the implemenation and use the proxy address
the file _Implementation that is the implementation contract
the file _Proxy that is the proxy contract (Same address as 1.)

Understand, yes, this was a way I thought about too yesterday, but wasn't able to find existing function to get such merged ABI together. Can you pls. guide me into a direction how you would solve such a task?


Investigate crash on lakeside

https://steamcommunity.com/groups/budhud/discussions/2/619569341048508297/?ctp=56#c1729828401670570169

Appears to happen on koth_lakeside_final as well as koth_viaduct_event.

Can't replicate on either map with a local server on Windows 10.


Add extras as wetterdienst-with-* outputs

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe/meta.yaml:

ℹ Recipes should usually depend on matplotlib-base as opposed to matplotlib so that runtime environments do not require large packages like qt.

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12254311944. Examine the logs at this URL for more detail.

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.

Me, always curious about learning bits about the Conda ecosystem here and there, has a question about it: Is this "{package}-with-{extra}" convention an extrapolation (and Conda package manifestation) of all "extra" slots that a PyPI package enumerates and provides?

@amotl, yes, exactly.  This is at least the semi-standard way to add extras to conda-forge.  They have to be separate packages that include the "base" package as one of the dependencies.
See some examples:
https://github.com/conda-forge/airflow-feedstock/blob/main/recipe/meta.yaml#L201-L580
https://github.com/conda-forge/parsl-feedstock/blob/main/recipe/meta.yaml#L60-L289
https://github.com/conda-forge/apache-beam-feedstock/blob/main/recipe/meta.yaml#L137-L313
https://github.com/conda-forge/smart_open-feedstock/blob/2814248b302a34acf0f085e8712558d36426efbc/recipe/meta.yaml#L47-L196
https://github.com/search?q=path%3A**%2Frecipe%2Fmeta.yaml+org%3Aconda-forge+"-with-"&type=code&ref=advsearch

NB: Do you need me to acknowledge this PR?

@amotl, @gutzbenj and @kmuehlbauer, yes I would ideally like all of you to approve this change because it's a big one.  That was my intention with https://github.com/conda-forge/wetterdienst-feedstock/pull/146#issuecomment-2531565303 above.  I used @conda-forge/wetterdienst as a shorthand for contacting all maintainers.
Similarly with https://github.com/conda-forge/admin-requests/pull/1217, it would be useful if at least one of you approves that.

Looks good. I wonder just if we can/shall reduce the number of extras to make this more easy to maintain?

@gutzbenj, that's up to you. If you compare one release with the previous one and find pyproject.toml, it's pretty easy to see what changed. So I don't find the current number of extras prohibitive.
Here's an example of what I mean.
https://github.com/earthobservations/wetterdienst/compare/v0.97.0...v0.98.0#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711

Thanks everyone for your feedback!

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-webservice.
I tried to rerender for you, but it looks like there was nothing to do.
This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12296367922. Examine the logs at this URL for more detail.

Hi! This is the friendly conda-forge automerge bot!
I considered the following status checks when analyzing this PR:

linter: passed
azure: failed
rerender called: passed

Thus the PR was not passing and not merged.

It looks like I messed up the admin request.  Hopefully, we can get it fixed quickly.

Okay, the packages with the new extras are uploaded and should be available in an hour or less.


Change the Content of Merge Tags

Hello Ryan,
Is there any way to edit the content of the dropdown menu?
See below ScreenShot;

Sincerely.

Also I want to add this merge option.. To my Custom Block Button.

See renderMergeTagContent
https://github.com/zalify/easy-email/blob/e0b53e051a8a36e817d7d9f0fbba6b49a00b1322/packages/easy-email-editor/src/components/Provider/PropsProvider/index.tsx
and
https://github.com/zalify/easy-email/blob/e0b53e051a8a36e817d7d9f0fbba6b49a00b1322/packages/easy-email-extensions/src/AttributePanel/components/attributes/MergeTags.tsx

I tried this.., couldn't figure out how to use it.
<TextField
    label='Content'
    name={`${focusIdx}.data.value.title`}
    mergeTags={testMergeTags}
  />

How can I achive this goal with my custom button TextField, or what should I use inside my panel?

https://github.com/zalify/easy-email/blob/master/packages/easy-email-extensions/src/AttributePanel/components/blocks/Button/index.tsx
You can see how the panel of the button block is implemented

Thank you Ryan, it helped a lot.
Sincerely.

Is there any way to change the header title of the merge Tag? Rather than used to "merge tags" string..

Currently not, if the localized feature is completed, all text can be replaced.
If you are interested, you can go ahead and do the rest.
https://github.com/zalify/easy-email/issues/151


Update copy in Google Tag Manager article

Proposed changes
Changing a letter from upper case to lower case based on how the event shows up in the destination.
Merge timing
<!-- When should this get merged/published?

When approved.

@vanand17 Have we confirmed this with a live test? I actually don't see anywhere in the code where we send "Loaded a Page" so want to make sure this is actually all true. https://github.com/segmentio/analytics.js-integrations/blob/master/integrations/google-tag-manager/lib/index.js
Probably happens somewhere else but would love 100% confirmation from a true test if possible. We should also probably update the setting description to lowercase "a" in partner portal as well if so: https://app.segment.com/partner-portal/integration/google-tag-manager/settings

@vanand17 following up on my last comment before we merge this in.

Have we confirmed this with a live test? I actually don't see anywhere in the code where we send "Loaded a Page" so want to make sure this is actually all true. https://github.com/segmentio/analytics.js-integrations/blob/master/integrations/google-tag-manager/lib/index.js
Probably happens somewhere else but would love 100% confirmation from a true test if possible. We should also probably update the setting description to lowercase "a" in partner portal as well if so: https://app.segment.com/partner-portal/integration/google-tag-manager/settings

Hi Kiara,
I saw this request being approved hence I did not go ahead and run a test
myself. Just to probably clarify, the change that was requested by a
customer was around a spelling error which is currently reading 'Loaded A
Page' and this could be changed to 'Loaded a Page' which a lower case 'a'.
Attaching a screenshot below for your reference.
[image: image.png]
[image: image.png]
Link to the sections of our docs -
https://segment.com/docs/connections/destinations/catalog/google-tag-manager/#tracking-all-pages
https://segment.com/docs/connections/destinations/catalog/google-tag-manager/#settings
Apologies if this was not clear, please let me know if you need any further
clarification :)
On Wed, Aug 24, 2022 at 2:55 AM kdaswani @.***> wrote:

@vanand17
https://urldefense.com/v3/__https://github.com/vanand17__;!!NCc8flgU!a6xeJ4SnflVYRuh32ThkOvB1r20W3I9zaS8GDea_KPxk3WrnAiZSUmwJOoC_buDj3To5vQ_13cOc8ayRkWKFKw$
following up on my last comment before we merge this in.
Have we confirmed this with a live test? I actually don't see anywhere in
the code where we send "Loaded a Page" so want to make sure this is
actually all true.
https://github.com/segmentio/analytics.js-integrations/blob/master/integrations/google-tag-manager/lib/index.js
https://urldefense.com/v3/__https://github.com/segmentio/analytics.js-integrations/blob/master/integrations/google-tag-manager/lib/index.js__;!!NCc8flgU!a6xeJ4SnflVYRuh32ThkOvB1r20W3I9zaS8GDea_KPxk3WrnAiZSUmwJOoC_buDj3To5vQ_13cOc8axkFIks0Q$
Probably happens somewhere else but would love 100% confirmation from a
true test if possible. We should also probably update the setting
description to lowercase "a" in partner portal as well if so:
https://app.segment.com/partner-portal/integration/google-tag-manager/settings
—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/segmentio/segment-docs/pull/3331*issuecomment-1224344804__;Iw!!NCc8flgU!a6xeJ4SnflVYRuh32ThkOvB1r20W3I9zaS8GDea_KPxk3WrnAiZSUmwJOoC_buDj3To5vQ_13cOc8az4xnQakw$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AW7QVYI7ZNM6SBG3VAICGCDV2T7BHANCNFSM55Q2IXGA__;!!NCc8flgU!a6xeJ4SnflVYRuh32ThkOvB1r20W3I9zaS8GDea_KPxk3WrnAiZSUmwJOoC_buDj3To5vQ_13cOc8axClZJiSQ$
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @vanand17 - thanks! I ran a test myself to be 100% sure that is what we send. I see that upon a page call, if tracking all pages, we see "Loaded a Page" in the GTM data layer. Approving this PR given my test. I will update the setting description in partner portal to also lowercase the "a" to match

.

Thanks Kiara.
On Thu, Aug 25, 2022 at 3:27 AM kdaswani @.***> wrote:

@.**** approved this pull request.
—
Reply to this email directly, view it on GitHub
https://urldefense.com/v3/__https://github.com/segmentio/segment-docs/pull/3331*pullrequestreview-1084243201__;Iw!!NCc8flgU!d8MfFA49TW4ClFu4yxvhvKJXHUpZaldrUxeekf5CS2j17uANmBnXPw7dER4RGha6g3NEESN6YGAjblNyYYtbPQ$,
or unsubscribe
https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AW7QVYMIT2AL75PYYRCBC7DV2ZLQDANCNFSM55Q2IXGA__;!!NCc8flgU!d8MfFA49TW4ClFu4yxvhvKJXHUpZaldrUxeekf5CS2j17uANmBnXPw7dER4RGha6g3NEESN6YGAjblOMSbj8ew$
.
You are receiving this because you were mentioned.Message ID:
@.***>


Task: more-info telemetry capture

Overview
Closes #2186
The component identifier used to track telemetry for the more info button documentation link was similar to the sidebar documentation link. This PR aims to distinguish each for easier identification later.

@thewahome this is for my own education, could you please help me understanding what documentation link we are referring to in the More info usage chart on the dashboard? Is that the GE docs link on the header or the doc link for each of the sample queries? Thanks

Hey @RabebOthmani this particular issue is for renaming the telemetry that refers to the documentation link that is behind the learn more button


Remove answer Id from google analytics event

There is no reason to be collecting ids of chosen answers in google analytics.
Acceptance Criteria

[ ]  Answer Id is no longer collected through google analytics.

@rasmus-storjohann-PG Please reverse this ASAP. This was not approved.
We need that data to know general demographics and status of our users. It was discussed yesterday that the messaging on our presentation will be updated to reflect what how we treat data collected through .

Note: I asked Ian to close this issue.


Counter benchmark bug in k6N10

Hi. I tried to run counter benchmark on k6N10 architecture by adjusting /openfpga_flow/tasks/benchmark_sweep/counter8 task config file to generate testbench task config file. I used example_without_ace_script.openfpga and fixed_sim_openfpga.xml templates just like in /benchmark_sweep/counter8 task config file. However although and2_or2 benchmark successfully operates, counter benchmark is not giving expected results.
Task config file is:
`[GENERAL]
run_engine=openfpga_shell
power_tech_file = ${PATH:OPENFPGA_PATH}/openfpga_flow/tech/PTM_45nm/45nm.xml
power_analysis = false
spice_output=false
verilog_output=true
timeout_each_job = 5*60
fpga_flow=yosys_vpr
[OpenFPGA_SHELL]
openfpga_shell_template=${PATH:OPENFPGA_PATH}/openfpga_flow/openfpga_shell_scripts/example_without_ace_script.openfpga
openfpga_arch_file=${PATH:OPENFPGA_PATH}/openfpga_flow/openfpga_arch/k6_frac_N10_40nm_openfpga.xml
openfpga_sim_setting_file=${PATH:OPENFPGA_PATH}/openfpga_flow/openfpga_simulation_settings/fixed_sim_openfpga.xml
[ARCHITECTURES]
arch0=${PATH:OPENFPGA_PATH}/openfpga_flow/vpr_arch/k6_frac_N10_tileable_40nm_2x2.xml
[BENCHMARKS]
bench0=${PATH:OPENFPGA_PATH}/openfpga_flow/benchmarks/micro_benchmark/counters/counter_8bit_sync_reset/counter.v
bench1=${PATH:OPENFPGA_PATH}/openfpga_flow/benchmarks/micro_benchmark/and2_or2/and2_or2.v
[SYNTHESIS_PARAM]
bench_read_verilog_options_common = -nolatches
bench0_top = counter
bench0_openfpga_pin_constraints_file=${PATH:TASK_DIR}/config/pin_constraints_rst.xml
bench1_top = and2_or2
bench1_openfpga_pin_constraints_file=${PATH:TASK_DIR}/config/pin_constraints.xml
[SCRIPT_PARAM_MIN_ROUTE_CHAN_WIDTH]
end_flow_with_test=
vpr_fpga_verilog_formal_verification_top_netlist=`
and2_or2 benchmark results:

counter benchmark results:

What can cause this? I'm getting same results with k4N4 architecture also.
Thanks. @tangxifan

I can run counter benchmarks successfully now by using this configuration:
openfpga_shell_template=${PATH:OPENFPGA_PATH}/openfpga_flow/openfpga_shell_scripts/example_without_ace_script.openfpga //I deleted include_pin_constraints parts since I do not need for now
openfpga_sim_setting_file=${PATH:OPENFPGA_PATH}/openfpga_flow/openfpga_simulation_settings/fixed_sim_openfpga.xml


Switch to caching semantic tokens per document

Summary of the changes

Switches semantic tokens caching to per-document instead of storing tokens from all documents in one giant cache. This helps ensure a more seamless colorization experience when switching between editing multiple files at once, and is similar to how C# LSP caches semantic tokens today.
I tried out the changes, and to be honest I didn't notice a huge difference in perf, but I think this may in part be because the original cache utilizes a MemoryCache which makes it difficult to determine when the cache is full when testing.
Ran the semantic token microbenchmark and confirmed at least that this addition did not regress anything perf-wise (the before & after stats are almost identical).

Fixes:
https://github.com/dotnet/aspnetcore/issues/31989

@NTaylorMullen I got rid of the added cache class and the cache implementation is purely based off MemoryCache now per your suggestion. Hopefully it simplifies the code a bit!


Update react peerDependencies to 15.0.0

React 15.0 has been released in April, 2016.
Without this change, npm@3 gives an UNMET PEER DEPENDENCY error and refuses to update the npm-shrinkwrap.json.
Additionally, update react devDependencies from 0.14.0-rc1 to 0.14.0.

Thank you


fix(connectionpool): check user exists

Adds service user existence check
Moves test yaml to the examples

tests


refactor dependencies + tests

added standard, formated moment.parseFormat.js
bower fast raus
added coveralls
tape + tests are pending

can you please merge https://github.com/gr2m/moment.parseFormat/pull/29 & rebase your PR on master

done :ok_hand: I've also removed .jshintrc & Gruntfile.js

perfect, thank you!
:tada:


Add fetchMore to query result record and properly type it

It's parametrically typed here (basically accepts any parameters). OR add it to the query extension?
https://github.com/reasonml-community/reason-apollo-client/blob/38d5b88be502061afabb50866437a2834c3a15c8/src/%40apollo/client/react/types/ApolloClient__React_Types.re#L373
Also we could accept normal variables instead of jsVariables, so we don't have to manually convert it.

Maybe I am wrong and it infers the data correctly?

Adding fetchMore to the query result record
Isn't it on there already? It has an abstract type useMethodFunctionsInThisModuleInstead. Are you proposing that we drop the separate function and allow the method to be called on the record directly? If that's what you're proposing (I don't know if it is), in many ways I would prefer that, and I don't think in this case it would cause any problems. However, there are definitely methods in the library that use the this context and will fail, and for that reason, I've tried to be consistent and the rule is that methods are always called with a bs.send binding. We could provide both for things we know are safe? There are also methods like subscibeToMore where I was (personally) unable to express its polymorphic nature on a record type.
Also we could accept normal variables instead of jsVariables
Yes, great catch. I think I just missed this entirely when converting the rest.
Perhaps it's possible to attach the whole definition as a first class module? (then we also have serializeVariables).
Sounds good.

By the way these are some observations whilst we convert our codebase 😁

It's looking really great!

Btw fetchMore and refetch were implemented as record fields in reason-apollo-hooks, and I am not aware of problems with this

By the way these are some observations whilst we convert our codebase 😁
It's looking really great!

Awesome! I think there are still probably a kink or two to work out, but we'll hopefully get things sorted shortly now that there's another person seriously using this 😄

Btw fetchMore and refetch were implemented as record fields in reason-apollo-hooks, and I am not aware of problems with this. (But actually I don't really mind the other API as long as it's safe)

Yeah, there's nothing wrong with using it as a record. This issue, for me, was one of consistency in how we document and use the API. Now that you mention it, I guess the best case scenario is that we say in the docs "always use the bs.send methods" and do so in the examples as well, but we also provide them on the record for the most part for advanced users.

Yeah, there's nothing wrong with using it as a record. This issue, for me, was one of consistency in how we document and use the API (because it's not safe for all methods). Now that you mention it, I guess the best case scenario is that we say in the docs "always use the bs.send methods" and do so in the examples as well, but we also provide them on the record for the most part for advanced users.

Nah actually that would be confusing imo. Better to have a single place.

I am really impressed by the rigor of this library btw 😄 👍

Nah actually that would be confusing imo. Better to have a single place.

Yeah, I think you're right. Talking about this has given me another idea, though. 🤔 I'll experiment and circle back if it's successful.

Yes, I was indeed thinking of this all wrong! See #48. I think it's very possible to put fetchMore directly on query result and only use bs.send methods internally.

I also saw that you attach the parse and serialize functions to the result. Perhaps it's possible to attach the whole definition as a first class module? (then we also have serializeVariables).

Note that this is no longer necessary if we go in the direction of #48.

Closing now that v1.0.0-beta.0 is released


[Dan-i Dojo] Procedural "1st" "2nd" "3rd" "4th" and so on icons

Here the examples with a view on first and second pages、
Default colors would be
Customizable :
1st : Red
2nd : Green
3rd : Blue
4th : Magenta
5th : Yellow
6th : Cyan
7th : Brown
8th : Gray
9th : Khaki green
Non-customizable (?) :
10th and more : Black

In-Game information :

When entering the 4th song of the dan, the 3rd individual gauge replace the 1st one (and then the 4th one replace the 2nd one, continuing following a modulo 2)
Large gauges (When <= 3 exams on the board) and Half gauges use the same offset for the numbered panel

Result information :

Same as on the song select screen

Added by #436


Added Flipkart server for fashion and tech data scraping

Pull Request Template
api.py
Added a flask server for scraping fashion or sports data as user wants and stores it in local database
Issue no.(must) -
Self Check(Tick After Making pull Request)

[ ] This issue was assigned to me.
[x] One Change in one Pull Request
[x] My file is in proper folder
[x] I am following clean code and Documentation and my code is well linted with flake8.
[x] I have added README.md and requirements.txt with my script

If issue was not assigned to you Please don't make a PR. It will marked as invalid.
Join Us on Discord:- https://discord.gg/JfbK3bS
acknowledgement

[x] I have tested the script and distributing it under MIT license.

Issue has not been assigned

your script doesn't follow the guidelines


Feature - getNetwork engine action

This PR adds a getNetwork engine action. This is used for determining what type of network LND is connected to (e.g. mainnet, regtest).

This seems like an unnecessary call - we validate the chainName based on the config passed to lnd-engine, so any subsequent check of the chain should be possible just based on the static config.

Closing in favor of getting the network by using NODE_ENV.


C#: make PtrToString conversion encoding-safe

WIP

Let's keep this open.

Not worth doing now that https://github.com/grpc/grpc/pull/29225 is in.


Adding new feature: fragments function like treasure bags

That's a nice feature, thank you for the contribution!


TVODefaultAudioDevice crash when i am using https://cobrowse.io/ SDK

Description
TVODefaultAudioDevice got crash showing multiple webRTC connection.
i am using cobrowse app connect my application using remote functionality. Cobrowse provide remote access to you application from there dashboard.
Steps to Reproduce

Connect your device using remote functionality using cobrowse SDK
Initiate call using remote from cobrowse SDK
App got crash showing multiple connection of webRTC on this line TVODefaultAudioDevice

Expected Behavior
I have active connection with cobrowse SDK and when i try to call from cobrowse using there dashboard app should work properly.
Actual Behavior
I have active connection with cobrowse SDK and when i try to call from cobrowse using there dashboard app got crash.
Reproduces How Often
Always
Logs
*** Terminating app due to uncaught exception 'TVOAudioDeviceMustBeSetBeforeMediaStackSetup', reason: 'WebRTC does not allow updating the audio device once the media stack is created (i.e once a track is created or memory allocated for previously created call or connect option is not deleted). You should provide the audio device to SDK prior to creating the tracks.'

Voice iOS SDK
twilio_voice_version = '5.4.0'
Xcode
version = '11.5'
iOS Version
version = '13.5'

Hi @PinkeshGjr
As the exception message indicates, the application needs to set up the audio device before making calls with the SDK and can only re-configure the audio device when all calls are finished. Your application probably is simply following the quickstart sample code but is there any chance that it could be assigning the audio device while the call has been disconnected completely?
Also does the crash happen when using the quickstart? or does the crash happen without using cobrowse.io?

Hi @PinkeshGjr
How are things? I am hoping that my previous comment did help you resolve the crash issue. Happy to hear from you in case you still need assistance.

@bchen-twilio i am still getting issue. When i try to call from cobrowse SDK app get crash with above details.

Hi @PinkeshGjr
Thanks for the update.
As I mentioned in the previous comment, our suggestion is to take a look at how the lifecycle is managed, especially the SDK Call object and any UI elements or model object in your app logic that keep the ownership of the SDK. It would be also useful to try the quickstart and let us know if the exception happens under the co-browse environment.

Closing the ticket since there has not been update for a while. Feel free to reach out to the SDK team.