[BUG] Socket close

*Describe the bug
Periodic socket close
IOS (please complete the following information):
HOOBS 4.2.5 node 16.15.0
Logs
Your log in debug mode (-D option)
5/7/2022, 9:59:31 AMHarmony BridgeLoft(Master)ERROR (1)- refreshCurrentActivity Error: WebSocket closed with reason: undefined (undefined). - Stack : Error: WebSocket closed with reason: undefined (undefined).
at WebSocketAsPromised._handleClose (/var/lib/hoobs/harmonybridge/node_modules/websocket-as-promised/src/index.js:353:19)
at WebSocket.listener (/var/lib/hoobs/harmonybridge/node_modules/websocket-as-promised/src/index.js:311:64)
at WebSocket.emit (node:events:527:28)
at WebSocket.emitClose (/var/lib/hoobs/harmonybridge/node_modules/ws/lib/websocket.js:243:10)
at Socket.socketOnClose (/var/lib/hoobs/harmonybridge/node_modules/ws/lib/websocket.js:1031:15)
at Socket.emit (node:events:527:28)
at TCP. (node:net:709:12)
5/7/2022, 9:59:31 AMHarmony BridgeLoft(Master)WARNING - socket closed
Config
Your config section of platform. Please do not post your whole config and especially with logins / passwords !
Additional context
Add any other context about the problem here.

I am having the same issue on Homebridge 1.4.1

Hi,
I don't support hoobs . If the problem appears on homebridge, please post the logs here .

I got similar Errors on Homebridge 1.5.0
[9/29/2022, 12:46:47 PM] [Harmony] (Harmony)INFO - Loading activities...
[9/29/2022, 12:46:57 PM] [Harmony] (Harmony)ERROR (1)- refreshCurrentActivity Error: WebSocket closed with reason: undefined (undefined). - Stack : Error: WebSocket closed with reason: undefined (undefined).
at WebSocketAsPromised._handleClose (/volume3/homebridge/node_modules/homebridge-harmony/node_modules/websocket-as-promised/src/index.js:353:19)
at WebSocket.listener (/volume3/homebridge/node_modules/homebridge-harmony/node_modules/websocket-as-promised/src/index.js:311:64)
at WebSocket.emit (node:events:513:28)
at WebSocket.emitClose (/volume3/homebridge/node_modules/homebridge-harmony/node_modules/ws/lib/websocket.js:246:10)
at Receiver.receiverOnFinish (/volume3/homebridge/node_modules/homebridge-harmony/node_modules/ws/lib/websocket.js:1049:20)
at Receiver.emit (node:events:513:28)
at finish (node:internal/streams/writable:756:10)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
[9/29/2022, 12:46:57 PM] [Harmony] (Harmony)WARNING - socket closed
[9/29/2022, 12:47:12 PM] [Harmony] (Harmony)Error - Error connecting after socket closed  network timeout at: http://<IP_ADDRESS>:8088/
And my Config:
{
"name": "Harmony",
"hubIP": "192.168.x.x",
"hubName": "Harmony",
"DELAY_BEFORE_RETRY_AFTER_NETWORK_LOSS": 60000,
"HUB_CONNECT_TIMEOUT": 10000,
"HUB_SEND_TIMEOUT": 30000,
"cleanCache": false,
"TVAccessory": false,
"sortInput": 0,
"switchAccessories": true,
"publishSwitchActivitiesAsIndividualAccessories": true,
"otherPlatforms": [
{
"sortInput": 0
}
],
"platform": "HarmonyHubWebSocket"

Here is a log. What's up wit this?

can you try removing : "otherPlatforms": [
{
"sortInput": 0
}

I'm having this issue as well on v1.6.1 (and Homebridge 1.5.0), over the past few months my rpi with homebridge install becomes unresponsive on the network several times a week until I restart my Harmony hub, Homebridge logs are just filled with line after line after line of (occasionally interrupted by other plugins complaining due to not being able to reach other services online)

[31/10/2022, 19:03:09] [Harmony Hub] (Harmony Hub)WARNING - socket closed
[31/10/2022, 19:03:22] [Harmony Hub] (Harmony Hub)WARNING - socket closed
[31/10/2022, 19:04:01] [Harmony Hub] (Harmony Hub)WARNING - socket closed
[31/10/2022, 19:04:09] [Harmony Hub] (Harmony Hub)WARNING - socket closed
[31/10/2022, 19:04:14] [Harmony Hub] (Harmony Hub)WARNING - socket closed
[31/10/2022, 19:04:27] [Harmony Hub] (Harmony Hub)WARNING - socket closed
[31/10/2022, 19:05:06] [Harmony Hub] (Harmony Hub)WARNING - socket closed

followed by a single

[31/10/2022, 19:08:12] [Harmony Hub] (Harmony Hub)Error - Error connecting after socket closed  request to http://<IP_ADDRESS>:8088/ failed, reason: connect ECONNREFUSED <IP_ADDRESS>:8088

at the time when I unplugged the harmony hub. I cannot repro this on purpose so I don't think I can get logs of this in debug mode unless I just leave homebridge running in debug mode indefinitely..
        {
            "name": "Harmony Hub",
            "hubIP": "<IP_ADDRESS>",
            "hubName": "Harmony Hub",
            "DELAY_BEFORE_RETRY_AFTER_NETWORK_LOSS": 60000,
            "HUB_CONNECT_TIMEOUT": 10000,
            "HUB_SEND_TIMEOUT": 30000,
            "cleanCache": false,
            "publishAllTVAsExternalAccessory": false,
            "TVAccessory": false,
            "sortInput": 0,
            "playPauseBehavior": false,
            "switchAccessories": true,
            "activitiesToPublishAsAccessoriesSwitch": [
                "Watch Living Room Apple TV",
                "Watch Bedroom Apple TV",
                "Play PS5",
                "Play Switch"
            ],
            "showTurnOffActivity": "inverted",
            "publishGeneralMuteSwitch": false,
            "publishGeneralVolumeSlider": false,
            "linkVolumeControlToTV": false,
            "platform": "HarmonyHubWebSocket"
        }

Hi, if other plugins are complaining on not reaching, maybe your pi loose its network / dns for some reason ? You can always try to put harmony plugin on a dedicated hub in homebridge and see if it helps, but I am not sure the plugin is the root cause, it seems homebridge / node cannot "reach" your network.

Well, but the reason I think it's related is that the pi regains network connectivity as soon as I unplug the Harmony hub to restart it. Once the hub is unplugged, the plugin log messages switch from "socket closed" over and over to just one "error connecting" and the pi's network connectivity is totally restored. It's like the plugin is using up all of the pi's networking resources on a bunch of failed websockets or something, and once the IP it's trying to connect to is actually gone from the network, then it finally releases them

Just as a FYI (may not be your issue).  I use HOOBS.  I did a HOOBS update and my DNS was hosed
All I had to do was pot my router IP in resolve.conf <IP_ADDRESS> - That waty out would use my routers DNS settings
Doing that and reboot fixed my home bridge related dns issues
Log into your pi and try to ping anything in the network bay name to any site.  If you cannot get there it is a dns issue and probably because your pi cannot see the DNS configs of your network

On Nov 1, 2022, at 10:16 AM, Nicolas Dujardin @.***> wrote:
Hi, if other plugins are complaining on not reaching, maybe your pi loose its network / dns for some reason ? You can always try to put harmony plugin on a dedicated hub in homebridge and see if it helps, but I am not sure the plugin is the root cause, it seems homebridge / node cannot "reach" your network.
—
Reply to this email directly, view it on GitHub https://github.com/nicoduj/homebridge-harmony/issues/402#issuecomment-1298855901, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT2J4BUR6RFD5ECEA3E64LDWGFF5JANCNFSM5VKVLS7A.
You are receiving this because you authored the thread.


[DTensor] refactor CommSpec

📌 Checklist before creating the PR

[x] I have created an issue for this PR for traceability
[x] The title follows the standard format: [doc/gemini/tensor/...]: A concise description
[x] I have added relevant tags if possible for us to better distinguish different PRs

🚨 Issue number
resolved #3035
📝 What does this PR do?
The previous CommSpec used in Auto-Parallel module contains some attributes which is not necessary to describe a communication operation, such as ShardingSpec, DeviceMesh.
Previously，It has two main functions:

Compute the communication cost which will be used in auto parallel solver.
Convert the communication spec to real action which will be used in runtime.

However，the first function may not be necessary if we jump out of the auto-parallel scenario.
To make a clean design, the new CommSpec will just contains the attributes to decribe a communication operation and supply a function to apply the CommSpec to real execution.

💥 Checklist before requesting a review

[x] I have linked my PR to an issue (instruction)
[x] My issue clearly describes the problem/feature/proposal, with diagrams/charts/table/code if possible
[x] I have performed a self-review of my code
[x] I have added thorough tests.
[x] I have added docstrings for all the functions/methods I implemented

⭐ Do you enjoy contributing to Colossal-AI?

[x] 🌝 Yes, I do.
[ ] 🌚 No, I don't.

Tell us more if you don't enjoy contributing to Colossal-AI.

LGTM.


compress/flate: Allow resetting writer with new dictionary

As of Go 1.14, compress/flate's Writer only allows resetting the write side with the same dictionary.
In contrast, the Reader can be reset with a new dictionary.
I need this to efficiently implement context takeover compression for WebSockets.
See https://tools.ietf.org/html/rfc7692#section-7.1.1
cc @klauspost

@nhooyr You can tests https://github.com/klauspost/compress/pull/216

Will do this weekend, thanks @klauspost

Won't be able to get to it this weekend.
Appreciate your very quick response to this issue @klauspost, I'll try to get to get to it next week.

Using this in my WebSocket library and the performance has been great.
https://github.com/klauspost/compress/pull/216#issuecomment-586638251
2x faster and only 100 B allocated per op for echoing a 512 random byte message with a 8 KB dictionary.

Would be nice to see it in the stdlib instead to avoid the dependency.

Adding it would close #32371 as well.


[AutoRelease] t2-redisenterprise-2022-11-22-20888(can only be merged by SDK owner)

https://github.com/Azure/sdk-release-request/issues/3449
Live test success
https://dev.azure.com/azure-sdk/internal/_build?definitionId=2368

issue link:https://github.com/Azure/sdk-release-request/issues/3449


Line auto-labeling

Putting labels nicely over the plot lines is a chore-- Ideally something like how matplotlib labels contour lines would be pretty nifty:
https://stackoverflow.com/questions/26768322/matplotlib-plot-label-along-plot-line
or this:
https://pypi.org/project/matplotlib-label-lines/
?

Solved by #18


unexpected EOF while decoding 260 bytes

Maybe you could help me solving my issue.
I've posted all necessary information in issue https://github.com/prashanthpai/sunrpc/issues/3 because I thought it could be an issue with his library.
Now we figured out that it is more an issue with variable length opaque data on the decoding side ;)
If you want me to paste all information from the other issue in this issue, I'll do that.
Thanks :)

