doc for v0.0.9-alpha

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 56.56%. Comparing base (c81d892) to head (71fc6e0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #28   +/-   ##
=======================================
  Coverage   56.56%   56.56%
=======================================
  Files          35       35
  Lines        2461     2461
=======================================
  Hits         1392     1392
  Misses        902      902
  Partials      167      167

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fix deprecation warning on Rails 6.0

In Rails 6.0 the API for template handlers is changing, a template handler must now take two arguments [1], the template and the source, otherwise you will see the following deprecation warning:
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
  >> #<Faml::RailsHandler:0x0000561d54608868>.call(template)
To:
  >> #<Faml::RailsHandler:0x0000561d54608868>.call(template, source)

This fixes that deprecation warning.
[1] https://www.github.com/rails/rails/commit/28f88e0074

Coverage decreased (-55.5%) to 43.592% when pulling 819cff5a176d1cab26dd18b878f311c3384af1a2 on y-yagi:support_rails60 into 4f2a60af8df61e9da9cd6f3410aa23cb7fadea4e on eagletmt:master.


Forecast.io

Added a library + demo to use weather data from forecast.io.
The wrapper allows you to download multiple days in one query and returns the result in a Pandas Dataframe. Calculation of Degree Days is also included.

Works well!
@JrtPec I have done some small changes in the demo notebook and merged.  I did not yet check the code of the wrapper itself.  Also maybe there is some functionality that is not demonstrated in the notebook?

I could add a small part explaining the tz argument: standard the dataframe is returned localised to the timezone of the requested location, but you could set tz to something else (eg. 'UTC') to get the dataframe localised to another timezone.
Other than that, there are basically two objects: Weather_Hours and Weather_Days, they differ in the resolution of the data. They both also have slightly different fields (because thats what Forecast returns). Weather_Days include calculated Degree Days.
Other than that it could be stressed just how cool the location field is: you could pass it any location string you would type into Google Maps and it will evaluate it. You could access Weather_Days.location, which is a geolocator object to check all details, coördinates etc.
(just putting it all here so I can add it to the demo later)

Future development might include another wrapper that saves historical data, because Forecast only allows 1000 requests per day so you can only download about 2,5 years worth of data per day.


ERG Improvements to support facilities management customers

Widget:  ERG
Version of widget:  2.0 (?) - master branch
Bug or Enhancement
Expand Emergency Response Guide widget to better support military customers and facility management
Repo Steps or Enhancement details
In working with military customers responsible for facilities management and base incidents, it would be good to expand this tool.  I am documenting a specific customer and use case, but I know this functionality could be used broader.
New tools:

Drop Pt. on map - this adds a point to an editable Feature Service (for persistent).  It also automatically buffers the indicent by 300 ft. and changes any buildings status to Cordoned.  A "secondary" buffer is added to the cordonpoly layer.
1a.  Alternatively, add by Building ID from a drop down list; I am thinking this must query the FeatureService and get a list of Building IDs to select from.  I assume this adds point on Building center.
Add additional buildings to active incident - if there are additional buildings that fall outside the 300 ft buffer but want to include in the cordoned area, add these buildings by dragging a box.
Edit Multiple Bldg Status
Add Blockade to active incident
Add Safe Route
Add Plume from KML/Shapefile - in this case, these files are being computer by external algorithms and imported via this method.

These new tools can be driven off of a published Map Service/Feature Service that includes the following layers:

Once an incident is dropped on the map, there are additional capabilities that are desired based on this active incident:

Edit incident info - ability to change name, details, and status (Pending by default, Active, Inactive)
Delete incident - clears incident and return buildings' status to all clear
Add cordon to this incident - name, size, primary check on/off
View building report - view buildings affected in a grid - facility, status
View blockages report - grid of blockages associated with incident to include name, roads, details, blockage type
Activate Entire Event - push to the primary viewer as an active incident that others will now see

This issue was moved to ArcGIS/defense-solutions-proofs-of-concept#5


Bug: HTTP 400 error after clicking the second "Login" button (Auth/Backup Code)

Description of the problem:
An HTTP 400 error is returned to the client after clicking the second "Login" button, after having entered the "Authentication/Backup Code" in the field.
Version used
Latest Win x64 prebuilt release: https://nightly.link/ayntgl/discordo/workflows/ci/main/discordo_Windows_X64.zip
Permanent link: https://nightly.link/ayntgl/discordo/actions/runs/2845550500/discordo_Windows_X64.zip
According to the comments, the system is unrelated to the problem.
Full error captured

Same issue here as well...
Just built the binaries for linux (Ubuntu 22.04).

same issue with a fresh build on macOS

Yep, also experiencing the same issue on latest macOS.

The more I'm trying to understand the issue, the more I'm thinking it's related to Discord requiring a Captcha on my account.

On Arch Linux:
λ discordo
panic: HTTP 400 Bad Request, {"code": 50035, "errors": {"ticket": {"_errors": [{"code": "BASE_TYPE_REQUIRED", "message": "This field is required"}]}}, "message": "Invalid Form Body"} [recovered]
	panic: HTTP 400 Bad Request, {"code": 50035, "errors": {"ticket": {"_errors": [{"code": "BASE_TYPE_REQUIRED", "message": "This field is required"}]}}, "message": "Invalid Form Body"}

goroutine 1 [running]:
github.com/rivo/tview.(*Application).Run.func1()
	/home/txtsd/git/golang/pkg/mod/github.com/rivo/tview@v0.0.0-20220307222120-9994674d60a8/application.go:243 +0x4d
panic({0x8bd480, 0xc00027ac30})
	/usr/lib/go/src/runtime/panic.go:884 +0x212
main.main.func1.1.1()
	/home/txtsd/.cache/yay/discordo-git/src/discordo/main.go:98 +0x218
github.com/rivo/tview.(*Button).InputHandler.func1(0xc000133ac0?, 0x7a001f?)
	/home/txtsd/git/golang/pkg/mod/github.com/rivo/tview@v0.0.0-20220307222120-9994674d60a8/button.go:130 +0x42
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc0000b60c0?, 0xc00053d2c0?)
	/home/txtsd/git/golang/pkg/mod/github.com/rivo/tview@v0.0.0-20220307222120-9994674d60a8/box.go:167 +0x53
github.com/rivo/tview.(*Form).InputHandler.func1(0x40f507?, 0x10?)
	/home/txtsd/git/golang/pkg/mod/github.com/rivo/tview@v0.0.0-20220307222120-9994674d60a8/form.go:673 +0xb7
github.com/rivo/tview.(*Box).WrapInputHandler.func1(0xc0002b2870?, 0xc000133be0?)
	/home/txtsd/git/golang/pkg/mod/github.com/rivo/tview@v0.0.0-20220307222120-9994674d60a8/box.go:167 +0x53
github.com/rivo/tview.(*Application).Run(0xc0002cc460)
	/home/txtsd/git/golang/pkg/mod/github.com/rivo/tview@v0.0.0-20220307222120-9994674d60a8/application.go:335 +0x77d
main.main.func1(0xc0001c2b80?)
	/home/txtsd/.cache/yay/discordo-git/src/discordo/main.go:137 +0x319
github.com/urfave/cli/v2.(*App).RunContext(0xc0001871e0, {0xa1c5b0?, 0xc0001ac090}, {0xc0001921e0, 0x1, 0x1})
	/home/txtsd/git/golang/pkg/mod/github.com/urfave/cli/v2@v2.7.1/app.go:329 +0x9fc
github.com/urfave/cli/v2.(*App).Run(...)
	/home/txtsd/git/golang/pkg/mod/github.com/urfave/cli/v2@v2.7.1/app.go:226
main.main()
	/home/txtsd/.cache/yay/discordo-git/src/discordo/main.go:140 +0x309

Hello there, I am not able to reproduce this issue on my end, could you provide reproducible steps?

The steps I did:

Enter my E-Mail address
Enter my password
Hit "Login"
Enter my 2FA code
Hit "Login"
Then I get the same error thats in the 1st and 6th post.

Fresh build on arch from aur git, same issue

Fresh build on arch from aur git, same issue
PS it looks like it wants ticket field in API request

Yes, and the ticket field is when your account needs to fill a Captcha.
@ayntgl So I am quite convinced now that the problem occurs when Discord wants you to fill a Captcha!

Response from Discord's API when a captcha is required :
Request
( The header is Content-Type: application/json )

Response Body

Response Headers
date: Tue, 16 Aug 2022 01:47:52 GMT
content-type: application/json
content-length: 127
strict-transport-security: max-age=31536000; includeSubDomains; preload
x-envoy-upstream-service-time: 27
via: 1.1 google
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=hge0z4muUPBXf8cEFOnelwGxnhask__REDACTED__2FEFFvCPwgVYddx6hR3xbUIN9%2B"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
x-content-type-options: nosniff
server: cloudflare
cf-ray: 73b_REDACTED_6fc-EWR

Hey, I think a better solution is being able to paste in a token manually and then it being saved via keyring so when you launch discordo again, it automatically logs you in.

I have the same issue. The only way i found to login is with the client auth token (as the post above says), but it doesn't automatically log me in again by just running discordo, so i have to enter the token every time i run discordo.

@SkyFoxCoder, thank you for the detailed report! Ideally, Discordo should display that captcha is required in the TUI.
Hey @peepo5! Thanks for the suggestion! I am closing this issue for now, feel free to create a new issue.

Is the bug solved?
Why removing the bug tag and closing the issue?

@ayntgl Is the bug solved? A workaround should not be considered a solution. Why removing the bug tag and closing the issue?

There is no workaround except to bypass captcha. You must manually solve the captcha from the official Discord client login page, solve the hCaptcha, and try to login on Discordo again and hope that it works.

Hey, I think a better solution is being able to paste in a token manually and then it being saved via keyring so when you launch discordo again, it automatically logs you in.

@peepo5, Discordo now stores the token inside the default keyring if the token is passed via a CLI flag.

Why are they both closed, I am so confused.
The problem is not solved.
Doing the captcha on the website then trying on discordo doesn't work.

@ayntgl Why are they both closed, I am so confused. Why removing the bug tag?
The problem is not solved. Doing the captcha on the website then trying on discordo doesn't work.

