Creating a chatbot

Errors in importing the chatterbot and installing Chatbot to python

You got to be more specific on your issue.
For installing with Pip use
pip install chatterbot / pip3 install chatterbot (use sudo if required.)
For import do
from chatterbot import ChatBot

Hi, try installing an older version of chatterbox, try running the next command:
pip install chatterbox==1.0.4
If you want to make a ChatBot install chatterbot-corpus too
pip install chatterbox-corpus
chatterbox-corpus shouldn't give you any problems, but if you have any issues write it here and I'll try to help you

And if you have any error in importing chatterbox the commands are the next ones:
(I'll include ListTrainers too)
from chatterbox import ChatBox
from chatterbox.trainers import ListTrainers
Next keep coding the ChatBot in order to "activate" the import commands (sorry for my bad explanation, it's kind of hard to explain)
Try the next commands:.
chatbot= ChatBot('Name of your bot')
small_talk=[' ',
' ',]
Try this and Hope I helped you, Have a nice day

And in order to make the from chatterbot.trainers import ListTrainers work, write the next command:
list_trainer= ListTrainer(chatbot)
and you can add this command too in order to finish you ChatBot:
from item in small_talk:
list_trainer.train(item)

You can also try installing the newest version of chatterbox, that worked for me
pip install chatterbox==1.1.0
Also if you have an error importing chatterbox, if you are using PyCharm, go to Settings>ProjectYourProject>PythonInterpreter, there click de + button and look for ChatterBox, and you can choose there which version you want to install and after that click Install Package
You can use the same process for installing any other module
Hope I helped you, Have a nice day

@zDITC5 watch out, your comment references "chatterbox` a bunch of times, including the install command. It should be "chatterbot".


Only functions visible in GraphNode search box for VisualScript editor

Godot version
3.4.4 stable and mono 64 bit
System information
windows 11, gles3,

Issue description
Trying to write my first visual script, but whenever I press ctrl+f or right click the popup search box only contains functions. No data or constants, etc. Both versions were downloaded from the website today.
This affects new projects as well.

Steps to reproduce
create new project (or open existing)
create new visual script
right click, press ctrl+f, or press 'add nodes' from top of graph edit screen
Minimal reproduction project
No response

Hold on... I just realized I was confused by there not being any organized sections like in this photo

Is there a way to change this in the settings?


Update parser to handle 'mut' modifier on properties

Replaces the readonly modifier.

Codecov Report

Merging #326 (9d4c854) into main (6f9ed88) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #326      +/-   ##
==========================================
+ Coverage   90.20%   90.22%   +0.01%
==========================================
  Files          34       34
  Lines        5157     5164       +7
==========================================
+ Hits         4652     4659       +7
  Misses        505      505

Impacted Files
Coverage Δ

crates/crochet_parser/src/lib.rs
96.52% <100.00%> (+0.02%)
:arrow_up:

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


fix: add missing Expire methods to Cmdable

This is a followup to https://github.com/go-redis/redis/pull/1928

Thanks :+1:


Username error when generating accounts

Hey there, I've been getting "Bad Username" errors when generating accounts - both with version 2.7 and 2.8.  No matter what username I choose (between 6 and 15 characters), I get this error. I even used config.py to generate a new config.js with no avail. Thanks for all of your hard work!

It seems Nintendo has patched the + e-mail trick for Gmail.


particl-qt: init at <IP_ADDRESS>

Motivation for this change
Particl QT wallet that can be used to activate cold staking with Ladger hardware wallet.
Works Linux only so far.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Fits CONTRIBUTING.md.

@GrahamcOfBorg build particl-qt

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: particl-qt
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Timed out, unknown build status on x86_64-linux (full log)
Attempted: particl-qt
Partial log (click to expand)
  CXX      test/test_particl-pmt_tests.o
  CXX      test/test_particl-policyestimator_tests.o
  CXX      test/test_particl-pow_tests.o
  CXX      test/test_particl-prevector_tests.o
  CXX      test/test_particl-raii_event_tests.o
  CXX      test/test_particl-random_tests.o
  CXX      test/test_particl-reverselock_tests.o
  CXX      test/test_particl-rpc_tests.o
building of '/nix/store/n1mjn56iqn42jmy26lxbbjnjn8fkyxiv-particl-qt-<IP_ADDRESS>.drv' timed out after 3600 seconds
error: build of '/nix/store/n1mjn56iqn42jmy26lxbbjnjn8fkyxiv-particl-qt-<IP_ADDRESS>.drv' failed

Timed out, unknown build status on aarch64-linux (full log)
Attempted: particl-qt
Partial log (click to expand)
  CXX      leveldb/db/libleveldb_a-filename.o
  CXX      leveldb/db/libleveldb_a-log_reader.o
  CXX      leveldb/db/libleveldb_a-log_writer.o
  CXX      leveldb/db/libleveldb_a-memtable.o
  CXX      leveldb/db/libleveldb_a-repair.o
  CXX      leveldb/db/libleveldb_a-table_cache.o
  CXX      leveldb/db/libleveldb_a-version_edit.o
  CXX      leveldb/db/libleveldb_a-version_set.o
building of '/nix/store/2y64jca7l32r9acm3b11k54g85np0pnf-particl-qt-<IP_ADDRESS>.drv' timed out after 3600 seconds
error: build of '/nix/store/2y64jca7l32r9acm3b11k54g85np0pnf-particl-qt-<IP_ADDRESS>.drv' failed

Please rebase and resolve merge conflict. You can also try enableParallelBuilding = true; here to speed up the build. Also I think it would make sense to use the same version of boost as for particl-core (if that works).

I rebase and did same with boost. Also check UI tests - working. I guess enableParallelBuilding was inherited from particl-core into this derivation @xeji

Failure on aarch64-linux (full log)
Attempted: particl-qt
Partial log (click to expand)
libtool: warning: library '/nix/store/19xzi4s6ds8dijrla68543y11rkari2m-qtbase-5.11.1/lib/libQt5Core.la' was moved.
g++: error: libparticl_wallet.a: No such file or directory
make[2]: *** [Makefile:4840: qt/test/test_particl-qt] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/build/particl-core-<IP_ADDRESS>/src'
make[1]: *** [Makefile:11905: all-recursive] Error 1
make[1]: Leaving directory '/build/particl-core-<IP_ADDRESS>/src'
make: *** [Makefile:796: all-recursive] Error 1
builder for '/nix/store/ywpzc8rja3h7965r9a1xkh6bass8wvm5-particl-qt-<IP_ADDRESS>.drv' failed with exit code 2
error: build of '/nix/store/ywpzc8rja3h7965r9a1xkh6bass8wvm5-particl-qt-<IP_ADDRESS>.drv' failed

Failure on x86_64-linux (full log)
Attempted: particl-qt
Partial log (click to expand)
 #include <usbdevice/trezor/messages.pb.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:7801: usbdevice/libparticl_usbdevice_a-trezordevice.o] Error 1
make[2]: Leaving directory '/build/particl-core-<IP_ADDRESS>/src'
make[1]: *** [Makefile:11905: all-recursive] Error 1
make[1]: Leaving directory '/build/particl-core-<IP_ADDRESS>/src'
make: *** [Makefile:796: all-recursive] Error 1
builder for '/nix/store/ksfmc50pjr72cvaai0yq3903qc8sbys5-particl-qt-<IP_ADDRESS>.drv' failed with exit code 2
error: build of '/nix/store/ksfmc50pjr72cvaai0yq3903qc8sbys5-particl-qt-<IP_ADDRESS>.drv' failed

Im confused, this built well on my laptop. Also I already saw this error when I try to build .17-Alfa, but back then I decide its due to unstable version.
Now I have to find why build is not reproducible. Its ether parallelism or libhid.

Let's start the build again and see if anything changes.
@GrahamcOfBorg particl-qt

@GrahamcOfBorg build particl-qt

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: particl-qt
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: particl-qt
Partial log (click to expand)
shrinking /nix/store/8xllx8wk7ybas2xzc1yivzn9sgc8s3hj-particl-qt-<IP_ADDRESS>/bin/particl-tx
shrinking /nix/store/8xllx8wk7ybas2xzc1yivzn9sgc8s3hj-particl-qt-<IP_ADDRESS>/bin/test_particl-qt
shrinking /nix/store/8xllx8wk7ybas2xzc1yivzn9sgc8s3hj-particl-qt-<IP_ADDRESS>/lib/libparticlconsensus.so.0.0.0
gzipping man pages under /nix/store/8xllx8wk7ybas2xzc1yivzn9sgc8s3hj-particl-qt-<IP_ADDRESS>/share/man/
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/8xllx8wk7ybas2xzc1yivzn9sgc8s3hj-particl-qt-<IP_ADDRESS>/lib  /nix/store/8xllx8wk7ybas2xzc1yivzn9sgc8s3hj-particl-qt-<IP_ADDRESS>/bin
patching script interpreter paths in /nix/store/8xllx8wk7ybas2xzc1yivzn9sgc8s3hj-particl-qt-<IP_ADDRESS>
checking for references to /build in /nix/store/8xllx8wk7ybas2xzc1yivzn9sgc8s3hj-particl-qt-<IP_ADDRESS>...
postPatchMkspecs
/nix/store/8xllx8wk7ybas2xzc1yivzn9sgc8s3hj-particl-qt-<IP_ADDRESS>

Since the build for x86_64-linux succeeded now I would assume the parallel build is non-deterministic (some internal dependencies not properly specified). The obvious solution is to disable parallel building.

Thanks @xeji !
Disabled parallel building option for particl-qt and rebased to latest master.
It appears that C headers that should be generated by protobuf before compilation of usbdevice/ folder (needed for trezor hardware wallet support) occasionally was not generated during parallel build. Something for Particl team to look at.

Something for Particl team to look at.

I agree. It would be great if you could report that upstream.
So let's try the build again. It may time out without parallel building, we'll see...
@GrahamcOfBorg build particl-qt

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: particl-qt
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Failure on aarch64-linux (full log)
Attempted: particl-qt
Partial log (click to expand)
libtool: warning: library '/nix/store/1qabyk51hlaax67hmldyw78q8hrk8ma2-qtbase-5.11.1/lib/libQt5Core.la' was moved.
g++: error: libparticl_wallet.a: No such file or directory
make[2]: *** [Makefile:4840: qt/test/test_particl-qt] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/build/particl-core-<IP_ADDRESS>/src'
make[1]: *** [Makefile:11905: all-recursive] Error 1
make[1]: Leaving directory '/build/particl-core-<IP_ADDRESS>/src'
make: *** [Makefile:796: all-recursive] Error 1
builder for '/nix/store/xgx0rh8ldlckf180pmnq0f5fa7p6cxpb-particl-qt-<IP_ADDRESS>.drv' failed with exit code 2
error: build of '/nix/store/xgx0rh8ldlckf180pmnq0f5fa7p6cxpb-particl-qt-<IP_ADDRESS>.drv' failed

Failure on x86_64-linux (full log)
Attempted: particl-qt
Partial log (click to expand)
 #include <usbdevice/trezor/messages.pb.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:7801: usbdevice/libparticl_usbdevice_a-trezordevice.o] Error 1
make[2]: Leaving directory '/build/particl-core-<IP_ADDRESS>/src'
make[1]: *** [Makefile:11905: all-recursive] Error 1
make[1]: Leaving directory '/build/particl-core-<IP_ADDRESS>/src'
make: *** [Makefile:796: all-recursive] Error 1
builder for '/nix/store/davlh00g0pm00nb4zaf39njrv8cv2nmi-particl-qt-<IP_ADDRESS>.drv' failed with exit code 2
error: build of '/nix/store/davlh00g0pm00nb4zaf39njrv8cv2nmi-particl-qt-<IP_ADDRESS>.drv' failed

@GrahamcOfBorg build particl-qt

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: particl-qt
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Failure on x86_64-linux (full log)
Attempted: particl-qt
Partial log (click to expand)
 #include <usbdevice/trezor/messages.pb.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:7801: usbdevice/libparticl_usbdevice_a-trezordevice.o] Error 1
make[2]: Leaving directory '/build/particl-core-<IP_ADDRESS>/src'
make[1]: *** [Makefile:11905: all-recursive] Error 1
make[1]: Leaving directory '/build/particl-core-<IP_ADDRESS>/src'
make: *** [Makefile:796: all-recursive] Error 1
builder for '/nix/store/sh2lzx0j5pfqwsl07mf2yr2c1n4sm6gr-particl-qt-<IP_ADDRESS>.drv' failed with exit code 2
error: build of '/nix/store/sh2lzx0j5pfqwsl07mf2yr2c1n4sm6gr-particl-qt-<IP_ADDRESS>.drv' failed

Same error. Now I'm not sure if parallel build has to do something with it.
At this point I would rather wait for next official stable release with Makefile fix.

I agree. Let's mark this as WIP and wait.

Failure on aarch64-linux (full log)
Attempted: particl-qt
Partial log (click to expand)
 #include <usbdevice/trezor/messages.pb.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:7801: usbdevice/libparticl_usbdevice_a-trezordevice.o] Error 1
make[2]: Leaving directory '/build/particl-core-<IP_ADDRESS>/src'
make[1]: *** [Makefile:11905: all-recursive] Error 1
make[1]: Leaving directory '/build/particl-core-<IP_ADDRESS>/src'
make: *** [Makefile:796: all-recursive] Error 1
builder for '/nix/store/pwzc0s1bj0yk6v19vic27m1bvifzpchk-particl-qt-<IP_ADDRESS>.drv' failed with exit code 2
error: build of '/nix/store/pwzc0s1bj0yk6v19vic27m1bvifzpchk-particl-qt-<IP_ADDRESS>.drv' failed

Are there any updates on this pull request, please?

@mmahut pull request updated with actual version of source.


expand and collapse arrows

(Autographa 2.0 beta 2)
Issue Description:-
arrows used to collapse and expand the project details are used otherway round-(in projects page )
expand button - up arrow (should be down)

collapse button - down arrow (should be up )

This is been fixed.

looks good moving to done.
collapsed state:

Expand state:


feat: removes and migrates algorand.rb into own tap

After further consideration, I've decided that it is much better to maintain a separation of concerns between AlgoKit and the Algorand binaries brew tap. Separating them will allow us to lock the repository down, prevent supply-chain attacks where an attacker replaces the binary link to their own malicious version of Algorand.
https://github.com/algorandfoundation/homebrew-node
@aorumbayev

Seems like GitHub-actions merged the PR by itself @aorumbayev

@HashMapsData2Value last step in test yaml pipeline auto merge prs as previously this repo was used specifically for algo kit cli distribution. When cli repo triggers the brew release if brew tests on cask pass it merges the pr and updates the cask definition. If there is a need to add manual step overs for this process please reach out to @larkiny to discuss/prioritize and we can tweak the pipeline if needed.


no validation error raised when providing a bool to a float field

Question
setup

OS: Win10
Python version: 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)]
Pydantic version: 0.19

