POC: Serverless uses separated internal docker registry module

Description
Prototype changes is serverless necessary to integrate with docker registry separated to its own module.
Assumptions:

Serverless operator communicates with docker registry operator via DockerRegistry CR (spec and status)
Treat serverless to docker registry dependency as internal : this way we can ensure that serverless user experience remains unchanged:

Users do not have any extra configuration options wrt. internal docker registry other than they do now. (*)
Serverless users do not need to create/configure/delete DockerRegistry CR - serverless operator does it.
Docker registry operator should be installed by default to be ready to unstall/unistall docker registry resources

Serverless on k3d doesn not need to install internal docker registry in order to use registry from k3d ( i.e this one  initialised by kyma (alpha) deploy command). Document the need to patch coredns config map in such case

(*) Future configuration for docker registry storage should happen via DockerRegistry CR (volume size, nfs storage, s3-like store object, etc..).
Reasons
https://github.com/kyma-project/kyma/issues/18555
Attachments
Depends on kyma-project/docker-registry#19

Should be implemented only after this https://github.com/kyma-project/serverless/issues/941 is finished with negative result


Introduce a help system to the Itool.

Ideally, the itool should contain documentation about 'i' and be able to answer questions such as "What does this function do?", "What does this package do?" etc.
Documentation search should be supported.
I am thinking that documentation should be generated similar to Go where it is stored as a comment above the package or function.

This needs to be designed, I would like to expand on my programming analogies here:
https://quentinquaadgras.com/post/159521141493/33-processing-concepts


[feature] Encrypted Resource Pack support

Many softwares supports this feature, I think endstone is the only one not supporting this at the moment. Since we don't have access to the packets in the api, I suggest to add this as a native feature of endstone. How does this work? Basicly be able to put our already encrypted packs and keys into a file or somewhere so when a player joins our server and is asked to download our resource packs it will send the RP packet info with our key so the client can use it to read the content.
Solution
A config file where we can put our encrypted packs UUID and Keys.
Another solution would be that endstone encrypt automatically all of our packs and store the keys to send them to the players when joining. Just like Allay software does.
This is really important for us the server owners, it's annoying that all of our packs and efforts get leaked, this will add an extra layer of security, at least now not everyone can leak our packs.

Thank you for the suggestion! This is something we’ll definitely be adding shortly.

Completed in https://github.com/EndstoneMC/endstone/commit/53c9dc16ecc7885ea5ff1eb1a9b0faf05b96b27d.


fan wiki search

fan wiki search

[x] Wikipedia api for fetching search results.
[x] simple popup search ui to display the results.

fan wiki search

[x] Wikipedia api for fetching search results.

[x] simple popup search ui to display the results.


Checkpointz v0.18.0 requires "Eth-Consensus-Version" header

Describe the bug
Latest version of checkpointz requires Eth-Consensus-Version header to be set in eth/v2/debug/beacon/states/{state_id} response.
Checkpointz errors
time="2023-11-15T14:48:17Z" level=error msg="No longer attempting to download historical block - too many failures" failure_count=5 module=beacon/default slot=346240
time="2023-11-15T14:48:29Z" level=error msg="Failed to check for genesis" error="failed to request signed beacon block: failed to parse consensus version: no consensus version header" module=beacon/default
time="2023-11-15T14:48:32Z" level=error msg="Failed to check for new serving checkpoint" error="failed to request signed beacon block: failed to parse consensus version: no consensus version header" module=beacon/default
time="2023-11-15T14:48:44Z" level=error msg="Failed to check for genesis" error="failed to request signed beacon block: failed to parse consensus version: no consensus version header" module=beacon/default
time="2023-11-15T14:48:59Z" level=error msg="Failed to check for genesis" error="failed to request signed beacon block: failed to parse consensus version: no consensus version header" module=beacon/default
time="2023-11-15T14:49:03Z" level=error msg="Failed to check for new serving checkpoint" error="failed to request signed beacon block: failed to parse consensus version: no consensus version header" module=beacon/default
time="2023-11-15T14:49:14Z" level=error msg="Failed to check for genesis" error="failed to request signed beacon block: failed to parse consensus version: no consensus version header" module=beacon/default
2023/11/15 14:49:19 http: panic serving <IP_ADDRESS>:21844: runtime error: invalid memory address or nil pointer dereference
goroutine 692 [running]:
net/http.(*conn).serve.func1()

Due to this issue we cannot upgrade the checkpoint sync providers to the latest version.
Expected behavior
Eth-Consensus-Version header should be set
Steps to reproduce
No response
Additional context
Related discussion with devops team
Operating system
Linux
Lodestar version or commit hash
v1.12.0

Please fix this issue before pushing a new release :)

We have a fix ready for it and might already include that in a hotfix release as this affects quite a lot of users.


fix ES indexing

ES has been rejecting some documents because fields have been strings when they should have been integers. This led to some blank periods in Kibana during the past week.

Looks good to me.


Create 0000-01-02-teamak2020.md

created a branch, created a file and made a commit, and opened a pull request

It has been a while

It has been a while


Add HelloRetryRequest text to s_client/s_server

Checklist

[ ] documentation is added or updated
[ ] tests are added or updated

Description of change

f282e95  thanks.


Copy-Paste not working on kubuntu

Hi,
This might just be me, but I cannot seem to get copy-paste working. I'm running Kubuntu 17.04, under the latest Firefox, but this issue has been persistent over the last several Firefox updates.
The console is not throwing any errors, so I don't know what information I can provide.

Copy-Paste works fine on Ubuntu 14.04.5 LTS Firefox 53.0.3 and Chrome 59.0.3071.86.

Tomorrow I'll try to mess around with the javascript a little to see what might be causing this.

hey @gappleto97 just checking in, any news on this?

Well, I have no idea what changed, but it started working now. Sorry for the difficulty.


Include more details on the RSA KU error

Unallowed key usage for RSA public key

It'd be great if this said which key usage was disallowed, this is helpful in aggregating on different types of mistakes.

Example: https://crt.sh/?id=12648791&opt=cablint
ERROR: Unallowed key usage for RSA public key
X509v3 Key Usage: critical
Digital Signature, Key Encipherment, Data Encipherment, Key Agreement
It's not obvious whether Data Encipherment, Key Agreement or both are disallowed.


Run database upgrader on plugin activation

Summary
Run database upgrader on plugin activation
Relevant Technical Choices
Tested locally by converting to multisite and creating new sites..
To-do

User-facing changes

Testing Instructions

Fixes #3875

@swissspidy Can you add this to stable?

@spacedmonkey sure, but can you fix the tests?


Help with credentiasl

Hi to all,
I want to monitor the CPU usage of one VM and send an email if the VM is too idle.
I find the follow link:
https://docs.microsoft.com/en-us/python/api/overview/azure/monitoring?view=azure-python
but unfortunately I can't understand how I can retrieve the resource_id and credentials for the follow:
resource_id = (
"subscriptions/f4a37d44-c297-408d-9673-3f7792ad6a2a/"
"resourceGroups/engine/"
"providers/Microsoft.Compute/virtualMachines/spot/extensions/AzureNetworkWatcherExtension"
).format(subscription_id, resource_group_name, vm_name)
and
client = MonitorManagementClient(
credentials,
subscription_id
)
I usually use powershell to connect to Azure and sign in with a service principal and also try with the follow:
https://docs.microsoft.com/en-us/rest/api/resources/resources/getbyid
but without success.
Thanks

for the credentails, you can use like the following:
from azure.identity import AzureCliCredential
credentials = AzureCliCredential()

or you can read the following:
https://docs.microsoft.com/en-us/azure/developer/python/azure-sdk-authenticate?tabs=cmd
for the resource_id.
its not "providers/Microsoft.Compute/virtualMachines/spot/extensions/AzureNetworkWatcherExtension", its "providers/Microsoft.Compute/virtualMachines/{}"

for the credentails, you can use like the following:
from azure.identity import AzureCliCredential
credentials = AzureCliCredential()

or you can read the following:
https://docs.microsoft.com/en-us/azure/developer/python/azure-sdk-authenticate?tabs=cmd
for the resource_id.
its not "providers/Microsoft.Compute/virtualMachines/spot/extensions/AzureNetworkWatcherExtension", its "providers/Microsoft.Compute/virtualMachines/{}"

Thanks for you reply.
I follow your suggestions and also read the guide:
https://docs.microsoft.com/en-us/azure/developer/python/azure-sdk-authenticate?tabs=cmd
But unfortunately I failed with all method.
Follow the ones that I think is the easiest:
Use  the az ad sp create-for-rbac command with the --sdk-auth parameter to generate this JSON format directly.
import os
from azure.common.client_factory import get_client_from_json_dict
from azure.mgmt.resource import SubscriptionClient
Retrieve the IDs and secret to use in the JSON dictionary
subscription_id = os.environ["AZURE_SUBSCRIPTION_ID"]
tenant_id = os.environ["AZURE_TENANT_ID"]
client_id = os.environ["AZURE_CLIENT_ID"]
client_secret = os.environ["AZURE_CLIENT_SECRET"]
config_dict = {
"subscriptionId": subscription_id,
"tenantId": tenant_id,
"clientId": client_id,
"clientSecret": client_secret,
"activeDirectoryEndpointUrl": "https://login.microsoftonline.com",
"resourceManagerEndpointUrl": "https://management.azure.com/",
"activeDirectoryGraphResourceId": "https://graph.windows.net/",
"sqlManagementEndpointUrl": "https://management.core.windows.net:8443/",
"galleryEndpointUrl": "https://gallery.azure.com/",
"managementEndpointUrl": "https://management.core.windows.net/"
}
subscription_client = get_client_from_json_dict(SubscriptionClient, config_dict)
subscription = next(subscription_client.subscriptions.list())
print(subscription.subscription_id)
but I have the follow error whent try to execute
Traceback (most recent call last):
File "/home/aettorre/dev_work/it_automation/azure/scripts/subscription.py", line 19, in
subscription_client = get_client_from_json_dict(SubscriptionClient, config_dict)
File "/home/aettorre/.local/lib/python3.9/site-packages/azure/common/client_factory.py", line 199, in get_client_from_json_dict
return _instantiate_client(client_class, **parameters)
File "/home/aettorre/.local/lib/python3.9/site-packages/azure/common/client_factory.py", line 32, in _instantiate_client
return client_class(**kwargs)
TypeError: init() missing 1 required positional argument: 'credential'