The bug label was removed because this is not really a bug inherent to Discordo.

@ayntgl Why are they both closed, I am so confused. Why removing the bug tag?
The problem is not solved. Doing the captcha on the website then trying on discordo doesn't work.

I don't know how this problem can be solved without modification of Discord's internal login procedure. You can currently login via token using the token flag and Discordo stores the token to the default keyring which is used to login on next startup.

Using the captcha_key received in the POST login call to ask the user to fill the captcha using that key is probably possible.
Discordo crashing with an unrelated error because Captcha is not supported is not a Bug?

Using the captcha_key received in the POST login call to ask the user to fill the captcha using that key is probably possible.

I have done my fair share of research to support captcha in terminal, but unfortunately, hCaptcha provides no such API to somehow display the captcha other than in web browser. I have considered using Discord Login, but it uses webview which is unnecessary and will create bloat, contrary to the aim of this project.

I understand, thank you for the time you took about this issue and put in Discordo! 😃

@ayntgl is it possible to convert hCaptcha image(?) to readable ANSI output and solve via the  terminal?

I understand, thank you for the time you took about this issue and put in Discordo!

As far as I am aware, no.


The Add or Refresh photo in Edit mode should open the full screen photo carousel (that will have edit buttons)

What

Thanks to https://github.com/openfoodfacts/smooth-app/pull/1765, we now have refresh buttons
The Add or Refresh photo in Edit mode should open the full screen photo carousel to enable people to refresh photos

Part of

#766

Screenshot

I can open the full screen photo carousel for refreshing existing photos, but for adding... do you have any idea? a button "Add" same as the photo carousel of product page?
Another little question, does refreshing work 100% actually? in Smoothie, a reopening of Product Page is required to have the new photo in carousel; on server side (OpenFoodFacts.org), the new photo is just uploaded as a unselected photo, is it normal?


CI: ConformanceAKS: echo-ingress-l7-named-port succeeded while it should have failed

CI failure
[=] Test [echo-ingress-l7-named-port]
..
  ℹ  📜 Applying CiliumNetworkPolicy 'echo-ingress-l7-http-named-port' to namespace 'cilium-test'..
  [-] Scenario [echo-ingress-l7-named-port/pod-to-pod-with-endpoints]
  [.] Action [echo-ingress-l7-named-port/pod-to-pod-with-endpoints/curl-0-public: cilium-test/client-755fb678bd-v56hq (<IP_ADDRESS>) -> curl-0-public (<IP_ADDRESS>:8080)]
  [.] Action [echo-ingress-l7-named-port/pod-to-pod-with-endpoints/curl-0-private: cilium-test/client-755fb678bd-v56hq (<IP_ADDRESS>) -> curl-0-private (<IP_ADDRESS>:8080)]
  ❌ command "curl -w %{local_ip}:%{local_port} -> %{remote_ip}:%{remote_port} = %{response_code} --silent --fail --show-error --output /dev/null --connect-timeout 5 --max-time 20 http://<IP_ADDRESS>:8080/private" succeeded while it should have failed:
  ℹ  curl output:

  📄 No flows recorded during action curl-0-private
  📄 No flows recorded during action curl-0-private

Duplicate of https://github.com/cilium/cilium/issues/22162.


Importing awaited-dom breaks default libraries

from discord:
importing the interfaces like:
import type { ISuperElement, ISuperHTMLCollection, ISuperNodeList } from '@ulixee/awaited-dom/base/interfaces/super';
messes up all typescript files in a project because of the triple slash directive  . it prevents then from using the default libs

Workaround appears to be to use these declarations in own files.
///
///
///

This should be fixed in latest commit


Example code leads to Exception

The example code in the readme leads to following Error:
StorageException (StorageException: On load: ServicesBinding.defaultBinaryMessenger was accessed before the binding was initialized.
If you're running an application and need to access the binary messenger before `runApp()` has been called (for example, during plugin initialization), then you need to explicitly call the `WidgetsFlutterBinding.ensureInitialized()` first.
If you're running a test, you can call the `TestWidgetsFlutterBinding.ensureInitialized()` as the first line in your test's `main()` method to initialize the binding.)

It can be fixed by calling WidgetsFlutterBinding.ensureInitialized(); before calling persistor.load, but this makes the app startup slowly.
Please help!

This seems like an upstream from the storage engine. If you are calling load before runApp is ran, this is expected. I'll add a note in the README.
ensureInitialized is the same as doing runApp though, so no change is startup speed is expected. It's

Let me know if you have any follow up questions!

Hi @Cretezy , how would you change the code in your Example then, to make it work?
https://github.com/Cretezy/redux_persist/blob/master/packages/redux_persist_flutter/example/redux_persist_flutter_example.dart#L16
I am struggling to find a solution.


Update CONTRIBUTING.md to reference 'develop' branch instead of 'master'

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Docs update
What is the current behavior? (You can also link to an open issue here)
#1467
Please check if the PR fulfills these requirements

[x] The commit follows our guidelines: https://github.com/reactiveui/reactiveui#contribute
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

Changes Unknown when pulling e62b0dbfeb3937c8511987bc9da1a02484100e81 on eatdrinksleepcode:develop_not_master into ** on reactiveui:develop**.

Changes Unknown when pulling fdb8a4b73c61aa10e26ac2bb11f06226758c03f9 on eatdrinksleepcode:develop_not_master into ** on reactiveui:develop**.

Thanks for this 👍


https://www.google.com/cloudprint/list call failed: Storage timeout.

I'm trying to setup cups-connector on a Raspberry Pi v1.0B.
Port 443 is not blocked by my firewall and I'm running the latest version of golang (1.5.1) on raspbian 8.0 (jessie).
pi@raspberrypi ~ $ cat /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 4.1.6+ #810 PREEMPT Tue Aug 18 15:19:58 BST 2015 armv6l GNU/Linux

pi@raspberrypi ~ $ go version
go version go1.5.1 linux/arm

Local Config
I created a config for local-only with the following:
pi@raspberrypi ~ $ gocode/bin/connector-init
Google Cloud Print CUPS Connector version DEV-linux
"Local printing" means that clients print directly to the connector via local subnet,
and that an Internet connection is neither necessary nor used.
Enable local printing?
y

"Cloud printing" means that clients can print from anywhere on the Internet,
and that printers must be explicitly shared with users.
Enable cloud printing?
n

The config file cups-connector.config.json is ready to rock.

Then I start the connector:
pi@raspberrypi ~ $ gocode/bin/connector
E0920 03:33:04.277863    2255 connector.go:33] Google Cloud Print CUPS Connector version DEV-linux
Google Cloud Print CUPS Connector version DEV-linux
E0920 03:33:04.738553    2255 connector.go:150] Ready to rock in local-only mode
Ready to rock in local-only mode

The printer shows up on chrome://devices/ but when I try to register it, I receive the following error:

Could not complete registration
An error has occured. Please check your printer and try again.

Cloud Print Config
If I create the config with the following options, enabling cloud print, I get the error stated in the topic.
(ids masked with xxx and ### respectively)
pi@raspberrypi ~ $ gocode/bin/connector-init
Google Cloud Print CUPS Connector version DEV-linux
"Local printing" means that clients print directly to the connector via local subnet,
and that an Internet connection is neither necessary nor used.
Enable local printing?
y

"Cloud printing" means that clients can print from anywhere on the Internet,
and that printers must be explicitly shared with users.
Enable cloud printing?
y

Retain the user OAuth token to enable automatic sharing?
y

User or group email address, or domain name, to share with:
<EMAIL_ADDRESS>
Proxy name for this GCP CUPS Connector:
HP

Login to Google as the user that will own the printers, then visit this URL:

https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com&redirect_uri=oob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudprint&state=state

After authenticating, paste the provided code here:
##############################################

Acquired OAuth credentials for user account
Acquired OAuth credentials for robot account

The config file cups-connector.config.json is ready to rock.
Keep it somewhere safe, as it contains an OAuth refresh token.

I start it and within 30 seconds it crashes with the following error:
pi@raspberrypi ~ $ gocode/bin/connector
E0920 03:29:48.769721    2200 connector.go:33] Google Cloud Print CUPS Connector version DEV-linux
Google Cloud Print CUPS Connector version DEV-linux
F0920 03:30:11.771645    2200 connector.go:131] https://www.google.com/cloudprint/list call failed: Storage timeout.
goroutine 1 [running]:
github.com/golang/glog.stacks(0x54c200, 0x0, 0x0, 0x0)
	/home/pi/gocode/src/github.com/golang/glog/glog.go:769 +0xc4
github.com/golang/glog.(*loggingT).output(0x538970, 0x3, 0x965445a0, 0x51028e, 0xc, 0x83, 0x0)
	/home/pi/gocode/src/github.com/golang/glog/glog.go:720 +0x28c
github.com/golang/glog.(*loggingT).printDepth(0x538970, 0x3, 0x1, 0x965d1db8, 0x1, 0x1)
	/home/pi/gocode/src/github.com/golang/glog/glog.go:646 +0x1b0
github.com/golang/glog.(*loggingT).print(0x538970, 0x3, 0x965d1db8, 0x1, 0x1)
	/home/pi/gocode/src/github.com/golang/glog/glog.go:637 +0x44
github.com/golang/glog.Fatal(0x965d1db8, 0x1, 0x1)
	/home/pi/gocode/src/github.com/golang/glog/glog.go:1128 +0x3c
main.main()
	/home/pi/gocode/src/github.com/google/cups-connector/connector/connector.go:131 +0x102c

I'm not sure where I'm going wrong or misunderstanding the configuration. Any help is appreciated.

Looks more like 1 second than 30 seconds.
"Storage timeout" is a GCP backend error. If this is happening a lot, then please notify me; it should only happen on rare occasion.
The CUPS Connector doesn't require registration.

Printers are registered automatically as they are added to the CUPS server that the CUPS Connector is communicating with.
Local printers don't require registration. Chrome(OS) should show them in the print dialog whenever the device is on the same subnet.

BTW, thanks for the verbose report.

Thanks for getting back to me so quickly @jacobmarble, I didn't realize local printers don't require registration. I have verified I can print locally with cups-connector from a chromebook.
I do get "Storage timeout" every time using the Cloud Print Config above.
Let me know if I can provide any more information to help you troubleshoot.