Okay, so it is not directly an issue with the variable length opaque, but with the following uint32 in combination with the []byte structure.
If I change the structure to
type ClientOwner4 struct {
	CoVerifier Verifier4
	CoOwnerID  []byte
}

type EXCHANGEID4args struct {
	EiaClientOwner    ClientOwner4
	//EiaFlags          uint32
	EiaStateProtect   StateProtect4
	EiaClientImplID   NfsImplID4
}

It works partially.
The CoOwnerID got the correct values, but I think the mapping is wrong for the following data structures.
The StateProtect4 and NfsImplID4 are getting the wrong values and I think this is because I skipped the uint32 in between.
Do you have an idea how to fix the issue?

Ok. Got it.
I haven seen, that the EiaClientImplID has to be an array :rofl:


Keras bindings for Deeplearning4j

This is a feature request: We'd like to build Keras bindings for Deeplearning4j, so that Keras could act as DL4J's Python API. Anyone interested in working with us on this is welcome to respond here for contact us at<EMAIL_ADDRESS>

Hi, I am interested in building Keras. I just wonder what exactly shall I do? Is there any request on skill before I work on it? And my email is below<EMAIL_ADDRESS>Welcome to contact me.

@chrisvnicholson I am interested in writing the Keras bindings for D4J

Thanks for stepping up! So here's how we're thinking about this now:
The ideal approach would be calling a method like Keras.save in the cell of a notebook so that gives us the NN configuration, and a server sucks that config in and runs the training on the Deeplearning4j backend. That’s how Hadoop streaming works to run Mapreduce jobs from Python. They just connect over a standard out and we would too.
So our main work right now will be to achieve feature parity with Keras on the Scala side.
We just built support for Keras's functional API:
https://github.com/deeplearning4j/deeplearning4j/commit/9f103ff10ce2405ed16ffb8c6574aa16988bf1ac

@chrisvnicholson this can probably be succeeded by https://github.com/fchollet/keras/issues/6042

@chrisvnicholson  is it still on? I would like to work on it as well!

@kshitij12345 we're working on an autodiff module for nd4j right now. still a lot to do to get all the ops needed for a keras backend. Once we're ready to do so, integration should be straightforward and help appreciated.
I'll keep you posted! feel free to ping me for more info.

@kshitij12345 yes this is ongoing. This was a bigger effort than we thought it would be. It turned out we basically had to implement basically "pytorch/tensorflow" including all the ops. The original plan is still in place. We plan on supporting this via our python interface jumpy: https://github.com/deeplearning4j/jumpy - we will likely finish this when our migration to the eclipse foundation is finished and 1.0 is out. That will be later this year.

I would really love to be part of this development under guidance and
contribute to project. So please let me know if there's something that I
can work on till then I ll take a look at
https://github.com/deeplearning4j/jumpy and get a feel for it.
Thank You very much
On Tue, Feb 6, 2018 at 6:34 AM, Adam Gibson<EMAIL_ADDRESS>wrote:

@kshitij12345 https://github.com/kshitij12345 yes this is ongoing. This
was a bigger effort than we thought it would be. It turned out we basically
had to implement basically "pytorch/tensorflow" including all the ops. The
original plan is still in place. We plan on supporting this via our python
interface jumpy: https://github.com/deeplearning4j/jumpy - we will likely
finish this when our migration to the eclipse foundation is finished and
1.0 is out. That will be later this year.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/keras-team/keras/issues/4651#issuecomment-363274913,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ASmbbOch1KyRotwX-Z_RwxVbcgFWapJTks5tR6UxgaJpZM4LII8E
.

@kshitij12345 we  would love to have you, please join the deeplearning4j gitter: https://github.com/deeplearning4j/jumpy and take a look at snapshots. The main thing I've been wanting to clean up with jumpy is how it handles the jar file. A seamless default jar file (instead of the uber jar build instructions there) would be great. We already have import and samediff itself working. To be clear, this will involve some interaction with java though. The whole point of jumpy is to be a fast python interface (at the c level) to Java Native Interface up to the Java Virtual machine to run nd4j commands. The basics are there though. For some of the benefits and intent see: https://www.slideshare.net/agibsonccc/strata-beijing-2017-jumpy-a-python-interface-for-nd4j
The general idea here is to push something in to the spark ecosystem that's more purpose built for ndarrays specifically over the networking approach that spark currently uses (which eliminates any useful gains you would see from interacting with the gpu and the like)

I would also be glad to join this effort! Just joined the deeplearning4j gitter. Is there anything we can start working on?

Coordinate with @maxpumperla and @farizrahman4u in the gitter. Thanks for the interest!

Hey, I will also like to join the effort. Where can I start from?

@akshaysharma096 I've created a public gitter channel to coordinate work on this. Maybe others want to join as well. It's a little early still, but we could use some momentum. :)

https://gitter.im/deeplearning4j/dl4j-keras-backend

Sure @maxpumperla :)
Thank you so much!

It's been quite a while since there were updates on this. I'm closing the issue but feel free to reopen if necessary.


Todo for 1.1

Change author from "Khoshnood" to "Raaz"
Add tooltip hover for plugin menu
Create releases to use instead of using commit IDs

Will only do this stuff if user feedback comes requesting some changes.

Also update compass tooltip


Flutter web requires internet to debug when running in Canvas mode

Per
https://twitter.com/lesnitsky_dev/status/1533585292023717889
On the surface, this looks similar to https://github.com/flutter/flutter/issues/60069, but flagging it since it looked like that was fixed for CanvasKit?
At the very least, we should document any necessary steps to prepare a machine for offline work. /cc @kevmoo

Hi @timsneath, Thanks for filing the issue. Running a flutter web app fully offline with canvaskit is currently not supported. Because canvaskit in offline mode still tries to fetch the fallback fonts from google fonts (fonts.google.com), However HTML renderer should work fine flutter run -d chrome --web-renderer html.
The fully offline support for canvaskit is being tracked here #60069. Closing as the duplicate of the linked issue. In case you disagree feel free to write in the comments and we will reopen it.
Thank you.
cc: @yjbanov

Steps to reproduce:

Run flutter create test_web
cd test_web
flutter run
Turn internet off (disable wifi for example)
Open _http://localhost:64731/#/_
See GET<EMAIL_ADDRESS>net::ERR_INTERNET_DISCONNECTED error in console
So the main question is: why not to put canvaskit.js right next to the other local files when debugging?


pkgs.prometheus-unifi-exporter no longer exists

https://github.com/NixOS/nixpkgs/blob/4633a7c72337ea8fd23a4f2ba3972865e3ec685d/nixos/modules/services/monitoring/prometheus/exporters/unifi.nix#L60

It was removed in https://github.com/NixOS/nixpkgs/commit/826bef9b514bd5ceb5af55ccd79592778de03277. Let's remove the module as well: https://github.com/NixOS/nixpkgs/pull/360193


add filename to Filesystem config update failure

Signed-off-by: wangkai19<EMAIL_ADDRESS>Commit Message: add filename to Filesystem config update failure
Additional Description: N/A
Risk Level: low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A

issue #24218

/assign @tyxia


Slider Pro with foundation 5

Hi there,
Your slider is working pretty good with many property that can be control with js scripts.
However, i'm stuck with the layout below.
Since the structure with foundation 5 is:

Main photo in here

Descriptions in here

Thumbnails in here

I notice that your script moving main photo, descriptions to your div, then make my div empty to make your slideshow.
Is there anyway for me to keep my html format?
Best regards,

Hi,
If you add a main slide image, it will be moved inside a container element. This has some purposes. This can be avoided by not adding the sp-image class to the image, but then it won't be resized automatically anymore. Also, you can chose to add your image as a layer.
Cheers.


[MPWG  Request] Onboard a New Vendor - Burbank Shipping Center, BSC

MicroProfilers have talked and agreed on the 23 communities who are tentative the recipients of the swag (shirts- purchased & 5000 stickers [still awaiting purchased linked to shipping matters location] ) refer to [Swag 2021] Distribution logistics #688
Message from the new Vendor after much discussion on their services:
Thank you and can’t wait to work together
-Monique Petrossian
Burbank Shipping Center - A Mother/Daughter Operation - All Female owned and managed
1812 W. Burbank Blvd
Burbank CA 91506
(818)846-1400
<EMAIL_ADDRESS>https
cc.Authorization.Form.pdf
://github.com/eclipse/microprofile-marketing/issues/692#issuecomment-1160863987

Related to this ticket:

[ Swag] Find a Shipping Global Partner #692, MP wishes to collaborate with Burbank Shipping Center to ship the 380 shirts  currently stored at Deluxe Printing Center in Los Angeles.
#692 contains the information about costs estimates, USPS, only. We are interested in the USPS service delivery as seen on PDF https://drive.google.com/drive/u/0/folders/1sRgUXDmeQPOJBbweBRvUeriIWfYpTuP0, which includes the discounts.

[Swag] MP Stickers for 2021 t-shirt distribution - Costs #687  Microprofilers decided that 5000 stickers will be distributed with the 380 shirts3.

[Swag 2021] Distribution logistics #6884.

 [SWAG] T-shirt Purchase Request on behalf of the MPWG #633.  380 shirts were purchased.

** Process of purchasing Shipping from BSC:**
MP submits the order (s) privately to BSC via an excel sheet that contains:

names
addresses
phones
sizes & quantity

BSC submits to MP via private excel sheet :

the USA and/or international tracking numbers so that MicroProfilers inform the community etc.

In addition<EMAIL_ADDRESS>has been created as a private mailing list where trusted access is given to thus far 5 MicroProfilers who are waiting for the Shipping Vendor to be approved to initiate contact and secured shipping information with the 2021 -Shirt Swag - Distribution Plan - Global Communities

@aeiras as discussed during our community call, I wish to collaborate with this task, please assign me to own this ticket!!

Your actions are beautiful, Emerson!
Please see the #598 ticket and use it as a reference for the process.
https://github.com/eclipse/microprofile-marketing/issues/598

The request has been submitted to the MicroProfile Working Group: https://www.eclipse.org/lists/microprofile-wg/msg01555.html

Current Status:
Based on 2 meetings this week : Marketing and Community Call ,  Burbank Shipping Center (BSC) is now an authorized EF Supplier
Next Steps: [WIP]

[ ] Meet with @dalexandrov to get an update on the discussion about next action items
[ ] Define action items list with scope and outcomes
[ ] Execution

Amazing work, @emecas!!!

