[Bug] network not supported by registrar: no network near-testnet found on chain near

Bug report
Failed to deploy local subgraph, Can you support near local mode?
I'm try to deploy to local subgraph instance use https://github.com/ringecosystem/xapi-offchain/blob/88a75de6c0f1332fa88a762cf0f3907f9b8be931/packages/near-indexer/docker-compose.yml
related:

#3838
https://thegraph.com/docs/en/cookbook/near/#indexing-near-with-a-local-graph-node

code: https://github.com/ringecosystem/xapi-offchain/tree/88a75de6c0f1332fa88a762cf0f3907f9b8be931/packages/near-indexer
Relevant log output
# npm run deploy:darwinia -- xapi-near-testnet subgraph.yaml

><EMAIL_ADDRESS>deploy:darwinia
> graph deploy --node https://example.com/training/deploy/ --ipfs https://ipfs.network.thegraph.com xapi-near-testnet subgraph.yaml

 ›   Warning: In next version, we are removing this flag in favor of '--deploy-key'
Which version label to use? (e.g. "v0.0.1"): v0.0.1
  Skip migration: Bump mapping apiVersion from 0.0.1 to 0.0.2
  Skip migration: Bump mapping apiVersion from 0.0.2 to 0.0.3
  Skip migration: Bump mapping apiVersion from 0.0.3 to 0.0.4
  Skip migration: Bump mapping apiVersion from 0.0.4 to 0.0.5
  Skip migration: Bump mapping apiVersion from 0.0.5 to 0.0.6
  Skip migration: Bump manifest specVersion from 0.0.1 to 0.0.2
  Skip migration: Bump manifest specVersion from 0.0.2 to 0.0.4
✔ Apply migrations
✔ Load subgraph from subgraph.yaml
  Compile data source: receipts => build/receipts/receipts.wasm
✔ Compile subgraph
  Copy schema file build/schema.graphql
  Write subgraph manifest build/subgraph.yaml
✔ Write compiled subgraph to build/
  Add file to IPFS build/schema.graphql
                .. QmR95rdKW6dJ31jtWFFQR98zW3wWzzKxnM7evaHFCriK1v
  Add file to IPFS build/receipts/receipts.wasm
                .. QmYxmWjqpRTnDVRhoXSnQu9nyeT5qWZCtUSAS29Mr4DTet
✔ Upload subgraph to IPFS

Build completed: QmWWcnUXaZMmW4WPvbYL6m6PGuZx9HgFVrDDYySxf3Ht2E

✖ Failed to deploy to Graph node https://example.com/training/deploy/: network not supported by registrar: no network near-testnet found on chain near
UNCAUGHT EXCEPTION: Error: EEXIT: 1

IPFS hash
No response
Subgraph name or link to explorer
No response
Some information to help us out

[ ] Tick this box if this bug is caused by a regression found in the latest release.
[x] Tick this box if this bug is specific to the hosted service.
[X] I have searched the issue tracker to make sure this issue is not a duplicate.

OS information
None

Hi, I'm facing the same issue, is this solved?

https://ethereum.stackexchange.com/questions/99409/failed-to-deploy-to-graph-node-ethereum-network-not-supported-by-registrar-mai
"That error message “Ethereum network not supported by registrar: mainnet” can be misleading, at least it was in my case. I was getting this error because I had run hardhat node on the host, but not with --hostname <IP_ADDRESS>, and I presume that the same would apply for ganache-cli.
Since the graph-node Docker container is configured to look for an Ethereum network named mainnet at the host’s IP address on the Docker internal network, it couldn’t see the hardhat node that was listening on <IP_ADDRESS>. So really the error wasn’t that “mainnet” wasn’t supported, but that the IP address configured for “mainnet” could not be reached. Running hardhat node --hostname <IP_ADDRESS> did the trick."
Does this help you?

Same here, my docker compose contains multiple networks for "ethereum", separated with commas. Only the first network can be access for deployment.


[extension_discovery] add an optional parameter includeTransitive to findExtensions method

package:extension_discovery should be able to determine which extension entries are transitive or direct based on which entries are in the root directory's pubspec.yaml file.
It would be ideal to add a field transitive to the Extension class and also a param includeTransitive that defaults to false for the findExtensions method. When includeTransitive is false, the findExtensions method will only return extensions found in direct dependencies (e.g. all Extension objects where transitive is false).
@jonasfj

Minor notes:
Adding includeTransitive is breaking API change.
I'd suggest we just leave it to the consumer to do a .where((e) => e.isDirectDependency).
No need to complicate the API with things that are trivial to do.
If we want to highlight this, we can document it on an example on the documentation.

Importantly this might be hard because we don't have a mechanism for knowing what the current root package is.
We can guess, which would probably work, until we implement workspaces.
@sigurdm, this might be a very good reason to add meta-data to package_config.json.

For now, we can probably just make a guess, and accept that this will possibly break (or behave weird) when/if workspaces are introduced.

Do we have a good answer to what

root package and
direct dependency
means in a workspace? Are these to be considered in the context of a single root pubspec, or from all?

From IDEs and Dart Analyzer even without workspaces we track the root directories of all folders open in the IDE (sent via DevTools when launching from an IDE via setPubRootDirectories). As a user I would expect extension_discovery used to suggest IDE plugins, analyzer plugins, or devtools plugins to suggest plugins that are for packages that are direct dependencies in any of the packages under this set of pub root directories.
If some of those packages were part of a workspace then I would be fine with direct dependencies of any packages within the workspace(s) I have open.

What about adding a field 'direct' to packages in the package_config.json that are direct dependencies of the package? A direct dependency would be any package dep that is listed in the pubspec.yaml file corresponding to the package_config.json file.

Adding includeTransitive is breaking API change.

This wouldn't be a breaking change if it was an optional parameter defaulting to true. It is true that it is trivial to do .where((e) => e.isDirectDependency) as you said, but it would be nice syntactic sugar to have a parameter as well.

@jonasfj and @lrhn discussed this a bit, and we decided that we should not really stuff a lot of information into the package_config.json file as it is designed for quick consumption by the vm (and other compilers), and information the vm  doesn't need should probably not go in there. In the dart language definition there is no real concept of root packages or dependencies, there is just a mapping of package:-urls.
What we could do instead is to have pub output yet another file with the dependency graph (perhaps something like .dart_tool/pub/dependency_graph.json) that tells which packages depend on which and in what way (dev or non-dev etc).

We've discussed this a few times and with workspaces happening, maybe we need to consider something like:
{
  "configVersion": 2,
  "packages": [
    {
      "name": "yaml",
      "rootUri": "file:///jonasfj/.pub-cache/hosted/pub.dev/yaml-3.1.2",
      "packageUri": "lib/",
      "languageVersion": "2.19"
      "dependencies": [
        // list of dependencies, so that the dependency-graph is given
        "source_span",
        "collection",
        ...
      ]
    },
  ...

I'm not worried that this would make package_config.json slow to load.


feat: customization for daemon deployment. Closes #223

Signed-off-by: David Seapy<EMAIL_ADDRESS>Closes #223.
Adds customization for daemon deployment.

I think we should document this, perhaps create Lifecycle in https://numaflow.numaproj.io/pipeline/ and nest Daemon details under it?

are you saying have a lifecycle.md alongside the watermarks.md and have a section in that markdown for Daemon configuration?
if using Templates in the Pipeline Spec and DaemonTemplate (option c), then does that change where the documentation should go, or does it still belong in lifecycle docs

I think we should document this, perhaps create Lifecycle in https://numaflow.numaproj.io/pipeline/ and nest Daemon details under it?

are you saying have a lifecycle.md alongside the watermarks.md and have a section in that markdown for Daemon configuration?
if using Templates in the Pipeline Spec and DaemonTemplate (option c), then does that change where the documentation should go, or does it still belong in lifecycle docs

Adding a page next to Init Containers named something like Pipeline Customization (find a better name?) to describe the pod customization for daemon and jobs? And add links in Container Resources and Environment Variables to this page?

Adding a page next to Init Containers named something like Pipeline Customization (find a better name?) to describe the pod customization for daemon and jobs?

I can't think of a better name, so went with that for now.  can change if ya'll think of something.

i've got a branch based on this one that does the JobTemplate stuff, was going to put that up for PR after this merges, but i'm seeing https://github.com/numaproj/numaflow/pull/296, so maybe best i hold off on that one until the refactor goes through?


Development environment improvements

I would think that for the docker setup we should be modifying docker/coverart_redirect.conf instead, if that's even used. The .dist version is referenced in the README.md for non-docker setups, and the current defaults look sane for that.

Hmm, it looks like docker/coverart_redirect.conf is unused. I'll remove it.

README.md should probably be updated as well. Would be easier to have one regularly maintained and supported way of running it in development.

Well, I think having manual setup information is still useful. The docker setup is nice for people who want to get up & running quickly and submit a small PR, but not useful for more involved development in my experience. You have to jump through all the docker hoops to do really simple things, so it's a pain to use for more than one-off PRs. Especially if you already have postgres running on your laptop, and just want to connect to that.

OK, sounds like a good use case. I'll refresh the old instructions then and add notes for Docker setup.


Not working for hoi4

Continuing this issue here since the old repo got archived.
@JustCauseWhyNot @Gren-95 are you absolutely sure that your DLC files are up to date? We had an issue with DLCs in Stellaris and it turned out to be because even old DLCs were changed in an unrelated update and the files no longer worked. I don't have the hoi4 files myself to test right now, but I'll try in the coming days.
The log provided in the old issue is completely normal (those errors always pop up), so I suspect DLC files are the ultimate culprit here as well.

I'm using Hearts of Iron IV_DLC_Pack_Build_10515977. I believe that's the most up to date one. I also found it funny that I indirectly ended that repo.

Hi, thanks for the quick response. Please don't post links to downloads here though, I have no idea what GitHub's policy is on these (better safe than sorry). The link also doesn't work at the moment so I can't tell for sure, but since there was a patch a couple of weeks ago and @Gren-95 reported that most of the DLCs work for him, I hope the files are just slightly outdated. Will update you once I can test myself.

Link gone :) . Not sure why it didn't work for you? was it that you couldn't download them? I'll see if I can get more updated files. Those were from feb 16.

Google said the download quota was exceeded, but no matter. There were two patches since then (one on 01.03 and one on 09.03), so the files are probably indeed outdated.

Google said the download quota was exceeded

You gotta circumvent them. But it's ok.
I'll try with more updated files.

It still doesn't work after making sure I've got the most updated dlc.

Got it. I'll test myself when I can get around to downloading the latest files sometime this week, no other ideas for now.
Those errors should be harmless since they pop up in Stellaris where the DLCs work, and even when you disable creamlinux (do just konsole --hold -e %command% launch option on any game and you'll usually see similar errors still show up).

In order too bypass the google drive limit you'll need create a folder in  drive with

I managed to get the exact same files as you and all the DLCs seem to work for me, including By Blood Alone. I could start a campaign and all the DLCs were on.
Just to make sure: you have tried to start a campaign and see if DLC features are enabled, correct? The paradox launcher might display red triangles next to the DLCs, but they still work in-game. Can you try to remove your existing creamlinux files and try again with a clean download?
Failing that, try to set Launch Options to skip the launcher, then post logs again. For some reason when using the paradox launcher a lot of information gets omitted from the console.

after redownloading and replacing the creamapi files it worked.
i should have done that first.
Glad to see this project is quite active :)

Good to hear :) I'll try to keep it active as much as I can