TODO: Talk to GCP backend engineers on Monday, about "Storage timeout".

@z how many printers does the CUPS server have installed?

@z Actually, two numbers. How many printers on that one proxy (CUPS server + CUPS connector), and also, how many Cloud Print printers does the user have in total?
Thanks

@jacobmarble There is only one printer.
One printer configured on the proxy and the same (one) printer in Cloud Print.

What is the proxy name? It's possible that many people have chosen the same proxy name, and that the Cloud Print service isn't handling that very well.

I can try another name, I was using "HP" which I thought would be limited to my home network or google account.

@jacobmarble okay, I just tried the name "asdklfjasdlfjaslkdfjdsalksdfjasdfasdfas" with the Cloud Print config and it does not crash like it does when I use "HP" as the proxy name. Seems you've hit the nail on the head.

Good to know. Here's some context:
https://groups.google.com/forum/#!topic/gcp-developers/-WTeE1wlLDs

@z May I ask, why did you choose "HP"?

@jacobmarble I thought the proxy name was limited to my account. The raspberry pi was meant to only be used as a way for my mother to print from the "classic" HP printer from her Chromebook.

The name is limited to your account, but it's stored in a database with millions of other proxy names, so funny things happen when a common name is chosen.
It's our (Cloud Print team) fault, and it will be fixed in a couple of weeks. I'm glad that we resolved your situation. :-)

Thanks for your help, I saw the note in the google groups link above :)


simplifying eventlog tests, trying to remove thread reliance

Removed lots of parts from the EventLog tests to make them slimmer and to attempt solving #20 #22 #45. We might need to dive into PowerMock to mock Thread.sleep in testPostEvent and testRunFinally, but I do hope that 5 seconds of optional timeout are enough for now.

Coverage decreased (-0.02%) to 62.888% when pulling d8ba72116f6e0b8a0ea5ef5348e5e800a171fb1f on feature/eventlogthreadtests into 2a1ae17c5079995d01b5dde60dadf9920f33217d on develop.

-> remove one test which was basically there for coverage (only calling the code, not actually checking results), hence the reduction by 0.02.

@shoeffner Looks good! Apart from a small class import fix, shipit! 👍 :shipit:


Flying blind in React Developer Tools

When rendering my next.js app in the browser, I look in the react devtools extension and don't see much in the way of help since I'm using pure functional components. If I right-click a node and click show source, I get dumped somewhere minified. I'd at least like to know what file the react component lives in so I can find it.
How do you debug your code in the browser if you're flying blind in react devtools?

This PR might be the reason for that.
We will fix this and will do a release around Monday.

Sorry, I saw minified source when testing with the rauchg.com blog, which would be in production.
In my local app, when I go to source I am taken to this function in patch-react.js (line 150):
var _fn = function _fn() {
  for (var _len6 = arguments.length, args = Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
    args[_key6] = arguments[_key6];
  }
  return around.call.apply(around, [this, fn].concat(args));
};

@babenzele May be you are using older version of Next.js.
We don't use patch-react anymore.

I was on next@beta. I upgraded and things do look better now. I'll familiarize myself with this.
Thanks for the help!


IForumChannel is missing webhook endpoints

Describe the solution you'd like
Forum channels have Integration -> Webhooks on Discord
https://discord.com/developers/docs/resources/webhook#get-channel-webhooks
I'm not sure how this could best be implemented, as IForumChannel does not implement ITextGuildChannel where webhooks seem to be currently implemented.

@abitofevrything is it fixed in 6.0?

Yes, closing now.


Adding jobs for 4.5

@thiagoalessio