I am wondering what I am doing wrong in the following:
The code below does not raise a validation error, where it should (mismatching data types):
from pydantic import BaseModel

class Inputs(BaseModel):
    a :int = 1

inp = Inputs(**{"a":False})
#no error!

changing attribute a to string does raise an error:
from pydantic import BaseModel

class Inputs(BaseModel):
    a :int = 1

inp = Inputs(**{"a":'abc'})

#pydantic.error_wrappers.ValidationError: 1 validation error
#a
#  value is not a valid integer (type=type_error.integer)
#

> ipython
In [1]: isinstance(False, int)
Out[1]: True

False (or True for that matter) is an instance of int.
Therefore this is correct.

(bool is a subclass of int)


Is it possible to add a keyboard with a 75% layout

Such as Keychron K3
https://www.keychron.com/products/keychron-k3-max-qmk-via-wireless-custom-mechanical-keyboard

Hey there
Yes, it is possible to add the 75% option. Although I didn't originally have this layout in mind when writing the CSS grid, I guess with some modifications it would be okay.
I'm going to get it done as soon as possible.

It was done a long time ago, but I forgot to inform.
Thanks for your feedback, anyway!


query_ball_point_grid_count.cu notfound

Hi
I didn't find query_ball_point_grid_count.cu when do compile.sh

Hi @deepearthgo
that code snippet is for reference. It is not necessary to compile it. You can check tf_grouping_compile.sh for details.


Not working on wandering.shop

I'm not sure how the add-on recognises that a page is a Mastodon instance, but I have noticed that it doesn't work on wandering.shop (a small instance where I follow a bunch of people).

Works fine here... Not sure what's the issue

Update: It started working after I reloaded the profile page! Initially I opened it together with several other tabs, which may have affected the speed with which the page loaded. Maybe it's some weird race condition? It seems odd that it would affect this specific instance (perhaps it's tied to the performance of the server?).


TODO: pandoc-citeprod, remove from expected failures

As of nightly-01-16:
pandoc-citeproc-0.10.3: unexpected test success

Closing this one off, it's tracked as a flaky suite in https://github.com/jgm/pandoc-citeproc/issues/172.


Is there a way to make a card take the whole screen width?

react-native, react and native-base version
"react-native": "0.42.0",
"native-base": "2.1.0",
Expected behaviour
I'd like to make a card take the whole width of my sreen, or any other value I want.
Actual behaviour
Card has default width value, that I don't know how to change
Thanks ;)

@hpbl just override the style of  component. The spaces are due to the default margin given to the card.
To take the whole width
<Card style={{marginLeft:0,marginRight:0}}/>

To set a custom width
<Card style={{width:100}}/>

I thought I had tried that before, but it didn't work. Guess I was mistaken, since now that I've tried what you said, it works fine. Thank you!

Do reject theme and edit native-base-theme/components/Card.js
change marginVertical: 0, then use ejected theme

what about how to change the card height?

@jerryheir Why do you want to change height of card?
Depending upon the components you wrap within Card, the height is set accordingly

Okay, that what I wanted to know...
On Apr 23, 2018 07:15, "Supriya Kalghatgi"<EMAIL_ADDRESS>wrote:

@jerryheir https://github.com/jerryheir Why do you want to change
height of card?
Depending upon the components you wrap within Card, the height is set
accordingly
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GeekyAnts/NativeBase/issues/1374#issuecomment-383465972,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AcZ8pwC3o9zCZfqu1tYxZ9ITLvqgh1UOks5trXGZgaJpZM4Qgj8e
.


[Bug] Silk Moth deletes the lead it is tied to after restarting the world.

I use Fabric v.1.11.1 on MC 1.16.5 and API v.0.30.3, and mod version is v.0.9.1-pre-1.16.4/5
Looks like that when Silk Moths make leads they're tied to completely disappear after quitting and restarting the world, whether the lead is held by the player or by a fence. Images below:
-Before restarting the game;
-After restarting the game.
The Silk Moth is the only leashable mob that does this.

Fixed in 0.9.2


Timeouts no longer working in v0.10.0

@leopay reports that net.http.client.Timeout no longer works since moving away from Client.Do in https://github.com/RobotsAndPencils/buford/commit/2d03c359eab35051daee2c71485309361639bed1 (necessary to get the type assertion to GoAwayError).

@leopay #73 should solve this.

@leopay This should work again in v0.11.0. Thanks for the report.


Remove Add repo field from project create dialog

Removed add repo field

Return empty URL to backend

### I accidently deleted my branch......

I accidently deleted my branch......


After update, high CPU usage and unresponsive

Hi.
Since the most recent update quicksilver has been behaving differently on my macbook pro (OS 10.10.5). Fairly often (3 times today) it stops responding to my hotkey shortcut. I also can't access the logo in the top bar.
When I open activity monitor to force quit the program, it is taking up 80-99% of the CPU and is "Unresponsive" in Activity monitor.
Can I easily go back to the previous version?

I have exactly the same problem

Recent update to Quicksilver, or recent update to the Safari plug-in?
Previously, the Safari History preset was broken. It’s fixed now, so people are suddenly seeing thousands of additional entries in their catalog. Go to Preferences → Catalog → Plugins and look at the Safari History entry. If it has a huge number, you might want to disable it.
Previous versions of the app itself can be found at https://qsapp.com/archives/
If it’s not related to Safari history, please try this test build, which addresses another possibly related issue. https://cl.ly/0N3W180S2G45

Hi Rob!
You were 100% right about the history preset. It showed 60,000 entries. I
disabled it. I'll reply again in a few days if it keeps freezing.
Thanks,
Elliot
On Sat, Feb 25, 2017 at 1:58 PM, Rob McBroom<EMAIL_ADDRESS>wrote:

Recent update to Quicksilver, or recent update to the Safari plug-in?
Previously, the Safari History preset was broken. It’s fixed now, so
people are suddenly seeing thousands of additional entries in their
catalog. Go to Preferences → Catalog → Plugins and look at the Safari
History entry. If it has a huge number, you might want to disable it.
Previous versions of the app itself can be found at
https://qsapp.com/archives/
If it’s not related to Safari history, please try this test build, which
addresses another possibly related issue. https://cl.ly/0N3W180S2G45
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/quicksilver/Quicksilver/issues/2323#issuecomment-282504512,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYym0g5ty9oKx26RGH9JxQyRAZeiMmhdks5rgHnJgaJpZM4MKxgD
.

I've just had a couple of problems tonight with Quicksilver using large amount of memory and being unresponsive. I thought that I would get around the issue by clearing the history in Safari after reading this issue. It seems to have helped but I've still got 5678 items in the QS Safari history catalog. Seems a bit odd so maybe there is something else going on here as well.

I confirm that deactivating the Safari plugin and removing the (huge) Safari history, Quicksilver is now responsive again.

63833 entries.
That could be it. I've unchecked the Safari History in Catalog/Plugins/Safari, but left it turned on in Plugins/Safari. Will return here if that doesn't work to report next steps.
NB to anyone else with this problem: going to Catalog/Plugins and unchecking the Safari button looks as if you've stopped the history entries, as the number disappears. But if you then click the disclosure arrow, Safari History is still turned on; you probably need to turn it off there.

I think there was a general problem with large numbers of items in the catalog. The Safari History just happened to be a common source for a lot of people. I’m working on a fix. After the next release of QS, you should be able to re-enable Safari History (if you even want it).


WindowsError: [Error 193] %1 is not a valid Win32 application

after login, i got the following error:
using window 10, have encrypt.dll (64bit version) in root folder and also change the init.py file.
any further help for me?
Thanks
 Traceback (most recent call last):   File "pokecli.py", line 493, in <module>     main()   File "pokecli.py", line 127, in main     report_summary(bot)   File "pokecli.py", line 136, in report_summary     metrics.capture_stats()   File "C:\poke\PokemonGo-Bot\pokemongo_bot\metrics.py", line 76, in capture_stats     response_dict = request.call()   File "C:\poke\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 106, in call     result = self._call()   File "C:\poke\PokemonGo-Bot\pokemongo_bot\api_wrapper.py", line 63, in _call     return PGoApiRequest.call(self)   File "c:\poke\pokemongo-bot\src\pgoapi\pgoapi\pgoapi.py", line 210, in call     request.activate_signature(lib_path)   File "c:\poke\pokemongo-bot\src\pgoapi\pgoapi\rpc_api.py", line 85, in activate_signature     self._signature_lib = ctypes.cdll.LoadLibrary(lib_path)   File "c:\python27\Lib\ctypes\__init__.py", line 440, in LoadLibrary     return self._dlltype(name)   File "c:\python27\Lib\ctypes\__init__.py", line 362, in __init__     self._handle = _dlopen(self._name, mode) WindowsError: [Error 193] %1 is not a valid Win32 application

https://github.com/PokemonGoF/PokemonGo-Bot/issues/2780


[Android] Change to Android Studio 3

Reasons for making this change:

There is no need to add cache files one by one if we already ignore all cache files.
Since Android Studio 3.0 update, the apk generated will be in {project-folder}/app/release/app-release.apk

Links to documentation supporting these rule changes:

https://github.com/github/gitignore/pull/2644
https://stackoverflow.com/questions/46949719/android-studio-3-0-does-not-generate-signed-apk

@Neargye thanks!


Enable jogging a specific amount (similar to GCODE command G0)

In order to enable cuts of parts larger than the galvo's field of view, we can cut in quadrants. this requires precise motions in x and y.
Options:

Enable a GCODE-style interface where you can send commands via serial to move specific distances in X and Y.
Add a "Jog distance" mode where user sets the jog distance and jog buttons are used to move there.

It turns out interpreting serial commands from the computer is very annoying since things must be read one character at a time, and strings can only be 6 characters long.


"Inherited from" shows the name of the property, not the type

For example, in this case the property comes from ng.IScope in the angular definitelyTyped declarations
{
	"id": 149,
	"name": "$id",
	"kind": 1024,
	"kindString": "Property",
	"flags": {
		"isExported": true
	},
	"type": {
		"type": "instrinct",
		"name": "number"
	},
	"inheritedFrom": {
		"type": "reference",
		"name": "$id"
	}
}

I guess you didn't include the documentation of declaration files so the template falls back to print the name of the inherited symbol. I've added the name of the parent symbol so the output is more meaningful.
I'm more concerned to see the full path of angular.d.ts in your screenshot as this is an old and recurring bug. Do the source files of your project span across your whole hard drive?

Yeah, I'm excluding the externals simply to cut down on the volume of stuff it has to process (at least while I'm actively developing my doc solution ;)
The full path bit could be because of how I have my project structure.  I have a "site" project that contains the typedoc pieces (using a grunt task) and a "core" project that's the actual code I'm documenting, which live in a folder structure like this:
root
-- docs
  -- site
-- modules
  -- core

And then in my "site" project I have a grunt task for running TypeDoc that looks like this:
typedoc:
{
    build:
    {
        options:
        {
            out: "json/typedoc",
            json: "json/docs.json",
            target: "ES5",
            includeDeclarations: "",
            mode: "file",
            externalPattern: "**/scripts/typings/**",
            excludeExternals: ""
        },
        src: [
            "../../modules/core/src/**/*.ts",
            "../../modules/core/scripts/**/*.ts"
        ]
    }
}

So I could see how you could easily end up with full-path info, but you know far better than I :)
I honestly didn't even notice the path until you mentioned it because I'm not actually using it in my own docs ;)
Thanks man!

Version 0.3.1 is now on npm, is the issue resolved for you?

I think this issue should be resolved with v0.3.1. Please message me if I'm wrong.


Fixed issue #9020

Issue Reference
Fixed issue #9020

@shivendra-webkul
As I have checked and Found that the issue has been fixed, please check the video for reference.
Video
https://github.com/bagisto/bagisto/assets/92721837/832f9fec-724f-4a07-8768-d0198fab4973


Allow for 1% rollouts in supply command

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation, Context, Description
The Google Play API allows values below 0.05. For instance, a 0.01
value can be used to rollout to 1% of users. This change allows supply
to be run with a rollout value as low as 0.01.
Example:
+-------------------------+--------------------------------+
|                Summary for supply 2.35.2                 |
+-------------------------+--------------------------------+
| package_name            | *********************          |
| json_key                | /usr/src/app/key.json          |
| track                   | beta                           |
| track_promote_to        | rollout                        |
| rollout                 | 0.01                           |
| metadata_path           | /usr/src/app/fastlane/metadata |
| skip_upload_apk         | true                           |
| apk                     | release.apk                    |
| skip_upload_metadata    | false                          |
| skip_upload_images      | false                          |
| skip_upload_screenshots | false                          |
| validate_only           | false                          |
+-------------------------+--------------------------------+

[18:44:42]: Preparing to upload for language 'en-US'...
[18:44:43]: Updating changelog for code version '12100' and language 'en-US'...
[18:45:00]: Uploading all changes to Google Play...
[18:45:03]: Successfully finished the upload to Google Play

I signed it!

I may need debugging help with this test failure. I don't see a connection to my changes. The issue appears to be configuration related:
$ sudo xcode-select --switch /Applications/Xcode-8.2.app && xcodebuild -version
xcode-select: error: invalid developer directory '/Applications/Xcode-8.2.app'

sudo xcode-select --switch /Applications/Xcode-8.2.app && xcodebuild -version returned exit code 1

Action failed: Select Xcode Version

I triggered the tests again, this shouldn't have anything to do with your changes 👍

Anything I should do to help get this merged?

Thanks for pinging me, this will be in the next release 👍

Thanks for the quick response!


Card Number Text Field Not Responsive

Once all card info is entered and the cardNumberTextField is tapped (not swiped), the CardTextField will not transition back to the full cardNumberTextField mode or even allow editing of the card number.

Hi @sahil-a,
Thanks for reporting this issue. Does this only happen for specific card types? And which branch or version of Caishen are you using? On master (version 1.4.0, Swift 2.3) I am unable to reproduce this issue.

Unable to reproduce.


IsSupportedReference returns descriptive error

This can be useful to determine what they need to do to make a ko
publish work.

Codecov Report

Merging #233 into master will increase coverage by 0.13%.
The diff coverage is 72.72%.

@@            Coverage Diff             @@
##           master     #233      +/-   ##
==========================================
+ Coverage   36.64%   36.78%   +0.13%
==========================================
  Files          33       33
  Lines        1438     1441       +3
==========================================
+ Hits          527      530       +3
  Misses        822      822
  Partials       89       89

Impacted Files
Coverage Δ

pkg/build/limit.go
62.50% <ø> (ø)

pkg/build/recorder.go
100.00% <ø> (ø)

pkg/build/shared.go
100.00% <ø> (ø)

pkg/commands/publisher.go
0.00% <0.00%> (ø)

pkg/build/gobuild.go
58.15% <80.00%> (+0.29%)
:arrow_up:

pkg/internal/testing/fixed.go
69.56% <100.00%> (+1.38%)
:arrow_up:

pkg/resolve/resolve.go
68.75% <100.00%> (ø)

Continue to review full report at Codecov.

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


System.out.println(SystemTray.isSupported()); return false

System.out.println(SystemTray.isSupported()); return false and it is impossible hide app in tray. in main method it works fine

cannot reproduce


Is it a good idea to dynamic get config from configMap in kubernetes

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ ] Question or discussion

Question

What do you want to know?
Is it a good idea to dynamic config from configMap in kubernetes

nowadays,skywalking support the following config center:

I want to add a plugin for support dynamic get config by configMap event when running in kubernetes.

Could you provide detail about which API(s) you are planning to use for watching the config?

Similar to cluster-kubernetes-plugi, it's depends on

io.kubernetes
client-java

the api is  use event to watch: watch = Watch.createWatch(client, api.listNamespacedPodCall(namespace, null, null, null, null, labelSelector, Integer.MAX_VALUE, null, null, Boolean.TRUE, null, null), new TypeToken<Watch.Response>() {
}.getType());
and spring cloud config is already implement it ,you can refer to this
https://github.com/spring-cloud/spring-cloud-kubernetes/tree/master/spring-cloud-kubernetes-config