Thanks for you reply.
I follow your suggestions and also read the guide:
https://docs.microsoft.com/en-us/azure/developer/python/azure-sdk-authenticate?tabs=cmd
But unfortunately I failed with all method.
Follow the ones that I think is the easiest:
Use  the az ad sp create-for-rbac command with the --sdk-auth parameter to generate this JSON format directly.
import os
from azure.common.client_factory import get_client_from_json_dict
from azure.mgmt.resource import SubscriptionClient
Retrieve the IDs and secret to use in the JSON dictionary
subscription_id = os.environ["AZURE_SUBSCRIPTION_ID"]
tenant_id = os.environ["AZURE_TENANT_ID"]
client_id = os.environ["AZURE_CLIENT_ID"]
client_secret = os.environ["AZURE_CLIENT_SECRET"]
config_dict = {
"subscriptionId": subscription_id,
"tenantId": tenant_id,
"clientId": client_id,
"clientSecret": client_secret,
"activeDirectoryEndpointUrl": "https://login.microsoftonline.com",
"resourceManagerEndpointUrl": "https://management.azure.com/",
"activeDirectoryGraphResourceId": "https://graph.windows.net/",
"sqlManagementEndpointUrl": "https://management.core.windows.net:8443/",
"galleryEndpointUrl": "https://gallery.azure.com/",
"managementEndpointUrl": "https://management.core.windows.net/"
}
subscription_client = get_client_from_json_dict(SubscriptionClient, config_dict)
subscription = next(subscription_client.subscriptions.list())
print(subscription.subscription_id)
but I have the follow error whent try to execute
Traceback (most recent call last):
File "/home/aettorre/dev_work/it_automation/azure/scripts/subscription.py", line 19, in
subscription_client = get_client_from_json_dict(SubscriptionClient, config_dict)
File "/home/aettorre/.local/lib/python3.9/site-packages/azure/common/client_factory.py", line 199, in get_client_from_json_dict
return _instantiate_client(client_class, **parameters)
File "/home/aettorre/.local/lib/python3.9/site-packages/azure/common/client_factory.py", line 32, in _instantiate_client
return client_class(**kwargs)
TypeError: init() missing 1 required positional argument: 'credential'

its strange that you cant achieve that via the azure cli object. did you try to read this?
https://docs.microsoft.com/en-us/cli/azure/authenticate-azure-cli
maybe its related to you azure-cli verison? did you try to install the latest?

its strange that you cant achieve that via the azure cli object. did you try to read this?
https://docs.microsoft.com/en-us/cli/azure/authenticate-azure-cli
maybe its related to you azure-cli verison? did you try to install the latest?

I don't have any problem with az cli object, as you can also get thye list of definitions of metrics:
az monitor metrics list-definitions --resource "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/engine/providers/Microsoft.Compute/virtualMachines/name" --output table
Display Name                                 Metric Name                                  Unit            Type     Dimension Required    Dimensions

Percentage CPU                               Percentage CPU                               Percent         Average  False
Network In Billable (Deprecated)             Network In                                   Bytes           Total    False
Network Out Billable (Deprecated)            Network Out                                  Bytes           Total    False
....
I truncate the table, and I can use all az cli command

I don't have any problem with az cli object, as you can also get thye list of definitions of metrics:
az monitor metrics list-definitions --resource "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/engine/providers/Microsoft.Compute/virtualMachines/name" --output table
Display Name                                 Metric Name                                  Unit            Type     Dimension Required    Dimensions

Percentage CPU                               Percentage CPU                               Percent         Average  False
Network In Billable (Deprecated)             Network In                                   Bytes           Total    False
Network Out Billable (Deprecated)            Network Out                                  Bytes           Total    False
....
I truncate the table, and I can use all az cli command

I do my job using powershell :-(

I do my job using powershell :-(


fix-rebuilding-vm-status

!test

Refer to this link for build results (access rights to CI server needed):
http://jenkins.2gis.local/job/vmmaster.staging.regression/186/
Test PASSed.


ARROW-12806: [Python] test_write_to_dataset_filesystem missing a dataset mark

This begs the question if we should have a "minimal build" for python as well that turns the tests, otherwise we are to keep forget adding such markers (although in this case if that minimal build didn't include pandas, we still wouldn't have watched that error)

I think it'd make sense for a minimal build to still include Pandas, since it doesn't change anything about the build itself, and would enable more tests, right?

Sounds like a good idea to me.

Should this also get cherry-picked into 4.0.1?

While it's not essential, it shouldn't cause any trouble. Added to 4.0.1 jira version.

I think it'd make sense for a minimal build to still include Pandas, since it doesn't change anything about the build itself, and would enable more tests, right?

Yes, indeed, that doesn't impact the build. Having no pandas installed is also a case to test, but we actually do have a "no-pandas" build, so that is already covered.


"Jellyfin Recently Added Scan" doesn't add latest episodes but "Jellyfin Full Library Scan" does

Description
"Jellyfin Recently Added Scan" doesn't add latest episodes but "Jellyfin Full Library Scan" does
Version
Jellyseerr:1.1.1    Jellyfin:10.8.1
Steps to Reproduce

request a serie on jellyseerr
new episodes have been added to jellyfin
jellyseerr runs "Jellyfin Recently Added Scan"
result: jellyseerr doesn't add latest episodes

Screenshots
No response
Logs
No response
Platform
desktop
Device
lenovo PC
Operating System
windows 11
Browser
Chrome
Additional Context
I tracked "Recently Added" items from the jellyfin api, all items are still in there until this line filters out items with item.Type==="Episode".
if change } else if (item.Type === 'Series') { to } else if (item.Type === 'Series' || item.Type === 'Episode') {, it works fine.
Code of Conduct

[X] I agree to follow Overseerr's Code of Conduct

There is a planned upcoming episode feature which will add this functionality

There is a planned upcoming episode feature which will add this functionality

Thanks!

This also happens with movies. The recently added scan in Jellyseerr doesn't pick up the new movie, but a Full Library Scan does.

This also happens with movies. The recently added scan in Jellyseerr doesn't pick up the new movie, but a Full Library Scan does.

What's weird is I cannot reproduce this. I have jellyseerr running and everytime i add a movie or show, it gets picked up right away (through a recently added scan) 🤔

This also happens with movies. The recently added scan in Jellyseerr doesn't pick up the new movie, but a Full Library Scan does.

What's weird is I cannot reproduce this. I have jellyseerr running and everytime i add a movie or show, it gets picked up right away (through a recently added scan) 🤔

Ah that's a bummer, well I'm glad it works for you tho. So it's probably a config thingy. In Overseerr it works correctly tho. I have Discord notifications set up and Overseerr is instantly, but with Jellyseerr I have to wait on the hourly full scan for me to get the notification. Also checked the UI but it marks it as available after I manually press Full Scan.

Have you tried to purge the config and try the develop tag too

Just did exactly what you said but sadly didn't fix it for me. I haven't pressed a manual scan once, it sees my current library but after a request and the 5m wait for a Recently Added Scan it doesn't pick up the movie.

Have you tried to purge the config+container and recreate and then try the develop tag. (For testing purposes I recommend not running a full scan when you first setup on develop tag and then do an aggressive recently added scan)

Just did exactly what you said but sadly didn't fix it for me. I haven't pressed a manual scan once, it sees my current library but after a request and the 5m wait for a Recently Added Scan it doesn't pick up the movie.

You can try to print var item at /server/job/jellyfinsync/index.ts#L483 and /server/job/jellyfinsync/index.ts#L485 and see if there is a difference between them.

Have you tried to purge the config+container and recreate and then try the develop tag. (For testing purposes I recommend not running a full scan when you first setup on develop tag and then do an aggressive recently added scan)

Just did exactly what you said but sadly didn't fix it for me. I haven't pressed a manual scan once, it sees my current library but after a request and the 5m wait for a Recently Added Scan it doesn't pick up the movie.

You can try to print var item at /server/job/jellyfinsync/index.ts#L483 and /server/job/jellyfinsync/index.ts#L485 and see if there is a difference between them.

I don't know what you mean by that sadly

Any updates on this? it still happens. it runs a manual scan every day at 3AM and thats the only moment Jellyseer recognizes the media. While Jellyfin itself notices it right away.

@zeroquinc it was the metadata date problem?

@Fallenbagel Yes, since I changed the Jellyfin setting Date added behavior for new content to Use data scanned into library the issue is solved. The metadata for Date added was wrong for all movies. I manually fixed my existing movies since I don't have a huge library and my new movies are getting the right metadata now.

Alright I'm closing this issue then c;
Glad you worked it out!


Support for creating and updating project deployments

Hey folks, here's a little PR adding two extra methods to the DeploymentsService. I did my best to maintain the same coding style as everywhere else in this project.

PTAL @svanharmelen 👀👁👁🗨


lnwallet, bitcoind: mainnet, lncli => synced_to_chain: false

Background
After restarting lightning network node it always showing synced_to_chain : "false".
lnd output:
root@mainnet:/var/log/connector# docker exec -it bitcoin-lightning.mainnet lncli getinfo
{
    "identity_pubkey": "0232e20e7b68b9b673fb25f48322b151a93186bffe4550045040673797ceca43cf",
    "alias": "zigzag.io",
    "num_pending_channels": 0,
    "num_active_channels": 0,
    "num_peers": 0,
    "block_height": 541407,
    "block_hash": "000000000000000000237465faa6d612ed35688119c2875a866f42b420450a96",
    "synced_to_chain": false,
    "testnet": false,
    "chains": [
        "bitcoin"
    ],
    "uris": [
        "0232e20e7b68b9b673fb25f48322b151a93186bffe4550045040673797ceca43cf@<IP_ADDRESS>:9735"
    ],
    "best_header_timestamp": "1536926924",
    "version": "0.5.0-beta commit=d4fdc41c8c087d7c6759792af2ad02b130dec30d"
}

bitcoind output:
root@mainnet:/var/log/connector# docker exec -it bitcoin.mainnet bitcoin-cli getblockchaininfo
{
  "chain": "main",
  "blocks": 541407,
  "headers": 541407,
  "bestblockhash": "000000000000000000237465faa6d612ed35688119c2875a866f42b420450a96",
  "difficulty":<PHONE_NUMBER>177.173,
  "mediantime":<PHONE_NUMBER>,
  "verificationprogress": 0.9999947231260156,
  "initialblockdownload": false,
  "chainwork": "0000000000000000000000000000000000000000032b811beb4693edc5194b20",
  "size_on_disk":<PHONE_NUMBER>24,
  "pruned": false,
   . . .
}

Your environment

version of lnd

root@mainnet:/var/log/connector# docker exec -it bitcoin-lightning.mainnet lncli getinfo
{
    . . .
    "version": "0.5.0-beta commit=d4fdc41c8c087d7c6759792af2ad02b130dec30d"
}

which operating system (uname -a on *Nix)

root@mainnet:/var/log/connector# docker exec -it bitcoin-lightning.mainnet uname -a
Linux 26858bba4f45 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

version of btcd, bitcoind, or other backend

root@mainnet:/var/log/connector# docker exec -it bitcoin.mainnet bitcoin-cli --help
Bitcoin Core RPC client version v0.16.0
. . .

any other relevant environment details
Seeing this type of warning in logs:

Failed to process consensus server notification (name: `blockconnected`, detail: `failed to store sync information<PHONE_NUMBER>000000001bdfa1dd3665521527c24c34fe3ed7e8220b665211cfec: failed to fetch block hash for height 541407: couldn't get hash from database`)

Steps to reproduce
Not sure, probably restart node couple of times.
Expected behaviour
To be synced.
Actual behaviour
Not synced.

@alexbosworth @cfromknecht

Not sure is that related or not, but I have update to latest commit and it worked, but still think that it would be better to keep issue open, because I have experienced this problem for 3-4 hours.

I think this may have been a known issue that was fixed
On Fri, Sep 14, 2018 at 10:31 AM andrew.shvv<EMAIL_ADDRESS>wrote:

Not sure is that related or not, but I have update to latest commit and it
worked, but still think that it would be better to keep issue open, because
I have experienced this problem for 3-4 hours.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/lightningnetwork/lnd/issues/1909#issuecomment-421429883,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAYiIVAiL_aLQ4eQJAFKz_9By1nJR7m5ks5ua-f7gaJpZM4WpnkJ
.

--
Sent from my iPhone

Okay, will leave you guys to close it.

@AndrewSamokhvalov were you running with --noencryptwallet by any chance? There was a bug when using that and a bitcoind backend that has been fixed on master.

Ooooo, yeh it it's a mainnet node, then you should re-create it w/o that flag. Otherwise, if the node blows up, you don't have a seed, so you can't reclaim any of those on-chain funds....

In the new version, we've changed the flag to --noseedbackup, to make it more clear that you won't get a seed to backup the on-chain coins.

@Roasbeef by re-creation you meant setup of fresh node, and move all funds or just restart lnd without that flag?

A new node and move the funds.

Yeah unfortunately, unless you pop open wallet.db, atm there's no way to get that prior seed.

@Roasbeef

then you should re-create it w/o that flag.

Let me get this right. Even with latest master, this bug will persist until wallet is re-created?
Also, as off-topic, whey we can't have seed backup with unencrypted wallet? Understanding the risks, having no need to manually unlock 24/7 running node on interruptions is a useful convenience.

Let me get this right. Even with latest master, this bug will persist until wallet is re-created?

No with the latest master it's fine. It'll persist until it's re-created as we don't store the raw seed within lnd. It's displayed to the user and is their duty to store it in a safe place.

Also, as off-topic, whey we can't have seed backup with unencrypted wallet?

It's possible already: just make your password "00000000", and then create a wrapper script that starts lnd, unlocks it, and then continues forward.

I'm seeing the same behavior with the recent version on mainnet, bitcoind and encrypted wallet. After the start, LND syncs and the value of synced_to_chain becomes true, but after awhile (1 day or maybe earlier, can't tell for sure) switches to false, while showing the current Bitcoin network block_height. I see nothing unusal in logs, the only ERRs are:
2018-12-13 12:23:02.467 [ERR] CMGR: Can't accept connection: unable to accept connection from <IP_ADDRESS>:46374: chacha20poly1305: message authentication failed
2018-12-13 12:25:22.285 [ERR] CMGR: Can't accept connection: unable to accept connection from <IP_ADDRESS>:58012: EOF

which is normal AFAIR. What can I do to debug the problem? Should I open a new issue?

Those error messages are just people failing to connect to your node. Is the bitcoind node remote? Do you have any other programs that use its RPC?

The bitcoind is in the separate docker container, so yes, it’s kinda remote. There are no any other programs using its RPC.

@Roasbeef I've setup monit to check synced_to_chain via REST interface every 10 seconds, also enabled the debug in lnd with --debuglevel=debug. It switches to false in around 30–40 min after restarting and re-syncing. I noticed that this happens after the new block appears in bitcoind, but not the first block after lnd restart, maybe 3-rd or 4-th. While the debug is on, I still can't notice anything unusal in bitcoind or lnd logs, here is the last example:
Bitcoind:
2018-12-16T12:30:48Z UpdateTip: new best=00000000000000000008bb0d1e7850aef3235b39f92b631e359c5214be769173 height=554068 version=0x2fff4000 log2_work=90.132927 tx=364966136 date='2018-12-16T12:30:29Z' progress=1.000000 cache=64.2MiB(468533txo) warning='22 of last 100 blocks have unexpected version'

LND:
2018-12-16 12:30:38.236 [DBG] PEER: Received ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=602922698761633793, flag=257, update_time=2018-12-16 12:29:53 +0000 UTC) from <IP_ADDRESS>:9735
2018-12-16 12:30:38.236 [DBG] PEER: Received ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=607472477888905217, flag=0, update_time=2018-12-16 12:29:52 +0000 UTC) from <IP_ADDRESS>:9735
2018-12-16 12:30:38.236 [DBG] PEER: Received ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=565661349147967489, flag=1, update_time=2018-12-16 12:30:36 +0000 UTC) from <IP_ADDRESS>:9735
2018-12-16 12:30:38.236 [DBG] PEER: Received ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=588047405915373568, flag=0, update_time=2018-12-16 12:30:00 +0000 UTC) from <IP_ADDRESS>:9735
2018-12-16 12:30:38.236 [DBG] PEER: Received ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=608786394260373505, flag=2, update_time=2018-12-16 12:29:39 +0000 UTC) from <IP_ADDRESS>:9735
2018-12-16 12:30:38.236 [DBG] PEER: Received ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=608551098748895233, flag=0, update_time=2018-12-16 11:45:01 +0000 UTC) from <IP_ADDRESS>:9735
2018-12-16 12:30:53.962 [INF] DISC: Broadcasting batch of 6 new announcements
2018-12-16 12:30:53.962 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=608551098748895233, flag=0, update_time=2018-12-16 11:45:01 +0000 UTC) to <IP_ADDRESS>:9735
2018-12-16 12:30:53.962 [DBG] SRVR: Broadcasting 1 messages
2018-12-16 12:30:53.962 [DBG] SRVR: Broadcasting 1 messages
2018-12-16 12:30:53.962 [DBG] SRVR: Broadcasting 1 messages
2018-12-16 12:30:53.962 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=608551098748895233, flag=0, update_time=2018-12-16 11:45:01 +0000 UTC) to <IP_ADDRESS>:9735
2018-12-16 12:30:53.962 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=565661349147967489, flag=1, update_time=2018-12-16 12:30:36 +0000 UTC) to <IP_ADDRESS>:9735
2018-12-16 12:30:53.962 [DBG] SRVR: Broadcasting 1 messages
2018-12-16 12:30:53.962 [DBG] SRVR: Broadcasting 1 messages
2018-12-16 12:30:53.962 [DBG] SRVR: Broadcasting 1 messages
2018-12-16 12:30:53.962 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=602922698761633793, flag=257, update_time=2018-12-16 12:29:53 +0000 UTC) to <IP_ADDRESS>:9735
2018-12-16 12:30:53.962 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=602922698761633793, flag=257, update_time=2018-12-16 12:29:53 +0000 UTC) to <IP_ADDRESS>:9735
2018-12-16 12:30:53.962 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=608786394260373505, flag=2, update_time=2018-12-16 12:29:39 +0000 UTC) to <IP_ADDRESS>:9735
2018-12-16 12:30:53.963 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=565661349147967489, flag=1, update_time=2018-12-16 12:30:36 +0000 UTC) to <IP_ADDRESS>:9735
2018-12-16 12:30:53.963 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=588047405915373568, flag=0, update_time=2018-12-16 12:30:00 +0000 UTC) to <IP_ADDRESS>:9735
2018-12-16 12:30:53.963 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=608786394260373505, flag=2, update_time=2018-12-16 12:29:39 +0000 UTC) to <IP_ADDRESS>:9735
2018-12-16 12:30:53.963 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=607472477888905217, flag=0, update_time=2018-12-16 12:29:52 +0000 UTC) to <IP_ADDRESS>:9735
2018-12-16 12:30:53.963 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=588047405915373568, flag=0, update_time=2018-12-16 12:30:00 +0000 UTC) to <IP_ADDRESS>:9735
2018-12-16 12:30:53.963 [DBG] PEER: Sending ChannelUpdate(chain_hash=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f, short_chan_id=607472477888905217, flag=0, update_time=2018-12-16 12:29:52 +0000 UTC) to <IP_ADDRESS>:9735

