Error in Doorbird communication

Hello,
I would like to kindly ask you for help with Receiving „Error in Doorbird communication.“
Node-Red, version: 3.0.2.
Running on: Raspberry Pi 3, Debian, version: 10
Node: node-red-contrib-doorbird-ultimate, version: 1.4.0
What is working:

Ring – when ring button is pressed, I fot the message to Google Nest Mini 2 and selected lights are blinking

What is not working:

Info node: msg : string[32] Error in Doorbird communication
Video node and Image node set to Dashboard: no picture, no video on dashboard, just empty frame

What has been checked/tested:

new user and password set for Doorbird is ok (otherwise Ring will not work)
permissions in Doorbird App are set to all, except Door Open (own security)
In Node-Red, testing node UDP In with port set to 6524 is sending to debug node payload buffer [22] with message [ 54, 50, 56, 55, 58, 103, 103, 122, 122, 106 …] (I have seen it in another post here, so I set it up for test as well)
I've also played with Router Firewall, but nothing helped

Thanks for the detailed report. I will try to look into it as soon as possible. Can you check the server logs for anything that hints to the root cause?

How to get server logs? I do have device like this: https://help.ampio.com/en/modules/m-serv-s/
And it is running also Node-Red on it. I can login to device as root via Putty, but do not know which logs are you looking for .
Best regards,
Quido Květ
@.> @.
From: Benjamin Ihrig @.>
Sent: Thursday, 18. April 2024 15:52
To: ihrigb/node-red-contrib-doorbird-ultimate @.>
Cc: Quido78 @.>; Author @.>
Subject: Re: [ihrigb/node-red-contrib-doorbird-ultimate] Error in Doorbird communication (Issue #30)
Thanks for the detailed report. I will try to look into it as soon as possible. Can you check the server logs for anything that hints to the root cause?
—
Reply to this email directly, view it on GitHub https://github.com/ihrigb/node-red-contrib-doorbird-ultimate/issues/30#issuecomment-2063919616 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BH5KUMFWLW447H63VP5QOG3Y57FYJAVCNFSM6AAAAABGNCOUDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRTHEYTSNRRGY .
You are receiving this because you authored the thread.  https://github.com/notifications/beacon/BH5KUMGDM65ZZAGQVXZNBE3Y57FYJA5CNFSM6AAAAABGNCOUDGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT3ATVAA.gif Message ID: @.*** @.***> >

@Quido78 sorry for the delay. I did finally have a bit of time to look into this. I cannot identify an issue that would prevent any normal call to the API (for example info). All of them do work for me.
I do not know your device and thus I do not know, how to access node red logs.

Closing this as idle.


Update sources

:robot_face: Updating sources to the latest version.
Commits touching OCaml packages:
Diff URL: https://github.com/NixOS/nixpkgs/compare/01a88ede6a2b64bd15b3b0fdcee30afb0b237edb...0663b90f545ac4117489977fbc3a58b199e5d087
Error
Error occurred, there could be relevant commits missing

LIGO update and ocamlPackages.simple-diff: init at 0.3 but no other ocaml stuff from what I can see


Wheelmap corrupts OSM tagging if a tag contains &

If a tag contains & and you edit this POI via Wheelmap web interface, Wheelmap replaces & by & afterwards. At the second time you edit this object via Wheelmap, Wheelmap replaces & by &#38; at OSM data. In other words, every time a Wheelmap user modifies an object which has a tag which contains &, this & is changed to &. This changes OSM data (or, in other words, corrupts them).
Example: If I go to Sachsenheim station, click on "Edit" and afterwards on "Save" (without editing anything) operator=DB Station&Service AG is replaced by operator=DB Station&Service AG.
It seems that every OSM tag can be corrupted this way. I have fixed this type of data corruption today in whole Germany (search data via Overpass API and fix it object by object).
The bug only occurs if the data is edited by logged-in users. Edits done anonymously do not cause these data corruptions. It seems that only the web interface and neither the Android nor the iOS app is affected.

Hi @Nakaner,
thx for the report. We had this issue a few years back and fixed it. But yeah, encoding problem occur randomly.
As we are using rosemary as OSM API client, the bug is likely to happen in there.
https://github.com/sozialhelden/rosemary
Cheers Christoph

@christoph-buente
shall I report it there?
I have used Firefox 36.0 at Arch Linux. I don't know what browser other users used when the bug occured.

I think it is not browser dependent. The data is supposed to be utf-8 encoded, but as & is an html_entity it might be some funny use case. So yes, i think it is a good idea to report it at rosemary issues.


mac launcher should get its version number from git

there are some properties somewhere in the project with the version number that gets displayed in the about box and when you command-I the app.  this should be derived from git describe, the same way we compute the string that we show in the about box in the web app.

moving to electron


Blog post for 0.69 RN release

This PR adds a blogpost to be posted once 0.69 is released. It currently depends on this PR as we link to it from this blogpost.

Hi @Nicola, I did a grammar pass and the post looks clean.


Multi tenancy not working according to docs

Package
filament/filament
Package Version
v3
Laravel Version
v10
Livewire Version
v3
PHP Version
8.1
Problem description
When adding multi tenancy, the register page does not work. Several method not found errors will be thrown because the inheritance tree is not correct.
According to the docs we need to inherit from the RegisterTenant class, but if we do that the Page class is not in the inheritance tree and we are missing out several methods.
Expected behavior
To see a registration page :-)
Steps to reproduce
Just follow the steps in the docs
Reproduction repository

Relevant log output
No response

RegisterTenant extends SimplePage extends BasePage, so what's the problem here? Please create a reproduction.


add example of using trickle ice

Hello,
The examples mention a lot that one should use trickle ICE in production, but no example of that. I find it hard to navigate webrtc terms, so a simple example would be really really nice. in our case we are not restricted to a single signaling message as we have a working websocket connection between server and client.

Trouble is i have nothing to merge because i don't know how to do it :)

pion-to-pion does trickle ICE between two Go agents.
sfu-ws does trickel ICE between Go and Web/Mobile.
I hesitate to recommend either because they are demonstrating other things as well. Would be great to have a Trickle only example (like you suggest). People can see only that in action. Also great place to explain why trickle is important as well :)

the latter one looks interesting enough. maybe I will get round to distilling it down to a single connection example

thanks!

Hey @maddanio you interested in taking this? If not I have time tomorrow and will code something up :)
thanks!

Go for it :)

@maddanio Pushed! Mind trying that out?
Does it do a good job explaining things? Is the example simple enough to learn/follow?

nice job! Regarding the js communication I really liked the approach from sfu-ws. Also having video data streaming at least from the server to the client would be neice maybe? but still, it does the job of demonstrating the basics.


Re use readonly #12732 #13863

Reopen #13863 and will Solve #12732

all in env (https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L3379)
rootPath in workspace (https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L3870)
textDocuments in workspace (https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L3921)
are not. because they're using export and namespace.

Thanks. Merging - we loose having explicitly spelled out readonly in the generated doc page because typedoc doesn't preserve that information. Still, the benefit outweighs that.


Added REFERENCES permission to MYSQL User

Summary
A customer encountered an issue upgrading from v5.39 to v6 (using Mattermost Operator):
Could not create foreign key: Error 1142: REFERENCES command denied to user  for table 'RetentionPolicies' caller="sqlstore/store.go:1075"
Ticket Link
See community conversation here

@sadohert - I've incorporated your feedback into the following installation topics:

Debian Buster
Ubuntu 18.04
RHEL 7
RHEL 8

I've included these updates in this PR for your review.
Note: I haven't updated the RHEL 6 installation docs since RHEL 6 is now EOL and no longer supported.


20190610 change #4: Modified the configuration (nvbits) to allow small CLIC implementation without the selective interrupt hardware vectoring feature

Draft 20190610 – separating multiple changes as individual issues to enable change tracking/approval from draft-20190610 doc upload.
20190610 change #4: Modified the configuration (nvbits) to allow small CLIC implementation without the selective interrupt hardware vectoring feature.

can be tracked as separate issue: cliccfg is listed as RW but cliccfg.nvbits is read-only #55
"You are correct that defining nvbits as read-only is inconsistent with the RW attribute of cliccfg. Nevertheless, this is related to our discussion in the last meeting about whether to support 1 mode or 3 modes (or even 2 modes). Originally nvbits was read-write but I simplified it to read-only. We definitely need to revise this in the near future after we have determined how many modes are mandatory and supported."


Give hpm more visibility

Checklist:

[X] The link for my package or theme uses the npmjs.com link (https://npmjs.com/package/hyperterm-plugin-example)
[X] The title for my package or theme uses its npm title (hyperterm-plugin-example)
[X] There is a visual representation of what my plugin does in the repo. (Plugin: screenshot or gif || Theme: screenshot of the colors within HyperTerm)
[X] VERY IMPORTANT: I've written a short (one sentence) description for my package or theme of why it's awesome and deserves to be on the list.

hpm is pretty useful, to the point that I'd say it deserves its own section or separation at the top of the Plugins section. Would you want to do that?

I don't think that is necessary, since we're probably bundling it in HyperTerm in the next few releases :)
Also, once the bundle is done, hpm don't even need to be listed here – since it will be part of HyperTerm's core 😊

@matheuss Awesome. Merging!

@bnb @matheuss One more kid in the block.


Pull request merge tool

Since apache/incubator-zeppelin is a mirror, we can not simply click merge button for pull request.
Here's pullrequest merge tool, i modified little bit for Zeppelin, based on Spark's one.

Is there some options to pass also? Or does everybody has to configure its own?
I see that JIRA_USERNAME and JIRA_PASSWORD for example.
Can you make a quick HOW TO USE?

This looks like the modified version of spark_merge_pr.py, isn't it? I survey several merging tool for ASF. Do you try to get Mesos' one? https://github.com/apache/mesos/blob/master/support/apply-review.sh I think it's really clear to read code. How about you? Spark's one looks a little bit complicated.

I like more the mesos apply-review.sh

Right, it's modification of spark's one.
And thanks for the feedback, but I still prefer to Spark's one over mesos's. The reasons are

Spark's one comments all authors in pull requests when pull requests has commits from more than two contributors while mesos's one does not.
Spark's one summarize all commits with author for the reference, while mesos's one is not.
Mesos's one creates link to review board, which Zeppelin development community is not using it right now.

Yes, some are rights. Mesos' one doesn't support multiple author, but I think It's rare case. And in case you choose github for merging source, Mesos's doesn't create any reviewboard link whether Zeppelin use it or not. If you need to support mutiple authors, Spark's one would be better.

@jongyoul Thanks for correction.
@corneadoug
To use this script, minimum requirements are