nice catch on reposync. I've updated the job so it will not need independent attention in the future.
the puddle confs are inputs to the puddle building process (urls built here: https://github.com/openshift/aos-cd-jobs/blob/bccb39672cba0ccbb33efcdf9baf113dca875342/jobs/build/ocp4/build.groovy#L81-L83) and are necessary (until we refactor) for each release.
I didn't want to buck the trend on bug sweeps until they were completely deleted :)


misc: iterative find for union-find

Codecov Report

Merging #72 into master will increase coverage by 0.16%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
+ Coverage   77.89%   78.05%   +0.16%
==========================================
  Files          22       22
  Lines         986     1007      +21
==========================================
+ Hits          768      786      +18
- Misses        191      194       +3
  Partials       27       27

Impacted Files
Coverage Δ

misc/sparseunionfind.go
89.47% <100%> (+0.58%)
:arrow_up:

misc/unionfind.go
85.71% <100%> (+6.4%)
:arrow_up:

heap/binaryheap.go
94.31% <0%> (-5.69%)
:arrow_down:

Continue to review full report at Codecov.

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


About add weight on loss function

Hi,
I have a question about how to add weight in the loss function
for example
L = w1Ls + W2Lr
Thanks

Hi,
you can add loss weighting in line 42 in 'spert/loss.py'. Ideally, weights should be passed to the SpertLoss constructor, like so:
class SpERTLoss(Loss):
    def __init__(self, rel_criterion, entity_criterion, model, optimizer, scheduler, max_grad_norm, rel_weight, entity_weight):
        self._rel_criterion = rel_criterion
        self._entity_criterion = entity_criterion
        self._model = model
        self._optimizer = optimizer
        self._scheduler = scheduler
        self._max_grad_norm = max_grad_norm
        self._rel_weight = rel_weight
        self._entity_weight = entity_weight

    def compute(self, entity_logits, rel_logits, entity_types, rel_types, entity_sample_masks, rel_sample_masks):
        # entity loss
        entity_logits = entity_logits.view(-1, entity_logits.shape[-1])
        entity_types = entity_types.view(-1)
        entity_sample_masks = entity_sample_masks.view(-1).float()

        entity_loss = self._entity_criterion(entity_logits, entity_types)
        entity_loss = (entity_loss * entity_sample_masks).sum() / entity_sample_masks.sum()

        # relation loss
        rel_sample_masks = rel_sample_masks.view(-1).float()
        rel_count = rel_sample_masks.sum()

        if rel_count.item() != 0:
            rel_logits = rel_logits.view(-1, rel_logits.shape[-1])
            rel_types = rel_types.view(-1, rel_types.shape[-1])

            rel_loss = self._rel_criterion(rel_logits, rel_types)
            rel_loss = rel_loss.sum(-1) / rel_loss.shape[-1]
            rel_loss = (rel_loss * rel_sample_masks).sum() / rel_count

            # joint loss
            train_loss = self._entity_weight * entity_loss + self._rel_weight * rel_loss
        else:
            # corner case: no positive/negative relation samples
            train_loss = entity_loss

        train_loss.backward()
        torch.nn.utils.clip_grad_norm_(self._model.parameters(), self._max_grad_norm)
        self._optimizer.step()
        self._scheduler.step()
        self._model.zero_grad()
        return train_loss.item()

Thanks, can we learn the weights during the training instead of specifying the weights

Of course you can. You may have a look at this paper. In PyTorch, you need to create the weights as tensors and add them to the optimizer, e.g. by registering them as nn.Parameters in the model ('SpERT' in 'spert/models.py').


Migration job fails on a new database

When run on a new database, where the migrations have never been run, the migration script that adds a "force" field fails with:
ERROR: 2023-01-31 14:36:28,825 - root - Migration failed: The fields "{'priority'}" do not exist on the document "JobSnapshot"

Reported by @rtrompier

hot fix: https://github.com/huggingface/datasets-server/pull/743 to disable it for now on prod.


[APPS-2981] make chat_sidebar orderable

:bear:
/cc @zendesk/wombat
Description
Make chat_sidebar orderable.
References

JIRA: https://zendesk.atlassian.net/browse/APPS-2981

Risks

[low] break zopim apps reordering

👍

:+1:


Hide DNA track label

The DNA track label is redundant with the DNA sequence track label (they point to the same data)
e.g.

I've removed the anonymous DNA track so now we just have the Wood 2002 DNA track.


Enhancement: Add key words and key phrases to articles, courses and exercises that show up in searches

Issue is that pupils often can't find things they are looking for, because the search input doesn't fit the right article. An example is a boy in 5th grade, looking for "Anordnung von ganzen Zahlen" and seeing only an article relevant for university.
The idea is that, in these specific cases, there is an extension to the editor where you can define key words that make it easier to find the article. There could be a field above "Änderungen". If someone searches for these keywords or phrases, they find the article they are attached to.
Maybe there is the possibility to find articles that are not read very often and adding key words to these articles so they are easier to find. Also, the Serlo Lab School is a perfect place to find out which articles are hard to find.
I don't know how hard it would be to implement. It would be cool if we found out by next week whether it is possible and how long it would take.

IMHO: it's super annoying if authors have to specify such meta data (in addition to being in compliance with our guidelines, etc.). We should rather invest more time into making the search better, see e.g. #479.

Agreed


MySQL in-app link dead

The MySQL in-app link in "What gets backed up" section simply redirects to the Azure blog front page.

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

ID: 4754bcfc-204a-d398-6b86-e452cd0d44a1
Version Independent ID: 157885c4-2579-8f98-1e85-c3063a861207
Content: Back up app - Azure App Service
Content Source: articles/app-service/manage-backup.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

I have submitted a PR to fix the issue, the change is merged internally and will go-live in the public docs shortly.


Failed to compile

IC2 API 被墙了？

fixed by https://github.com/Minecraft-GoodTime/GoodTime-Industrial/commit/06ada9b1d1c725bc488129d61c9b84d8c3d27e51?


Unit tests: Azure block adapter unit test sporadically fails

Noticed this test started to fail occasionally after we upgraded the Azurite version (not sure if related)
https://github.com/treeverse/lakeFS/actions/runs/6624090114/job/17992371450?pr=6837
ok  	github.com/treeverse/lakefs/pkg/block	0.037s	coverage: 65.2% of statements
panic: Put "http://account1.azurite.test:32770/container1?restype=container": EOF

goroutine 1 [running]:
github.com/treeverse/lakefs/pkg/block/azure_test.runAzurite(0xc0004449c0)
	/home/runner/work/lakeFS/lakeFS/pkg/block/azure/main_test.go:95 +0x5b1
github.com/treeverse/lakefs/pkg/block/azure_test.TestMain(0x141b541?)
	/home/runner/work/lakeFS/lakeFS/pkg/block/azure/main_test.go:109 +0xfe
main.main()
	_testmain.go:86 +0x33e
FAIL	github.com/treeverse/lakefs/pkg/block/azure	18.027s
2023/10/24 08:14:52 Could not create bucket 'bucket1': Post "http://<IP_ADDRESS>:4443/storage/v1/b?alt=json&prettyPrint=false&project=testProject": EOF

preceded  by https://github.com/treeverse/lakeFS/issues/6811


Cannot deploy to "development" stage

Prerequisites

[x] I am running the latest version. (up upgrade)
[x] I searched to see if the issue already exists.
[x] I inspected the verbose debug output with the -v, --verbose flag.
[x] Are you an Up Pro subscriber?

Description
As per documentation there should be a development stage as well, (see https://up.docs.apex.sh/#configuration.stages), but I cannot seem to be able to deploy to it. I am expecting to see another alias called development in the lambda function.
Steps to Reproduce
Ran up deploy development and got the following errr
Error: "development" is invalid, must be one of:
• production
• staging

Running apex 0.7.3-pro
PS: I have tried adding "development" stage to up.json as
{
  "name": "test-function",
  "profile": "default",
  "regions": [
    "eu-west-1"
  ],
  "stages":{
    "development":{
    }
  }
}

and running up stack plan but that returned the error
Error: The submitted information didn't contain changes. Submit different information to create a change set.```

"development" is just the name for running locally as up start now, I'd recommend using "staging", or you can create your own such as "beta" here

That raises 2 more questions:

Does this mean that "development" is a reserved keyword? (because I cannot create a stage called like that)
When running up start is the keyword development used anywhere?

Yep that's correct, "development" is reserved for local use, and it will populate UP_STAGE and NODE_ENV by default to "development", UP_STAGE can be used in build hooks etc as well

Thanks for the clarification, that makes more sense. Closing the ticket


feat(listbox): add ListBox and ListBoxOption components

Also, if you would like to see an example of what this component will likely look like, you can take a look at our EditImageModal in Studio. Scroll down to the Text block with the banana, click the Edit button, and click the Insert/Edit Image button in the toolbar (second from the right). You should see the ListBox component between the search bar and the pagination.

@MichaelRoytman I read your "Open Questions" comment. I think 1b makes the most sense to me except for a tweak:
How about moving the onOptionSelect prop to the parent ListBox? When rendering the ListBoxOption's, it will pass an onMouseDown handler to each one that will update the ListBox's selected option state to that index and then call the onOptionSelect function. The onMouseDown prop to ListBoxOption would be a prop only passed by ListBox, just like isSelected.
I think it would be okay to leave those props undocumented in the README since they are only ever meant to be used internally by ListBox. I think we should mention somewhere in the README that ListBoxOption will only work inside of a ListBox component instead. Also, if an independent ListBoxOption with no isSelected and onMouseDown props passed to it renders without errors, then we could also make those props not required to reduce confusion about them (though, I don't know why you would ever want to render one outside of a ListBox).

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


raftstore: handle apply concurrently

@ngaut @siddontang @disksing @zhangjinpeng1987 PTAL

Rest LGTM

LGTM

PTAL

Performance seems not being improved, close now.


Code for running on physical robots

Will you be open-sourcing the code and method to run ConceptGraphs on the physical robots, ie the spot?

Ah sorry I see this was covered in #1.


Python3 error in vprinter.py

Traceback (most recent call last):
  File "./cesm_tseries_generator.py", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/glade/work/dbailey/CESM_postprocessing/timeseries/timeseries/cesm_tseries_generator.py", line 406, in <module>
    debugMsg('Running on {0} cores'.format(size), header=True)
  File "/glade/work/dbailey/CESM_postprocessing/cesm-env2/lib/python3.7/site-packages/asaptools/vprinter.py", line 110, in __call__
    if verbosity < self.verbosity:
TypeError: '<' not supported between instances of 'int' and 'list'

The fix is this:
    if verbosity < self.verbosity[0]:
        print(self.to_str(*args, **kwargs))

I'm not sure I can post a PR to this repo.

@kmpaul this issue was opened in February and still hasn't been addressed.

@jedwards4b:  Sorry.  I missed this in the noise.  Since the fix is so simple, I'd welcome a PR.

I also just made you a maintainer so you can advance these issues faster.

I'm not sure this fixes it entirely. There are some subtle aspects of the scripts as I recall where verbosity needs to be a list, and others where it is an integer. Can you test this out @kmpaul ?

@dabail10:  I will.  I agree that that doesn't seem like the right fix.  I'm unsure why self.verbosity is a list and not an int.  Can you provide a "minimal reproducible example" of the problem?

I'm not sure if I can. Let me try to dig up my post-process runs.

@jedwards4b @dabail10:
In lines 391-398 of NCAR/CESM_postprocessing/CESM_postprocessing/timeseries/timeseries/cesm_timeseries_generator.py:
https://github.com/NCAR/CESM_postprocessing/blob/67d1b1bb12e7ddb0d4d569f78fb09828f6f2120d/timeseries/timeseries/cesm_tseries_generator.py#L391-L398
It indicates that the VPrinter's verbosity is set from the debug value that is gathered in the commandline_options() function.  The commandline_options() function defines the --debug option as:
https://github.com/NCAR/CESM_postprocessing/blob/67d1b1bb12e7ddb0d4d569f78fb09828f6f2120d/timeseries/timeseries/cesm_tseries_generator.py#L57-L58
And the debug variable returned by commandline_options() are shown in these two lines here:
https://github.com/NCAR/CESM_postprocessing/blob/67d1b1bb12e7ddb0d4d569f78fb09828f6f2120d/timeseries/timeseries/cesm_tseries_generator.py#L66
https://github.com/NCAR/CESM_postprocessing/blob/67d1b1bb12e7ddb0d4d569f78fb09828f6f2120d/timeseries/timeseries/cesm_tseries_generator.py#L73
According to the argparse documentation for nargs, setting nargs to 1 means that one argument will be "consumed" from the commandline and put into a list.  Hence, the options.debug should be a list with 1 element.  And the function is returning the [0] element from the list.
So, I don't understand how debug could be a list at all.  It should just be an int.
I think we need a way of reproducing the error.


api-linter: 1.66.1 -> 1.66.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/googleapis/api-linter/releases.
meta.description for api-linter is: Linter for APIs defined in protocol buffers
meta.homepage for api-linter is: https://github.com/googleapis/api-linter/
meta.changelog for api-linter is: https://github.com/googleapis/api-linter/releases/tag/v1.66.2
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.66.2 with grep in /nix/store/7adhjizw4s4862gy8vzsp0fi4zw1bhc7-api-linter-1.66.2
found 1.66.2 in filename of file in /nix/store/7adhjizw4s4862gy8vzsp0fi4zw1bhc7-api-linter-1.66.2

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

api-linter

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7adhjizw4s4862gy8vzsp0fi4zw1bhc7-api-linter-1.66.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A api-linter https://github.com/r-ryantm/nixpkgs/archive/63cb5e6504035f5c7a0f71d4ca6343f36516c1ad.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/63cb5e6504035f5c7a0f71d4ca6343f36516c1ad#api-linter

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7adhjizw4s4862gy8vzsp0fi4zw1bhc7-api-linter-1.66.2
ls -la /nix/store/7adhjizw4s4862gy8vzsp0fi4zw1bhc7-api-linter-1.66.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

api-linter

Maintainer pings
cc @xrelkd for testing.

@NixOS/nixpkgs-merge-bot merge


HAWKULAR-59 - Added feature to invite users to organization.

Please, review/merge hawkular/hawkular-ui-services#50 before.

Merged #516


feat: add custom color selection for user avatars

Describe the feature you'd like to request
It would be nice if the color of user avatars could be changed in the preferences. Additionally a random color could be defined on creation
Describe the solution you'd like to see
New column in users table for color
Color is randomly generated on creation
Color is used in user-avatar.tsx
Additional information
No response

By the addition of color initials in mantine v7.11 this feature is kind of obsolete:
https://mantine.dev/core/avatar/#initials


Resume bulkload on abort?

Just had a situation, when the mapreduce job finished processing RDF and saving it to /tmp folder. However, my HBase server stopped working and ./bulkload reported error and quit.
This scenario is unlikely to happen in production cluster (redundant zookeeper + redundant hbase), however for local clusters it would nice to have ./bulkload split into two phases:

Mapreduce data to hbase tables (i.e. saving it to /tmp folder)
Load /tmp folder into hbase table "bla"

Right now, if I want to continue ./bulkload it simply throws stating that /tmp folder already exists.

Hi Ivan,yes, making the two parts of the bulk load separated by a command line switch or a separated command makes sense.However if you still have the h-files in the temp HDFS folder, you can bulk load them with following command:
hbase org.apache.hadoop.hbase.tool.LoadIncrementalHFiles hdfs://storefileoutput
Thanks,Adam
-------- Původní zpráva --------Od: Ivan Ermilov<EMAIL_ADDRESS>Datum: 01.10.17  14:22  (GMT+01:00) Komu: Merck/Halyard<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Předmět: [Merck/Halyard] Resume bulkload on abort? (#27)
Just had a situation, when the mapreduce job finished processing RDF and saving it to /tmp folder. However, my HBase server stopped working and ./bulkload reported error and quit.
This scenario is unlikely to happen in production cluster (redundant zookeeper + redundant hbase), however for local clusters it would nice to have ./bulkload split into two phases:
Mapreduce data to hbase tables (i.e. saving it to /tmp folder)
Load /tmp folder into hbase table "bla"
Right now, if I want to continue ./bulkload it simply throws stating that /tmp folder already exists.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/Merck/Halyard","title":"Merck/Halyard","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/Merck/Halyard"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Resume bulkload on abort? (#27)"}],"action":{"name":"View Issue","url":"https://github.com/Merck/Halyard/issues/27"}}}


Annotation support

Some music has annotation that explain part of the lyrics.
If it is possible, please support them in dumb