Monit reported to me at 12:30:58, which means synced_to_chain switched from true to false somewhere after 12:30:40. It will stay like this forever until I restart lnd. Oh, and if I wait more, all these Update announcement for short_chan_id is premature messages start to appear in logs, so maybe it is related to #1597 somehow?
Frankly I'm out of ideas on how to debug it further, setup tcpdump maybe and then parse logs in Wireshark for ZMQ traffic?

@leshik we're interested in LNWL=debug, all the other stuff is additional noise. Are you not seeing any logs for that? Currently, synced_to_chain will flip to false if the best block is 2 hours or more in the past. If new blocks aren't coming in for whatever reason, that would explain why you're seeing this.

@wpaulino Well, turned out checking traffic with tcpdump was not that crazy idea. For some reason, Docker Swarm doesn't update DNS addresses and tries to do some magic NAT or else instead, which leads to blocks coming from completely different addresses than they were supposed to come. I think this might be the problem. I described the issue here: https://github.com/moby/moby/issues/30134#issuecomment-448085430
Docker eats babies...

@thrasher- What is your setup? Are you running in docker?
Also, I would be interested to see if you see this after upgrading to lnd v0.5.1, as it has some fixes related to the wallet.

FYI: I was able to solve my problems by patching bitcoind with the changes from this pull request: https://github.com/bitcoin/bitcoin/pull/14687

I have the same issue. @dlogemann  How would I use your patch? I am using docker-compose with a docker image for bitcoind and a docker image for lnd; I used the docker-compose of lnd as a sample.

I have the same issue. @dlogemann How would I use your patch? I am using docker-compose with a docker image for bitcoind and a docker image for lnd; I used the docker-compose of lnd as a sample.

I actually compiled bitcoind from the sources, so unfortunately I don't think that's applicable for your docker setup.

Thank you!  I can compile bitcoind in my docker image without a problem. How do I check out your fix? And then how do I compile it - identical to normal compile?

Thank you! I can compile bitcoind in my docker image without a problem. How do I check out your fix? And then how do I compile it - identical to normal compile?

I manually applied the diff of src/zmq/zmqpublishnotifier.cpp from the pull request mentioned above to the current version of bitcoind and then did a normal compile.


Fix Route Structure in index.js

Streamline the routes in index.js by defining common API prefixes (e.g., /api/user) for improved readability and eliminating redundant paths in the route files.

Hello @vaibhavj2111 , I am assigning this issue to you, please stick with the contribution guidelines.


why does smart_open.s3.Reader doesn't implement enter and exit method

Problem description
Hi, I am trying to add alicloud oss support. While I am reading source code of smart_open.s3.Reader,
I found smart_open.s3.Reader doesn't implement __enter__ and __exit__ method.
How is it possible to write code like:
with open('s3://commoncrawl/robots.txt', 'rb') as fin:
    for line in fin:
        print(repr(line.decode('utf-8')))
        break

Thank you very much indeed. It works, it's confusing to find that azure reader implemented __enter__ and __exit__ method, while aws and gcs reader didn't.

@mpenkov ,  thanks for your explanation, I checked the python io docs, finding that S3.Reader -> io.BufferedIOBase -> io.IOBase.
While IOBase is also a context manager and therefore supports the with statement which means that you don't need to implement enter method if you just want to return the reader itself.
the enter method is implemented in base class io.IOBase
def __enter__()         return self

The reader/writer in smart_open.s3 does not need to implement the context manager protocol, because it gets wrapped by other classes that implement that protocol.


Webpack react test

ResearchNow Jira Ticket #772
This PR does the following:

Adds a webpack file to compile and minify the react components into a design-system-react-components.min.js file along with a source maps file. This compiles the SVG sprite into the build which was the main motivation for this task.

The lib/ folder is still around but the main file is now what lives in dist/. Importing components should work the same way.
Front End Review:

Test and make sure it works in SFR.

@hokei the tests fail because running tests for the design-system-icons repo times out. I'm having the same issue and not sure why it's a permission issue. Tomorrow, can you test this by branching off this branch and just pushing that new branch and see if the tests pass?

I tried it this morning and got the same problem that you did. Running npm run prepare from the repo itself works, so can we comment that out so it's not installing on build, and put a note in the readme that whoever's using this will have to manually build sprite.svg until we figure this out?  I think it's much more valuable to get the sprites in than it is to have this block us.

That's a good idea and I'll try it, re: commenting out the build for the sprite.