Isn't Switzerland supposed too have a focus tree? The dlc for some reason seems to be working now when it wasn't earlier. I've not done anything but between the last message I sent and now. But other than switzerland not having a focus tree the dlc seems to be working.

what about ethiopia and the plain focuses?
are they still there?

No ethiopian focuses either.

Sounds like By Blood Alone isn't working for you. Check if you have the new aircraft designer (most likely not). If the other DLCs work and you haven't updated your creamlinux version in a while, have a look at your cream_api.ini and see if By Blood Alone is in there. It does work properly for me as well so I suppose it is something on your end.

You're right it wasn't in the cream_api.ini.

So all the DLCs appear to be working properly now?

Everything seems to be working for now so closing the issue.

All good!


set values to 0. or 1.

hi,
in line 84 you wrote as comment:

set the pixels to all be 0. or 1.

but with the following code

cv2.threshold(screen_resized_grayscaled, 1, 255, cv2.THRESH_BINARY)

you set them to 0 or 255. So the input data is not normalized, or? So , if you mostly pipe in zeros, wouldnt then the neurons not all get also zero ? x*W+b  ?
https://github.com/DanielSlater/PyGamePlayer/blob/master/examples/deep_q_pong_player.py#L84

Hi Flo, sorry yes the comment is wrong the values will be all 0. or 255. If fact I should probably change the threshold be 0. to 1. I think that may work better... I will need to investigate a little.
Sending most of the neurons input values of 0 is in itself not a problem. If that is what the input it is, that is what it is.


Updated karma-jspm dependencies

It also updates the config.js. I'm not sure if you like using defaultJSExtensions: true. This is how jspm-cli generated the config.js after updating the karma-jspm. Also I have jspm@beta installed.
With this I have my test running just fine

@bryanrsmith Can you review this? CLA is good to go if needed.

@bryanrsmith Actually, I will take care of this.

Closing as there has been a newer version released and we'll fix this up as part of a set of repo maintenance including this, new linting and docs generation.


Prepend a row to top spreadsheet

First off thank you so much for making this wonderful module!
Currently .addRow() appends the row to the first empty space in the sheet.  I was wondering if there is a way to have it prepend the first empty row? So if I have a blank space at the top of my sheet it would fill data there and then the next row it adds would be above that.  I've played with inserting empty rows but the API doesn't seem to recognize rows inserted by itself as empty.  Now if I go to my sheet and manually hit delete on a row then the API will insert it above that cleared out row.
Any ideas?
I looked into issue #49 but that seemed quite a bit more complicated than this.

AFAIK, the api for adding rows only lets you append to the bottom. And I don't think there are any other API methods for inserting empty rows. So you would have to actually use the bulk cell update methods to move all the content down a row, and then fill in the first row.
Not really worth it IMO.
However, it could be that there are new methods in the v4 of the API! I haven't looked yet.

FYI - I've just a published a new version of this module which is a complete rewrite using Google's V4 Sheets API (v3 is being deprecated on March 3, 2020).
Docs available here - https://theoephraim.github.io/node-google-spreadsheet
There may be a way to do this using the new v4 api calls?
Let me know if it's still an issue.
Thanks! 😄


More word renamings for Doug

all words is all-words, but all vocabs is vocabs and all classes is classes.
We could rename those to all-vocabs and all-classes, or rename words to vocab-words and rename all-words to words.
Also, we have lookup-c-type and lookup-vocab, but lookup word is just lookup. Rename that maybe.

words -- ( vocab -- seq-of-words )
vocab-words -- ( vocab-spec -- string-word-alist )
all-words -- ( -- seq-of-word-objects )
all-vocabs -- ( -- roots-assoc )
all-vocab-names -- ( -- seq ) -- vocabs on disk
all-vocabs-recursive -- ( -- roots-assoc )
vocabs:child-vocabs -- "math.integers" child-vocabs .
{ "math.integers" "math.integers.private" }
vocabs.hierarchy:child-vocabs -- ( prefix -- roots-assoc )
child-vocabs-recursive -- ( prefix -- roots-assoc )

words -> vocab-words
vocab-words -> vocab-word-alist
all-words
all-vocabs -> child-roots-assoc
all-vocab-names
all-vocabs-recursive -- descendent-roots-assoc
vocals:child-vocabs -- vocabs-prefixed-by
vocabs.hierarchy:child-vocabs -- child-roots-assoc-prefixed-by
child-vocabs-recursive -- descendent-roots-assoc-prefixed-by
hmm

This one is done.


Incorrect command string passed to process manager

When spawning the child process, the cmd that's reported to the system (accessible via ps and top etc.) truncates the process name.
For example:
A child process that's command --flag verb is reported as --flag verb
ps -p <pid>
  PID TTY           TIME CMD
 6483 ??         0:01.78 --flag verb

I suspect this is related to #33 and #34

Go env:
go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/timfall/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/timfall/Code/go"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/rs/97ytdh4946n_7g59d2x8jh2h0000gn/T/go-build122390918=/tmp/go-build -gno-record-gcc-switches -fno-common"

Darwin 17.5.0 Darwin Kernel Version 17.5.0: Sun Feb 11 23:54:24 PST 2018; root:xnu-4570.50.279~25/RELEASE_X86_64 x86_64

If the expected behavior is as you outlined, then this is a bug.

I checked it on examples/gd-simple and i can't reproduce the bug.
➜  examples git:(master) ✗ gd-simple
➜  examples git:(master) ✗ ps -eafwA | grep sample
  501 38137     1   0 11:24   ??         0:00.01 [go-daemon sample]

When i comment line no 23 of the code:
➜  examples git:(master) ✗ gd-simple
➜  examples git:(master) ✗ ps -eafwA | grep gd-simple
  501 37910     1   0 11:22   ??         0:00.01 gd-simple
➜  examples git:(master) ✗ kill `cat pid`
➜  examples git:(master) ✗ gd-simple -a -b
➜  examples git:(master) ✗ ps -eafwA | grep gd-simple
  501 37999     1   0 11:23   ??         0:00.01 gd-simple -a -b

Could you provide a reduced example of code and steps to reproduce the bug. Thank you.


maxWidths dont work

It seem there is a problem in the definition of protected static array $maxWidths in LivewireUI\Modal\ModalComponent (vendor/wire-elements/modal/src/ModalComponent.php)
I don't use TailwindCSS but I redefine all .sm:max-w-xxx class in my own CSS
In v 1.0.3 it work perfectly
in v1.0.4 the width of modals is not good.
I correct $maxWidths with:
protected static array $maxWidths = [
        'sm'  => 'sm:max-w-sm',
        'md'  => 'sm:max-w-md',
        'lg'  => 'sm:max-w-lg md:max-w-lg',
        'xl'  => 'sm:max-w-xl md:max-w-xl',
        '2xl' => 'sm:max-w-2xl md:max-w-2xl lg:max-w-2xl',
        '3xl' => 'sm:max-w-3xl md:max-w-3xl lg:max-w-3xl',
        '4xl' => 'sm:max-w-4xl md:max-w-4xl lg:max-w-4xl xl:max-w-4xl',
        '5xl' => 'sm:max-w-5xl md:max-w-5xl lg:max-w-5xl xl:max-w-5xl',
        '6xl' => 'sm:max-w-6xl md:max-w-6xl lg:max-w-6xl xl:max-w-6xl 2xl:max-w-6xl',
        '7xl' => 'sm:max-w-7xl md:max-w-7xl lg:max-w-7xl xl:max-w-7xl 2xl:max-w-7xl',
    ];

The dialogs are the rigth size with this value

If you use Tailwind, you could add the following to your safelist array in tailwind.config.js
safelist: [
   {
      pattern: /max-w-(sm|md|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl)/,
      variants: ['sm', 'md', 'lg', 'xl', '2xl'],
   },
],

maybe but I don't use TailwindCSS ... as I said

You're right, i had a brainfart here, sorry...

Oh thanks, I thought I was crazy.


[WIP] Improve unit cases

[x] Modify test contract to pass code patch
[ ] Resolve skipped test cases
[ ] Improve case coverage