you should inside of Zeppelin source directory (or setup ZEPPELIN_HOME env variable)
add remote repository https://github.com/apache/incubator-zeppelin.git with name 'apache-github' and fetch it (you can use your favorite name instead of 'apache-github' with PR_REMOTE_NAME env variable)
add remote repository https://git-wip-us.apache.org/repos/asf/incubator-zeppelin with name 'apache' and fetch it (you can use your favorite name instead of 'apache' with PUSH_REMOTE_NAME env variable)

You can optionally setup your JIRA account by setting up JIRA_USERNAME, JIRA_PASSWORD env variable.
and just run the script. script will ask question what you want to do.

@Leemoonsoo thank you very much for the tutorial!
As we can always switch, why not we try Spark one first and see? If that does not work for us, let's then try mesos one.
So my suggestion would be to merge this and move on.
BTW I presume each committee could use even his own tool of choice if it follows the process (i.e make reviews-before-commit in GH PRs and not a reviewboard)

Like @bzz suggested, I think we can first try spark's one and see how it goes. @anthonycorbacho @jongyoul, is it okay for you guys?

:+1: @Leemoonsoo

yep

Thanks. I'm merging it.


Category age query limit

https://github.com/sendgrid/apid/blame/cbe046a3498cce7382a1f04e586d6b24bd1bba41/apid/api/category/stats/get.py#L104

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


Fixed pt->in conversion factor

Thanks for your contribution. I don't really understand why you would like
to have 1in=1pt. According to the specs, 1pt = 1/72 in :
https://www.w3.org/TR/css-values-3/#absolute-lengths
On Tue, 7 Apr 2020 at 11:00, Faruk Krecinic<EMAIL_ADDRESS>wrote:

You can view, comment on, or merge this pull request online at:
https://github.com/btel/svg_utils/pull/36
Commit Summary

Fixed pt->in conversion factor

File Changes

M src/svgutils/compose.py
https://github.com/btel/svg_utils/pull/36/files#diff-0cea35dac7b1d3e23373905005353c16
(2)

Patch Links:

https://github.com/btel/svg_utils/pull/36.patch
https://github.com/btel/svg_utils/pull/36.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/btel/svg_utils/pull/36, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAKEXMM3X6BJOCKHEWSGADRLLTUJANCNFSM4MC56NYA
.


--observatory-port stopped working in SDK 1.22.3

Hi Everyone,
I used the argument --observatory-port for running integration tests locally but in a current version, it stopped working.
flutter doctor -v
[✓] Flutter (Channel stable, 1.22.3, on Mac OS X 10.15.7 19H2, locale en-RU)
    • Flutter version 1.22.3 at /Users/sergey.bartosik/Applications/sdk/flutter
    • Framework revision 8874f21e79 (5 days ago), 2020-10-29 14:14:35 -0700
    • Engine revision a1440ca392
    • Dart version 2.10.3

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/sergey.bartosik/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /Users/sergey.bartosik/Library/Android/sdk
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2020.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin installed
    • Dart plugin version 202.8070

[✓] IntelliJ IDEA Community Edition (version 2020.2.3)
    • IntelliJ at /Applications/ /IntelliJ IDEA CE.app
    • Flutter plugin installed
    • Dart plugin version 202.8070

[✓] Connected device (1 available)
    • iPhone 12 (mobile) • 8FC4CC8F-1509-42C1-A72C-043FC48C2D0C • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-1 (simulator)

Run setup SDK 1.22.3

Result for SDK 1.22.3

However, if I run it for the previous version of SKD 1.20.4 it works perfectly fine
flutter doctor -v
[✓] Flutter (Channel unknown, 1.20.4, on Mac OS X 10.15.7 19H2, locale en-RU)
    • Flutter version 1.20.4 at /Users/sergey.bartosik/Applications/sdk/flutter
    • Framework revision fba99f6cf9 (7 weeks ago), 2020-09-14 15:32:52 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/sergey.bartosik/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /Users/sergey.bartosik/Library/Android/sdk
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.9.3

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2020.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin installed
    • Dart plugin version 202.8070

[✓] IntelliJ IDEA Community Edition (version 2020.2.3)
    • IntelliJ at /Applications/ /IntelliJ IDEA CE.app
    • Flutter plugin installed
    • Dart plugin version 202.8070

[✓] Connected device (1 available)
    • iPhone 12 (mobile) • 8FC4CC8F-1509-42C1-A72C-043FC48C2D0C • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-1 (simulator)

! Doctor found issues in 1 category.

@wer32
I verified on both versions (1.22.3 and 1.20.4), but saw similar observatory ports:
1.22.3 : flutter: Observatory listening on http://<IP_ADDRESS>:59006/jzgVn5_xGFg=/

1.20.4 : I/flutter (11957): Observatory listening on http://<IP_ADDRESS>:46352/MjUgD2KSBoM=/
00:00 +0: Counter App (setUpAll)

VMServiceFlutterDriver: Connecting to Flutter application at http://<IP_ADDRESS>:59631/MjUgD2KSBoM=/

So not sure if what you are seeing is an expected behavior.

HI @darshankawar,
Please note that on the screen above I specified port 8888 and as a result, I got http://<IP_ADDRESS>:8888/ws on SDK 1.20.4 that was my goal.

With SDK 1.22.3 it chooses a random port. For me, that looks like broken logic, please correct me if I'm wrong.
My original intention was a convenient development environment that described in this article https://medium.com/flutter-community/hot-reload-for-flutter-integration-tests-e0478b63bd54

--observatory-port is now deprecated.
It has been replaced by the --host-vmservice-port and --dds-port flags.

@jason-simmons would you help to find instruction or documentation on how to use these parameters, please?
For some reason, my tries were not successful.

@wer32
Please see this open issue where it specifies the same.

@wer32
Please see this open issue where it specifies the same.

@darshankawar I'm sorry I think it is a different proposal and issue.
As I mentioned above nether --observatory-port nor --host-vmservice-port works properly. I see a random port instead of port 8888. Please see my examples above.

Use the --dds-port flag to control the port of the observatory URL

Same here( #69871 ), but I have tried --dds-port flag on Flutter beta channel, and it works fine.
That flag is able to use on beta channel, not stable channel.
$ flutter --version

Flutter 1.23.0-18.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 198df796aa (3 weeks ago) • 2020-10-15 12:04:33 -0700
Engine • revision 1d12d82d9c
Tools • Dart 2.11.0 (build 2.11.0-213.1.beta)

$ flutter run --dds-port 8888 --disable-service-auth-codes

Launching lib/main.dart on iPhone 8 Plus in debug mode...

Running Xcode build...
 └─Compiling, linking and signing...                         4.6s
Xcode build done.                                            9.9s
Waiting for iPhone 8 Plus to report its views...                     5ms
Syncing files to device iPhone 8 Plus...                            49ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h Repeat this help message.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
An Observatory debugger and profiler on iPhone 8 Plus is available at: http://<IP_ADDRESS>:8888/

But even if this is done, there is still the problem of not being able to do integration testing in a stable channel...

This is a regression. The introduction of dds should not have stopped observatory port from working, but I think this was lost in the weeds when dds was switched from a wrapper to an interceptor? I'm not quite sure.
FYI @bkonyi

I cannot repro the regression in 1.22.3 with the flutter-tester device - its possible that there is an issue with the fallback strategy with mDNS/fallback strategy should be removed now. FYI @jmagman

@jonahwilliams this is WAI. --observatory-port is setting the port for the VM service, not DDS, and we need to be able to set them both separately to handle workflows over SSH. --dds-port should be used to control the port displayed by the tool and we should really encourage users to not use the --observatory-port option.

Practically everyone that is using --host-vmservice-port or --observatory-port will have there workflows broken though. Can we adjust the behavior there so it is less surprising?

We'd have to change the meaning of the options and then introduce a new option to allow for setting the VM service port itself. It's unfortunate, but we do need to be able to set both of these ports manually in some scenarios. This workflow change has already been propagated through google3 as well, so it'll be another workflow breakage if we do decide to change this.

I thought originally there was some plan to make them all copacetic, but I could be misremembering.
Can we separate out the google WFH workflow and the external workflow out a bit here? Either that or we need some breaking change comms

Bisected the stable issue to #63416, this line is missing a trailing comma:
https://github.com/flutter/flutter/pull/63416/files#diff-fbf1a86439c67e75e90a00f32fd2b789323582ced2f4f5cfea2d27a1af18aa30R427
The comma was added in #64671.
Will prep a 1.22 hotfix while we decide what to do about --dds-port and friends in the next stable.

For --dds-port, how about something like:
If both --host-vmservice-port and --dds-port are specified, use the current behavior.
if only --host-vmservice-port is specified and dds is enabled, use that for the dds port. Otherwise it acts as normal
if only --dds-port is specified, use that for the dds port.

Sure, that's an option, but that's also not terribly obvious behavior. If you think that's the least confusing behavior to implement then SGTM.

That gives us a chance to go through a deprecation process for the existing arguments. I agree its not the best end state

Sure, sounds good.

Do you have time to take a look at this in the next week or so?

Cherry-pick request is for https://github.com/flutter/flutter/pull/70325 and the originator's report of this failing on stable.
@bkonyi @jonahwilliams Let's take the wider dds flag discussion to https://github.com/flutter/flutter/issues/70332.

Fixed with https://github.com/flutter/flutter/pull/70325, available on 1.22.4 stable.


Submit mini-bio to SC repo - Anna

In addition to posting mini-bios here, we also need to submit them to SC repo via a pull request as follows:
"People who wish to teach Software Carpentry must submit a small pull request to a specified GitHub repository. Your pull request should contain one file (and one file only) called "your_name.txt" (e.g., marie_curie.txt or alan_turing.txt). This file should contain a sentence or two that describes the type of work you do. You will submit the name of this file as part of your application.

@annakrystalli, looks like you've done this in your fork — don't forget to make a pull request.

Done in https://github.com/swcarpentry/training-prep-2015-09/pulls/annakrystalli


usemin block build is not working when src attribute have space.

It means
<!-- build:js scripts/vendor/my.js -->
<script src='my.js'></script>
<!-- endbuild -->

works, but
<!-- build:js scripts/vendor/my.js -->
<script src ='my.js'></script>
<!-- endbuild -->

or
<!-- build:js scripts/vendor/my.js -->
<script src= 'my.js'></script>
<!-- endbuild -->

doesn.t.
is this bug?

Already fixed by https://github.com/yeoman/grunt-usemin/commit/39cc8c854e387d6de930e91f2ebfb49f1a9ee5d5

thanks :)


Feature | Ability to add a cover image to an article

When?

User writes a new article.
User edits an existing article.

What?

User should be able to add a cover image to the article.

Challenge:

How to persist images in the backend ?

Sure, please discuss your approach here before starting dev

@RahulSingh9131 - This has been assigned to you. Would be grateful if could estimate the timeline for this one and share it.

i saw this now , sure i will share my approach and tell the timeline for completing it.

A fixed w:h ratio with object cover property. Image drap and deop or select and stored in cloudinary or aws s3, generated link is got and rendered.

@techypants did you already fixed this issue?

no not yet, suggested a method

ok thanks, i will try this

@aadeshkulkarni  hey i went ahead and added cloudinary for the image upload feature, and also added coverImage field in the Post collection ,after running migartion command for the prisma i am getting this error on terminal, do i need to add DATABASE_URL in .env.example file to solve this issue?

@aadeshkulkarni hey i went ahead and added cloudinary for the image upload feature, and also added coverImage field in the Post collection ,after running migartion command for the prisma i am getting this error on terminal, do i need to add DATABASE_URL in .env.example file to solve this issue?

Yes.
You would need to create 2 things to use prisma/backend in your local system correctly:

Prisma connection string, (you can get one easily from aiven.io, which will be stored in .env as DATABASE_URL)
Prisma connection pool connection string.  ( you can get one easily from https://www.prisma.io/data-platform/accelerate , which will be stored in wrangler.toml file's DATABASE_URL

Also make sure your ./frontend/src/config.ts's BACKEND_URL is pointing to http://localhost:8787

@aadeshkulkarni i have added the DATABASE_URL from aiven.io and also update wrangler.toml file with prisma connection string, but still i am getting erros on console while trying to run prima migrate cmd. i am getting confused in enabling this.

@RahulSingh9131 -  You are editing .env.example file, instead of .env.
The .env file needs to be created using .env.example as reference point.

@RahulSingh9131  - Any update on this ?
Contributing doc


Cases to add to integration tests

E01 disk image
HFS disk
UDF disk

Need to find generic disk images that can be hosted on Github repo for these


Nested Refresh

allow to enable nested refresh (optional, because expensive) on the Python side.

[ ] JavaScript

Pull Request Test Coverage Report for Build<PHONE_NUMBER>0
Details

32 of 46 (69.57%)  changed or added relevant lines in 2 files are covered.
3 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.5%) to 91.784%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

znsocket/objects/init.py
28
42
66.67%

Files with Coverage Reduction
New Missed Lines
%

znsocket/client.py
1
82.8%

znsocket/abc.py
2
91.67%

Totals

Change from base Build<PHONE_NUMBER>4:
-0.5%

Covered Lines:
715

Relevant Lines:
779

💛  - Coveralls


Handle video uploaded on site

Hi everyone!
How to add support of uploaded video files?

Hi @s-y,
Our recommended way of including video on Wagtail sites is to host the video on an external service such as Youtube or Vimeo, and then use Wagtail's 'embeds' feature to include it based on its URL - either within a rich text area, or using the |embed template filter (see https://github.com/torchbox/wagtaildemo/blob/master/demo/templates/demo/includes/carousel.html for example).
It's unlikely that we will ever implement direct video uploading within Wagtail - it would be a huge amount of work to support all the features that people expect from a video hosting platform (friendly uploading with progress bar, format conversion, multiple quality settings, creating preview images...), it would require extra setup work when hosting a site, and it's not clear what advantages it would give over using an external service. However, we would certainly be open to someone else implementing this as a third-party add-on to Wagtail.

I have a question related with this, two in fact.
How is the url format for embed youtube video? i try put a lot of link but say me that the url embed is no correct format.
Second, do you see django-embed-video? I don't know if have the same functionality, but, has some embed video tags very useful.
Thank you.

Hi @SalahAdDin - please use the mailing list for support queries.


Very slow when the server is ran on the same NAS

When I run the basicBot.py on synology itself it eats up a lot of I/O waiting and my NAS is lagging enormously. I did not change anything in the settings.py, I use all entries as they are by default, can it be that I miss some configurations?

Are you sure that it takes up a lot of I/O? It may be slow, and sometimes even fail to connect to the openai api, but not because there is problem on the server side; it is slow usually due to the Internet connection issue.

Indeed. The problem is in the chat app. It takes a lot of time to start up and process the requests. I guess my NAS is slow in general.

Indeed. The problem is in the chat app. It takes a lot of time to start up and process the requests. I guess my NAS is slow in general.

I don’t see a reason why this might be the case given that you are using the basicBot. What the basicBot does is simply sending a request to the openai and get the response…


Thumbnail look up order

This change adds support for Page.Params.Resources lookups of image type by matching feature, cover, thumbnail in that priority.
The current implementation only supports Page.Params.Images, and this will be the default if it already exists to avoid breaking changes.
This is necessary due to the internal opengraph template not producing the correct url when using Page.Params.Images, only resources seem to work. See: https://github.com/gohugoio/hugo/blob/v0.92.0/tpl/tplimpl/embedded/templates/opengraph.html#L6-L17
I am new to Hugo, and I couldn't seem to figure out how to get the current list-item.html template to work AND the opengraph template using .Page.Params.Images without making my own template, so I am forced to change my partial list-item.html.
Please let me know if you're aware of a better way.

Thanks.

Image viewer needs similar logic.

Image viewer needs similar logic.

Could you please describe it in detail?

I'll try to reproduce  and send another issue/pr


bump-formula-pr doesn't update the dependencies of a Python Formula.

brew doctor output
Your system is ready to brew.

Verification

[X] My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
[X] I ran brew update twice and am still able to reproduce my issue.
[X] This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output
HOMEBREW_VERSION: 4.0.28-16-g4bbc0af
ORIGIN: https://github.com/Homebrew/brew
HEAD: 4bbc0af6935816c75e0057364a84fd7fa8de071b
Last commit: 12 hours ago
Core tap origin: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a0f35d641e6d9902872d91b1972be1986154e556
Core tap last commit: 55 minutes ago
Core tap branch: master
Core tap JSON: 08 Jul 14:45 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: dodeca-core 64-bit kabylake
Clang: 14.0.3 build 1403
Git: 2.39.2 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.88.1 => /usr/bin/curl
macOS: 13.4.1-x86_64
CLT: <IP_ADDRESS>.1.1683849156
Xcode: N/A

What were you trying to do (and why)?
brew bump-formula-pr --version 1.1.3 trzsz
What happened (include all command output)?
$ brew bump-formula-pr --version 1.1.3 trzsz

Warning: This formula has resources that may need to be updated.
==> Downloading https://files.pythonhosted.org/packages/33/14/5b54b20f4027f23c4dab039a3ac2c73df2b79039c449ebbe2903c98c20e4/trzsz-1.1.3.
Already downloaded: /Users/lonny/Library/Caches/Homebrew/downloads/1ff57f776a057e802d354f59829156dc8d126ffea07f6d3318fe3dd6796974bf--trzsz-1.1.3.tar.gz
Warning: Cannot verify integrity of '1ff57f776a057e802d354f59829156dc8d126ffea07f6d3318fe3dd6796974bf--trzsz-1.1.3.tar.gz'.
No checksum was provided.
For your reference, the checksum is:
  sha256 "4d38e35c128ef86a350bead31cc754c7bbf33ea323d8050ea7ef7d81caf9595e"
