Investigate failure of reconnect

It seems in some scenarios that reconnect fails due to not all events being delivered properly.
This is a successful reconnect log:
09eb20a914482bf4147bbcc934f54.9f5f9c3c-d413-4c76-8726-e517317fc081-155aaf27911.USER)[]: Reconnect attempt 0 of unlimited reconnect tries to localhost:4254, timeout=10000
2016-07-02 02:36:21,336 [ConnectionEstablisher-0-2119826626] INFO com.tc.net.protocol.transport.ClientMessageTransport - ConnectionID(2.f4409eb20a914482bf4147bbcc934f54.9f5f9c3c-d413-4c76-8726-e517317fc081-155aaf27911.USER)[]: Attaching new connection: com.tc.net.core.TCConnectionImpl@1950045804: connected: true, closed: false local=<IP_ADDRESS>:53452 remote=<IP_ADDRESS>:38336 connect=[Sat Jul 02 02:36:21 PDT 2016] idle=1ms [0 read, 0 write]
2016-07-02 02:36:21,346 [ConnectionEstablisher-0-2119826626] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Client - Health monitoring agent started for localhost:38336
2016-07-02 02:36:21,347 [L1_L2:TCComm Main Selector Thread_R (listen 0:0:0:0:0:0:0:0:51273)] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Client - HealthCheckCallbackPort verification PASSED for localhost:38336(callbackport: 38336)
2016-07-02 02:36:21,360 [L1_L2:TCComm Main Selector Thread_R (listen 0:0:0:0:0:0:0:0:51273)] INFO com.tc.platform.rejoin.ClientChannelEventController - Got channel event - type: TRANSPORT_CONNECTED_EVENT, event: com.tc.net.protocol.tcm.ChannelEventImpl@1574386330[type = TRANSPORT_CONNECTED_EVENT, timestamp = Sat Jul 02 02:36:21 PDT 2016, channel  = ChannelID=[2]:<IP_ADDRESS>:53452 <--> <IP_ADDRESS>:38336 remote node  : GroupID[0]
2016-07-02 02:36:21,360 [WorkerThread(client_coordination_stage, 0)] INFO com.tc.object.handshakemanager.ClientHandshakeManagerImpl - ClientID[2]: Connected: Unpausing from PAUSED
2016-07-02 02:36:21,361 [WorkerThread(client_coordination_stage, 0)] INFO com.tc.object.handshakemanager.ClientHandshakeManagerImpl - ClientID[2]: Sending handshake message
09eb20a914482bf4147bbcc934f54.9f5f9c3c-d413-4c76-8726-e517317fc081-155aaf27911.USER)[]: Reconnect attempt 0 of unlimited reconnect tries to localhost:4254, timeout=10000
2016-07-02 02:36:21,336 [ConnectionEstablisher-0-2119826626] INFO com.tc.net.protocol.transport.ClientMessageTransport - ConnectionID(2.f4409eb20a914482bf4147bbcc934f54.9f5f9c3c-d413-4c76-8726-e517317fc081-155aaf27911.USER)[]: Attaching new connection: com.tc.net.core.TCConnectionImpl@1950045804: connected: true, closed: false local=<IP_ADDRESS>:53452 remote=<IP_ADDRESS>:38336 connect=[Sat Jul 02 02:36:21 PDT 2016] idle=1ms [0 read, 0 write]
2016-07-02 02:36:21,346 [ConnectionEstablisher-0-2119826626] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Client - Health monitoring agent started for localhost:38336
2016-07-02 02:36:21,347 [L1_L2:TCComm Main Selector Thread_R (listen 0:0:0:0:0:0:0:0:51273)] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Client - HealthCheckCallbackPort verification PASSED for localhost:38336(callbackport: 38336)
2016-07-02 02:36:21,360 [L1_L2:TCComm Main Selector Thread_R (listen 0:0:0:0:0:0:0:0:51273)] INFO com.tc.platform.rejoin.ClientChannelEventController - Got channel event - type: TRANSPORT_CONNECTED_EVENT, event: com.tc.net.protocol.tcm.ChannelEventImpl@1574386330[type = TRANSPORT_CONNECTED_EVENT, timestamp = Sat Jul 02 02:36:21 PDT 2016, channel  = ChannelID=[2]:<IP_ADDRESS>:53452 <--> <IP_ADDRESS>:38336 remote node  : GroupID[0]
2016-07-02 02:36:21,360 [WorkerThread(client_coordination_stage, 0)] INFO com.tc.object.handshakemanager.ClientHandshakeManagerImpl - ClientID[2]: Connected: Unpausing from PAUSED
2016-07-02 02:36:21,361 [WorkerThread(client_coordination_stage, 0)] INFO com.tc.object.handshakemanager.ClientHandshakeManagerImpl - ClientID[2]: Sending handshake message
02:36:35.509 - HeartBeatClient: Received pulse from heartbeat server, port 51269
02:37:05.509 - HeartBeatClient: Received pulse from heartbeat server, port 51269
02:37:35.514 - HeartBeatClient: Received pulse from heartbeat server, port 51269
02:38:05.514 - HeartBeatClient: Received pulse from heartbeat server, port 51269

And this is failure
2016-07-02 02:36:15,314 [ConnectionEstablisher-0-1109441536] WARN com.tc.net.protocol.transport.ClientMessageTransport - ConnectionID(1.f4409eb20a914482bf4147bbcc934f54.635f8d55-d0e8-4027-b1ea-026340ef6f07-155aaf2790b.USER)[]: Reconnect attempt 0 of unlimited reconnect tries to localhost:38336, timeout=10000
2016-07-02 02:36:15,319 [ConnectionEstablisher-0-1109441536] WARN com.tc.net.protocol.transport.ClientMessageTransport - ConnectionID(1.f4409eb20a914482bf4147bbcc934f54.635f8d55-d0e8-4027-b1ea-026340ef6f07-155aaf2790b.USER)[]: Connection refused [lossy interval: 10000ms]
2016-07-02 02:36:16,322 [ConnectionEstablisher-0-1109441536] WARN com.tc.net.protocol.transport.ClientMessageTransport - ConnectionID(1.f4409eb20a914482bf4147bbcc934f54.635f8d55-d0e8-4027-b1ea-026340ef6f07-155aaf2790b.USER)[]: Reconnect attempt 0 of unlimited reconnect tries to localhost:4254, timeout=10000
2016-07-02 02:36:21,336 [ConnectionEstablisher-0-1109441536] INFO com.tc.net.protocol.transport.ClientMessageTransport - ConnectionID(1.f4409eb20a914482bf4147bbcc934f54.635f8d55-d0e8-4027-b1ea-026340ef6f07-155aaf2790b.USER)[]: Attaching new connection: com.tc.net.core.TCConnectionImpl@314698431: connected: true, closed: false local=<IP_ADDRESS>:53453 remote=<IP_ADDRESS>:38336 connect=[Sat Jul 02 02:36:21 PDT 2016] idle=1ms [0 read, 0 write]
2016-07-02 02:36:21,343 [ConnectionEstablisher-0-1109441536] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Client - Health monitoring agent started for localhost:38336
2016-07-02 02:36:21,344 [L1_L2:TCComm Main Selector Thread_R (listen 0:0:0:0:0:0:0:0:51272)] INFO com.tc.net.protocol.transport.ConnectionHealthCheckerImpl. DSO Client - HealthCheckCallbackPort verification PASSED for localhost:38336(callbackport: 38336)
2016-07-02 02:36:21,357 [L1_L2:TCComm Main Selector Thread_R (listen 0:0:0:0:0:0:0:0:51272)] INFO com.tc.platform.rejoin.ClientChannelEventController - Got channel event - type: TRANSPORT_CONNECTED_EVENT, event: com.tc.net.protocol.tcm.ChannelEventImpl@1452113378[type = TRANSPORT_CONNECTED_EVENT, timestamp = Sat Jul 02 02:36:21 PDT 2016, channel  = ChannelID=[1]:<IP_ADDRESS>:53453 <--> <IP_ADDRESS>:38336 remote node  : GroupID[0]
02:36:35.509 - HeartBeatClient: Received pulse from heartbeat server, port 51268
02:37:05.509 - HeartBeatClient: Received pulse from heartbeat server, port 51268
02:37:35.514 - HeartBeatClient: Received pulse from heartbeat server, port 51268
02:38:05.514 - HeartBeatClient: Received pulse from heartbeat server, port 51268

Note the absence of logging from ClientHandshakeManagerImpl

Looks like the failure is tries to connect to the proper active then tries to connect to the passive which is wrong.

Looks like the health checker is being started on the wrong connection in the failure case.  Maybe transportConnected event is being fired pre-maturely


Emit refs to collections initialized with a type shorthand expression.

Normally references to initializers of collections like Array and Dict are emitted into the index data. It was missing any initializer called using the collection's literal type resentation instead of the type name.
For example:
_ = Array<Int>(repeating: 0, count: 1)  // Reference is emitted.
_ = [Int](repeating: 0, count: 1) // Reference is missing.

This PR fixes the inconsistency by emitting references for those collection initializers.
I had to handle these references in a fairly custom way, because most constructor-refs are emitted when the TypeRepr is visited. The AST walker keeps a list of  ctors and emits a reference to the matching ctor when visting the associated TypeRepr. This works fine for the ctor in Array<Int>(...) because there's a TypeRepr for Array<Int> that matches a ctor on the list of "seen" ctors. For the shorthand initialization like [Int](...), the TypeRepr is an ArrayTypeRepr instead of a DeclRefTypeRepr so there's no associated decl when the AST walker gets to that TypeRepr.
Resolves #68974

@swift-ci Please smoke test

CI failure was unrelated. Re-triggering
@swift-ci Please smoke test

@swift-ci Please smoke test Linux

I think the Linux test failure is related to your changes. Seems like TR can be nullptr, I think it would be good to try and understand when this can happen to add a test case for it.

I'm looking into the failure now.

Looking at other usages of TypeExpr getTypeRepr, it looks like a nullptr is expected for "implicit" TypeExpr. A variety of expressions seem to generate implicit TypeExpr, so I think this just needs to guard accordingly.

@swift-ci please smoke test


Process Material (Shader) in Particles2D makes Sprites to dissapear

Godot version:
3.2.1-stable
OS/device including version:
Issue found in:
Linux 5.0.0-32-generic #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 620 (rev 02)
macOS Catalina 10.15.4
AMD Radeon Pro 5300M 4 GB
(Issue found too with nvidia card)
Issue description:
We found an issue using particles2D:
We created into our project a Particles2D which has a process material (shader) programmed by scratch. The affected sprite which is failing is placed into a parallax layer, which is also placed into a parallax background having layer = -100.
The issue makes the background sprite to dissapear.
Also, the Particles2D is placed on the main player's layer. After the issue occurs, if we hide the Particles 2D, the background sprite appears again, and also dissappear if we enable it again.
While there are other particles in the screen emmited by other particles2D, the sprite also appears.
Finally, we detected something relevant: in case we set the background parallax layer to a positive value or 0, the background appears and some other sprites dissappears from the screen.
We attach a video with the issue and the shader code.
Steps to reproduce:
Create a scene with a Particles2D with a Shader as a Process Material, but we are not sure 100%.
Minimal reproduction project:
Issue.zip

Hi, please attach a Minimal Reproduction Project so that someone can test out and try to reproduce the issue you are experiencing. Without an MRP, it is likely no one will reproduce your error and be able to fix it.
For clarity, an MRP is the smallest project you can put together that reliably reproduces the issue. A video is not an MRP.

Ok, thanks. We will try isolate the problem in a small project to be upload here.

We have been able to isolate the problem and have found something interesting: it seems that with fullscreen display the problem is not present.
To reproduce the issue, is needed to have the fullscreen deactivated at startup. In case you run the project a few times, you will notice the background is gone. Check the new attach videos as a reference.
issue.zip
reference-vid.zip
reference-vid2.zip

I have run your test project and followed the steps in the video, but I cannot reproduce the bug. For me the background looks fine no matter what.
Windows 10, NVidia GTX 1050
We will have to wait and see if someone else can reproduce

In my computer (Linux Mint, Nvidia Graphs and Intel Graphs) the bug is very dificult to reproduce, I can stay for days without see the bug.
But these videos are recorded in the laptop of my coworker, is a Macos X. Here the bug is very present.

@davidkbd Can you (or anyone else) still reproduce this bug in Godot 3.5.1 or any later release?
If yes, please ensure that an up-to-date Minimal Reproduction Project (MRP) is included in this report (a MRP is a zipped Godot project with the minimal elements necessary to reliably trigger the bug). You can upload ZIP files in an issue comment with a drag and drop.


64:crabble-start proposal is triggering SDK rebuild

Evaluating the Crabble proposal is triggering SDK rebuild:
2024-02-05T19:02:40.6261224Z #1960 [test-upgrade-13 eval-crabble-start 6/6] RUN ./run_eval.sh 64:crabble-start
2024-02-05T19:02:40.6280827Z #1960 136.9 At least package.json is newer than node_modules
2024-02-05T19:02:40.6281232Z #1960 136.9 yarn install v1.22.19
…
2024-02-05T19:02:40.6288774Z #1960 136.9 Yarn packages need to be built
2024-02-05T19:02:40.6289111Z #1960 136.9 yarn run v1.22.19
2024-02-05T19:02:40.6289400Z #1960 136.9 $ yarn workspaces run build

That triggers rebuilding even Xsnap. Totally not necessary and flakes sometimes in the AMD build.
These were attempts to prevent that:
feat: absolute path to agd binary
chore: use unreleased synthetic-chain package
But they didn't work, as demonstrated in https://github.com/Agoric/agoric-3-proposals/actions/runs/7789170001/job/21240169503?pr=88
This might be due to something in https://github.com/Agoric/agoric-3-proposals/pull/88 but needs further investigation

Fixed by a4020ce


[FIX] Show versions again

Well, I realized that the App doesn't show the versions anymore. Which makes the whole app useless 😁 .
The issue got introduced with the latest PR #7 .
I didn't know that a io.Reader can only be read once. (See also this https://stackoverflow.com/q/39791021 or Google for it).
With that fix I decided that I read the body once and save the body bytes.
With that I can use with the body byte slice what I want. For example, reading a second time 😁

Time for adding tests 👀


SAK-32229 Update ES and CA translations in 11.x, needed after fixes from RC01 and RC02 - pre 11.3 GA

Can these be squashed or should we merge?

Squash no problem !!


Avoid repeated allocation of StringBuilder

Previously ImapResponseParser allocated a StringBuilder and its
underlying array for every parsed token.

Logically these StringBuffers represent different things. Unless there is a serious performance bottleneck the code should stay as-is. And if there is a bottleneck it has to be documented that this optimization introduces additional constraints on what methods certain methods are allowed to call.


Wrong output for az vm run-command invoke command

Below telnet ip and port is wrong but out shows as provisioning succeeded. Ideally it should fail.
VM : Windows
MYID@Azure:~$ az vm run-command invoke -g MYRG -n MYVM --command-id 'RunPowerShellScript'  --scripts 'telnet <IP_ADDRESS> 8080'
{
"value": [
{
"code": "ComponentStatus/StdOut/succeeded",
"displayStatus": "Provisioning succeeded",
"level": "Info",
"message": "",
"time": null
},
{
"code": "ComponentStatus/StdErr/succeeded",
"displayStatus": "Provisioning succeeded",
"level": "Info",
"message": "",
"time": null
}
]

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

ID: b3ff94e6-3c1f-b9e1-1a46-b75fe2ffca1b
Version Independent ID: 8f3ca735-ddd4-f4a9-4ee0-189604018784
Content: Run PowerShell scripts in a Windows VM in Azure - Azure Virtual Machines
Content Source: articles/virtual-machines/windows/run-command.md
Service: virtual-machines
GitHub Login: @bobbytreed
Microsoft Alias: robreed

@praveenambati1233  Thanks for the feedback!  We are investigating and will update you shortly.

@praveenambati1233
Just confirming on the issue once. The issue is that the command output is not as expected. Can you please confirm, so that we can open issue with the Azure CLI for az vm run-command

Yes that's correct.

@praveenambati1233 Thanks for confirming. I have opened an issue with Azure CLI here.
Please follow this bug reported in the Azure CLI for further updated on this.
I will now close this issue as the issue is not directly related to this document.
Hope the provided information is helpful.
If there are further questions regarding this, please tag me in a comment. I will reopen it and we will continue the discussion.


Inference error, readme default param.

Body Fitting --- normal: 0.104 | silhouette: 0.054 | Total: 0.158
d5acc65c50a71c7c54eb38323966f6c1_smpl.obj correct.
ICON infer error.
d5acc65c50a71c7c54eb38323966f6c1_recon.obj view：

Cloth Refinement --- cloth:3.38728 | stiffness:0.66788 | rigid:0.04957 | laplacian:0.28668 | Total: 4.39141
d5acc65c50a71c7c54eb38323966f6c1_cloth.gif view：

thanks greate work!

Thanks for trying our code and we will try to solve your concerns. It seems that the model predicts a totally wrong geometry. Could you please check if the checkpoint is correctly loaded? (because if it is not  loaded, the model still runs.)

Yes, sifu checkpoint was not loaded correctly. path error. thanks!


The navbar doesn't show the current page correctly

Description
The navbar should show the page currently being surfed which is not happening as it should.
In the screenshot provided I am currently on login page but the navbar still highlights the home page which is wrong and needs to be corrected.
Screenshots

Additional information
I want to contribute and resolve this issue under Gssoc 2024.
What browser are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I want to work on this issue. (optional)

Hey, I can fix this issue, kindly assign it to me.

I want to improve navbar and solve this issue. Please assign me this under GSSOC24 label


chore(main): release 0.1.0

:robot: I have created a release beep boop
0.1.0 (2024-09-30)
Features

added "created" field to output + removed "type" from data classes repr (1e06d6d)
added auto binary upload to release (376e1c1)
added bin build and gh action (88cd0df)
added CLI prompts and arg parsing (fcc0702)
added linter / formatter (72251b9)
added POST.md (331928f)
added README file + started on prompting (11afd72)
added release-please (2d1af16)
added setup.py (0312ada)
added tests (1a85d2a)
added unit tests (3afcbd7)
added whitelisting (9eee8ad)
initial commit (ead9d50)
more error handling (2adfb01)
removed root folder to further simplify output (de0aacb)
simplified bookmark repo interface (9839ba9)
updated ci (bf14d2a)
updated README (2724be4)

Bug Fixes

linting warnings (5e6930c)
pipeline build bugs (54e52c3)
release type (1a97e27)
typo (93d1439)
updated README and makefile (21d4780)

Miscellaneous Chores

release 0.1.0 (5ed7ab6)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/nico-i/bkmks/releases/tag/v0.1.0 :sunflower:


Elasticsearch highlighting

This PR adds search highlighting for title and subtitle fields using <em> tags.
You can use Elasticsearch 1 with the following settings:
WAGTAILSEARCH_BACKENDS = {
    'default': {
        'BACKEND': 'molo.core.wagtailsearch.backends.elasticsearch',
        'INDEX': '%your_index_name%',
    },
}

Or Elasticsearch 2:
WAGTAILSEARCH_BACKENDS = {
    'default': {
        'BACKEND': 'molo.core.wagtailsearch.backends.elasticsearch2',
        'INDEX': '%your_index_name%',
    },
}

Here is an example:

I'm going to change this PR a bit. If a term doesn't appears in the title and subtitle but does appear in body, it will be hard to understand why a search result is relevant.
So my changes will include the following logic:

Display the title field always: highlight it, if the term appear in this field. If the term doesn't appear, display the original content of the title field.
Display highlighted subtitle and / or body, if the term appear in them. If term appear in the title only, display the original content of the subtitle field.

This PR has been rebased on top of the develop branch
14b685d introduces changes described here

Thanks! this look good 👍
cc: @saeedmb8 pinging you here for reference


Client Allocation Request for: FileDrive

Client Allocation Questions
Core Information

Name: FileDrive
Website / Social Media: filedrive.io
DataCap Requested: 5TiB
Addresses to be Notarized: f3wgfwtrs5p6jrkwfl2mksqa2ivgbgdjjrhjbefy3n7qzvotc3y6sazmp5gfyj7um6jlgdvlbiepzawnc6wxtq
Notary Requested: s0nik42

Hi @laurarenpanda  ,
Thanks for your request. Can you kindly add more information / context here on:
The region you are based and the one you physically operate
Yourself , e.g. include links to social media / news mentions etc
Your history working on IPFS / Filecoin, e.g. notable contributions to the community, type of engagement shown over time etc
Type, size and source of the data you (and by extension other Discover participants) are looking to store on Filecoin, e.g. public data vs private data etc
Your relationship with the data, especially with regard to copyright
How you intend to store the data on Filecoin, e.g. redundancy, location / miner preferences, etc
Have you already ask datacap to another notary that have been accepted or rejected.
Thanks
Julien

Hi @s0nik42 , thanks so much. Here are my answers.
1. The region you are based and the one you physically operate
Greater China
2. Yourself , e.g. include links to social media / news mentions etc
FileDrive team has been in Filecoin ecosystem from 2019, and conscientiously concentrate on development distributed storage solution. Our vision is to build a data transaction platform on Filecoin Network. Our team is composed of talents with years development experience. We have self-developed underlying codes, and technical architecture and solutions of distributed storage.
In 2019, we independently developed DriveUp, which is a beta version cloud storage application based on IPFS. Over hundreds of users participated in testing phase.
In 2020, we established Shanghai Xuanling Technology Co., Ltd, and began to work as start-up company.
Since September 2020, we participated in Slingshot competition by Protocol Labs and developed an application named FileDrive.
FileDrive is a open source databank powered by IPFS/Filecoin, users can retrieve any data by file-name or content hash. Now, there are over 2.9k files from global public datasets stored on it with capacity of more than 57TiB storage space.
Project website: http://filedrive.io
Team website: https://honghupro.com
Twitter: https://twitter.com/FileDrive1
WeChat Official Account: FileDrive https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzkzMDE4ODg0MQ==&scene=124#wechat_redirect
Github: https://github.com/beeleelee
Slack: Laura Panda/ flytosky
Participated in Filecoin Virtual Community Meetup - January 2021: https://www.youtube.com/watch?v=0aVghq-syoo
3. Your history working on IPFS / Filecoin, e.g. notable contributions to the community, type of engagement shown over time etc
Slingshot Competition:

Participating in Slingshot 2.2 with over 450 TiB data
Participated in Slingshot 2.1
Eligible Data: over 300TiB
Storage Awards: 1st Place
Booster Award
Participated in Slingshot Phase 1: totally earned 6,885FIL
Storage Awards: 3rd Place
Community Choice Awards: Personal User Storage(Third Place)
Booster Award
Start-up project: DriveUp
Storage Awards: 3rd Place
Cloud storage application based on IPFS
Self-developed by FileDrive team
4. Type, size and source of the data you (and by extension other Discover participants) are looking to store on Filecoin, e.g. public data vs private data etc
All of the data on FileDrive are useful and valid, and from public datasets, which are on the list of Filecoin Slingshot curated datasets.
List of Slingshot curated datasets:
https://github.com/filecoin-project/slingshot/blob/master/datasets.md
Use case: Scientific Datasets
We will storage data from Landsat8, which is a public dataset with multispectral time series satellite imagery of all land on Earth since 2013.
Landsat 8: https://registry.opendata.aws/landsat-8/#usageexamples
5. Your relationship with the data, especially with regard to copyright
All data are from public open datasets, as a result, there is no copyright issue involved.
6. How you intend to store the data on Filecoin, e.g. redundancy, location / miner preferences, etc
Redundancy: at least 3 copies
Location: intend to store data in Asia
Miner: have great reputation and contribution in Filecoin Community, accept real data deals during Slingshot Competition, or are willing to store real data on Filecoin Network.
7. Have you already ask datacap to another notary that have been accepted or rejected
Yes, we have already received Datacap from Filecoin Foundation and IPFS Force.

Hi Laura, thank you for your answers, for now we tried to keep the datacap allocation to one notary as possible and within the region request belongs. I will recommend you to reach IPFS Force for more datacap.
Have a great day,
Julien

This user’s identity has been verified through filplus.storage


Amcrest platform writes password to logs in plaintext

Home Assistant release (hass --version):
0.53.0
Python release (python3 --version):
Python 3.6.2
Component/platform:
amcrest
Description of problem:
During startup, my amcrest credentials are logged in plaintext to the HA log output:

Expected:
Passwords and similar secrets should not be recorded to the logs.
Problem-relevant configuration.yaml entries and steps to reproduce:

Configure Amcrest component
Start Home Assistant
Watch the output

Additional info:
I am using the Docker container and this appears in the Docker logs.  I have not confirmed whether this is being printed directly to stdout or if the credentials are being passed into a logging function.  Either way, I believe this should not be happening.

Ping @tchellomello

@colinodell  thanks for the heads up. I'll dig into this.

Here is the part of the code that is displaying the password (https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/amcrest.py#L121-L127)
        # currently aiohttp only works with basic authentication
        # only valid for mjpeg streaming
        if username is not None and password is not None:
            if device.get(CONF_AUTHENTICATION) == HTTP_BASIC_AUTHENTICATION:
                authentication = aiohttp.BasicAuth(username, password)
            else:
                authentication = None

Testing a quick hack it seems to do the job.
2017-09-23 16:24:24 INFO (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: service=load_platform.camera, platform=amcrest, discovered=device=<Bedroom
: AMC00050E4P017NY00
>, authentication=AmcrestBasicAuth(login='admin', password=******, encoding='latin1'), ffmpeg_arguments=None, name=Amcrest Camera, resolution=1, stream_source=2>
2017-09-23 16:24:24 INFO (MainThread) [homeassistant.components.camera] Setting up camera.amcrest

Code:
(python:ha-py36) ↪ git diff
diff --git a/homeassistant/components/amcrest.py b/homeassistant/components/amcrest.py
index 157b9574a..89ff9cd53 100644
--- a/homeassistant/components/amcrest.py
+++ b/homeassistant/components/amcrest.py
@@ -85,6 +85,14 @@ CONFIG_SCHEMA = vol.Schema({
 }, extra=vol.ALLOW_EXTRA)

+class AmcrestBasicAuth(aiohttp.BasicAuth):
+    """Override class to obfuscate password."""
+
+    def __str__(self):
+        return "{0}(login='{1}', password=******, encoding='{2}')".format(
+            self.__class__.__name__, self.login, self.encoding)
+
+
 def setup(hass, config):
     """Set up the Amcrest IP Camera component."""
     from amcrest import AmcrestCamera
@@ -122,7 +130,7 @@ def setup(hass, config):
         # only valid for mjpeg streaming
         if username is not None and password is not None:
             if device.get(CONF_AUTHENTICATION) == HTTP_BASIC_AUTHENTICATION:
-                authentication = aiohttp.BasicAuth(username, password)
+                authentication = AmcrestBasicAuth(username, password)
             else:
                 authentication = None

@pvizeli do you think we should create a helper within HA to be used in this kind of situation where the aiohttp authentication is passed via discovery platform?
Do you think this is acceptable? Any thoughts on how to address this issue?

@colinodell I'm sorry that I ended up losing track of this issue. Submitted a the PR #10569 today to address this problem
Thanks for reporting it! :+1:


Support github like apps

Feature Description
Support github like apps.
Apps are a combination of an oauth2 client, and a personal access token, which a user or organization can install on a set of their repositories, or account. Which allows it to modify and or enhance the experience.
This could be CI systems, pull request tools, webhooks, actions, you name it.
Apps are basically a way for other parties to get access to parts of the organization or account. This is generally a more secure way than using personal access tokens, as they're based on private keys and oauth2 token excahnge flows.
They're also a way to get more fine grained webhook requests automatically, without having to register a webhook for each repository.
Screenshots

This may've already been suggested, I just couldn't find anything because github and app, are so ubiquitous.

related: https://github.com/go-gitea/gitea/issues/13044


Let's see what we have and where

If done, closes #3

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe:

License exception is not an SPDX exception.

Documentation on acceptable licenses can be found here.

@wolfv done!  I see dll's being included and checked for dynlibraries, so I guess it should be all good! Please merge -- I am eager to try it out ;)

Cool!
Do we also need the .lib files in case someone wants to link 7zip.dll?

Oh, I have no clue in windows... May be? Would need to check what other packages do. If you merge as is, we could check first if it all works, and proceed with lib in follow up pr

ok, seems to work
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
The system cannot find the path specified.
Bundles\Format7z\x64\7za.dll
        1 file(s) copied.
Bundles\Format7zExtract\x64\7zxa.dll
        1 file(s) copied.
Bundles\Format7zExtractR\x64\7zxr.dll
        1 file(s) copied.
Bundles\Format7zF\x64\7z.dll
        1 file(s) copied.
Bundles\Format7zR\x64\7zra.dll
        1 file(s) copied.
The system cannot find the path specified.
Bundles\Format7z\x64\7za.lib
        1 file(s) copied.
Bundles\Format7zExtract\x64\7zxa.lib
        1 file(s) copied.
Bundles\Format7zExtractR\x64\7zxr.lib
        1 file(s) copied.
Bundles\Format7zF\x64\7z.lib
        1 file(s) copied.
Bundles\Format7zR\x64\7zra.lib
        1 file(s) copied

although something is not found...  I will remove printing listing now... imho it is ready unless you see what else is needed/it wants.

@wolfv AFAIK it is ready to be merged, with dlls and libs now

yes, looks good! thanks!!


Drop torch re-imports in npu and mlu paths

That's a follow up to cleanup the code in npu and mlu paths. Noted here: https://github.com/huggingface/accelerate/pull/2825#discussion_r1638310778
import torch is actually done file-wise and is not needed: https://github.com/huggingface/accelerate/blob/3b5a00e048f4393398d8ea8c4f468857f595f039/src/accelerate/utils/imports.py#L21
CAVEAT: I don't have HW to verify npu and mlu paths with tests.
CC: @SunMarc, @muellerzr

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.


[BUG] Can't use git with Bitbucket

Mage version
0.9.73
Describe the bug
After authentication with Bitbucket successfully, I tried to fetch code from Bitbucket and got this error
Cmd('git') failed due to: exit code(128)   cmdline: git fetch -v --progress -- test   stderr: 'fatal: Authentication failed for 'https://bitbucket.org/finalto360/mage.git/''
I c
To reproduce

Set up Oauth with Bitbucket using this instruction https://docs.mage.ai/production/data-sync/version-control#authenticate-with-bitbucket
Authenticate with Bitbucket successfully
Go to Remotes section and add one more remote repo using repo in Bitbucket. For example: https://bitbucket.org/mage-ai/mage-ai.git
Go to Actions section and choose the remote repo that I have just created in Step 3 and click fetch
Got authentication error

Expected behavior
Can fetch code from the remote repo in Bitbucket successfully
Screenshots
Authenticate successfully with Bitbucket

Add the remote repo from Bitbucket

Try to fetch code from the remote repo in Bitbucket and got error

Operating system

OS: Amazon LInux

Additional context
I checked documentation from Bitbucket and found this note https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/

It means that we have to use x-token-auth instead of username
But When I go to the code of mage-ai, I see we still use username like the other providers in function build_authenticated_remote_url
https://github.com/mage-ai/mage-ai/blob/0.9.73/mage_ai/data_preparation/git/utils.py#L172

This is published in 0.9.74


automate listing of tables

as per https://domingue-lab.slack.com/archives/D061MQDFPA4/p1706045707973379

I think they haven't updated the docs yet, but the function in the redivis r package is list_tables()


Error in ruuning the code in chapter 8

Hi,
How to solve this error in training the model?
Error.docx
I would be happy to solve the problem as somos as possible.
Thanks.
Yaser

Hi!
Could you please put your error message as plain text here? Word Document is not very convenient to work with

find where the error happened, probably at where establishing the variable "done".  You need to replace ".uint8" with ".bool".

.
../aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
../aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a
This is the error I faced to when I am running the training_model.py:
dtype torch.bool instead.
../aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
../aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
../aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
../aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
../aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
../aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprec

find where the error happened, probably at where establishing the variable "done". You need to replace ".uint8" with ".bool".

Hi,
The point is that I could not find any place that used .uint8

You're using wrong version of pytorch. Please install version which was stated in requirements.txt.
This warning is produced by new pytorch version, which shouldn't be used.

Hi,
I found the warning where it may arise, which is in Deep-Reinforcement-Learning-Hands-On/Chapter08/lib/common.py/

Hello,
Thanks a lot for your quik reply.

I need to replace “.bool” instead of “.uint8” in line 85 of common.py?
what about line 95?

Thanks,
Yaser

On 30 Jun 2020, at 11:31, ImGonnaDans<EMAIL_ADDRESS>wrote:
Hi,
I found the warning where it may arise, which is in Deep-Reinforcement-Learning-Hands-On/Chapter08/lib/common.py/
https://user-images.githubusercontent.com/42405338/86116272-b8518b00-baff-11ea-97eb-c66544343eba.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/79#issuecomment-651708967, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRLM2N677K7HXM6ZKZ6NHDRZG5IHANCNFSM4OMAEG5A.

Yes, uint8 is unsigned Byte, so the two variable need to be replaced. But in line 95, you need to use "torch.BoolTensor" and you are welcome.

Hi,
Thanks a lot. I works properly.
Just one question; How can I replace double DQN with DQN in this code (the purpose is to see the performance of another algorithm)? is this possible to replace based on this code?
Best,
Yaser

On 30 Jun 2020, at 11:53, ImGonnaDans<EMAIL_ADDRESS>wrote:
Yes, uint8 is unsigned Byte, so the two variable need to be replaced. But in line 95, you need to use "torch.BoolTensor" and you are welcome.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/79#issuecomment-651718787, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRLM2LJGXHQ2T4KG7MQX7TRZG73HANCNFSM4OMAEG5A.

Hi,
Yes. you needs to take place those codes in the red rectangle in the following picture.

Hi,
Thanks a lot for useful comments.

As far as I understood; I would need to bring Duoble DQN part and replace in line 97-100.

-The last issues:
How can I transfer all the codes related to stock trading to "Jupyter Notebook" and then do the TESTING part with data after doing training?
(this is very important to me as I am new in ML/RL    algorithm)
Best,
Yaser

On 2 Jul 2020, at 13:22, ImGonnaDans<EMAIL_ADDRESS>wrote:
Hi,
Yes. you needs to take place those codes in the red rectangle in the following picture.
https://user-images.githubusercontent.com/42405338/86357976-46b14280-bca1-11ea-94c8-deccfda4f84a.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/79#issuecomment-652973773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRLM2PSOGOHJ3MD4LJ42QLRZR3Z3ANCNFSM4OMAEG5A.

And then PLOT the graph of REWARD function in Jupyter Notebook.

On 2 Jul 2020, at 14:56, Yaser Kord<EMAIL_ADDRESS>wrote:
Hi,
Thanks a lot for useful comments.

As far as I understood; I would need to bring Duoble DQN part and replace in line 97-100.

-The last issues:
How can I transfer all the codes related to stock trading to "Jupyter Notebook" and then do the TESTING part with data after doing training?
(this is very important to me as I am new in ML/RL    algorithm)
Best,
Yaser

On 2 Jul 2020, at 13:22, ImGonnaDans<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
Hi,
Yes. you needs to take place those codes in the red rectangle in the following picture.
https://user-images.githubusercontent.com/42405338/86357976-46b14280-bca1-11ea-94c8-deccfda4f84a.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/79#issuecomment-652973773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRLM2PSOGOHJ3MD4LJ42QLRZR3Z3ANCNFSM4OMAEG5A.

Hi,
I think to do the TESTING with all figures to appear; one need to run this command:
/run_model.py -d data/YNDX_160101_161231.csv -m saves/ff-YNDX16/mean_val-0.332.data -b 10 -n test
I did it but gives me this error:
: Box bound precision lowered by casting to float32
warnings.warn(colorize('%s: %s'%('WARN', msg % args), 'yellow'))
Traceback (most recent call last):
File "./run_model.py", line 35, in
net.load_state_dict(torch.load(args.model, map_location=lambda storage, loc: storage))
File "/Users/anaconda3/lib/python3.7/site-packages/torch/serialization.py", line 419, in load
f = open(f, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'saves/ff-YNDX16/mean_val-0.332.data’
Best,
Yaser

On 2 Jul 2020, at 15:02, Yaser Kord<EMAIL_ADDRESS>wrote:
And then PLOT the graph of REWARD function in Jupyter Notebook.

On 2 Jul 2020, at 14:56, Yaser Kord<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
Hi,
Thanks a lot for useful comments.

As far as I understood; I would need to bring Duoble DQN part and replace in line 97-100.

-The last issues:
How can I transfer all the codes related to stock trading to "Jupyter Notebook" and then do the TESTING part with data after doing training?
(this is very important to me as I am new in ML/RL    algorithm)
Best,
Yaser

On 2 Jul 2020, at 13:22, ImGonnaDans<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
Hi,
Yes. you needs to take place those codes in the red rectangle in the following picture.
https://user-images.githubusercontent.com/42405338/86357976-46b14280-bca1-11ea-94c8-deccfda4f84a.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/79#issuecomment-652973773, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRLM2PSOGOHJ3MD4LJ42QLRZR3Z3ANCNFSM4OMAEG5A.

Hi,

you just need to use the DQN formulation in place of the DDQN code in the original code, the DQN formulation is $$ loss = r+\gamma \max_{a'}{A(s',a';\theta)}-Q(s,a;\theta)$$.

If PLOT code exixts in the original code, you wil get that, otherwise you need to write it if you want get that.

The error is kind of obvious, No such file in the path you given, you can check whether the mean_val-0.332.data exists.

<EMAIL_ADDRESS>

Hi,
Last request: can you please tell me how to run “run_model”.py; it gives me this error:
run_model.py: error: the following arguments are required: -d/--data, -m/--model, -n/—name
Yaser.

On 3 Jul 2020, at 03:10, ImGonnaDans<EMAIL_ADDRESS>wrote:
Hi,
you just need to use the DQN formulation in place of the DDQN code in the original code, the DQN formulation is $$ loss = r+\gamma \max_{a'}{A(s',a';\theta)}-Q(s,a;\theta)$$.
If PLOT code exixts in the original code, you wil get that, otherwise you need to write it if you want get that.
The error is kind of obvious, No such file in the path you given, you can check whether the mean_val-0.332.data exists.
<EMAIL_ADDRESS><EMAIL_ADDRESS>—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/79#issuecomment-653296380, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRLM2OXQVWP424VS3WDD7TRZU427ANCNFSM4OMAEG5A.

You can run this command:
python run_model.py -d ./data/YNDX_150101_151231.csv -m "the model's path" -n produced
Make sure that:

You have unpacked the csv files.

You have trained this model and it produced a model file such as checkpoint-1.data, you need to put the path of the model file behind "-m ", no double quotation marks.

As you can see, these parameters are required, and the meanings of them are written in the help.

Hi,
I could run the “run_model.py” after training with this command:
./run_model.py -d data/YNDX_160101_161231.csv -m lib/models.py  -b 10 -n test
but gives me this error:
Traceback (most recent call last):
File "./run_model.py", line 35, in
net.load_state_dict(torch.load(args.model, map_location=lambda storage, loc: storage))
File "/Users/anaconda3/lib/python3.7/site-packages/torch/serialization.py", line 426, in load
return _load(f, map_location, pickle_module, **pickle_load_args)
File "/Users/anaconda3/lib/python3.7/site-packages/torch/serialization.py", line 603, in _load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: could not find MARK
Yaser.

On 3 Jul 2020, at 03:10, ImGonnaDans<EMAIL_ADDRESS>wrote:
Hi,
you just need to use the DQN formulation in place of the DDQN code in the original code, the DQN formulation is $$ loss = r+\gamma \max_{a'}{A(s',a';\theta)}-Q(s,a;\theta)$$.
If PLOT code exixts in the original code, you wil get that, otherwise you need to write it if you want get that.
The error is kind of obvious, No such file in the path you given, you can check whether the mean_val-0.332.data exists.
<EMAIL_ADDRESS><EMAIL_ADDRESS>—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/79#issuecomment-653296380, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRLM2OXQVWP424VS3WDD7TRZU427ANCNFSM4OMAEG5A.

No, "lib/models.py" is not the model file, the model file was produced there.

Thanks, but It does not work for me.
Can we have Zoom/Skype meeting (short meeting) this afternoon? I need to present the results of this code soon
Yaser.

On 3 Jul 2020, at 07:50, ImGonnaDans<EMAIL_ADDRESS>wrote:
No, "lib/models.py" is not the model file, the model file was produced there.
https://user-images.githubusercontent.com/42405338/86440055-65184c00-bd3c-11ea-9776-2320775d4737.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/79#issuecomment-653383714, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRLM2OAWOER5MCYEY7QLKDRZV5SPANCNFSM4OMAEG5A.

I gave you my Email address just now. You can give me you contact info on that.

Hi,
My email account is<EMAIL_ADDRESS><EMAIL_ADDRESS>My Skype account is: Yaser Faghan (the one in Lisbon)

Can we talk tomorrow more relax; today I need to prepare the presentation for this code results and graphs?

If Yes, please let me know at what is fine with you (possibly with time difference); I am in Lisbon (UK time).

Thanks in advance,
Yaser

On 3 Jul 2020, at 08:54, ImGonnaDans<EMAIL_ADDRESS>wrote:
I gave you my Email address just now. You can give me you contact info on that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/79#issuecomment-653408047, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRLM2MJNWTSYZ2T2VNSPYTRZWFEZANCNFSM4OMAEG5A.

Hi again,
Can we talk on Monday by the Skype?
I did run the code and is working for both training and testing with the plot of reward evolution (Great!).
The only thing that I need is that I do change a bit the states (for adversarial attack purpose) and then I need to have
both (unperturbed and perturbed) plots of reward function in the same graph: I do not know how to do it in Notepad!
Thanks in advance,
Yaser

On 3 Jul 2020, at 10:13, Yaser Kord<EMAIL_ADDRESS>wrote:
Hi,
My email account is<EMAIL_ADDRESS><EMAIL_ADDRESS>My Skype account is: Yaser Faghan (the one in Lisbon)

Can we talk tomorrow more relax; today I need to prepare the presentation for this code results and graphs?

If Yes, please let me know at what is fine with you (possibly with time difference); I am in Lisbon (UK time).

Thanks in advance,
Yaser

On 3 Jul 2020, at 08:54, ImGonnaDans<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
I gave you my Email address just now. You can give me you contact info on that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/79#issuecomment-653408047, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRLM2MJNWTSYZ2T2VNSPYTRZWFEZANCNFSM4OMAEG5A.

Hi,
I trained the code and then run it but the graph is completely different than yours, why?
Can you please help me?
Yaser.

On 4 Jul 2020, at 22:50, Yaser Kord<EMAIL_ADDRESS>wrote:
Hi again,
Can we talk on Monday by the Skype?
I did run the code and is working for both training and testing with the plot of reward evolution (Great!).
The only thing that I need is that I do change a bit the states (for adversarial attack purpose) and then I need to have
both (unperturbed and perturbed) plots of reward function in the same graph: I do not know how to do it in Notepad!
Thanks in advance,
Yaser

On 3 Jul 2020, at 10:13, Yaser Kord<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
Hi,
My email account is<EMAIL_ADDRESS><EMAIL_ADDRESS>My Skype account is: Yaser Faghan (the one in Lisbon)

Can we talk tomorrow more relax; today I need to prepare the presentation for this code results and graphs?

If Yes, please let me know at what is fine with you (possibly with time difference); I am in Lisbon (UK time).

Thanks in advance,
Yaser

On 3 Jul 2020, at 08:54, ImGonnaDans<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
I gave you my Email address just now. You can give me you contact info on that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/79#issuecomment-653408047, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRLM2MJNWTSYZ2T2VNSPYTRZWFEZANCNFSM4OMAEG5A.

You can post a new issue. Maybe the auther cannot see this any more, because he closed this issue.
发送自 Windows 10 版邮件应用
发件人: Kord62
发送时间: 2020年7月9日 17:53
收件人: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
抄送: ImGonnaDans; Comment
主题: Re: [PacktPublishing/Deep-Reinforcement-Learning-Hands-On] Error inruuning the code in chapter 8 (#79)
Hi,
I trained the code and then run it but the graph is completely different than yours, why?
Can you please help me?
Yaser.

On 4 Jul 2020, at 22:50, Yaser Kord<EMAIL_ADDRESS>wrote:
Hi again,
Can we talk on Monday by the Skype?
I did run the code and is working for both training and testing with the plot of reward evolution (Great!).
The only thing that I need is that I do change a bit the states (for adversarial attack purpose) and then I need to have
both (unperturbed and perturbed) plots of reward function in the same graph: I do not know how to do it in Notepad!
Thanks in advance,
Yaser

On 3 Jul 2020, at 10:13, Yaser Kord<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
Hi,
My email account is<EMAIL_ADDRESS><EMAIL_ADDRESS>My Skype account is: Yaser Faghan (the one in Lisbon)

Can we talk tomorrow more relax; today I need to prepare the presentation for this code results and graphs?

If Yes, please let me know at what is fine with you (possibly with time difference); I am in Lisbon (UK time).

Thanks in advance,
Yaser

On 3 Jul 2020, at 08:54, ImGonnaDans<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
I gave you my Email address just now. You can give me you contact info on that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On/issues/79#issuecomment-653408047, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRLM2MJNWTSYZ2T2VNSPYTRZWFEZANCNFSM4OMAEG5A.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.


[Tiered Caching] Fix test testComputeIfAbsentWithFactoryBasedCacheCreation

Description
Fixing unit test behaviour.
Related Issues
Resolves https://github.com/opensearch-project/OpenSearch/issues/12699
Check List

[x] New functionality includes testing.

[x] All tests pass

~[ ] New functionality has been documented.~

~[ ] New functionality has javadoc added~

[x] Failing checks are inspected and point to the corresponding known issue(s) (See: Troubleshooting Failing Builds)
[x] Commits are signed per the DCO using --signoff
~[ ] Commit changes are listed out in CHANGELOG.md file (See: Changelog)~
~[ ] Public documentation issue/PR created~

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@peteralfonsi

@msfroh Might need your help on this one.


Play integration: class cast exception

More details here:
http://stackoverflow.com/q/20599367/485115

One year later. Is there a fix by now?

Unfortunately I'm torn apart by other projects, and I just don't can't find time for SORM. So the best bet of getting this fixed is to contribute.


std::array serialization cleanup

@shiozaki please check with bagel. This should make arrays of bitwise-serializable types serializable. This will probably need boost 1.56 to work optimally.

declared std::array bitwise serializable if T is (always good idea......?)

switched tests to binary archives, save few secs to check whether serialization is optimized

this supersedes changes in #40 , closes #73

@evaleev  as of 1.57 boost::serialization::make_array returns boost::serialization::array - and I wonder why this works. Could you elaborate?
http://www.boost.org/doc/libs/1_57_0/boost/serialization/array.hpp

that's the proxy class for serializing array for which there is support for
optimized serialization in binary archive. this optimization is only
enabled if type T is bitwise-serializable. This optimization obviously
breaks portability between different-endianness platforms, but OK for the
efficiency sake.
On Sun, Jan 11, 2015 at 6:07 PM, Toru Shiozaki<EMAIL_ADDRESS>wrote:

@evaleev https://github.com/evaleev as of 1.57
boost::serialization::make_array returns boost::serialization::array - and
I wonder why this works. Could you elaborate?
http://www.boost.org/doc/libs/1_57_0/boost/serialization/array.hpp
—
Reply to this email directly or view it on GitHub
https://github.com/BTAS/BTAS/pull/74#issuecomment-69516637.

--
web: valeyev.net

No, my question is that
(1) varray serializes using
  template<class Archive, typename T>
  void save (Archive& ar, const btas::varray<T>& x, const unsigned int version)
  {
      const typename btas::varray<T>::size_type n = x.size();
      ar << n << boost::serialization::make_array(x.data(), n);
  }

(2) boost::serialization::make_array returns boost::serialization::array which is not std::array
(3) I do not understand why this pull request changes behavior of this.

boost::serialization::array is the proxy class that was designed for help
with serializing data of varray ilk. std::vector is serialized using this
function (btw its capacity is not serialized
http://www.boost.org/doc/libs/1_57_0/boost/serialization/vector.hpp). I do
not see any advantage to casting to std::array first.
On Mon, Jan 12, 2015 at 8:43 AM, Toru Shiozaki<EMAIL_ADDRESS>wrote:

No, my question is that
(1) varray serializes using
template<class Archive, typename T>
void save (Archive& ar, const btas::varray& x, const unsigned int version)
{
const typename btas::varray::size_type n = x.size();
ar << n << boost::serialization::make_array(x.data(), n);
}
(2) boost::serialization::make_array returns boost::serialization::array
which is not std::array
(3) I do not understand why this pull request changes behavior of this.
—
Reply to this email directly or view it on GitHub
https://github.com/BTAS/BTAS/pull/74#issuecomment-69571089.

--
web: valeyev.net

No, you haven't got my question. I know all these things.
This commit potentially changes the behavior of serializing a Tensor whose storage is varray with complex double? Do you agree?

As I wrote in #73

Looking at boost/serialization/complex.hpp it may be fine by now (but I do not know).

I guess you are implying that complex<double>* now serializes bit-wise no matter what, which then legitimates this commit that reverts btas::make_array which was essentially doing
-  template <typename T>
-  auto make_array(const std::complex<T>* data, const size_t n) -> decltype(boost::serialization::make_array(reinterpret_cast<const T*>(data), 2*n)) {
-    return boost::serialization::make_array(reinterpret_cast<const T*>(data), 2*n);
-  }

i.e., casting complex<double>* to double* of twice as long.

Yes, std::complex will serialize in bitwise fashion if T is also bitwise
serializable. This obviously only matters for some archives. The new
approach eliminates the need to specialize varray serialization for other
types (toru::quaternion). Also for some archives (XML?) flattening out the
data is undesirable since it makes the interpretation less clear. The new
approach will serialize varray of complex to XML nicely.
On Jan 12, 2015 9:05 AM, "Toru Shiozaki"<EMAIL_ADDRESS>wrote:

As I wrote in #73 https://github.com/BTAS/BTAS/issues/73
Looking at boost/serialization/complex.hpp it may be fine by now (but I do
not know).
I guess you are implying that complex* now serializes bit-wise no
matter what, which then legitimates this commit that reverts
btas::make_array which was essentially doing

template
auto make_array(const std::complex* data, const size_t n) -> decltype(boost::serialization::make_array(reinterpret_cast<const T*>(data), 2*n)) {
return boost::serialization::make_array(reinterpret_cast<const T*>(data), 2*n);
}

i.e., casting complex* to double* of twice as long.
—
Reply to this email directly or view it on GitHub
https://github.com/BTAS/BTAS/pull/74#issuecomment-69573728.

Yes
On Jan 12, 2015 8:58 AM, "Toru Shiozaki"<EMAIL_ADDRESS>wrote:

No, you haven't got my question. I know all these things.
This commit potentially changes the behavior of serializing a Tensor whose
storage is varray with complex double? Do you agree?
—
Reply to this email directly or view it on GitHub
https://github.com/BTAS/BTAS/pull/74#issuecomment-69572818.

thanks for clarification!
On Jan 12, 2015, at 8:27 AM, Eduard Valeyev<EMAIL_ADDRESS>wrote:

Yes, std::complex will serialize in bitwise fashion if T is also bitwise
serializable. This obviously only matters for some archives. The new
approach eliminates the need to specialize varray serialization for other
types (toru::quaternion). Also for some archives (XML?) flattening out the
data is undesirable since it makes the interpretation less clear. The new
approach will serialize varray of complex to XML nicely.
On Jan 12, 2015 9:05 AM, "Toru Shiozaki"<EMAIL_ADDRESS>wrote:

As I wrote in #73 https://github.com/BTAS/BTAS/issues/73
Looking at boost/serialization/complex.hpp it may be fine by now (but I do
not know).
I guess you are implying that complex* now serializes bit-wise no
matter what, which then legitimates this commit that reverts
btas::make_array which was essentially doing

template
auto make_array(const std::complex* data, const size_t n) -> decltype(boost::serialization::make_array(reinterpret_cast<const T*>(data), 2*n)) {
return boost::serialization::make_array(reinterpret_cast<const T*>(data), 2*n);
}

i.e., casting complex* to double* of twice as long.
—
Reply to this email directly or view it on GitHub
https://github.com/BTAS/BTAS/pull/74#issuecomment-69573728.

—
Reply to this email directly or view it on GitHub.

no problem ... sorry for being dimwitted this morning
from looking at vector.hpp I actually need to be a bit more careful ... a small changeset is coming.

yes, XML serialization of varray is broken at the moment. fixes coming

xml works. ready to merge, iff bagel validation passes.

@evaleev Is the validation running on your side or shall I compile and test manually? I believe this should not break anything in bagel (and bagel's serialization tests are not thorough).

If you could do this would be great.
On Jan 14, 2015 12:27 PM, "Toru Shiozaki"<EMAIL_ADDRESS>wrote:

@evaleev https://github.com/evaleev Is the validation running on your
side or shall I compile and test manually? I believe this should not break
anything in bagel (and bagel's serialization tests are not thorough).
—
Reply to this email directly or view it on GitHub
https://github.com/BTAS/BTAS/pull/74#issuecomment-69954692.

../../../../src/util/serialization.h:258:10: error: redefinition of 'template<class Archive, class T, long unsigned int N> void boost::serialization::serialize(Archive&, std::array<_Tp, _Nm>&, unsigned int)'

I think BTAS should not include serialization for std::array.

Re: boost serialization for std::array : which version of boost do you use? boost itself defines it since 1.56.0 . If boost version < 1.56, someone has to define it. Does BAGEL has a definition for this template turned on by some preprocessor flag?

The on my laptop was 1.55. I can set it in bagel - Is it literally BOOST_SERIALIZATION_STD_ARRAY?

you don't need to define BOOST_SERIALIZATION_STD_ARRAY any longer, even if
boost does not define serialization for std::array, btas will.
On Wed, Jan 14, 2015 at 1:28 PM, Toru Shiozaki<EMAIL_ADDRESS>wrote:

The on my laptop was 1.55. I can set it in bagel - Is it literally
BOOST_SERIALIZATION_STD_ARRAY?
—
Reply to this email directly or view it on GitHub
https://github.com/BTAS/BTAS/pull/74#issuecomment-69965336.

--
web: valeyev.net

No, users may have std::array serialization and may not want to delegate it to BTAS (this is a philosophical question). Imagine I have two sets of tensor libraries and switch back and forth. I want to keep the one in BAGEL.

As of 1.56 this is no longer an option as boost provides it and user's
serialization will conflict.
On Wed, Jan 14, 2015 at 1:35 PM, Toru Shiozaki<EMAIL_ADDRESS>wrote:

No, users may have std::array serialization and may not want to delegate
it to BTAS (this is a philosophical question). Imagine I have two sets of
tensor libraries and switch back and forth. I want to keep the one in BAGEL.
—
Reply to this email directly or view it on GitHub
https://github.com/BTAS/BTAS/pull/74#issuecomment-69966434.

--
web: valeyev.net

I understood, but that can be solved in BAGEL. My problem above cannot be solved in BAGEL (i.e., user side).

How about the BTAS-provided boost::serialization::serialize(std::array...) is provided by default for <1.56, but can be disabled (rather than need to be enabled explicitly). This way most users can do nothing and get array serialization for free if their boost is not up to date. Experts can override this behavior (the question to experts then: why ability to override serializtion for array is important but not for vector?)

Yes, I think it is fine with me. Probably you could just insert #ifndef #endif ?

OK done.

@evaleev this could be merged as far as bagel is concerned.

Toru @shiozaki, thanks!


Updates

This change updates dependency versions, allows for withheld private keys, and
enlarges the size of the key pair.

Actually, 2_048 is a legal (and encouraged!) way to delimit large numbers.  You could even do 1_048_576 which is easier to read than 1048576.

Learn something new every day!


v-for trans(array) missing feature

Hi, today recognised that langscanner wont add translation keys to files if they in array maybe some idea to add this feature too ??
  <div v-for="key in keys" :key="key">
      {{ trans(key.name) }}
   </div>

@zdarin Unfortunately there is no easy way of doing this.
The package works by scanning project files for translation function calls like @trans(), trans(), __() and grabbing whatever is passed as parameter.
If the parameter is a dynamic value/variable (either vue or php), it won't be able to determine the value of that variable - and, as far as I know, there is no way of doing this :(

@druc  understand thx


Fix tileset urls in Sandcastle

All urls now point to ion links rather than the Specs folder.
Fixes #6212
Easier to review without whitespace changes: https://github.com/AnalyticalGraphicsInc/cesium/pull/6218/files?w=1

@lilleyse, thanks for the pull request! Maintainers, we have a signed CLA from @lilleyse, so you can review this at any time.
:warning: I noticed that CHANGES.md has not been updated. If this change updates the public API in any way, fixes a bug, or makes any non-trivial update, please add a bullet point to CHANGES.md and comment on this pull request so we know it was updated. For more info, see the Pull Request Guidelines.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.
:earth_africa: :earth_americas: :earth_asia:

Thanks @lilleyse!


submit a pet project

Have an idea for a pet project? I'd love to hear.
back to the farm :sheep:

This is a bit premature...


Pass deltaTime to GetInput

Changes interface for IInputProvider.GetInterface to take TimeSpan deltaTime during the OnTick method. This allows us to know how much time has passed since the previous GetInput so that, for example, if possible to query if an input has happened within a recent timespan, we have a timespan to check.

Sorry for the very late feedback.
GetInput method is called (owner side) every tick, so in most (if not all) cases in a fixed rate defined with the ticker.
A better approach would be to save the input reception time server / host side so when a tick occures you can retrieve the latest input or whatever.
I don't really see the uses and gains behind this request. Can you provide a usecase that benefit from such a change ?


Automatic language detection can't recognize de-DE as de

Bug
Usually, the site should automatically select the language of the browser, like Firefox does. Some browsers like Chrome do not send de, but de-DE. In fact, depending on the user, the German code could be:
de-AT German (Austria)
de-CH German (Switzerland)
de-DE German (Germany)
de-LI German (Liechtenstein)
de-LU German (Luxembourg)
To Reproduce
Steps to reproduce the behavior:

Set your system to German
Check in the console if navigator.languages returns ['de-DE'] and not ['de']
Visit odysee.com on a new Chrome profile, it will not change the language or content on odysee.com

Expected behavior
If it can't find the language, split the language string at - and just use the first part, in this case de, the latter part isn't important. I'm seeing more complaints recently about almost no German content and think it's also due to the automatic language detection not working in many cases, this seems to affect quite a lot of people.
Console in Chrome (German):

Request Header looks like this for me on Chrome: accept-language: de-DE,de;q=0.9

I have noticed in firefox, I do not get the web page on the configured language [Spanish (spain)]
the output to navigator.languages is Array(4) [ "es-ES", "es", "en-US", "en" ]
Also on my first request to https://odysee.com/ I have this on the request header:
Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3
Is it because there is no Spanish translation, or because the odysee frontend does not understand what firefox is sending?
I am both a native Spanish speaker and a developer so either way I might be able to help.
Not very comfortable using electron tho, so if i give a solution it would be using pure js, so maybe not the best solution

If it can't find the language, split the language string at - and just use the first part

I got this code got lost during a revert or merge.  Let me take stab at it ...

Wow! super fast @infinite-persistence I think your solution may help with chrome, but in firefox, i believe this is an array, but i'll have to look at that
Hopefully I'll check that today.

I think the array version is navigator.languages, which seems like still in beta form. navigator.language will be in string form

Yep, that is exactly how it works, just checked on the oficial web page, since it is already merged, and it works flawlessly


Bratseth/quota capacity policies

@hakonhall please review at least the commits up to the last
@oyving please review the last one

Continued in https://github.com/vespa-engine/vespa/pull/31241


BRDF

[x] Add a BRDF vertex and fragment shaders (port of the Unity/cg version)

[x] Add albedo and normal texture support to the BRDF shaders

[x] Make BRDF an easy to use option in SurfaceEffect

[x] IOR or const float (0.04) for dielectrics? Forward: IOR, Deferred: const

Rework G-Buffer to be able to save all BRDF values :

[x] Metallic: Roughness, Metallic, Specular, (R,G,B)
Extra texture for subsurface?

[ ] Subsurface: Subsurface Color, Subsurface (R,G,B,A)

[ ] Adapt deferred lighting calculation accordingly

[x] Rework FusMaterialPBR and potentially FusMaterial (feature/brdf)

[ ] Rework FusSceneConverter accordingly (both ways)

[x] Add IEquatable<T> to the MatChannels and FusMaterials again (feature/brdf)

Related to #130


Service catalog 4

links and copy edit.

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


Triggering second grand final to disappear doesn't remove that round

If a second grand final round has been triggered and edit causes the first final to change the outcome (winner bracket finalist wins immediately), the old secondary grand final round is not properly removed.

Accidentally closed this issue instead of #83 with the commit message.


Don't create formatted strings for logs that aren't going to be emitted anyway. [phab:D1408]

Created by benjyw at 2017-03-03 20:39:08:
This adds a method call on every logging operation, but this will almost
certainly be inlined away by the JVM at runtime.

jrtom accepted this revision at 2017-03-03 20:46:50

jrtom closed via commit 6eceafb768199265625a573f1dba753b78879465 at 2017-03-06 18:02:07


[FIX] broken links

Description

unlinked references to "[rustc]" can be found in the first paragraph of the "about" page
unlinked reference to "[rustc dev guide]" can be found in the "links & resources" page

Acceptance Criteria

[x] fix broken links in book

@doc-jones here's a fresh PR without opinionated changes... just fixing broken links :)


feat: add more repositories for kepler

fixes #1244

@BGrasnick this is great!

Thanks @BGrasnick!
Have you considered using a different check set for some of those repositories? I'm mentioning it because it looks like some of them won't pass some of the checks for each of the sets, and the overall Kepler score will get worse. If this is intentional then we can merge as it is, it's not a problem. However, if some of these repositories are not expected to have -let's say- the community content, maybe it'd be better to not use that check set on them.
The check sets available at the moment are: code, code-lite, communityand docs, and it's possible to use one or more on each repo. You can find the list of checks CLOMonitor runs for each set here.
Hope this helps 🙂

@tegioz thank you so much for the advice! I'll look into it and update the PR!

@tegioz I think it should be better and more appropriate now!
@rootfs if you want please also check if that fits better :)

Awesome! Happy to merge when you are ready 🙂
Please note that CLOTributor will also start processing those repositories as well to collect issues 😉 It's possible to disable that if you only want CLOMonitor to use them though.

thank you @tegioz for the pointers and @BGrasnick for the PR, code-lite is a good choice


No Face Detected

I have a piece of footage with one face, it's not occluded, it's very clearly in frame. Even if I set my confidence threshold really low on mediapipe_utils.py, it gives me No Face Detected, or put the face in the very wrong place. What do you think is going on?

Hey, I believe this could be caused because the mediapipe face detector is currently able to only recognize faces "near" the camera (https://ai.google.dev/edge/mediapipe/solutions/vision/face_detector). This face detector is used by mediapipe face mesh (https://ai.google.dev/edge/mediapipe/solutions/vision/face_landmarker).
One solution would be to use another face detector (e.g. https://github.com/hhj1897/face_detection) or crop the image around the face you want so that it is somehow "closer" to the camera.

I'm pretty sure that's the problem, and they haven't released a model with a different version of Blazeface yet. Is the FaceMesh important, or is just the Face Detection? I'm wondering where in the code you could swap in the different detector.

It's not important, we actually only need face detection. If you check https://github.com/georgeretsi/smirk/blob/main/demo_video.py#L20 we use the keypoints to get a bounding box and use this to get the transform that crops the face. If you use another face detector you can get these values directly.

Replacing with dlib worked, thank you.

You were right-- it's best to crop down with another face detector, like dlib, and then pass that into mediapipe for the smoothest result. bypassing MP altogether didn't work, the 3DMM was all over the place.

I'm having a lot more luck using the full-range mediapipe model:
mp_face_detection = mp.solutions.face_detection
mp_drawing = mp.solutions.drawing_utils
Initialize the face detection model
face_detection = mp_face_detection.FaceDetection(model_selection=1, min_detection_confidence=0.25)

I think we can close this thread with this—
I replaced Mediapipe with Retinaface normal quality and it can handle most types of shots now.
Let me know if you’d like to implement that.


An attribute found in the rankingRules must not be added to searchable and displayed attributes

Related to this discussion, especially this comment.
Here are the steps to reproduce:

create an index
udpate ranking rules like this:

[
	"asc(title)",
	"typo"
]

Here are the settings now:
{
    "rankingRules": [
        "asc(title)",
        "typo"
    ],
    "distinctAttribute": null,
    "searchableAttributes": [
        "title"
    ],
    "displayedAttributes": [
        "title"
    ],
    "stopWords": [],
    "synonyms": {},
    "acceptNewFields": true,
    "attributesForFaceting": []
}

=> the "title" field should not be added to searchableAttributes and displayedAttributes.
Don't forget to add tests ❤
Tested on master before the v0.11.0 release.

Just looked at the code, and the behavior is weird, or I don't understand the acceptNewField param:
for name in ranked_field {
   if schema.accept_new_fields() {
      schema.set_indexed(name.as_ref())?;
      schema.set_displayed(name.as_ref())?;
   }
}

This means that this is legit:

create an index
add ranking rule asc(foo)
set acceptNewFields to false
add ranking rule asc(bar) (notice that bar is a new field)

Is this how we want it to behave? Is accept new field a good name then?

Not sure to understand what you mean.

add ranking rule asc(bar) (notice that bar is a new field)

What do you mean by "notice"? That bar is added to searchable and displayed attributes? It should not, as I said in the issue. Not matter what the value of acceptNewFields.

This feature has been requested by the team and also @curquiza, long time ago. I would like, if we change the behavior, again, to make a real open proposition and not just a submarine issue.

It's not a submarine issue, we discussed a lot about the settings behavior here: #761
Yes we asked for this behavior before, but I (and the integration team) realized that the other settings behavior was not clear at all, in the docs and most of all in our mind.
According to the settings behavior, Kero took the decision:

When an attribute is found in the rankingRules an attribute must not be considered new #761 (comment).

See this comment https://github.com/meilisearch/MeiliSearch/issues/761#issuecomment-641901020.
And we (the SDKs team) agreed. You can guess our opinion is obviously not the same now we figured out the real behavior of the MeiliSearch settings 😉
In this same comment (https://github.com/meilisearch/MeiliSearch/issues/761#issuecomment-641901020), we decided to create 3 separate issues about the settings to make it clearer.
And Marin created one that gathers the 3 ones #776, in the same mindset of making it clearer.
@qdequele Is there a missing step we forgot and that you would add to make all of these process clearer?  🙂

Hey @qdequele which "feature" are you talking about?
The fact that we do not consider fields present in the ranking rules as a known field and thus we keep automatically adding them to the displayed and searchable attribute list?


Doesn't do anything in VS Code

When using the embedded nvim instance in VS Code, ProseToggle does not work.

most likely because the VS Code neovim instance overwrites some of the relevant bindings: https://marketplace.visualstudio.com/items?itemName=asvetliakov.vscode-neovim#vscode-specific-bindings


[DOC] Release 0.5.0 - update README badges

updates README badges

Codecov Report

Merging #204 (f02a7ef) into main (bcb3d54) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main     #204   +/-   ##
=======================================
  Coverage   82.41%   82.41%
=======================================
  Files          43       43
  Lines        2832     2832
=======================================
  Hits         2334     2334
  Misses        498      498


Eloquent event hooks show odd getDirty() behaviour

Laravel Version: 5.8.36
PHP Version: 7.3.5
Database Driver & Version: mysqlnd 5.0.12-dev

Description:
Im not sure if this is a bug or a feature, but at least it is an oddity. When you update a model, lets assume a User, you can hook into the Eloquent events like updating/updated/saving/saved etc.
Eloquent models keep track of dirty properties using the syntax $user->getDirty() (returns array with all properties) or $user->isDirty('username') (returns boolean).
Consider the following case:
// Register event hooks.
User::created(function($model) {
    dump($model->getDirty());
    $model->update([
        'username' => 'Foobar'
    ]);
});

User::updating(function($model) {
    // Expecting just "username" to be dirty, which is not the case (all 3 properties are dirty).
    dump($model->getDirty());
});

// Create a user.
User::create([
    'username' => 'John',
    'points' => 25,
    'email' =><EMAIL_ADDRESS>]);

The created hook is called after the model has been created, i.e. an autoincremented id is available at this moment. All good up to this point.
Now, I expect the $model->getDirty() from the created hook to actually be empty, but it is not (see first dump(). It holds all properties as passed to the User::create() method. Even when calling $model->update(...) inside the created hook, will also result in a full dirty properties array inside the updating hook, with an updated 'username' that is (see second dump()).
I can kinda understand why this is the case but it also conflicts with the idea that a persisted model should not have dirty properties.
Is there any reason why this is happening?

Laravel Version: 5.8.36

Not supported anymore, please update first

Updated to latest version 6.10.0, the same issue applies.

Hey there,
Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to report back and I'll gladly help you out and re-open this issue.

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

Thanks!


Unified rc12 testing: diags_environment_commands doesn't seem to be set up properly for Compy

$ zppy -c tests/integration/generated/test_complete_run_compy.cfg
$ cd /compyfs/fors729/zppy_test_complete_run_output/v2.LR.historical_0201/post/scripts
$ grep "ERROR" *status
e3sm_diags_atm_monthly_180x360_aave_environment_commands_model_vs_obs_1850-1851.status:ERROR (5)
e3sm_diags_atm_monthly_180x360_aave_environment_commands_model_vs_obs_1850-1853.status:ERROR (5)
e3sm_diags_atm_monthly_180x360_aave_environment_commands_model_vs_obs_1852-1853.status:ERROR (5)
$ cat e3sm_diags_atm_monthly_180x360_aave_environment_commands_model_vs_obs_1850-1851.o553041
Could not find conda environment: e3sm_diags_20230816
You can list all discoverable environments with `conda info --envs`.

/tmp/slurmd/job553041/slurm_script: line 121: cdscan: command not found

From the cfg:
environment_commands = "source /qfs/people/fors729/miniconda3/etc/profile.d/conda.sh; conda activate e3sm_diags_20230816" (set by "diags_environment_commands": "source /qfs/people/fors729/miniconda3/etc/profile.d/conda.sh; conda activate e3sm_diags_20230816", in tests/integration/utils.py).

@forsyth2, do you have leads on this problem or do you need help?

@xylar I think I've resolved this. Looks like the conda activation line just needed to be updated to use mamba. (Strangely that didn't seem to cause an issue on Chrysalis or Perlmutter though).


fixes to website

Hey Dan,
Looking good! I tweaked a few things, especially the _quarto.yml, to get this fully working:

fix _quarto.yml; output to docs; + missing *.qmd; - redundant main_page.qmd
+ .nojekyll to speed up rendering (b/c not using Jekyll)

If you want to have a live website working with Github Pages from your repo, like:

https://bbest.github.io/FGBNMS_DBv3/

then try making the following changes (navigate: 1, 2, 3) under your repo Settings after merging this PR (pull request):

Awesome. Thanks, Ben!

It looks like you merged it ok, but did not follow my suggested 1,2,3 steps to make your website live here:
https://dotis.github.io/FGBNMS_DBv3
What's the point of making a website if nobody else can see it?

Trying to get this going. It asks for a custom domain, which I don't need. Do I need to add anything there?

Hi @dotis,
Nope, you don't need a custom domain. If you follow the 1,2,3 steps, then it should become visible here:
https://dotis.github.io/FGBNMS_DBv3
There is a default Action that failed for some reason here that I cannot discern:
https://github.com/dotis/FGBNMS_DBv3/actions/runs/4178462193
If you added me as a Collaborator (better yet with Adminstrator privileges so I could poke at the Settings), then I could investigate

@bbest You should be a collaborator now. Unsure how to add admin privileges.

Hmm... I don't see an invitation to that effect and don't seem to have Admin capabilities since can't see Settings tab.

Managing teams and people with access to your repository - GitHub Docs

Voila!
https://dotis.github.io/FGBNMS_DBv3/
I added a README.md (which is good practice) and that kicked off a 2nd attempt at the Action pages build and deployment to website which completed successfully:

pages build and deployment · dotis/FGBNMS_DBv3@35d0df9

Cool. I made some updates to the EFGB.qmd page and the _quarto.yml that I did push to github, but I don't see in the render of https://dotis.github.io/FGBNMS_DBv3/.   How do I push that new info and update the /docs folder?
Also, I don't have those access options described in that tutorial. It's different, but you seem to have access.
Thanks!

Hi @dotis,
When you click the Render button in RStudio (see
https://quarto.org/docs/computations/r.html#rstudio), it reads the
_quarto.yml configuration and outputs the .qmd files into docs/.html.
On Tue, Feb 14, 2023 at 6:26 PM dotis @.***> wrote:

Cool. I made some updates to the EFGB.qmd page and the _quarto.yml that I
did push to github, but I don't see in the render of
https://dotis.github.io/FGBNMS_DBv3/. How do I push that new info and
update the /docs folder?
Also, I don't have those access options described in that tutorial. It's
different, but you seem to have access.
Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/dotis/FGBNMS_DBv3/pull/6#issuecomment-1430663058, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAVUWCIWAKYNCGO7ZC42M2DWXQ5GZANCNFSM6AAAAAAUW6ZYHQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Ben Best, PhD
Environmental Data Scientist
EcoQuants.com http://ecoquants.com/
busy times: PT
@.&ctz=America/Los_Angeles&mode=WEEK&title=ben%40ecoquants.com%20busy%20times%20%28PT%29>
, ET
@.&ctz=America/New_York&mode=WEEK&title=ben%40ecoquants.com%20busy%20times%20%28ET%29>
+1.805.705.9770 <(805)%20705-9770>

@bbest Got it. I was rendering the new page I was working on, but not the main page. My pages seem cluttered by warnings about R packages and plot_ly ignoring values. Let's discuss cleaning that up at our next mbon tech.

@dotis, check out these options from smallest to broadest effect:

Individual code chunk

#| echo: false
#| warning: false

# your code...

Individual qmd
in frontmatter yaml:

execute:
  echo: false

Whole Rproj
in _quarto.yml:

execute:
  echo: false
  warning: false

Further reference:

Quarto - Execution Options
Quarto - Code Cells: Knitr

Thanks, @bbest
One question. The plotly plots on the EFGB page render ok from RStudio, but show up blank when using the URL.


Improve support for custom stages and fit methods

This PR greatly improves the support for externally defined custom PISA stages and custom fit methods.
 It is now possible to easily implement custom fit methods in a sub-class, all they have to do is to follow the _fit_{method} naming scheme. This is also tested in a unit test.
The only change for analyzers is that fit_ranges has been renamed to ranges and fit_octants has been renamed to octants for consistency.
For externally defined stages, PISA will now search for stage definitions in the {stage_name}.{service_name} module if it fails to find a stage in pisa.stages.{stage_name}.{service_name}. This makes it possible to define custom stages for an analysis without changing PISA, as long as one adds the directory with the stage definitions to the PYTHONPATH.

Also note that a lot of changes are just my editor removing trailing whitespace. When you hide whitespace in the diff view, it looks much less intimidating. :)

Hi, this look fine to me, but let's give a chance to the high stats folks to comment

Maybe I should add backwards compatibility to re-map fit_octants to octants and fit_ranges to ranges and issue a deprecation warning. That way, this PR should not introduce any changes to already existing analyses.

I think that would be nice to have, and then we should also be able to merge this right away without causing other issues downstream

Okay so now at least in theory this PR should not break anyone's configuration. It would be nice if @kayla-leonard and @ts4051 could confirm that their analysis still runs with these changes!

Since there are no further comments, I would say that this is fine and merge later today. The unit test does check that the backwards compatibility works. The Retro-Sample people seem to be using their own fork anyway (although I hope that this PR in particular can reduce the need for forking, because analysis-specific stages can be defined externally).


vscode reads AltGr key as cursor-left move through X11 connections

VSCode Version: 1.11.2 (Commit 6eaebe3b9c70406d67c97779468c324a7a95db0e)
OS Version: Ubuntu 16.04.2 / Windows 10

Steps to Reproduce:

install/start X server on Windows system (Xming, MobaXterm or VcXsrv)
start code on Linux box (make sure your SSH client has X11 forwarding enbled), use AltGr to compose "{" or similar, cursor jumps left. Interesting to note that both the "{" character and the cursor-left move are produced. This has started with VScode 1.11. Same with code-insiders. Don't get me started.
Tested on 4 different computers.

Experienced the same (same config as OP except Win 7). You can see the cursor move left when clicking just AltGr.
The problem stopped when I -- as the release notes for 1.11.1 suggests -- switched to "keyboard.dispatch": "keyCode".

I had the same issue. Adding "keyboard.dispatch":"keyCode" fixed it. Thanks @brotulix

After updating to 1.15.1 I had this problem. I didn't have it with prior versions since 1.12 I think. Setting the parameter as suggested by @brotulix fixed the problem.

I had the same issue with version 1.16.1. The solution proposed works as expected!

This solved this issue for me, Thanks :-)

Adding "keyboard.dispatch":"keyCode" fixed the issue but creates an other one.
I can't use the ctrl+/ to comment a line of code anymore.

I had the same problem for a week, struggling with setkbdmap and others. Thanks for the info.
As for the ctrl + / shortcut, i had to remap it to ctrl + shift + / (azerty kbd) even if it worked before when mapped to ctrl + /

I had the same problem and changing it to keyCode fixed it for me.

This also fixed the "/" key of the numpad acting like "page up" for me

same problem and solution here. I believe this only starte after upgrading to 1.30.2. prior version 1.28 or so.

This was driving me crazy, I thought it was the auto-completion of the braces, until I finally realized the cursor was moving as soon as I pressed AltGr. Thanks a bunch!

https://github.com/Microsoft/vscode/wiki/Keybinding-Issues

Thanks! Really useful.

"keyboard.dispatch":"keyCode" fixed both "/" on NumPad and "Alt Gr" issues. (v 1.45.0)

Had the same issue with vscode and Remote Desktop from Windows 10 to an Ubuntu Desktop VM running vscode.
Thanks to this setting the really annoying cursor jumps to the left when entering brackets are gone now.
You are awesome guys! :)

Had this problem on Remote Desktop to my Linux Mint machine in vscode 1.55.2. keyCode fixed it.

Thanks for this solution, I had this exact problem with vscode in a Kubuntu 20.04 virtual machine. The setting has to be applied for "User", and then it solves the AltGr = "left move" problem that was driving me crazy.

Thanks from my side, too. I had never found this by myself. Just for the records: here's the link to MS's documentation: https://code.visualstudio.com/updates/v1_11#_improved-keyboard-layout-support

Same issue when using Remmina to RDP from Ubuntu 20 to Ubuntu 22, Qwertz keyboard layout. Confirm that "keyboard.dispatch": "keyCode" works but breaks Ctrl + / - and I fear further keyboard shortcuts could be affected as well ...
Further, I use settings sync but would like not to synchronize this particular setting. There seems not to be a way to define certain settings locally on a single device - or even better, only when a remote connection to the DE is detected? Would be really great if support for this could be improved!

I don't beleave it, this issue is 7 years old and yet no solution? It is absolute productivity stopper: after a while of blind typing you find a completely messed up source file and have to correct it keystroke by keystroke.

thanks a lot, because i didn't found the wiki link by myself yet.
on a remote debian 12 + cinamon + xrdp connection with remmina, french keyboard was working fine with all kb layouts i tried, excepting in vscode 1.90.2. during rdp connection. No problem when using local console.

Setting keyboard.dispatch to keyCode in the settings solved the problem for me.


Add optional column for schema_version in crsql_changes

This will allow us to ensure, at the library level, that incompatible schemas are not synced.

Is this supposed to be an integer that is incremented with every migration or some kind of hash from the actual table structure? I think the later would be more robust, since it would prevent an accidental sync between completely different DBs.


Suppress warning CHEF-3694 for log dir #312

This is #312 rebased on top of the latest master

@phlipper sorry to bother you but found a little thing https://github.com/phlipper/chef-percona/pull/320

@joelhandwell thanks for the contributions, and the keen :eyes:

Thanks!


Response.content returns the gzip compressed file

Response.content has not been unzip
Response.content has not been unzip
Hello, please ask a question, other website requests are basically decompressed, but when you request this URL(https://www.betburger.com/users/sigin_in), you return the compressed string.
=======================code============================
coding=utf-8
import requests
url = 'https://www.betburger.com/users/sign_in'
headers = {
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'zh-CN,zh;q=0.9',
'cookie': '__cfduid=dc9505fc253be4d1f40fc6158900b6cb11531922677; cookieconsent_dismissed=yes; abb_web_session=7a9d700e75ad796a695cfad024c93989; _ga=GA1.2.1097857175.1531980113; _gid=GA1.2.765234195.1531980113; _gat_UA-113146417-2=1; _gat_UA-35300177-2=1',
'referer': 'https://www.betburger.com/',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36'
}
rp = requests.get(url, headers=headers)
print rp.content

sos

Hi there! Thanks for opening this issue. Unfortunately, it seems this is a request for help instead of a report of a defect in the project. Please use StackOverflow for general usage questions instead and only report defects here.


Programatically dismiss custom toast

Looking at the code implementation, the custom toast function doesn't return an id.
Is it possible to programatically dismiss a given custom toast without an ID?
Also, if I use the toast.dismiss() function to dismiss all active toasts, I'm getting a warning:
const renderCustomToast = () => {
  toast.custom(shallowRef(MyToastComponent), { duration: Infinity })
}

const dismissToast = () => {
  toast.dismiss()
}

This triggers the following warning
Vue warn]: Maximum recursive updates exceeded.
This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself.
Possible sources include component template, render function, updated hook or watcher source function.

fixed #20


I've just released the same package!

But to solve a different problem, adding enums to the template.
Then I realised it was just static data, so checked NPM and here we are :P
No point having two packages out there - do you accept PRs? Could I be a maintainer?
I'd add the following options:

namespace - so data can sit under a node; avoids clashes
freeze - so things like enums (clearly shared, project-wide) can't be altered

The code I wrote already is here:

https://github.com/davestewart/vue-enums/blob/master/src/index.js

I was also in the process of adding a demo.
Happy to PR this into yours.

@davestewart this looks very similar to this one https://github.com/kay999/vue-constants

@phiter I guess we are all solving similar problems!
I think staticData is more in line with asyncData from Nuxt and this package is more useful in that you can provide a function, and it is already on NPM.

vue-constants is also on npm and it has over 1k weekly downloads.
I found this package when I had the exact same idea XD

Hmm... that's promising. Maybe I'll push my PR there as well. First one to pull wins!

Sorry chaps, been off the OS wagon for a while. Will take a look at this today.

Sweet! I'm absolutely terrible at getting back to my OS tickets when I'm busy so I know how it is

Hi @wagerfield ...
It's been a while!
Any chance you could look at this?


Error on telemetry docker restart

Today I pulled the last repo changes on my server and restarted and recreated the docker container.
After this I only get the attached errors.

panic: open /config/0013_chain.pem: permission denied

the file "0013_chain.pem" is there and also has permissions for all to read.
Anyone with an idea on this?
Log entry:

goroutine 1 [running]:
app-1  | main.main()
app-1  | 	/go/src/fleet-telemetry/cmd/main.go:50 +0x106
app-1  | 2024/12/13 12:28:22 maxprocs: Leaving GOMAXPROCS=2: CPU quota undefined
app-1  | {"activity":true,"context":"fleet-telemetry","level":"info","msg":"config_skipping_empty_metrics_provider","time":"2024-12-13T12:28:22Z"}
app-1  | {"activity":true,"context":"fleet-telemetry","level":"info","msg":"starting_server","time":"2024-12-13T12:28:22Z"}
app-1  | {"activity":true,"context":"fleet-telemetry","level":"info","msg":"kafka_registered","namespace":"telemetry","time":"2024-12-13T12:28:22Z"}
app-1  | {"activity":true,"context":"fleet-telemetry","dispatcher":"logger","level":"info","msg":"attempting_to_close","time":"2024-12-13T12:28:22Z"}
app-1  | {"activity":true,"context":"fleet-telemetry","dispatcher":"kafka","level":"info","msg":"attempting_to_close","time":"2024-12-13T12:28:22Z"}
app-1  | {"activity":true,"context":"fleet-telemetry","level":"info","msg":"stopped_server","time":"2024-12-13T12:28:22Z"}
app-1  | panic: open /config/0013_chain.pem: permission denied
app-1  |
app-1  | goroutine 1 [running]:
app-1  | main.main()
app-1  | 	/go/src/fleet-telemetry/cmd/main.go:50 +0x106

I had to switch back to the commit "03528fd" to get it back working again...
What can cause this problem? Now everything is working fine again...

Check file permissions on file: /config/0013_chain.pem:
Fleet-telemetry is using this image:
FROM gcr.io/distroless/cc-debian11:nonroot
I quick fix is to run the docker container fleet-telemetry as user "root".
https://stackoverflow.com/a/48730146

I quick fix is to run the docker container fleet-telemetry as user "root".
https://stackoverflow.com/a/48730146

This seems to be the trick...
Thanks :)


Cannot upgrade operator-sdk past 0.8.0 because of k8s.io/api

Bug Report
What did you do?
Importing operator-sdk in go.mod running go get and it fails:
$ sudo rm -rf ~/go/pkg/mod
$ GOFLAGS="" go get
go<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0
$ cat go.mod
module github.com/10gen/ops-manager-kubernetes

require (
    github.com/google/uuid v1.1.1
    github.com/imdario/mergo v0.3.8
    github.com/operator-framework/operator-sdk v0.12.0
    github.com/pkg/errors v0.8.1
    github.com/spf13/cast v1.3.0
    github.com/stretchr/testify v1.4.0
    go.uber.org/zap v1.10.0
    k8s.io/api v0.0.0-20191114100237-2cd11237263f // 1.15.6
    k8s.io/apimachinery v0.0.0-20191004115701-31ade1b30762 // 1.15.6
    k8s.io/client-go v0.0.0-20191114101336-8cba805ad12d // 1.15.6
    k8s.io/code-generator v0.0.0-20190612205613-18da4a14b22b // 1.15.6
    sigs.k8s.io/controller-runtime v0.4.0
)

go 1.13

What did you expect to see?
No error on go get
What did you see instead? Under which circumstances?
Getting this error:
go<EMAIL_ADDRESS>requires
<EMAIL_ADDRESS>reading k8s.io/api/go.mod at revision v0.0.0: unknown revision v0.0.0

Environment

operator-sdk version: any version starting at 0.9.0 with the introductions of go modules

reproduced in this bug report with v0.12.0

go version:

go version go1.13.4 darwin/amd64

Kubernetes version information:

Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.3", GitCommit:"b3cbbae08ec52a7fc73d334838e18d17e8512749", GitTreeState:"clean", BuildDate:"2019-11-14T04:24:29Z", GoVersion:"go1.12.13", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"11+", GitVersion:"v1.11.0+d4cacc0", GitCommit:"d4cacc0", GitTreeState:"clean", BuildDate:"2019-11-27T18:11:35Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes cluster kind:

Are you writing your operator in ansible, helm, or go?
go

Possible Solution
I believe pinning versions in go.mod is not recommended and may be the cause of the bug as the version will not be recognised by other packages using go modules
Additional context
Kubernetes packages do not use go modules, and are attributed a fake version v0.0.0-date-hash
It seems to break the operator

Hi @LouisPlisso,
Could you please follow up the steps in upgrade guide? Note that if you are going from 0.8 to 0.12 you need to perform many changes in the code as well.
Regards the go.mod, I also would suggest you check the Memcached sample which is using the 0.12. See here

@camilamacedo86 thanks for the quick reply
I think pinning version (with the replace directive) is locking and preventing using a newer patch release of k8s (in my case 1.15.6 instead of 1.15.4)
I'll try using the upgrade guide and follow the example: thanks again