@emecas,
While we await for the EF team to get back to us as their point of contact to proceed, is it OK for you that via Email, I formally introduce you to the two swag Vendors, Printer Deluxe and Shipping Center?

@emecas,
While we await for the EF team to get back to us as their point of contact to proceed, is it OK for you that via Email, I formally introduce you to the two swag Vendors, Printer Deluxe and Shipping Center?

Sure @aeiras , It is totally OK,  I sent a initial contact to Monique from BSC about 2-3 week ago at 08/26, but I did not get a reply.

Thank you, Emerson. Expect that email today. :)

completed. :) You rock, @emecas!


How to get projected 3d center GT?

I read your paper and I understand that you use the projected 3d center of objects
Is it maybe calculated by 3D Location GT and Camera parameters?
If you have the values of projected 3d centers, Can you share them with me? Thanks!
My email address<EMAIL_ADDRESS>

I misunderstand the paper. Closed the issue


NaiveDateTime - Json deserialize error: input contains invalid characters

cargo.toml
actix-web = { version = "^0.7", features = ["ssl"] }
diesel = { version = "^1.4", features = ["mysql", "chrono", "r2d2"] }
dotenv = "0.13.0"
serde = "1.0.80"
serde_derive = "1.0.80"
serde_json = "1.0.32"
chrono = { version = "0.4.6", features = ["serde"] }
futures = "^0.1"
env_logger = "^0.6"
failure = "^0.1.5"

Model:
#[derive(Deserialize, Serialize, Insertable, Debug)]
#[table_name = "answers"]
pub struct AnswerForm {
    pub question_id: i32,
    pub title: String,
    pub user_id: i32,
    pub created: NaiveDateTime,
}

Schema:
CREATE TABLE answers (
  id INT PRIMARY KEY AUTO_INCREMENT,
  question_id INT NOT NULL,
  title VARCHAR(255) NOT NULL,
  user_id INT NOT NULL,
  created TIMESTAMP NOT NULL
)

For a json input like this:
{
    "question_id": 1,
    "title": "something",
    "user_id": 1,
    "created": "2007-04-05T14:30Z"
}

I am getting error:
Error occured during request handling: Json deserialize error: input contains invalid characters at line 5 column 34

This could be a problem in chrono I am not sure.

This error is not from serde_json. I would recommend minimizing a failing test case to narrow down the problem.

Ah. Got the problem. NaiveDateTime expects ISO 8601 combined date and time without timezone. and I was passing the date in incorrect format. The timezone was mentioned and second was not mentioned. The correct format is 2007-04-05T14:30:30. Thanks.

Nice! Glad you figured it out.


Add google tracking manually if not using tessen

Description
This manually adds google tag manager tracking and, if a user opts out / has opted out of cookies (and thus Tessen is not used at all), it calls gtag() to send page views.
This also adds a NR Browser PageAction and a GA event to report when users click No.
For good measure, I also updated Segment sources for each of the sites to anonymize IP addresses in GA (if brought in by Tessen) and exclude IPs from Snowflake.
Sample site config
googleTagManager: {
  trackingId: 'ID_HERE',
  src: 'https://www.googletagmanager.com/gtag/js',
  options: {
    anonymize_ip: true,
  },
},

Related issues

Closes https://github.com/newrelic/docs-website/issues/1331

Added a few suggestions for you 😄 . Feel free to move forward without my approval if so you don't get help up. Figured I'd at least comment on a couple places where you might be able to provide a bit of improvement.

Added a few suggestions for you 😄 . Feel free to move forward without my approval if so you don't get help up. Figured I'd at least comment on a couple places where you might be able to provide a bit of improvement.

Thanks a heap, @jerelmiller !  Much appreciated :)


Update README.md

Adam, could you try this:
pip install -e pyspextool@git+https://github.com/pyspextool/pyspextool.git

Ok, here's the recommendation from my hive mind:
For users:
pip install pyspextool@git+https://github.com/pyspextool/pyspextool.git

For developers:
git clone https://github.com/pyspextool/pyspextool.git
cd pyspextool
pip install -e ./

Also, when you use the -e install, you shouldn't need to re-install every time. You should be able to update the local files however you normally do (git pull) and your install should see the updated files.


[staging] tzdata: 2023a -> 2023c

Description of changes
https://mm.icann.org/pipermail/tz-announce/2023-March/000079.html

This release's code and data are identical to 2023a.  In other words,
this release reverts all changes made in 2023b other than commentary,
as that appears to be the best of a bad set of short-notice choices
for modeling this week's daylight saving chaos in Lebanon.

Things done

Built on platform(s)

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

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

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

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

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

[X] Fits CONTRIBUTING.md.

If it's identical, is it even worth updating?  I don't think there are many people building from staging, but it doesn't sound like a useful mass rebuild.

I see the argument. Functionally, the two versions are identical (I diffed the source files, they differ only in commentary, News file, documentation, version file). Regarding mass rebuild:

Does it make a difference for master?
To my understanding it does not, because the previous updates are not yet in staging-next, https://nixpk.gs/pr-tracker.html?pr=223405, so we would not cause a mass rebuild which anyway would happen.
Does it make a difference for 22.11?
As I understand it, it causes mass rebuild because this update would have to go into the next staging-next-22.11 cycle. The previous updates are already in the current staging-next, https://nixpk.gs/pr-tracker.html?pr=223423.

If the above is correct, maybe the solution is to update only for master and remove the backport-staging 22.11 label?
Or better not update at all, so that a future 2023a -> 2023d is easier to apply to both branches? Apart from the old looking version number, it should be just fine. If you are convinced this is better, you may close the PR without merging.

(I merged a stdenv rebuild right now, so why not.)


The content of input field when microphone is activated

When the microphone icon is pressed, the input field should be erased.
The input field in the second screenshot should be empty:

The current situation can be confusing - users can expect that the recorded text is appended (inserted) into the current text in the input field.

Yes. The feature of appending (or inserting) recorded text to the previous content could be useful in some rare cases, but it would complicate the main use case, where the users expect that the previous content is deleted immediately after using the mic icon.
(If there was a "valuable" text, the users can always find it in the history, so the deleting makes no harm.)

I did not want to have an append function.
I just wanted to make it obvious that the current input field content will be erased.
Only change the order: firstly remove the text and then record a new one.
I think it should behave the same way when you use the keyboard - you remove current text and write a new one.

I agree. We don't want the append function for audio input. This issue is about deleting the previous input text immediately after tapping the mic icon.
With the keyboard input the users can decide whether to delete the previous input (e.g. using the delete button) or whether to append/insert the new text - that's OK, of course.

I agree. We don't want the append function for audio input. This issue is about deleting the previous input text immediately after tapping the mic icon

Exactly

changed in version 0.9.15


HADOOP-18485. Upgrade hikari.version from 4.0.3 to 5.0.1.

JIRA: HADOOP-18485. Upgrade hikari.version from 4.0.3 to 5.0.1.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 50s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
detsecrets
0m  1s

detect-secrets was not available.

+0 :ok:
xmllint
0m  1s

xmllint was not available.

+0 :ok:
shelldocs
0m  1s

Shelldocs was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+0 :ok:
mvndep
15m 41s

Maven dependency ordering for branch

-1 :x:
mvninstall
23m 36s
/branch-mvninstall-root.txt
root in trunk failed.

+1 :green_heart:
compile
25m  1s

trunk passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
compile
22m 35s

trunk passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07

+1 :green_heart:
mvnsite
20m 18s

trunk passed

+1 :green_heart:
javadoc
8m 46s

trunk passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javadoc
7m 40s

trunk passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07

+1 :green_heart:
shadedclient
36m 24s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 33s

Maven dependency ordering for patch

-1 :x:
mvninstall
5m 34s
/patch-mvninstall-root.txt
root in the patch failed.

+1 :green_heart:
compile
23m 50s

the patch passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javac
23m 50s

the patch passed

-1 :x:
compile
8m 28s
/patch-compile-root-jdkPrivateBuild-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07.txt
root in the patch failed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07.

-1 :x:
javac
8m 28s
/patch-compile-root-jdkPrivateBuild-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07.txt
root in the patch failed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07.

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

-1 :x:
mvnsite
3m 28s
/patch-mvnsite-root.txt
root in the patch failed.

+1 :green_heart:
shellcheck
0m  0s

No new issues.

+1 :green_heart:
javadoc
9m  1s

the patch passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04

-1 :x:
javadoc
3m 23s
/patch-javadoc-root-jdkPrivateBuild-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07.txt
root in the patch failed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07.

-1 :x:
shadedclient
22m  6s

patch has errors when building and testing our client artifacts.

_ Other Tests _

-1 :x:
unit
321m 43s
/patch-unit-root.txt
root in the patch failed.

+1 :green_heart:
asflicense
1m 28s

The patch does not generate ASF License warnings.

535m  8s

Subsystem
Report/Notes

Docker
ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5094/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/5094

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint shellcheck shelldocs

uname
Linux c63bd2bc2f18 4.15.0-191-generic #202-Ubuntu SMP Thu Aug 4 01:49:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / b45694a9cbdc13a58511242ef4d6a9c21439ac69

Default Java
Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5094/1/testReport/

Max. process+thread count
3326 (vs. ulimit of 5500)

modules
C: hadoop-project . U: .

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-5094/1/console

versions
git=2.25.1 maven=3.6.3 shellcheck=0.7.0

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

Thanks @slfan1989 for the your contribution. Any CVE or security issue related for this update? Normally updating packages do affect downstream projects

@ashutoshcipher Thank you very much for your help to review this pr, I didn't pay attention to HikariCP 5.0 can only support JDK11, we can get this information from the following link.
https://github.com/brettwooldridge/HikariCP/issues/1816


Help with simple example

Hello,
I am currently using https://github.com/msavin/SteveJobs for handling jobs, but I have one intensive CPU jobs that I want to be able to move to this package.
This job is simple, it just call a meteor method with some params.
I have read the blog article, forum thread and README, but is is unclear to me what to do, is there any way you can make an example so that I can relate to ?
Thanks

Hello, sure a simple example would be :
import { Meteor } from 'meteor/meteor'
import { Cluster, TaskQueue } from 'meteor/nschwarz:cluster'

function computeSomeHeavyThings(x) {
    const computedValue = 36 + x
    // you can also fetch from any collection here or call a meteor method
    return computedValue
}

const taskMap = {
    'MyHeavyJob': job => computeSomeHeavyThings(job.data.x),
}

function onJobsDone({ value, task }) {
    console.log(value) // 36 + (3 * 6 * 8) => 180
}

const cluster = new Cluster(taskMap)
Meteor.startup(() => {
    if (Cluster.isMaster()) {
        TaskQueue.addEventListener('done', onJobsDone)
        TaskQueue.addTask({ taskType: 'MyHeavyJob', data: { x: 3 * 6 * 8 }})
    }
})