Yeah, this is a pretty big reason many people use Genius. @rramiachraf is it possible to do this within dumb?

Working on this in https://github.com/rramiachraf/dumb/pull/40


Update list of supported Python versions

Hello Adam,
First of all, thank you for the great library!
The goal of this PR is to provide actual information about supported Python versions.
I believe that only versions for those you have tests on CI should be listed as supported.
Best regards!

Thanks!

Can we get a merge?

Yep, sorry!


Core lib name

Hello.
I think this name is "Core", is abstract for specific library, maybe you can rename it to Web3Core or something?
Please

But there's a good news, since Swift 5.7 your able to do dependencies aliasing.
Here's the code example:

 targets: [
  .executableTarget(
    name: "App",
    dependencies: [
     .product(name: "Game", package: "swift-game", moduleAliases: ["Utils": "GameUtils"]),
     .product(name: "Utils", package: "swift-draw"),
   ])
 ]

Perfect, if you use SPM, and not cocoapods

Cocoapods are the cause of not only just this issues, unfortunately. For example: Cocoapods version of our lib uses outdated BigInt library version toward SPM one, because its just haven't been updated there, and looking up to their issues it wouldn't be updated ever, while in further development we would rely on theirs new API much more broadly, which would made Cocoapods version even less stable as it is now.
The main lack of Cocoapods for us here is that it doesn't support modularity in a way that SPM does, and it does[n
t] that by design, which leads that there's a nasty hacks required to make it works within it.
Worth to say, that more granular modularity is actually are one of the main request from within the active community members in Discord during that 6 months 3.0.0 pre releases period, so it'd be only increase on time.
So we'd deliver 3.0.0 branch on Cocoapods just for that: to let our Cocoapods users to easily migrate on both our new major version and to SPM as their dependency manager.
So with respect the aforesaid we'd strongly suggests you and all Cocoapods folks to migrate up to SPM in their own tempo within 3.*.* branch, since both this is the last version of a lib that will be support it, and its support will be limited even within current version.


Supertest binding to different ephemeral port on every request?

While testing with supertest I have noticed that after a test run netstat reports a connection in TIME_WAIT state for every call (get, post, etc.) made with a supertest agent.  This can become a problem for me doing frequent and larger test runs - my system actually runs out of either file handles or ports (not sure which.)
My app binds to port 3000 and it's my understanding that if the app is bound to a port supertest won't bind to an ephemeral port.
Here's an abridged version of how my app and test suite are written:
app.js
const express = require('express');
...
let app = express();
...
app.listen(process.env.PORT, function () {
    logger.info('App listening on port ' + process.env.PORT);
});

module.exports = app;

test.js
let app = require('../app.js'),
    agent = require('supertest').agent(app),
    assert = require('chai').assert;

describe('/api/auth/ typical sign up and login', function () {

    let email =<EMAIL_ADDRESS>        password = 'foobar',
        path = '/api';

    it('gets no results', async () => {
        let res = await agent
            .get(path + '/credentials/')
            .expect(200);

        assert.doesNotHaveAnyKeys(res.body, ['email']);
    });

    ...
}

For every await agent.(get|post|put)... there seems to be a connection on a different port.  Is there some way to reduce the number of connections opened in my test suite?  Is it possible to reuse a connection, or even just have connections close so they're not stuck in TIME_WAIT taking up resources?
Below is a sample output from netstat after a suite that made 11 "agent" calls - ports 6379 and 5432 are connections to redis and postgres respectively, all the rest I think are between supertest and my app:
tcp4       0      0  <IP_ADDRESS>.62021        <IP_ADDRESS>.6379         TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62023        <IP_ADDRESS>.62024        TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62026        <IP_ADDRESS>.62027        TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62028        <IP_ADDRESS>.62029        TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62030        <IP_ADDRESS>.62031        TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62032        <IP_ADDRESS>.62033        TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62034        <IP_ADDRESS>.62035        TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62036        <IP_ADDRESS>.62037        TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62038        <IP_ADDRESS>.62039        TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62040        <IP_ADDRESS>.62041        TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62042        <IP_ADDRESS>.62043        TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62044        <IP_ADDRESS>.62045        TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62022        <IP_ADDRESS>.6379         TIME_WAIT
tcp4       0      0  <IP_ADDRESS>.62025        <IP_ADDRESS>.5432         TIME_WAIT

I figured out that passing a function to supertest.agent() will always cause supertest to bind to an ephemeral port on every request - the express app being a function.
Instead, I had to export the result of app.listen() (a NodeJS http.Server object) and pass that to supertest.agent():
app.js
...
let server = app.listen(process.env.PORT, function () {
    logger.info('App listening on port ' + process.env.PORT);
});

module.exports = server;

test.js
let server = require('../app.js'),
    agent = require('supertest').agent(server),
...

Now supertest opens a new socket for every request, but they all go to the same port on the server side.
Is it possible to reuse the sockets?  Or have them close cleanly so they're not hanging around?

I was able to set the http agent in superagent by wrapping the various HTTP verb method calls and then setting the agent. Combined with passing the http server returned from express app.listen this should give you a configurable number of sockets in a pool that make requests.
Here's the code I used to set the HTTP socket pool to 10 as well as reversing the cookie saving behavior of supertest when you set an agent.
`
const http = require("http");
const keepAliveAgent = new http.Agent({ keepAlive: true, keepAliveMsecs: 90000, timeout: 1200000, maxSockets:10, maxFreeSockets:10 });
const _request = request.agent(app.app);
_request._saveCookies = _.noop;
['get', 'post', 'put', 'del', 'delete', 'head'].forEach((method)=>{
let fx = _request[method];
_request[method] = (...args)=>{
    let result = fx.call(_request, ...args);
    result.agent(keepAliveAgent);
    return result;
};

});`

Apparently this is solved.
https://stackoverflow.com/a/63293781/1548557

Remove the app.listen call from the place you are currently passing to supertest.
In {repo}/index.js you can .listen on the port you desire.

Alternatively, you can litter the code with test-specific logic as shown in the example, but it just boils down to the above, which I think is cleaner.


[WFLY-16147] Produce new [primary/secondary]-host.xml configuration files and replace the default name for the primary host controller

Requires https://github.com/wildfly/wildfly-core/pull/5061
Jira issue: https://issues.redhat.com/browse/WFLY-16147
Included tasks:

Changes to produce new host-primary.xml / host-secondary.xml
Replace "master" with "primary" for the default primary host controller name
Rename Galleon config names to produce the new files
Modify default values for Galleon feature groups
Fix affected tests

Once approved, I'll squash the commits.
Integration Jobs are available on the wildfly-core counterpart.

Superseded by https://github.com/wildfly/wildfly/pull/15562


Fix issue #3612

What kind of change does this PR introduce?
bugfix
Did you add tests for your changes?
Yes
If relevant, link to documentation update:
N/A
Summary
There is a options property of LoaderContext. If user passes an object with options to LoaderOptionsPlugin, options will be override previously. Now ensure no more overriding.
Does this PR introduce a breaking change?
No

I dont think this is how it works

Hmmm, i fix an unhandled logic. Should pass test.

I don't think Object.assign(context[key], options[key]) does what you want it to do.

As i said in #3612, this is a temporary and simple solution(but has some vulnerability). If constrain the loader's option scope, it will introduce a breaking change.

old

@sokra, reopen this pr or should open another? I have added some new fixes.


Update logback-classic to 1.3.0-alpha5

Updates ch.qos.logback:logback-classic from 1.3.0-alpha4 to 1.3.0-alpha5.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "ch.qos.logback", artifactId = "logback-classic" } ]

labels: test-library-update, semver-pre-release

@scala-steward I met this bug when using alpha5 version.
https://stackoverflow.com/a/58744501/6176274


Improve emoji picker dismissability

All credit to @Juicysteak117 in #2367 for this fix, that PR just got me thinking we could probably do this with transforms so figured I'd knock it out quick.
Picker should now be closable when clicking anywhere outside the picker itself. No visual changes from prod otherwise.

Perfect, thanks! Transforms are still witchcraft to me haha.

Okay yeah correct me if I'm wrong but I think this got superseded by https://github.com/bluesky-social/social-app/pull/2392


Missing output from nbconvert

Example 1
The most minimalistic example I could create. When I execute this cell with nbconvert I don't get any output:
sleep(1)
1

Steps to reproduce using example.ipynb:
jupyter nbconvert --execute --to notebook example.ipynb

Resulting file: example1.nbconvert.ipynb
Expected a file identical to: example1.browser.ipynb (from running it in the browser manually)
Example 2
I've also seen other cases where output gets truncated. It often happens when a cell prints to STDERR or STDOUT. For instance when a warning is issued (example2):
sin([1])
1

Under nbconvert this cell doesn't produce the expected output data [1]: 1. But I do get the expected deprecation warning (because of sin instead of sin.). If I add set_verbose above the example cell:
using IJulia
IJulia.set_verbose()

Then I do get output from example 1, but not from example 2.
Input: example2.ipynb
Result: example2.nbconvert.ipynb (example2_verbose.nbconvert.log)
Expected result: example2.browser.ipynb  (example2.browser.log)
From what I can see both logs show that an execute_result is being sent corresponding to [2]: 1.
Versions

jupyter v4.4.0
jupyter nbconvert v5.3.1
julia v0.6.2
IJulia v1.6.2

Reproduce in docker: nbconvertissue.zip
Related issues?
https://github.com/ipython/ipython/issues/4015
#610

I'm guessing that the issue is that nbconvert is sending IJulia a sequence of execute_request messages, and in cases where you have sleep calls or stdio, IJulia may respond to a second request before the first one has finished, and nbconvert gets confused.
@takluyver, can you confirm?  The ideal thing would be for nbconvert to properly handle execute_result messages even if they arrive out-of-order.   Alternatively, if there is some way to detect that we are being called by nbconvert, we could add some synchronization in...

Our expectation in general is that the kernel processes one execution at a time, so we will get all the output from executing one cell, followed by a status: idle message, and then it goes on to the next cell.

Do you wait for the idle message before sending the next execute_request?

In nbconvert I think we do wait for idle between executions. In the live notebook, probably not, though I'm not 100% sure about that.