:white_check_mark: Build AElf <IP_ADDRESS>22 completed (commit https://github.com/AElfProject/AElf/commit/33536e376e by @EricBlack)

:x: Build AElf <IP_ADDRESS>51 failed (commit https://github.com/AElfProject/AElf/commit/33e72583e8 by @EricBlack)

:x: Build AElf <IP_ADDRESS>57 failed (commit https://github.com/AElfProject/AElf/commit/07378e5ec4 by @EricBlack)

:x: Build AElf <IP_ADDRESS>60 failed (commit https://github.com/AElfProject/AElf/commit/d28309b9d6 by @EricBlack)

:x: Build AElf <IP_ADDRESS>64 failed (commit https://github.com/AElfProject/AElf/commit/9f127d0930 by @EricBlack)

:white_check_mark: Build AElf <IP_ADDRESS>66 completed (commit https://github.com/AElfProject/AElf/commit/c5551860de by @EricBlack)

:x: Build AElf <IP_ADDRESS>81 failed (commit https://github.com/AElfProject/AElf/commit/b4870b3bae by @EricBlack)


There was an error sending this message to your bot. SKype bot & C#

My microsoft bot works absolutely fine with emulator. It has one reference to Weather api and couple of our API. Bot has Skype channel. When on skype, If I ask him weather thing, natural language processing works fine and I get reply.
But when I ask bot something related to our api, it appears that luis doesnt return any entity. Because I have a condition which checks if rootObj.entities.count() == 0,then error message. I am getting this condition message. However, I have trained luis, updated that application and working find on emulator.
On checking dev.botframework.com, I saw issues number, all had same description "There was an error sending this message to your bot." Anyway to debug?
Please help...

Are you pointing to the same LUIS model on the emulator and when deployed in the cloud?

Hi Will,
Thanks for the reply.Definitely yes, I am pointing to same LUIS model.
It works perfectly in Emulator. I get proper Intent and entities back from LUIS. But no luck when I work on Skype. On dev.botframework.com "my bots" section, I see issue , and the message again says "There was an error sending this message to your bot. "
Please help.
Kind Regards,
Ashay

You can remote debug your service in azure to see what causes the exception. Also you can run your bot locally and register an ngrok endpoint pointing to the local instance of your bot with the developer portal and debug your bot locally using the live traffic from Skype.

Hi,
I connected my emulator to deployed bot. yesterday issues were not shown on dev.botframework.com but the issue counter shows issues logged in midnight with same description..
On my emulator I am getting following exception which is getting fired while calling my APIs..
exception System.Net.WebException: The operation has timed out at System.Net.HttpWebRequest.GetResponse() at Bot_Application1.yahoo.d__4.MoveNext()
When I modified the way of calling "get" response from
var jsonResponse = (HttpWebResponse)request.GetResponse();
to
client.BaseAddress = new Uri(strApi);  // strApi has my api in string. client is HttpClient.
client.DefaultRequestHeaders.Accept.Clear();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
HttpResponseMessage response = await client.GetAsync($"myapi/{from}/{to}");
I got following exception
System.Threading.Tasks.TaskCanceledException: A task was canceled. at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Bot_Application1.yahoo.d__4.MoveNext()
Its not hitting api, where as api works in browser from any outside network.
i tried to check if(successCode) {}else { some string return} it doesnt even go here.
I tried to increase timeout property of request, still no luck..
Thanks,
Ashay

So your API's http request is timing out?

Yes, my APIs are getting timed out when they are called from BOT. but when I call them via browser , they work fine.

Sorry, I don't have any insight why your API is timing out when called from code rather than a browser.  Sometimes the proxy configuration is different between the two.  I don't think this is an issue with the bot framework, so i'm going to close this issue, but feel free to open a new issue for bot framework related questions.


Python/Issue with Calculating Total USDT Transactions on Tron Blockchain via API

I am developing a Python script intended to calculate the total amount of incoming USDT (TRC20) transactions to a specific address on the Tron blockchain. The script is supposed to utilize either the TronGrid or TronScan API to fetch transaction data. However, upon executing the script, it returns the total sum as 0, which contradicts the expected results, as there are incoming USDT transactions on the address.
I have already tried various approaches and APIs, but none have yielded the correct outcome. Here's the script I'm using
import requests

def fetch_transactions(address, start=0, limit=50):
    url = f"https://api.trongrid.io/v1/accounts/{address}/transactions/trc20?limit={limit}&only_to=true&min_block_timestamp=0&only_confirmed=true"
    response = requests.get(url)
    if response.status_code == 200:
        return response.json().get("data", [])
    else:
        print(f"Failed to fetch transactions for address: {address}")
        return []

def get_total_usdt(address):
    transactions = fetch_transactions(address)
    total_usdt = 0

    for tx in transactions:
        if tx.get('token_info', {}).get('symbol') == 'USDT':
            total_usdt += int(tx.get('value', 0)) / 10**6  # Adjusting for token's decimal

    return total_usdt

# Example usage (replace 'your_address' with the actual address)
address = "your_address"
total_usdt = get_total_usdt(address)
print(f"Total incoming USDT transactions for address {address}: {total_usdt}")

I have encountered the following issues:
The script always returns a total of 0 USDT, despite there being incoming transactions.
I'm unsure if the problem lies with the way I'm using the API, the API itself, or the script.
Any advice or suggestions on how to resolve this issue would be greatly appreciated. Thank you!

import requests
def fetch_transactions(address, start=0, limit=50):
url = f"https://api.trongrid.io/v1/accounts/{address}/transactions/trc20?limit={limit}&only_to=true&min_block_timestamp=0&only_confirmed=true"
response = requests.get(url)
if response.status_code == 200:
return response.json().get("data", [])
else:
print(f"Failed to fetch transactions for address: {address}")
return []
def get_total_usdt(address):
transactions = fetch_transactions(address)
total_usdt = 0
for tx in transactions:
    if tx.get('token_info', {}).get('symbol') == 'USDT':
        total_usdt += int(tx.get('value', 0)) / 10**6  # Adjusting for token's decimal

return total_usdt

Example usage (replace 'your_address' with the actual address)
address = "your_address"
total_usdt = get_total_usdt(address)
print(f"Total incoming USDT transactions for address {address}: {total_usdt}")

import requests
def fetch_transactions(address, start=0, limit=50):
url = f"https://api.trongrid.io/v1/accounts/{address}/transactions/trc20?limit={limit}&only_to=true&min_block_timestamp=0&only_confirmed=true"
response = requests.get(url)
if response.status_code == 200:
return response.json().get("data", [])
else:
print(f"Failed to fetch transactions for address: {address}")
return []
def get_total_usdt(address):
transactions = fetch_transactions(address)
total_usdt = 0
for tx in transactions:
    if tx.get('token_info', {}).get('symbol') == 'USDT':
        total_usdt += int(tx.get('value', 0)) / 10**6  # Adjusting for token's decimal

return total_usdt

Example usage (replace 'your_address' with the actual address)
address = "your_address"
total_usdt = get_total_usdt(address)
print(f"Total incoming USDT transactions for address {address}: {total_usdt}")

import requests

def fetch_transactions(address, start=0, limit=50):
    url = f"https://api.trongrid.io/v1/accounts/{address}/transactions/trc20?limit={limit}&only_to=true&min_block_timestamp=0&only_confirmed=true"
    response = requests.get(url)
    if response.status_code == 200:
        return response.json().get("data", [])
    else:
        print(f"Failed to fetch transactions for address: {address}")
        return []

def get_total_usdt(address):
    transactions = fetch_transactions(address)
    total_usdt = 0

    for tx in transactions:
        if tx.get('token_info', {}).get('symbol') == 'USDT':
            total_usdt += int(tx.get('value', 0)) / 10**6  # Adjusting for token's decimal

    return total_usdt

# Example usage (replace 'your_address' with the actual address)
address = "your_address"
total_usdt = get_total_usdt(address)
print(f"Total incoming USDT transactions for address {address}: {total_usdt}")

I used your script locally to test that everything is normal. You can directly request the Trongrid interface in the browser to see if there is data returned.

The only thing to note is that some address records may be larger than 50. You need to get all the other records.


Bridge request for QNAP Security

Bridge request
Be able to be quickly notified of security alerts, QNAP does not provide RSS feeds from this page, but only software or product news
General information

Host URI for the bridge (i.e. https://github.com): https://www.qnap.com/fr-fr/security-news/

Which information would you like to see?
Title and beginning of the article

How should the information be displayed/formatted?
simple text would suffice

Which of the following parameters do you expect?

[X] Title
[X] URI (link to the original article)
[ ] Author
[X] Timestamp
[X] Content (the content of the article)
[ ] Enclosures (pictures, videos, etc...)
[ ] Categories (categories, tags, etc...)

Options

[ ] Limit number of returned items

Default limit: 5

[ ] Load full articles

Cache articles (articles are stored in a local cache on first request): yes
Cache timeout (max = 24 hours): 24 hours

[X] Balance requests (RSS-Bridge uses cached versions to reduce bandwith usage)

Timeout (default = 5 minutes, max = 24 hours): 5 minutes

https://www.qnap.com/fr-fr/news/feed

Wahou !

Big Thx !

Hello @dvikan
sorry to bother you, but would you why the url of the article is not up in the application?

If I press 1 or 2 (see image), the url is about:blank

Hello @dvikan sorry to bother you, but would you why the url of the article is not up in the application?

The url validation was too strict. Fixed.

Hello @dvikan sorry to bother you, but would you why the url of the article is not up in the application?

The url validation was too strict. Fixed.

Thanks a lot !

https://www.qnap.com/fr-fr/news/feed

FYI:
https://www.qnap.com/fr-fr/security-news/feed
produces an RSS 2 feed with the articles of https://www.qnap.com/fr-fr/security-news.


Ionis kutrolli development Front End testing project 3

I'm sorry about many changes from deleting node_modules. I thought it was pushed with the last pull request

I was going to try to rewrite the git commit history, but I forgot how to rewrite the history once I pushed to github.


Add Design Changelog process

Adding information about the Design Changelog to our processes in handbook (more context in this slack thread).

I've explained what the Desing Changelog
When it will be created
How to use it during and after the project (when revisiting the design decisions)

@AlicjaSuska could you push this across the finish line? 🏁


Deprecated dependency

NPM fires a deprecation warning upon installing,
  npm WARN deprecated<EMAIL_ADDRESS>Use uuid module instead

I guess replacing node-uuid with uuid should seamlessly solve the issue.

@cassiopagnoncelli Are you on v2.83.0 ?

I was using @latest by 10 days ago


Added more API support for xk6-playwright script.

Minor comments that we can clean in a follow up


Generate DOS2 briefs and responses schemas

We want the script to generate schemas for briefs as well as services.

👍


Switch operators to a push-style API

Change the Operator interface introduced for Window functions to be more of a push-model. The impetus for this is to generate better stack traces. With the pull-based model, the stack trace of an exception shows the operator chain that still has work to do without any indication of which operators have done work so far.
With the change in the API introduced here, we will produce stack traces that start with the full operator chain running down the .go() method. Then the stack will walk back up towards the Receiver that was passed into the .go() method. This should produce a stack trace that tells us both the full operator chain that is being executed as well as give an indication of what actions have happened so far as the data has been processed.
It remains important that Operators are implemented directly without any usage of fluent-style programming. This is something that we will likely have to enforce through review.
This PR is a refactoring with no additional functionality.
This PR has:

[ ] been self-reviewed.

[ ] using the concurrency checklist (Remove this item if the PR doesn't have any relation to concurrency.)

[ ] added documentation for new or modified features or behaviors.
[ ] a release note entry in the PR description.
[ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[ ] added integration tests.
[ ] been tested in a test Druid cluster.

Most of the commentary focuses on javadoc and I don't want to wait for another round of CI on this PR just to update javadoc, so I'm going to merge and update the javadoc in a subsequent PR.


fix: handle missing bios in leadership page

Description

Allow nullish values for the leadership page bios to handle some data problems coming from the CMS
Wrap the rendering of them in a conditional

Issue(s)
Fixes #
How to test

The deploy should work
https://deploy-preview-1831--oak-web-application.netlify.thenational.academy/about-us/leadership should only show bios that exist in the CMS

Checklist

[ ] Added or updated tests where appropriate
[ ] Manually tested across browsers / devices
[ ] ~Considered impact on accessibility~
[ ] ~Design sign-off~
[ ] ~Approved by product owner~

:tada: This PR is included in version 1.229.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Class Utils Extended (concept)

Concept review PR
Waits documentation update in case it will be approved during the discussion

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Support for different types of feedback

Right now, the feedback of a submission is assumed to be an html div with inline styles because the Gobstones runner is the only one that uses it.
Each runner should be able to specify the type of its feedback, choosing between plain (default) / markdown / html, and the platform should render it accordingly. To accomplish this, the feedback should be turned into a structure that contains a type and a content (now it's just an string).

This was resolved with PR #169

Now it supports plain, html and markdown


Proposal: truncate logs

On long-running projects, it's not uncommon to see log files grow to several hundred megabytes.
Adding the following for the dev and test environments would help:
NUMBER_OF_OLD_LOGFILES_TO_KEEP = 1
MAXIMUM_LOGFILE_SIZE = 5.megabytes
config.logger = Logger.new(config.paths.log.first, NUMBER_OF_OLD_LOGFILES_TO_KEEP, MAXIMUM_LOGFILE_SIZE)

Seems there was a PR to Rails for this, but it was rejected: https://github.com/rails/rails/pull/17332

This seems reasonable to me... maybe this should be a development/test only setting?

My concern would be what would happen if this rotation happens in the middle of a request you are debugging by tailing a log?

I'm in favor of this for development.

And test.

@derekprior that should be pretty rare occurrence. Assuming a typical request is 1k of log data, it would happen once for every 5000 requests. The log data wouldn't be lost – you would just need to check the rotated log file.

@andyw8 want to send a PR for this?

Yes, will do.

I haven't got around to this yet but I'll close this in the meantime.

We can also add something like in https://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/app/templates/bin/setup#L24-L25 to our setup script to start more fresh:
ruby bin/rake log:clear tmp:clear


Update the idp intents request with x-zitadel-orgid optional header

Definition of Ready

[ ] I am happy with the code
[ ] Short description of the feature/issue is added in the pr description
[ ] PR is linked to the corresponding user story
[ ] Acceptance criteria are met
[ ] All open todos and follow ups are defined in a new ticket and justified
[ ] Deviations from the acceptance criteria and design are agreed with the PO and documented.
[ ] No debug or dead code
[ ] My code has no repetitions
[ ] Critical parts are tested automatically
[ ] Where possible E2E tests are implemented
[ ] Documentation/examples are up-to-date
[ ] All non-functional requirements are met
[ ] Functionality of the acceptance criteria is checked manually on the dev system.

Hey @hreddy-klaviyo
We now have the proper solution ready (https://github.com/zitadel/zitadel/pull/7871), where the idp id is treated as expected and does not require any organization information.
I close this PR in favor of one mentioned above, but thank you for bringing it up and already preparing the fix. You can simply remove the x-zitadel-orgid header once the new fix is ready, resp. if you still send it it won't make any effect.


Expose optional image time-to-live

Not sure if this PR interests you, feel free to not merge if not.
This just exposes --img-ttl in the serverless.yml config, which is read as an environment variable to be passed to lambda-proxy.

This would need to be updated to use the new cache-control option in lambda-proxy

sorry I'm not sure why I didn't get the notification. I think as I mentioned in rio-tiler is that cogeo-layer aws lambda layer/docker images will need to be updated before we can deploy this safely.

thought about the pr, maybe it will make sense to create a configuration file a bit like in https://github.com/developmentseed/titiler/blob/master/titiler/core/config.py

sorry I'm not sure why I didn't get the notification

You might've turned off notifications for this repo? Check "Watch" at the top.

cogeo-layer aws lambda layer/docker images will need to be updated before we can deploy this safely

You have a dependency on lambda-proxy in both the local bundle and in the lambda layer. I'm not sure what happens if they're different versions.
https://github.com/developmentseed/cogeo-mosaic-tiler/blob/de15c97aa1f612a45c5200a0a13e8039d330a079/setup.py#L7
https://github.com/kylebarron/cogeo-layer/blob/079156ec9d1e8aaf07124622da4a99977234c0dc/requirements-gdal3.0.txt#L1

You have a dependency on lambda-proxy in both the local bundle and in the lambda layer. I'm not sure what happens if they're different versions.

Yes, just to make sure we can tests the repo localy and in CI. I'm just saying that it we makes change in this repo we better make change in the layer because if you try to pass a route with cache_control=... using https://github.com/developmentseed/cogeo-mosaic-tiler/blob/master/serverless.yml#L43 it won't work

Well when rio-tiler 2.0 comes out, that's probably a good time to make a new layer.

sure but this won't be soon 🤔, We can still publish a new layer with lambda-proxy 5.1 tho.
Using lambda layer makes things really easy to deploy but the versioning is a pain!

I'll make a new PR adding an optional cache-control arg.

maybe it will make sense to create a configuration file a bit like in

I think for now having a configuration file is overkill, especially since serverless.yml essentially already is a config file


Undo does not display

An undo following renaming an immediate or defining it as a function does not display the change until view is changed and changed back (such as to a different function and back to the original one), or undoing to a change which properly causes the undoes to display. Video example.
uhoh.zip

There are some generic bugs we have in the undo refresh not working that is fixed in dev.
The problem in this case though is actually that you're able to name the immediate constant value at all. Those aren't supposed to be namable so I'm going to rename this bug accordingly.

Fixed in dev


Vibration on touch

Hi,
with the current configuration, the vibration starts after releasing the finger. Is it possible to have it on touch, like the original firmware?
Thank you for your outstanding work!
Have a good one!

Of course it is possible. I thought it should be the signal when the real event is fire up. So I choose the release, because in the on_touch you did not know if it will be a touch, long or multitouch.
I never try the original FW ;) but should the vibration then only be at touch, until release or when touch and when release too?

I'am not 100% sure, how the original FW behaves, since I tried it only once ;)
But I remember the vibration on touch.
As you suggested on yt, I edited the YAML:
Added "switch.turn_on: vibra"  "on_press" and deleted it from all other functions. Works perfectly, thanks again :)


React svg icons are black instead of blue

Oh you're right. The fill attribute is missing in path. I'll add it as soon as possible.

@konpa Can this issue be closed? As of the latest commit against master the React svg icons are blue


--load-sa not working on yabai-v3.3.10 on M1

I have followed all the steps, but no matter what I do, the file won't load. I can manually input commands like "yabai -m config right_padding  5" which work, and yabai itself doesn't have any issues loading. I wish I could post an error log, but there is no feedback on what exactly is keeping the file from loading/changing the interface.

The scripting addition loader needs a full rewrite for the Apple Silicon architecture.
You can check the progress here: https://github.com/koekeishiya/yabai/issues/725
At the bottom of the thread you can also see xorpse has forked the repo and already done this rewrite so you can try using that until the author of yabai buys an M1 Mac.


Backups intermittently fail

Following is the lock when the backups fail:
I0221 15:29:33.089957   31505 mysqld.go:339] Mysqld.Shutdown
I0221 15:29:33.090018   31505 mysqld.go:377] No mysqld_shutdown hook, running mysqladmin directly
I0221 15:29:33.090093   31505 mysqld.go:440] execCmd: /usr/bin/mysqladmin /usr/bin/mysqladmin [--defaults-extra-file=/tmp/example331428697 shutdown]
I0221 15:29:37.096281   31505 mysqld.go:454] execCmd: /usr/bin/mysqladmin output:
I0221 15:29:37.096299   31505 mysqld.go:416] Mysqld.Shutdown: waiting for socket file (/opt/data/vitess-data/vt_1025632011/mysql.sock) and pid file (/opt/data/vitess-data/vt_1025632011/mysql.pid) to disappear
I0221 15:29:37.097312   31505 backup.go:356] found 149 files to backup
I0221 15:29:53.624134   31505 run.go:37] Entering lameduck mode for at least 50ms
I0221 15:29:53.624149   31505 run.go:38] Firing asynchronous OnTerm hooks
I0221 15:29:53.624154   31505 servenv.go:139] Firing synchronous OnTermSync hooks and waiting up to 10s for them
I0221 15:29:53.624173   31505 healthcheck.go:138] Stopping periodic health check timer
I0221 15:30:03.624326   31505 servenv.go:155] OnTermSync hooks timed out
I0221 15:30:03.624343   31505 run.go:47] Shutting down gracefully
I0221 15:30:03.624458   31505 tabletserver.go:231] TabletServer state: NOT_SERVING -> SHUTTING_DOWN
I0221 15:30:03.624479   31505 tabletserver.go:454] Executing graceful transition to NotServing
I0221 15:30:03.624486   31505 tabletserver.go:463] Shutting down query service

