How to bring Template working in the 2019-Jan version of development tools, into new version

We have created and tested OK a template name SP2019MAIN using the development tools in Jan 2019.
the template reside in folder \src\components\CertificateTemplates\sg\edu\sp
We are now using the newer version of the development tools, we copied the sp folder into:
\src\components\CertificateTemplates\tlds\sg\edu\sp
and added 'sp' to the index.js in the parent folder
it compile Okay.  BUT the template is not effective, the default template is used instead of the SP2019MAIN template.
where did i miss doing something ?  Please help

Hi we are migrating all the templates to a separate repo now, could you:

Fork the new template repo (https://github.com/OpenCerts/legacy-templates)
Perform the changes and then create a pull request to us. We will take a look at what went wrong.

P.s. to test, you can copy your certificate (before batching) into the index.html located at (/test/index.html) in that repository.
So you will run that repo with npm run dev and then open the index.html in the test folder to test. To test with your school's certificate, replace line54 of index.html with your school's certificate.

done pushing to ur side, via sp-cert branch.

We did not see any pull request, make sure you have a pull request to us.

please check again

Still don’t see any pr. Please make sure the PR is merging into our repo. Also copy the PR link here once you’ve create it pls.

That's weird did PR yesterday:
PS C:\GovTech\OpenCert_Site\Legacy\legacy-templates\src\components\CertificateTemplates\tlds\sg\edu\sp> git pull upstream master
From https://github.com/OpenCerts/legacy-templates

branch            master     -> FETCH_HEAD
[new branch]      master     -> upstream/master
Already up to date.

PS C:\GovTech\OpenCert_Site\Legacy\legacy-templates\src\components\CertificateTemplates\tlds\sg\edu\sp> git commit --no-verify
[master e294c51]        new file:   SP-2019-MAIN/Certimages.js  new file:   SP-2019-MAIN/certificate.js         new file:   SP-2019-MAIN/images.js      new file:   SP-2019-MAIN/index.js
new file:   SP-2019-MAIN/resources.js   new file:   SP-2019-MAIN/transcript.js  new file:   index.js    modified:   ../index.js
27 files changed, 2744 insertions(+)
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/Certimages.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/certificate.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/certificate_20190130.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/certificate_yu2.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/certificate_yu3 - Copy (2).js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/certificate_yu3 - Copy.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/certificate_yu3.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/certificate_yu3Copy7mockup.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/images.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/index.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/index.zip
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/indexCopy2mockup.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/index_0.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/index_copy1.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/resources.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/transcript - Copy.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/transcript.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/transcript_yu.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/transcript_yu2.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/transcript_yuCopy2.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/transcript_yuCopy3.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/transcript_yuCopy4.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/transcript_yuCopy5.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/transcript_yuCopy6.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/transcript_yuCopy7.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/SP-2019-MAIN/transcript_yuCopy8mockup.js
create mode 100644 src/components/CertificateTemplates/tlds/sg/edu/sp/index.js
PS C:\GovTech\OpenCert_Site\Legacy\legacy-templates\src\components\CertificateTemplates\tlds\sg\edu\sp> git push --no-verify
Username for 'https://github.com': ryansena
Password for<EMAIL_ADDRESS>Enumerating objects: 41, done.
Counting objects: 100% (41/41), done.
Delta compression using up to 4 threads
Compressing objects: 100% (34/34), done.
Writing objects: 100% (34/34), 271.84 KiB | 12.36 MiB/s, done.
Total 34 (delta 17), reused 0 (delta 0)
remote: Resolving deltas: 100% (17/17), completed with 4 local objects.
To https://github.com/ryansena/legacy-templates
fe27a4d..e294c51  master -> master
PS C:\GovTech\OpenCert_Site\Legacy\legacy-templates\src\components\CertificateTemplates\tlds\sg\edu\sp>

There is no PR there. You need to fork and then create a PR form your repo to ours

Sorry, is this correct?
https://github.com/OpenCerts/legacy-templates/commit/e294c51480922c3787b9d5bcebb9dbd49fe61084

Hi, that is not creating a PR to us, if you have done it correctly, you will be able to see it here: https://github.com/OpenCerts/legacy-templates/pulls.
Please search for how  to create a pull request. You may also read: https://git-scm.com/book/en/v2/GitHub-Contributing-to-a-Project

created the PR in OpenCerts/legacy-templates#10


Add a History page?

Fortran-lang.org promotes Fortran as a modern language, which it is. But it's also an old language with a rich history that some site visitors may be interested in. At the top, along with the sections
Learn
Compilers
Community
Packages
News
should there be a link to a History page with relevant information? There is a history from IBM. Other links are at the Fortran Wiki history page, but I would excise the gloomy introduction!

I definitely like the idea. It might the place to show the dichotomy
between "ancient" FORTRAN and modern Fortran.
Op do 4 mrt. 2021 om 00:01 schreef Beliavsky<EMAIL_ADDRESS>
Fortran-lang.org promotes Fortran as a modern language, which it is. But
it's also an old language with a rich history that some site visitors may
be interested in. At the top, along with the sections
Learn
Compilers
Community
Packages
News
should there be a link to a History page with relevant information?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/fortran-lang/fortran-lang.org/issues/218, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAN6YR2U4YBB3E4MEQIBNNTTB25VXANCNFSM4YSEETNQ
.

Yes I like the idea. We should have a History section.

I like the idea as well. Having a good organized knowledge base over the history of Fortran would be a useful addition. Creating such a new section with meaningful content can be more difficult and requires expertise and input from long practitioners and pioneers of Fortran.
Input and patches are very welcome on this. I'm happy to help where ever I can with this, but I'm out for doing the first steps on this (I started programming Fortran in 2017, not the best qualifications for writing a history section).

My feeling is that a Fortran history page in Fortran-lang.org should be designed with clear and assumed goals. There is already a lot of pages with a Fortran history (for example https://en.wikipedia.org/wiki/Fortran).
Our history should not be another old dusty museum but concentrate on events and information that could be useful for Fortran beginners to understand the present state of Fortran:

why Fortran was created, why it was successful (easy to learn, a compiler designed to achieve good optimizations since the first version, oriented for array computing, etc.),
why it was standardized, how standardization is functioning since Fortran 90 (major/minor versions, many years between the standard and the implementation in compilers...) It's very different from younger languages where you would have Fortran 3.0, Fortran 3.1, Fortran 3.1.5...
Why most modern Fortran files have a .f90 extension,
insist on the perenniality of Fortran codes,
Etc.

And we have already many posts in the Discourse that could bring materials to build such a story.

I agree, this would be a good addition to the website. I think a mini-book would be a good format.

This Curlie directory (the historical DMOZ reborn) list a few pages with stuff related to Fortran history:
https://www.curlie.org/en/Computers/Programming/Languages/Fortran/History
And especially this page:
http://www.softwarepreservation.org/projects/FORTRAN/

Related discussion at Fortran Discourse: History of Fortran (Fortran II source code)

Another discussion:
https://fortran-lang.discourse.group/t/john-backus-1924-2007-fortrans-father/873


lshw: 02.19 -> unstable-2023-03-20

The last release is 3 years old and misses many fixes for nvme, json output, ...
Description of changes

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

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

46 packages built:

deepin.dde-app-services
deepin.dde-calendar
deepin.dde-clipboard
deepin.dde-control-center
deepin.dde-daemon
deepin.dde-device-formatter
deepin.dde-dock
deepin.dde-dock.dev
deepin.dde-file-manager
deepin.dde-gsettings-schemas
deepin.dde-kwin
deepin.dde-launcher
deepin.dde-network-core
deepin.dde-polkit-agent
deepin.dde-qt-dbus-factory
deepin.dde-session-shell
deepin.dde-session-ui
deepin.deepin-album
deepin.deepin-calculator
deepin.deepin-camera
deepin.deepin-clone
deepin.deepin-compressor
deepin.deepin-draw
deepin.deepin-editor
deepin.deepin-image-viewer
deepin.deepin-movie-reborn
deepin.deepin-movie-reborn.dev
deepin.deepin-music
deepin.deepin-picker
deepin.deepin-reader
deepin.deepin-screen-recorder
deepin.deepin-screensaver
deepin.deepin-shortcut-viewer
deepin.deepin-system-monitor
deepin.deepin-terminal
deepin.deepin-turbo
deepin.deepin-voice-note
deepin.dpa-ext-gnomekeyring
deepin.dtkcore
deepin.dtkgui
deepin.dtkwidget
deepin.image-editor
deepin.qt5integration
deepin.startdde
lshw
webex


Fix ResourceType cycle buttons for dark mode on macOS 11+

Hello! Thanks for Vitals.
I noticed that the two buttons to cycle between resources don't look good on dark mode with a dark background. I replaced the images with the same SF symbols when on macOS 11+ (docs), which adapt to the theme used.

Before
After

Thanks!

Released in v0.7.


ModelCheckpoint Callback save and restore extension

🚀 Feature
callbacks.ModelCheckpoint implements on_save_checkpoint and on_load_checkpoint to save and load it's state to/from a checkpoint. Save/Load all internal members to recover complete state from checkpoint.
Motivation
I use a ModelCheckpoint callback to save my Top-K (3) models during training. Sometimes I resume training at a certain point and want to train further epochs. But the loaded Callback has an empty best_k_models list, so this list is build up again. Older models are not tracked and I get three new models in same folder, and I do not know, which are the Top-3 ones.
Therefore a full state of ModelCheckpoint would resolve this.
Pitch
Extend the ModelCheckpoint methods to export and load all internal states. I'm not sure if there is missing something, but here is a try:
def on_save_checkpoint(self, trainer, pl_module) -> Dict[str, Any]:
    return {
        "best_model_score": self.best_model_score,
        "best_model_path": self.best_model_path,
        "best_k_models" : self.best_k_models,
    }

def on_load_checkpoint(self, checkpointed_state: Dict[str, Any]):
    self.best_model_score = checkpointed_state["best_model_score"]
    self.best_model_path = checkpointed_state["best_model_path"]
    self.best_k_models = checkpointed_state["best_k_models"]

Alternatives
Subclass the ModelCheckpoint to implement this, but I think this would complicate things.
Additional context
-/-

I think this would be nice addition, but its not as easy as you said. For example:

What if the checkpoints were moved to a different path?
What if the user set a different monitor/mode?

Feel free to open a draft PR and we can help you with it :smile:

I think #4712 #4383 partially covers a similar problem.
Yes, both points are important thoughts. I'll think about a general way to capture this.

If user changes monitor mode, move old checkpoints to subdirectory or rename files?
If checkpoints were moved out of scope, than a user can't load it. and if it reads the yaml with the best checkpoints containing wrong paths, it should be possible to specify new path. But I think, this is should not be part of this issue here.

I think #4712 #4383 partially covers a similar problem.

They do but the difference is that they don't attempt to restore the saved state. Then it becomes a simpler issue.

If user changes monitor mode, move old checkpoints to subdirectory or rename files?

I wouldn't move them at all. If the monitor has changed I would warn the user about it and reset the state as if it was a new ModelCheckpoint instance.

If checkpoints were moved out of scope, than a user can't load it. and if it reads the yaml with the best checkpoints containing wrong paths, it should be possible to specify new path. But I think, this is should not be part of this issue here.

If the paths don't exist the code will fail (as it currently is) when trying to delete them.
In any case, I was just giving an example of an edge case which makes implementing your suggestion not as easy as just updating on_{save,load}_checkpoint.

https://github.com/PyTorchLightning/pytorch-lightning/issues/5173#issuecomment-748571874
https://github.com/PyTorchLightning/pytorch-lightning/issues/5173#issuecomment-748618082
few more comments on the same issue.

I would also like a solution for this case, where "best" model info is wiped when resuming training. I didn't realize this, and was using broken results for a while.
I'd say if the monitor is changed than it should print a warning and restart.

FWIW, simply adding self.best_k_models was sufficient in my use case, so I'm using this:
class MyModelCheckpoint(pl.callbacks.ModelCheckpoint):

    def on_save_checkpoint(self, trainer, pl_module, checkpoint):
        return {
            "monitor":          self.monitor,
            "best_model_score": self.best_model_score,
            "best_model_path":  self.best_model_path,
            "current_score":    self.current_score,
            "dirpath":          self.dirpath,
            "best_k_models":    self.best_k_models,
        }

    def on_load_checkpoint(self, trainer, pl_module, callback_state):
        self.best_model_score = callback_state["best_model_score"]
        self.best_model_path = callback_state["best_model_path"]
        self.best_model_score = callback_state["best_model_score"]
        self.best_k_models = callback_state["best_k_models"]


API returns all ItemObjects from a single item meta data

Grappling hooks contains all of their variants (1, 2, 3, 4 and 5 uses). But if you use a function such as .GetAllWithFlags(). It'll not return a single grappling hook (5), but 5 of them.
Duplicates:

Code:

Update: Figured out the bug for you

The grappling hook "variants" are added to the meta storage, but all of these instances are pointing out to the same ItemMetaData, resulting in the same grappling hook value.

What you described is not the solution, them pointing to the same metadata is intentional. I already know the actual problem so I'll be implementing the fix.

(Hopefully) fixed in commit 8b3facc


error: "_FORTIFY_SOURCE" redefined

Hi,
I have some errors while trying to compile Dart on Gentoo using gcc (Gentoo 4.9.3 p1.4, pie-0.6.4) 4.9.3.
Depot tools is the source version at commit a83663a08c03c64b0a4235a1461005a21447944a.
Build command : ./tools/build.py -m release
make -j 8 BUILDTYPE=ReleaseX64 all
  TOUCH out/ReleaseX64/obj.host/runtime/generate_async_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_async_patch_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_core_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_core_patch_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_collection_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_collection_patch_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_convert_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_convert_patch_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_developer_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_developer_patch_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_internal_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_internal_patch_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_isolate_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_isolate_patch_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_math_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_math_patch_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_mirrors_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_mirrors_patch_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_profiler_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_typed_data_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_typed_data_patch_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_vmservice_cc_file.stamp
  TOUCH out/ReleaseX64/obj.host/runtime/generate_vmservice_patch_cc_file.stamp
  CXX(target) out/ReleaseX64/obj.target/libdart_lib/runtime/vm/bootstrap_nocore.o
  CXX(target) out/ReleaseX64/obj.target/libdart_lib/runtime/lib/linked_hash_map.o
  CXX(target) out/ReleaseX64/obj.target/libdart_lib/runtime/lib/array.o
  CXX(target) out/ReleaseX64/obj.target/libdart_lib/runtime/lib/bool.o
  CXX(target) out/ReleaseX64/obj.target/libdart_lib/runtime/lib/date.o
  CXX(target) out/ReleaseX64/obj.target/libdart_lib/runtime/lib/double.o
  CXX(target) out/ReleaseX64/obj.target/libdart_lib/runtime/lib/errors.o
  CXX(target) out/ReleaseX64/obj.target/libdart_lib/runtime/lib/function.o
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
<built-in>: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
runtime/libdart_lib.target.mk:1460: recipe for target 'out/ReleaseX64/obj.target/libdart_lib/runtime/vm/bootstrap_nocore.o' failed
make: *** [out/ReleaseX64/obj.target/libdart_lib/runtime/vm/bootstrap_nocore.o] Error 1
make: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
runtime/libdart_lib.target.mk:1460: recipe for target 'out/ReleaseX64/obj.target/libdart_lib/runtime/lib/date.o' failed
make: *** [out/ReleaseX64/obj.target/libdart_lib/runtime/lib/date.o] Error 1
cc1plus: all warnings being treated as errors
runtime/libdart_lib.target.mk:1460: recipe for target 'out/ReleaseX64/obj.target/libdart_lib/runtime/lib/bool.o' failed
make: *** [out/ReleaseX64/obj.target/libdart_lib/runtime/lib/bool.o] Error 1
cc1plus: all warnings being treated as errors
runtime/libdart_lib.target.mk:1460: recipe for target 'out/ReleaseX64/obj.target/libdart_lib/runtime/lib/function.o' failed
make: *** [out/ReleaseX64/obj.target/libdart_lib/runtime/lib/function.o] Error 1
cc1plus: all warnings being treated as errors
runtime/libdart_lib.target.mk:1460: recipe for target 'out/ReleaseX64/obj.target/libdart_lib/runtime/lib/array.o' failed
make: *** [out/ReleaseX64/obj.target/libdart_lib/runtime/lib/array.o] Error 1
cc1plus: all warnings being treated as errors
runtime/libdart_lib.target.mk:1460: recipe for target 'out/ReleaseX64/obj.target/libdart_lib/runtime/lib/errors.o' failed
make: *** [out/ReleaseX64/obj.target/libdart_lib/runtime/lib/errors.o] Error 1
cc1plus: all warnings being treated as errors
runtime/libdart_lib.target.mk:1460: recipe for target 'out/ReleaseX64/obj.target/libdart_lib/runtime/lib/linked_hash_map.o' failed
make: *** [out/ReleaseX64/obj.target/libdart_lib/runtime/lib/linked_hash_map.o] Error 1
cc1plus: all warnings being treated as errors
runtime/libdart_lib.target.mk:1460: recipe for target 'out/ReleaseX64/obj.target/libdart_lib/runtime/lib/double.o' failed
make: *** [out/ReleaseX64/obj.target/libdart_lib/runtime/lib/double.o] Error 1
BUILD FAILED

The only fix I found was to sed the mk files in order to ensure that FORTIFY_SOURCE was undefined before redefining it:
sed -i "s/-D_FORTIFY_SOURCE=2/-U_FORTIFY_SOURCE' '-D_FORTIFY_SOURCE=2/g" runtime/*.mk

Regards,

It looks like Gentoo is the only Linux distribution having these kinds of issues. We'll have to figure out whether we will want to use the most often cited workaround of undefining the value before redefining it again.


Update serializers.py

Added a token field in the UserSerializer to return it with the users data

Changes Unknown when pulling 1007618f4937d214f0e8db1dfd11e4330574494d on lincvv:master into ** on st4lk:master**.

Hi Valentyn.
I don't understand this PR. You've added 'token' field to 'exclude' of User serializer. But User model doesn't have such field...

I'm sorry, I'm using the custom serializer and I install the fields. Yes, it is not necessary to exclude it)


USB copy does not work on RPI4 ?

Other Side effect if I go on Files in the App it is not showing them so there might be a "rights" problem?
Expected behavior
expectation would have been that it is automatically copying the pictures if the service is updated but it is not doing it . Do I need to formate it somehow special or something?
Screenshots
USB Folder is Empty
System (please complete the following information):

OS: Raspberry Pi Bookworm 64bit
Browser chrome / Firefox
Version latest

Thank you for the great work

Hey,
Right now as per implementation the files are copied one time only when the stick is plugged in.
when you plug in /out you see messages in the logs?
here is the logic for your reference
https://github.com/photobooth-app/photobooth-app/blob/main/photobooth/services/filtetransferservice.py

Thank you for the fast response. I used in the past other photobooth which was automatically syncing all X min - got it now at least how it should work but on my side it does not.
The Log does not show anything in this direction but the USB device is detected by the OS.
Format is FAT32 - I also tried other USB devices but it did not work...
I also setted up the whole box again now I can at least access all the files and everything else looks fine, beside the filetransfer. I only activated the USB FIle Transfer Service this should be everything in theory?
I found a small other topic where a "gap" is missing on the documentation:

If the system detects the stick well it might be that python does not.
Can you try a script running this line in python https://github.com/photobooth-app/photobooth-app/blob/main/photobooth/services/filtetransferservice.py#L80
run with stick attached and removed. There should be a difference.

maybe the virus is in front of the PC .... but unfortunately I'm not that well with python:
I created a test.py script with following code
print('hello') print (device for device in psutil.disk_partitions(all=False) if "removable" in device.opts) get_current_removable_media() @staticmethod def get_current_removable_media():  """Returns set of removable drives detected on the computer."""  print (device for device in psutil.disk_partitions(all=False) if "removable" in device.opts)
and then started it with python test.py
Terminal gives back:
NameError: name 'psutil' is not defined
Feedback is also get_current_removable_media is not defined
Sorry I tried the last 45min to make it anyhow different working...

please try following code.
save it as test.py.
run by python test.py
if psutil is missing install it by pip install psutil
import psutil

print("devices filtered for removable:")
print([device for device in psutil.disk_partitions(all=False) if "removable" in device.opts])
print("devices without any filter:")
print([device for device in psutil.disk_partitions(all=False)])

Thank you very much for your patience:
Here is the outcome without and with - so it is detected by Python (sda1):

so the issue seems somewhere else - as told the service seems not automatically starting in the Box.

Activated the Filetransfer into photobooth folder
Created a folder USB Device: Fotobox Folder: photobooth
Also tried a Devicename Photbooth with Folder photobooth

It is an USB-Stick  - I tried now 5 different USB sticks I had laying around also the very common.

Not one is detected as removable.
I also changed the Format between NTFS, exFAT and FAT32 also makes no difference.
I also changed the interface from a USB3 to a USB2 on the Raspberry PI 4

I see, thank you for testing. I think the underlying system has changed recently in a way that removable is not signaled any more. Maybe we just remove the filter in the future or find a different way.

silly question would it help to name the stick "removable"
is the format relevalt or is extfat ok

So it seems the underlying system changed in Bookworm a bit and this leads to usb sticks can not detect as those.
Maybe @Peda1996 can help track down the issue and solve it as the original implementation is by Peda1996.
What is your usecase exactly?
Since there are different ways to access the files on the device, I added a short overview to the documentation. Maybe this works for you also:
https://photobooth-app.org/reference/bulktransferfiles/

For me this is just the easiest way when I use the box on different locations it is not always the same wifi same for SCP.
It is much more easy also to non technical people to use a USB ^^.

If the box itself is not in any WiFi the Pi could also create a hotspot from which you login and still use the filebrowser. Just another way ;)

Hey thanks for the Mention, wouldn't have seen this issue otherwise. I think the issue might have to do with the if
if "removable" in device.opts in the filetransferservice.py. Commenting this if statement worked somehow in my development environment.
    @staticmethod
    def get_current_removable_media():
        """Returns set of removable drives detected on the  computer."""
        return {
            device
            for device in psutil.disk_partitions(all=False)
            #    if "removable" in device.opts
        }

Tested it with my other USB sticks and somehow I only got it working on one? of my USB sticks with this line of code. (Somehow this was the one I used for my booth to transfer files) So removing this one if statement should work.
Will request a PR shortly.

Patch merged and version 2 released now, close this. If it still not works, please reopen.


Preview on ReactNative works sometimes - Sample Project

I've build a separated application to demonstrated the bug with ReactNative. https://github.com/GuilhermeMedeiros/RNVideoCore
The preview is shown once in a while, and it's very common to see the error below on xcode:
OGL(/Users/medeiros/www/RNVideoCore/ios/Pods/VideoCore/api/iOS/VCPreviewView.mm):: 253: Invalid Operation
Could somebody give me some help?

You should use the layoutSubviews hook to scale the previewView rect

layoutSubviews did help me, thanks.
However, I can only get the previewView to work if I instantiate the session on the init method of my view manager. If I wait for the -view method of the view manager, it's somehow "late" and the previewView doesn't get rendered properly.
If I instantiate the view beforehand is just a waste of memory and battery :(

I've created a separated branch to show the proper way to implement the view initialisation with React Native, however using this method I'm not able to see the preview.
Somehow, VideoCore needs to be initialised together with the app.
https://github.com/GuilhermeMedeiros/RNVideoCore/compare/proper-way#diff-edda675145d369ea40995787807b13f7R26

VideoCore cannot be instantiated more than once. I solved my problem by setting the VCSimpleSession as a static property of my class and returning it in case of defined.
I also had to implement the -didMoveToWindow (from React Native) to add the previewView to my view.
You can follow the thread where the guys helped me on this link: https://www.facebook.com/groups/react.native.community/permalink/701162063352708/?comment_id=701244136677834&ref=notif&notif_t=group_comment

@GuilhermeMedeiros have you updated your project? I was able to solve it using this:
//
//  BroadcasterView.swift
//  app
//
//  Created by Pro on 15/12/2015.
//  Copyright © 2015 Facebook. All rights reserved.
//

import Foundation
import UIKit

class BroadcasterView: UIView, VCSessionDelegate {

  var _session : VCSimpleSession?

  override func layoutSubviews() {
    super.layoutSubviews()

    _session = VCSimpleSession.init(
      videoSize: self.bounds.size,
      frameRate: 30,
      bitrate: 1000000,
      useInterfaceOrientation: true
    )

    self.insertSubview(_session!.previewView, atIndex: 0)

    _session!.delegate = self;
    _session!.previewView.frame = self.bounds

  }

  override func removeFromSuperview() {
    _session!.endRtmpSession()
    _session!.delegate = nil
    super.removeFromSuperview()
  }

  func connect() {
    switch _session!.rtmpSessionState {
    case .None, .PreviewStarted, .Ended, .Error:
      _session!.startRtmpSessionWithURL("rtmp://<IP_ADDRESS>/live", andStreamKey: "swaggaguru")
    default:
      _session!.endRtmpSession()
      break
    }

  }

  func connectionStatusChanged(sessionState: VCSessionState) {

  }

}

layoutSubviews is called many many times. You don't want to add subviews all the time.

Have you updated your repo with a working version then?

Yes: https://github.com/GuilhermeMedeiros/RNVideoCore/tree/proper-way
It's gonna be a work in progress for quite some time, but that version already works.


Empty _updateValue function in atomicProperty.ts file

Is there a reason why the _updateValue function in the atomicProperty.ts file is empty?
https://github.com/makinacorpus/angular2-schema-form/blob/b59cf8568f446820dee301ba9d310695a751905c/src/model/atomicproperty.ts#L32
The function is called here: https://github.com/makinacorpus/angular2-schema-form/blob/b59cf8568f446820dee301ba9d310695a751905c/src/model/formproperty.ts#L81

AtomicProperty is an abstract class, this method is implemented by classes which extends AtomicProperty, like here:
https://github.com/makinacorpus/angular2-schema-form/blob/4722efe2a0afcc6b8c67a20e4e8d3ccce5bb95f4/src/model/objectproperty.ts#L59


Distribute reshowcase executable with opam

In https://github.com/ahrefs/reshowcase/pull/13, @davesnx is migrating reshowcase so it can be used with opam and Melange.
While reshowcase "the library" works fine, reshowcase "the executable" is hard to use from opam. Opam and dune would enable the installation of the binary with a dune install stanza like:
(install
 (section bin)
 (package reshowcase)
 (files commands/reshowcase))

But this executable depends on npm libraries like webpack that can't be specify as dependencies in opam, as they only exist in npm.

One solution could be to document these npm dependencies and have consumers of reshowcase install them manually. This is somehow the process that happens with Melange bindings (we are working on making it more robust by having a validation step).
Another idea could be to prebundle the executable with esbuild or any other bundler, so that webpack and the other deps are just embedded.

I think the second idea is safer, as it makes the reshowcase executable self-reliant and avoids clashes or conflicts with other versions of webpack that the consumers would be using for their apps.
@denis-ok @davesnx @anmonteiro what do you think?

I tried the second idea, but it is quite complex. A lot of things break when trying to bundle webpack library with esbuild or webpack itself, because there are many deps that are native only.
The first idea is implemented in https://github.com/davesnx/reshowcase/pull/1, tested with Ahrefs codebase and seems to work fine.


Add an upgrade test

This adds an upgrade test, deploying a cluster with the latest
released version before upgrading it to the current development
version and running the end-to-end tests.

Late to the party, but :+1:


JBDS-4303 Hiding permanent warning message if VMX found (macos).

Codecov Report

Merging #655 into master will increase coverage by 0.42%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #655      +/-   ##
==========================================
+ Coverage    95.6%   96.02%   +0.42%
==========================================
  Files          28       28
  Lines        2411     2544     +133
  Branches      204      204
==========================================
+ Hits         2305     2443     +138
+ Misses        106      101       -5

Impacted Files
Coverage Δ

browser/services/platform.js
90.16% <100%> (-0.03%)
:arrow_down:

browser/pages/location/controller.js
100% <0%> (ø)
:arrow_up:

browser/model/devstudio.js
100% <0%> (ø)
:arrow_up:

browser/model/jdk-install.js
100% <0%> (ø)
:arrow_up:

browser/model/helpers/hash.js
100% <0%> (ø)
:arrow_up:

browser/services/componentLoader.js
100% <0%> (ø)
:arrow_up:

browser/main.js
100% <0%> (ø)
:arrow_up:

browser/pages/start/controller.js
100% <0%> (ø)
:arrow_up:

browser/model/cygwin.js
100% <0%> (ø)
:arrow_up:

... and 16 more

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 edbcae2...6f0831d. Read the comment docs.


Fix requests without access_token causing an error

Your first fix did not work, I think PHP interpreted it as ('Bearer ' . $body['access_token']) ?? null, so the ?? operator did not kick in where it was supposed to.

Thank you! This has been tricky to fix, as I could not replicate the error myself. Glad it works now :)


usingComparator / isEqualTo fails due to Comparator inferred type parameter

Describe the bug
usingComparator does not work properly with certain combinations of numeric comparators from java.util.Comparator.

AssertJ Core version: 3.23.1
Java version: 11
Test framework version: JUnit 5.8.2

Test case reproducing the bug
This:
assertThat(4L)
  .usingComparator(Comparator.comparingDouble(Number::doubleValue))
  .isEqualTo(4.0d);

and this:
Comparator<Long> comparator = Comparator.comparingDouble(Number::doubleValue);

assertThat(4L)
  .usingComparator(comparator)
  .isEqualTo(4.0d);

fail with:
java.lang.ClassCastException: class java.lang.Double cannot be cast to class java.lang.Long (java.lang.Double and java.lang.Long are in module java.base of loader 'bootstrap')

But this:
Comparator<Number> comparator = Comparator.comparingDouble(Number::doubleValue);

assertThat(4L)
  .usingComparator(comparator)
  .isEqualTo(4.0d);

and this:
Comparator comparator = Comparator.comparingDouble(Number::doubleValue); // raw type warning

assertThat(4L)
  .usingComparator(comparator) // unchecked warning
  .isEqualTo(4.0d);

work properly.

This is the same issue I encountered in this PR (#664). You pass a Comparator<? extends Long> to your class but compare two Objects at runtime, making Java assume that your arguments are both Long, leading to a ClassCastException.

I think this can be solved by removing the type arguments of the Comparator passed to usingComparator. This shouldn't lead to any issue (I think?) because it's used to create a ComparatorBasedComparisonStrategy, which uses a rawtype Comparator anyways.


Hitting the d key once bookmarks / unbookmarks every post on the page

Describe the bug
A clear and concise description of what the bug is.

Which site: phanpy.box464.social
Which site version: 2<IP_ADDRESS>c0fb61
Which instance: mastodon.social

To Reproduce
Steps to reproduce the behavior:

Go to any timeline of posts
Accidentally or puporsefully click the "d" key
A mass amount of post bookmarks or unbookmarks occur.

Expected behavior
I think the expectation should be to bookmark the focused post. If there is no focused post, no bookmark should occur, or perhaps an error message. But only one post! Not every post that is available on the page.
Screenshots
I don't want to replicate the problem on my main account, then I'd have to unbookmarks 30-40 posts again. What sent me here tho was the unbookmarking part - it unbookmarked my first page of bookmarked posts when viewing the bookmarks timeline. 😭
Desktop (please complete the following information):

OS: MacOS
Browser: Edge
Version: latest, 129.0.2792.52

Additional context
N/A

Had the same thing happen with boosts...
Not fun. :laughing:
@cheeaun this might be a high priority bug!

Sort of dup of https://github.com/cheeaun/phanpy/issues/795
Should be fixed here https://github.com/cheeaun/phanpy/commit/b1d75926738db1681fba58e19339c9e87ac49564

Yes, confirmed resolved with the latest updates. Now it requires opening up the detail for a post and hitting the "d" key with that post focused. Thanks!


Publish a Nuget package of the Crowdin.Api

A Nuget package of the Crowdin.Api Project would be very useful.
I am building a tool based on the Crowdin.Api and it would be nice if the very good code that is sitting in develop was merged to master and a Nuget package published.

Hello @jasonleenaylor! Thank you for the suggestion.
We are going to publish a Nuget package in the nearest future.

@jasonleenaylor published!


Update to kernel 5.10.31

Supersedes https://github.com/balena-os/balena-raspberrypi/pull/604

I have problem to build this on my own
I've got plenty of meesages when im trying to build raspberrypicm4-ioboard
`ERROR: kernel-headers-test-1.0-r0 do_compile: Execution of '/home/adam/balena/build/tmp/work/aarch64-poky-linux/kernel-headers-test/1.0-r0/temp/run.do_compile.113305' failed with exit code 2:
The command '/bin/sh -c ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build/ M=/usr/src/app/example_module_headers_src' returned a non-zero code: 2
WARNING: exit code 2 from a shell command.
ERROR: Logfile of failure stored in: /home/adam/balena/build/tmp/work/aarch64-poky-linux/kernel-headers-test/1.0-r0/temp/log.do_compile.113305
Log data follows:
| DEBUG: Executing shell function do_compile
| The command '/bin/sh -c ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source//build/ M=/usr/src/app/example_module_headers_src' returned a non-zero code: 2
| WARNING: exit code 2 from a shell command.
| ERROR: Execution of '/home/adam/balena/build/tmp/work/aarch64-poky-linux/kernel-headers-test/1.0-r0/temp/run.do_compile.113305' failed with exit code 2:
| The command '/bin/sh -c ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source//build/ M=/usr/src/app/example_module_headers_src' returned a non-zero code: 2
| WARNING: exit code 2 from a shell command.
|
ERROR: Task (/home/adam/balena/build/../layers/meta-balena/meta-balena-common/recipes-kernel/linux/kernel-headers-test.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4155 tasks of which 3069 didn't need to be rerun and 1 failed.
`

I have problem to build this on my own
I've got plenty of meesages when im trying to build raspberrypicm4-ioboard
ERROR: kernel-headers-test-1.0-r0 do_compile: Execution of '/home/adam/balena/build/tmp/work/aarch64-poky-linux/kernel-headers-test/1.0-r0/temp/run.do_compile.113305' failed with exit code 2:
The command '/bin/sh -c ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build/ M=/usr/src/app/example_module_headers_src' returned a non-zero code: 2
WARNING: exit code 2 from a shell command.

ERROR: Logfile of failure stored in: /home/adam/balena/build/tmp/work/aarch64-poky-linux/kernel-headers-test/1.0-r0/temp/log.do_compile.113305
Log data follows:
| DEBUG: Executing shell function do_compile
| The command '/bin/sh -c ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build/ M=/usr/src/app/example_module_headers_src' returned a non-zero code: 2
| WARNING: exit code 2 from a shell command.
| ERROR: Execution of '/home/adam/balena/build/tmp/work/aarch64-poky-linux/kernel-headers-test/1.0-r0/temp/run.do_compile.113305' failed with exit code 2:
| The command '/bin/sh -c ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build/ M=/usr/src/app/example_module_headers_src' returned a non-zero code: 2
| WARNING: exit code 2 from a shell command.
|
ERROR: Task (/home/adam/balena/build/../layers/meta-balena/meta-balena-common/recipes-kernel/linux/kernel-headers-test.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4155 tasks of which 3069 didn't need to be rerun and 1 failed.

Is there any docker version required to build it?
Problematic thing is here
layers/meta-balena/meta-balena-common/recipes-kernel/linux/files/Dockerfile
Ah you just pushed something, but idk if its relevant
Investigating more - ther eis a problem with
Step 12/14 : RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build/ M=/usr/src/app/example_module_headers_src
Step 12/14 : RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build/ M=/usr/src/app/example_module_headers_src
 ---> Running in 8f58ab2355c5
make: Entering directory '/usr/src/app/kernel_source/5.10.31-v8/build'
  CC [M]  /usr/src/app/example_module_headers_src/hello.o
  MODPOST /usr/src/app/example_module_headers_src/Module.symvers
WARNING: modpost: missing MODULE_LICENSE() in /usr/src/app/example_module_headers_src/hello.o
ERROR: modpost: "_mcount" [/usr/src/app/example_module_headers_src/hello.ko] undefined!
scripts/Makefile.modpost:111: recipe for target '/usr/src/app/example_module_headers_src/Module.symvers' failed
Makefile:1728: recipe for target 'modules' failed
make: Leaving directory '/usr/src/app/kernel_source/5.10.31-v8/build'
make[1]: *** [/usr/src/app/example_module_headers_src/Module.symvers] Error 1
make[1]: *** Deleting file '/usr/src/app/example_module_headers_src/Module.symvers'
make: *** [modules] Error 2

Current workaround for me:
Change
cat ./layers/meta-balena/meta-balena-common/recipes-kernel/linux/files/Dockerfile
# Compile external hello module using header sources
RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build modules_prepare
RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build/ M=/usr/src/app/example_module_headers_src

# Compile external hello module using pre-built headers
# We run modules_prepare again because the tools pre-compiled are actually the target device arch. While we cross-compile for testing.
RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_modules_headers/ modules_prepare
RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_modules_headers/ M=/usr/src/app/example_module_headers_built

To
# Compile external hello module using header sources
RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build modules_prepare
#RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_source/*/build/ M=/usr/src/app/example_module_headers_src

# Compile external hello module using pre-built headers
# We run modules_prepare again because the tools pre-compiled are actually the target device arch. While we cross-compile for testing.
RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_modules_headers/ modules_prepare
#RUN ARCH=${kernel_arch} CROSS_COMPILE=${cross_compile_prefix} make -C /usr/src/app/kernel_modules_headers/ M=/usr/src/app/example_module_headers_built

Hi @Razikus this PR should now be good to merge and I will merge it soon. Fixed all the issues with it. Thanks for the interest.

Great man, it's great timing because i just need this :D

@resin-jenkins test this please

@floion add a fixes #601 and #676 to the commit please.

Fixes #601
Fixes #676

@balena-ci I self-certify!


fix(pick): update for ts4 support

The current type def utilizes const in the generic, which is ts5 only. I discovered you can get the same desired effect with verbose tuple definitions

Closing in favor of https://github.com/ramda/types/pull/80


Documentation for exception thrown within when expression

Type of issue
Missing information
Description
I could not find good documentation on the expected behavior if an exception is thrown within the when expression. I wanted to confirm whether any additional exception handling was necessary in this use case.
Based on a quick test, it appears that the exception is suppressed, and the associated exception handler does not execute. Can the behavior be documented?
Page URL
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/when
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/keywords/when.md
Document Version Independent Id
15502bbc-5355-2add-0fa8-ae31dc01c122
Article author
@BillWagner
Metadata

ID: 6ef10b29-fbf8-5af9-8f8b-a694a1416e33
Service: dotnet-csharp
Sub-service: lang-reference

@janvorli who would be the best person to improve the docs for exception handling?

Adding @jcouv and @333fred
/cc @jskeet
I looked through the latest standard:

Try statement
Throw statement

Neither specify behavior when evaluating an exception_filter throws an exception.
One requirement can be teased out: The language in the standard says that the catch clauses matches "when the exception_filter evalutes to true". Throwing an exception should mean the catch clause isn't execute.
The standard does have rules for the behavior when an exception is propagated from a catch clause, so the behavior when an exception filter thows an exception should be part of the standard.
If you both agree, I'll move this to the csharpstandard repo.

Yes, we should definitely document this.


dasharo-compatibility/dcu.robot: added

replaced by https://github.com/Dasharo/open-source-firmware-validation/pull/203


[RSDK-3762] Add stream manager

Because the webrtc peer is shared across the entire app, when each StreamClient would call _channel.rtcPeerConnection.onAddStream, it would overwrite any existing onAddStream definition. This made it such that whatever StreamClient was initialized last would be the one to control the peer connection.
So I created a manager which will be the only object that manages all onAddStream events. It then saves those streams and can create/return a StreamClient when requested.

I just tested locally with your branch and it does not resolve https://viam.atlassian.net/browse/RSDK-3804 :(

Sad. I still think this is an important fix that we shouldn't hold off on while we search for the root cause of RSDK-3804

Sad. I still think this is an important fix that we shouldn't hold off on while we search for the root cause of RSDK-3804

totally agree


Bandwith text a bit off with angled style and popup size issues

Sorry not posting before, so busy. Seen this problems.
Before (thurban)

After

Relevant configuration, I think problem is with links style angled and not horyzontal lines.
LINK DEFAULT
        WIDTH 4
        ARROWSTYLE compact
        BWLABEL bits
        BANDWIDTH 1000M
        BWFONT 100
        COMMENTFONT 100
        COMMENTFONTCOLOR 255 0 0
        BWSTYLE angled
        OVERLIBWIDTH 795
        OVERLIBHEIGHT 346

I think this have been commented already, the overlib popups are not fit to the image size.
Before (thurban)

After

Thanks

Beta 1 or 2 or 3?

I guess beta 2, but how can i choose (or know) one or another?. I just did a "git clone https://github.com/Cacti/plugin_weathermap" on 2021/01/31 16:31.  I may be missing some basic git skill here.
Anyway according to README.md I'm using Beta 2 (and by that time i read beta 3 was out so I guess I failed to use the version I should have.
cat README.md
# PHP Network Weathermap 1.0 - Beta 2

Yea, if you want the stuff early, you'll have to get it from my clone of that repo.  I'll be doing work this weekend.

Interesting, when editing the map is sort of fine, but when rendering it, not so fine.

I'm wracking my brain on this one.  What version is on your production system?

Forget about it.  I figured it out in the end.  Should be good now.


Overhaul of agriculture case study

This series of commits converts the key notebook content from macro to functional form. This has several advantages in that the interested user can easily view the relevant code, which has been appropriately commented. Largely preserves key functionality, but several aspects are hard-coded within the functions for loading the data and running the app. This could potentially be improved in the future.

Looks good! Runs for me.


Add debugging for when file I/O fails

The Java File I/O libraries love to return false on failure rather than throw an Exception. Hence, adding debug logging for when we were ignoring return values from File I/O.
Probably will help to debug issues like #1164

If there's no real error handling and all we do is logging, we might as well have utility class to do that.


Method visibility

I've been looking though this library a bit and started wondering why most methods do not have an explicit visibility declared. Is there a reason for using function foo rather than public function foo?
There are places where I am wondering if things are intentionally public or are just missing either private or protected. For instance HashMap::areEqual. This method does not make sense as part of this the public interface of this class. An anonymous function could be used in contains. Though perhaps it is done like this to allow overriding in derivatives of HashMap?

I've been looking though this library a bit and started wondering why most methods do not have an explicit visibility declared. Is there a reason for using function foo rather than public function foo?

Yes. By not specifying public whenever possible this means whenever I do see a public visibility modifier I know that I am promoting visibility.
I believe areEqual was publicly visible because it used to get passed to an underlying storage component but no longer does. It can probably be private.

I'm not sure I get it. So you have public things that are not promoted as such and those that are? Does this have something to do with the scope of visibility, for instance differentiating between package public and package protected (which you cannot enforce in PHP)?
To me it's important the intent is clear. If code is explicitly defined public, it's clear to me what the intent is. If it's not explicitly defined, then things get a lot more ambiguous.
Not trying to convince you here, just curious why your approach differs from mine.

If a method was previously protected in a super-class and I change it to public I add the public keyword. This alerts me to the fact that I am widening or promoting the visibility.

Thanks for explaining


k-mer larger than 136

Hi,
The readme mentions that 'Support for values larger than 136 can easily be activated if needed.' How can I set the length of k-mer higher than 136?
Thanks,
Gaurav

Hello Gaurav,
here


I can not get the Room ID's for a Roborock Vacuum

Describe the bug
A clear and concise description of what the bug is.
Expected behavior
A clear and concise description of what you expected to happen.
Your config.json
Provide the config.json entry for your device.
Debug log
Provide a snippet of a debug log when the issue occurs. Ideally with the deepDebugLog property enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Model is an S7 Ultra
I run the get_room_mapping and this is what is returned....
[[16,"",1],[17,"",13],[18,"",6],[21,"",3],[22,"",15],[23,"",9],[24,"",14]]
Looks like it is not pulling the room ID's from the app.  I tried all the other commands that had to deal with the map and none of them were valid.  Any ideas?  I tried using the smaller numbers 16,1,17, etc. in the action button but all it does is run a complete clean.

If the room ids are missing then maybe they are not configured properly?


Swagger defaults to pet-store json file after updating to v1.4.0

Description
After updating to 1.4.0, The swagger doc use default example json file i.e. https://petstore.swagger.io/v2/swagger.json. I've to manually type in /swagger.json to navigate to my API doc.
I can confirm this works perfectly on v1.3.3 and not on v1.4.0.
Package version
1.4.0
Node.js and npm version
Node: 16.13.1
NPM: 8.1.2

Same issue here. Basically is the file swagger-initializer.js  in swagger-ui-dist package. You can make 2 works around in the mean time the dev fix it:

open the file swagger-initializer.js and edit the line: url: "https://petstore.swagger.io/v2/swagger.json" to url: "/swagger.json"

or

Add these lines in the file  SwaggerController.js from adonis5-swagger after line 56:

if (fileName.includes('initializer')) {
            //replace default host from swagger-initializer.js
            data = data.replace('https://petstore.swagger.io/v2/swagger.json', this.config.get('swagger.specUrl'));
            console.log(data)
        }

UI dist moved initializer from html to initializer.
Could you test my fix please ? Install via branch `

I can confirm branch reg2005/adonis5-swagger.git#fix-swagger-init does resolve the issue

How to test this? I've simply added "adonis5-swagger": "reg2005/adonis5-swagger.git#fix-swagger-init" inside my package.json. However, it seems to be throwing error.

@taist24 reinstall packages and check

@reg2005 Could you merge this (PR)[https://github.com/reg2005/adonis5-swagger/pull/36] and publish fix version ?

Ok. New version 1.4.1 is ready


Reflect.getMetadata is not a function

So i have update to the latest RC7 of angular2 and now im getting this error :
Reflect.getMetadata is not a function
What can I do to fix this issue, I'm using the 0.1.2 version.  (Also tried with the latest 0.1.8)
Thanks in advance!

I had a similar problem upgrading to angular2 2.0.1 from 2.0.0-rc5.  At the same time I upgraded angular-cli from 1.0.0-beta.11-webpack.2 to 1.0.0-beta.15.
when running 'ng init' i was a bit prescriptive in what I allowed angular-cli to update: one of the things it wanted to change was main.ts, adding the line import './polyfills.ts'; to the top of main.ts fixed it for me.

I'm also getting this error. On the latest version of Angular and not using angular-cli.
In my package.json I have:
"reflect-metadata": "^0.1.8",
I thought polyfills were no longer used?

Any update on this?  I too am having this problem.

I wanted to use reflect-metadata without Angular just to include it in a project with run-time type introspection of class properties, so I tried a very simple example with tsconfig.json target=ES2017, module=2015 and a simple test.ts:
import 'reflect-metadata';
function logType(target : any, key : string) {
   var t = Reflect.getMetadata("design:type", target, key);
   console.log(`${key} type: ${t.name}`);
}
export class Demo {
  @logType
  test: Date;
}
console.log(Reflect.getMetadata('design:type', new Demo(), "test"));

And it complains: error TS2339: Property 'getMetadata' does not exist on type 'typeof Reflect'.
The reason is that TypeScript thinks that Reflect means the lib.es2015.reflect.d.ts (because ES2015 also defines Reflect symbol on global namespace).
How do I solve this?

I added the reflect-metadata types and that resolved my problem yarn add --dev @types/reflect-metadata

I ran into this problem inside a lib. I resolved it by following @bashleigh's example and installing the types,
npm i --save @types/reflect-metadata
But also had to add an entry within tsconfig.lib.json:
{
  "extends": "../../tsconfig.json",
  "compilerOptions": {
    ...
    "types": [
      "reflect-metadata"
    ]
  }
}


Volunteers Portal

How likely would you use a new feature that allows people to login (with username and password) to view their contact information, volunteer history, and upcoming job shifts? This feature would require the purchase of Customer Portal licenses from the Salesforce Foundation.
Very likely to use	30.19%
Might use	30.19%
Would stick with the current no-login we...	21.70%
Don't plan on having website integration	13.21%
Not Answered	4.71%

Is it possible to use the Volunteers Personal Site features within a Customer Portal?  Portal users do not have access to Campaigns, which seems to be a problem.

If they hit the Personal Site will logged in with the customer portal license, it won't work.  If the hit the Personal Site with the Sites Guest User and are not logged in, then it should work.

Ok, but we don't want them to have to go to two different places.  They
will already be logged into the Portal for other purposes.  Is it possible
to add Personal Site to the portal or do we need to take a different
approach?

I have no solution for you.  If the user is logged into a portal license they cannot see campaigns, and thus cannot see V4S objects.  there is nothing I can do about this.  please vote up this idea: https://success.salesforce.com/ideaView?id=08730000000Lge9AAC


Codeium with auth-source and password-store (aka pass)

To obtain a token from password store, you can use the following snippet of code:
(with-eval-after-load 'codeium
  (require 'auth-source)
  (setq-default
   codeium/metadata/api_key
   (funcall (plist-get
             (nth 0 (auth-source-search :host "codeium.ai"))
             :secret))))

Probably it should be a better implementation or support on codeium side.

Yeah it would be nice if codeium had something like gptel where you can set gptel-api-key to the key string and the default is to use a function to fetch the key from the auth-source.
https://github.com/karthink/gptel/blob/8ba07d042c11cb65ebce69fc1dc069905ec00e5e/gptel.el#L156-L166
https://github.com/karthink/gptel/blob/8ba07d042c11cb65ebce69fc1dc069905ec00e5e/gptel.el#L498-L512


Support JDK 13

[x]  The Docker image should contain JDK 13
[x]  The repository should be tagged as jdk-ocamorph-pyphen-13.0.0.

Done


Downgrade ethpm registry

Pull Request Test Coverage Report for Build 275

2 of 6 (33.33%)  changed or added relevant lines in 3 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.5%) to 70.527%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

packages/solidity-utils/index.js
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

packages/truffle-migrate/index.js
1
82.19%

Totals

Change from base Build 269:
0.5%

Covered Lines:
5908

Relevant Lines:
8006

💛  - Coveralls


When available for .NET Core?

I see the note: ![NOTE] This refactoring is not yet available for .NET Standard and .NET Core projects.
When will it be available? I have the situation a lot that I want to rename the file to match the type. Now only the other way around is possible.

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

ID: 1290998c-f264-73c8-1e42-ace297da8cd1
Version Independent ID: 129df6c6-6098-bd70-e57e-27ed3df1b7ed
Content: Rename a filename to match a type - Visual Studio
Content Source: docs/ide/reference/sync-type-and-file.md
Product: visual-studio-dev15
GitHub Login: @gewarren
Microsoft Alias: gewarren

I have the same question - when will this be available in Visual Studio for .NET Core projects?  It was frustrating that this wasn't working after following the steps in the article all the way down...  then I read the last sentence of the article:

![NOTE] This refactoring is not yet available for .NET Standard and .NET Core projects.

@kendrahavens Can you find out if/when this refactoring will be available for .NET Core projects?
Meanwhile I have a PR in our private repo to move the NOTE up to the first section of the article.

It's not currently available for .NET Core projects.
@LockTar This request is being tracked in this issue, but we don't have it tied to a release yet. I suggest upvoting and following that issue to help us prioritize. Thank you for your feedback!

Thanks, following the issue right now and have upvoted it. The issue is already open for 3 years...


Translations.

Task/Issue URL:
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

Current dependencies on/for this PR:

develop

PR #3398

PR #3399   👈

This comment was auto-generated by Graphite.


gather dimensions handles when bother reduce_dims and _preserve_dims

gather dimensions handles when bother reduce_dims and _preserve_dims
Also fixed dims handling in CRPS

@tennlee I also fixed the mix-up between preserve and reduce in the CRPS implementation.


Centos 7 __glib c issue

Making an issue from https://github.com/conda-forge/kaleido-core-feedstock/pull/2#issuecomment-747751614

@bandersen23: @jonmmease Does this prevent CentOS 7 installs or am I misunderstanding that? I was receiving an Unsatisfiable error for "__glibc >=2.17,<3.0.a0", when trying to install the Linux version. I'm trying to understand why that is +1 Thank you!

@jonmmease: No, CentOS 7 should satisfy __glibc >=2.17 (https://centos.pkgs.org/7/centos-x86_64/glibc-2.17-317.el7.x86_64.rpm.html). Is this an x64 installation? FWIW, the ARM build isn't on conda-forge.

@bandersen23: That was what I thought. I do have an x64 install. I'm suspicious that the feedstock replaced sysroot_linux-64 with __glibc in the index.json. If you download the linux64 tar from Anaconda and look at the index.json file packaged up with it, you'll see that it will cause conda to look for __glibc rather than sysroot linux-64. sysroot_linux-64 resolves in conda, but __glibc will not (because it should be in the sysroot package referenced earlier). Does that make sense to you? I'm at least thinking that is the problem.
I hope you know that I don't think this PR is the root of the problem as it makes sense now that I've read it all, I just think something isn't resolving correctly. If this is the case, I'd assume there's a problem in how conda built the package, so it might be a simple fix to rebuild, but I'd defer to the conda-forge admin team if that's even possible +1

I haven't been able to reproduce this using a CentOS 7 docker image.
From this image
$ docker run -it centos:7 bash
$ yum install wget
$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
$ chmod +x ./Miniconda3-latest-Linux-x86_64.sh
$ ./Miniconda3-latest-Linux-x86_64.sh
$ source ~/.bashrc
$ conda install -c conda-forge kaleido-core

Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /root/miniconda3

  added / updated specs:
    - kaleido-core

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    _libgcc_mutex-0.1          |      conda_forge           3 KB  conda-forge
    _openmp_mutex-4.5          |            1_gnu          22 KB  conda-forge
    ca-certificates-2020.12.5  |       ha878542_0         137 KB  conda-forge
    certifi-2020.12.5          |   py38h578d9bd_0         143 KB  conda-forge
    conda-4.9.2                |   py38h578d9bd_0         3.0 MB  conda-forge
    expat-2.2.9                |       he1b5a44_2         191 KB  conda-forge
    font-ttf-dejavu-sans-mono-2.37|       hab24e00_0         388 KB  conda-forge
    font-ttf-inconsolata-2.001 |       hab24e00_0          97 KB  conda-forge
    font-ttf-source-code-pro-2.030|       hab24e00_0         927 KB  conda-forge
    font-ttf-ubuntu-0.83       |       hab24e00_0         1.9 MB  conda-forge
    fontconfig-2.13.1          |    h736d332_1003         319 KB  conda-forge
    fonts-conda-forge-1        |                0           4 KB  conda-forge
    freetype-2.10.4            |       h7ca028e_0         912 KB  conda-forge
    icu-68.1                   |       h58526e2_0        13.0 MB  conda-forge
    kaleido-core-0.1.0         |       h3644ca4_0        56.3 MB  conda-forge
    libgcc-ng-9.3.0            |      h5dbcf3e_17         7.8 MB  conda-forge
    libgomp-9.3.0              |      h5dbcf3e_17         378 KB  conda-forge
    libiconv-1.16              |       h516909a_0         1.4 MB  conda-forge
    libpng-1.6.37              |       h21135ba_2         306 KB  conda-forge
    libstdcxx-ng-9.3.0         |      h2ae2ef3_17         4.0 MB  conda-forge
    libuuid-2.32.1             |    h7f98852_1000          28 KB  conda-forge
    libxml2-2.9.10             |       h72842e0_3         1.3 MB  conda-forge
    nspr-4.29                  |       he1b5a44_1         232 KB  conda-forge
    nss-3.60                   |       hb5efdd6_0         2.1 MB  conda-forge
    openssl-1.1.1i             |       h7f98852_0         2.1 MB  conda-forge
    python_abi-3.8             |           1_cp38           4 KB  conda-forge
    sqlite-3.34.0              |       h74cdb3f_0         1.4 MB  conda-forge
    ------------------------------------------------------------
                                           Total:        98.3 MB

The following NEW packages will be INSTALLED:

  _openmp_mutex      conda-forge/linux-64::_openmp_mutex-4.5-1_gnu
  expat              conda-forge/linux-64::expat-2.2.9-he1b5a44_2
  font-ttf-dejavu-s~ conda-forge/noarch::font-ttf-dejavu-sans-mono-2.37-hab24e00_0
  font-ttf-inconsol~ conda-forge/noarch::font-ttf-inconsolata-2.001-hab24e00_0
  font-ttf-source-c~ conda-forge/noarch::font-ttf-source-code-pro-2.030-hab24e00_0
  font-ttf-ubuntu    conda-forge/noarch::font-ttf-ubuntu-0.83-hab24e00_0
  fontconfig         conda-forge/linux-64::fontconfig-2.13.1-h736d332_1003
  fonts-conda-forge  conda-forge/noarch::fonts-conda-forge-1-0
  freetype           conda-forge/linux-64::freetype-2.10.4-h7ca028e_0
  icu                conda-forge/linux-64::icu-68.1-h58526e2_0
  kaleido-core       conda-forge/linux-64::kaleido-core-0.1.0-h3644ca4_0
  libgomp            conda-forge/linux-64::libgomp-9.3.0-h5dbcf3e_17
  libiconv           conda-forge/linux-64::libiconv-1.16-h516909a_0
  libpng             conda-forge/linux-64::libpng-1.6.37-h21135ba_2
  libuuid            conda-forge/linux-64::libuuid-2.32.1-h7f98852_1000
  libxml2            conda-forge/linux-64::libxml2-2.9.10-h72842e0_3
  nspr               conda-forge/linux-64::nspr-4.29-he1b5a44_1
  nss                conda-forge/linux-64::nss-3.60-hb5efdd6_0
  python_abi         conda-forge/linux-64::python_abi-3.8-1_cp38

The following packages will be UPDATED:

  ca-certificates    pkgs/main::ca-certificates-2020.10.14~ --> conda-forge::ca-certificates-2020.12.5-ha878542_0
  certifi            pkgs/main/noarch::certifi-2020.6.20-p~ --> conda-forge/linux-64::certifi-2020.12.5-py38h578d9bd_0
  libgcc-ng           pkgs/main::libgcc-ng-9.1.0-hdf63c60_0 --> conda-forge::libgcc-ng-9.3.0-h5dbcf3e_17
  libstdcxx-ng       pkgs/main::libstdcxx-ng-9.1.0-hdf63c6~ --> conda-forge::libstdcxx-ng-9.3.0-h2ae2ef3_17
  openssl              pkgs/main::openssl-1.1.1h-h7b6447c_0 --> conda-forge::openssl-1.1.1i-h7f98852_0
  sqlite                pkgs/main::sqlite-3.33.0-h62c20be_0 --> conda-forge::sqlite-3.34.0-h74cdb3f_0

The following packages will be SUPERSEDED by a higher-priority channel:

  _libgcc_mutex           pkgs/main::_libgcc_mutex-0.1-main --> conda-forge::_libgcc_mutex-0.1-conda_forge
  conda               pkgs/main::conda-4.9.2-py38h06a4308_0 --> conda-forge::conda-4.9.2-py38h578d9bd_0

Proceed ([y]/n)?

@bandersen23. Could you include the version of conda that you're using?  I think it would be worth trying to update it.

@jonmmease I was able to successfully install this using the steps above in Docker. Updating conda should fix it, as I had Miniconda 4.7.10 installed. When I updated to Miniconda 4.8.2, everything worked as expected (as well as the latest version as well). Good to know!
Miniconda 4.7.10 image (errors out)
$ docker run -it centos:7 bash
$ yum install wget
$ wget https://repo.anaconda.com/miniconda/Miniconda3-4.7.10-Linux-x86_64.sh
$ chmod +x ./Miniconda3-4.7.10-Linux-x86_64.sh
$ ./Miniconda3-4.7.10-Linux-x86_64.sh
$ source ~/.bashrc
$ conda create -n kaleido
$ conda activate kaleido
$ conda install -c conda-forge kaleido-core

Miniconda 4.8.2 image (successful)
$ docker run -it centos:7 bash
$ yum install wget
$ wget https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.2-Linux-x86_64.sh
$ chmod +x ./Miniconda3-py37_4.8.2-Linux-x86_64.sh
$ ./Miniconda3-py37_4.8.2-Linux-x86_64.sh
$ source ~/.bashrc
$ conda install -c conda-forge kaleido-core

Thanks for working with me on this. Have a happy holiday!

Great!  Thanks for letting us know it's working with an updated version of conda. Happy Holidays :slightly_smiling_face:


VRC900 compatibility

Hello, after a mandatory migration to myvaillant (I used Multimatic before), I installed this component to continue using my heater in HA. After installation, I notice that no sensor is present, here are the messages I see in the log:

This is the error detail of the VRC700 line:
Cette erreur provient d'une intégration personnalisée
Logger: custom_components.mypyllant
Source: helpers/update_coordinator.py:313
Integration: myVAILLANT (documentation, issues)
First occurred: 20:47:44 (2 occurrences)
Last logged: 20:47:45
Unexpected error fetching myVAILLANT data: 'DAY' is not a valid DHWOperationModeVRC700
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 313, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mypyllant/init.py", line 350, in _async_update_data
data = [
^
File "/usr/local/lib/python3.12/site-packages/myPyllant/api.py", line 386, in get_systems
system = System.from_api(
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 555, in from_api
DomesticHotWater.from_api(
File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 490, in from_api
kwargs["operation_mode_dhw"] = DHWOperationModeVRC700(
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/enum.py", line 744, in call
return cls.new(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/enum.py", line 1158, in new
raise ve_exc
ValueError: 'DAY' is not a valid DHWOperationModeVRC700
I have a VRC700 Thermostat and a VRC900 controller.Has anyone ever had this problem?
In advance, thank's for your help.

same issue here, just updated from multimatic to myvaillant (VRC700 thermostat and VR921 gateway).

Same here.

Used Multimatic app and integration with Vaillant VR921 Server Connect
After upgrade to myVaillant the Multimatic app and integration do not work any more (as expected)
Installed myPyllant integration - login successful, no entities appear, Home Assistant shows this log

2024-02-16 11:11:16.185 WARNING (MainThread) [myPyllant.api] Could not get RTS data Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/myPyllant/api.py", line 1022, in get_rts response = await self.aiohttp_session.get( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 691, in _request await raise_for_status(resp) File "/usr/local/lib/python3.12/site-packages/myPyllant/api.py", line 102, in on_raise_for_status response.raise_for_status() File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1060, in raise_for_status raise ClientResponseError( aiohttp.client_exceptions.ClientResponseError: 404, message='Resource Not Found', url=URL('https://api.vaillant-group.com/service-connected-control/vrc700/v1/rts/e0398bc9-88ac-411d-804e-856fa3a976d7/devices') 2024-02-16 11:11:16.193 ERROR (MainThread) [custom_components.mypyllant] **Unexpected error fetching myVAILLANT data: missing value for field "manual_mode_setpoint_cooling"** Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/dacite/core.py", line 72, in from_dict value = get_default_value_for_field(field, field_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/dacite/dataclasses.py", line 21, in get_default_value_for_field raise DefaultValueNotFoundError() dacite.dataclasses.DefaultValueNotFoundError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 313, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/mypyllant/__init__.py", line 350, in _async_update_data data = [ ^ File "/usr/local/lib/python3.12/site-packages/myPyllant/api.py", line 386, in get_systems system = System.from_api( ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 542, in from_api Zone.from_api( File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 386, in from_api ZoneCooling.from_api(**kwargs["cooling"]) if "cooling" in kwargs else None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 313, in from_api return super().from_api(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 69, in from_api return from_dict( ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/dacite/core.py", line 76, in from_dict raise MissingValueError(field.name) dacite.exceptions.MissingValueError: missing value for field "manual_mode_setpoint_cooling" 2024-02-16 11:11:16.386 ERROR (MainThread) [custom_components.mypyllant] Unexpected error fetching myVAILLANT data: missing value for field "manual_mode_setpoint_cooling" Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/dacite/core.py", line 72, in from_dict value = get_default_value_for_field(field, field_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/dacite/dataclasses.py", line 21, in get_default_value_for_field raise DefaultValueNotFoundError() dacite.dataclasses.DefaultValueNotFoundError During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 313, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/mypyllant/__init__.py", line 379, in _async_update_data async for system in await self.hass.async_add_executor_job( File "/usr/local/lib/python3.12/site-packages/myPyllant/api.py", line 386, in get_systems system = System.from_api( ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 542, in from_api Zone.from_api( File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 386, in from_api ZoneCooling.from_api(**kwargs["cooling"]) if "cooling" in kwargs else None ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 313, in from_api return super().from_api(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 69, in from_api return from_dict( ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/dacite/core.py", line 76, in from_dict raise MissingValueError(field.name) dacite.exceptions.MissingValueError: missing value for field "manual_mode_setpoint_cooling" 2024-02-16 11:11:16.389 WARNING (MainThread) [custom_components.mypyllant.binary_sensor] No system data, skipping binary sensors 2024-02-16 11:11:16.389 WARNING (MainThread) [custom_components.mypyllant.calendar] No system data, skipping calendar entities 2024-02-16 11:11:16.389 WARNING (MainThread) [custom_components.mypyllant.climate] No system data, skipping climate 2024-02-16 11:11:16.389 WARNING (MainThread) [custom_components.mypyllant.datetime] No system data, skipping date time entities 2024-02-16 11:11:16.389 WARNING (MainThread) [custom_components.mypyllant.number] No system data, skipping number entities 2024-02-16 11:11:16.390 WARNING (MainThread) [custom_components.mypyllant.sensor] No system data, skipping sensors 2024-02-16 11:11:16.390 WARNING (MainThread) [custom_components.mypyllant.sensor] No daily data, skipping sensors 2024-02-16 11:11:16.390 WARNING (MainThread) [custom_components.mypyllant.switch] No system data, skipping switch entities 2024-02-16 11:11:16.390 WARNING (MainThread) [custom_components.mypyllant.water_heater] No system data, skipping water heater

For VRC700 systems you need to enable beta releases and use the latest one of those.

For VRC700 systems you need to enable beta releases and use the latest one of those.

idd. using v0.7.3b7 works (both entities and service calls to climate entities).
big thanks to all contributors!

[EDIT] for the service calls, the HVAC actions work, presets only work for "eco" preset, for other presets nothing happens (+no error in ha default log)

This would require reverse engineering what preset values are being sent in the app.

This would require reverse engineering what preset values are being sent in the app.

do you mean the calls:
https://api.vaillant-group.com/service-connected-control/vrc700/v1/systems/<system-uuid>/zone/1/heating/operation-mode
JSON:
{
    "operationMode": "DAY" // OR "SET_BACK" OR "OFF" or "AUTO"
}

I think these should also be mapped to the climate entity presets
for example:

operationMode (vaillant)
HA climate preset

DAY
custom day preset

SET_BACK
sleep

AUTO
eco

OFF
none

for reference: https://github.com/thomasgermain/vaillant-component/tree/1.16.3 (at the bottom of the readme is the mapping they used for the climate presets/modes.
Anyway if you need reverse engineering from the vaillant api, I'm happy to help (mitmproxy)

That's already the case, although I can't vouch for the completeness on VRC700 systems.
HVAC modes are mapped here: https://github.com/signalkraft/mypyllant-component/blob/main/custom_components/mypyllant/climate.py#L310-L313
Presets are mapped here: https://github.com/signalkraft/mypyllant-component/blob/main/custom_components/mypyllant/climate.py#L93-L97
...and values are here: https://github.com/signalkraft/myPyllant/blob/main/src/myPyllant/enums.py#L63-L67
My guess is that the special functions in the last link differ on VRC700 systems, and that's where I need someone to point me to the right values (through reverse engineering, or setting special functions in the app and generating test data).

Thanks for the links.
I can idd see that there are mapped presets:
Sleep: works on VRC700 (system turns off)
Boost: does not work on VRC700 (I think you are using the correct values, only the desired temp is not sent with the request)
Away: does not work on VRC700 (start/end and setpoint missing?)
eco: mapped to none
none: mapped to none
I've attached the holiday/veto request from mitmproxy for reference.
vrc700_holiday-veto.txt
Actually I was referring to mapping the some of the presets to operational modes (ie DAY/SET_BACK/OFF rather than special functions) but from what I can see VRC700 uses different operational modes than the others so this might prove challenging.


[Snyk] Upgrade vuetify from 2.6.15 to 2.6.16

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade vuetify from 2.6.15 to 2.6.16.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.
The recommended version was released 21 days ago, on 2023-07-05.

Release notes

Package name: vuetify

2.6.16 - 2023-07-05🔧 Bug Fixes

icons: FA5 warning icon alias more consistent with MDI (#15607) (3c525fe)
VDataTable: add class to root element when show-select (#14987) (ee72ee5)
VDialog: check if scrolling element parentNode exists (e148110), closes #15977
VIcon: center button icon in system bar (#15918) (bc7a264), closes #14975
VMenu: prefer existing menuProps.attach (50ea98d), closes #7547
VSelect: update lastItem when selection changes with hideSelected (b121493), closes #17085
VTextarea: correctly apply reverse prop styles (#15858) (1e4b2f7), closes #15432

2.6.15 - 2023-04-12

    from vuetify GitHub release notes

Commit messages

Package name: vuetify

2b18f2c chore(release): publish v2.6.16
bdf9d69 test: update snapshots
bc7a264 fix(VIcon): center button icon in system bar (#15918)
39e194b docs(VDatePicker): use `substring` instead of `substr` in misc-birthday example
3c525fe fix(icons): FA5 warning icon alias more consistent with MDI (#15607)
ee72ee5 fix(VDataTable): add class to root element when show-select (#14987)
1e4b2f7 fix(VTextarea): correctly apply reverse prop styles (#15858)
b121493 fix(VSelect): update lastItem when selection changes with hideSelected
e6731e0 docs(VSelect): add checkboxes note to hide-selected
50ea98d fix(VMenu): prefer existing menuProps.attach
e148110 fix(VDialog): check if scrolling element parentNode exists

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Superseded by #160


install gromacs with openmpi on Titan

Currently, installation seems to be successful. But upon execution, we get the following fatal error:
vivekb@titan-ext4:/lustre/atlas/scratch/vivekb/bip149/data-ntl9> gmx_mpi grompp
librdmacm: couldn't read ABI version.
librdmacm: assuming: 4
CMA: unable to open /dev/infiniband/rdma_cm

I reinstalled from scratch again. In addition the above messages, I also get a "illegal instruction" error. I installed gromacs in non-mpi mode and tested it. I got the same "illegal instruction" error, so I opened a ticket with ornl. I requested them for the installation commands they used for gromacs modules on Titan.

This is resolved. See compilation instructions and follow-up here: https://github.com/radical-cybertools/radical.benchmark/issues/4


Date Format

I want to Get X-axis data in Date Format. I used  "formatter: (v) => moment(v).format("MMM DD") }" in Horizontal Axis but it didn't work.

I had to use moment.unix(v).format("MMM DD") to work.

Hello friends, Thanks @pillaedu, your solution helped me a lot. But I encontered other problem. My data is in daily form and string format (Easily I can convert string to unix, this is not problem). But when I use my daily dates (for example 13 dates) to plot, it does not show entire and inside the width of the plot. This stretches infinitely towards the positive x-axis. I think two posible parameter ar involved; first maybe unix shows seconda by second in the plot or maybe I have to define well the x-domain parameter. Look the picture below (Whit numeric data en x-axis works well, even if I don't configure teh x-domain parameter). Could you tell me What I am doing wrong? or tell me some tips. Thank you.

Hello again, I have found the solution to my problem before. First at all i am working whit horizontal scroll graph. So it can not show day by day because when I use unix (method proposed by @pillaedu), react-native-responsive-linechart takes dates second by second. In my case dates are day by day, then the line extended to positive infinity until the next day was found. You only have to set in the "viewport" parameter the number of seconds that elapse in one day (86400) and then multiple by the number of grids  in the horizontal axis that you want the graph show. Thats all. Then you get as I show below.


Handling verbose profile descriptions

When using a very large profile description (lots of long strings and new lines < 280 characters), a few problems occurred:

Editing large amounts of text was a challenge within the small space, but the carot moving around, jumping offscreen, deleting unintended characters would make it frustrating if my content wasn't nonsense.
The full description is truncated on profile view (probably a good idea), but with no way to view the description in its entirety.
The 280/280 indicator prevents descriptions of exactly 280.

Via https://github.com/subconsciousnetwork/subconscious/issues/584, and with all sphere data with user input, the 280 limit can be disregarded through other means. When attempting to load a >=280 character description, confirming out of the prompt deleted the whole profile description.


draft: upload progress ui

This pull request is a draft that contains more changes than it should, namely it fixes some of the storybook stories that I appeared broken, I will factor out those changes into separate PR.

This pull request adds stories corresponding to the mockups at https://www.figma.com/file/BQjzJcaKuNrNgeDnoZ664D/Web-UI-upload%2Fdownload-progress

@jessicaschilling I was not very successful in styling such that there will be no whitespace below progressbar, with what tachyons provides. If you could share some tips that would be greatly appreciated.

Now the bad news is (as @rafaelramalho19 mentioned it during the call) react is unable to catch up with all the updates that are happening to put it very gently. Some profiling showed an extreme high pressure on both CPU. On my macbook Air it's 0fps, in fact total block time time (TBT) which should be kept <50ms was whooping 86412ms 😱. Put it differently while uploading 1gig file app was able to render only two frames.

I did some instrumentation and here are some early findings:

There are way too many re-renders happening. I am not sure yet where these updates coming from, but backlog of re-renders is so massive that chrome console is unable to store only the ones that happen when progress is at 0. Which suggests that those updates aren't caused by file add itself.

I can see state updates happening on file add. While state is updated to progress 32% react is still trying to process re-renders queue of updates where state is still 0%.

It is ridiculous that react still does re-render on every update instead of doing it on animation frames BTW, something that other libraries had been doing for a long time.

I am afraid this is not going to be easy, because scope of this problem is well beyond specific components. I'll need to investigate this further before I can tell if there are some shortcuts we could take, but it may well require significant changes to get a reasonable re-render loop.

Boo, I suspected tachyons' weird height unit incrementing was going to foul that up. Feel free to explicitly give the progress bar itself a normal-measurement height.

Turns out all the progress updates start firing only after the request is complete, and that caused the flood of updates that react was unable to keep up with. I'll try to figure out why updates are starting to come in only after request is complete.

With the following changes applied:

[ ] https://github.com/ipfs/js-ipfs-utils/pull/60
[ ] https://github.com/ipfs/js-ipfs/pull/3310

I finally was able to resolve all the issues and get a progress bar working

Cleaned up pull request and to remove unrelated changes and re-targeted it to storybook-fixes branch instead as those changes are needed to get the storybook stuff working here. Once that branch lands I'll change target back to master.
Please note that in order to test any of these changes you'd need to manually update ipfs-http-client dependency to include changes mentioned earlier. Unfortunately it does not appears like there is a way to do it with git urls because of the monorepo setup.

Fixed the styling so there is no whitespace below the progressbar and that we only display it if import is pending. I think it's ready to be reviewed even if it will take some time to get all the dependencies to propagate before it can land.

Status update
I have run into problems in updating this pull. For whatever reason "react scripts" seems to modify isolatedModules to true which than causes issues with new ipfs-http-client (which we need to get progress events):
Failed to compile.

/Users/gozala/Projects/ipfs-webui/node_modules/ipfs-core-types/src/index.ts
TypeScript error in /Users/gozala/Projects/ipfs-webui/node_modules/ipfs-core-types/src/index.ts(5,3):
Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.  TS1205

    3 |
    4 | export {
  > 5 |   RootAPI,
      |   ^
    6 |
    7 |   AbortOptions,
    8 |   Await,

This is really annoying and I was unable to get it resolved yet. I hope we won't have to ship changes in http-client to fix this, although I am starting to run out of ideas. Even if I delete tsconfig.json react scripts seems to create one and produce above error.

Status update
I have run into problems in updating this pull. For whatever reason "react scripts" seems to modify isolatedModules to true which than causes issues with new ipfs-http-client (which we need to get progress events):
Failed to compile.

/Users/gozala/Projects/ipfs-webui/node_modules/ipfs-core-types/src/index.ts
TypeScript error in /Users/gozala/Projects/ipfs-webui/node_modules/ipfs-core-types/src/index.ts(5,3):
Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.  TS1205

    3 |
    4 | export {
  > 5 |   RootAPI,
      |   ^
    6 |
    7 |   AbortOptions,
    8 |   Await,

This is really annoying and I was unable to get it resolved yet. I hope we won't have to ship changes in http-client to fix this, although I am starting to run out of ideas. Even if I delete tsconfig.json react scripts seems to create one and produce above error.

Worked around the issue for now

@lidel not sure why this things are failing on CI, they don't on my device. I also end up disabling some tests because mocking redux-bundle does not seems to work with new react scripts, which were needed to address Gozala/web-encoding#1. I have spend several hours trying to figure out why jest mocking no longer works, but ultimately gave up. Do you by a chance have any clue what could be going wrong there, according to my reading of docs it should work but mocked createSelector seems to be returning undefined no matter how they're morked.

@lidel not sure why this things are failing on CI, they don't on my device. I also end up disabling some tests because mocking redux-bundle does not seems to work with new react scripts, which were needed to address Gozala/web-encoding#1. I have spend several hours trying to figure out why jest mocking no longer works, but ultimately gave up. Do you by a chance have any clue what could be going wrong there, according to my reading of docs it should work but mocked createSelector seems to be returning undefined no matter how they're morked.

I believe @rafaelramalho19  is experiencing the same or  similar issue with tests in #1713
I'll block some time to look into this, maybe I'll be lucky.

I believe @rafaelramalho19  is experiencing the same or  similar issue with tests in #1713
I'll block some time to look into this, maybe I'll be lucky.

Hm.. not sure if this is a good lead, but I see a weird behavior of ipfs.ls(cid) here
(this seems to cause e2e tests of Files screen to fail when i test with npm run build && DEBUG=true npm run test:e2e)
https://github.com/ipfs-shipyard/ipfs-webui/blob/cfe03a78398394b0352eeb92d481a6ed8c60c2ac/src/bundles/files/actions.js#L582-L587
When I open Files screen and the repo is empty  (mfsRoot being empty dir QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn)  ipfs.ls(mfsRoot)  returns res with a single object:

Which looks like a bug. ipfs.ls('QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn') should return empty list.
Instead, it returns... itself with type unknown  (instead of a directory) and name is missing, which is then causing error on line 587.
Will get some sleep and look at this tomorrow, but lmk if this rings any bells.

Hm.. not sure if this is a good lead, but I see a weird behavior of ipfs.ls(cid) here
(this seems to cause e2e tests of Files screen to fail when i test with npm run build && DEBUG=true npm run test:e2e)
https://github.com/ipfs-shipyard/ipfs-webui/blob/cfe03a78398394b0352eeb92d481a6ed8c60c2ac/src/bundles/files/actions.js#L582-L587
When I open Files screen and the repo is empty  (mfsRoot being empty dir QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn)  ipfs.ls(mfsRoot)  returns res with a single object:

Which looks like a bug. ipfs.ls('QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn') should return empty list.
Instead, it returns... itself with type unknown  (instead of a directory) and name is missing, which is then causing error on line 587.
Will get some sleep and look at this tomorrow, but lmk if this rings any bells.

Updating CI to the latest LTS Node (14.15.4) fixed one of tests:

12.x: Tests:       4 failed, 22 passed, 26 total
14.x: Tests:       3 failed, 23 passed, 26 total

Updating CI to the latest LTS Node (14.15.4) fixed one of tests:

12.x: Tests:       4 failed, 22 passed, 26 total
14.x: Tests:       3 failed, 23 passed, 26 total

@Gozala any luck here?
I'd love to land this and then rebase #1713 and #1721 to include fixes from this PR.

I figured out why I was not able to reproduce the problems on my device - I was using yarn which is deduplicating dependencies, with npm I'm able to replicate the issue locally. I am also getting bunch of issues caused by multiple versions of same dependecy. Trying to get versions aligned now & hope it will get it all fixed.

Identified problem which is caused by the following change:
https://github.com/ipfs/js-ipfs/commit/f243dd1c37fcb9786d77d129cd9b238457d18a15#diff-451c33c54d61ab1f32e767b878ccd03a507ba13b852934fd40d32472df2f81f2R76-R78
Specifically ipfs.ls(emptyDir) contains CID of the emptyDir now, while prior to this change it returned no entries.

Submitted an issue https://github.com/ipfs/js-ipfs/issues/3566

I am trying to figure what is causing the remote-api.test failures, so far without much success. So far I have noticed that if I just have one test enabled it passes (regardless of the test). If I add bunch of alerts in the code things pass as well.
All this leads me believe that there is some timing problem possibly with with starting helper servers, but all this combined makes it really difficult.

@Gozala  is there anything left in this PR that you'd like to do before we merge?
I don't want to block this on those commented tests, perhaps we merge this to unblock rebase of Rafael's PRs and fill issue for fixing tests in separate PR?

@Gozala is there anything left in this PR that you'd like to do before we merge?
I don't want to block this on those commented tests, perhaps we merge this to unblock rebase of Rafael's PRs and fill issue for fixing tests in separate PR?

Can’t thank you enough for helping with CI issues! I think merging and doing everything as followups is the best way to go


⚠ Bofrost.de has degraded performance

In da40c00, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 806 ms

Resolved: Bofrost.de performance has improved in 61886d5.


x-custom testing

[x] with/without explode
[x] ok and error
[x] with parameter

finished by 7cedafe