==> replace /^  revision \d+\n(\n(  head "))?/m with "\\2"
==> replace /https:\/\/files\.pythonhosted\.org\/packages\/0c\/e5\/00c95527d18445cbd3b3b2c5c28a383c94c9ac5291e886796004727b25aa\/trzsz\
==> replace "dfc9606fb7ae76490c8559ec297b307a788688351ab57108f6a733105b206052" with "4d38e35c128ef86a350bead31cc754c7bbf33ea323d8050ea7
==> Retrieving PyPI dependencies for "trzsz==1.1.2 trzsz-iterm2"...
==> Getting PyPI info for "iterm2==2.7"
==> Getting PyPI info for "trzsz-iterm2==1.1.2"
==> Getting PyPI info for "trzsz-libs==1.1.2"
==> Getting PyPI info for "trzsz-svr==1.1.2"
==> Getting PyPI info for "websockets==11.0.3"
==> Updating resource blocks
M	Formula/trzsz.rb
Switched to a new branch 'bump-trzsz-1.1.3'
[bump-trzsz-1.1.3 667767c79ad] trzsz 1.1.3
 1 file changed, 4 insertions(+), 5 deletions(-)

What did you expect to happen?
==> Getting PyPI info for "trzsz-iterm2==1.1.3"
==> Getting PyPI info for "trzsz-libs==1.1.3"
==> Getting PyPI info for "trzsz-svr==1.1.3"

Step-by-step reproduction instructions (by running brew commands)
`brew bump-formula-pr --version 1.1.3 trzsz`

@dtrodrigues Thanks for https://github.com/Homebrew/homebrew-core/pull/136141

@woodruffw @dtrodrigues etc.: any elaboration/thoughts here?

Hmm, this is strange: bump-formula-pr should be updating PyPI dependencies. I can look into this today.

Oh, I see what's happening: for some reason update_python_resources! is performing the resolution with the old package version, not the new one. I'll try and root cause that now.

@lonnywong does the behavior change at all if you explicitly pass --python-package-name=...? I'll be able to test on my own when I'm in front of a Mac, but my current hypothesis is that we're not respecting the version override on PyPI packages that are initialized from URLs.

@woodruffw The version if trzsz is v1.1.3 now. I don’t know how to reproduce it.  I can test it about 14 hours later.

You could try with another package that needs upgrading, but no worries if you can't find one or don't have the time.


Document that (Un)Select From List need to use new Wait Until Page Loaded keyword if waiting page load needed

Originally submitted to Google Code by katiyar.... on 11 Oct 2010

We have "and wait" options for
<Select ALL from List> and also for
<Select Radio button>,
why not to implement for <Select from List> as well. I need this to be used in my project.
Additional discussion points are available here
http://groups.google.com/group/robotframework-users/browse_thread/thread/469927c679c24ca3?hl=en#

Originally submitted to Google Code by spielman... on 28 Oct 2010

select_from_list takes *values as the last argument, so adding wait after *values isn't possible. Any idea of a different way that is still elegant? This might work:
def select_from_list_and_wait(self, locator, *values):
self.select_from_list(locator, values)
self._wait_for_page_to_load()
but it would be a new keyword.

Originally submitted to Google Code by @pekkaklarck on 29 Oct 2010

I don't think adding a new keyword for this rare use case is a good idea. There are two other solutions:

Make it so that if the last entry in *values is certain string (e.g. 'and wait for page to load') the keyword will wait. Otherwise it will consider all *values as values to select and won't wait.

Decide not to implement waiting support into this keyword. We could then instead implement Wait For Page To Load keyword (that would probably be a good idea anyway) and tell in the doc of Select From List to use that if waiting is needed.

Originally submitted to Google Code by @pekkaklarck on 29 Oct 2010

I'm starting to think that the option 2) above is better. I already submitted  issue 146  about adding Wait For Page To Load keyword.

Originally submitted to Google Code by @yanne on 11 Nov 2010

We decided not to implement new keyword for this. Instead Wait Until Page Loaded -keyword ( issue 146 ) will be implemented.

Originally submitted to Google Code by @pekkaklarck on 13 Nov 2010

I added a note that the new Wait Until Page Loaded must be used if waiting for page load is needed for both Select From List and Unselect From List.


Deploy an Instance of TQF on Linode

The app in its current state has been deployed here: http://<IP_ADDRESS>/app


thprac says "network error" when i press "check for updates"

though it could be roskomnadzor blocking random stuff as usual

This is a problem even with old thprac on any Windows version older than 10

bruh


Linux build support

I started doing this but i figured it'd be a good idea to ask here before I get too deep in it. Are there any plans to support Linux as an official build target? I'm working slowly on my fork and I've finally got metadesk kinda running (tho it's still segfaulting) so I'm happy to make a PR if/when I get it fully running.

The readme states

The RAD Debugger is a native, user-mode, multi-process, graphical debugger. It currently only supports local-machine Windows x64 debugging with PDBs, with plans to expand and port in the future. In the future we'll expand to also support native Linux debugging and DWARF debug info.

Yeah, Linux support is the next big thing on our roadmap after the initial alpha phase of testing, bullet-proofing, & cleanup on the Windows side.
Getting the metaprogram running on Linux (and getting a build.sh which can build things in the same way as the build.bat) would be a great first step; this is only held back currently by the staleness of the Linux backend implementation in os/core/linux. That should implement the same API as the implementation in os/core/win32. Then, it needs to be duplicated in the metagen layer (which has a separate, older copy of the OS layer, to prevent being destabilized from changes in the main codebase OS layer). At that point, the metaprogram should be up and running on Linux.

@ErrorOnUsername My guess of the segfault on your branch (without testing anything) is
https://github.com/ErrorOnUsername/raddebugger/commit/fc0c2143ddfd7e6b1414ce12793e0b23c7321f62#diff-e597e9a7df6027bc72185929f8885b87010da6a82543afeadd49170b4bee437dL902
returns 0 may cause some other code not allocating/reserving memory correctly.

would it still be using that even though os_large_pages_enabled returns false?

Small update: I was able to get metagen running and I added a build.sh! I'm fairly certain that segfault was just some weird difference in the process memory layout on linux, but I'm not 100% on that.

Could these changes be upstreamed? I've been working on a linux port as well for fun/learning, but if it would benefit the project it could make sense to consolidate the different efforts. But if rad is just working on their own port internally, that makes sense too.

We'll be carefully putting together the Linux port a bit later, but honestly the more research & reference implementations we have that do working Linux ports of parts of the codebase, the better, because such things can come in handy when we're doing the "official" one later, so any work that is spent doing such things will be greatly appreciated & will not go to waste (although I think many things have to be solidified & made more robust before we start having actual ports formally coming into the codebase).
Given that this is a highly-anticipated part of the project, I've outlined the main porting tasks that are necessary for local x64 Linux debugging here.

Closing this, since it's a future feature.


Admin panel not updating

Not updating every 15 seconds.

@JohanWinther
It should be fixed in the latest push, it did somehow request an update but fail it.
Please close it if it works!


Add Kaliber

Hi!
I'd like to add a scss framework I've been working on, hope you like it!

Kaliber is a tiny(~6Kb Gzipped) but powerful CSS (no js) framework based on flexbox. Built with modern browsers in mind and with the idea of being an easy-to-use, easy-to-understand css framework for the developer who needs a minimalistic, lightweight but extremely powerful css framework.

Repo:
https://github.com/robbinfellow/kaliber
Website:
https://robbinfellow.github.io/kaliber/

Looks good, Robbin.
Kaliber to the rescue!


Update package version

3.0.0-alpha.12 (2023-10-12)
Bug Fixes

workspace: update post script (fc4c26d)

:tada: This PR is included in version 1.1.0-alpha.8 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.1.0-alpha.8 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.1.0-alpha.8 :tada:
The release is available on npm package (@alpha dist-tag)
Your semantic-release bot :package::rocket:


Also, the manual change of scaling with range e.g $NAMESPACE/$SERVICE=1-5 causes for downscaling to 0 scale.

@harutyundermenjyan yes it will also be fixed in the pull request.

Fixed in v0.3.1-rc1.


feat(boilerplate) @shopify/flash-list integration

Please verify the following:

[x] yarn test jest tests pass with new tests, if relevant
[x] README.md has been updated with your changes, if relevant

Describe your PR
This integrates @shopify/flash-list in all places where we used to have a react-native FlatList and updates the expo to compatibility object to use the correct expected version while using the latest for expo prebuild and bare workflows.
Once Ignite 9.0 is released, we should delete the ignite-cookbook recipe for FlashList.

I'm going to merge this into @next. We really like FlashList for use in client projects but there are a few issues that we've tried to mitigate here:

FlashList doesn't support the new architecture (fabric) yet. I have an open PR that rewrites CellContainer and AutoLayoutView to be compatible with Fabric. For now, if you choose to enable the new architecture and use FlashList, things may be wonky (especially on iOS. Android didn't have as many problems in my testing)
There are issues with RTL language support in FlashList. To mitigate this, we've created a higher order component in ignite called ListView that will detect the user's preferred language and use FlatList if the language is RTL, otherwise it uses FlashList


[duilib] Windows arm/arm64 support

Note:
The original port is poorly written... Like deleting the upstream CMakeList.txt and copy a new one just to change one thing. All things like these are moved into patches.
Also, the upstream code is in GBK encoding (CP936), so force VC to use that in order to avoid errors.

Thanks for enabling this port on arm64-windows, @driver1998!


diskDriver causing issues on Windows 10

By attemping to run a Gaia server on Windows 10 machine with default config.json (copy of config.sample.disk.json) following error shows up:
src\server\server.js -> lib\server\server.js
"function":"Module._load","line":489,"method":"_load","native":false}],"stack":["Error: UNKNOWN: unknown error, lstat '\\\\Users\\home\\'","    at Object.fs.lstatSync (fs.js:941:11)","    at DiskDriver.mkdirs (C:\\Users\\home\\dev\\gaia\\hub\\lib\\server\\drivers\\diskDriver.js:56:39)","    at new DiskDriver (C:\\Users\\home\\dev\\gaia\\hub\\lib\\server\\drivers\\diskDriver.js:41:10)","    at makeHttpServer (C:\\Users\\home\\dev\\gaia\\hub\\lib\\server\\http.js:51:14)","    at Object.<anonymous> (C:\\Users\\home\\dev\\gaia\\hub\\lib\\index.js:15:36)","    at Module._compile (module.js:635:30)","    at Object.Module._extensions..js (module.js:646:10)","    at Module.load (module.js:554:32)","    at tryModuleLoad (module.js:497:12)","    at Function.Module._load (module.js:489:3)"],"level":"error","message":"uncaughtException: UNKNOWN: unknown error, lstat '\\\\Users\\home\\'","timestamp":"2018-07-21T08:04:56.676Z"
Tried creating the /tmp/gaia-data folder on main drive manually, that did not seem to help. Neither did changing paths in config.json have any positive results, always ending up with the same error, but with different paths.
Mac OS did not seem to have this issue, I'm not sure if Gaia server is even supposed to run on Windows, if not it would be a good idea to mention that in README file.

Hi @sortofdev -- the gaia disk driver does indeed require a *nix filesystem interface. Will add a note to the readme to indicate such

Should we re-open this issue so its a bit more on the radar for us?
I'm assuming most devs who pull Gaia for local dev/testing use the disk driver? If so it seems like this issue would be excluding most Windows devs?

In theory I'm in support of getting the driver to work on Windows, though I'm not sure how much work it'd take? Perhaps @kantai has the best idea

Sounds good, I'd say forge ahead then.

It is likely this was fixed with changes from around a year ago, but hasn't been tested.
Closing this issue due to lack of activity. Please feel free to comment if this should be re-opened.


Add additional content to index.html

Add additional context to the page:

skills,
languages,
experiences

Nice


problem

there is problem with installation i tried with panel cpanel and linux ubuntu 18.04 but it dont working i tried every way but it dont working any one help me to manage in video tutorial ??
it would b great
thanks you

Can you please share some of the errors you are facing? Or any logs? This will help us troubleshoot :)

i tried to copy files in root folder and then installed apache 2,php 7.1
and then install mysql data base
and every thing is fine but when i run the comands to install it
they key generate dont working
then files dont working
if you have a video tutorial can you please give me so i can see it
On Tue, May 14, 2019 at 10:37 PM myrsk<EMAIL_ADDRESS>wrote:

Can you please share some of the errors you are facing? Or any logs? This
will help us troubleshoot :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/myrsk/vmdash/issues/6?email_source=notifications&email_token=AMCHHW3UJIFOLDVMPNNA5FTPVL2FZA5CNFSM4HMZH7H2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVMHGJA#issuecomment-492335908,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMCHHW7AEOHUHD4T4USLVL3PVL2FZANCNFSM4HMZH7HQ
.

i tried to copy files in root folder and then installed apache 2,php 7.1 and then install mysql data base
and every thing is fine but when i run the comands to install it
they key generate dont working
then files dont working
if you have a video tutorial can you please give me so i can see it
or please explaing it some more so i can understand the terms
thanks you


Chunk loader + RFTools dimension = Server thread overloading?

I was in a single player world. Having a solar evaporation plant from mekanism for my reactor and other things. I decided to chunk load the area with dimensional anchors. Problem is, the log starts spamming with server overloaded warnings and breaking blocks takes AGES when I WASN'T inside the RFTools dimension. I typed "/cofh tps" to see which dimension is having lag issues and it is exactly the flat desert world that I created. It dropped down to 4.16 tick/s (Normally should be 20 tick/s). I don't know what caused it though.

Can you see if this also happens with other chunkloaders?

I just tired with MFR's chunk loader. Nope. I think last time I logged off inside a RFTools dimenion and when I came back, the game dropped to 0 fps and I have no clue what happened. Absolute insane lag. I was forced to MCEdit myself back to the overworld. Then, this issue happened. I will try to make another dimension and see if this issue is still happening.

I think I messed up that RFTools dimension beacuse of that crash. It amazingly chunk load ITSELF without a chunk loader in the world.

That doesn't seem possible. How do you know that it is chunkloading itself?