Following is the successful backup log:
I0221 15:22:41.563032   22790 mysqld.go:222] Mysqld.Start(1487690561): No mysqld_start hook, running mysqld_safe directly
I0221 15:22:41.563054   22790 mysqld.go:239] Mysqld.Start(1487690561) &exec.Cmd{Path:"/usr/bin/mysqld_safe", Args:[]string{"/usr/bin/mysqld_safe", "--defaults-file=/opt/data/vitess-data/vt_1025631981/my.cnf"}, Env:[]string{"LD_LIBRARY_PATH=/usr/lib/mysql"}, Dir:"/usr", Stdin:io.Reader(nil), Stdout:io.Writer(nil), Stderr:io.Writer(nil), ExtraFiles:[]*os.File(nil), SysProcAttr:(*syscall.SysProcAttr)(nil), Process:(*os.Process)(nil), ProcessState:(*os.ProcessState)(nil), ctx:context.Context(nil), lookPathErr:error(nil), finished:false, childFiles:[]*os.File(nil), closeAfterStart:[]io.Closer(nil), closeAfterWait:[]io.Closer(nil), goroutine:[]func() error(nil), errch:(chan error)(nil), waitDone:(chan struct {})(nil)}
I0221 15:22:41.567153   22790 mysqld.go:306] Waiting for mysqld socket file (/opt/data/vitess-data/vt_1025631981/mysql.sock) to be ready...
I0221 15:22:41.927235   22790 mysqld.go:257] Mysqld.Start(1487690561) stdout: 170221 15:22:41 mysqld_safe Logging to '/opt/data/vitess-data/vt_1025631981/error.log'.
I0221 15:22:41.943440   22790 mysqld.go:257] Mysqld.Start(1487690561) stdout: 170221 15:22:41 mysqld_safe Starting mysqld daemon with databases from /opt/data/vitess-data/vt_1025631981/data
I0221 15:22:43.083917   22790 backup.go:322] restoring semi-sync settings from before backup: master=false, slave=true
I0221 15:22:43.084007   22790 replication.go:351] Setting semi-sync mode: master=false, slave=true
I0221 15:22:43.084433   22790 query.go:53] exec SET GLOBAL rpl_semi_sync_master_enabled = 0, GLOBAL rpl_semi_sync_slave_enabled = 1
I0221 15:22:43.084556   22790 backup.go:329] restarting mysql replication
I0221 15:22:43.085110   22790 query.go:53] exec START SLAVE
I0221 15:22:43.087813   22790 hook.go:154] postflight_start_slave hook doesn't exist
I0221 15:22:43.088442   22790 backup.go:341] resetting mysqld read-only to true
I0221 15:22:43.088874   22790 query.go:53] exec SET GLOBAL read_only = ON
I0221 15:22:43.105865   22790 state_change.go:117] Executing post-action state refresh: after backup
I0221 15:22:43.121555   22790 state_change.go:149] Running tablet callback because: after backup
I0221 15:22:43.122793   22790 tabletserver.go:231] TabletServer state: NOT_SERVING -> NOT_SERVING
I0221 15:22:43.122804   22790 tabletserver.go:231] TabletServer state: NOT_SERVING -> SERVING
I0221 15:22:43.122812   22790 updatestreamctl.go:195] Enabling update stream, dbname: vt_assets
I0221 15:22:43.122849   22790 state_change.go:138] Done with post-action state refresh
I0221 15:22:43.123880   22790 rpc_server.go:71] TabletManager.Backup(concurrency:8 )(on production-1025631981 from ): <nil>