Added a blog and a conference session by Eduard Keilholz

@nikneem can you add a sign-off to your commit as is mentioned here: https://docs.dapr.io/contributing/contributing-overview/#i-didnt-sign-my-commit-now-what

Hope it works ;)

@holopin-bot @nikneem presenter-badge

@holopin-bot @nikneem writer-badge

@holopin-bot @fvandillen presenter-badge


Does not support Interfaces

Trying to add an interface which is inherited by a Scriptable Objects in a custom Loot Table does not work since it
 must be convertible to 'UnityEngine.Object' in order to use it as parameter
This would be useful for games which have multiple type of loot which all inherit the same interface

I've done some testing removing all the where T : Object, only thing is it would need a different way of getting object names, so possibly implement an interface that has GetName() for Drop.name.

I've refactored everything to use an interface called INameable instead of Object but there's still and issue with some of the code, any thoughts on how to fix it?

I think this is a super hard problem to solve, as you kind of want both, the flexibility of only being able to pick a certain class and the ease of use the UnityEngine.Object provides.
In my projects I use the same base class for these kinds of situations i.e. an empty class that inherits from ScriptableObject and I can then create a custom loot table for this, which looks for this class specifically. You then have the benefit of only being able to pick the "correct" ScriptableObjects. Maybe this works for you 😄


ac3 in csp.py

at line 171 in csp.py,  in the function AC3, it is written as :
if Xk != Xi:
there is no need to exclude Xi because Xi already can't be a neighbour to itself.
but I guess it should be
if Xk != Xj:
because Xi is already revised with Xj, so there is no need to add Xi, Xj to the queue again.
we can also see this in the book at Figure6.3 as :
for each Xk in Xi.NEIGHBORS - {Xj} do
here again, Xj is excluded.

You appear to be right -- thank you!
We're also missing a test that would provoke this bug. Would you like to make a pull request with a new test case, or should I?

I'll try to create a test. I'll inform you about the result.
Sent from Yahoo Mail on Android
On Fri, 2 Sep, 2016 at 6:14, Darius<EMAIL_ADDRESS>wrote:
You appear to be right -- thank you!
We're also missing a test that would provoke this bug. Would you like to make a pull request with a new test case, or should I?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Here is a test case which I think reveals the bug :
from csp import *

def t1f(A,a,B,b):
    return int(a)>int(b)

test1=CSP(["a","b"],{"a":["2","4"],"b":["3","5"]},{"a":"b","b":"a"},t1f)
AC3(test1)
print(test1.infer_assignment())

a must be bigger than b, so b can't be 5, and a must be 4.
when I run this test with the wrong version of AC3 (if Xk != Xi: version), the test says b=5, which is wrong.
but when I run the test with the right version of AC3 (if Xk != Xj: version), the test says a=4, which is true.


bug(cdk/dialog): Closed observable not emitting when closed by navigation

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
The closed observable is not emitting when the CDK dialog is being closed by navigation when the closeOnNavigation: true property is applied. As a side effect of the dialog not properly closing, the dialog ref is also kept in the Dialog.openDialogs list.
Reproduction
Steps to reproduce:

Open a CDK dialog with closeOnNavigation: true
Navigate away

Expected Behavior
The dialog to close properly
Actual Behavior
The closed observable is not emtting and the dialog is being kept in de list with open dialogs
Environment

Angular: 15.1.0
CDK/Material: 15.1.0
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows 11

Upon further inspection, it seems the material dialog is behaving properly due to this subscription on the overlay detachments:
https://github.com/angular/components/blob/e6536b7119907a772405661d28a25508ad2e1e9b/src/material/dialog/dialog-ref.ts#L90-L94


Incorrect Variable "-NamespaceName"

[Enter feedback here]
Unsure if this has been reported, but there is no variable "-NamespaceName"; it should read "-Name"

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

ID: 03c930b1-1721-b020-f6ae-4fcdee6708e5
Version Independent ID: 34e63541-7b85-dd2e-5f76-3af053999cc0
Content: Quickstart: Create an event hub using PowerShell - Azure Event Hubs
Content Source: articles/event-hubs/event-hubs-quickstart-powershell.md
Service: event-hubs
GitHub Login: @spelluru
Microsoft Alias: spelluru

@blakeOMCIT
Thanks for your feedback! We will investigate and update as appropriate.

@blakeOMCIT
Apologies for the confusion in my previous responses. In the provided PowerShell script, there is no issue with the variable names. The variable used as "-NamespaceName" is correctly named "$namespaceName." Similarly, the variable used for the parameter "-EventHubName" is "$ehubName."


Add launchctl start to README

After installing and loading the plist the docker virtual machine will not be running. This adds the command for that step (as described in https://blog.andyet.com/2016/01/25/easy-docker-on-osx/)

Won't be offended if you want to just put this in the readme yourself, or change the language and put it in (if you want to change it at all).


Separate Vuex stores as npm module

Related to #918
I think it would be great to have the whole data api (aka vuex stores :)) in separate npm module. By refactoring the project to such form we'll allow developers to play wth the eCommerce data models and Magento (vue-storefront-api) integration in their own projects - no matter if based on Vue.js or React ...
This potentially is great value because around 50% of time spent on the project (regarding Toggl.com reports) is for data management  (the rest is UI).
I think that the next step could creating kind of web-components set - which will  use this data management api to allow users to embed eCommerce components like "Add to Cart" or "Product listing" inside their own apps.
@filrak @Igloczek would be great to hear your opinion on this

TODO:
[ ] Move the 'theme/store' dependency out of the 'store/index.js' to avoid the circular references
[ ] Move 'core/lib/storage' to 'core/store/lib/storage' - this module is used ONLY by Vuex stores
[ ] Add localForage dependency to package.json
[ ] Move the 'core/lib/search' to 'core/store/lib/search' - this module is used ONLY by Vuex stores
[ ] Add bodybuilder dependency to package.json
[ ] Move 'core/lib/entities' to 'core/store/lib/entities' - this module is used ONLY by Vuex stores
[ ] Add dependency to 'config' node package - user will need to have ES configs in the config files managed by config module
[ ] Remove dependency of 'core/lib/i18n' - maybe by exposing some translation resources that wll be externally populated by the VS core?
[ ] Remove direct dependency of 'import EventBus from 'core/plugins/event-bus' by: adding event bus to store and creating an webpack alias in VS OR by adding the possibility to inject external EventBus (by default we can have a copy of EventBus helper here - like the default EventBus)
[ ] Add package.json dependency of 'object-hash'
[ ] Add package.json dependency of 'lodash'
[ ] Copy import { htmlDecode } from 'core/filters' to 'core/store/lib/filters'
[ ] Add package.json dependency of 'ajv'
[ ] Move import { breadCrumbRoutes } from 'core/helpers' to 'core/store/helpers' (the helper is used on Category.vue + Vuex only)
[ ] Move import { optionLabel } from 'core/store/modules/attribute/helpers' to local helpers - module used only in Vuex + Category.vue
[ ] Remove dependency of import shippingtMethods from 'core/resource/shipping_methods.json' - by external setup for 'shipping' module
[ ] Move import { execute as taskExecute } from 'core/lib/task' to core/store/lib/task - dependency of Vuex stores + client_entry.js
[ ] Move import { ValidationError } from 'core/lib/exceptions' to 'core/store/lib/exceptions'

Store is now available on npm - https://www.npmjs.com/package/@vue-storefront/store


ENH: Add ECoG plotting to plot_trans

@choldgraf can you see if this works okay for your real data?

Current coverage is 87.41% (diff: 88.46%)

Merging #3730 into master will decrease coverage by <.01%

@@             master      #3730   diff @@
==========================================
  Files           343        343
  Lines         60965      60999    +34
  Methods           0          0
  Messages          0          0
  Branches       9319       9327     +8
==========================================
+ Hits          53297      53325    +28
- Misses         4920       4924     +4
- Partials       2748       2750     +2

Powered by Codecov. Last update 11047bc...033faf4

I'm having a hard time creating a montage file -> Info object using just ECoG channels.
Here's my code:
mon = mne.channels.Montage(plt_pts, names[keep], 'ecog',
                           range(len(names[keep])))

keep_chans = list(names[keep])
n_chans = len(keep_chans)
info = mne.create_info(keep_chans, 100, 'ecog', mon)

and it's throwing this error about needing eeg channels:
/Users/choldgraf/Dropbox/github/forks/python/mne-python/mne/channels/montage.py in _set_montage(info, montage, update_ch_names)
    658
    659         if not _contains_ch_type(info, 'eeg'):
--> 660             raise ValueError('No EEG channels found.')
    661
    662         sensors_found = []

ValueError: No EEG channels found.

When I just added an extra check for ecog, I then get a really weird error
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-10-8b5ec7b7bdb7> in <module>()
      4 keep_chans = list(names[keep])
      5 n_chans = len(keep_chans)
----> 6 info = mne.create_info(keep_chans, 100, 'ecog', mon)
      7 data = np.random.randn(n_chans, 10000)
      8

/Users/choldgraf/Dropbox/github/forks/python/mne-python/mne/io/meas_info.py in create_info(ch_names, sfreq, ch_types, montage)
   1487                 raise TypeError('Montage must be an instance of Montage, '
   1488                                 'DigMontage, a list of montages, or filepath, '
-> 1489                                 'not %s.' % type(montage_))
   1490     info._check_consistency()
   1491     return info

TypeError: Montage must be an instance of Montage, DigMontage, a list of montages, or filepath, not <class 'mne.channels.montage.Montage'>.

I should note, the line at 1489 originally was type(montage) and I'm pretty sure it's supposed to be type(montage_), just FYI.
I have no idea why it's deciding that a Montage is not of type Montage...
I also tried using DigMontage but I'm getting some weird errors because I don't have any information other than the 3d electrode positions (it seems to be assuming that I provide head shape etc)
Hope some of that helps...

See my example. Don't use Montage, use DigMontage.

mon = mne.channels.DigMontage({'ecog': plt_pts})

keep_chans = list(names[keep])
n_chans = len(keep_chans)
info = mne.create_info(keep_chans, 100, 'ecog', mon)

Yields this error:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-12-ba2af6bbef0e> in <module>()
      5 keep_chans = list(names[keep])
      6 n_chans = len(keep_chans)
----> 7 info = mne.create_info(keep_chans, 100, 'ecog', mon)
      8 data = np.random.randn(n_chans, 10000)
      9

/Users/choldgraf/Dropbox/github/forks/python/mne-python/mne/io/meas_info.py in create_info(ch_names, sfreq, ch_types, montage)
   1487                 raise TypeError('Montage must be an instance of Montage, '
   1488                                 'DigMontage, a list of montages, or filepath, '
-> 1489                                 'not %s.' % type(montage_))
   1490     info._check_consistency()
   1491     return info

TypeError: Montage must be an instance of Montage, DigMontage, a list of montages, or filepath, not <class 'mne.channels.montage.DigMontage'>.

super weird

See my example. Use mon = mne.channels.DigMontage(dig_ch_pos=dig_ch_pos).

From Gitter chat with @choldgraf he mentioned that this works for his data, so this is ready for review/merge from my end.
@noreun feel free to try the DigMontage with dig_ch_pos to see if it works for you.

This did work for the test data in the example as well as my own dataset. The only comment I'd make on this one is ask why we're loading in a .mat file in the example. Why not lead an hdf5 file with h5io or something? Not a big deal tho.
Is there a place that explains the difference between Montage and DigMontage, and when to use one or the other?