Thank you so much, I had this feeling that this was simple to set up, but could not grasp it ! Thanks again


S3 Upload API should provide a writeable stream

Describe the feature
TransferUtility should have a method along the lines of Stream GetUploadStream(string bucket, string key).
Use Case
The idiomatic way to write data to a stream in .NET is very straightforward: you get a stream that references the destination you want to write to, and you write your data into it.  Save to a file?  Open a FileStream referencing that filename, and write to it.  Send data over a network?  Get a NetworkStream that connects to the other system and write to it.  Buffer data in memory?  Get a MemoryStream and write to it.  And so on.
But for writing data to S3, both TransferUtility and IAmazonS3 are missing the expected "get a stream and write to it" API.  Instead, they have a rather backwards "give me a read stream to upload" API, which seems entirely pointless.  It requires the entire complete object to be present and with Size available, which kind of defeats the entire purpose of using a Stream.  If you are trying to upload a file, there are already filename-based APIs, and for any other use case this just doesn't work particularly well.
In any use case where data is being generated dynamically instead of uploading an existing file, or simply processing existing files (compression, encryption, etc,) the current API is very difficult to use.
Proposed Solution
I'm well aware that this is not the way the S3 REST API works under the hood, but the point of TransferUtility is to provide a high-level API that abstracts away the low-level details and is convenient to work with.  And what it provides right now is quite inconvenient to work with; just Google "c# upload stream to s3" to see how common it is for people to hit this wall!
This could be implemented under the hood by a custom stream that wraps a MemoryStream and initiates the upload on close.  Or it could be fixed by improving the underlying S3 API and adding a websocket-based upload that provides a writeable stream.
Other Information
No response
Acknowledgements

[ ] I may be able to implement this feature request
[ ] This feature might incur a breaking change

AWS .NET SDK and/or Package version used
NuGet package v. <IP_ADDRESS>
Targeted .NET Platform
.net 6
Operating System and version
Windows 10

@masonwheeler Thanks for submitting feature request. For dynamic streams, you would also need to set content-length, refer https://github.com/aws/aws-sdk-net/issues/675#issuecomment-311160927. There is a workaround proposed in https://github.com/aws/aws-sdk-net/issues/675#issuecomment-571725444, but I'm unsure how it would be feasible for your scenario which has direct access to steam.

@ashishdhingra The workaround does not help, as it's specifically dealing with uploading pre-existing read streams.  What is requested here is providing a write stream.

@dzmitrykarnitski-na If you don't mind using 3rd library, I am using this, https://github.com/jasonterando/S3BufferedUpload which uses multi-part uploads under the hood.


[FABC-892] Includes pkcs11 under bccsp section of default config files

Type of change

Bug fix

Description
This fixes an issue with environment variables that are ignored by the fabric-ca-server and fabric-ca-client when they don't exist in the config file. Previous behavior prevented the use of environment variables to initialize Fabric CA integrated with an HSM.
Related issues
FABC-892

First, thanks for the contribution.  But I'm not sure we really want to do this.  I'd prefer that perhaps we document this somewhere (basically you cannot override config with environment variables in the config does not exist).  Generally speaking, we need to stop thinking that config files and environment variables are interchangeable.

@mastersingh24 I'm ok with this decision. But I still wonder if it would be better to be explicit in the configuration template than to omit some options ... since it is a template ...

One more interested: https://github.com/hyperledger/fabric-ca/pull/83#issuecomment-584677808

@mastersingh24 what's the consensus on this? This has been open for some time now and it's likely we should reach a decision.

Given the age of this PR, the fact the test checks are not passing, and the comments from @mastersingh24, I'm going to close this PR.
We do appreciate your efforts to help improve the project and do hope you continue to engage. Thanks.


Ability to preload a model?

Is it possible to preload a model without actually using it? For example if the users starts typing his request, it would be useful to be able to "preload" the model, instead of just loading it once the request is submitted.

I believe that the CLI accomplishes this with by making a generate call with an empty prompt.

Eas is correct, an empty request to the /chat, /generate, or /embeddings endpoint will preload a model.
Here's what the looks like with cURL:
curl http://localhost:11434/api/generate -d '{
    "model": "mistral"
}'

curl http://localhost:11434/api/chat -d '{
    "model": "mistral"
}'

curl http://localhost:11434/api/embeddings -d '{
    "model": "mistral"
}'

You can do it with empty messages/prompts in the SDKs too.
Leaving this open for now as this should be documented somewhere.

I experience a slow response when request with /api/chat, as if it starts the model first then process the request.
Consequent requests is still slow, while on cli it works much faster, like a few seconds.
I don’t have a powerful system with GPU. I have a 11th gen i5 mini pc with 16GB. Running Llama2 or Mistral runs fine.

Does anyone know why the initial API call to /chat (with an empty list of messages) still causes a CPU-Usage Spike (up to 10s) when starting the same model via ollama run .., even when the model is already loaded (judging from Memory usage of ollama serve)?
Perhaps the default Pre-Prompt is evaluated? Is it possible to cache that computation somehow?
The log look like this:
Feb 10 16:48:34 ollama[3332]: [GIN] 2024/02/10 - 16:48:34 | 200 |      18.921µs |       <IP_ADDRESS> | HEAD     "/"
Feb 10 16:48:34 ollama[3332]: [GIN] 2024/02/10 - 16:48:34 | 200 |     323.252µs |       <IP_ADDRESS> | POST     "/api/show"
Feb 10 16:48:34 ollama[3332]: [GIN] 2024/02/10 - 16:48:34 | 200 |     328.492µs |       <IP_ADDRESS> | POST     "/api/show"
Feb 10 16:48:43 ollama[3332]: [GIN] 2024/02/10 - 16:48:43 | 200 |  8.891859947s |       <IP_ADDRESS> | POST     "/api/chat"
Feb 10 16:52:24 ollama[3332]: [GIN] 2024/02/10 - 16:52:24 | 200 |      18.011µs |       <IP_ADDRESS> | HEAD     "/"
Feb 10 16:52:24 ollama[3332]: [GIN] 2024/02/10 - 16:52:24 | 200 |     340.832µs |       <IP_ADDRESS> | POST     "/api/show"
Feb 10 16:52:24 ollama[3332]: [GIN] 2024/02/10 - 16:52:24 | 200 |     265.222µs |       <IP_ADDRESS> | POST     "/api/show"
Feb 10 16:52:29 ollama[3332]: [GIN] 2024/02/10 - 16:52:29 | 200 |  4.443498171s |       <IP_ADDRESS> | POST     "/api/chat"
Feb 10 16:52:31 ollama[3332]: [GIN] 2024/02/10 - 16:52:31 | 200 |       16.83µs |       <IP_ADDRESS> | HEAD     "/"
Feb 10 16:52:31 ollama[3332]: [GIN] 2024/02/10 - 16:52:31 | 200 |     387.432µs |       <IP_ADDRESS> | POST     "/api/show"
Feb 10 16:52:31 ollama[3332]: [GIN] 2024/02/10 - 16:52:31 | 200 |     295.771µs |       <IP_ADDRESS> | POST     "/api/show"
Feb 10 16:52:35 ollama[3332]: [GIN] 2024/02/10 - 16:52:35 | 200 |  3.855491544s |       <IP_ADDRESS> | POST     "/api/chat"
Feb 10 16:54:01 ollama[3332]: [GIN] 2024/02/10 - 16:54:01 | 200 |       29.36µs |       <IP_ADDRESS> | HEAD     "/"
Feb 10 16:54:01 ollama[3332]: [GIN] 2024/02/10 - 16:54:01 | 200 |     342.092µs |       <IP_ADDRESS> | POST     "/api/show"
Feb 10 16:54:01 ollama[3332]: [GIN] 2024/02/10 - 16:54:01 | 200 |     277.661µs |       <IP_ADDRESS> | POST     "/api/show"
Feb 10 16:54:12 ollama[3332]: [GIN] 2024/02/10 - 16:54:12 | 200 | 10.302476638s |       <IP_ADDRESS> | POST     "/api/chat"

Should the model stay loaded? In my case it seems that it is being unloaded after a few minutes of inactivity. While this might not be a problem with fast loading models , it is extremely painful with larger ones like mixtral-8x7b-instruct-v0.1.Q8_0.gguf. I am on a i7 w/64Gb Ram and RTX3080 w/16Gb, using the SDK. Thanks.

I've updated that FAQ to cover both situations (pre-loading models as well as controlling how long models are loaded into memory. I think people were missing this in the API docs.
The TL;DR is:

to preload a model, send an empty request with the model you want
to unload a model, use the keep_alive parameter and set it to 0

A slight variation on this - it would be really good if there was a setting in the config file (load default model on startup) - having to write a script to hit the model once on startup is kinda annoying. Also for a large model (eg Mixtral 8x22b) off the shelf clients will time out.


🚀 [Feature Request] - Create Grabtern a PWA ( progressive web app)

Is your feature request related to a problem ? Please describe. ✍
Create grabtern a progressive web app;
Describe briefly how you would implement this enhancement.
Null

Additional context or screenshots

Are you contributing for a program?
GSSoC2023
Code of Conduct

[X] I have read and agree to the Contributing Guidelines of this project.

@anmode Can I try ?
And one thing in offline mode is if I use an illustration that says to go to online mode to view the site. Is it ok??

Sure

@anmode Hey is it ok?
Can I create the PR?
https://github.com/anmode/grabtern-frontend/assets/94003231/f0a53200-16df-4b11-93e7-b3b64092c072


merging local_settings.py + th_settings*.py to .env file

Using of django-environ
This will permit to drop 3 files and provide a sample env.sample will all the TH_* and DANGO_TH vars
This issue has to be done before issue #188

@foxmask i want to work on this issue, can i take it up ?

if you want to participate to the hacktoberfest, register and wait for october 1rst before submitting the PR.

at the beginning of th_settings.py we will need to add
import environ

ROOT_DIR = environ.Path(__file__) - 1
APPS_DIR = ROOT_DIR.path('django_th')
env = environ.Env()
env_file = str(ROOT_DIR.path('.env'))
print('Loading : {}'.format(env_file))
env.read_env(env_file)
print('The .env file has been loaded. See settings.py for more information')

and create the file .env in the django_th folder
with all the environment variables eg:
DJANGO_TH_PAGINATE_BY=5
DJANGO_TH_PUBLISHING_LIMIT=2
DJANGO_TH_PROCESSES=1
DJANGO_TH_FAILED_TRIES=2
DJANGO_TH_FIRE=True
DJANGO_TH_DIGEST_EVENT=False