As a workaround, we have currently added retry for backups in case of failures, but the failures are extremely intermittent at this point.
It almost feels like there is a clean shutdown being triggered during backups.

Pavel, do you have time to look into this?

It would also be great if we can have some kind of alerting mechanism to or and API of some kind to show that backups have failed

I don't understand this issue. The first log excerpt shows how mysqld was shutdown and backup has started. I don't see any failure message. The second log excerpt doesn't show this part, but looks like it's showing how mysqld is started after the backup and how the RPC TabletManager.Backup is succeeded.
Did you skip some parts of the log? I don't see any problem yet.

This was a problem on our infrastructure end. Since, during backups, health checks show unhealthy, after certain time, tablets were getting restarted causing backups to fail. we have fixed this by changing our health checks to not use /health but use TabletState from /debug/vars as health check


Help Setting Up Production Server

Hey everyone, I am requesting some guidance in setting up a production server. I am still pretty new when it comes to messing around with docker and kubernetes. I currently have a digital ocean kubernetes cluster running with a nginx ingess controller installed. I have read the documentation and need a little help regarding using a helm chart to finish setting it up the right way. if anyone can help me, i would very much appreciate it!

Sorry, our helm chart doesn't support Digital Ocean at the moment.


CubeConnect can't be reconnected automatically when connection is lost

Hi! I used your chat_sample, login and created chat successfully. Then I tried to turn off Wifi and turn it on again, but it didn't reconnect automatically, it became a loop with the following states:
CubeChatConnection: Chat connection ForcefullyClosed
CubeChatConnection: Chat connection Reconnecting
CubeChatConnection: Chat connection SocketOpening
CubeChatConnection: Chat connection SocketOpened
CubeChatConnection: Chat connection Authenticated
CubeChatConnection: Chat connection ForcefullyClosed
CubeChatConnection: Chat connection Reconnecting
CubeChatConnection: Chat connection SocketOpening
CubeChatConnection: Chat connection SocketOpened
Logs:
[log] ---Xmpp Sending:---
[log] <r xmlns="urn:xmpp:sm:3"/>
[log] ---Xmpp Receiving:---
[log] <a xmlns='urn:xmpp:sm:3' h='6'/>
[log] D/[Connection]: Handle Secured Error  SocketException: OS Error: Software caused connection abort, errno = 103, address = chat.connectycube.com, port = 49388
[log] D/[Connection]: State: XmppConnectionState.ForcefullyClosed
[log] D/[Connection]: Handle secured connection done
[log] D/[Connection]: State: XmppConnectionState.ForcefullyClosed
[log] D/[ReconnectionManager]: Connection forcefully closed!
[log] D/[ReconnectionManager]: TimeOut is: 10000 reconnection counter 0
I/flutter (27784): CB-SDK: CubeChatConnection: Chat connection ForcefullyClosed
[log] D/[ReconnectionManager]: Connection forcefully closed!
I/flutter (27784): CB-SDK: CubeChatConnection: Chat connection ForcefullyClosed
[log] D/[ReconnectionManager]: TimeOut is: 20000 reconnection counter 1
E/flutter (27784): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: SocketException: OS Error: Software caused connection abort, errno = 103, address = chat.connectycube.com, port = 49388
E/flutter (27784):
[log] D/[Connection]: State: XmppConnectionState.Reconnecting
I/flutter (27784): CB-SDK: CubeChatConnection: Chat connection Reconnecting
[log] D/[Connection]: State: XmppConnectionState.SocketOpening
I/flutter (27784): CB-SDK: CubeChatConnection: Chat connection SocketOpening
[log] D/[Connection]: State: XmppConnectionState.SocketOpened
[log] ---Xmpp Sending:---
I/flutter (27784): CB-SDK: CubeChatConnection: Chat connection SocketOpened
[log] <?xml version='1.0'?>
<stream:stream xmlns='jabber:client' version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='chat.connectycube.com'
xml:lang='en'
>

[log] ---Xmpp Receiving:---
[log] <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' from='chat.connectycube.com' id='ee529c25-8474-4624-affc-e2016c214b01' version='1.0' xml:lang='en'>
[log] D/[Connection]: processInitialStream
[log] ---Xmpp Receiving:---
[log] <stream:features><sm xmlns="urn:xmpp:sm:3"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>PLAIN_FAST</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></stream:features>
[log] D/[ConnectionNegotiatorManager]: Negotiating features
[log] D/[ConnectionNegotiatorManager]: Found matching negotiator true
[log] D/[StartTlsNegotiator]: negotiating starttls
[log] ---Xmpp Sending:---
[log] <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
[log] D/[ConnectionNegotiatorManager]: ACTIVE FEATURE: {name: StartTlsNegotiator, name_space: urn:ietf:params:xml:ns:xmpp-tls, priority: 1, state: NegotiatorState.NEGOTIATING}, isReady: true
[log] ---Xmpp Receiving:---
[log] <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
[log] D/[Connection]: startSecureSocket
[log] ---Xmpp Sending:---
[log] <?xml version='1.0'?>
<stream:stream xmlns='jabber:client' version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='chat.connectycube.com'
xml:lang='en'
>

[log] ---Xmpp Receiving:---
[log] <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' from='chat.connectycube.com' id='ee529c25-8474-4624-affc-e2016c214b01' version='1.0' xml:lang='en'>
[log] D/[Connection]: processInitialStream
[log] ---Xmpp Receiving:---
[log] <stream:features><sm xmlns="urn:xmpp:sm:3"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>PLAIN_FAST</mechanism></mechanisms><ver xmlns="urn:xmpp:features:rosterver"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></stream:features>
[log] D/[ConnectionNegotiatorManager]: Negotiating features
[log] D/[ConnectionNegotiatorManager]: Found matching negotiator true
[log] ---Xmpp Sending:---
[log] <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN">ADI4OTk1MjctNDc2ADEyMzQ1Njc4OTA=</auth>
[log] D/[ConnectionNegotiatorManager]: ACTIVE FEATURE: {name: SaslAuthenticationFeature, name_space: null, priority: 1000, state: NegotiatorState.NEGOTIATING}, isReady: true
[log] ---Xmpp Receiving:---
[log] <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
I/flutter (27784): CB-SDK: CubeChatConnection: Chat connection Authenticated
[log] ---Xmpp Sending:---
[log] <?xml version='1.0'?>
<stream:stream xmlns='jabber:client' version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='chat.connectycube.com'
xml:lang='en'
>