I am not 100% sure that it is chunk loading, but here's what the "/cofh tps" output as.
Overall: 0.92 TPS/1084.22MS (4%)
Overworld [0]: 20.00 TPS/11.88MS (100%)
Nether [-1]: 20.00 TPS/0.05MS (100%)
Underdark [-100]: 20.00 TPS/0.08MS (100%)
Spirit World [-37]: 20.00 TPS/0.03MS (100%)
Torment [-38]: 20.00 TPS/0.03MS (100%)
Mirror [-39]: 20.00 TPS/0.02MS (100%)
rftools dimension [11]: 0.97 TPS/1028.87MS (4%)
The Last Millenium [-112]: 20.00 TPS/0.23MS (100%)
Twilight Forest [7]: 20.00 TPS/0.04MS (100%)
Mining World [6]: 20.00 TPS/49.11MS (100%)
I got 5 RFTools (id 11-15) dimensions and only id 11 is on the list, but that was just my assmption.
Should I delete all the data inside that dimension and see if that solves it?

Hmm perhaps. What exaclty is in that dimension?

That was just a desert flat world full of marble from chisel

It might also be a compatability issue with Chisel as well

it disappears from the list when I was in the overworld

All that means is that (more then likely) the RFTools dimension you created just got unloaded - which is good server wise.  But if you build all of those Mekanism devices and structures you will need to keep those areas chunk loaded.

The thing is. Whenever I tried to dial my transmitter to that RFTools dimension. Forge automatically chunk load(probably it chunk loaded a bad chunk?) that dimension. I have removed all chunk loaders(I originally used dimensional anchors to chunk load a 5x5 chunk area) in that area. I'm gonna just adbandon that glitched dimension and make a new one, but using cobblestone as the material.

Whats the CPU speed (and cores), and the amount of ram you have allocated to the forge server instance?
Low TPS (usually) means not enough server resources assigned.

I am pretty sure that was not lag. I abandoned the world and it has no lag at all. But here are the specs.
Intel i3-2130 3.30 GHz
1.5 GB RAM allocated (I only got 4 GB in my computer. That is the maxmium I can put)
Using the lastest version of Java 7.

1.5GB ram is really very low for modded MC. Not much that can be done about this from RFTools point of view.


Isolate asset path methods

This moves asset path methods out of Config and into their own AssetPath class.
This is dependent upon #700. It was branched off of that branch.

This is another small refactor that I think stands alone very well. Let me know what you think!

This is based off of #700 so the conflicts are due to that. They should resolve once #700 is merged.

See: https://github.com/tmuxinator/tmuxinator/pull/700#issuecomment-489096929


Fix lint issues in the code and remove the eslint comments

some can be found here:
❯ rg "// eslint"
test/openshift-client-test.js
249:  // eslint-disable-next-line n/no-path-concat
276:  // eslint-disable-next-line n/no-path-concat

test/basic-auth-request-test.js
134:      // eslint-disable-next-line n/no-callback-literal
257:      // eslint-disable-next-line n/no-callback-literal

test/authorization-server-request-test.js
130:      // eslint-disable-next-line n/no-callback-literal

test/binary-build-test.js
28:  // eslint-disable-next-line n/no-path-concat

Hey @helio-frota !
So we have to get it removed from all the JS files right ?

hi @Pathholder1806
Yeah that means to remove the comment by fixing the code, in case eslint warns or shows errors.

I saw that you sent some PRs but for example I removed one line
and when running the tests, eslint shows the error
❯ npm t

><EMAIL_ADDRESS>pretest /home/lm/code/openshift-rest-client
> eslint --ignore-path .gitignore .

/home/lm/code/openshift-rest-client/test/basic-auth-request-test.js
  134:14  error  Unexpected literal in error position of callback  n/no-callback-literal

✖ 1 problem (1 error, 0 warnings)

npm ERR! Test failed.  See above for more details.

I think this issue can also be done in a single PR

Looking at this specific case ^
That can be solved like this:
const message = { message: 'Error' };
return cb(message, {});

Thanks for the initiative :+1:
I have updated the title to be more clear.

I noticed that the repository is missing the contributing guide so you can take a look here https://github.com/nodeshift/openshift-rest-client/pull/318 for details.
for example when you run npm install and then npm test you can see the lint running.

Hey @helio-frota
I have closed all the previous PRs and I'll be taking a closer look to the problem.

Hey @helio-frota
I have just checked that in my local....all the test cases are passing

Hey @helio-frota
I have generated the new PR. Kindly review it!🙂

thank you for the contribution!
landed here https://github.com/nodeshift/openshift-rest-client/commit/7467bf4abea27e5fe51f410db72ba5d8ccf8e4bb


fix: Clean up home page

This PR adds the classes and menu button to the home page and removes a call to getServerSideProps() that was unneccessary.
Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)

looks good.


escaping all responses even if I declare it safe

I'm trying to return javascript content, but it seems everything get's escaped even if I say its html_safe
post do
  content_type 'application/javascript'
  body "<script type=\"application/javascript\">alert('hello');</script>".html_safe
end

Is there a way to return straight html or in this case javascript?

never mind, found the solution by setting the api.format to binary:
env['api.format'] = :binary


Don't use /dev/random for entropy in SecureRandom usage

/dev/random is blocking in linux, which can cause delays in function usage
https://www.baeldung.com/java-security-egd

I've pushed a meta-buildpack with this change here: https://hub.docker.com/r/hone/java-function. I was able to test it locally with pack and boots a function fine at least. :)

Also, it looks like the JVM buildpack already provides a way to customise JAVA_OPTS - so end users can configure this themselves if needed:
https://github.com/heroku/buildpacks-jvm/blob/764540edbdd0216997d38a4e64361b2b8da7896d/buildpacks/jvm/opt/jvmcommon.sh#L43-L54


Log final result of Keystore/Truststore loading

Describe the bug
Currently, the connector log is not crystal clear about which keystore/truststore was successfully (or not) loaded.
Please improve this :)
To Reproduce
Steps to reproduce the behavior:

use docker container
inject keystore/truststore

Expected behavior
A clear log entry showing success or failure of loading Keystore and Truststore.
Preferably on the same log level (with log statements as begin/end brackets for this complex operation).
Screenshots & Logs

INFO - Initializing KeyStoreManager
INFO - Searching for keystore file file:///var/run/certs/keystore.p12
INFO - Relative Path: var/run/certs/keystore.p12
WARN - Could not load keystore from classpath, trying to find it at system scope!
INFO - System Path: /var/run/certs/keystore.p12
INFO - Searching for keystore file file:///var/run/certs/truststore.p12
INFO - Relative Path: var/run/certs/truststore.p12
WARN - Could not load keystore from classpath, trying to find it at system scope!
INFO - System Path: /var/run/certs/truststore.p12
INFO - Trustmanager loaded

Desktop (please complete the following information):

Version (DSC) v6.1.0

Thanks for the feedback!

We have restructured the logs for the INFO/WARNING-level. The process including loading the configuration is now reduced to the following messages. The following messages will replace those shown above. Would be included in the next IDS messaging services release:


Feature request: blame current line

It would be nice to have a command to show the commit (commit message and diff) that was responsible for the current line according to git blame.

https://github.com/divmain/GitSavvy/blob/master/docs/history.md#git-blame-current-file
I you are in Git Blame and press SUPER-Enter (CTRL-Enter in Windows)  you will open the commit

close this one? @divmain


Does not accept personal data