Any ideas on how do they solve this in ipython? In python 3 this cell:
import time
time.sleep(1)
1

Gives the expected output Out[1]: 1. As does this in python 3:
print("a")
1

Output
a
Out[1]: 1

Whereas the corresponding in Julia
print("a")
1

Yields just a as output but no Out[1]: 1


Add device flow scope.

Describe your changes
Most of IDP require a base scope, so add the openid as the base scope.
Issue ticket number and link
Na
Checklist

[x] Is it a bug fix
[ ] Is a typo/documentation fix
[ ] Is a feature enhancement
[ ] Created tests that fail without the change (if possible)
[ ] Extended the README / documentation, if necessary

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

@aazf thanks for the contribution, we will test with auth0 and keycloak and then approve.
Can you share which idp you had the problem with so we can support users that run into the same issue.

@mlsmaycon https://github.com/dexidp/dex

thanks @aazf
I've enabled the workflows, can you update the failing tests?

Thanks @aazf

@aazf the Docker Compose Linux test fails because of some missing secrets.

@mlsmaycon So how to fix it, or everything is fine.

That's okay. All good. We can ignore it now.
The docker compose test requires some secrets that are not available in forks. These are private to the netbird org.


docs: Update OWNERS

https://github.com/argoproj/argoproj/pull/209

Congratulations! @juliev0 @isubasinghe


add github actions pipeline for javascore deployment to testnet

Related issues:

https://github.com/icon-project/icon-bridge/issues/331
https://github.com/icon-project/icon-bridge/issues/342
https://github.com/icon-project/icon-bridge/issues/343


fix redirections

Hey, here are some more redirections fixes (they broke g co <tab> for me. Now it works again :blush:

That's a pretty old pull req. Really sorry about that - I didn't know anyone was still using g2 aside from myself. ;-)
Well, it looks like I fixed the issue reported here as part of a different commit.
Anyway, sorry about the delay
will close


Task fails when NVD not available and failOnError = false