spring-cloud uses two modes to watch configmap changes: Polling, and Event. That's because it uses Watcher API which can disconnect (network problems, timeout, etc). So if users want to avoid them, Polling strategy is the option.
My suggestion is we should adopt to Informer which tries to re-list and re-watch to hide such failures from the caller. Below is the example
https://github.com/kubernetes-client/java/blob/master/examples/src/main/java/io/kubernetes/client/examples/InformerExample.java

In the afternoon,I learn some doc about the Informer.

In my mind , the Informer is a more effective
way to connect with api server compare with the watch event. so we can use it to watch configMap change event
the skywalking kubernetes version is 4.0.0, this version doesn't exist the Informer api,so we need to change the version of  kubernetes-client-java to 8.0.0.
Is need to change the cluster-kubernetes-plugin?

the skywalking kubernetes version is 4.0.0, this version doesn't exist the Informer api,so we need to change the version of kubernetes-client-java to 8.0.0.

Feel free to do, but you will need LICENSE update, and make CI passed(there are dependencies check)

Does it need to change the cluster-kubernetes-plugin by using Informer at the same time?

@hanahmily WDYT?

@wu-sheng  ok,i will do it on this week @hanahmily WDYT?

@hanahmily WDYT? But basically, this is a separate issue. You could do in 2 pull requests.
no problem

there is so many conflicts between client-java 4.0.0 with client-java 8.0.0 ,so maybe the receently commits choose 4.0.0 is a goog choose,in  the next commit , refactor this feature.
Known conflict:

@hanahmily I think you asked for informer, which requires the 8.0.
@EvanLEva How about we update the lib first?

ok, i try to modify it .but i don't hava test enviorment for envoy , I think the feature will be test  by regression testing

We leak of als(envoy related) tests, yes. I think have to ask @hanahmily to do some manual test for now.

@EvanLjp PR merged, I think you could continue on this.

no problem


Remove Community Toolkit notifications

Description
The Tookit notifications package has been effectively replaced by WinAppSdk's app notification support. This is a dependency we can remove now.
Concerned code
App.xaml.cs, AppLifecycleHelper, UIHelpers
Gains

Removes an unnecessary and outdated dependency

Requirements
No response
Comments
No response

I currently have a PR ready for this

@heftymouse thanks!


struct member + comma + comment on following line fails

struct Foo {
    bar: u32,
    // TODO more stuff
}

Formatting this will print "Rustfmt failed at /home/khuey/dev/scratch/struct-member-whitespace/src/lib.rs:2: left behind trailing whitespace (sorry)" and add a single space immediately after the comma.
Judging by what happens when I remove the comma, it seems like it's trying to move the comment after the member.

And note that this happens even with a blank line between the member and the comment.

Yes, without the comma the comment gets moved. Rustfmt has no justification for doing that (reformatting doc is one thing, comments are quite another).

Rustfmt has no justification for doing that

Rustfmt often has to move comments. It won't change comments, but moving them is sometimes necessary (in this case it is kind of a side-effect of moving them in other situations).

In 0.8.3, the above code gets formatted successfully:
struct Foo {
    bar: u32, // TODO more stuff
}

More to the point, this gets formatted correctly:
struct Foo {
    bar: u32,
    // TODO more stuff
}

Issue can be closed.


Multilingual records field

I encountered a problem while creating a records field on a translatable collection.
export default defineCollection({
    ...(pageLikeCollection({
        name: 'posts',
        pathPrefix: 'post',
        additionalPublicPagesFields: ['related'],
        additionalFields: {
            related: {
                type: 'records',
                options: {
                  collection: 'posts',
                  fields: { title: true, id: true }
                },
                additional: {
                    translatable: false
                }
            }
        },
    })),
    translatable: true,
})

When setting translatable: true, I need to keep the related posts manually in sync in every language.
When setting translatable: false, it always returns the post in the same language (the active language, when selecting the related posts).
Is there a way for a records field to automatically link to the post with the correct language?

Hi,
I see the issue you're facing, but there is no straightforward solution with the current field options, as the query builder does not rely on the "active" language - the language is simply another field to it. For instance, the query query('posts').all() retrieves all posts from all languages, and there is no way to determine how to resolve the synced related field based on the language. The way the sync currently works with the record and records fields is very raw, but correct.
The only place where the language field really matters is in the public pages route. Here we get the final prepared JSON for displaying pages with their metadata. The dashboard itself does not use this - instead, it relies on the query builder.
Another problem is, how to resolve non-existing translations for synced records. For example, if we have the following records: 1_en, 1_de, 2_en, 2_de, 3_de. Now if we edit 1_de and select 2_de and 3_de, we would expect that 1_en contains the record 2_en. If we now save 1_en, it becomes very difficult to retrieve 3_de since it has no translation.
Alternative approach: You could create a (non-translatable) tags field (of type records) with a (non-translatable) tags collection and resolve the related posts based on those. Or you can use the chips field with predefined tags to avoid creating an additional collection.


design issue how can solve.

@kaialsh705 You probably have missed to import CSS. Try adding below line in your code.
import 'react-chat-widget/lib/styles.css';


Twitter follow wyamio -> statiqdev

 Issue by devlead
Tuesday Jul 02, 2019 at 09:27 GMT
Originally opened as https://github.com/Wyamio/Wyam.Web/pull/88

devlead included the following code: https://github.com/Wyamio/Wyam.Web/pull/88/commits

No Twitter for now for Wyam2


Adaptations to tabulator 0.5

This might come in handy at some point - I made them a couple of weeks ago.
Use as reference and close, please don't merge directly.

@akariv
Thanks!
I suppose it's already in the codebase - https://github.com/frictionlessdata/datapackage-py/commit/2c4dc21af546e9bb159b412612ba582c0b3d02f7

Oh good! Must have missed it by a day...


email received from TomTom : Deprecation Notice – Traffic Incidents Details v4

Hello,
I use the MM-TomTom Traffic module
I received this email below from tomtom yesterday, and I am having trouble understanding this email.
Will this change something for the module, is there an update to do and which one ?
"We’d like to notify you about the deprecation of Traffic Incidents Details API v4, part of the Traffic API family. The deprecation will be effective as of 04/13/2021 under the TomTom deprecation policy. The planned withdrawal date is in one year later, on 04/13/2022. 									 									Why is this happening? 									 									We’re constantly making improvements in our products based on  feedback from the users. In this update specifically, we eliminated  superfluous steps, simplifying the overall usage. 									 									Here’s the changes to expect with version 5 of the Traffic Incidents Details API:
| Only EPSG4326 coordinate system is supported;

  | Only JSON format is supported;

  | Flexibility to work with selected attributes only:

  | Bandwidth optimization (no over- and under-fetching problems)

  | Adding new attributes is always backward compatible and does not affect existing clients

  | Support for event codes (Alert-C);

  | No relation to styles or visualization:

  | - No shifted geometry provided

  | - No support for clusters

  | Different bounding-box limitation

  | Clearer end-point parameter names"
This is the link of TomTom Traffic API : https://developer.tomtom.com/traffic-api/traffic-api-documentation-traffic-incidents/incident-details-v4?utm_source=oneoff&utm_medium=email&utm_campaign=dev_all_trafficincidentdetailsdeprecation_202104_oo_news

Hi,
This API is for getting details about traffic incidents (traffic accidents, road closures, etc) which the module does not use. The module only calls the "traffic flow" API.
It should keep working after this deprecation.

Thank you


Get/Insert entity returns 500 error

Which service(blob, file, queue, table) does this issue concern?
table
Which version of the Azurite was used?
3.22
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
winget
What problem was encountered?
HTTP 500 errors are returned when attempting to Get or Insert a specific set of entity values
Steps to reproduce the issue?
Attempt to query for or insert the following partition/row key pair:

partition key
row key

myqueue
pf0HG52Axf1w1nsbUyAEuvflpcCxq/KsEj6TYZqge0Y=

Have you found a mitigation/solution?
If I UrlEncode the row key first, everything works.

Maybe not related, but I all of a sudden started having this 500 error with storage blobs. The Azurite debug logs had this:
2023-05-06T16:18:58.427Z b3ae8d8c-7759-4828-b93c-0d6809f6d522 error: ErrorMiddleware: Received an error, fill error information to HTTP response
2023-05-06T16:18:58.427Z b3ae8d8c-7759-4828-b93c-0d6809f6d522 error: ErrorMiddleware: ErrorName=Error ErrorMessage=ENOENT: no such file or directory, open 'C:\Users\david\AppData\Local\Temp\Azurite\__blobstorage__\3bade26d-47ee-4262-b14e-ecd6125a7778' ErrorStack="Error: ENOENT: no such file or directory, open 'C:\\Users\\david\\AppData\\Local\\Temp\\Azurite\\__blobstorage__\\3bade26d-47ee-4262-b14e-ecd6125a7778'"
2023-05-06T16:18:58.427Z b3ae8d8c-7759-4828-b93c-0d6809f6d522 error: ErrorMiddleware: Set HTTP code: 500

Looking in that __blobstorage__ folder, it was missing a bunch of records (my app never deletes records so I doubt this was an issue on my side). I ended up deleting that entire Azurite temp folder and everything is working again (note: doing this will obviously cause you to lose data, but in my case it seems most of the data was already lost somehow).
Version: 3.20.1 installed from latest Visual Studio Community 17.5.5 -- C# Azure.Storage.Blobs 12.16.0

@brandonh-msft it would be helpful if you could share which SDK you are using, and how we can reproduce the error.
Many thanks!

@edwin-huber I'm seeing this as well. I think it's something to do with the way that batch operations are handled.
You can reproduce the issue using .NET and the  Microsoft.Azure.Cosmos.Table library:
using Microsoft.Azure.Cosmos.Table;

var storageAccount = CloudStorageAccount.Parse("UseDevelopmentStorage=true");
var tableClient = storageAccount.CreateCloudTableClient();

var client = tableClient.GetTableReference("foo");
client.CreateIfNotExists();

var batch = new TableBatchOperation();
batch.Add(TableOperation.InsertOrMerge(new DynamicTableEntity("foo", "c8b06c47-c755-4b53-b3da-73949ebbb24f")));
batch.Add(TableOperation.InsertOrMerge(new DynamicTableEntity("foo", "08667dfd-d2e0-4e20-a51e-7bc13d01c89c")));

// This errors with a 500 response
var result = await client.ExecuteBatchAsync(batch);