[log] D/[Connection]: State: XmppConnectionState.Authenticated
[log] D/[ConnectionNegotiatorManager]: Found matching negotiator true
[log] ---Xmpp Sending:---
[log] <resume xmlns="urn:xmpp:sm:3" h="6" id="926f0b10-a20a-4127-8c5e-8ada4bd03720"/>
[log] D/[ConnectionNegotiatorManager]: ACTIVE FEATURE: {name: StreamManagementModule, name_space: null, priority: 1000, state: NegotiatorState.NEGOTIATING}, isReady: true
[log] D/[ConnectionNegotiatorManager]: Feature Started Parsing
[log] ---Xmpp Receiving:---
[log] <?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' from='chat.connectycube.com' id='ee529c25-8474-4624-affc-e2016c214b01' version='1.0' xml:lang='en'>
[log] D/[Connection]: processInitialStream
[log] D/[Connection]: Handle secured connection done
I/flutter (27784): CB-SDK: CubeChatConnection: Chat connection ForcefullyClosed
[log] D/[Connection]: State: XmppConnectionState.ForcefullyClosed
[log] D/[ReconnectionManager]: Connection forcefully closed!
[log] D/[ReconnectionManager]: TimeOut is: 10000 reconnection counter 0
[log] D/[Connection]: State: XmppConnectionState.Reconnecting
I/flutter (27784): CB-SDK: CubeChatConnection: Chat connection Reconnecting
[log] D/[Connection]: State: XmppConnectionState.SocketOpening
I/flutter (27784): CB-SDK: CubeChatConnection: Chat connection SocketOpening
[log] D/[Connection]: State: XmppConnectionState.SocketOpened
I/flutter (27784): CB-SDK: CubeChatConnection: Chat connection SocketOpened
[log] ---Xmpp Sending:---
[log] <?xml version='1.0'?>
<stream:stream xmlns='jabber:client' version='1.0' xmlns:stream='http://etherx.jabber.org/streams'
to='chat.connectycube.com'
xml:lang='en'
>

We didn't add reconnection manager to our chat sample yet. You can do it by yourself, just follow our documentation for it.

Before that I tried using manual Reconnect, but it never state == CubeChatConnectionState.Closed

Ok, I will check in our chat sample.

I think you should return the new status and value of the ChatMessage, they will be useful to see if the message has been sent.
Same at deliverMessage and readMessage.
Code:
  Future<CubeMessage> sendMessage(CubeMessage message) {
    Completer<CubeMessage> completer = Completer<CubeMessage>();

    checkInit().then((chat) async {
      message.dialogId = dialogId;
      chat.sendMessage(message).then((newMessage) {
        completer.complete(newMessage);
      }).catchError((onError) {
        completer.completeError(onError);
      });
    }).catchError((onError) {
      completer.completeError(onError);
    });

    return completer.future;
  }

Hi @TatankaConCube i getting same error on this. Same thing happens with me
CubeChatConnection: Chat connection ForcefullyClosed
CubeChatConnection: Chat connection Reconnecting
CubeChatConnection: Chat connection SocketOpening
CubeChatConnection: Chat connection SocketOpened
CubeChatConnection: Chat connection Authenticated
CubeChatConnection: Chat connection ForcefullyClosed
CubeChatConnection: Chat connection Reconnecting
CubeChatConnection: Chat connection SocketOpening
CubeChatConnection: Chat connection SocketOpened

Ok, I will check in our chat sample.

Thanks for the quick reply, have you found a solution?

We plan to publish the new version with fixes next week, I hope we will fix this issue there.

Thank you, I will wait, wish you success

We plan to publish the new version with fixes next week, I hope we will fix this issue there.

After 1 week, have you found a solution to this problem, we need it :(

yes, we have the solution for this issue, we plan to release the new version in a few days (today or tomorrow)

yes, we have the solution for this issue, we plan to release the new version in a few days (today or tomorrow)

You are so great

@thang510023 today we released the new version, which contains the fix for your issue, please try it.
If the issue was resolved, please close this ticket.

Thank you, I will try it now

@thang510023 today we released the new version, which contains the fix for your issue, please try it.
If the issue was resolved, please close this ticket.

It was working fine, once again thank you guys, I'll close my ticker now


Has no exported member "MARK_LINK"

Hi 👋 I'm trying to map link element like this: https://github.com/dohomi/storyblok-rich-text-react-renderer-ts#example-map-link-elements-to-nextjs-link-component
But got error "Module '"storyblok-rich-text-react-renderer-ts"' has no exported member 'MARK_LINK'.ts"

@Robin-Gustafsson thanks for pointing this out. The README was outdated. You have automatically typed sections of the render options without the need to import any else than the render function. I updated the README accordingly.


More social icons

Would be awesome to have more social icons in the site-nav

@MrAnnix you're free to add/change social icons to match the specific needs of your site. Casper is designed as a clean starting point to build from rather than being everything for everyone box which would end up being overly messy and poor out-of-the-box solution for the majority of sites.
If you need help modifying Casper to your needs please reach out on our forum, the community there is always very helpful 😄


Bug: Vertical separator disappears when scrolling far away enough from the double line separator

So basically, in a sufficiently long note (where the --- \n --- is at the end), when scrolling back up again (about 1.5x page height) the separator line disappears. I'm guessing the CSS of the double line simply gets unloaded. Maybe there's a way to prevent it from unloading?
Even if it's unsolvable, it isn't a deal breaker. Thought I'd just let you know :D

I actually have a note about this in Known issues. The reason is that Obsidian dynamically removes parts of the note outside the viewport as you scroll---and thus the snippet can't see the double line. Nothing I can do about it AFAIK.


Virtual Set 16

VSet 16 plus a few small fixes.

Could you add Set 16 to the sets.json file too?

Escape Pod & We're Doomed
The JSON references a card in a hires subfolder.
card "/starwars/Virtual4-Light/hires/escapepodweredoomed.png"
It is technically there, but the only card I can find that does this.
Is this a new option going forward that I need to code for?  (I use image pathing to do psuedo-sorting and this throws it off.)

Escape Pod & We're Doomed
The JSON references a card in a hires subfolder.
card "/starwars/Virtual4-Light/hires/escapepodweredoomed.png"
It is technically there, but the only card I can find that does this.
Is this a new option going forward that I need to code for? (I use image pathing to do psuedo-sorting and this throws it off.)

There are the standard images in the root (thumbnail) and large subfolders.
So I'm not sure why this is necessary unless there is a grand scheme in play.

Escape Pod & We're Doomed
The JSON references a card in a hires subfolder.
card "/starwars/Virtual4-Light/hires/escapepodweredoomed.png"
It is technically there, but the only card I can find that does this.
Is this a new option going forward that I need to code for? (I use image pathing to do psuedo-sorting and this throws it off.)

There are the standard images in the root (thumbnail) and large subfolders.
So I'm not sure why this is necessary unless there is a grand scheme in play.

Correct image reference:
https://res.starwarsccg.org/cards/Virtual4-Light/large/escapepodweredoomed.gif

Hey, Ron.
If you look at the Card Image docs in the holotable repo you will see that the hires images are the source of truth. Everything flows downhill from there.

There is a desire to use the hires images with "gemp*.
That being said, you are right that the json db should continue to reference the large images. Alternatively we need to update the downstream parsers to replace hires with large. What do you think?

Hey, Ron.
If you look at the Card Image docs in the holotable repo you will see that the hires images are the source of truth. Everything flows downhill from there.

There is a desire to use the hires images with gemp. I could see it both ways, but might be valuable to have the JSON DB reference the hires image. The hires images are not always available, so this would be any easy way of knowing without checking. The downside is that oversized images would be used by systems blind referencing the json db.
That being said, you are right that the json db should continue to reference the large images. Alternatively we need to update the downstream parsers to replace hires with large. What do you think?

I see.
In this instance, I think everything is in order except this one file referencing the hires image.  The large image does exist and should be referenced like all the others.

Hey, Ron.
If you look at the Card Image docs in the holotable repo you will see that the hires images are the source of truth. Everything flows downhill from there.

There is a desire to use the hires images with gemp. I could see it both ways, but might be valuable to have the JSON DB reference the hires image. The hires images are not always available, so this would be any easy way of knowing without checking. The downside is that oversized images would be used by systems blind referencing the json db.
That being said, you are right that the json db should continue to reference the large images. Alternatively we need to update the downstream parsers to replace hires with large. What do you think?

Also, something didn't work with generating the thumbnails on the light side.  There are only 2.  The rest are missing.

I added the missing set16 to sets.json.


[GUI NX - v-guinx-19-05-22] - Permanence of notification toasts.

I'm submitting a ...

[ ] bug report
[ ] feature request
[ ] support request
[x] improvement

Notification toasts are being displayed for (13 seconds), too long to be displayed on screen, hint (5 seconds) and when the user switches screens, the toasts should disappear.

Please tell us about your environment:

Version: v-guinx-19-05-22
Environment: [docker-compose]
Operating system: [Ubuntu 20.04]

Won't be fix now.


Fixing documentation and adding documentation link to readme

Codecov Report

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

@@           Coverage Diff           @@
##           master       #7   +/-   ##
=======================================
  Coverage   94.31%   94.31%
=======================================
  Files           2        2
  Lines          88       88
=======================================
  Hits           83       83
  Misses          5        5

Continue to review full report at Codecov.

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


FEATURE: Custom Theme Elements

This can be done either by inheritance by the developers of the end product themselves or a dedicated CustomThemeElement with dynamic fields.
Requires investigation if Django provides this.

Maybe can realized with: https://docs.djangoproject.com/en/5.0/ref/models/fields/#jsonfield


Bring over perf improvement from hhvm/hsl

X-Ref: https://github.com/hhvm/hsl/commit/61c4b4346e25d7f80814c1f004067a568b0b4a03

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.001%) to 98.998%

Totals

Change from base Build<PHONE_NUMBER>:
-0.001%

Covered Lines:
4151

Relevant Lines:
4193

💛  - Coveralls

Sorry azjezz, you've missed the reason for this change. The engineers at Meta weren't concerned about an intermediary variable.
Doing the float cast before the division makes this an fdiv, which doesn't check for clean (without remainder) division first. By having two integer operands, this division is performed twice. Once in the integral domain, to determine if the remainder would be zero. And if the remainder is not zero, the division is performed again in the floating point domain.
Since the only clean divisions in the range (0..2^53) over 2^53 are when the first operand are zero or one, this double division is very unlikely to result in a clean division.
I should not have removed the suppression comment and the intermediate variable. I assumed it was to indicate that a division by zero exception was impossible. My removal of the intermediate variable has cluttered the reason for this change.
If PHP's JIT is able to reason that performing an fdiv here is semantically equivalent, hats off for PHP and it's JIT. I naively assumed that, if Facebook didn't optimize the JIT for this, neither would the PHP Group.


programs/cp: Fix pointer cast warning

execve() expects the args to be in writable memory, so copy them using strdup(3).

(Note: drive-by comment)

execve() expects the args to be in writable memory,

It doesn't, actually: https://pubs.opengroup.org/onlinepubs/9799919799/ (scroll down to the "Rationale" section). I would suggest just marking the variables as char * and letting it be rather than heap allocating them for no reason.