we have set in our build.gradle:
dependencyCheck {     failOnError = false }
and are using the newest version:
classpath("org.owasp:dependency-check-gradle:5.2.2")
yet our task fails:
13:27:52 Verifying dependencies for project association
13:28:01 Checking for updates and analyzing dependencies for vulnerabilities
13:28:02 Unable to download meta file: https://nvd.nist.gov/feeds/json/cve/1.0/nvdcve-1.0-modified.meta
13:28:02 org.owasp.dependencycheck.data.update.exception.UpdateException: Unable to download meta file: https://nvd.nist.gov/feeds/json/cve/1.0/nvdcve-1.0-modified.meta
13:28:02 	at org.owasp.dependencycheck.data.update.NvdCveUpdater.getMetaFile(NvdCveUpdater.java:347)
13:28:02 	at org.owasp.dependencycheck.data.update.NvdCveUpdater.getUpdatesNeeded(NvdCveUpdater.java:385)
13:28:02 	at org.owasp.dependencycheck.data.update.NvdCveUpdater.update(NvdCveUpdater.java:122)
13:28:02 	at org.owasp.dependencycheck.Engine.doUpdates(Engine.java:916)
13:28:02 	at org.owasp.dependencycheck.Engine.initializeAndUpdateDatabase(Engine.java:718)
13:28:02 	at org.owasp.dependencycheck.Engine.analyzeDependencies(Engine.java:653)
13:28:02 	at org.owasp.dependencycheck.Engine$analyzeDependencies$0.call(Unknown Source)
13:28:02 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
13:28:02 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
13:28:02 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
13:28:02 	at org.owasp.dependencycheck.gradle.tasks.AbstractAnalyze.analyze(AbstractAnalyze.groovy:89)
13:28:02 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:28:02 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
13:28:02 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:28:02 	at java.lang.reflect.Method.invoke(Method.java:498)
13:28:02 	at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
13:28:02 	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46)
13:28:02 	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
13:28:02 	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
13:28:02 	at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:801)
13:28:02 	at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:768)
13:28:02 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:131)
13:28:02 	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
13:28:02 	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
13:28:02 	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
13:28:02 	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
13:28:02 	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
13:28:02 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:120)
13:28:02 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:99)
13:28:02 	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
13:28:02 	at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
13:28:02 	at org.gradle.api.internal.tasks.execution.SkipCachedTaskExecuter.execute(SkipCachedTaskExecuter.java:105)
13:28:02 	at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
13:28:02 	at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
13:28:02 	at org.gradle.api.internal.tasks.execution.ResolveBuildCacheKeyExecuter.execute(ResolveBuildCacheKeyExecuter.java:79)
13:28:02 	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
13:28:02 	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
13:28:02 	at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
13:28:02 	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:91)
13:28:02 	at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
13:28:02 	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:59)
13:28:02 	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
13:28:02 	at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
13:28:02 	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
13:28:02 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.run(EventFiringTaskExecuter.java:51)
13:28:02 	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:300)
13:28:02 	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:292)
13:28:02 	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:174)
13:28:02 	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
13:28:02 	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
13:28:02 	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:46)
13:28:02 	at org.gradle.execution.taskgraph.LocalTaskInfoExecutor.execute(LocalTaskInfoExecutor.java:42)
13:28:02 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:277)
13:28:02 	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareWorkItemExecutor.execute(DefaultTaskExecutionGraph.java:262)
13:28:02 	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:135)
13:28:02 	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:130)
13:28:02 	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.execute(DefaultTaskPlanExecutor.java:200)
13:28:02 	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.executeWithWork(DefaultTaskPlanExecutor.java:191)
13:28:02 	at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$ExecutorWorker.run(DefaultTaskPlanExecutor.java:130)
13:28:02 	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
13:28:02 	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
13:28:02 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
13:28:02 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
13:28:02 	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
13:28:02 	at java.lang.Thread.run(Thread.java:748)
13:28:02 Caused by: org.owasp.dependencycheck.utils.DownloadFailedException: Download failed, unable to retrieve 'https://nvd.nist.gov/feeds/json/cve/1.0/nvdcve-1.0-modified.meta'
13:28:02 	at org.owasp.dependencycheck.utils.Downloader.fetchContent(Downloader.java:115)
13:28:02 	at org.owasp.dependencycheck.data.update.NvdCveUpdater.getMetaFile(NvdCveUpdater.java:340)
13:28:02 	... 64 more
13:28:02 Caused by: org.owasp.dependencycheck.utils.DownloadFailedException: Error downloading file https://nvd.nist.gov/feeds/json/cve/1.0/nvdcve-1.0-modified.meta; unable to connect.
13:28:02 	at org.owasp.dependencycheck.utils.HttpResourceConnection.obtainConnection(HttpResourceConnection.java:238)
13:28:02 	at org.owasp.dependencycheck.utils.HttpResourceConnection.fetch(HttpResourceConnection.java:138)
13:28:02 	at org.owasp.dependencycheck.utils.Downloader.fetchContent(Downloader.java:110)
13:28:02 	... 65 more
13:28:02 Caused by: java.net.ConnectException: Connection refused (Connection refused)
13:28:02 	at java.net.PlainSocketImpl.socketConnect(Native Method)
13:28:02 	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
13:28:02 	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
13:28:02 	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
13:28:02 	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
13:28:02 	at java.net.Socket.connect(Socket.java:589)
13:28:02 	at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
13:28:02 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
13:28:02 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
13:28:02 	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
13:28:02 	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
13:28:02 	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
13:28:02 	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
13:28:02 	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
13:28:02 	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
13:28:02 	at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:167)
13:28:02 	at org.owasp.dependencycheck.utils.HttpResourceConnection.obtainConnection(HttpResourceConnection.java:178)
13:28:02 	... 67 more
13:28:02 Unable to update 1 or more Cached Web DataSource, using local data instead. Results may not include recent vulnerabilities.
13:28:02 Unable to continue dependency-check analysis.
13:28:02
13:28:02 > Task :dependencyCheckAnalyze FAILED```

Fail on error is intended to control the failure mode for non-fatal errors.  If the NVD is not available for download ODC really can't perform any analysis if we don't have at least an old database around.  No database and no NVD available to download - we can't perform ANY analysis really.

Is there a way to configure to skip the check if the NVD is not available? We have the check in 35+ applications and really like the plugin, yet we can't allow the plugin to stop our production deployment just because NVD is offline/unavailable today. The database should be cached nevertheless in this case, because we persist the gradle cache. So i'm wondering why it doesnt pick it up here and continues?

In this case - my guess is that the cache may not be working correctly as the error thrown only occurs when no data exists in the database (see Engine.java#L656-L660).  For most organizations I highly recommend running the nist-data-mirror.

We faced this issue as well. I was also under the impression that failOnError should control all kinds of errors from the plugin. If failOnError is not the right configuration property, then how do you feel about introducing another property? I'm happy to submit a PR if it helps.

For most organizations I highly recommend running the nist-data-mirror.

We want to stay build tool-agnostic and would prefer to not preload another docker container in advance. I was also thinking about the solution @hosamaly proposed, if thats an option. Otherwise we would need to decouple our dependencyCheck task from our main Buildpipeline and run it non-blocking in parallel afterwards. I'm happy to help for introducing another property.

@jeremylong I'm getting the network/certificate error with the autoUpdate = true and scan results for autoUpdate = false - so there seems to be an old database around (both with failOnError = false).

@skjolber see https://github.com/jeremylong/DependencyCheck/issues/2222. Looks like a TLS error due to a change in certs at the NVD...

https://www.ssllabs.com/ssltest/analyze.html?d=nvd.nist.gov seems to report:
This server's certificate chain is incomplete. Grade capped to B.

@skjolber try
export GRADLE_OPTS="-Dcom.sun.security.enableAIAcaIssuers=true"

@jeremylong any news how we can improve status quo? Is the aforementioned extra flag a possibility?

Now https://www.ssllabs.com/ssltest/analyze.html?d=nvd.nist.gov seems to report:
A+
so they (nvd.nist.gov) have fixed their certificate (chain complete). At least I got dependency check working whilst certificate chain issue when using '-Dcom.sun.security.enableAIAcaIssuers=true'

Fail on error is intended to control the failure mode for non-fatal errors.

Why? For virtually every other Gradle plugin I've ever used, failOnError = false means "don't fail the build if this plugin fails to execute, for any reason at all".

If the NVD is not available for download ODC really can't perform any analysis if we don't have at least an old database around. No database and no NVD available to download - we can't perform ANY analysis really.

Right, but I still don't want that condition to cause my build to fail. If the Dependency Check scan doesn't run, it's too bad, but I'd still like the rest of my build to complete so that I have something I can work with.


refresh README

fix rendering examples
update broken links
fix sbt depedencies
typos
code layout

Thanks for Vegas! Was really good to find out about it at Spark Summit Europe ;)

Current coverage is 70.18% (diff: 100%)

Merging #84 into master will not change coverage

@@             master        #84   diff @@
==========================================
  Files            25         25
  Lines          1774       1774
  Methods        1771       1771
  Messages          0          0
  Branches          3          3
==========================================
  Hits           1245       1245
  Misses          529        529
  Partials          0          0

Powered by Codecov. Last update bdd8056...6acab4f

Thank you @jopasserat !


Limitations of Styled theme and usage of Classic

Hi everyone!
For a long time, usage of the Classic theme as a starting point has been discouraged. We keep seeing this question pop up from time to time, so we're looking for feedback on current usage and limitations of the Styled theme and reasons to start from Classic.
Some answers we're looking for are:

What type of themes are you building on top of Styled (if any)?
What type of themes are you building on top of Classic (if any)?

How many additions/overrides/resets are you applying?
How are you managing changes in the upstream theme?

What specific things do you need from Classic that's lacking in Styled?

Is it a default template for navigation?
Is it the color scheme?
...

Waiting to hear from you!
Thanks!

For a long time, usage of the Classic theme as a starting point has been discouraged. We keep seeing this question pop up from time to time, so we're looking for feedback on current usage and limitations of the Styled theme and reasons to start from Classic.

I don't think starting from styled has some kind of limitation: I use it 99% of the times I create a new theme and I'm ok with that.

* What type of themes are you building on top of `Styled` (if any)?

Every theme I create for customers: it's a valid starting point to create my own css, js and templates.

* What type of themes are you building on top of `Classic` (if any)?

Only for study purposes: I would like to have a comfortable way to have a classic theme starting point to understand how this is build and how I can modify it.

  * How many additions/overrides/resets are you applying?

For styled themes, I rewrite a lot of templates (portal_normal.ftl, navigation.ftl, portlet.ftl) and I add almost everything inside the css and js directories. Usually, I use _custom.scss to import everything and I overwrite main.js as described above

  * How are you managing changes in the upstream theme?

Usually I copy files I need to overwrite from the build directory after a gulp build into my src directory.

* What specific things do you need from `Classic` that's lacking in `Styled`?

Nothing in particular.

IMHO I think the default liferay theme should be loaded with structures and templates to create essential widgets like carousels, photo galleries, embedded videos, geotagged content, etc.
For many years now, the main disappointment we have when installing a fresh liferay is how much work you still have to do afterwards to build a simple website with a modern look.
Marcos Castro has been doing an excellent job with theme samples but it's not bundled with the distribution.
HTH

My starting point is the classic theme, but I remove/change a lot from the classic stuff, because the css use:

many id's
px instead of %, rem or em
strong selectors with many classes (nesting in scss)
less variables

From the classic I use the JS for login in popup.
The styles are more a starting point and a change it to my needs, mostly because the reasons above and because the needs of the current design.
Mostly I change a lot in a theme, fonts, colors, button style, breakpoints, grid, ...
Sometimes it's very hard, because if I change a global Liferay variable or add global styles to have a own font in the whole portal, a lot of Liferay stuff will be broken. IMHO, one reason is, that Liferay use a lot of px.
In the Liferay Lexicon are some helps how to change a theme, but for me this is to less. It would be useful to have a guid, which variable can be change, which not, or how to change the default theme. E.g. how can I change the look and Feel of my page without targeting the portlet configurations.
I use own/modified template for nearly every thing. (portal_normal, navigation portlet, AssetPublisher, journal article, category navigation, ...)
We also add custom gulp task for css and js linter, this is very comfortable since Liferay 7.

We mainly used the styled version of the Liferay-Theme. One day we decided to do our own base-theme, because everytime we set up a new one we do stuff like: Adding linters, adding autoprefixer, removing unnecessary code, creating filestructure for CSS, adding some utils in the custom inits and so on. We took the styled as a base and added some parts for the classic one.
I think we took out the navigation styling.
I already had the idea to start with no Liferay styling, because stuff like styling every label or such strong selectors that you can only overwrite them when you have like 6 classes are kinda annoying.
The reason why I would take the styled again over the classic one is because you have to overwrite less and have more control.

What specific things do you need from Classic that's lacking in Styled?

A comprehensive "already there" series of variables so that I can change color schemes and make good use of SaSS without needing to run around and debug 300 partials. Again stuff should already be there, it should be developer friendly.

Kill theme contributors. These are overkill. Bring that stuff back into the theme.

For anyone watching here... we know it's long overdue, but we're planning to work on some version of this prior to 7.3 (and likely backporting it to older versions of the toolkit).
I've created Add support for "Classic" extend  to add the possibility to somehow get that look and feel out of the box quickly.
Please, head over there if you want to provide any additional feedback on the matter!
Thanks everyone for your participation! :)


Add release note for Gradle init changes

See https://github.com/gradle/gradle/pull/27270

@lkasso, I added some more notes after https://github.com/gradle/gradle/pull/27264 got merged

@bot-gradle merge

I've triggered a build for you. Click here to see all failures if there's any.


Hotkey

Can you add hotkeys to limit/free?

There could be. Would say the Keyboard input could do this
Link @ pypi.org


Request AS400 Device

What is the sc4s version ?
4.3.1
Is there a pcap available?
Yes
What the vendor name?
AS400
What's the product name?
AS400
** Feature Request description: **
Onboard AS400 Device Data
** Should it support TCP or UDP?**
UDP
** Do you want to have it for local usage or prepare a github PR? **
local usage
AS400_syslog_data.txt

Hello, @shihab123 !
According to your CEF logs your device is "PowerTech Interact".  In this log format (CEF) vendor name and product name are embedded in message header.
Are you sure that this logs for AS400? As I understood you mean IBM device.

Hello,
Vendor is IBM (ISeries)
Product is called Interact
Thanks,

From: Ilya @.>
Sent: Friday, October 13, 2023 5:29 AM
To: splunk/splunk-connect-for-syslog @.>
Cc: shihab123 @.>; Mention @.>
Subject: Re: [splunk/splunk-connect-for-syslog] Request AS400 Device (Issue #2238)
Hello, @shihab123https://github.com/shihab123 !
According to your CEF logs your device is "PowerTech Interact". In this log format (CEF) vendor name and product name are embedded in message header.
Are you sure that this logs for AS400? As I understood you mean IBM device.
—
Reply to this email directly, view it on GitHubhttps://github.com/splunk/splunk-connect-for-syslog/issues/2238#issuecomment-1761208337, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACAH4PHA5CI55YW4JBVCBDDX7ECYPAVCNFSM6AAAAAA56DMUE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRRGIYDQMZTG4.
You are receiving this because you were mentioned.Message ID: @.***>

@shihab123 if it's okay if we will identify in splunk such device as "PowerTech Interact", because this vendor information was encoded in logs?

@shihab123 Cool, thanks!
Can you please also provide .pcap file with that logs (send me on my email: ikheifets@splunk.com)?
In your txt files hidden message headers like log date, hostname, etc. I need it because I wanna help you and also it can help me to doublecheck that parser working correctly.

@shihab123 Just give me a PCAP file and I will make PR on 1-2 days.

Hello @shihab123 ! You don't provided me pcap file :( By this reason it would be hard to test my Pull Request for this feature.
Please test your logs on this development docker image of sc4s https://github.com/splunk/splunk-connect-for-syslog/pkgs/container/splunk-connect-for-syslog%2Fcontainer3/140155454?tag=pr-2248 . And tell is it working for you or not. If yes we will merge and it would be available on the next release version.
P.S. Please also tell me what index would be fluent for that logs. Currently it's going to netops

@shihab123 I created pull request for your issue, please test if it work for you, and if yes, I will merge it.
You just need to update your sc4s on that development version of sc4s (docker image) to check your logs format.


Rename hist_feature

Codecov Report
All modified lines are covered by tests :white_check_mark:

Files
Coverage Δ

src/startorch/plot/matplotlib/__init__.py
100.00% <100.00%> (ø)

src/startorch/plot/matplotlib/feature.py
100.00% <100.00%> (ø)

:loudspeaker: Thoughts on this report? Let us know!.


Fix Shelley launch date

This is mainly for consistency, to avoid potential problems like in https://github.com/input-output-hk/plutus-apps/pull/77.

Pre-submit checklist:

Branch

[ ] Tests are provided (if possible)
[x] Commit sequence broadly makes sense
[x] Key commits have useful messages
[x] Relevant tickets are mentioned in commit messages
[x] Formatting, materialized Nix files, PNG optimization, etc. are updated

PR

[x] Self-reviewed the diff
[x] Useful pull request description
[ ] Reviewer requested

@jhbertra Yes, it just fixes a mismatched and misleading comment!


Replace "API Docs" with "Code" in the website main menu

Currently, the main menu item "API Docs" takes the user away from the website. From a UI point of view, I think it's better if the main menu items keep the user on the website, so they don't unexpectedly leave the website, and have to hit the "back" button in order to keep navigating the site. The "Login" item is different, as it is clearly set apart by its design. I have changed the menu to add a "Code" item, but we'll still need to set up a corresponding page that will say a bit about the code and point the user to both our GitHub repository and our Postman documentation.

Now we have a basic code page including buttons to access out our GitHub repository and our Postman documentation.


Let users join confs as voice or video

Vector web shows in the banner: Ongoing conference call. Join as voice or video.

as per as per https://github.com/matrix-org/matrix-react-sdk/commit/fdfd6ecfd9d6890e90c4931ac0afb90627f286b6


Cannot build from source

What is the version?
3.3.5-3.4.1
What happened?
go: 1.22.1
Cloning into 'dcgm-exporter'...
Updating DCGM version in files from 3.3.5 to 3.3.5...

I want to build binary
What is the GPU model?
No response
What is the environment?
No response
How did you deploy the dcgm-exporter and what is the configuration?
No response
How to reproduce the issue?
No response
Anything else we need to know?
No response

@jz543fm, You may want to try to use the devcontainer: https://github.com/NVIDIA/dcgm-exporter/tree/main/.devcontainer

Interesting tool, but I can not see dcgm-exporter binary that could I copy from docker container to host machine
root@c2eff1e1a6ae:/# which dcgm-exporter
root@c2eff1e1a6ae:/# dcgm
dcgmi             dcgmproftester10  dcgmproftester11  dcgmproftester12

@jz543fm What do you do to make dcgm-exporter binary? If you run make binary - the binary will be in the /cmd/dcgm-exporter/ directory.

Based on the shared information, it is hard to tell what is wrong with your build environment.  However, you can use our Dockerfiles as a reference for the build environment. A good example is make ubuntu22.04.
It's important to know, that the DCGM-exporter requires Linux machines with GPU even when you try to build it in the Docker.

Yea, understood! It would be useful to add this as dependency, when you are try to build from source here https://github.com/NVIDIA/dcgm-exporter?tab=readme-ov-file#building-from-source  that you need Linux machine with GPU on it to build it, I was just thinking that are just there software dep. 👍🏼

@jz543fm , Thank you for the suggestion. We will update the readme file.

I was able to fix this by exporting the environment variable CGO_ENABLED=1.

@bwfarm2 , Thank you for the update.


Support subtitle that have cues with zero length

I've come across of some subtitles that that cue entries where the start time is equal to the end time.
This will cause a the decoder to throw an exception saying that the start time is less than the end time.
This code is a assert on the Subtitles.Cue-> init method.
Can we change the asset to be
assert(startTime <= endTime)

Hey mate - can you share a subtitle file with the issue? Would be good to have something to write some tests against.
what format are you trying to import?

I'm trying to import this file: https://s3.fr-par.scw.cloud/s3.castopod.cloud/c89b2cfc0e4c784122216b2ad9d5d54b7/podcasts/podcast/26-transcript.srt
It's in the Subrip format

Hi @SergioEstevao can you please check out 1.6.0 and see if this fixes your issue?

Working great! thanks @dagronf !


locomotor-auto-config camera userHeight

Camera height might still be messed up on Aframe 0.6.0 after #45

Was a Nightly issue; now resolved


CI enabled for windows environment

I have enabled the CI for windows env. unit tests are working but the integration tests are still not working as i was unable to get cassandra installed on the windows image

Coverage remained the same at 94.83% when pulling e3e50c17c76eb7cae87cd53dedca77403ef6e5a7 on harrydevnull:master into e7507cda5c93b468c6152a78de3d4ad63c8d563f on AlexPikalov:master.

Codecov Report

Merging #125 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #125   +/-   ##
=======================================
  Coverage   95.56%   95.56%
=======================================
  Files          18       18
  Lines        1870     1870
=======================================
  Hits         1787     1787
  Misses         83       83

Continue to review full report at Codecov.

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

@harrydevnull Please let me try to check if it works on Windows.  I'll try to connect to Cassandra on OS X out of there.

Wait. Is it possible to run integration tests inside Windows container and to have a second Ubuntu container with Cassandra?

Apeveyor is a window based ci engine.
So the source code is compiling and unit test are working.
It is a different container all together .
On Fri, Mar 24, 2017 at 3:34 AM Alex Pikalov<EMAIL_ADDRESS>wrote:

Wait. Is it possible to run integration tests inside Windows container and
to have a second Ubuntu container with Cassandra?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/AlexPikalov/cdrs/pull/125#issuecomment-288953064, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AM2Unb79JC4X2m2mKXTc2UeeuYsliFWNks5ro3H_gaJpZM4MmDXP
.

I see.
Is it possible to make it green?

@AlexPikalov : I have used the wrong badge. now it should work. you might have to login to https://ci.appveyor.com/ and add the project over there. once it is done it would trigger the build.

Coverage remained the same at 94.83% when pulling 64f4c2376bc37b8314d35a37113d060936047e5b on harrydevnull:master into e7507cda5c93b468c6152a78de3d4ad63c8d563f on AlexPikalov:master.

Coverage increased (+0.3%) to 95.13% when pulling ee83c84282e7740d86f07a41267e1f04e177241c on harrydevnull:master into e7507cda5c93b468c6152a78de3d4ad63c8d563f on AlexPikalov:master.


[PTL24] Bump setup python action version

Guess now I need a pipeline to update other pipelines xd


add function on a Collection is not seen as writing to it

Having a Collection and using the $collection->add($item) function, will throw an error saying "Property is never written, only read", which is obviously not the case. Adding the item through the array does function properly.
Here is the example
#[ORM\Entity]
class Thing
{
    #[ORM\Id]
    #[ORM\GeneratedValue]
    #[ORM\Column(options: ['unsigned' => true])]
    private ?int $id;

    /** @var Collection&iterable<Item> $items */
    #[ORM\OneToMany(mappedBy: 'thing', targetEntity: Item::class)]
    private Collection $items;

    /** @var Collection&iterable<OtherItem> $otherItems*/
    #[ORM\OneToMany(mappedBy: 'thing', targetEntity: OtherItem::class)]
    private Collection $otherItems;

    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @return iterable<Items>
     */
    public function getItems(): iterable
    {
        return $this->items;
    }

    /**
     * This one will work perfectly fine
     */
    public function addItem(Item $item): void
    {
        if ($this->items->contains($item)) {
            return;
        }

        $this->items[] = $item;
    }

    /**
     * This one should do the exact same thing, but even so we will get
     * "Property Thing::$otherItem is never written, only read"
     */
    public function addOtherItem(OtherItem $otherItem): void
    {
        if ($this->otherItems->contains($otherItem)) {
            return;
        }

        $this->otherItem->add($item)
    }
}

This should be perfectly reproducable on phpstan.org, can you please try? There's nothign specific about Doctrine in this one.

Oh, I get it probably. You have a bug in your code.

The problem is that every *ToMany association needs to be created with new ArrayCollection in the constructor. Otherwise you can't do this:
$t = new Thing();
$t->addOtherItem(new OtherItem()); // crash


Ask Speakers About Their Preferred/Not Available Timezone(s)

We need to add a popup menu or some other widget on the proposal submission page. Make it required with no default. We need to decide if the question is positive or negative.

I would suggest to simply add a free text field. Our conference runs for several days and the constraints may well be more complex than just related to time zones.

Or we could have a drop-down with options: 08-12 CEST, 12-16 CEST, 16-20 CEST. This may be better to automatic scheduling, in case we will use this.


[ACM-12674] Added renovate config for konflux

Description
Please provide a brief description of the purpose of this pull request.
Related Issue
https://issues.redhat.com/browse/ACM-12674
Changes Made
Provide a clear and concise overview of the changes made in this pull request.
Screenshots (if applicable)
Add screenshots or GIFs that demonstrate the changes visually, if relevant.
Checklist

[ ] I have tested the changes locally and they are functioning as expected.
[ ] I have updated the documentation (if necessary) to reflect the changes.
[ ] I have added/updated relevant unit tests (if applicable).
[ ] I have ensured that my code follows the project's coding standards.
[ ] I have checked for any potential security issues and addressed them.
[ ] I have added necessary comments to the code, especially in complex or unclear sections.
[ ] I have rebased my branch on top of the latest main/master branch.

Additional Notes
Add any additional notes, context, or information that might be helpful for reviewers.
Reviewers
Tag the appropriate reviewers who should review this pull request. To add reviewers, please add the following line: /cc @reviewer1 @reviewer2
/cc @cameronmwall @ngraham20
Definition of Done

[ ] Code is reviewed.
[ ] Code is tested.
[ ] Documentation is updated.
[ ] All checks and tests pass.
[ ] Approved by at least one reviewer.
[ ] Merged into the main/master branch.

/cherry-pick release-2.11
/cherry-pick release-2.10

/retest

/lgtm

/cherry-pick release-2.10


Some boxes are missing

As you can see below, some interface options are missing, like "Show in sub menu", "Show for directories", "Run as admin" and "Run hidden".

In addition, the program window is also shown a bit small on my screen and there is no way to resize it.
Is there any possible reason for this?
Great tool, by the way. Thanks for that.

What OS, resolution and DPI zoom do you have?

OS: Windows 10 Pro x64
Resolution: 1366x768
DPI: 100
It's a laptop.

Please try version <IP_ADDRESS> and close the issue if it works.
https://github.com/stax76/OpenWithPlusPlus/releases

Version <IP_ADDRESS> is working perfectly! Thanks a lot.
Closing.

I won't reopen the bug because they're unrelated, but I think it's pertinent to comment that I found a bug in version <IP_ADDRESS>.

As you can see above, the icon field turns red when you select the desired icon after detection. In this case, after confirmation, no icon is shown in the right-click context menu. But if while the red field is shown, I delete the "0" and put it manually works as it should.
It's not critical, but you might want to take a look at it. Thank you.

Please try <IP_ADDRESS>.

It's solved. Thanks.


Bitget needs a maven artifact

Hi.
Need a maven artifact for the new exchange ( Bitget ) you guys added. (thanks for that, btw).
    <dependency>
        <groupId>org.knowm.xchange</groupId>
        <artifactId>xchange-bitget</artifactId>
        <version>${xchange.version}</version>
    </dependency>

Right now this gets me nothing.
Also read.me is missing any reference to this (naturally).
Thanks, guys.

Hi.
Since bitget is new and wasn't included in any release yet, take the snapshot version
<version>5.2.1-SNAPSHOT</version>

Can you explain in detail?
What I see is that:
https://mvnrepository.com/search?q=xchange-bitget
doesn't exist yet for any version, as far as I can tell.

See the README please.

I have that repo in my maven and it doesn't see xchange-bitget for any version.

https://oss.sonatype.org/content/repositories/snapshots/org/knowm/xchange/xchange-bitget/5.2.1-SNAPSHOT/
is a 404!