// clean up
client.DeleteIfExists();

If you switch from doing a batch insert to executing the operations separately it works:
// This works
var operation = TableOperation.InsertOrMerge(new DynamicTableEntity("foo", "c8b06c47-c755-4b53-b3da-73949ebbb24f"));
var result = await client.ExecuteAsync(operation);
operation = TableOperation.InsertOrMerge(new DynamicTableEntity("foo", "08667dfd-d2e0-4e20-a51e-7bc13d01c89c"));
result = await client.ExecuteAsync(operation);

Both versions of the code execute successfully against a real Azure storage account.
The debug logs are as follows:
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 info: TableStorageContextMiddleware: RequestMethod=POST RequestURL=http://<IP_ADDRESS>/devstoreaccount1/$batch RequestHeaders:{"host":"<IP_ADDRESS>:10002","accept-charset":"UTF-8","maxdataserviceversion":"3.0;NetFx","accept":"application/json; odata=minimalmetadata","dataserviceversion":"3.0;","x-ms-client-request-id":"cf4bfad7-fb61-4e4d-a5a8-37fdfa1cff85","user-agent":"Azure-Cosmos-Table/1.0.8 (.NET CLR 7.0.5; Win32NT 10.0.22621.0)","x-ms-version":"2017-07-29","x-ms-date":"Wed, 10 May 2023 13:46:02 GMT","authorization":"SharedKey devstoreaccount1:redacted","traceparent":"00-dc870f32220574bc1fde25297fd64ac3-f65d0940080c2e8d-00","content-type":"multipart/mixed; boundary=batch_3c0249f2-95e8-4ef7-8d04-f03b6b2a4418","content-length":"950"} ClientIP=<IP_ADDRESS> Protocol=http HTTPVersion=1.1
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 debug: tableStorageContextMiddleware: Dispatch pattern string: /$batch
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 info: tableStorageContextMiddleware: Account=devstoreaccount1 tableName=$batch
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 verbose: DispatchMiddleware: Dispatching request...
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 info: DispatchMiddleware: Operation=Table_Batch
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 verbose: AuthenticationMiddlewareFactory:createAuthenticationMiddleware() Validating authentications.
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 info: TableSharedKeyLiteAuthenticator:validate() Start validation against account shared key authentication.
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 info: TableSharedKeyLiteAuthenticator:validate() Request doesn't include valid authentication header. Skip SharedKeyLite authentication.
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 info: TableSharedKeyAuthenticator:validate() Start validation against account shared key authentication.
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 info: TableSharedKeyAuthenticator:validate() [STRING TO SIGN]:"POST\n\nmultipart/mixed; boundary=batch_3c0249f2-95e8-4ef7-8d04-f03b6b2a4418\nWed, 10 May 2023 13:46:02 GMT\n/devstoreaccount1/devstoreaccount1/$batch"
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 info: TableSharedKeyAuthenticator:validate() Calculated authentication header based on key1: SharedKey devstoreaccount1:HB0WEgL3DMvHe7yBjRtOQ29u3o+dEWlwapXZ3Tx1dOY=
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 info: TableSharedKeyAuthenticator:validate() Signature 1 matched.
2023-05-10T13:46:02.346Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 verbose: DeserializerMiddleware: Start deserializing...
2023-05-10T13:46:02.347Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 info: HandlerMiddleware: DeserializedParameters={"version":"2017-07-29","options":{"requestId":"cf4bfad7-fb61-4e4d-a5a8-37fdfa1cff85","dataServiceVersion":"3.0;"},"multipartContentType":"multipart/mixed; boundary=batch_3c0249f2-95e8-4ef7-8d04-f03b6b2a4418","contentLength":950,"body":"ReadableStream"}
2023-05-10T13:46:02.347Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 debug: TableHandler:batch() Raw request string is "--batch_3c0249f2-95e8-4ef7-8d04-f03b6b2a4418\r\nContent-Type: multipart/mixed; boundary=changeset_54723ba3-acae-43df-85ce-b7c6b8d50fbc\r\n\r\n--changeset_54723ba3-acae-43df-85ce-b7c6b8d50fbc\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nMERGE http://<IP_ADDRESS>:10002/devstoreaccount1/foo(PartitionKey='foo',RowKey='c8b06c47-c755-4b53-b3da-73949ebbb24f') HTTP/1.1\r\nAccept: application/json;odata=minimalmetadata\r\nContent-Type: application/json\r\nDataServiceVersion: 3.0;\r\n\r\n{}\r\n--changeset_54723ba3-acae-43df-85ce-b7c6b8d50fbc\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nMERGE http://<IP_ADDRESS>:10002/devstoreaccount1/foo(PartitionKey='foo',RowKey='08667dfd-d2e0-4e20-a51e-7bc13d01c89c') HTTP/1.1\r\nAccept: application/json;odata=minimalmetadata\r\nContent-Type: application/json\r\nDataServiceVersion: 3.0;\r\n\r\n{}\r\n--changeset_54723ba3-acae-43df-85ce-b7c6b8d50fbc--\r\n--batch_3c0249f2-95e8-4ef7-8d04-f03b6b2a4418--\r\n"
2023-05-10T13:46:02.347Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 error: ErrorMiddleware: Received an error, fill error information to HTTP response
2023-05-10T13:46:02.347Z 1912c7b3-41ab-4bcd-9f87-28c913eae8d2 error: ErrorMiddleware: ErrorName=Error ErrorMessage=Couldn't extract path from sub-Request:

@brandonh-msft Brandon Hurlburt FTE it would be helpful if you could share which SDK you are using, and how we can reproduce the error. Many thanks!

no problem! In my case I am using the Azure.Data.Tables package v12.8.0
Sorry if my repro wasn't clear in the initial post. By simply attempting to insert or query for the following partition/row key pair I get the error

partition key
row key

myqueue
pf0HG52Axf1w1nsbUyAEuvflpcCxq/KsEj6TYZqge0Y=

I found that doing a UrlEncode on the row key value the request works but, honestly, that was a crazy guess on my part 😅
hope that helps.

This code path and these operations are different in the Javascript / Typescript libraries.
Need to repro and test via .Net.
Javascript does not use the TableBatchOperation, rather the TableTransaction

Using Upsert in the Javascript data tables SDK uses Merge, but does not repro the issue.
Now trying .Net

Fix in current PR


No identifiers available

As far as I understood the identifiers (TV inputs, Applications) are automatically available after adding new TV.
I also can see that the plugin downloads all the data from the TV but there is no drop down menu where I can select them.

My trials to fix this issues:

TV deleted in the plugin and set up again
Plugin deleted and restored
Refreshing the data in the plugin
All this does not help - any ideas?
Homebridge version is 1.3.4 - plugin 5.0.1

Can u try again with v5.0.2 pls

Fixed in v5.0.5

Sorry to give so late some feedback but I was on vacation. Well tried 5.0.6 and still the same issue - no identifiers.

Refreshing of the 'old' config. All the data were downloaded but still the same problem
Deleting the 'old' config and creating new TV - also here the data is downloaded and stored but not identifiers at all later

Can you post your tv cache (located in your homebridge folder/bravia/TVNAME.json)
And how do you „edit“ your config?

Because there are two possibilities to edit the config. (1) or (2)

This is how the file looks like.
I use the option 2 for editing - is it the right way?

Sorry - I use the option 1 for editing.
If I choose the option 2 something like this happens

Sorry - I use the option 1 for editing.
If I choose the option 2 something like this happens

Ok thats related to #163
can you check the error in the browser console pls? And which browser do you use?
anything in the homebridge logs?

Well I can not see any errors in the console. Everything seems to work fine - there are also no errors or warnings in the log.
I primarily use Safari (iOS 15) but just checked Edge (one iOS) with the same result - empty page.

Can you remove the browser cache and try again pls

No change at all.
I tired also Firefox on my MacBook - the same result.

Can you post your config.json pls

{
"bridge": {
"name": "Homebridge 5AF8",
"username": "",
"port": ,
"pin": "",
"advertiser": "ciao"
},
"accessories": [
{
"name": "Nepomuk",
"model": "600",
"blid": "",
"robotpwd": "",
"ipaddress": "192.168..",
"autoRefreshEnabled": true,
"dockContactSensor": true,
"runningContactSensor": false,
"binContactSensor": true,
"cacheTTL": 900,
"accessory": "Roomba2"
}
],
"platforms": [
{
"name": "Config",
"port": 8581,
"platform": "config"
},
{
"name": "HomeMatic CCU",
"ccu_ip": "192.168..",
"subsection": "Homekit",
"enable_hmip": false,
"enable_wired": false,
"ios10": true,
"platform": "HomeMatic"
},
{
"name": "Shelly",
"admin": {
"enabled": true
},
"requestTimeout": 3000,
"platform": "Shelly"
},
{
"username": "",
"password": "",
"enableDetailedLogging": false,
"pollingIntervalMinutes": "1",
"hkHome": 1,
"hkAway": 0,
"hkNight": 3,
"hkOff": 63,
"hkDisarmed": 6,
"platform": "EufySecurity",
"ignoreStations": [],
"ignoreDevices": []
},
{
"name": "BraviaTVOS",
"platform": "BraviaOSPlatform",
"debug": true,
"warn": true,
"error": true,
"extendedError": true,
"tvs": [
{
"active": true,
"name": "Bravia",
"ip": "192.168..",
"port": 80,
"manufacturer": "Sony",
"model": "Bravia",
"serialNumber": "00000000",
"wol": false,
"oldModel": false,
"refreshInputs": false,
"polling": 10,
"sheduledRefresh": 12,
"inputs": [],
"apps": [],
"channels": [],
"commands": [],
"macros": [],
"remote": [],
"displayOrder": [
"inputs",
"apps",
"channels",
"commands",
"macros"
],
"speaker": {
"active": true,
"output": "speaker",
"increaseBy": 1,
"reduceBy": 1,
"accType": "lightbulb"
},
"psk": "**"
}
]
}
],
"disabledPlugins": [
"homebridge-plugin-eufy-security"
]
}

can u test v5.0.7-beta pls
sudo npm i -g homebridge-bravia-tvos@beta
Closing this issue, because its the same with #163

Both, the 5.0.7 beta as well the released 5.0.7 show the same behavior:

no identifiers if you use the "upper" config link
blank page if you try to config the TV by using the "lower" config button

Steps done

installing 5.0.7
deleting "old" TV
restarting the whole homebodies server
setting up new TV