The only comment I'd make on this one is ask why we're loading in a .mat file in the example.

I want to make the MATLAB converts feel safe :)

Is there a place that explains the difference between Montage and DigMontage, and when to use one or the other?

No, and we need it. From conversations with @teonbrooks I think the idea is that Montage is for standard, non-individualized electrode placement, whereas DigMontage is for individualized locations/digitizations of pretty much everything (fiducials, HPI coils, extra points, EEG electrodes, now ECoG electrodes).
@teonbrooks do you have any time in the coming weeks to try to write a little tutorial or manual entry on this?

I want to make the MATLAB converts feel safe :)

Fair enough :)
@teonbrooks if you guys throw together a tutorial of some kind, I can go through it and try to make sense of things. Since I'm pretty new to surface plotting in MNE, and have little background in MEG source plotting, I might be a decent test-case for whether it's a clear tutorial or not

Once this gets merged I can add a few lines showing how to take a snapshot of the brain view and plot scatterplots on top of it.

for the curious ones:
https://2987-1301584-gh.circle-artifacts.com/0/home/ubuntu/mne-python/doc/_build/html/auto_tutorials/plot_ecog.html

It is already

Can you add some colors representing the colors on the example? Chris sent
me an example of that recently
On 4 November 2016 at 18:38, Eric Larson<EMAIL_ADDRESS>wrote:

It is already
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mne-tools/mne-python/pull/3730#issuecomment-258564631,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEp7DFCQDzy_5AfM8abxI0tESGs60nW9ks5q67PVgaJpZM4KoyaW
.

forget it it's outside the scope of this PR

Comments thus far addressed

LGTM

thx @Eric89GXL !

@teonbrooks do you have any time in the coming weeks to try to write a little tutorial or manual entry on this?

I will write up a little explainer for this. are you adding the channel location support or would you like me to do it?

It was already part of this PR, at least some of it

@choldgraf
just BTW - the issue with isinstance you had most likely comes from reloading modules (if anyone has good tips on how to reload modules without pain or strange artifacts - I'll be really thankful)

yeah I found that out the hard way @mmagnuski :) thanks for the tip...I still haven't found a good way to do this either, and it's become more of a problem now that I do more things interactively


Fixes #39 Match case search removed

fixes #39

@niranjan94 Thanks. Will take care of that by next time.


Updated docs for zipkin init

Thank you for helping make the Dapr documentation better!
Description
Updating docs with respect to adding zipkin and enabling tracing on dapr init
Issue reference
Please reference the issue this PR will close: https://github.com/dapr/cli/issues/342

@msfussell @orizohar Please review this doc.


Create sandeepani.html in Friend folder

Add new friend html file to Friend folder

Your pull request needs further work because of the following reason(s):

Your filename must be KGCSandeepani.html

Once you have resolved the issues, comment on this request to be re-judged
This is an automated response, beep boop.
if you think there is a mistake, contact a maintainer

0b533d6fe459f1afd66f2c14dfeebd005ad55781

This PR has been idle for more than 24 hours, and will now be closed. Feel free to re-open.
This is an automated response, beep boop.
if you think there is a mistake, contact a maintainer

0b533d6fe459f1afd66f2c14dfeebd005ad55781


BindContextMenu pasar parametros en el callback

Dear, I found this tool and it is fabulous for the work that I am doing.
I am an amateur and sometimes I consult things that must be very simple, if so I apologize from now on.
I am using bindContextMenu in an onEachFeature with Leaflet.
In the callback I call a JS function and my question is: Is it possible to pass parameters when this function is called?
The code is:
var camino = (feature.properties['NumProyect'] !== null ? autolinker.link(feature.properties['NumProyect'].toLocaleString()) : '');
layer.bindContextMenu({
contextmenu : true ,
contextmenuItems : [ {
text : 'Ingresar trabajos en el cno. No:'+ '  ' + camino,
callback : ingresomant
} ]
});
and what I want is that when calling the ingresomant function in the callback pass it the variable path.
something like that (clearly this is wrong)
function ingresomant (e) {
location.href ="mantenimientorural.php?camino=" + camino;
}
From already thank you very much!!

If you define your callback function for each context menu item inline as an anonymous function the feature argument that's passed on each call to onEachFeature will be in scope and you can access its properties in your callback function. For example:
contextmenuItems: [{
                text : 'Ingresar trabajos en el cno. No:'+ ' ' + camino,
                callback: function (e) {
                   var camino = (feature.properties['NumProyect'] !== null ? autolinker.link(feature.properties['NumProyect'].toLocaleString()) : '')
                }
            }]

Thank you so much for your help!!


include action that will setup go with configured defaults based on branch

Fixes: https://github.com/knative/actions/issues/174

/hold

/hold cancel
/assign @dsimansk
cc @izabelacg @ReToCode @skonto

Looks good, thanks!
/approve
/lgtm
/unhold


fix: overwrite defaults instead of merging them

In my opinion (maybe I am wrong) the defaults should act as a fallback for when a given property is not specified, rather than being merged with it.
The problem
For the following script:
import { loadConfig } from "c12"

export type MyConfig = {
  prop1: string[]
  prop2: string[]
}

async function loadMyConfig() {
  const { config } = await loadConfig<MyConfig>({
    defaults: {
      prop1: ["1", "2"],
      prop2: ["3", "4"],
    },
  })

  console.log(config)
}

loadMyConfig()

And the following config:
export default {
  prop1: ["a", "b"],
  prop2: ["c", "d"],
}

I was expecting to receive this:
{
  "prop1": [ "a", "b" ],
  "prop2": [ "c", "d" ]
}

But instead received this
{
  "prop1": [ "a", "b", "1", "2" ],
  "prop2": [ "c", "d", "3", "4" ]
}

The solution
Instead of merging both the accumulated config with the defaults, I am spreading the accumulated config over the defaults. This way, default properties will keep untouched if they are not present in the accumulated config.

Thanks for the PR @fullstackjedi. I can understand it is desired by your use case to replace array when applying defaults but it is not an easy change because this strategy with defu is widely adopted. What we can do, is supporting a custom merging strategy as merge: (obj, defaults) (c12 option) to replace defu.

I understand, so as of now, there is no way to overwrite a JS object (array or map)? I also agree that the ability to change the merging strategy could work.
I also have a question, what is the main difference or when I can use defaultConfig vs defaults?

Adding an option would be nice 👍
Different between defaults and defaultConfig is slight.
Normally you would eant to use defaults as it gets applied with least periority. Their difference is whan you are using extends feature. First defaultConfig is applied before extends happening therefor has periority over extends layers. This was useful for unjs/nitro extends. (PR welcome if you like to improve description of them in docs?

Adding an option would be nice 👍
Different between defaults and defaultConfig is slight.
Normally you would eant to use defaults as it gets applied with least periority. Their difference is whan you are using extends feature. First defaultConfig is applied before extends happening therefor has periority over extends layers. This was useful for unjs/nitro extends. (PR welcome if you like to improve description of them in docs)


Support interruption of accept()

In an earlier Rust implementation of unix sockets you could abort accept() calls.

Methods like close_accept were removed because they didn't match up to the goals for std::io. Specifically, close_accept was implemented by spawning a pipe, storing a separate "closed" state in an atomic type, switching the socket into nonblocking mode and then selecting over the socket and one end of the pipe in a loop: https://github.com/rust-lang/rust/blob/ba4081a5a8573875fed17545846f6f6902c8ba8d/src/libnative/io/pipe_unix.rs#L266-L328.
I'm keeping this crate a pretty close mirror of the std::net APIs so something of this complexity doesn't seem like something that makes sense to implement.


http auth basic broken on 5.8.0 with python 3.10

Hi,
after upgrading to the latest release with newer python I'm unable to upload new data to the server from my test client because I get 401 unauthorized. I'm using an MDM profile with MunkiReport payload containing the http basic token.
Downgrading back to 5.7.1 with python 2.7 makes the authentication and upload work.
5.8.0 client
    Requesting printer
    Authentication challenge for Host: xxxxx.cz Realm: None AuthMethod: NSURLAuthenticationMethodServerTrust
    Allowing OS to handle authentication request
    Authentication challenge for Host: xxxxx.cz Realm: Restricted Content AuthMethod: NSURLAuthenticationMethodHTTPBasic
    Allowing OS to handle authentication request
    Authentication challenge for Host: xxxxx.cz Realm: None AuthMethod: NSURLAuthenticationMethodServerTrust
    Allowing OS to handle authentication request
    Status: 401
    Headers: {'Server': 'nginx/1.20.2', 'Date': 'Fri, 23 Jun 2023 07:08:26 GMT', 'Content-Type': 'text/html; charset=iso-8859-1', 'Connection': 'keep-alive', 'Www-Authenticate': 'Basic realm="Restricted Content"', 'Content-Length': '468'}
    ERROR: https://xxxxx.cz/index.php?/report/hash_check failed, HTTP returncode 401 (unauthorized)

Server log
[23/Jun/2023:09:03:08 +0200] "POST /index.php?/report/hash_check HTTP/1.0" 401 703 "-" "Python/3.10.9 CFNetwork/1465.1 Darwin/23.0.0"
[23/Jun/2023:09:03:08 +0200] "POST /index.php?/report/hash_check HTTP/1.0" 401 703 "-" "Python/3.10.9 CFNetwork/1465.1 Darwin/23.0.0"

5.7.1 client
    Requesting printer
    connection_willSendRequestForAuthenticationChallenge_
    Authentication challenge for Host: xxxxx.cz Realm: None AuthMethod: NSURLAuthenticationMethodServerTrust
    Allowing OS to handle authentication request
    ...
    Sending items (109KB)

Server log
[23/Jun/2023:09:14:22 +0200] "POST /index.php?/report/hash_check HTTP/1.0" 200 401 "-" "Python/2.7.18 CFNetwork/1465.1 Darwin/23.0.0"
[23/Jun/2023:09:14:22 +0200] "POST /index.php?/report/check_in HTTP/1.0" 200 327 "-" "Python/2.7.18 CFNetwork/1465.1 Darwin/23.0.0"

Thanks :)

What is the exact key you have set that contains the HTTP auth? Do you see the proper config when you run sudo munkireport-runner --show-config when running MunkiReport 5.8?

This is the config:
AdditionalHttpHeaders: (
    "Authorization: Basic xxxxxxxxxxxxx="
) [MANAGED]
                BaseUrl: 'https://xxxxxx.cz/' [/Library/Preferences/MunkiReport.plist]
                FollowHTTPRedirects: False [/Library/Preferences/MunkiReport.plist]
                HttpConnectionTimeout:    60 [/Library/Preferences/MunkiReport.plist]
                LogFile: '/Library/MunkiReport/Logs/MunkiReport.log' [/Library/Preferences/MunkiReport.plist]
                LogToSyslog: False [/Library/Preferences/MunkiReport.plist]
                Passphrase:  None [not set]
                UseAdditionalHttpHeaders: False [/Library/Preferences/MunkiReport.plist]
                scriptTimeOut:    30 [/Library/Preferences/MunkiReport.plist]
                ...

The profile:
<dict>
  <key>PayloadContent</key>
  <dict>
    <key>MunkiReport</key>
    <dict>
      <key>Forced</key>
      <array>
        <dict>
          <key>mcx_preference_settings</key>
          <dict>
            <key>UseMunkiAdditionalHttpHeaders</key>
            <true/>
            <key>AdditionalHttpHeaders</key>
            <array>
              <string>Authorization: Basic xxxxxxxxxxxxx =</string>
            </array>
          </dict>
        </dict>
      </array>
    </dict>
  </dict>