TH_EVERNOTE_SANDBOX=False
TH_EVERNOTE_CONSUMER_KEY=
TH_EVERNOTE_CONSUMER_SECRET=

TH_GITHUB_USERNAME=
TH_GITHUB_PASSWORD=
TH_GITHUB_CONSUMER_KEY=
TH_GITHUB_CONSUMER_SECRET=

TH_PUSHBULLET_CLIENT_ID=
TH_PUSHBULLET_CLIENT_SECRET=

TH_TODOIST_CLIENT_ID=
TH_TODOIST_CLIENT_SECRET=

TH_TUMBLR_CONSUMER_KEY=
TH_TUMBLR_CONSUMER_SECRET=

TH_TRELLO_CONSUMER_KEY=
TH_TRELLO_CONSUMER_SECRET=

TH_TWITTER_CONSUMER_KEY=
TH_TWITTER_CONSUMER_SECRET=

do you plan to handle the issue or can I accept the PR #193 ?
We have new module that will need all of this, that will be great to have that improvment :)


The image is blurred on android 11

Environment

OS: [e.g. Windows10]
scrcpy version: [e.g. 1.19]
installation method: [Windows release]
device model: Rockchip PX30
Android version: [e.g. Android  11]

I upgraded my Evaluation Board(RK PX30) to android 11.
The image is blurred.
I can’t read the words, it’s very unclear.
It is very fine on android 8.
I modified some parameters ( --bit-rate) ,but it still didn't work.
I ran QtScrcpy and it was clear.
Thank you for your help.

Is it more clear if youbresize to pixel-perfect by pressing Alt+g?
Also see https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#the-quality-is-low

I appreciate your help very much.

Did this fix your issue:

scrcpy.exe > Properties > Compatibility > Change high DPI settings > Override high DPI scaling behavior > Scaling performed by: Application

?


⚠ ESPN has degraded performance

In 803baff, ESPN (https://espn.com) experienced degraded performance:

HTTP code: 200
Response time: 1106 ms

Resolved: ESPN performance has improved in 2e91304.


Fix Automated configuration drift detection for CloudRun phase

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?:

NONE

💯
/lgtm

btw, I think the PR title should be Update Automated configuration drift detection for CloudRun feature status @knanao

Thank you.
/approve

/changelog


EUR lending not working in Bitfinex

Bot fails to lend EUR in Bitfinex. It shows the following error in the log: Error USD_EUR.
I added EUR in the currencies list in default.cfg. I also modified line 33 in Bitfinex.py, as @rnevet sugested.
[BITFINEX]
# Full list of supported currencies
all_currencies = USD,BTC,BCH,ETH,XRP,IOT,XMR,LTC,OMG,ETC,EOS,DSH,ZEC,EUR

	self.baseCurrencies = ['USD', 'BTC', 'ETH', 'EUR']

Traceback (most recent call last):
  File "lendingbot.py", line 94, in <module>
    Lending.lend_all()
  File "/home/xxxx/bots/bitfinex/poloniexlendingbot/modules/Lending.py", line 247, in lend_all
    usable_currencies += lend_cur(cur, total_lent, lending_balances, ticker)
  File "/home/xxxx/bots/bitfinex/poloniexlendingbot/modules/Lending.py", line 444, in lend_cur
    raise msg
KeyError: u'USD_EUR'

v312
 Unhandled error, please open a Github issue so we can fix it!

Lending EUR seems to be working now. But the message Error USD_EUR still shows up every time.

Maybe this would solve the issue:
In Bitfinex.py, change from (lines 273 - 282)
        except Exception as e:
                msg = str(e)
                # "Invalid offer: incorrect amount, minimum is 50 dollar or equivalent in USD"
                if "Invalid offer: incorrect amount, minimum is 50" in msg:
                    usd_min = 50
                    cur_min = usd_min
                    if currency != 'USD':
                        cur_min = usd_min / float(self.return_ticker()['USD_' + currency]['lowestAsk'])

                    raise Exception("Error create_loan_offer: Amount must be at least " + str(cur_min) + " " + currency)

to
        except Exception as e:
                msg = str(e)
                # "Invalid offer: incorrect amount, minimum is 50 dollar or equivalent in USD"
                if "Invalid offer: incorrect amount, minimum is 50" in msg:
                    usd_min = 50
                    cur_min = usd_min
                    if currency != 'USD':
                        if currency = 'EUR':
                             cur_min = usd_min / float(self.return_ticker()['USD_' + 'BTC']['lowestAsk']) * float(self.return_ticker()['BTC_' + 'EUR']['lowestAsk'])
                       else:
                        cur_min = usd_min / float(self.return_ticker()['USD_' + currency]['lowestAsk'])

                    raise Exception("Error create_loan_offer: Amount must be at least " + str(cur_min) + " " + currency)

Something is still wrong. It is lending euro most of the time, but sometimes it doesn't. And I get this error message now Error EUR_BTC.
It also does not show how much an EUR worth in the webserver.

Same issue !

Workaround:
Set in separate coin section
[EUR]
minloansize = 45

getJSON failed, status: parsererror, error: SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data
Onlyuu on Bitfinex, Poloniex work fine


Using the for syntax for rendering iterators hides the elements from the parent component

Problem
The two different syntaxes for generating HTML from iterators produce different results.
Specifically it's the for syntax that doesn't behave as expected because it generates a single node which contains the elements.
This means that when you use Children::iter it only yields a single element (the thin wrapper around the children) instead of all children from the iterator.
Steps To Reproduce
Steps to reproduce the behavior:

Have a component which maps each child before rendering. Something as simple as wrapping each child in a div tag will do.
Pass children to this component first using the Vec syntax (Syntax Type 1) and observe how each child is properly wrapped in a div tag.
Do the same but this time using the for syntax  (Syntax Type 2). This time all children are wrapped in the same div tag.

Expected behavior
I would expect both syntaxes to produce the same result OR see the difference clearly documented.
Because the for syntax creates a thin wrapper around the list that isn't visible in the final HTML I think there's no way to justify this behaviour. I believe it should be adjusted to match  the behaviour of the other syntax.
I haven't tested this but if the current effect is actually desired it can still be reproduced by placing the  iterator block in a fragment.
Questionnaire

[x] I'm interested in fixing this myself but I would like to discuss the strategy first ;)

I believe it should be adjusted to match the behaviour of the other syntax.

Agreed! Happy to discuss strategy if needed :)

I finally started looking into this and I immediately got confused because from looking at the implementation the two syntaxes should really produce the same results.
So I started with a test and sure enough, they both produce a virtual list.
I forgot that there's a third way to pass children to components - you can pass a vector of html directly. This method works the way I would expect.
I still think this should be changed but it's no longer really a bug since the documented methods work consistently in that they both produce the 'wrong' results.


brew search  returns SSL certificate failure

[x] are reporting a bug others will be able to reproduce and not asking a question. If you're not sure or want to ask a question do so on our Discourse: https://discourse.brew.sh
[x] ran a brew command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.
[x] ran brew update and can still reproduce the problem?
[x] ran brew doctor, fixed all issues and can still reproduce the problem?
[x] ran brew config and brew doctor and included their output with your issue?

To help us debug your issue please explain:

What you were trying to do (and why)
Search for formula.

What happened (include command output)
I get back some SSL certificate failure:

$ brew search vim
Error: SSL_connect returned=1 errno=0 state=error: certificate verify failed
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/net/protocol.rb:44:in `connect_nonblock'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/net/protocol.rb:44:in `ssl_socket_connect'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/net/http.rb:928:in `connect'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/net/http.rb:852:in `start'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/open-uri.rb:319:in `open_http'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/open-uri.rb:737:in `buffer_open'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/open-uri.rb:212:in `block in open_loop'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/open-uri.rb:210:in `catch'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/open-uri.rb:210:in `open_loop'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/open-uri.rb:151:in `open_uri'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/open-uri.rb:717:in `open'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions/Casks/gpg-suite-nightly.rb:7:in `block (2 levels) in load'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/dsl.rb:161:in `block (2 levels) in url'
/usr/local/Homebrew/Library/Homebrew/lazy_object.rb:8:in `__getobj__'
/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/delegate.rb:80:in `method_missing'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions/Casks/gpg-suite-nightly.rb:12:in `block in load'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask.rb:40:in `instance_eval'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask.rb:40:in `initialize'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:32:in `new'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:32:in `cask'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:76:in `cask'
/usr/local/Homebrew/Library/Homebrew/compat/hbc/cask_loader.rb:15:in `cask'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:122:in `cask'
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions/Casks/gpg-suite-nightly.rb:1:in `load'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:59:in `instance_eval'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask_loader.rb:59:in `load'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask.rb:21:in `block in each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask.rb:19:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/cask.rb:19:in `each'
/usr/local/Homebrew/Library/Homebrew/searchable.rb:27:in `select'
/usr/local/Homebrew/Library/Homebrew/searchable.rb:27:in `search_string'
/usr/local/Homebrew/Library/Homebrew/searchable.rb:7:in `search'
/usr/local/Homebrew/Library/Homebrew/extend/os/mac/search.rb:29:in `search_casks'
/usr/local/Homebrew/Library/Homebrew/cmd/search.rb:83:in `search'
/usr/local/Homebrew/Library/Homebrew/brew.rb:87:in `<main>'

What you expected to happen
A list of formula containing "vim"

Step-by-step reproduction instructions (by running brew commands)
brew search vim

Output of brew config and brew doctor:
$ brew config
HOMEBREW_VERSION: 1.7.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: b119591c6963bff320501f52f9029e4862c00e97
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: f36fec1af49581a4a95ef4e3acc0a0b0a263968e
Core tap last commit: 18 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_NO_AUTO_UPDATE: 1
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 9.1 build 902
Git: 2.18.0 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 10.0.2, 10.0.1, 9.0.4, 1.8.0_181, 1.8.0_172
macOS: 10.13.6-x86_64
CLT: <IP_ADDRESS>.1.1527767617
CLT headers: N/A
Xcode: 9.4.1
XQuartz: N/A