execve() expects the args to be in writable memory,

It doesn't, actually: https://pubs.opengroup.org/onlinepubs/9799919799/ (scroll down to the "Rationale" section). I would suggest just marking the variables as char * and letting it be rather than heap allocating them for no reason.

Thanks, that's helpful. However, the macOS headers declare execve in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/unistd.h as:
int  execve(const char * __file, char * const * __argv, char * const * __envp) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;

This matches the third row in the table of the rationale section of https://pubs.opengroup.org/onlinepubs/9799919799/functions/exec.html. We also don't actually know whether Apple's implementation of execve(2) conforms to this spec — AFAIK Apple doesn't make any claims about macOS' compliance to POSIX.1-2024, and the manpage doesn't clarify either whether args can be in read-only memory, or whether it conforms to the standard.
So we either need to live with the compiler warning, silence the compiler warning, or add a cast. The allocation fixes the warning regardless of what Apple's implementation does, and the cost of two small allocations compared to the following execve(2) is negligible.

Couldn't you also allocate the static strings on the stack with char clone_arg[] = "-c";?

This matches the third row in the table of the rationale section of https://pubs.opengroup.org/onlinepubs/9799919799/functions/exec.html.

That's the source, for a char *const[] destination we need to check the columns. That accepts char *[] as expected. Also, macOS is one of the few certified UNIX OSes, which means that it actually does need to conform to the standards. Not the 2024 version of course, but this one for SUSv3: https://pubs.opengroup.org/onlinepubs/009695399/functions/exec.html. It has the same language in it.

Couldn't you also allocate the static strings on the stack with char clone_arg[] = "-c";?

Good catch, in 1b43b563cf14d7b1b2e3d6d43e1c76de577f218a.


fips: make PKCS #1 v1.5 padding bannable

The end of 2023 transitions ban PKCS ＃1 version 1.5 padding from the FIPS provider.  This adds an option to the FIPS provider that disallows access to swich padding.
At this stage, the option is not enabled by default but can be.

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

It's not clear why the doc-nits check is failing.  It runs okay locally and the option is present and documented...

I wonder how well libssl copes if this option is set? I guess it will still send pkcs1.5 based sigalgs. I suppose TLSv1.3 should mostly be ok, but I wonder how many existing cert chains use this padding....
...is the padding banned for both sign/encrypt and verify/decrypt?

If enabled, it is banned for all (although there are likely paths through the code that could access it).
Hence, it's not on by default & probably won't ever be.

I wonder whether it is worth having an option to ban it only for sign/encrypt. I imagine it will be some while before all cert chains have eradicated PKCS1.5 sigs.

NIST's transition is for all use not just some.
Allowing a partial or total block might be interesting.

NIST's transition is for all use not just some.

I would be totally un-suprised if they change that stance.

Allowing a partial or total block might be interesting.

I could see a partial block as being far more useful in the short to medium term than a total block. But it wouldn't hurt to have both.

@t8m pointed out is not the signatures.  Thankfully.

You may be interested in what was done in Red Hat patches for this purpose

Exempted sign/verify from the padding restriction.
Hardened the encrypt/decrypt paths and not checked during initialisation.

I have tested the option.  It work goodly.  Tests are rather unhappy it but I'm not fixing the tests at this point.

No idea how I came up with one of those.  Will remove when I'm back to this.

Closing this as not relevant.

The transition is still a while away.  We're doing it later, likely using a different more general approach.

Do we want to revive this?


Inference script

Do you have a script to perform 2D/3D pose estimation on images ?

Not yet, but it should be fairly easy to do:

Follow the OpenPifPaf tutorial to get wholebody predictions from the image
Feed the predictions to one of our models that do incomplete 2D to 3D pose lifting to predict the 3D wholebody pose

Best,
David.


question about bot logs

hi i have this log idk what should i do
can someone tell me what is this and why bot log this .

Too much stuff is happening at the same time, and discord is preventing the bot from sending some of it. Limit your logs with .logignore and .logevents


Create FEATURE_TEMPLATE.md

First pass at a GitHub feature template. Welcome any and all feedback!

How do you see this template being used for nigthshade-core? Is it to submit requests for new patterns?

@misscs I was thinking about using this for the new stories that we were wanting to track, like adding tests, refactoring, etc.

DTM

I've been using a simple template of
< description >

Before: < ... >
After: < ... >
To Test: < ... >

in Casper. It was based on some nice PRs that Eddie put up, very simple, very direct. I find myself surprisingly often not needing the before, esp. when implementing a new feature.
I like some of the extra info in these templates. Interested to see what gives value through usage.


Added support for DeregisterCriticalServiceAfter

This code allows to specify DeregisterCriticalServiceAfter interval for consul 0.7.0+ via environment variable SERVICE_*_CHECK_DEREGISTER_AFTER

I would love to see this merged as it would help cleanup the services when bad things happen with containers ending.

+1

:+1:

+1

+1

anything holding up merging this?  we'd also like to have this functionality, and are trying to avoid making our own fork.

hey thanks :)


Fix bug when checking Requester's capabilities

Increment patch number and delete a unit test that used a "random" capabilities flags. The test needs to be replaced with individual and targeted tests.
Signed-off-by: Steven Bellock<EMAIL_ADDRESS>

https://github.com/steven-bellock/libspdm/actions/runs/3876801191 has the CI/CD run. Currently CI/CD is configured to only run on the main branch.

@mcsmonk as well.

we need patch for master as well.


Hilo HA integration consumption consistently higher than Hilo app & Hydro Quebec website/app

Hello,
I've been running the Hilo HA integration for several weeks now, collecting good data on my electricity usage.
I noticed that the Hilo consumption sensor sensor.hilo_energy_total_low (I haven't reached 'medium' usage yet, so cannot comment on this one...) is consistently higher than what is reported in the Hilo app & Hydro Quebec website/app for all days.
The Hilo app reports the same value I see with HQ app/website (rounded up usually).
See some examples below:

Date
sensor.hilo_energy_total_low
Hilo app
HQ app/website

Oct 19
11.58 kWh
10.3 kWh
10.33 kWh

Oct 18
7.82 kWh
6.4 kWh
6.36 kWh

Oct 16
7.76 kWh
6.5 kWh
6.46 kWh

Is this a known issue? Or any suggestions on possible fixes? I already checked that my HA timezone is correct, and set to Eastern time for my user & the entire HA setup.
Thanks in advance.

This is the behaviour you should be seeing from the sensor: a reset at midnight.

Energy calculation in HA is done by Riemann Sum integration so it is approximate. This is how HA works and I have no power over that. I’ve argued the math with them once and it took them over a year to fix a part of it.
No issues here considering the approximation.

Thanks for the information. Your values are a lot closer to the HQ app than mine, I'm usually off by over 1kWh. That's odd... In your case it seems to be <100Wh, not such a big deal.
Yes the sensor resets at midnight, see photo below.

Could my greater inaccuracies also be due to different scan intervals? I am using the default of 60s, but I see in the documentation that I can go down to 30s, is that what you're using? I assume I will get more real-time data this way.

I am using 60s. The meter doesn’t refresh any faster than that.


YesSql.ISqlBuilder: how to achive  condition1 and  ( condition2 or condition3 )

how could I write sth like
builder.WhereAnd(condtion1)
builder.WhereAnd( builder.Where(condition2).WhereOr(condition3) )

it depends on what sql you're actually trying to achieve, but look at the query options and keep building.
possible example:
var query = _session.Query<Foo,FooIndex>();
query.All(x => query.With...)

or
query.Any(x => query.With...)

Thank you.
right now i'm withing with tables except table Docuemnt.
so I can not use _session.Query
I have to use _dbConnectionAccessor and sqlBuilder.
Maye i should write the sql clause mannuly, just like  left join

skip WhereOR, just write OR mannuly and it worked
sqlBuilder.WhereAnd(
                                $" ( a.{dialect.QuoteForColumnName(nameof(CommentRecord.AuditStatus))} = @status" +
                                $" OR a2.{dialect.QuoteForColumnName(nameof(CommentRecord.AuditStatus))} = @status ) ");


upper/lower case issue for letter "wxyz" on Alphabet USB Overlay

Operating System
Windows 10
Arduino IDE version
? or n/a
Board
Feather RP2040 USB Host
ArduinoCore version
? or n/a
TinyUSB Library version
? or n/a
Sketch as ATTACHED TXT
.
Compiled Log as ATTACHED TXT
.
What happened ?
I am not an IntelliKeys expert, and I only manadged to make it work today with the 0.2.1 UF2.
(I was less lucky with a previous release).
I'll have to hack the code and/or hack overlay as I am an AZERTY user, but right now I just switch my Windows PC to English/UK keyboard.
Also notice that my InteliKey is from UK and not from US (I don't think there are a lot of difference, or maybe none, just support contact).
Anyway, I tested the overlay with those writing on it:
IntelliKeys USB (British English)
ALPHABET USB OVERLAY
ITEM NO. OL - USB - UK - AL/BW

Copyright (C) 2002 IntelliTools, Inc.
SUPPORT<EMAIL_ADDRESS>tel: +44 (0)1457 819790

The overlay is all lowercase from a to z in alphabetical order.
When I press the intellikeys USB, I get all uppercase letter, except for the last row where I get "wxyz".
.,?!ABCDEFGHIJKLMNOPQRSTUVwxyz
I am not sure about the official driver and if it should be uppercase or lowercase, but it is wrong to have that mix.
Regards
How to reproduce ?
Insert the Alphabet overlay
Press from a to z.
Debug Log
Here are the event I see on the serial port:
membrane [22, 04] = 1
membrane [22, 04] = 0

membrane [21, 07] = 1
membrane [21, 07] = 0

membrane [21, 10] = 1
membrane [22, 10] = 1
membrane [21, 10] = 0
membrane [22, 10] = 0

membrane [21, 13] = 1
membrane [22, 13] = 1
membrane [21, 13] = 0
membrane [22, 13] = 0

Screenshots
No response

Here is the overlay I am talking about.

I have tested the all lower solution #5 using the artifact produced by my PR (I could not test #4 as my PR fail on some code formatting).
All lower is the solution I prefer, the one that make more sense to me and match the printed character on the physical layer.
PS: I have a separate problem with "." that does not seems to send anything (but I ear a beep). But that problem is present both with the official 0.2.1 UF2 and with the artifact UF2 from #5 .
I don't understand why I did not detect that earlier.
I also don't understand by reading the code why this line is not doing it: https://github.com/adafruit/Adafruit_IntelliKeys/blob/dd9482e5657f0f20626a04068ce4baf9a0c3ff8a/src/IKOverlay.cpp#L739C1-L740C63
But that should be a separate issue I guess... I don't think I introduced this.

All lower is the solution I prefer, the one that make more sense to me and match the printed character on the physical layer.

I agree, all lower case is better and merged. Thank you for your fix in #5.

PS: I have a separate problem with "." that does not seems to send anything (but I ear a beep). But that problem is present both with the official 0.2.1 UF2 and with the artifact UF2 from https://github.com/adafruit/Adafruit_IntelliKeys/pull/5 .
I don't understand why I did not detect that earlier.
I also don't understand by reading the code why this line is not doing it: https://github.com/adafruit/Adafruit_IntelliKeys/blob/dd9482e5657f0f20626a04068ce4baf9a0c3ff8a/src/IKOverlay.cpp#L739C1-L740C63
But that should be a separate issue I guess... I don't think I introduced this.

that is weird, I put my Ikeys to storage, I will try to pull it out to test later on. Meanwhile, could you test with other overlay which also has Period to see if the code actually work on other membrane switch. And yes, please open an seperate issue for period if possible. It is also nice if you could provide the membrane log as this issue as well, just to see if the feedback is actually for that Period (mine Ikeys has quite a lots of dead membrane).
Thank you for both this issue and the fix.


HTTPS proxy is not supported

What kind of issue is this?

[ ] Question. This issue tracker is not the place for questions. If you want to ask how to do
something, or to understand why something isn't working the way you expect it to, use Stack
Overflow. https://stackoverflow.com/questions/tagged/okhttp

[x] Bug report. If you’ve found a bug, spend the time to write a failing test. Bugs with tests
get fixed. Here’s an example: https://gist.github.com/swankjesse/981fcae102f513eb13ed

[x] Feature Request. Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.

Hello, I tried to use okhttp to connect through an https proxy, but I wasn't able to. Here is a reproduction:
curl --proxy-insecure -x https://myproxy:3129 https://httpbin.org/get

works like a charm, instead:
OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient().newBuilder();

final Integer proxyPort = 3129;
final Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort));
okHttpClientBuilder.proxy(proxy);