....

There is a bug with this. Add the following to the mcx_preference_settings dict and it'll work correctly. A pull request for this has been filed.
            <true/>```


Widget + available tags

Is it possible to have a widget for easy access to the bookmarks under available tags?
Also when adding a bookmark, to be able to choose from already available tags?

Yes but I barely have time to implement it right now.

I understand mate. I'd appreciate if you could add it to your to do list.. Otherwise great app, have been using it daily, thanks for all the work you have done!

Closing in favour of https://gitlab.com/derSchabi/OCBookmarks/issues/7


Over the top server.key encryption?

Seems like it would be easier to go base64 < server.key and paste that into a secured Bitbucket Pipeline variable called SERVER_KEY, and then in the pipeline itself go echo -n $SERVER_KEY | base64 -D > assets/server.key rather than mucking around with encryption and decryption keys?

I believe the author did it this way to make it easier to import the key to all required environment and have it stored as part of the repo files instead of in variables. Also having it as a file in the repo makes it easier to fork the repo and start somewhere else, but if you do it with the variable, you will need to setup the variables on the next repo.


updated hash syntax to 1.9

This isn't critical and would be better handled by getting foodcritic sane in general

In general the new ruby has syntax is horrible.
# hashes work
irb(main):003:0> foo = { :foo => 'bar' }
=> {:foo=>"bar"}

# new hashes, not so much
irb(main):004:0> foo = { :foo: 'bar' }
SyntaxError: (irb):4: syntax error, unexpected ':', expecting =>

# but certainly I can be more explicit:
irb(main):005:0> foo = { :"foo": 'bar' }
SyntaxError: (irb):5: syntax error, unexpected ':', expecting =>

# no, OK it likes strings, that's cool, what about this string?
irb(main):006:0> foo = { ":foo": 'bar' }
SyntaxError: (irb):6: syntax error, unexpected ':', expecting =>

# what the fuck? I'm not crazy, right?
irb(main):008:0> foo = { ":foo" => 'bar' }
=> {":foo"=>"bar"}

# OK, sweet, that works.
irb(main):010:0> foo = { \:foo: 'bar' }
SyntaxError: (irb):10: syntax error, unexpected $undefined, expecting '}'

# Damn. I give up.


Inputbox: Dialog closes when going to next line

When the InputBox is set to multi-line, when you press Enter, instead of going to the next line, the Enter key triggers the OK button and closes the dialog.

close as duplicate


UIButton or UITextfield couldn't work in UIScrollView

New Issue Checklist
🚫 If this template is not filled out your issue will be closed with no comment. 🚫

[yes] I have looked at the Documentation
[yes] I have read the F.A.Q.
[ yes] I have filled out this issue template.

Issue Info

Info
Value

Platform
ios

Platform Version
13.0

SnapKit Version
5.0.1

Integration Method
cocoapods

Issue Description
when button or textfield are added  in contentview, which is added in scrollview, they couldn't be touched or input.
Is there any workable solution for button or textfield in the scrollview?
thx
`
let scrollView = UIScrollView()
  let contentView = UIView()
    view.addSubview(scrollView)
    scrollView.addSubview(contentView)
    scrollView.snp.makeConstraints { (make) -> Void in
        make.edges.equalToSuperview()
    }
    contentView.snp.makeConstraints { (make) -> Void in
        make.edges.equalTo(scrollView)
        make.width.equalTo(view)
    }
    let btn = UIButton()
    btn.backgroundColor = .blue
    contentView.addSubview(btn)
    btn.addTarget(self, action: #selector(buttonClicked(_:)), for: .touchUpInside)

    btn.snp.makeConstraints { (make) -> Void in
        make.centerX.equalToSuperview()
        make.top.equalToSuperview().offset(100)
        make.width.equalTo(100)
        make.height.equalTo(50)
    }

    let tf = UITextField()
    tf.backgroundColor = .blue
    contentView.addSubview(tf)
    tf.snp.makeConstraints { (make) -> Void in
        make.left.equalToSuperview()
        make.top.equalTo(btn.snp.bottom).offset(50)
        make.right.equalToSuperview()
        make.height.equalTo(40)
    }`

@iHamburg Don't think this is an issue relating to snapkit if the views are visible. You might look at some of the touch properties on UIScrollView as some will capture touches rather than sending them to subviews.

add the height constraint of contentView
contentView.snp.makeConstraints { (make) -> Void in
        make.edges.equalTo(scrollView)
+       make.width.equalTo(scrollView)
+       make.height.greaterThanOrEqualTo(scrollView)
}

add the height constraint of contentView
contentView.snp.makeConstraints { (make) -> Void in
        make.edges.equalTo(scrollView)
+       make.width.equalTo(scrollView)
+       make.height.greaterThanOrEqualTo(scrollView)
}

Thanks, this works for me.


Creation of custom edit views for CRDs for Elemental (cover basic flow)

Creation of custom edit views for CRDs for Elemental (cover basic flow), which should be:

Create/edit Machine Registrations
Create/edit Machine Inventories (create/edit as YAML for this resource)
Create/edit Elemental Cluster
Create/edit Managed OS Images

this should enable the user to test the basic workflow/usecase for Elemental

Old Elemental issue from early development days. As the work has been merged to elemental-ui branch this issue no longer makes sense. Will be closed


ec2 RunInstances error

What platform/OS are you using?
aws ubuntu
Which version of the SDK?
0dad0a2f
What compiler are you using? what version?
gcc 4.8.5
What are your CMake arguments?
Can you provide a TRACE level log? (sanitize any sensitive information)
when call, fail and error code : "Unable to connect to endpoint with address **"
when i call api from a machine not in aws, it is successful, but when i call this api from an aws linux instance it fail, and error code like up.

Hi @jiephe, can you provide a sanitized trace log? and if possible, a code snippet of what you're trying to do would also help me identify the problem.

`		Aws::Auth::AWSCredentials credentials(key.c_str(), secret.c_str());
	Aws::Client::ClientConfiguration config;
	config.verifySSL = false;
	ec2_client_.reset(new Aws::EC2::EC2Client(credentials, config));`

if i do not set config.verifySSL  to false, it is ok from outside aws ec2 instance, only when config.verifySSL is false it is ok inside aws ec2 instance. and code is like this:
`		std::string ecs_region_tag;
	uint32_t type = atoi(instance_type.c_str());

	Aws::EC2::Model::RunInstancesRequest rir;
	rir.SetImageId(image_id.c_str());
	rir.SetInstanceType((Aws::EC2::Model::InstanceType)type);
	rir.SetMinCount(1);
	rir.SetMaxCount(1);
	rir.SetSubnetId(sub_net_id.c_str());
	rir.AddSecurityGroupIds(security_group_id.c_str());
	if (!user_data.empty())
	{
		CMMUtils::uuid(ecs_region_tag);
		std::string last_user_data = user_data;
		last_user_data = CMMUtils::m_replace(last_user_data, MACRO_REGION_TAG, ecs_region_tag);
		last_user_data = CMMUtils::m_replace(last_user_data, MACRO_PASSWD, passwd);
		last_user_data = CMMUtils::m_replace(last_user_data, MACRO_APP_ID, app_id);
		last_user_data = CMMUtils::m_replace(last_user_data, MACRO_SERVER_VERSION, server_version);

		LOG_INFO("{}, run_instance user_data: {} ", Log_Packet, last_user_data);

		Base64 b64;
		std::string base64_user_data = b64.Encode((unsigned char*)last_user_data.c_str(), last_user_data.size());
		rir.SetUserData(base64_user_data.c_str());
	}
	auto run_outcome = ec2_client_->RunInstances(rir);
	if (!run_outcome.IsSuccess())
	{
		LOG_ERROR("Failed to run ec2 instance based on ami: {}  error:{}", image_id, run_outcome.GetError().GetMessage().c_str());
		return false;
	}`

It works outside of ec2 instance when verifySsl is set to true.
Within ec2 instance,  it works when verifySsl is set to false.

It's most probably that ec2's built-in curl doesn't know the pki path ssl library on that ec2 uses.
You can solve this by specify conf.caFile = "/etc/pki/tls/certs/ca-bundle.crt";

@singku Thanks so much! it works. but if i use with verifySsl=false, Is there any risk?

Potentially man in the middle attack if you don't verify ssl endpoint. https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html

@singku ok i got it. thansk!


How to add more streamers?

I was looking through the code to see if I could add myself via PR or submission (hehehe) and couldn't find a way, so I was wondering if you will be opening up the process for being added to the list?

I'll be adding a nomination form! The data is stored in Contentful – so I will get you added!

! awesome. thank you for the quick response :)

You're on!


Food Delivery Reviews Classification Prebuilt Model [Resolves #290]

sadedegel/prebuilt/README.md:

Added how to use prebuilt pipeline
Added how to use evaluation
Added holdout test set F-1 macro score

sadedegel/prebuilt/model/food_sentiment.joblib:

Dumped pretrained/optimized model weights

sadedegel/prebuilt/food_reviews.py:

Created functions according to CONTRIBUTING.md
Implemented build, load and evaluate functions
Added optional argument to check roc_auc score for predict_proba method
Best model and vectorizer parameters are selected using bayesian optimizer

tests/prebuilt/context.py:

Added import line for the base model

tests/prebuilt/test_food_reviews.py:

Added assertions for testing purposes.

sadedegel/dataset/food_review/*

Created a dataset imports by @dafajon based on the data I mentioned on Issue #290

Which function did you use as loss during Bayesian Opt? Can you upload optimization code separately on a private gist and share with me as contributor. Let's version it for future use next to optuna.


ChannelCandidatesPreinvestigator to drop Candidates which have too small capacity to their Patron

Following #81
ChannelCandidatesPreinvestigator do not consider Candidates capacity to their Patron.
As a result, 2/3 of the candidates are useless. They are monitored kept as good candidate until a ChannelCreator is called.
ChannelCreator rejected them during channel creation process :
https://github.com/ZmnSCPxj/clboss/blob/00cdded89cd5eac01ee5c6bb4675ecc7fa20778f/Boss/Mod/ChannelCreator/Planner.cpp#L81-L85
It would be better to directly drop wrong candidates: better visibility, no useless active monitoring, slots not taken by fake candidates, ...

Rather than drop canddates at the ChanneCandidatePreinvestigator, I think we should split it at two levels:

Some ChannelFinders do not locate a patron  (e.g. ByListpays).   These locate a patron by asking help from ChannelCandidateMatchmaker to look for a patron.  The matchmaker could consider channel size --- the matchmaker really just does a getroute from the candidate to an existing candidate (on the logic that existing candidates are good, so connectivity towards those candidates is also good) and takes as patron the first hop; rather than route a 1msat paymant (current behavior) it could route a 5mBTC payment, which should immediately rule out small channels to the patron on recent C-Lightning.
Channel topologies can change from under us, so ChannelCandidateInvestigator should be the one to filter out candidate-patron pairs whose channel capacities have changed.  Keep Preinvestigator simple and make it a quick check, and add a Janitor sub-object to ChannelCandidateInvestigator that invokes the dowser and cleans up the candidate list.  This handles not only the low-capacity candidates in the start but also handles channel topology changes, which we do not control.

Nice, I like the Idea of the Janitor doing the maintenance of the candidate list.


Error when submitting categorical statistic histogram

When using PUMS data, the race categorical variable's statistic for the histogram errors in the privateStatisticsapp. The R console has the error:
Error in `[.data.frame`(data, , variable) : undefined columns selected

'Race' appears in the PSI prototype because it's in the metadata file.  It's not however, in the actual PUMS dataset.  Should be fixed in the exemplar data.


请问这个错误是什么原因啊

Layer #464 (named "mrcnn_bbox_fc"), weight <tf.Variable 'mrcnn_bbox_fc/kernel:0' shape=(1024, 12) dtype=float32, numpy= array([[-0.05428203, -0.02379247, 0.05667973, ..., -0.06447191, -0.02742182, 0.00107304], [ 0.01232199, -0.02978487, -0.02579215, ..., 0.02193074, -0.068812 , -0.04887809], [ 0.02010278, 0.01346438, -0.04218667, ..., -0.02126509, -0.06186843, -0.0097234 ], ..., [ 0.0622025 , -0.03266411, -0.01797799, ..., -0.07131057, 0.01170394, 0.00496624], [ 0.00119929, -0.02760401, 0.07242227, ..., 0.04025252, -0.0588662 , -0.06650373], [-0.07064345, 0.02222669, 0.00726445, ..., -0.06496349, 0.04810742, -0.03629954]], dtype=float32)> has shape (1024, 12), but the saved weight has shape (1024, 16).
gtx3050，cuda11.1和cudnn11.1，tensorflow2.5.0，python3.7的环境运行的

0 0没见过，你怎么出啦ide

2023-03-08 17:33:13.790670: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library cudart64_110.dll
2023-03-08 17:33:15.860437: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library nvcuda.dll
2023-03-08 17:33:15.877565: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1733] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: NVIDIA GeForce RTX 3050 Laptop GPU computeCapability: 8.6
coreClock: 1.5GHz coreCount: 16 deviceMemorySize: 4.00GiB deviceMemoryBandwidth: 178.84GiB/s
2023-03-08 17:33:15.877910: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library cudart64_110.dll
2023-03-08 17:33:15.931477: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library cublas64_11.dll
2023-03-08 17:33:15.931604: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library cublasLt64_11.dll
2023-03-08 17:33:15.935170: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library cufft64_10.dll
2023-03-08 17:33:15.936344: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library curand64_10.dll
2023-03-08 17:33:15.944361: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library cusolver64_11.dll
2023-03-08 17:33:15.947159: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library cusparse64_11.dll
2023-03-08 17:33:15.947904: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library cudnn64_8.dll
2023-03-08 17:33:15.948061: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1871] Adding visible gpu devices: 0
Configurations:
BACKBONE_STRIDES               [4, 8, 16, 32, 64]
BATCH_SIZE                     1
BBOX_STD_DEV                   [0.1 0.1 0.2 0.2]
DETECTION_MAX_INSTANCES        100
DETECTION_MIN_CONFIDENCE       0.8
DETECTION_NMS_THRESHOLD        0.9
FPN_CLASSIF_FC_LAYERS_SIZE     1024
GPU_COUNT                      1
IMAGES_PER_GPU                 1
IMAGE_MAX_DIM                  256
IMAGE_META_SIZE                14
IMAGE_SHAPE                    [256 256   3]
LOSS_WEIGHTS                   {'rpn_class_loss': 1.0, 'rpn_bbox_loss': 1.0, 'mrcnn_class_loss': 1.0, 'mrcnn_bbox_loss': 1.0, 'mrcnn_mask_loss': 1.0}
MASK_POOL_SIZE                 14
MASK_SHAPE                     [28, 28]
MAX_GT_INSTANCES               100
MINI_MASK_SHAPE                (56, 56)
NUM_CLASSES                    2
POOL_SIZE                      7
POST_NMS_ROIS_INFERENCE        1000
POST_NMS_ROIS_TRAINING         2000
PRE_NMS_LIMIT                  6000
ROI_POSITIVE_RATIO             0.33
RPN_ANCHOR_RATIOS              [0.5, 1, 2]
RPN_ANCHOR_SCALES              [32, 64, 128, 256, 512]
RPN_ANCHOR_STRIDE              1
RPN_BBOX_STD_DEV               [0.1 0.1 0.2 0.2]
RPN_NMS_THRESHOLD              0.7
RPN_TRAIN_ANCHORS_PER_IMAGE    256
TOP_DOWN_PYRAMID_SIZE          256
TRAIN_BN                       False
TRAIN_ROIS_PER_IMAGE           10
USE_MINI_MASK                  True
WEIGHT_DECAY                   0
2023-03-08 17:33:15.969169: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-08 17:33:15.970197: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1733] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: NVIDIA GeForce RTX 3050 Laptop GPU computeCapability: 8.6
coreClock: 1.5GHz coreCount: 16 deviceMemorySize: 4.00GiB deviceMemoryBandwidth: 178.84GiB/s
2023-03-08 17:33:15.970371: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1871] Adding visible gpu devices: 0
2023-03-08 17:33:16.472129: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1258] Device interconnect StreamExecutor with strength 1 edge matrix:
2023-03-08 17:33:16.472265: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1264]      0
2023-03-08 17:33:16.472332: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1277] 0:   N
2023-03-08 17:33:16.472620: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1418] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 1667 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce RTX 3050 Laptop GPU, pci bus id: 0000:01:00.0, compute capability: 8.6)
WARNING:tensorflow:From D:\pycharmprogram\mask-rcnn-tf2\venv\lib\site-packages\tensorflow\python\ops\array_ops.py:5049: calling gather (from tensorflow.python.ops.array_ops) with validate_indices is deprecated and will be removed in a future version.
Instructions for updating:
The validate_indices argument has no effect. Indices are always validated on CPU and never validated on GPU.
WARNING:tensorflow:From D:\pycharmprogram\mask-rcnn-tf2\venv\lib\site-packages\tensorflow\python\util\deprecation.py:602: calling map_fn_v2 (from tensorflow.python.ops.map_fn) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Use fn_output_signature instead
Traceback (most recent call last):
File "D:/pycharmprogram/mask-rcnn-tf2/predict.py", line 18, in
mask_rcnn = MASK_RCNN()
File "D:\pycharmprogram\mask-rcnn-tf2\mask_rcnn.py", line 106, in init
self.generate()
File "D:\pycharmprogram\mask-rcnn-tf2\mask_rcnn.py", line 119, in generate
self.model.load_weights(self.model_path, by_name=True)
File "D:\pycharmprogram\mask-rcnn-tf2\venv\lib\site-packages\tensorflow\python\keras\engine\training.py", line 2324, in load_weights
f, self.layers, skip_mismatch=skip_mismatch)
File "D:\pycharmprogram\mask-rcnn-tf2\venv\lib\site-packages\tensorflow\python\keras\saving\hdf5_format.py", line 795, in load_weights_from_hdf5_group_by_name
str(weight_values[i].shape) + '.')
ValueError: Layer #389 (named "mrcnn_bbox_fc"), weight <tf.Variable 'mrcnn_bbox_fc/kernel:0' shape=(1024, 8) dtype=float32, numpy=
array([[ 0.01597914, -0.05456199, -0.07526528, ...,  0.07273479,
0.00868265,  0.02716637],
[ 0.07172772, -0.04769863, -0.00772104, ...,  0.02604937,
-0.03637744,  0.07384741],
[-0.0544251 , -0.06597053, -0.03896903, ..., -0.0512475 ,
-0.0349538 ,  0.01046421],
...,
[ 0.06541412, -0.02186713,  0.03231685, ...,  0.06121826,
-0.03497282,  0.0584868 ],
[-0.03125934, -0.06917947, -0.02298298, ..., -0.05074164,
0.04947589, -0.05265208],
[ 0.01530369, -0.02414635, -0.04038272, ..., -0.06305762,
0.06060681, -0.03200496]], dtype=float32)> has shape (1024, 8), but the saved weight has shape (1024, 324).
Process finished with exit code 1
我用的是pycharm，昨天把问题打错了，抱歉，tensorflow是2.2.0，之前试了一下2.5.0的没有成功

Configurations:
BACKBONE_STRIDES               [4, 8, 16, 32, 64]
BATCH_SIZE                     1
BBOX_STD_DEV                   [0.1 0.1 0.2 0.2]
DETECTION_MAX_INSTANCES        100
DETECTION_MIN_CONFIDENCE       0.5
DETECTION_NMS_THRESHOLD        0.3
FPN_CLASSIF_FC_LAYERS_SIZE     1024
GPU_COUNT                      1
IMAGES_PER_GPU                 1
IMAGE_MAX_DIM                  256
IMAGE_META_SIZE                93
IMAGE_SHAPE                    [256 256   3]
LOSS_WEIGHTS                   {'rpn_class_loss': 1.0, 'rpn_bbox_loss': 1.0, 'mrcnn_class_loss': 1.0, 'mrcnn_bbox_loss': 1.0, 'mrcnn_mask_loss': 1.0}
MASK_POOL_SIZE                 14
MASK_SHAPE                     [28, 28]
MAX_GT_INSTANCES               100
MINI_MASK_SHAPE                (56, 56)
NUM_CLASSES                    81
POOL_SIZE                      7
POST_NMS_ROIS_INFERENCE        1000
POST_NMS_ROIS_TRAINING         2000
PRE_NMS_LIMIT                  6000
ROI_POSITIVE_RATIO             0.33
RPN_ANCHOR_RATIOS              [0.5, 1, 2]
RPN_ANCHOR_SCALES              [16, 32, 64, 128, 256]
RPN_ANCHOR_STRIDE              1
RPN_BBOX_STD_DEV               [0.1 0.1 0.2 0.2]
RPN_NMS_THRESHOLD              0.7
RPN_TRAIN_ANCHORS_PER_IMAGE    256
TOP_DOWN_PYRAMID_SIZE          256
TRAIN_BN                       False
TRAIN_ROIS_PER_IMAGE           200
USE_MINI_MASK                  True
WEIGHT_DECAY                   0
2023-03-14 21:31:52.307184: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations:  AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-03-14 21:31:52.621770: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 3491 MB memory:  -> device: 0, name: NVIDIA GeForce RTX 3060 Laptop GPU, pci bus id: 0000:01:00.0, compute capability: 8.6
WARNING:tensorflow:From C:\Users\10230\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\util\deprecation.py:629: calling map_fn_v2 (from tensorflow.python.ops.map_fn) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Use fn_output_signature instead
Traceback (most recent call last):
File "D:\Study\mask-rcnn-tf2-master\predict.py", line 18, in
mask_rcnn = MASK_RCNN()
File "D:\Study\mask-rcnn-tf2-master\mask_rcnn.py", line 107, in init
self.generate()
File "D:\Study\mask-rcnn-tf2-master\mask_rcnn.py", line 120, in generate
self.model.load_weights(self.model_path, by_name=True)
File "C:\Users\10230\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "C:\Users\10230\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\saving\hdf5_format.py", line 944, in load_weights_from_hdf5_group_by_name
raise ValueError(
ValueError: Shape mismatch in layer #392 (named mrcnn_bbox_fc) for weight mrcnn_bbox_fc/kernel:0. Weight expects shape (1024, 324). Received saved weight with shape (1024, 12)
Process finished with exit code 1
我也遇到了类似的错误。训练时ok，在predict加载权重时出错。

我的解决办法是把coco数据集的权重文件删掉就好了。coco的权重文件里shape是(1024, 324)，而(1024,8)或者(1024,12)才是其他数据集的权重里的shape。

Configurations: BACKBONE_STRIDES [4, 8, 16, 32, 64] BATCH_SIZE 1 BBOX_STD_DEV [0.1 0.1 0.2 0.2] DETECTION_MAX_INSTANCES 100 DETECTION_MIN_CONFIDENCE 0.5 DETECTION_NMS_THRESHOLD 0.3 FPN_CLASSIF_FC_LAYERS_SIZE 1024 GPU_COUNT 1 IMAGES_PER_GPU 1 IMAGE_MAX_DIM 256 IMAGE_META_SIZE 93 IMAGE_SHAPE [256 256 3] LOSS_WEIGHTS {'rpn_class_loss': 1.0, 'rpn_bbox_loss': 1.0, 'mrcnn_class_loss': 1.0, 'mrcnn_bbox_loss': 1.0, 'mrcnn_mask_loss': 1.0} MASK_POOL_SIZE 14 MASK_SHAPE [28, 28] MAX_GT_INSTANCES 100 MINI_MASK_SHAPE (56, 56) NUM_CLASSES 81 POOL_SIZE 7 POST_NMS_ROIS_INFERENCE 1000 POST_NMS_ROIS_TRAINING 2000 PRE_NMS_LIMIT 6000 ROI_POSITIVE_RATIO 0.33 RPN_ANCHOR_RATIOS [0.5, 1, 2] RPN_ANCHOR_SCALES [16, 32, 64, 128, 256] RPN_ANCHOR_STRIDE 1 RPN_BBOX_STD_DEV [0.1 0.1 0.2 0.2] RPN_NMS_THRESHOLD 0.7 RPN_TRAIN_ANCHORS_PER_IMAGE 256 TOP_DOWN_PYRAMID_SIZE 256 TRAIN_BN False TRAIN_ROIS_PER_IMAGE 200 USE_MINI_MASK True WEIGHT_DECAY 0
2023-03-14 21:31:52.307184: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2 To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-03-14 21:31:52.621770: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 3491 MB memory: -> device: 0, name: NVIDIA GeForce RTX 3060 Laptop GPU, pci bus id: 0000:01:00.0, compute capability: 8.6 WARNING:tensorflow:From C:\Users\10230\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\util\deprecation.py:629: calling map_fn_v2 (from tensorflow.python.ops.map_fn) with dtype is deprecated and will be removed in a future version. Instructions for updating: Use fn_output_signature instead Traceback (most recent call last): File "D:\Study\mask-rcnn-tf2-master\predict.py", line 18, in mask_rcnn = MASK_RCNN() File "D:\Study\mask-rcnn-tf2-master\mask_rcnn.py", line 107, in init self.generate() File "D:\Study\mask-rcnn-tf2-master\mask_rcnn.py", line 120, in generate self.model.load_weights(self.model_path, by_name=True) File "C:\Users\10230\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler raise e.with_traceback(filtered_tb) from None File "C:\Users\10230\AppData\Local\Programs\Python\Python38\lib\site-packages\keras\saving\hdf5_format.py", line 944, in load_weights_from_hdf5_group_by_name raise ValueError( ValueError: Shape mismatch in layer #392 (named mrcnn_bbox_fc) for weight mrcnn_bbox_fc/kernel:0. Weight expects shape (1024, 324). Received saved weight with shape (1024, 12)
Process finished with exit code 1
我也遇到了类似的错误。训练时ok，在predict加载权重时出错。

应该是预测时候的种类没改 欸

或者model_path没改


Move to PyCQA organization

The flint project is no longer maintained. GitHub will redirect anyone from flintwork/mccabe to PyCQA/mccabe. @florentx has an invitation pending to PyCQA and it will make sense to have flake8 and mccabe under the same organization. I can do this arbitrarily but I won't. I really want everyone's input. And if there isn't unanimous agreement, then I won't do it.

I'll let this sit until December 16, 2015 and then I'll move this and pep8-naming in one fell swoop to the PyCQA organization.

This has been completed today.


Open File Dialogue Incorrect Path

Description
The open file dialogue does not use the working directory path, instead using the path of the active file.
What steps will reproduce the problem?

Install Spyder 2.3.6 from Anaconda
Start Spyder
Select File -> Open...

What is the expected output? What do you see instead?
I expect the Open File dialogue to open at the working directory path, but instead it opens on the path of the currently selected file in the editor. The tooltip for the working directory path explicitly says the file explorer should correspond to the path set there.

This is not a bug, just the default option. To change this behavior, please go to
Tools > Preferences > Global working directory > Open file

and select the option called
the global working directory

OK, thanks. Maybe the behaviour has changed since a previous version I am using.
Sorry for wasting your time!
Sent from Yahoo Mail on Android
From:"Carlos Cordoba"<EMAIL_ADDRESS>Date:Mon, 21 Sep, 2015 at 21:30
Subject:Re: [spyder] Open File Dialogue Incorrect Path (#2704)
This is not a bug, just the default option. To change this behavior, please go to
Tools > Preferences > Global working directory > Open file
and select the option called
the global working directory
—
Reply to this email directly or view it on GitHub.￼

No problem :-)


set_open_listener not getting called on successful connection

Thanks for this library. I am trying to connect to a secure API endpoint. The connection seems successful, but the set_open_handler is not called on successful connection.
I have traced though the function calls. control reaches to client_impl::connect but the  client_impl::run_loop never called.
Here is the debug trace..
[2018-05-04 14:54:34] [devel] endpoint constructor
[2018-05-04 14:54:34] [devel] client constructor
[2018-05-04 14:54:35] [connect] Successful connection
[2018-05-04 14:54:35] [connect] WebSocket Connection <IP_ADDRESS>:443 v-2 "WebSocket++/0.7.0" /socket.io/?EIO=4&transport=websocket&t=1525460074 101
On handshake,sid:yuPowbxpsK5-E6vKAOYT,ping interval:25000,ping timeout60000
ping exit,con is expired?1,ec:Success
Client Disconnected.
clear timers
sio closed
0

Thanks for the help!

Another issue is, there is no way to connect to an endpoint. Because of the code, https://github.com/socketio/socket.io-client-cpp/blob/master/src/internal/sio_client_impl.cpp#L218 the  endpoint is truncated.


Remove sketch-tool

This PR removes sketch-tool.
$ cask install sketch-tool is no longer working because the Sketch team removed the download link and is now bundling it within the core app sketch.

SketchTool comes bundled with Sketch (and Sketch Beta).

SketchTool Site

Is it possible to use this Github repo as URL? https://github.com/caskroom/homebrew-cask/pull/26844
Or does it have to be from the official source?
I have also sent Bohemian Coding an email, urging them to put it back on the website.

does it have to be from the official source?

Yes.


feat(Computability.Timed): Formalization of runtime complexity of List.merge

This PR adds the formalization of the runtime complexity of the merge function, defined in Data/List/Sort.
Requires: https://github.com/leanprover-community/mathlib4/pull/15450
References:

Previous PR on mathlib3: https://github.com/leanprover-community/mathlib3/pull/14494/
First discussion on Zulip: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/BSc.20Final.20Project/near/220647062
Second disussion on Zulip: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Formalization.20of.20Runtime.20Complexity.20of.20Sorting.20Algorithms/near/284184450

Dear Tomaz:
I'd like to apologise on behalf of the mathlib community that these very interesting-looking PR's have gone unreviewed for so long. Unfortunately, mathlib's automated build / test scripts are set up to expect PR's from branches inside the main mathlib repo; when PRs are created from forks, as in this case, the test script doesn't run, and hence they don't get flagged as "passes tests" and don't show up in the review queue. We're working on a solution to automatically identify and handle such PR's in future.
If you are still interested in contributing – which I very much hope is the case – could you please request push access to non-master mathlib branches (anyone can get this, just post on zulip mentioning your github handle) and re-create the PR's from a branch inside the leanprover-community repo?
Best regards, David

Superseded by #18629


[release-24.05] mastodon: 4.2.9 -> 4.2.10

Description of changes
Changelog
Backport of https://github.com/NixOS/nixpkgs/pull/324586

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@ofborg eval
@ofborg test mastodon


NSwag.Annotations support for CSharpControllerGenerator

Would be great if CSharpControllerGenerator would offer the option to include the additional info from the OpenAPI document as NSwag.Annotations so that when generating an OpenAPI doc from code we would end up with basically the same file.

The idea is that the generated output is completely independently usable without NSwag (dependencies).

generating an OpenAPI doc from code we would end up with basically the same file.

Somehow this makes sense, but why would you need that?

Your point about minimizing dependencies is certainly a very valid one and I don't think that what I'm suggesting here should be the default option. Neither is this needed in a perfect world. But since we're all in a hurry it's not that uncommon that in-code changes are made to what originally started as design first OpenAPI doc. It's simply quicker to go code-first for smaller improvements.
If what I'm suggesting is implemented, users have the peace of mind to switch between design-first  and code-first at any time.
(Sorry for the delayed reply, I was in vacation)

Ok, so the scenario is to first do schema first generation and then switch to code first? Makes sense...
At this time most of the NSwag are no longer needed as there are replacements in ASP.NET Core for most of them (eg OpenApiResponse vs ProducesResponseType).
We should first generate these native attributes and then see what’s missing.

Another choice for code-first would be https://github.com/domaindrivendev/Swashbuckle.AspNetCore.
Additionally, Microsoft has a preview project that leverages XML documentation (https://github.com/microsoft/OpenAPI.NET.CSharpAnnotations). That one however doesn't seem to gain much traction?

NSwag already provides all functionality of these projects (code first). I’m always suggesting to use mostly native attributes (you can achieve most with them) so that you are flexible which tool to use later..


Add delete, put methods

Hello!
First of all, thank you for nice library. It's really fast and works fine.
However, I'm having trouble with missing DELETE and PUT methods.
Can we implement it as well?
Example:

Delete: Post method doesn't work for deleting messages we need to send 'DELETE'
https://developer.twitter.com/en/docs/direct-messages/welcome-messages/api-reference/delete-welcome-message-rule

Put: Same issue like Delete, need to send 'DELETE'

https://developer.twitter.com/en/docs/accounts-and-users/subscribe-account-activity/api-reference/aaa-premium#put-account-activity-all-env-name-webhooks-webhook-id
Thank you in advance!

Ok, I see that you've that feature in webhook branch. Maybe you can merge it with main branch?
Thanks.

Closed in #19


Custom Scripts functionality

According to the documentation if you create web/js/breeze/extend.js you can place some random js code there and it will be available.

From what i've tested so far, that code is not doing anything. Checking exactly the example provided js file is not loaded at all.

Just fixed the docs. The () were missing:
(function () {
    'use strict';

    $(document).on('breeze:load', function () {
        console.log('Hello');
    });
})();


RenderTexture snapshotFramebuffer cannot exceed the size of the drawingBuffer

Version

Phaser Version: 3.23.0

Operating system: macOS

Browser: Google Chrome

Description

I have a renderTexture whose size exceeds Canvas. The width and height of the snapshot cannot exceed the drawingBuffer.
I tried to remove Math.min from snapshotArea. Get the effect I want, is there any hidden danger?
Is there a better solution?
Example Test Code

Additional Information

Agreed, this is fine to do here - I've moved the check to the snapshot function if the source is a frame buffer.