The „upper“ config is an advanced form of config which provides the user to put inputs which cant be cached from the plugin. So It is intended that it does not show any inputs.
User which can not handle that should use the „lower“ config.
pls try following steps:

Remove the tv cache (homebridge folder/bravia/TVNAME.json
Open config ui and „refresh“ the tv cache on selecting the tv and clicking he refresh button
Try to open the tv config (lower config)

After following your instructions there is still an empty config page.
After deleting and reinstalling the plugin there is still the same problem

@mkoxyz
can u post the tv cache here and the browser console

@mkoxyz
can u post the tv cache here and the browser console

Which files exactly do you need?

you can use online tools like https://ctxt.io/ for copy paste your cache

Your tv cache looks normal. Can you post me your browser console please?

Open Google Chrome
Open Homebridge UI
Switch to Plugins
Open Google DevTools (Windows: CTRL+ SHIFT + I - Mac: Cmd + Option + I)
In DevTools switch tab to Console
In Homebridge UI > Plugins, select Bravia TV OS Settings
Select your TV
Click on the purple Edit Icon
Make a screenshot from your DevTools Console and post it here pls

This is how the screenshot looks like

I just noticed that the ONLY combination where this page opens correctly is my iMac and Chrome. Any other browser on iMac opened only the blank page. On my iPad/iPhone the page opens only blank - no matter which browser I use


chore: updates samples to also show how to use multiple proofs

Description

[X] Tests for the changes have been added (for bug fixes / features)
[X] The commit message(s) follow conventional commits
[X] Documentation has been added / updated (for bug fixes / features)
[X] Changes follow the contributing document.

Motivation and Context

This updates the samples to show how to derive a proof from a document with multiple supported proofs which is related to issue #79
Does this PR introduce a breaking change?

[ ] Yes
[X] No

Which merge strategy will you use?

[X] Squash
[ ] Rebase (REVIEW COMMITS)

PR #82 should be merged and release for 0.8.0 should occur before merging this PR


Improve Darwin framework APIs to follow Objective-C conventions better.

Specific changes:

Rename Payload structs to Params structs.
For commands with no fields, have the name be fooWithCompletionHandler and
no params struct.
For commands with only optional fields, allow the params struct to be nil.
Rename "responseHandler" to "completionHandler" so that we get the
behavior described in
https://developer.apple.com/documentation/swift/calling_objective-c_apis_asynchronously

Problem
See above.
Change overview
See above.
Testing
No behavior changes intended.

fast track: platform specific changes


Reactive Features of MicroProfile talk by Ondro at GeeCon Prague 2019

Conference website and social media links:

https://2019.geecon.cz/
https://twitter.com/geecon

Talk name: Reactive Features of MicroProfile You Need to Learn
Talk time: Friday, October 19, 1:50 PM
Talk room: Room 6
Talk Link: https://2019.geecon.cz/speakers/?id=569
Speakers: Ondro Mihalyi, @OndroMih, Payara Senior Engineer
Tweet: Join @OndroMih to learn about new @microprofile #reactive APIs @GeeCon and why it's important to learn them even if you haven't heard about #MicroProfile. Friday at 1:50pm room 6: https://2019.geecon.cz/speakers/?id=569 #Payara #opensource #geecon
Picture of the speaker: https://blog.payara.fish/hubfs/Ondrej-1.jpg

@OndroMih All scheduled. Please be carful with your tweet message. You has the MP twitter handle wrong. I adjusted it.

@rstjames the GeeCon template designs with the pic of the city rock. Can you please drop the templates on the social media folder and while at it keep up adding templates as created by different events in different countries. It seems to me, that such a cute templates can be used in the future :)  Thanks for the follow up!


BUGFIX: Fix Darkness Spell interaction with Devil's Sight and similar ability

Now that we have better handled sight and advantage elsewhere (if switched on), darkness should no more give other source of disadvantage on attack. Besides, the immunity to condition darkness provided by the condition affinity prevents one with devil sight and similar abilities from inflicting condition darkness, causing other problems (like attackers with darkvision ignore your obscurity as if you are in normal unlit condition) so I removed this immunity.

As in the screenshot, now the darkness functions as expected.

I will take a look

Done with it)

this: https://github.com/SolastaMods/SolastaUnfinishedBusiness/commit/1623f5821655e28eb7917244814515deede1611c


fix: eslint excludes .json & ignored files (#316)

Fixes #316
/cc @johnnyreilly

This should be out in the next hour or two. Thanks @eamodio!

 It was you that brought sensitivity: 'accent' to the party 😁

Haha -- yeah, such a strange api for doing an insensitive string compare. Couldn't be something like .equalsIgnoreCase or something obvious. But this is JS after all 😉

:tada: This PR is included in version 1.4.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

@piotr-oles has this regressed? I'm not seeing any usages of .isPathIgnored in the codebase now.


Add all-in-one pairwise alignment wrapper

Example CUE that I actually used provided. Generally ready for review, except mypy and I'm not sure if it's worth it? For the event of excluding it from mypy, I wasn't sure if there's a option to do that or to move the file to internal.
Also looking for feedback on how things can be different for usability. In the example, the idea is that to adapt to different project the user only has to modify the first 150 lines. Everything else (like manipulating paths) should be as automated as possible to remove fluffs and improve readability.

Since it's likely to need significant work to get it pass tests, I'll make it draft for now and revisit it later next time I use it.


Added 1.21-2 docs

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Holding until ready for this step

/lgtm

/unhold


UI Fixes 2

This is best reviewed commit-by-commit, as they are mostly independent changes.
Many of the bugs were caused by Apollo Cache issues. The problem is that by default InMemoryCache will "normalize" objects based on their type and ID. So if one query gets currentUser, which returns {id: '123', primaryGroup: {/*something*/}}, then another query gets dataset { submitter { primaryGroup } }, which returns {submitter: { primaryGroup: null } }, then the initial currentUser query's result actually gets overwritten with the primaryGroup: null change. I've done several things to fix this:

Explicitly exclude the User GraphQL type from normalization. InMemoryCache will instead cache users by their parent object or path in the GraphQL query used to fetch them. The above two examples will thus have different cache keys: ROOT_QUERY.currentUser and Dataset(123).submitter
Disable loading data from the cache by default. This will mean that most pages re-fetch data when you open them. I've selectively added back caching to things that don't update as often.
For optical images it was too much work to intelligently clear the cache for just the updated dataset, so I instead changed it to clear the entire cache when optical images are uploaded

Note that the cache issues only showed up in the feature/user-auth-mutations branch due to its scopeRole changes. It would be best to test in a local copy that has that branch merged in.
Other reported bugs fixed:

Fixed urlSlug being incorrectly sent when updating other fields in groups & projects
Fixed the invalid submitter filter that appeared when clicking a submitter name in the datasets list
Move success message popups so that they don't block the menu bar

Other unreported bugs fixed:

Hid the "Request Access" button that appeared when viewing a group/project as a logged-out user.
Fixed CSV generation for datasets that had commas in their names.
Added a change password button to My Account.
Remove "Institution" filters. Instead of displaying "Institution", display "Group" instead. This also required a change to the aggregation fields on the GraphQL side for the dataset summary.
Add missing id fields to queries, because InMemoryCache complains when a datatype has an ID in some queries but not others.

TODO in this PR: Remove authenticated from Vuex to fix UploadPage behavior when user is not signed in


Cleanup models after conversion

CVS-157654

thanks, but @aleksandr-mokrov that os unlikely solve issue provided in the ticket.
OpenVINO uses mmap for reduce amount of required memory for model loading. This approach brings own limitations on windows - if file in use, OS blocks access to it until usage will be not finished (process finished itself or object explicitly removed by user).
Current problem that in this notebook we have instance of fp pipeline with compiled models and then try to read them again for quantization. So to solve problem, you need to remove ov_pipeline before start quantization.


How do we store a photograph of a patient in their SHR?

I added a Photograph entry in the demographics namespace for now which just has a file path to an image file. Could also be used for a more generic attachment mechanism for PDFs and imaging results for examples?

What branch are you on? Did you follow FHIR's approach?

I added it to the object model, not to the spec. I don't know FHIR's approach.

Added "Headshot" to Person
Element:		Headshot
Concept:		TBD
Description:	"A photograph showing a person's face."
Value:		Media


List the PackageIdentifier of the package to be added to automation
Redisant.RedisAssistant
Details about the application
https://www.redisant.com/activate/checkUpdate
PackageVersion: $Response.version
InstallerUrl: $Response.enDownloadUrl
ReleaseNotes: $Response.enDescribes[0]
$Response.enDescribes[0..($Response.enDescribes.Length - 2)] -replace '^','- ' -join "`n"

InstallerSha256: $Response.enDescribes[-1]
PR: https://github.com/microsoft/winget-pkgs/pull/58788

List the PackageIdentifier of the package to be added to automation
Redisant.DataAssistant
Details about the application
https://www.redisant.com/da/activate/checkUpdate
PR: https://github.com/microsoft/winget-pkgs/pull/58793

List the PackageIdentifier of the package to be added to automation
Redisant.LittleTips
Details about the application
https://www.redisant.com/lt/activate/checkUpdate
No checksum

List the PackageIdentifier of the package to be added to automation
Redisant.ZooKeeperAssistant
Details about the application
http://www.redisant.cn/za/activate/checkUpdate
PR: https://github.com/microsoft/winget-pkgs/pull/58870

List the PackageIdentifier of the package to be added to automation
Redisant.KafkaAssistant
Details about the application
https://www.redisant.com/ka/activate/checkUpdate
PR: https://github.com/microsoft/winget-pkgs/pull/58873

TinyGUI is still left.

TinyGUI doesn't have update source.

Redisant.RabbitMQAssistant
https://www.redisant.com/rta/activate/checkUpdate


JDK 11 preparation and jakarta uptake.

Signed-off-by: Tomas Kraus<EMAIL_ADDRESS>

TODO: Updata java.activation dependency when jakarta.activation is released.

Fixed. Now find ./ -type f -exec grep -Hn 'java.net' {} \; returns no URLs, just some package imports, etc.

If you look at the bottom of generated javadoc page, does what it says make sense to you?

Comments to<EMAIL_ADDRESS>More information at: https://projects.eclipse.org/projects/ee4j.jaxb
What's wrong on it?

Removed the last line - Oracle copyright.

Yup, that was it. I've just had bad feeling about it. Good you spotted it.


Can't handle fetch cancelation

Hi, I can't handle fetch cancelation. See code below:
Steps to reproduce
const fetchTask = (url) => task(resolver => {
  const controller = new AbortController()
  const init = {
    signal: controller.signal,
    method: 'post',
  }
  fetch(url, init)
    .then(resolver.resolve)
    .catch(resolver.reject)
  resolver.onCancelled(() => {
    controller.abort()
  })
})
fetchTask('/some/path').run().cancel()
// after cancel() i'll got this error:
// Uncaught (in promise) Error: Only pending deferreds can be rejected, this deferred is already rejected.

Expected behaviour
Task rejected with error
I understand why does it happen but how I can handle cancelation error? Or may be I do it wrong?

Sorry for the long silence... But you suggest is the same. The error occurs due to task can't pass from canceled state to rejected. You can do transition only from Pending state:
https://github.com/origamitower/folktale/blob/3e2f007907323069467529cbc9ba574df19dfabd/packages/base/source/concurrency/future/_deferred.js#L33

the problem is i can't handle cancelled task:
const execution = asyncTask() // long execution
  .mapRejected((e) => {
    console.dir(e) // never get here
  })
  .run()
setTimeout(() => {
  execution.cancel() // cancel after 100 ms
}, 100)

how can i handle, that task was cancelled?

 //ApiActionGetWorkshopCancelable :: number -> Task export const ApiActionGetWorkshopCancelable = workshopId =>   task(resolver => {     const abortController = new AbortController();     API(abortController)       .get(/workshops/${workshopId})       .then(resolver.resolve)       .catch(e => !resolver.isCancelled && resolver.rejected(e));     resolver.onCancelled(() => abortController.abort());   });
Docs says:
The onCancelled function takes a callback that'll be invoked when the task's execution is cancelled. The resolver also has an isCancelled boolean field that can be queried at any time to determine whether the task has been cancelled or not at that point in time.
Is this legite ?


not support for gpt-3.5-turbo-16k-0613

tkm, err := tiktoken.EncodingForModel("gpt-3.5-turbo-16k-0613")
get err even loaded file from https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken

It works fine for me.

If there are still errors, please provide me with more details about the errors.

This should satisfy the issue you are seeing: https://github.com/pkoukk/tiktoken-go/pull/32


Serialization problems in keras when using add_loss or '.tf' extension for saving

System information

WSL Win10 Ubuntu 18.04 (it also happens in a real ubuntu 18)
tf-nightly-gpu-2.0-preview==2.0.0.dev20190802 (happens in cpu and gpu)
python3.7

Describe the current behavior
I have a simple test to serialized and deserialize a model which has no compiled loss, just one added with add_loss.
Describe the expected behavior
Correct serialization and deserialization of the code
Code 1 to reproduce the issue
Occurs with both the pure loss function (which on earlier version would return json errors, but now seems ok), but also with the Lambda wrapper.
import tensorflow as tf
import tensorflow.keras as tf_k

model = tf_k.models.Sequential()
model.add(tf_k.layers.Conv2D(32, (3, 3), activation='relu', batch_size=32, input_shape=(28, 28, 1), padding='same', strides=2))
model.add(tf_k.layers.Conv2DTranspose(64, (3, 3), strides=2, padding='same'))
model.add(tf_k.layers.Conv2D(1, (3, 3), activation='sigmoid', padding='same'))
#loss = tf_k.layers.Lambda(lambda i: tf_k.losses.mse(*i))([model.inputs[0], model.outputs[0]])
loss = tf_k.losses.mean_squared_error(model.inputs[0], tf.zeros_like(model.inputs[0]))
model.add_loss(loss)
model.compile(optimizer='adam')
model.save('teste.h5')
model = tf.keras.models.load_model('teste.h5')

2019-08-03 03:38:05.624310: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2019-08-03 03:38:05.624506: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)
2019-08-03 03:38:05.624652: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (DESKTOP-GUERINJR): /proc/driver/nvidia/version does not exist
2019-08-03 03:38:05.624991: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-08-03 03:38:05.634458: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-08-03 03:38:05.636116: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7fffe06c0120 executing computations on platform Host. Devices:
2019-08-03 03:38:05.636259: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): Host, Default Version
WARNING: Logging before flag parsing goes to stderr.
W0803 03:38:05.683956<PHONE_NUMBER>80832 training_utils.py:1320] Output conv2d_1 missing from loss dictionary. We assume this was done on purpose. The fit and evaluate APIs will not be expecting any data to be passed to conv2d_1.
Traceback (most recent call last):
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 1554, in _create_c_op
    c_op = c_api.TF_FinishOperation(op_desc)