$ brew doctor
Your system is ready to brew.```

This is an issue with your machine in connecting to GitHub.

@MikeMcQuaid I have no problem cloning repositories from GitHub from the same terminal, so I don't believe my machine has any issue connecting to GitHub. Could you provide any other ideas to further troubleshoot or run some other commands to test what exactly is going wrong here?

@kaspermalfroid Try to use curl to connect to api.github.com.

$ curl https://api.github.com
{
  "current_user_url": "https://api.github.com/user",
  "current_user_authorizations_html_url": "https://github.com/settings/connections/applications{/client_id}",
  "authorizations_url": "https://api.github.com/authorizations",
  "code_search_url": "https://api.github.com/search/code?q={query}{&page,per_page,sort,order}",
  "commit_search_url": "https://api.github.com/search/commits?q={query}{&page,per_page,sort,order}",
  "emails_url": "https://api.github.com/user/emails",
  "emojis_url": "https://api.github.com/emojis",
  "events_url": "https://api.github.com/events",
  "feeds_url": "https://api.github.com/feeds",
  "followers_url": "https://api.github.com/user/followers",
  "following_url": "https://api.github.com/user/following{/target}",
  "gists_url": "https://api.github.com/gists{/gist_id}",
  "hub_url": "https://api.github.com/hub",
  "issue_search_url": "https://api.github.com/search/issues?q={query}{&page,per_page,sort,order}",
  "issues_url": "https://api.github.com/issues",
  "keys_url": "https://api.github.com/user/keys",
  "notifications_url": "https://api.github.com/notifications",
  "organization_repositories_url": "https://api.github.com/orgs/{org}/repos{?type,page,per_page,sort}",
  "organization_url": "https://api.github.com/orgs/{org}",
  "public_gists_url": "https://api.github.com/gists/public",
  "rate_limit_url": "https://api.github.com/rate_limit",
  "repository_url": "https://api.github.com/repos/{owner}/{repo}",
  "repository_search_url": "https://api.github.com/search/repositories?q={query}{&page,per_page,sort,order}",
  "current_user_repositories_url": "https://api.github.com/user/repos{?type,page,per_page,sort}",
  "starred_url": "https://api.github.com/user/starred{/owner}{/repo}",
  "starred_gists_url": "https://api.github.com/gists/starred",
  "team_url": "https://api.github.com/teams",
  "user_url": "https://api.github.com/users/{user}",
  "user_organizations_url": "https://api.github.com/user/orgs",
  "user_repositories_url": "https://api.github.com/users/{user}/repos{?type,page,per_page,sort}",
  "user_search_url": "https://api.github.com/search/users?q={query}{&page,per_page,sort,order}"
}

Possibly important finding to mention: I am able to brew install formula, but not able to brew search formula.

I'm sorry, I'm not sure what else to suggest.


Open dialog throws error on cancel

Might happen to every dialog on cancellation.

Fixes https://github.com/camunda/camunda-modeler/issues/336


Implement Schnorr signatures

As a developer, I need a signature scheme that is efficient and composable in order to sign my blocks and eventually my transactions.
Definition of Done:

[ ] Signatures can be aggregated into one signature
[ ] Signatures can be made and verified according to the well-known Schnorr algorithm

https://github.com/bpfkorea/agora/pull/83


Fix bug #54: The navigation drawer should close first (if open) onBackPressed

@tiembo I've resolved conflicts.

Thanks!


NBpost16centre

@Bumpkin-Pi First stage of verification passed, official domain is nbp16c.org.uk as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@Bumpkin-Pi Thank you for your patience while waiting for a review and processing your request. Pull request merged. Thank you!


Recommended way to init JavaScript?

Wagtail docs suggest js_initializer, but that didn't seem to work.
This worked:
def render_form(self, *args, **kwargs):
    form = super().render_form(*args, **kwargs)
    return form + "<script>jsInitializer()</script>"

What is the recommended way?

That is right, the Python method js_initializer is removed with React StreamField.
Could you point to me the part of the Wagtail documentation mentioning js_initializer? I cannot find it.
js_initializer is just used to initialize the StreamField structure itself, not its block widgets.
So I’m also wondering: what is your use case? What are you trying to initialize, the JS from a block widget, or the JS from the StreamField itself?

Oops, not the docs. I think it was https://github.com/wagtail/wagtail/wiki/StreamField-blocks-API#js_initializerself
I would like to init JS of a block widget.

It works like the existing StreamField. Include an inline <script> tag at the end of your widget’s template.
Look at Wagtail for examples. For the date widget, it defines a custom widget that renders this template containing a script. It also references this JavaScript file that contains the front-end logic. It’s better to put as much logic in a JS file like this, so that each new block just contains a script like <script>initWidget("{{ widget.attrs.id|escapejs }}")</script>, reducing the browser loading time.


Add constraints file during installation of packages from pip in docs workflow

Description

Add usage of constraints in build docs process to reduce failed workflows caused by updates of dependency.
I also add a lower pin to typing-extension to keep min-req test working.
References

Type of change

[x] Bug-fix (non-breaking change which fixes an issue)

How has this been tested?

[ ] example: the test suite for my feature covers cases x, y, and z
[ ] example: all tests pass with my change
[ ] example: I check if my changes works with both PySide and PyQt backends
as there are small differences between the two Qt bindings.

Final checklist:

[ ] My PR is the minimum possible work for the desired functionality
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If I included new strings, I have used trans. to make them localizable.
For more information see our translations guide.

@Czaki docs are building here in this PR, but not in napari/docs -- do we need to port this to that repo too?

I think yes.

I merged main and looks like the docs issue is fixed for PRs in this repo:
https://github.com/napari/napari/actions/runs/5076767489/jobs/9119271941?pr=5618
But build docs action in PRs in docs repo still fail:
https://github.com/napari/docs/actions/runs/5059087523/jobs/9119586997
so looks like we need to port over this fix (and I guess it means some dependency update is crashing our examples?)


[Cycle.js Neo] Allow to manually unwrap APIs

As discussed in the big neocycle PR, this adds the applyApis function to manually unwrap apis at any point in your application. The nice thing is, that this is simply the code from makeMasterMain factored out together with some new types and tests.

@jvanbruegge The PR and the implementation look all good to me, I would merge it. :+1:  But before that I want to talk with you about the design and the bigger picture, which I'll comment in #929 since the conversation started there already.
So, don't merge this one yet.

which I'll comment in #929 since the conversation started there already.

Nevermind, I carefully read a bunch of stuff, reminded myself how things should work, and I have less questions. Just one question left:
Do I understand correctly that we need applyApis only if the parent wants to intercept the implicit sinks (created by the plugin's API class)? That is, in a "normal" Cycle.js main where we just want many of the children components using sources.HTTP.get we don't need to use applyApis, right?

Yes, exactly. This is just if some component that is not a master wrapper wants to intercept some children's implicit sinks


Use Helium API for hotspot info

Helium has an api for hotspot name searching: https://api.helium.io/v1/hotspots/name?search=
We can use this instead of the mapbox local search.
We can then use the distance search to pull all nearby hotspots after searching: https://api.helium.io/v1/hotspots/location/distance?lat=123.123&lon=123.123&distance=2000.

partially done in #73. Not using for search, but for hotspot info popups.

added external geocoder using the helium api for hotspot search #95


how to get SonicTheHedgehog-Genesis rom.md?

Issue summary
I want to train ai to play Sonic, but can't run game...
I can play Airstriker-Genesis, because it contains rom.md
I try find rom.md for sonic here, here but when I run game with loaded files I see blue window:(
System information

Win10
3.7
0.7.0

Here are two ways to get it to work with Retro Gym https://github.com/openai/retro, both of which involve getting the game from Steam - yes, it does cost $ but it's sometimes on sale, sometimes as part of a bundle with Sonic 2 and Sonic 3 & Knuckles.

Follow the unofficial instructions by @shun1024 - see https://github.com/openai/retro/issues/35 (OpenAI's @christopherhesse closed it and it seems to work for some folks). It may work with Windows.

pip install gym-retro
create a steam account and buy the following game
https://store.steampowered.com/app/71113/Sonic_The_Hedgehog/
python -m retro.import.sega_classics (this is to install the purchased games)
test with: https://contest.openai.com/details

or

Follow official instructions and get Sonic The Hedgehog from Steam. Download it. Then follow OpenAI's Retro Contest quickstart guide.

If you already have the games installed, you can import them directly:
python -m retro.import <path to steam folder>

To install the repo for the contest, which includes environment wrappers to set things up in the official way, run this:
git clone --recursive https://github.com/openai/retro-contest.git
pip install -e "retro-contest/support[docker,rest]"

Thanks for answering @8bitmp3!


Deflake kubeconfig rotation assertions in ManagedSeed e2e test

How to categorize this PR?

/area testing
/kind flake
What this PR does / why we need it:
This PR deflakes the kubeconfig rotation assertions in ManagedSeed e2e test:
The newClientCertificateIssuedAt time does not contain any nanoseconds, however the v.timeBeforeRotation does.
This was leading to failing tests in case the new client certificate was issued at the very same second like the v.timeBeforeRotation, e.g. timeBeforeRotation: 2022-09-02 20:12:24.058418988 +0000 UTC, newClientCertificateIssuedAt: 2022-09-02 20:12:24 +0000 UTC. Hence, let's round the times down to the second.
As a consequence, we now also consider the rotation successful when newClientCertificateIssuedAt >= timeBeforeRotation (before it was only >).
Which issue(s) this PR fixes:
Fixes #6618
Release note:

NONE

Is there any chance that there could be a false positive if the newClientCertificateIssuedAt is issued at 2022-09-02 20:12:24 +0000 UTC but timeBeforeRotation is almost 1 second after that - 022-09-02 20:12:24.999999999 +0000 UTC?

Is there any chance that there could be a false positive if the newClientCertificateIssuedAt is issued at 2022-09-02 20:12:24 +0000 UTC but timeBeforeRotation is almost 1 second after that - 2022-09-02 20:12:24.999999999 +0000 UTC?

The Truncate() call would still round 2022-09-02 20:12:24.999999999 +0000 UTC down to the nearest second, i.e. down to 2022-09-02 20:12:24 +0000 UTC. Then it's equal to the newClientCertificateIssuedAt and the test should pass.

Aha, quite interesting @plkokanov, good question! Theoretically this can happen, but practically there are quite some pod restarts involved in all rotations, so it's almost impossible (gardenlet redeployment, leader election, CSR creation and auto-approval will take more than 1s in sum).
Even if we tried to address this, I wouldn't have a good idea. We could read the kubeconfig before triggering the rotation and comparing it to the one after the rotation, however then we only know that "something changed" but we cannot properly assert the timing expectations.
I suggest keeping it as is for now, that's very likely good enough :)

One more idea would be to wait for 1s before triggering the rotation, but I guess you're right that the chance for the scenario I described to happen is slim.
/lgtm

/approve


Error pulling assets from s3 in Laravel 9

I am facing some issues when pulling assets php artisan lasso:pull from s3 filesystem during Github CI/CD.
For some reason, it fails to check for the assets zip file existence.
This is the error message I am receiving:
🏁 Preparing to download assets from "s3" filesystem.
⏳ Reading Bundle meta file...
⏳ Downloading bundle...
   League\Flysystem\UnableToCheckDirectoryExistence

  Unable to check existence for: lasso/global/pEaCXUnSNKBXNvP03RRT.zip

  at vendor/league/flysystem/src/UnableToCheckExistence.php:19
     15▕     }
     16▕
     17▕     public static function forLocation(string $path, Throwable $exception = null): static
     18▕     {
  ➜  19▕         return new static("Unable to check existence for: {$path}", 0, $exception);
     20▕     }
     21▕
     22▕     public function operation(): string
     23▕     {

      +43 vendor frames
  44  artisan:37
      Illuminate\Foundation\Console\Kernel::handle()
Error: Process completed with exit code 1.

Here is my s3 config:
's3' => [
      'driver' => 's3',
      'key' => env('AWS_ACCESS_KEY_ID'),
      'secret' => env('AWS_SECRET_ACCESS_KEY'),
      'region' => env('AWS_DEFAULT_REGION'),
      'bucket' => env('AWS_BUCKET'),
      'endpoint' => env('AWS_URL'),
],

I can confirm that the file does exist in the S3 bucket using tinker and web UI.
Psy Shell v0.11.8 (PHP 8.1.12 — cli) by Justin Hileman
>>> Storage::disk('s3')->exists('lasso/global/pEaCXUnSNKBXNvP03RRT.zip')
=> true

Hello @77media-creations I apologise for not replying to this. I'm going to close this for now but feel free to re-open if you need.


Use modern os facts

This turned into a bigger change than I originally imagined...
Background: I'm developing a module using PDK and Litmus. My module has an option to use the backport version of the Debian package. During acceptance testing with the litmusimage/debian:10 Docker image, I found that a simple include apt::backports failed because puppetlabs-apt thought it wasn't running on Debian. This turned out to be because the lsb-release package wasn't installed. I noticed that, with Puppet 7 and Facter 4.0.47 anyway, the legacy OS facts aren't populated unless lsb-release is installed. However, the modern os fact structure is populated even without lsb-release. So rather than have my module ensure lsb-release is installed, I decided to update puppetlabs-apt, and this pull request is the result.
~Removing this package dependency makes the module more robust and simpler to use.~
Update: I see now that only Puppet 7 resolves the os fact properly without lsb-release installed, so I've updated this to still install that package for acceptance tests, so that testing on Puppets <7 still works, and updated the readme to note that it's not needed with Puppet 7.
I didn't figure out how to stop using osfamily in the apt_* custom facts and the apt_key provider. Not sure if that is even necessary.
There are a few other minor fixes in this PR, in individual commits for easier review.

I don't see why code coverage would change. :man_shrugging:

@kenyon I raised https://tickets.puppetlabs.com/browse/FACT-2906 to get lsb packages as dependency added

:hammer_and_wrench: rebased :tornado:

:hammer_and_wrench: rebased :tornado:

Hi @kenyon,
This PR looks great, but can you please squash the commits and then I'll merge it.
Thanks

Hi @kenyon,
This PR looks great, but can you please squash the commits and then I'll merge it.
Thanks

Hi @kenyon,
This PR looks great, but can you please squash the commits and then I'll merge it.
Thanks

Thanks. I did some squashing. I think the remaining commits stand on their own.

Hi @kenyon,
This PR looks great, but can you please squash the commits and then I'll merge it.
Thanks

Thanks. I did some squashing. I think the remaining commits stand on their own.

Hi @kenyon,
Thanks for your contribution, looks great! 👍

Hi @kenyon,
Thanks for your contribution, looks great! 👍


Unable to establish Single Sign On using New Parameter "Gateway"

Hi Marius/ Vviau,
Using latest version TM1py 1.3.1, tried to achieve SSO with new parameter Gateway but im facing an error message SSL : certificate verification failed.
Could you please help me out with this issue ,
FYR attaching error message document please go through it.
Thank You,
Ram

Hi @Rnvksm ,
the current release on PyPI is missing a fix that @rclapp wrote a few days ago.
Please download the current master branch from the TM1py github page and try again.
Let us know how it goes!

Hi Marius,
I tried New package facing another issue "Actively refusing"
Attaching error message could you please help me out.

it means that the machine exists but that it has no services listening on the specified port, or there is a firewall stopping you.
That's not a TM1py issue. I suggest you try your luck on stackoverflow or with your internal IT department.


Focus(TVOS)

Description
In a catalog of products (multiple horizontal flatlists inside of a vertical flatlist), I will get delayed focus behavior in TVOS while switching in between elements, focus animation comes delayed. This got me thinking if somehow we could create a native component with the focus logic and manage the toggle style logic in within the native component which is running in main thread rather than using setState to manage it as TouchableOpacity does. Has someone tried this? is so it will be really helpful to know.
Version
0.69
Output of npx react-native info
System:
OS: macOS 12.6
CPU: (10) arm64 Apple M1 Pro
Memory: 445.08 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.10.0 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 6.14.16 - /usr/local/bin/npm
Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9014738
Xcode: 14.1/14B47b - /usr/bin/xcodebuild
Languages:
Java: <IP_ADDRESS> - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: Not Found
react-native-macos: Not Found
react-native-tvos:  0.69.6-0
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
Create any project with a catalog of products and render at least 400 elements.
Snack, code example, screenshot, or link to a repository
No response

@douglowder do you have any suggestions for this behavior?

This is indeed a pain point, the focus and reflecting it in the UI through state. Especially as apps grow and get bigger, fetch more data (even in background) it becomes very very very hard to maintain a decent user experience.

Possibly we need to look at using the native focus APIs that are provided for collection views. Also hoping that Fabric will solve some of these issues.
If one of you has an example that shows this problem, I can do some performance testing to see where the bottlenecks are that are slowing things down.

Issue is with large data sets, rendering a 20 x 20 nested flatlist/flashlist and then adding some logic to every card for focus style, this way you will be able to reproduce the delayed focus. I can see the parallax effect is already in the card but since the style is happening in the JS thread then it's coming delayed. This is why I was asking if we could somehow create a native component and inject a React view as children and handle the style toggle on focus/blur in the native thread.
@douglowder I'm not very experienced in IOS but I know this could be achieved in android. Do you have any code snipet we could try of a UIView with focus logic natively in swift?

Interesting... if you disable the parallax animations, does the problem resolve?

https://user-images.githubusercontent.com/83782787/200992800-6d073ff4-f8a4-4c61-b72b-a58fe930bc0e.mov

Here is visible how the parallax effect is already in the last card but the focus comes delayed, I'm wrapping my set state inside a requestAnimationFrame as well

Update: I was able to create a native wrapper, just exploring some props and how far we could take it. Once I got a stable version I will post it with you guys. This will solve our focus issues when having a large set of elements in a flatlist in tvOS/androidtv/firestick.
https://user-images.githubusercontent.com/83782787/201027806-ae0fcaa2-f032-4ddd-9f23-c0b362d465a5.mov

An optional focusStyle prop would also be a solution. That way we don't need to manage state to adjust styles when a component gets focus.

@wouterds I believe this will only be possible by passing an style object but limited one with props as opacity, borderRadius, paddings, margins, we could add also an animation prop as appletv streaming apps have this scale anim, etc. What properties will you suggest? for me right now, passing the animation, border radius and border color it's enough.

@sebasg0 @wouterds when a focusStyle object is used, should parallax animations be turned off by default?

No, we can leave it enabled with no issues. We just need to sort of the nextFocus prop in this new wrapper, blocking focus is way easier natively rather than passing a reference.

@wouterds I believe this will only be possible by passing an style object but limited one with props as opacity, borderRadius, paddings, margins, we could add also an animation prop as appletv streaming apps have this scale anim, etc. What properties will you suggest? for me right now, passing the animation, border radius and border color it's enough.

@sebasg0 Why not allow all styles? I would see it as a secondary style object that just enriches the style object if it is provided, on focus.

@wouterds I was stuck in some mobile tasks at my company. I will re take this today. First stable version is ready with a catalog example project which is running very performant in appleTV HD. I will try to publish package to npm today so u'all can give feedback and contribute accordingly. We are still missing support for AndroidTV. Also I made a concerning discovery in react drawer navigation... It has many focus issues, only way is to go with a native-stack, as many apps need a side bar menu we will have to come up with a solution for this as well.


Updated with my contribution

Updated with my contribution of this challenge in WF c#

@TrongHieu90
Hi,
I solved the conflicts. Can you take a look at this and a go to merge?

Thank you! :+1:


Pypi release out of date

Hola,
Just flagging that the Pypi release is out of date with the code on github. Would be great if this could be bumped

Thanks for reporting this @MrBlenny ! PR https://github.com/fishbotics/urchin/pull/23 should fix it, once it is merged we can do a release.

The release was tagged, but we still have an upload problem: https://github.com/fishbotics/urchin/issues/24 .

The latest release is available on PyPI: https://pypi.org/project/urchin/0.0.29/ .


Surfaced SetParamFile in AzureRMWebDeploy task

I often use a SetParameters.xml file with WebDeploy. Instead of adding it as an additional arg, I've surfaced this as an optional arg on the task. This allows the user to browse the path easily in the UI.

Hi @colindembovsky, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.microsoft.com.

TTYL, MSBOT;

@colindembovsky, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.
Thanks, MSBOT;

let me get back after getting this spec reviewed

Though we can check if parameters file is mentioned in both the new field and additionalArgs, IMO - we need not.

Refers to: Tasks/AzureRmWebAppDeployment/Utility.ps1:138 in 1cb0960. [](commit_id = 1cb096011be004701a40f89e4fc9820302ce01f9, deletion_comment = False)


with wide content doesn't fit 'col' and causes horizontal scrollbar

Prerequisites

[X] I have searched for duplicate or closed issues
[X] I have validated any HTML to avoid common problems
[X] I have read the contributing guidelines

Describe the issue

 tag with wide content go outside of col column nested in row with flex-nowrap class and causes horizontal scrollbar.
I'm trying to put Prism JS
 code block inside col column.
I'm found a fix:
Add style="flex: 1; min-width: 0;" inside col element.
See more
Reduced test cases

test

loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongtext

What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v5.3.0-alpha1

Well it's not just
 but Prism JS code block  nested inside
. I think you understand me.
P.S. if I remove flex-nowrap class code block are can fit container normally

Onsr tîm

hello, @realthemes,
the "flex-nowrap" class on a tag that causes a horizontal scrollbar to show up in a column that is nested inside of a row. By including "style=flex: 1; min-width: 0;"  in the col element, you have discovered a solution. You did note that this problem extends beyond the tag and impacts nested Prism JS code blocks. The code block can fit in the container generally if the "flex-nowrap" class isn't present. It's significant to note that you are using Bootstrap v5.3.0 alpha1 and that this problem is occurring on Google Chrome.
Another solution is  The "overflow-x: auto;" feature is added to the container by adding a "flex-nowrap" class tag within a flex container. The code blocks will fit appropriately within the container without requiring any additional CSS styles thanks to the limited use of horizontal scrolling. This technique might not be practical, though, if you wish to keep the "flex-nowrap" class for other components in the container.

thanks for the message, here is a detailed description of the problem and its solution, it seems that the problem is not in the bootstrap, but in particular the work of flex containers


[question] GWT-Bootsrap what is latest supported version

What is the last supported GWT-Bootsrap version ?
Thanks

thank you


issue 459

459
[DevEx]: Apply eslint rule for element-attribute-order to enforce consistent directive/attribute ordering in html
Relevant 459 (https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)

Resolves #459

Please check the following

[ ] Do the tests still pass? Yes
[ ] Is the code formatted properly? Yes
For New Features:

[ ] Have tests been added to cover any new features or fixes? No
[ ] Has the documentation been updated accordingly? No

Please describe additional details for testing this change
The changes are mainly format change

@kawaljen this is almost ready. There is one test failure and one linting problem left to fix:

the linting problem is in src/components/BaseLineChart.vue. The issue is that the name "Line" is reserved and the more restrictive lint rules added here now disallow the use of that component name on line 17. To fix it, we can Alia's the import to call it LineChart and then use that in the component s section

import {Line: LineChart} from 'vue-chartjs';
export default BaseLineChart {
  components: {
    LineChart,
  }
}

the test failure is in tests/e2e/specs/out-of-game/home.spec.js and it's because the placeholder text for empty game lists no longer has extraneous white space. We should change the assertion on the placeholder text in

it('Displays placeholder text when no games are available:')

To remove the spaces on either side of the text.
Those two fixes should do it and then we're good to go. Nice work on this one

Ok for the lint error
But for the cypress error, it is actually the opposite, the formatting adds white space..
Should I use contain instead ?
it('Displays placeholder text when no games are available', () => {
cy.get('[data-cy=text-if-no-game]').should('contain.text', 'No Active Games');
cy.contains('p', 'No Active Games');
});
(but from what I understand it is doing the same thing twice, should I use only of them )

@kawaljen this is almost ready. There is one test failure and one linting problem left to fix:

the linting problem is in src/components/BaseLineChart.vue. The issue is that the name "Line" is reserved and the more restrictive lint rules added here now disallow the use of that component name on line 17. To fix it, we can alias the import to call it LineChart and then use that in the component s section

import {Line: LineChart} from 'vue-chartjs';
export default BaseLineChart {
  components: {
    LineChart,
  }
}

the test failure is in tests/e2e/specs/out-of-game/home.spec.js and it's because the placeholder text for empty game lists no longer has extraneous white space. We should change the assertion on the placeholder text in

it('Displays placeholder text when no games are available:')

To remove the spaces on either side of the text.
Those two fixes should do it and then we're good to go. Nice work on this one

Ok for the lint error
But for the cypress error, it is actually the opposite, the formatting adds white space..
Should I use contain instead ?
it('Displays placeholder text when no games are available', () => {
cy.get('[data-cy=text-if-no-game]').should('contain.text', 'No Active Games');
cy.contains('p', 'No Active Games');
});
(but from what I understand it is doing the same thing twice, should I use only of them )

Ok for the lint error
But for the cypress error, it is actually the opposite, the formatting adds white space..
Should I use contain instead ?
it('Displays placeholder text when no games are available', () => {

  cy.get('[data-cy=text-if-no-game]').should('contain.text', 'No Active Games');

  cy.contains('p', 'No Active Games');

});

(but from what I understand it is doing the same thing twice, should I use only of them )

Yes you are correct the bottom two assertions are equivalent and we should remove one. And yes we want substring matching so that the white space is ignored


Fix light theme CSS

CLA all in order

Thank you so much! Will be integrated shortly, will post in [[agora development]] when it's on prod :)


Additional loader when transpiling Lambda code

Is it possible to add an additional ~babel (?)~ esbuild loader when transpiling? (I am using TypeScript).
Use case: I need to import HTML files, as in import html from './template.html';; it's easy to tell Typecript that it's OK to import html (see this post), but then the error is error: No loader is configured for ".html" files: ./template.html.

OK, I realize that what it's needed is a loader for esbuild. The closest one is the txt loader.
I leave it here in case someone knows how to have esbuild use the 'txt' loader for files with a 'html' extension :)

Yup, this is on our immediate roadmap. We want to support most if not all of the bundling options for esbuild.
@jayair Can you take a look and see how much work is required to support all of these build options?
<EMAIL_ADDRESS>

@claudioc The loader option has been added in v0.9.17
Here's an example on how to set it - https://docs.serverless-stack.com/constructs/Function#configuring-bundling

Oh yes, thanks. Is the copyFile new as well? Love it!

Yuup!

And this solved my use case! Thanks :)
    const api = new sst.Api(this, 'Api', {
      defaultFunctionProps: {
        bundle: {
          loader: {
            '.html': 'text'
          }
        }
      },
      routes: {
        'GET /': 'src/index.handler',

Case closed ;)


Dataset aggregation

This PR was created to remove the previous script which were supposed to correct the datasets but in practice only created some problems.
It also references the code used to generate the MSD dataset used for training and testing.

Ready to be merged !


Import prop types from 'prop-types'

React has deprecated PropTypes from React and is now giving a warning in RN 0.45.0 and up.
Should be an straight replacement in the code I can do a PR if you are interested.

@pablocarrillo Thanks! a PR would be amazing :)


The semaphore has been disposed

Describe the bug
During using MQTTnet Client, we encountered an error "The semaphore has been disposed".
Which project is your bug related to?

Client

To Reproduce
Steps to reproduce the behavior:

Using this version of MQTTnet '3.0.11'.
Using .Net Framework version 4.7.1
using MQTT server is EMQ  version 2.3.11
See error.

Additional context / logging
tm: 2020-12-04T00: 57: 32.721 + 0900 lv: FATAL th: 2 lgr: jp.co.carecom.EasterApplication file: AppBase.cs line: 242 msg: AggregateException.InnerExceptions [System.ObjectDisposedException]: セマフォは破棄されています。
   場所 System.Threading.SemaphoreSlim.CheckDispose ()
   場所 System.Threading.SemaphoreSlim.Release (Int32 releaseCount)
   場所 MQTTnet.Adapter.MqttChannelAdapter. <SendPacketAsync> d__33.MoveNext ()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
   場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()
   場所 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task task)
   場所 MQTTnet.Client.MqttClient. <DisconnectAsync> d__36.MoveNext ()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
   場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw ()
   場所 MQTTnet.Client.MqttClient. <DisconnectAsync> d__36.MoveNext ()

The message appeared in Japanese because we use .Net Japanese version.
the frequency of occurrences varies from day to day.

I added some fix in the latest version. Please test with the latest RC version.

Thank you for your reply.
I don't know the cause and how to reproduce this issue.
Can you tell me the cause and how to reproduce it?

It is uploaded to nuget (https://www.nuget.org/packages/MQTTnet/3.0.14-rc3).
The issue comes from the AsyncLock which had a race condition which leads to access to a disposed object. Disposal is now wrapped into a lock so that there is no chance that the disposed semaphore is being accessed at any time (@JanEggers  such errors are the reason for the lock statements).

What is the cause of this event?
It doesn't seem to occur at the timing of Publish or Subscribe.
Also, from which version does this problem occur?
I don't think it happened in version <IP_ADDRESS>.
I have verified it with the RC version module I received, but so far no problem has occurred.
We will continue to verify.

I cannot tell which was the first version with that error. I don't think that 2.8 is affected because the events were not async. So with 3.0.x the bug bug occurs. I will close the ticket for now. If you still encounter problems please reopen the ticket.


Transalatabel default value in select

Choose a template / Choose parent / Choose a locale is not translatable.

Translations were added in version 4.0 thanks to one contributor. :)


API Validator not complaining if you try to update a read-only field

Steps

Enable all asserts for tests/api_tests/nodes/test_views/test_writing_to_public_field
Run the test

Expected
Tests would pass
Actual
The assertion that you would get a 403 when trying to update the public field, which is currently read-only, passes with a 200.

It seems this is a "feature" of Django Rest Framework.  https://github.com/CenterForOpenScience/osf.io/issues/4086
I looked over the JSON API Spec and found no mention of a process for PATCH and PUT with read only fields.

Okay, then could you submit a PR to take out the commented-out assert.

Oh yeah!  :100: :turtle:

As @billyhunt said, the lack or errors is by design; here is the relevant thread: https://github.com/tomchristie/django-rest-framework/issues/1655#issuecomment-47097476


Cifar10 jax workload and reference submission

Cifar-10 JAX
The cifar workload and reference submission are inspired by the existing imagenet and mnist implementations.
Random crops and flips are used in the input pipeline, same as for imagenet.
The workload model is a ResNet-18 pulled from imagenet_jax/models.py. I wasn't sure about the target accuracy -- I can get to 85% in about 20 minutes with a single V100 or tesla P40 (all I have access to) for a single tuning run. I set it to 85% for now.
I use the same reference submission optimizer as imagenet, SGD with momentum + L2 and cosine decay, but with the specific tuning search space more optimized for cifar10 (according to e.g. https://arxiv.org/abs/1708.04552v2 ).

Hi Lawrence,
thanks for the great PR!
Could you take a look at the failed test and fix them?
Once this is done, we can give the PR a review and after that merge it :)
@znado I assigned you as a reviewer, let me know if that doesn't work for you.

@alpv95 Looks like there is one more linting issue and then this is ready to merge :tada:
Could you fix this and then I can merge it.

@alpv95 Looks like there is one more linting issue and then this is ready to merge 🎉
Could you fix this and then I can merge it.

Sorry, my auto-linters are a joke... all done.


Oncoplot by maftools: sort columns by mutation counts

Hello,
Thank you so much for an amazing tool.
I am trying to see if I can change the order of samples in the oncoplot by mutation counts.
I want to sort the top bars so that the height of the bars becomes lower toward the right.
Thank you in advance!

Hi,
Thank you and I am glad you find it useful. Regarding the question, oncoplot always orders the samples based on gene frequency. You can use sampleOrder argument to pass the manual ordering.

Thank you for your help!


Uncorrelation based on those components that contribute to free energ…

…y rather than all components.
This addresses issue #27.

Looks good to me except for a couple of minor comment issues I brought up, and the choice of the default option. So we can merge once you fix those.
GitHub/git usage info: To update this PR, just make the changes requested on your existing dhdl_individual branch, commit them, and push to dhdl_individual. That will automatically update this PR. Then either merge it or comment so I know it's updated (pushing doesn't generate a message to me) and I'll merge it.
Thanks.