Subject: Does not accept personal data
Description:
I did not do any thing
Results:
I want to enter the account data, but it is refused
Backend version: develop-d6739683
Frontend version:
User Agent: Mozilla/5.0 (Linux; Android 13; SM-A035F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Mobile Safari/537.36
Page: https://couchers.org/profile/edit/about
User: araby123 (25114)

don't understand


Block data

I think we are missing these fields from the Block data item returned by the API and that each block has this data. It is required for explorer.

ATX ID - the id of the ATX that made the smesher who submitted the block eligible to submit it. I think it is referenced from every block.
Smesher ID - the id of the smesher who submitted that block. It can be obtained from the ATX identified by ATX ID as well.

@lrettig @noamnelke - am I missing something here?

Duplicate of #113, let's discuss there


Carousel Item Wrongly showed other Section of Carousel While Swipe down on RefreshView

Hi .. I am Uday
Carousel View Working Fine on Both device
i just Display the Section Based Content in Carousel inner of CollectionView
When try to Refresh the Collection View it content wrongly showed other section of carousel view
it updated Proper content  after Few Second

Hello Uday, unfortunately, I can't help you without a reproduction sample and video.

Hi @AndreiMisiukevich ... Here i Attached Reference Image .
i showed Multiple Carousel in Single Page. It Properly Showed Under Section But Frame Content Wrongly Showed Other Section Content When i Refresh the Collection View

@AndreiMisiukevich Also It Working Fine on Emulator and simulator But Issue on Deployment

Hm, that's weird. If it works fine on iOS simulator then it should on real Device.
Can it be some Xamarin bug?
Can you try to run the app on real device with linter disabled?

Looks like collection view reorders items for a while.
We don't control this process from collection view

so how to cache clear on collectionView

I propose to fully recreate items source

Sorry .i couldn't understood . Can u explain briefly?

While Refresh the View What i do to ?
i am Using Observable Collection for DataBinding
CollView.ItemSource = RefreshData.ToList()

What is inside RefreshData?
Views or just items?
I mean, do you use ItemTemplate? Or add views directly to itemssource?
Also, you can try something so hacky.
Using code behind, remove your collection view from page and then add it again (on refresh). Or optionally recreate a new instance of collection view

i am using item Template and Data assign Using itemsource directly from c# Like below Mentioned
XAML :

<CollectionView.ItemTemplate>

cards:CarouselView/

</CollectionView.ItemTemplate>

C# :
CollView.ItemSource = RefreshData.ToList()

@AndreiMisiukevich can u have sample for ",remove your collection view from page and then add it again (on refresh). Or optionally recreate a new instance of collection view" ?

Hi @AndreiMisiukevich
i think its not collection view problem because Issue When i Scrolldown to bottom these way also occur same issue
something wrong on carousel

@UdayaDevConsole https://github.com/xamarin/Xamarin.Forms/issues/13045
it can be collectionview recycling issue
Try to change collectionview to listview and set strategy to retain element instead recycling


isochrone returns 2d and 3d coordinates mixed

config enables elevation (CGIAR) then this request:

/isochrone?point=24.982444,55.133875&time_limit=900&buckets=3&vehicle=bike2

returns response with 2D coordinates in last bucket.
Also the parameter elevation=false/true does not seem to work for /isochrone

Oh, that's not elevation. /isochrone does not use elevation.
I wasn't even aware a z coordinate is in there. I think it comes out of the triangulation, and it's the z-value we are getting the isoline for. (Time or distance). So it would be the same in every bucket if it were a perfect isoline.
We should probably throw it out.

Fixed by 6a7d45a

Cool, thanks!


Update mlx package deps

Change to format of the requirements.txt file to match the exact package versions being shipped by LM Studio.
Note that mlx, mlx_lm, torch, and transformers versions are upgraded.

Now also bringing in a mlx-vlm upgrade which fixes #27. I updated the description too.


add RECOMB 2017 poster on "Decentralized indexes for public genomic data"

I presented this poster last year at RECOMB 2017, not sure if articles is the best category but the other ones seems even less appropriate 😆

Maybe this requires a different Category... but it LGTM 👍


[Request] Add Cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools. Cocos2d-x does not have a graphical interface and allows you to create games projects for IDE's on this engine through console commands.

FYI:
{
    "homepage": "http://www.cocos2d-x.org",
    "description": "Cocos2d-x is a suite of open-source, cross-platform, game-development tools used by millions of developers all over the world.",
    "version": "3.17",
    "license": "MIT",
    "url": "http://download.cocos.com/Cocos2D-X/cocos2d-x-3.17.zip",
    "hash": "3cb45f629dda174ab47d083f6818827f58bea194d65c753d60dceed2cbbcedd0",
    "extract_dir": "cocos2d-x-3.17",
    "suggest": {
        "Python2": [
            "versions/python27"
        ]
    },
    "checkver": {
        "url": "http://www.cocos2d-x.org/download",
        "re": ">Download ([\\d.]+)</a>"
    },
    "autoupdate": {
        "url": "http://download.cocos.com/Cocos2D-X/cocos2d-x-$version.zip",
        "extract_dir": "cocos2d-x-$version"
    },
    "notes": "Scoop didn't run setup.py script of cocos2d-x, you have to do it mannually to finish the installation."
}

@h404bi, can you make pull request?

I don't know, just considering this should be in the extras bucket.

You’re right, if it’s CLI, it should live in main. Right @r15ch13?

@h404bi, seems like @r15ch13 confirmed it. I think you should make a pull request.

This issue belongs in the Main bucket. Unfortunately, we cannot move this issue on this end, so it is being closed.
If this is still an issue, please create a new issue in the Main bucket via https://github.com/ScoopInstaller/Main/issues/new?body=Moved+from+https%3A%2F%2Fgithub.com%2Flukesampson%2Fscoop%2Fissues%2F2421


npm run build-languages

Should be enough to follow light build directions without installing highlight.js. #68
I didn't check in the build artifacts to make the PR cleaner.

@forresto can you push the AVAILABLE_LANGUAGES.md file?

Should be good now.


Error During Installation

Hello,
I'm trying to deploy Inventree. I'd followed all steps from here: https://inventree.readthedocs.io/en/latest/start/install/ and it give me that error when doing: invoke update
Traceback (most recent call last):
  File "/mnt/disk/inventree/src/InvenTree/manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/mnt/disk/inventree/env/lib/python3.10/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/mnt/disk/inventree/env/lib/python3.10/site-packages/django/core/management/__init__.py", line 363, in execute
    settings.INSTALLED_APPS
  File "/mnt/disk/inventree/env/lib/python3.10/site-packages/django/conf/__init__.py", line 82, in __getattr__
    self._setup(name)
  File "/mnt/disk/inventree/env/lib/python3.10/site-packages/django/conf/__init__.py", line 69, in _setup
    self._wrapped = Settings(settings_module)
  File "/mnt/disk/inventree/env/lib/python3.10/site-packages/django/conf/__init__.py", line 170, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/mnt/disk/inventree/src/InvenTree/InvenTree/settings.py", line 86, in <module>
    STATIC_ROOT = config.get_static_dir()
  File "/mnt/disk/inventree/src/InvenTree/InvenTree/config.py", line 133, in get_static_dir
    raise FileNotFoundError('INVENTREE_STATIC_ROOT not specified')
FileNotFoundError: INVENTREE_STATIC_ROOT not specified

What I need to do to make it work?
Thank-you,
Guillaume

Please see the docs here - https://inventree.readthedocs.io/en/latest/start/config/#static-file-storage - you need to provide a location for the server to place static files
Also see https://inventree.readthedocs.io/en/latest/start/config/#uploaded-file-storage for INVENTREE_MEDIA_ROOT

Hello,
I just provide the location for static files and the media root in /mnt/disk/inventree/src/InvenTree/config.yaml and when sending invoke server it return this:
`(env) root@inventory-dc:/mnt/disk/inventree/src# invoke server
Traceback (most recent call last):
File "/mnt/disk/inventree/src/InvenTree/manage.py", line 9, in
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/disk/inventree/src/InvenTree/manage.py", line 15, in
import django  # noqa: F401
ModuleNotFoundError: No module named 'django'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/mnt/disk/inventree/src/InvenTree/manage.py", line 17, in
raise ImportError(
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?`
Did you forget to activate a virtual environment? It sent python3 -m venv env source ./env/bin/activate and (env) is the prompt prefix.
Is I forget something?
Best regards,
Guillaume

@guillaumesoucy94 please check if you installed into this directory / env with inv update. From the error message it does not seem like that.


requests: fail on error, recursive flush

Fails requests on a write error
Adds handling for recursively flushing after the upload queue is empty

(Also snuck in a core bump, yolo)


Fix broken links in Intellisense

When I click the link in the website it leads to a 404 page. I am not
entirely sure why it has that URL. I inspected older commits and it
seems as though it has never been named text-mode/docs/intro.md two
directories up from ./intellisense.

Nice fix


WebSockets Support is poorly documented

What version of Traefik are you using (traefik version)?
1.1.2 (camembert)
What is your environment & configuration (arguments, toml...)?
Simple websocket backend with SSL frontend
What did you do?
Tried to find out how to configure WS in Traefik.
What did you expect to see?
Some document stating how WS support works in Traefik.
What did you see instead?
Googled and found a Github issue that described no special configuration was needed. Spent many hours trying to figure out that.

I think the main problem is that most of us are running Traefik behind the ELB =(
ELB HTTP/S Listener doesn't support web sockets. Switching it to TCP Listener makes the magic

I'm fighting with this issues for days. Is it websockets supported by Traefik or not?
No matter what I've tried my connection fails at the handshake level.
failed: Error during WebSocket handshake: Unexpected response code: 500

Can somebody bring some clarity to this? Can we use Traefik with an http backend and websockets over http in the same time?
Thank you,

Websockets and secured Websockets are supported by Traefik.
We need to add some documentation on this part.
Come on Slack (https://traefik.herokuapp.com, https://traefik.slack.com), if you want more help from the community.

The following that I'm about to write is nothing short of alchemy and pure experimentation
To set the scene up, running a development environment on my local machine with k8s and Traefik v2.6 as the ingress controller, custom resource definitions ( CRDs ) and a bunch of services
Among those services, I am running Remix.run as my client server in development mode. In development mode, Remix.run starts a websockets server that notifies the frontend of any changes made to the file system
The websockets protocol that the frontend uses to connect to the websockets server is dependent on the protocol of the running server, i.e. https ? wss : ws, and since I run an https connection, it wss is chosen, thus the websockets server that it attempts to connect to is wss://{HOST_DOMAIN}:3001/socket
Right so, here's what I currently have, in terms of deployment descriptors
Traefik's deployment descriptor:
apiVersion: apps/v1
kind: Deployment
metadata:
  name: traefik-depl
spec:
  replicas: 1
  selector:
    matchLabels:
      app: traefik
  template:
    metadata:
      labels:
        app: traefik
    spec:
      serviceAccountName: traefik-ingress-controller
      containers:
        - name: traefik
          image: traefik:v2.6
          args:
            - --api=true
            - --api.dashboard=true

            - --accesslog

            - --entrypoints.http.address=:80
            - --entrypoints.https.address=:443

            -<EMAIL_ADDRESS>
            - --certificatesresolvers.pebble.acme.httpchallenge=true

            - --certificatesresolvers.pebble.acme.httpchallenge.entrypoint=http

            # I'm running Pebble inside my cluster to automate the certificate provisioning, development mode only

            - --certificatesresolvers.pebble.acme.caserver=https://pebble:14000/dir

            - --certificatesresolvers.pebble.acme.storage=/acme/acme.json

            - --providers.kubernetescrd
          volumeMounts:
            - name: ingress-storage
              mountPath: /acme
      volumes:
        # This is defined in a different file, it allocates space for my ACME client ( LEGO ) to store certificates
        - name: ingress-storage
          persistentVolumeClaim:
            claimName: ingress-pvc
---
apiVersion: v1
kind: Service
metadata:
  name: traefik-lb-srv
spec:
  type: LoadBalancer
  selector:
    app: traefik
  ports:
    - name: http
      protocol: TCP
      port: 80
      targetPort: 80
    - name: https
      protocol: TCP
      port: 443
      targetPort: 443
    - name: live-reload
      protocol: TCP
      #
      # Here's the kicker. Since we defined entry points for http ( :80 ) and https ( :443 )
      # we can listen for incoming traffic on port 3001 and forward that to either entrypoint (http or https) by using the targetPort
      #
      # Once it reaches those entry points, the IngressRoute comes into play. More on that below
      #
      port: 3001
      targetPort: 443
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: wss-live-reload
spec:
  entryPoints:
    # Entry point corresponding to port :443
    # Change the `targetPort` of the LoadBalancer's `live-reload` from :443 to :80 and you'll get a simple ws connection, as it will be forwarded to the :80 entry point. You will also have to adjust this IngressRoute to use the `http` entry point and remove the `tls` options
    - https
  routes:
    - match: Host(`${HOST_DOMAIN}`) && PathPrefix(`/socket`)
      kind: Rule
      services:
        - name: client-srv
          port: 3001
  tls:
    certResolver: pebble
    domains:
      - main: potato

And my client service deployment file
apiVersion: apps/v1
kind: Deployment
metadata:
  name: client-depl
spec:
  replicas: 1
  selector:
    matchLabels:
      app: client
  template:
    metadata:
      labels:
        app: client
    spec:
      automountServiceAccountToken: false
      containers:
        - name: client
          image: dimensions/client-remix
          envFrom:
            - secretRef:
                name: dotenv
            - name: REMIX_DEV_SERVER_WS_PORT
              value: "3001"
---
apiVersion: v1
kind: Service
metadata:
  name: client-srv
spec:
  type: ClusterIP
  selector:
    app: client
  ports:
    - name: client
      protocol: TCP
      port: 3000
      targetPort: 3000
    - name: client-live-reload
      protocol: TCP
      port: 3001
      targetPort: 3001

If you guys have improvements to this, or any further explanations, please post them, as I think I'm not the only one frustrated with the lack of documentation on WebSockets

Superseded by #7111


'end' key in ScrollView does not go to end - also scrolling left/right scrolls when shouldn't

This is a regression that was introduced with this change:
https://github.com/migueldeicaza/gui.cs/commit/2766af8afe86c5b948a060f56e8f5d5b825caf23#r39885851

Also, I believe, but am not 100% sure that previous to the PR referenced above if you pressed right or left arrows in CharMap it did NOT scroll right/left.
Regardless, if a ScrollView's contentSize's width is the same as the viewport, horizontal scrolling should not happen. Same for if the height is the same.

@tig the scroll by keyboard only occurs if the ScrollView's subviews can focus. The End and Home keys only works to the vertical scroll. I think it's has stopped working when you changed the ScrollView visual (to better than before :-)) putting the vertical down arrow one row up.

It's working to me.

@tig I think I was wrong, sorry.


Problems while using different dataset

Hello, I tried to adapt the code into a .ipynb so I could run isolated cells and check how the pipeline works, as I'm trying to evaluate the ENet performance over learning and predicting underwater images (SUIM Dataset, link), but I'm facing some problems.
When I run the cell for training, it throws the following error: only batches of spatial targets supported (3D tensors) but got targets of dimension: 4. Have you faced similar issue before? Any help would be greatly appreciated!
Follow code below with minor changes:
import torch.nn.functional as F
import random
import torch
import torch.nn as nn
import torch.optim as optim
import torchvision.transforms.functional as TF
import torchvision
import torchvision.transforms as transforms
import transforms as ext_transforms
import torch.optim.lr_scheduler as lr_scheduler
import os
import numpy as np
import matplotlib.pyplot as plt
import glob
from collections import OrderedDict
from torch.utils.data import Dataset, DataLoader

# ENET PYTORCH GITHUB LIBS
import utils
import tools
from PIL import Image
from enet import ENet
from iou import IoU
from train import Train
from test import Test

# Configuring images size
std_size = 256

# Setting device for torch
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")

image_transform = transforms.Compose(
    [transforms.CenterCrop((std_size, std_size)),
      transforms.ToTensor()])

label_transform = transforms.Compose([
    transforms.CenterCrop((std_size, std_size)),
    ext_transforms.PILToLongTensor()])

root_dir = '/content/drive/My Drive/Colab Notebooks'
save_dir = '/content/drive/My Drive/Colab Notebooks/save'

# Training dataset root folders
train_folder = os.path.normpath(root_dir + '/train/images')
train_lbl_folder = os.path.normpath(root_dir + '/train/masks')

# Validation dataset root folders
val_folder = os.path.normpath(root_dir + '/val/images')
val_lbl_folder = os.path.normpath(root_dir + '/val/masks')

# Test dataset root folders
test_folder = os.path.normpath(root_dir + '/test/images')
test_lbl_folder = os.path.normpath(root_dir + '/test/masks')

class CustomDataset(Dataset):
    """Custom Dataset based on CamVid dataset found on:
      https://github.com/davidtvs/PyTorch-ENet.

    Student disclaimer: most parts of this code were used and adapted
    for academic purposes only, with no commercial intents. All rights
    reserved to original author. Please refer to the url cited above.

    Keyword arguments:
    - root_dir (``string``): Root directory path.
    - mode (``string``): The type of dataset: 'train' for training set, 'val'
    for validation set, and 'test' for test set.
    - transform (``callable``, optional): A function/transform that  takes in
    an PIL image and returns a transformed version. Default: None.
    - label_transform (``callable``, optional): A function/transform that takes
    in the target and transforms it. Default: None.
    - loader (``callable``, optional): A function to load an image given its
    path. By default ``default_loader`` is used.

    """

    img_extension = '.jpg'
    label_extension = '.bmp'

    color_encoding = OrderedDict([
        ('Background', (0,0,0)),
        ('Human Divers', (0,0,255)),
        ('Aquatic Plants and Sea-Grass', (0,255,0)),
        ('Wrecks and Ruins', (0,255,255)),
        ('Robots', (255,0,0)),
        ('Reefs and Intertebrates', (255,0,255)),
        ('Fishs and Vertebrates', (255,255,0)),
        ('Sea-Floor and Rocks', (255,255,255))
    ])

    def __init__(self, mode = 'train', transform=None,
                 label_transform = None, loader = tools.pil_loader):
        self.mode = mode
        self.transform = transform
        self.label_transform = label_transform
        self.loader = loader

        if self.mode.lower() == 'train':
            # Get the training data and labels filepaths
            self.train_data = tools.get_files(
                train_folder, extension_filter=self.img_extension)

            self.train_labels = tools.get_files(
                train_lbl_folder, extension_filter=self.label_extension)

        elif self.mode.lower() == 'val':
            # Get the validation data and labels filepaths
            self.val_data = tools.get_files(
                val_folder, extension_filter=self.img_extension)

            self.val_labels = tools.get_files(
                val_lbl_folder, extension_filter=self.label_extension)

        elif self.mode.lower() == 'test':
            # Get the test data and labels filepaths
            self.test_data = tools.get_files(
                test_folder, extension_filter=self.img_extension)

            self.test_labels = tools.get_files(
                test_lbl_folder, extension_filter=self.label_extension)

        else:
            raise RuntimeError("Unexpected dataset mode. "
                               "Supported modes are: train, val and test")

    def __getitem__(self, index):

        """
        Args:
        - index (``int``): index of the item in the dataset

        Returns:
        A tuple of ``PIL.Image`` (image, label) where label is the ground-truth
        of the image.

        """
        if self.mode.lower() == 'train':
            data_path, label_path = self.train_data[index], self.train_labels[
                index]
        elif self.mode.lower() == 'val':
            data_path, label_path = self.val_data[index], self.val_labels[
                index]
        elif self.mode.lower() == 'test':
            data_path, label_path = self.test_data[index], self.test_labels[
                index]
        else:
            raise RuntimeError("Unexpected dataset mode. "
                               "Supported modes are: train, val and test")

        img, label = self.loader(data_path, label_path)

        if self.transform is not None:
            img = self.transform(img)

        if self.label_transform is not None:
            label = self.label_transform(label)

        return img, label

    def __len__(self):
        """Returns the length of the dataset."""
        if self.mode.lower() == 'train':
            return len(self.train_data)
        elif self.mode.lower() == 'val':
            return len(self.val_data)
        elif self.mode.lower() == 'test':
            return len(self.test_data)
        else:
            raise RuntimeError("Unexpected dataset mode. "
                               "Supported modes are: train, val and test")

# Setting Dataloader variables
mode = input('SELECT MODE OF OPERATION: train, val or test: ')
batch_size = 4
num_workers = 0

# Load the training set as tensors
train_set = CustomDataset(
    transform=image_transform,
    label_transform=label_transform)
train_loader = DataLoader(
    train_set,
    batch_size=batch_size,
    shuffle=True,
    num_workers=num_workers)

# Load the validation set as tensors
val_set = CustomDataset(
    mode='val',
    transform=image_transform,
    label_transform=label_transform)
val_loader = DataLoader(
    val_set,
    batch_size=batch_size,
    shuffle=False,
    num_workers=num_workers)

# Load the test set as tensors
test_set = CustomDataset(
    mode='test',
    transform=image_transform,
    label_transform=label_transform)
test_loader = DataLoader(
    root_dir,
    batch_size=batch_size,
    shuffle=False,
    num_workers=num_workers)

# Retrieving color_encoding
class_encoding = train_set.color_encoding

# Get number of classes to predict
num_classes = len(class_encoding)

# Print information for debugging
print("Number of classes to predict:", num_classes)
print("Train dataset size:", len(train_set))
print("Validation dataset size:", len(val_set))

# Get class weights from the selected weighing technique
weighing = 'enet'
ignore_unlabeled = False

print("\nWeighing technique:", weighing)
print("Computing class weights...")
print("(this can take a while depending on the dataset size)")

class_weights = 0

if weighing.lower() == 'enet':
    class_weights = tools.enet_weighing(train_loader, num_classes)
elif weighing.lower() == 'mfb':
    class_weights = tools.median_freq_balancing(train_loader, num_classes)
else:
    class_weights = None

if class_weights is not None:
    class_weights = torch.from_numpy(class_weights).float().to(device)
    # Set the weight of the unlabeled class to 0
    if ignore_unlabeled:
        ignore_index = list(class_encoding).index('unlabeled')
        class_weights[ignore_index] = 0

print("Class weights:", class_weights)

class_weights = None

learning_rate = 0.05
weight_decay = 0.1
lr_decay_epochs = 10
lr_decay = 0.1

# Intialize ENet
model = ENet(num_classes).to(device)
# Check if the network architecture is correct
# print(model)

# We are going to use the CrossEntropyLoss loss function as it's most
# frequentely used in classification problems with multiple classes which
# fits the problem. This criterion  combines LogSoftMax and NLLLoss.
criterion = nn.CrossEntropyLoss(weight=class_weights)

# ENet authors used Adam as the optimizer
optimizer = optim.Adam(
    model.parameters(),
    lr=learning_rate,
    weight_decay=weight_decay)

# Learning rate decay scheduler
lr_updater = lr_scheduler.StepLR(optimizer, lr_decay_epochs,
                                  lr_decay)

# Evaluation metric
metric = IoU(num_classes, ignore_index=False)

# Optionally resume from a checkpoint
resume = True
resume = False
name = 'test'

if resume:
    model, optimizer, start_epoch, best_miou = utils.load_checkpoint(
        model, optimizer, save_dir, name)
    print("Resuming from model: Start epoch = {0} "
          "| Best mean IoU = {1:.4f}".format(start_epoch, best_miou))
else:
    start_epoch = 0
    best_miou = 0

epochs = 10

train = Train(model, train_loader, optimizer, criterion, metric, device)
val = Test(model, val_loader, criterion, metric, device)
for epoch in range(start_epoch, epochs):
    print(">>>> [Epoch: {0:d}] Training".format(epoch))

    lr_updater.step()
    epoch_loss, (iou, miou) = train.run_epoch(True)

    print(">>>> [Epoch: {0:d}] Avg. loss: {1:.4f} | Mean IoU: {2:.4f}".
          format(epoch, epoch_loss, miou))

    if (epoch + 1) % 10 == 0 or epoch + 1 == epochs:
        print(">>>> [Epoch: {0:d}] Validation".format(epoch))

        loss, (iou, miou) = val.run_epoch(True)

        print(">>>> [Epoch: {0:d}] Avg. loss: {1:.4f} | Mean IoU: {2:.4f}".
              format(epoch, loss, miou))

        # Print per class IoU on last epoch or if best iou
        if epoch + 1 == epochs or miou > best_miou:
            for key, class_iou in zip(class_encoding.keys(), iou):
                print("{0}: {1:.4f}".format(key, class_iou))

        # Save the model if it's the best thus far
        if miou > best_miou:
            print("\nBest model thus far. Saving...\n")
            best_miou = miou
            #utils.save_checkpoint(model, optimizer, epoch + 1, best_miou)

I don't see your pil_loader function in the code above but I'm assuming it's the same as the one in this repository, it simply reads the image with Image.open(). Since your ground-truth images are RGB it will have size (3, H, W). And, adding the batch dimension, (N, 3, H, W).
The loss function CrossEntropyLoss expects a tensor of size (N, H, W), where each pixel value in N is in the interval [0, C-1], where C is the number of classes. Here is the source of the error, your batch of target images doesn't have the correct dimension.
The reason for that is that the dataset you are using encodes the class in RGB values instead of a single value. This is not a problem for CamVid and CityScapes because they happen to provide the target images in the desired format.
TLDR, in a new custom transform or in your CustomDataset.__get_item__() you need to convert those RGB values into a single value and make sure that it returns tensors with size (H, W)

Got it, I'll include a custom transform with this process and I'll update here with the results. Thanks for the support!

I've changed '''CustomDataset.get_item()''' as follows:
'''
def getitem(self, index):
    """
    Args:
    - index (``int``): index of the item in the dataset

    Returns:
    A tuple of ``PIL.Image`` (image, label) where label is the ground-truth
    of the image.

    """
    if self.mode.lower() == 'train':
        data_path, label_path = self.train_data[index], self.train_labels[
            index]
    elif self.mode.lower() == 'val':
        data_path, label_path = self.val_data[index], self.val_labels[
            index]
    elif self.mode.lower() == 'test':
        data_path, label_path = self.test_data[index], self.test_labels[
            index]
    else:
        raise RuntimeError("Unexpected dataset mode. "
                           "Supported modes are: train, val and test")

    img, label = self.loader(data_path, label_path)

    if self.transform is not None:
        img = self.transform(img)

    if self.label_transform is not None:
        label = self.label_transform(label)
        label = tools.rgb2mask(np.array(label), color_encoding)
        label = transforms.ToTensor()(label).long()
        label = label.squeeze(0)

    return img, label

'''
With rgb2mask as:
'''
def rgb2mask(img, color2index):
assert len(img.shape) == 3
height, width, ch = img.shape
assert ch == 3

W = np.power(256, [[0],[1],[2]])

img_id = img.dot(W).squeeze(-1)
values = np.unique(img_id)

mask = np.zeros(img_id.shape)

for i, c in enumerate(values):
    try:
        mask[img_id==c] = color2index[tuple(img[img_id==c][0])]
    except:
        pass
return mask

'''
So, apparently it is training and decreasing Iteration Loss through time, but when it comes to compute IoU, it throws the following error:

Any thoughts on that? Trying to debug it but no success so far...
Again, any help would be greatly appreciated!

IoU(num_classes, ignore_index=False) is the problem. You are passing False to an argument that's expected to be an int or iterable. If you don't want to ignore any class simply do IoU(num_classes), ignore_index defaults to None in which case no class is ignored.

Now everything seems to be running smoothly as it should be. Any interesting outcomes from this work I'll make sure to post here.
Thanks for the support!


adding sample for using spring boot with Azure Cache for redis

Purpose

Providing an example of  spring boot application that calls azure cache for Reddis
Providing Guidance for adding private link to azure cache for Reddis, this sample will still work on that case

Does this introduce a breaking change?

[ ] Yes
[ X ] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ x ] Other... Please describe: new code sample for using Azure Cache for reddis with a spring boot application, with option of configuring private link for Azure cache for Redis

How to Test

Get the code

git clone https://github.com/AsmaeFILALI/java-on-azure-examples.git
cd redis/springboot-azureredis
In application.properties update the values spring.redis.host and spring.redis.password
mvn clean install

Test the code

Import the postman collection postman/Products.postman_collection.json
Update your app url by either a localhost address or the address in which your app is deployed
Start with the POST /product/add so data will be stored in Azure Cache for Redis
Execute GET /products
Execute Get /product/{id}

What to Check
Verify that the following are valid

POST /product/add Returns 200 with the saved data
GET /products Returns 200 with the Data you have stored
Get /product/{id} Should return data of the specific Id

Other Information

@AsmaeFILALI I am going to merge it as is and then address the changes so it is available now. And then I will restructure things along the way. Is that OK with you?

@AsmaeFILALI I am going to merge it as is so it is available now. And then I will restructure things along the way. Is that OK with you?

thank you @mnriem ! yes that's good for me :)

@AsmaeFILALI  Thank you!


PKI

The instructions around PKI are a little vague.
Can you please clarify what are the actual requirements for a server 2016 configuration of WH4B? DO we need to specifically follow the exhaustive instructions of configuring a 2 tier PKI , in order to get wh4b to work?

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

ID: e0e839ae-7beb-07fe-f0ea-560079f1f858
Version Independent ID: af8e8903-fd5c-7210-768d-e0b5de67fe88
Content: Validate Public Key Infrastructure (Windows Hello for Business)
Content Source: windows/security/identity-protection/hello-for-business/hello-cert-trust-validate-pki.md
Product: w10
GitHub Login: @DaniHalfin
Microsoft Alias: daniha

It's not just a matter of getting it to work. It is a matter of getting it to work as intended. In order to implement a PKI "properly" you need at least two tiers.
So I guess it depends on what we mean by "properly". In this case the whole reason behind WH4B at its heart is security. If you implement a single CA then any compromise of that system compromises the entire certificate chain. You security is gone. Possibly worse than gone because you think you are still protected.
So ultimately, do you need more than one tier to get it to "work"? No, one will work.
Will doing so accomplish the goal of helping to secure your systems? No. No way. Absolutely no.
Hope that helps a little.

To clarify - there are multiple different ways to deploy PKI in your environment. The method described here is a support method to deploy PKI that will work correctly with WHfB.
There are other ways to deploy PKI that will still leave your with a working solution, but aren't necessarily supported. It's hard to cover every possible method of deployment for WHfB and it's dependencies, so we've chosen to focus on the best practices.
If you have specific questions regarding your environment, please reach out to our support channels, as they are, for sure, better equipped to assist you.
Thanks for reaching out, @zimbonz .

@shortpatti - please close this issue.
If there are any updates to the original feedback, please reply back. Thanks!

I may have not been clear - let me try again.
Is this page, providing detail for setting up a single tier, PKI setup - necessary for "testing" Wh4B?
If so, then the  The section above with the following text, should be separated out with the additional descriptor, for example:
If you want to perform this in a production environment, according to best practices, then please follow these links instead:
"If you do have an existing public key infrastructure, please review Certification Authority Guidance from Microsoft TechNet to properly design your infrastructure. Then, consult the Test Lab Guide: Deploying an AD CS Two-Tier PKI Hierarchy for instructions on how to configure your public key infrastructure using the information from your design session."
What is unclear, is whether the links for 2-tier configuration are a pre-requisite of the instructions in this page or not.

Hi @zimbonz - we state the prerequisites right here.
The quoted part of the guide is meant to provide general guidance. As stated, it is advisable to read the CA design guidance first and consult the test lab guide second to configure your PKI setup. We provide this information, as the deployment guide can't cover the full scope of PKI configuration, but some people might still need guidance in that area. This guide is only intended to cover what is needed to setup a successful WHfB deployment.
In general, if something is a requirement, we clearly state that. If you find it to be otherwise, please let us know, so that we can correct that.


Add more error handling

Steps to reproduce
Include a file with invalid syntax
Entry point:
{# file.twig #}
{% include "other-file.twig" %}

Invalid file:
{# other-file.twig #}
{% for foo in bar %}
{% endif %}

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Error compiling twig file".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v18.15.0

Just ran into this. I think it is the following code:
new Promise(async (resolve) => {
  const { includes, code } = await compileTemplate(
    template,
    file,
    options
  )
  includes.forEach(processIncludes)
  resolve(code)
})

Changing it to the following helped me find the issue in my twig template.
new Promise(async (resolve) => {
  const { includes, code } = await compileTemplate(
    template,
    file,
    options
  ).catch(errorHandler(id))
  if (includes) {
    includes.forEach(processIncludes)
  }
  resolve(code)
})

Chance you could test #3 ?

Thanks, I'll test the new version, but looks good to me! I'll let you know if anything comes up.


More informative empty panel

When the program is initially ran, it just "runs". While it is recording by default, it assumes developers have read the README and know to proxy their network.
It would be informative to add a note when there are no records to let developers know the proxy setup is needed. Even better, add an icon in the right side of the action bar to open up a dialog with the instructions contained in the README.

Very good point - I'll definitely expand the default "recording network activity" text (and possibly link to readme there)

I've made this as a quick fix:


support 32 bit vsts.

@woldhek We are supporting this now if you compile from source. Would it still be useful for you to have this available directly for download from the project page?

@woldhek A link is now available on the site. This issue is closed!


Make it Responsive

The web app has some Responsiveness problems in the footer and some other areas.

@Vishv07  please describe more about this issue

I would like to contribute as a GSSOC'21 participate.

I would like to contribute on this issue (GSSOC'21).


Update pipeline template to tools v1.5

Major changes to port template to tools v1.5
Changed docs to point to online versions (PR: https://github.com/nf-core/tools/pull/298)
Updated AWS batch parameters (PR: https://github.com/nf-core/tools/pull/296)
Moved blacklists/ to assets/ and changed the names to be consistent
Implemented changes in (PR: https://github.com/nf-core/tools/pull/300)

Thanks @apeltzer .
Markdownlint and pipeline tests passed so going to merge this now. Linting failed due to conda issues with tools v1.5 but this will be fixed in the next release.


Deprecation Issues

Hello,
I don't know if this repository is still maintained, but I have found issues with deprecations in dependencies.
The first one is that sklearn is now scikit-learn, which required a change in pyproject.toml.
The second one is that the type np.int is used in multiple files, while numpy deprecated it and insists on using simple int as a dtype.
These were all errors I have found. I could open a pull request to fix these problems, but this might be more complicated than necessary.

Thanks for letting me know.  I will try and fix them.   I do not maintain this repo much anymore as I have written a pyTorch version that is much faster (https://github.com/mccullaghlab/shapeGMMTorch).  I will also add a statement to this effect in the README for this repo.  Thanks again.

I updated the repo on github to fix these issues

Thank you.
I was also not aware that there is a PyTorch version, I will check it out.