tensorflow.python.framework.errors_impl.InvalidArgumentError: 1 inputs specified of 2 inputs in Op while building NodeDef 'tf_op_layer_SquaredDifference/SquaredDifference' using Op<name=SquaredDifference; signature=x:T, y:T -> z:T; attr=T:type,allowed=[DT_BFLOAT16, DT_HALF, DT_FLOAT, DT_DOUBLE, DT_INT32, DT_INT64, DT_COMPLEX64, DT_COMPLEX128]; is_commutative=true>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nguerinjr/Documents/deep_coding_project/img_common/teste.py", line 14, in <module>
    model = tf.keras.models.load_model('teste.h5')
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/save.py", line 138, in load_model
    return hdf5_format.load_model_from_hdf5(filepath, custom_objects, compile)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/hdf5_format.py", line 162, in load_model_from_hdf5
    custom_objects=custom_objects)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/model_config.py", line 55, in model_from_config
    return deserialize(config, custom_objects=custom_objects)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/layers/serialization.py", line 98, in deserialize
    printable_module_name='layer')
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/utils/generic_utils.py", line 191, in deserialize_keras_object
    list(custom_objects.items())))
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/sequential.py", line 369, in from_config
    model.add(layer)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/training/tracking/base.py", line 457, in _method_wrapper
    result = method(self, *args, **kwargs)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/sequential.py", line 195, in add
    output_tensor = layer(self.outputs[0])
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/base_layer.py", line 799, in __call__
    outputs = call_fn(cast_inputs, *args, **kwargs)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/base_layer.py", line 2507, in call
    return self._make_op(inputs)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/base_layer.py", line 2530, in _make_op
    c_op = ops._create_c_op(graph, node_def, inputs, control_inputs=[])
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 1557, in _create_c_op
    raise ValueError(str(e))
ValueError: 1 inputs specified of 2 inputs in Op while building NodeDef 'tf_op_layer_SquaredDifference/SquaredDifference' using Op<name=SquaredDifference; signature=x:T, y:T -> z:T; attr=T:type,allowed=[DT_BFLOAT16, DT_HALF, DT_FLOAT, DT_DOUBLE, DT_INT32, DT_INT64, DT_COMPLEX64, DT_COMPLEX128]; is_commutative=true>

Process finished with exit code 1

Code 2 to reproduce the issue
Putting the '.tf' suffix, only changes the error message. Here's an example
import tensorflow as tf
import tensorflow.keras as tf_k

model = tf_k.models.Sequential()
model.add(tf_k.layers.Conv2D(32, (3, 3), activation='relu', batch_size=32, input_shape=(28, 28, 1), padding='same', strides=2))
model.add(tf_k.layers.Conv2DTranspose(64, (3, 3), strides=2, padding='same'))
model.add(tf_k.layers.Conv2D(1, (3, 3), activation='sigmoid', padding='same'))

#loss = tf_k.layers.Lambda(lambda i: tf_k.losses.mse(*i))([model.inputs[0], model.outputs[0]])
loss = tf_k.losses.mean_squared_error(model.inputs[0], tf.zeros_like(model.inputs[0]))
model.add_loss(loss)
model.compile(optimizer='adam')
model.save('teste.tf')
model = tf.keras.models.load_model('teste.tf')

2019-08-03 03:38:42.774544: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2019-08-03 03:38:42.774737: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)
2019-08-03 03:38:42.774932: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (DESKTOP-GUERINJR): /proc/driver/nvidia/version does not exist
2019-08-03 03:38:42.775273: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-08-03 03:38:42.784443: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-08-03 03:38:42.786142: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7fffc04e4040 executing computations on platform Host. Devices:
2019-08-03 03:38:42.786289: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): Host, Default Version
WARNING: Logging before flag parsing goes to stderr.
W0803 03:38:42.835703<PHONE_NUMBER>89376 training_utils.py:1320] Output conv2d_1 missing from loss dictionary. We assume this was done on purpose. The fit and evaluate APIs will not be expecting any data to be passed to conv2d_1.
2019-08-03 03:38:43.281262: W tensorflow/python/util/util.cc:288] Sets are not currently considered sequences, but this may change in the future, so consider avoiding using them.
W0803 03:38:43.369712<PHONE_NUMBER>89376 deprecation.py:506] From /home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/ops/resource_variable_ops.py:1784: calling BaseResourceVariable.__init__ (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
Traceback (most recent call last):
  File "/home/nguerinjr/Documents/deep_coding_project/img_common/teste.py", line 14, in <module>
    model = tf.keras.models.load_model('teste.tf')
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/save.py", line 142, in load_model
    return saved_model_load.load(filepath, compile)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/saved_model/load.py", line 86, in load
    model = tf_load.load_internal(path, loader_cls=KerasObjectLoader)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/saved_model/load.py", line 541, in load_internal
    export_dir)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/saved_model/load.py", line 103, in __init__
    self._finalize()
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/saved_model/load.py", line 127, in _finalize
    node.add(layer)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/training/tracking/base.py", line 457, in _method_wrapper
    result = method(self, *args, **kwargs)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/sequential.py", line 195, in add
    output_tensor = layer(self.outputs[0])
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/base_layer.py", line 799, in __call__
    outputs = call_fn(cast_inputs, *args, **kwargs)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/saved_model/utils.py", line 57, in return_outputs_and_add_losses
    outputs, losses = fn(inputs, *args, **kwargs)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/eager/def_function.py", line 439, in __call__
    self._initialize(args, kwds, add_initializers_to=initializer_map)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/eager/def_function.py", line 382, in _initialize
    *args, **kwds))
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 1806, in _get_concrete_function_internal_garbage_collected
    graph_function, _, _ = self._maybe_define_function(args, kwargs)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 2106, in _maybe_define_function
    graph_function = self._create_graph_function(args, kwargs)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/eager/function.py", line 1997, in _create_graph_function
    capture_by_value=self._capture_by_value),
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/framework/func_graph.py", line 884, in func_graph_from_py_func
    func_outputs = python_func(*func_args, **func_kwargs)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/eager/def_function.py", line 325, in wrapped_fn
    return weak_wrapped_fn().__wrapped__(*args, **kwds)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/saved_model/function_deserialization.py", line 262, in restored_function_body
    "\n\n".join(signature_descriptions)))