okHttpClientBuilder.hostnameVerifier(new HostnameVerifier() {
            @Override
            public boolean verify(String s, SSLSession sslSession) {
                if (proxyHost.equalsIgnoreCase(s)) {
                    return true;
                }
                return OkHostnameVerifier.INSTANCE.verify(s, sslSession);
            }
});

okHttpClientBuilder.build().newCall(new Request.Builder().url("https://httpbin.org/get").build()).execute();

fails with the following stacktrace:
Exception in thread "main" java.io.IOException: unexpected end of stream on null
	at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:205)
	at okhttp3.internal.connection.RealConnection.createTunnel(RealConnection.java:323)
	at okhttp3.internal.connection.RealConnection.connectTunnel(RealConnection.java:197)
	at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:145)
	at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:192)
	at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:121)
	at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:100)
	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)
	at okhttp3.RealCall.execute(RealCall.java:69)
	at Test.main(Test.java:34)
Caused by: java.io.EOFException: \n not found: limit=0 content=…
	at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:226)
	at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:210)
	at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189)
	... 20 more

I digged a bit into the code and I think that the issue is that here, if the proxy is HTTP, it is used socketFactory, while there should be an additional check whether the proxy is running HTTPS or not (and if so, sslSocketFactory should be used instead).

This might lead you in the right direction:
    OkHttpClient client = new OkHttpClient.Builder()
        .socketFactory(SSLSocketFactory.getDefault())
        .build();

In practice there’s a bunch more work due to features like ALPN and SNI, and having to verify that the proxy server you connect to is the one who’s certificate chain is trusted.

I find the same problem now ,okhttp Proxy.Type.HTTP don't support https request ,http request is fine. is any solution for this problem?

anybody can help me ?okhttp https httpProxy

@yeyb you can follow @swankjesse 's suggestion. You can find my implementation of his suggestion in nifi here: https://github.com/apache/nifi/commit/37271e82414b9386bb735b61ef54e891300117bf

okhttp Proxy.Type.HTTP don't support https request ? follow is my code,https request don't work
sslSocketFactory = HttpsUtils.setCertificates(new Buffer().writeUtf8(HttpsCert.NEW_CER_IBU).inputStream());
OkHttpClient okHttpClient = new OkHttpClient.Builder()
.connectTimeout(10000L, TimeUnit.MILLISECONDS)
.readTimeout(10000L, TimeUnit.MILLISECONDS)
.addInterceptor(new LoggerInterceptor("TAG", BuildConfig.BUILD_TYPE.equals("debug")))
///////////////////////////////////////////////////////////////////////////////////////////////
//添加代理
.addNetworkInterceptor(new MyNetworkInterceptor())
//add proxy
.proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("", )))
//                .proxySelector(new MyProxySelector())
///////////////////////////////////////////////////////////////////////////////////////////////
//https证书
.hostnameVerifier(new HostnameVerifier() {
@Override
public boolean verify(String hostname, SSLSession session) {
return true;
}
})
.sslSocketFactory(sslSocketFactory)
///////////////////////////////////////////////////////////////////////////////////////////////
.build();
OkHttpUtils.initClient(okHttpClient);

@mgaido91 how to call the method in your sample?

which method?

when I set cer ,call which method?

@yeyb I don't understand your question anyway the answer to your problem is: if you want to support HTTPS proxy, use ProxyType.HTTP and set the socketFactory to a SSLSocketFactory

@mgaido91 yes this is my problem

I am android develper,and I don't konw how to set socketFactory to a SSLSocketFactory in your suggestion

@mgaido91   I am a chinese ,thank you for your help!!!

@yeyb I am not sure which is the problem you are having, but the example by @swankjesse seems very clear to me, I don't know what else to say...

@mgaido91 ,my problem is what you say.but as you say,if you want to support HTTPS proxy, use ProxyType.HTTP and set the socketFactory to a SSLSocketFactory,how I make a socketFactory ?

@mgaido91 ,my problem is what you say.but as you say,if I want to support HTTPS proxy, use ProxyType.HTTP and set the socketFactory to a SSLSocketFactory ,  how I make a socketFactory ? my code is set the SSLSocketFactoryto a SSLSocketFactory

@mgaido91 do I need to call okhttpClient.builder..proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("host", port)))?

@mgaido91 follow code find a problem:
javax.net.ssl.SSLHandshakeException: SSL handshake aborted: ssl=0xd33088c0: I/O error during system call, Connection reset by peer
sslSocketFactory = HttpsUtils.setCertificates(new Buffer().writeUtf8(HttpsCert.NEW_CER_IBU).inputStream());
OkHttpClient okHttpClient = new OkHttpClient.Builder()
.connectTimeout(10000L, TimeUnit.MILLISECONDS)
.readTimeout(10000L, TimeUnit.MILLISECONDS)
.addNetworkInterceptor(new MyNetworkInterceptor())
.proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("<IP_ADDRESS>", 8876)))
///////////////////////////////////////////////////////////////////////////////////////////////
//https cer
.hostnameVerifier(new HostnameVerifier() {
@override
public boolean verify(String hostname, SSLSession session) {
return true;
}
})
.sslSocketFactory(sslSocketFactory)
.socketFactory(sslSocketFactory)
///////////////////////////////////////////////////////////////////////////////////////////////
.build();

public static SSLSocketFactory setCertificates(InputStream... certificates) {
try {
CertificateFactory certificateFactory = CertificateFactory.getInstance("X.509");
KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
keyStore.load(null);
int index = 0;
for (InputStream certificate : certificates) {
String certificateAlias = Integer.toString(index++);
keyStore.setCertificateEntry(certificateAlias, certificateFactory.generateCertificate(certificate));
try {
if (certificate != null) certificate.close();
} catch (IOException e) {
            }
        }
        TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
        trustManagerFactory.init(keyStore);

        SSLContext sslContext = SSLContext.getInstance("TLS");
        sslContext.init(null, trustManagerFactory.getTrustManagers(), new SecureRandom());
        return sslContext.getSocketFactory();
    } catch (Exception e) {
        e.printStackTrace();
    }
    return null;
}

@swankjesse @mgaido91 see https://github.com/square/okhttp/issues/3782，
okhttp3.internal.connection#createTunnel
Response response = tunnelConnection.readResponseHeaders(false)
.request(tunnelRequest)
.build();
it return null.This problem can only be solved by modifying the source code？

Is this issue still valid? With version 4.9 I could connect to a HTTPS resource via proxy.

@lordyavin you can connect to an HTTPS origin resource via an HTTP proxy - which is the normal way to do it, the HTTP proxy becomes a dumb TCP/IP tunnel and the TLS handshake happens between the client and the origin server.
This issue is about connecting to both the origin server and the proxy server over HTTPS. So the data stream ends up double encrypted - you have an encrypted stream between the client and the proxy server, and that is tunnelling an encrypted stream between the client and the origin server.
It's a pretty unusual thing to want to do - all it really additionally protects is the CONNECT request from the client to the proxy, so it stops a man in the middle knowing which origin server it is you want to proxy to. The CONNECT request could include a Proxy-Authorization header which would be worth protecting.

@Mahoney thanks for the clarification

Examples like https://github.com/square/okhttp/issues/7748 show this is possible, but leaving open in case we add support cleanly.

Is it valid to consider the spec Secure Web Proxy?
If so, does anyone have a known working test server? I'm happy to add custom certificates, but want a known working base.
It looks like Google cloud can enable this, but I'd like to know we agree what this means.
https://cloud.google.com/secure-web-proxy/docs/quickstart


del secret get of juicefs runtime clusterrole

Ⅰ. Describe what this PR does
del secret get of juicefs runtime clusterrole
Ⅱ. Does this pull request fix one issue?

Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

/test fluid-e2e


Updated welcome post

Update the welcome post, and the config file to allow future posts to appear

Perhaps cite DKMMN06 as well (since that was the first to include delta in the definition)