ValueError: Could not find matching function to call loaded from the SavedModel. Got:
  Positional arguments (1 total):
    * Tensor("inputs:0", shape=(32, 28, 28, 1), dtype=float32)
  Keyword arguments: {}

Expected these arguments to match one of the following 1 option(s):

Option 1:
  Positional arguments (1 total):
    * [TensorSpec(shape=(None, 28, 28, 1), dtype=tf.float32, name='inputs/0')]
  Keyword arguments: {}

Process finished with exit code 1

Is there something wrong with this simple example? Something I'm missing. Or it's just that the add_loss still have some problems wrt serialization / deserialization?

I perceived a bunch of errors have been fixed since my last report about this custom uses of keras (https://github.com/tensorflow/tensorflow/issues/30378). For example, I know a workaround for this, which seems ok in this nightly version, is to use a custom compiled loss, which was not working at that time, as another issue I had reported  (https://github.com/tensorflow/tensorflow/issues/30384)
import tensorflow as tf
import tensorflow.keras as tf_k

model = tf_k.models.Sequential()
model.add(tf_k.layers.Conv2D(32, (3, 3), activation='relu', batch_size=32, input_shape=(28, 28, 1), padding='same', strides=2))
model.add(tf_k.layers.Conv2DTranspose(64, (3, 3), strides=2, padding='same'))
model.add(tf_k.layers.Conv2D(1, (3, 3), activation='sigmoid', padding='same'))

def my_loss(y_true, y_pred):
    return y_true

def my_loss2(y_true, y_pred):
    return y_pred

model.compile(optimizer='adam', loss=[my_loss])
model.save('teste.h5')

model = tf.keras.models.load_model('teste.h5', custom_objects={'my_loss': my_loss, 'my_loss2': my_loss2})
print(model)

/home/nguerinjr/Documents/deep_coding_project/venv/bin/python /home/nguerinjr/Documents/deep_coding_project/img_common/teste.py
2019-08-03 03:46:57.744222: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2019-08-03 03:46:57.744406: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)
2019-08-03 03:46:57.744557: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (DESKTOP-GUERINJR): /proc/driver/nvidia/version does not exist
2019-08-03 03:46:57.744891: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-08-03 03:46:57.755141: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-08-03 03:46:57.756825: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7fffea867eb0 executing computations on platform Host. Devices:
2019-08-03 03:46:57.757004: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): Host, Default Version
<tensorflow.python.keras.engine.sequential.Sequential object at 0x7f4e203ee940>

Process finished with exit code 0

But, as an extension to these tests, I've noticed the '.tf' version does not work correctly, which seems another related bug:
import tensorflow as tf
import tensorflow.keras as tf_k

model = tf_k.models.Sequential()
model.add(tf_k.layers.Conv2D(32, (3, 3), activation='relu', batch_size=32, input_shape=(28, 28, 1), padding='same', strides=2))
model.add(tf_k.layers.Conv2DTranspose(64, (3, 3), strides=2, padding='same'))
model.add(tf_k.layers.Conv2D(1, (3, 3), activation='sigmoid', padding='same'))

def my_loss(y_true, y_pred):
    return y_true

def my_loss2(y_true, y_pred):
    return y_pred

model.compile(optimizer='adam', loss=[my_loss])
model.save('teste.tf')

model = tf.keras.models.load_model('teste.tf', custom_objects={'my_loss': my_loss, 'my_loss2': my_loss2})
print(model)

/home/nguerinjr/Documents/deep_coding_project/venv/bin/python /home/nguerinjr/Documents/deep_coding_project/img_common/teste.py
2019-08-03 03:47:16.464514: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2019-08-03 03:47:16.464702: E tensorflow/stream_executor/cuda/cuda_driver.cc:318] failed call to cuInit: UNKNOWN ERROR (303)
2019-08-03 03:47:16.464859: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (DESKTOP-GUERINJR): /proc/driver/nvidia/version does not exist
2019-08-03 03:47:16.465200: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-08-03 03:47:16.474429: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-08-03 03:47:16.476021: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7fffbb87a7b0 executing computations on platform Host. Devices:
2019-08-03 03:47:16.476185: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): Host, Default Version
2019-08-03 03:47:16.873280: W tensorflow/python/util/util.cc:288] Sets are not currently considered sequences, but this may change in the future, so consider avoiding using them.
WARNING: Logging before flag parsing goes to stderr.
W0803 03:47:16.921350<PHONE_NUMBER>67232 deprecation.py:506] From /home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/ops/resource_variable_ops.py:1784: calling BaseResourceVariable.__init__ (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version.
Instructions for updating:
If using Keras pass *_constraint arguments to layers.
Traceback (most recent call last):
  File "/home/nguerinjr/Documents/deep_coding_project/img_common/teste.py", line 25, in <module>
    model = tf.keras.models.load_model('teste.tf', custom_objects={'my_loss': my_loss, 'my_loss2': my_loss2})
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/save.py", line 142, in load_model
    return saved_model_load.load(filepath, compile)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/saved_model/load.py", line 93, in load
    model._training_config))  # pylint: disable=protected-access
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/training/tracking/base.py", line 457, in _method_wrapper
    result = method(self, *args, **kwargs)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training.py", line 340, in compile
    self.loss, self.output_names)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training_utils.py", line 1329, in prepare_loss_functions
    loss_functions = nest.map_structure(get_loss_function, loss)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/util/nest.py", line 523, in map_structure
    structure[0], [func(*x) for x in entries],
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/util/nest.py", line 523, in <listcomp>
    structure[0], [func(*x) for x in entries],
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training_utils.py", line 1086, in get_loss_function
    loss_fn = losses.get(loss)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/losses.py", line 1166, in get
    return deserialize(identifier)
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/losses.py", line 1157, in deserialize
    printable_module_name='loss function')
  File "/home/nguerinjr/Documents/deep_coding_project/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/utils/generic_utils.py", line 210, in deserialize_keras_object
    raise ValueError('Unknown ' + printable_module_name + ':' + object_name)
ValueError: Unknown loss function:my_loss

Process finished with exit code 1

The real point about my interest in the add_loss it that's the only way, at least I think, to use losses in a flexible way. I still need very flexible losses. add_loss seems an interesting way to do this.

@nguerinjr
Can you please check with the nightly version (!pip install tf-nightly) and see if the problem still persists.
Thanks!

@ravikyram
Yes. All problems occur exactly the same way in version installed with pip3 install tf-nightly-2.0-preview which is, today, 2.0.0.dev20190808

I have tried on colab with TF version nightly versions 2.0.0.dev20190802  , 2.0.0.dev20190808 and was able to reproduce the issue.Please, find the gist here. Thanks!

@nguerinjr,
Two of the code samples which you have provided work without any issues with the latest TF-nightly i.e. TF v2.2.0-dev20200416.
For the first two samples, I'm facing an error stating IndexError: list index out of range.
Please find the gist of it here. Thanks!

@nguerinjr,
Any updates regarding this issue? Thanks!

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


[PLG:APR] Approval Workflow Issues

I am using Inventree 0.13.5 and approvals plugin version .5b4 Below are the current workflows that I am trying and having difficulties with. I have Minimum approvers set to 1 while testing so I don't have to login with multiple accounts.
Workflow #1
Create new PO -> Click the blue Issue PO button before clicking start approval process button
-With this workflow the blue issue order button disappears, the PO shows as new in the approvals table, once you approve the PO the PO shows as approved in the PO approvals table, but there is no complete order button so you cannot receive any line items or complete the PO. The PO shows in Inventree PO list with a status 15 code. The approval notifications work.
Workflow #2
Create new PO -> start approval process but do not approve -> Click Issue order button -> Receive Items and complete order.
-With this workflow the approval process was started but the PO never approved yet you can still Issue and complete the order in Inventree. It looks like once you complete the order it is also marked as approved in the approval table but was never officially approved.
Workflow #3
Create new PO -> start approval process and approve the PO -> PO is automatically marked as placed and shows the complete order button
-This workflow works but you get no approval notifications when you do it this way, and if a user clicks the Issue order button before the PO is approved it causes it to mess up and go to a status 15 code as shown in Workflow #1.
I am not sure what the intended workflow was meant to look like, but I think something along these lines would make the most sense.

Create new PO -> 2. Start the PO approval process and all parties approve PO (Issue PO button hidden during this time) -> 3. Once enough people approve the PO according to Min Approvers the Issue PO button appears -> 4. Click Issue PO to Issue the PO -> 5. Complete order button appears and you can receive in line items.-> 6. Click complete order button.

Status Codes at Each Step for Inventree PO

Pending
Pending
Pending
Placed
Placed
Complete

Or do away with the Issue PO button and just have the person putting in the PO "Issue" it by approving it themselves. Then the complete order button would not appear until after all of the necessary approvals.
Not sure if this makes sense to anyone else, or is even possible but I just wanted to start the conversation.

Hi there @csmith73,
sorry for the late response, I tried to fix a few bugs and get 0.5 out before responding here.
The general workflow is designed like this:
graph TD;
    A-->B;
   B-->C;
    C-->D;
D-->E;
D-->F;
E-->G;
G-->H;
A[Create PO]
B[Fill out PO information]
C[Issue PO -> approval gets started and notifications send out]
D[PO is changed to status 15/Pending, not editable anymore]
E[Approval is accepted -> PO is changed to *placed* -> notifications get send out]
F[Approval is rejected -> PO is changed to *cancelled* -> notifications get send out]
G[Receive items]
H[Complete PO]

This sounds most like 3.
It is currently not possible to disable buttons in core via plugins, my approach is to just block the changes that would be issued and sending notifications. That could be implemented in core but would take some time.
What are your thoughts in the inteteded workflow?

Hi @matmair,
This workflow looks great. I don't think not being able to hide the button is a big deal as long as it is blocked from doing anything if a user were to click it. I am in the process of getting a test server up and running so I can test out the latest iteration .5 of the approval plugin. Thanks again for all of your work on this.

@csmith73 I have added this graph to the docs https://doc.invenhost.com/inventree_approval/main/home/#_overview