Add Symbol.asyncIterator

Hi!
This symbol returns an object conforming to the async iterator protocol. This protocol is effectively the same as the regular iterator protocol, except the methods on the iterator return values wrapped in promises. Any and all feedback is welcome.
This is a follow-up of my message in the Scala.js discord, where I mentioned I was interested in adding facades for working with the OPFS to scala-js-dom. In particular, Symbol.asyncIterator is required for a complete implementation of the FileSystemDirectoryHandle facade. Assuming I'm going about this the right way, my next step after this PR would be to take a look at adding an AsyncIterator facade to this repo.
Doc links:

ES2018 - Symbol.asyncIterator
MDN - Async iterable protocol
MDN - Symbol.asyncIterator
MDN - FileSystemDirectoryHandle
MDN - OPFS

@sjrd were you planning on reviewing this? IMO it's more in your area of expertise.

Ouch yes, I completely missed this one. I'll review tomorrow.

Cheers guys. Appreciate the feedback and no problem on the delay. I'll take a look at sorting out the unit test shortly.

The code changes look good now. There are only "administrative" details to get right for the commit history and versioning.

Since this adds a public API, we should bump the minor version.   is fine in this case).

After that it's good to go.
Thank you for your patience.


Ring-topology network with calico

Dear Calico-Community,
as far as I know you can only assign one NIC to be used by calico.
Its possible to use auto-detection, but this results in one NIC of the node used.
I would realy like to build a 3 node cluster with each having a 40gbit x2 network card. Connected to each other with a DAC Calble. So I don't need to power a switch and gain more resitance to failure by removing the switch as singel point of failure.
Hardware: ConnectX-3 CX354A (realy affordable, 8x PCIe 3.0)
Each card has 2 ports and is represented by two nic-interfaces.
With the help of static IPs and static routing it's easy to establish a reliable connecting between these 3 nodes.
Do you guys see a way to configure calico in a way so it just use the host-routing to reach hosts in the host-network? Or any other way - I currently dont know about - to reach my goal?
Calico-Version: v3.25.0 (helm)
Thank you very much
Hans Fischer

Maybe @caseydavenport or @fasaxc might know? I believe that this works in OpenStack because of Neutron but I'm not sure if we have anything in Calico that allows this.

Yes, you can do this kind of thing:

Add a loopback IP to your nodes; i.e. a stable IP that is on neither interface.  Assign that to lo
Set up Calico (and kubernetes) to use the loopback IP as the node IP
Use BGP peerings over the per-interface IP addresses.

When creating your BGP peers, use sourceAddress: None, then BIRD will choose the per-interface address for the peering.  You can use a link-local IP or whatever you like for the addresses.  It's important to have a stable IP for each node or you don't get HA because the IP of a given interface becomes invalid when that interface goes down.


[Feature request] [PoC] set default container sysctl via config

I would like to set defaults for namespaced sysctl values in containers created by Containerd via CRI. I need it mainly for Kubernetes.
So far, I couldn't find a way to do it.
Neither containerd process nor linux host sysctls (/etc/sysctl.conf) are being propaged into the container namespaces. I know, not all sysctls are namespaced, thus an approach of setting all host sysctls inside containers is problematic.
Still, it's sometimes necessary to set custom (not linux-default) sysctls inside containers, mostly net.* values for high-traffic containers. Unfortunaltey, as of now, custom sysctls must be set explicitly in every pod spec. Therefore kubernetes users must know that sysctls exist and understand their effect. It's not always the case. Thus users of our managed k8s service ask for support again and again to only learn that sysctls must be changed. I would like to set sane defaults to eliminate the cause of such support requests.
As far as my understanding goes, runc or CNI create namespaces afresh. Then, runc only sets the sysctls provided in config.json of the container bundle. It seems unrealistic that runc maintainers would agree to change libcontainer to also read some system defaults from a config file in /etc. Hence i'd suggest to extend containerd or its CRI implementation to let sysadmins change the namespaced sysctl defaults.
Such functionality already exists in cri-o. Maybe it's worth adding default sysctls in /etc/containerd/config.toml too?
Possible implementation
I'm opening this feature request here and not in the main containerd/containerd repo, because it seems the easiest implementation would be to extend containerd/cri's PluginConfig struct with a new option for sysctl defaults. Then, a list of sysctls can be set in [plugins.cri] section of the config.toml (see example below) and propagated by sandboxContainerSpec() of github.com/containerd/cri/pkg/server/sandbox_run_unix.go down to the container bundle config.json.
I've made the proof of concept directly on the vendored version of cri inside my fork of containerd/containerd repo. Don't treat this PoC as a real PR please :)
Containerd from the fork referenced above can apply a list of default sysctls from /etc/containerd/config.toml in the new kubernetes pods, as configured below.
...
[plugins]
  [plugins.cri]
    sysctl = ["net.core.somaxconn=256", "net.ipv4.tcp_tw_reuse=1"]
...

If the containerd maintainers feel comfortable with the idea of setting sysctl defaults in config.toml, then i would like to ask for help with making it into the upstream code. I don't understand containerd code and architecture enough to make a proper PR straight away, so help with feature design is much appreciated.

Interesting. Thanks for the discussion.
One approach / thought would be to use the k8s PodPreset pattern for injecting securityContext: sysctls: that match appropriate filters. Pretty sure you can't do that today, but if we can get agreement it might be a good extension to that service. Can bring it up in the next sig-node meeting.
I'm not completely against this feature request for adding sysctls based on config, but want to consider whether modifying specs in this way on the node, without k8s/kublet's knowledge, would be seen as an override for otherwise prohibited sysctls in the k8s pod security policy, unsafe sysctls, etc. IOW there may be a requirement to pass along the requirements/filters for sysctls injection enablement.

Any updates on how this is going?
As the author mentioned we need to bump up net.* values and we can only do this by adding
sysctl in every pod spec + adding sysctl args to kubelet.

Any updates on how this is going?
As the author mentioned we need to bump up net.* values and we can only do this by adding
sysctl in every pod spec + adding sysctl args to kubelet.

Same here. Any updates?


Fix 'invalid grant' message when refresh token is bogus

This message appears under other conditions as well. To recreate, edit the stored refresh token to be invalid then try an action which generates a refresh action.

fixed as part of #32


Meeting details and invitations

It would be great if the meeting details (e.g. how to join the meeting and iCal links)  are included here.
cc @kenowens12

Sorry, didn't notice it is already included in README.

Good deal. I recently added those. Cheers.

@leecalcote Cool. Thanks. Could you also add a calendar so everyone can subscribe to the meeting changes automatically?

@feiskyer that's a great ask. We're getting closer. The readme has been updated with more meeting details.


Causes, troubleshooting and resolution steps needed

Add information about possible causes, troubleshooting and resolution steps for this bug check.

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

ID: e41c8195-1441-270e-d048-cf250793a2b9
Version Independent ID: dbc180e8-9c16-a682-81e0-51fed1267ab1
Content: Bug Check 0x155 OS_DATA_TAMPERING
Content Source: windows-driver-docs-pr/debugger/bug-check-0x155--os-data-tampering.md
Product: windows-hardware
GitHub Login: @DOMARS
Microsoft Alias: domars

@LuigiBruno - I have opened an internal work item to track this work, so closing this issue for now.
As I have mentioned before, we use a process to prioritize the most frequent bug checks out of the hundreds that are currently defined. With our limited documentation team resources, it is likely that we will only be able to do this work for a small sub set of all of the possible stop codes.
Thank you for your interest in improving our stop code docs.


[1.16.5] Trees get cut off at the borders of previous loaded chunks when saving and reopening the world

Describe the bug
I stumbled across this bug by accident when I saved my game and reopened the world because Immersive Railroading was almost making it crash due to some rendering issue. After I reopened the world I noticed on JourneyMap a weird cut off line in trees so I went there to investigate. Unfortunately, it turned out the be just the case and everything that was currently loading in continued as normal but not in the same pattern the trees where placed before anymore. It almost looks like the noise map for trees keeps constantly switching out when saving and reopening the game.
To Reproduce
Steps to reproduce the behavior:

Create a new world
Locate any biome with a dense amount of trees and go there
Load in a few chunks before saving the world and reopen it as soon as it's finished
Go to the edge of the previously loaded in chunks and you'll notice most trees that were in a chunk border are strangely cut off

Screenshots

Rendering Glitches
Immersive Railroading can sometimes cause a weird rendering issue that covers your entire view with weird polygonal structures.
If you don't save the game in time it will eventually crash it.
Additional context
Some chunks tend to be entirely empty with no trees populating it when saving and reopening the world.
Crashes
None...
Mods List
Forge - 36.2.0:
Dynamic Surroundings (dsurround:1.16.4-<IP_ADDRESS>),
Abnormals Core (abnormals_core:3.2.0),
Biomes O Plenty (biomesoplenty:1.16.5-<IP_ADDRESS>7),
Dynamic Trees (dynamictrees:1.16.5-0.10.0-Beta22),
Dynamic Trees for Biomes o Plenty (dtbop:1.16.5-2.0.6),
Dynamic Trees for Neapolitan (dtneapolitan:1.16.5-1.0.0),
Dynamic Trees for TerraForged (dtterraforged:1.16.5-1.0.0),
Dynamic Trees for Voyage (dtvoyage:<IP_ADDRESS>),
Dynamic Trees Plus (dynamictreesplus:1.16.5-0.1.0-Beta10),
Dynamic view distance (dynview:1.8),
Forge (forge:36.2.0),
Immersive Railroading (immersiverailroading:1.16.5-forge-1.9.0),
Journeymap (journeymap:5.7.3),
Kiwi (kiwi:3.5.2),
Minecraft (minecraft:1.16.5),
Mod List Paster (modlistpaste:1.2.0),
Neapolitan (neapolitan:2.1.0),
Snow! Real Magic! (snowrealmagic:2.5.7),
Snow Under Trees (snowundertrees:v1.1.4),
TerraForged (terraforged:0.2.13),
TrackAPI (trackapi:1.2),
Universal Mod Core (universalmodcore:1.1.0),
Voyage (voyage:1.0.3)

Duplicate of #508, read more there for a fix.


Circle editing status, fast scaling issue

Describe the bug
When the circle is in editing mode, quickly reducing the radius of the circle to a very small size can cause the circle to immediately become larger or disappear. Sometimes its shape also changes.

Hey， @JamesLMilner ，In editing mode and without setting the minimum distance. This issue may occur.

Hey @Thunder7991 - eventually I'm thinking of adding a function that allows you to set your own custom constraints before committing and edit. This should resolve this problem and be flexible enough to avoid any similar issues (i.e. you could set a minimum area/radius etc)

Regarding the issue of circles disappearing when scaled to a very small size. I solved it this way :
drag-coordinate-resize.behavior.ts
public drag {
    ...
if(scale < 0) {
      return false
  }
    ...
}

This ensures that the circle will not disappear abnormally when zoomed in very small.

Hey @Thunder7991 - eventually I'm thinking of adding a function that allows you to set your own custom constraints before committing and edit. This should resolve this problem and be flexible enough to avoid any similar issues (i.e. you could set a minimum area/radius etc)

🙌 @JamesLMilner  ， I can feel that you are very busy now. In addition, when I turned off the function of mouse following point movement when zooming in circles (previous versions), and added a limit on the minimum radius when zooming in, there were calculation errors when the mouse was moving quickly, such as a minimum of 10 kilometers. If I moved normally, the radius would not be less than 10 kilometers, but sometimes it would be less than 10 kilometers. In the end, I abandoned the method of limiting the zoom radius, and the final solution was to avoid the sudden disappearance of the circle as shown in the code above. I am looking forward to your reply and a better solution.

You can now use the validation property flag to pass a function.
You can do something like this:
const selectMode = new TerraDrawSelectMode({
  flags: {
    circle: {
      feature: {
        // The entire Feature can be moved
        draggable: true,

        // Individual coordinates that make up the Feature...
        coordinates: {
          // Can be added
          midpoints: true,

          // Can be moved
          draggable: true,

          // Allow resizing of the geometry from a given origin.
          // center-web-mercator will allow resizing of the aspect ratio from the center
          // and opposite-web-mercator allows resizing from the opposite corner of the
          // bounding box of the geometry.
          resizeable: 'center-web-mercator', // can also be 'opposite-web-mercator', 'center-fixed-web-mercator', 'opposite-fixed-web-mercator'

          // Can be deleted
          deletable: true,

          // Provide a custom validation that will run when we attempt to edit the geometry
          validation: (feature) => {
              // ValidateMinSizeSquareMeters can be imported from Terra Draw
	      return feature.geometry.type !== "Polygon" && ValidateMinSizeSquareMeters(feature.geometry, 1000);
          }
        },
      },
    },
  },
});

Here ValidateMinSizeSquareMeters is exposed from Terra Draw for convenience, but you can do any sort of validation you like to ensure the circle is correct.

Hey,  @JamesLMilner . The new features have been used just now, and there are still some problems. The restrictions on the area are equivalent to the restrictions of the radius. I have implemented it in the test demo, but there is a problem. If you quickly move the mouse to enlarge and shrink, it can also be said that it can also be said that Pressure testing, he will break through this limit. For example, the area is 1,000 square meters, and occasionally less than 1000, which may be related to the execution process of the entire program.
The new version will still have irregular circles, and you need to trouble you to adjust.


RFC 0025: rename "didcomms" --> "didcomm"

The rationale for doing this is described and may be debated in rocket.chat: https://chat.hyperledger.org/channel/aries?msg=haDnrASscA5S7HJC9
Here is an inline copy of the beginning of that thread:
[Daniel H]: In English, we have the phenomenon of count nouns and non-count nouns. A count noun is something that you count with integers: cars, shoes, phones, etc. We say, "I own 3 cars." A non-count noun is something that you quantify as a collective or mass: "My car is emitting a lot of smoke." "I bought 3 bushels of wheat."
Count nouns carry plural markers in English: I own 3 cars.
Non-count nouns do NOT carry plural markers in English. We would not say, "I saw 3 smokes coming out of my tailpipe when I started the car."
It is possible for a noun to be both a count noun and a non-count noun. "Water" is a great example. Normally, water is a non-count noun--we measure it in real units, as a collective. However, when a waiter takes our order at a restaurant, he may say, "Okay, so that's 3 waters, right?" When this happens, we're implying that we've packaged the non-count, collective noun in a discrete form.
When you turn nouns into adjectives, usually the non-count, non-plural version is more common. We talk about "water-borne illnesses" and "watercraft", not "waters-born illnesses" and "waterscraft".
So what about the word "communication"?
Well, "communication" is normally a non-count noun. We say things like "There's a lot of communication happening" (non-count collective) or "The internet backbone carries 3.9 terabytes of communication per second in the transatlantic cable" (units +real quantifying a collective but not discrete items).
We also use communication as a count noun, in the same way that my water example does. If each discrete communication event is counted, then we can say things like, "27 communications arrived on this radio channel in the past hour."
So, what would "didcomm" imply, and what would "didcomms" imply?
"Didcomm" means communication in bulk, uncounted. It is also the appropriate adjective form. "Didcomms" means individual, countable didcomm events.
Almost always, we want the non-plural, non-count sense.
As I said before, I really don't care how we talk informally--but in formal written artifacts, I suggest that we follow best practice grammar and use the form without the 's'.

@TelegramSam ^^

I've started to adapt my language to support DIDComm in writing. Out of force of habit when speaking I'll probably still use the 's' because I like the sound better though.

I support this. We'll see how quickly I can correct my verbal usage. :)

The discussion on Rocket.Chat more or less paralleled the one here. We'll use "didcomm" in formal written stuff, and not worry about the variation/style that people pick otherwise.


[#4226] Improvement(python-client): Add Metalake Error Handler and related exceptions, test cases in client-python

What changes were proposed in this pull request?

Add Metalake Error Handler and related exceptions, UT and IT in client-python based on client-java
Align exception naming with client-java

Why are the changes needed?
Fix: #4226
Does this PR introduce any user-facing change?
No.
How was this patch tested?
UT and IT added.

Hi @jingjia88, thanks for your contribution. There seems to be some conflicts between this PR and main branch.
Please solve them first.

@noidname01 Thanks for reminding. Done!

@noidname01 Hi, I have made the changes and run the tests. Could you please review the changes again? Thank you!

@noidname01 Oops, I agree we should use CatalogErrorHandler in gravitino_metalake.py. Since CatalogErrorHandler hasn't been added yet, it might be better to be put into gravitino_metalake.py when solving issue #4227. What do you think?
BTW, I have already removed the errors from MetalakeErrorHandler in gravitino_metalake.py.

LGTM.


Use np.cross from numba 0.46

See https://numba.pydata.org/numba-doc/latest/release-notes.html#version-0-46-0 (thanks @partmor!)

@Juanlu001 You're welcome!!! super glad to see it's useful :)


Race conditions in geelightning integration module

See https://gitlab.com/nblockchain/geewallet/-/issues/137

We will not purse geelightning integration anymore.


Added Esperanto locale

Hi, I'd like to add Esperanto language support to this library.

ref #2360


docker-compose > docker compose and Directus 10.4.x

Hello, and thanks for your boilerplate. I'm trying to use it to deploy Directus on my VPS.
I'm facing multiple problems I'm not really able to solve :
When I initially launch the 'init-letsencrypt.sh', I'm greeted with a Error: docker-compose is not installed
I indeed doesn't have it installed, as it's been depreciated, but have docker compose installed and working.
I managed to get the script laucnhing by editing the first block like so :
if ! [ -x "$(command -v docker)" ]; then
  echo 'Error: docker is not installed.' >&2
  exit 1
fi

and by replacing all the docker-compose commands by docker compose.
I also edited the docker-compose.yml to support latest Directus 10.4.x and redis7, with the following lines :
services
  cache:
    container_name: cache
    image: redis:7
    command: --port 6380
    networks:
      - directus
  directus:
    environment:
      REDIS: "redis://cache:6380"
      WEBSOCKETS_ENABLED: true
      ...

Finally, I updated the DockerFile to support Directus 10.4.x :
FROM directus/directus:10.4.2

USER root
RUN corepack enable \
  && corepack prepare<EMAIL_ADDRESS>--activate

USER node
RUN pnpm install directus-extension-editorjs

When I then launch the 'init-letsencrypt.sh', dummy keys are generated, but the cache and database services spin up indefinitely.
I can't exit the task by ctrl+c, and must close and reopen the terminal to get it to stop. I've let the task run for almost 15 minutes without any change, but the certbot folder has been created and filled succesfully.

Here is the Terminal state when it's stuck :
root@vps-ari:/home/directus-docker-compose# ./init-letsencrypt.sh
### Downloading recommended TLS parameters ...

### Creating dummy certificate for xxxxxxxxx.com ...
[+] Building 0.0s (0/0)
[+] Building 0.0s (0/0)
Generating a RSA private key
...........................++++
..............................++++
writing new private key to '/etc/letsencrypt/live/aristide-bh.com/privkey.pem'
-----

### Starting nginx ...
[+] Building 0.0s (0/0)
[+] Running 0/2
 ⠦ Container cache     Creating                                                                                17.7s
 ⠦ Container database  Creating                                                                                17.7s

My server is a up-to-date VPS running Debian 11, where I uninstalled Apache2 and nginx.
Before i tried to use it to host Directus, I've followed my host's guide to install a SSL certificate, but I don't know if i shall take back this step.
The cloned repo is located in ./home/directus-docker-compose, but I don't know if that has any impact.
I hope all these informations are relevent and enough to get this sorted !
Will gladly provide more details if needed.
Thanks in advance

Further inspections and tests :
I've got some responses when using ctrl+c one/two times then pressing Y and enter a few times.
Got this in the Terminal  all scrambled up with [+] Running 0/2:
Challenge failed for domain www.xxxxxxxx.com
http-01 challenge for xxxxxxxx.com
http-01 challenge for www.xxxxxxxx.com

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
  Domain: aristide-bh.com
  Type:   connection
  Detail: <IP_ADDRESS>: Fetching http://xxxxxxxx.com/.well-known/acme-challenge/T5PFUpISdRuWnRCNoLEn2zPK1R6J3FWt479WfBhMFqw: Connection refused

  Domain: www.xxxxxxxx.com
  Type:   connection
  Detail: <IP_ADDRESS>: Fetching http://www.xxxxxxxx.com/.well-known/acme-challenge/RXCVz0KZVbLNN2gO1SOTb2uP4cUGpfHN1FMpWXPJQKM: Connection refused

Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.

The Terminal then keeps its described loop running

Sorry to flood the post, I've been experimenting, and have some more context to share upon redoing all the process.

I've reinstalled a clean Debian 11 onto my VPS, and then uninstalled apache2 from it.
Installed the official Docker, and spun the directus install as detailed earlier. This time, I put my directus-docker-compose straight into my root folder.
Running the edited init-letsencrypt.sh now seems to run without Terminal being flooded by [+] Running 0/2...., but :
I get the following :

root@vps-ari:/directus-docker-compose# ./init-letsencrypt.sh
### Downloading recommended TLS parameters ...

 We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.

Requesting a certificate for xxxxxxxxxx.com and www.xxxxxxxxxx.com
Performing the following challenges:
http-01 challenge for xxxxxxxxxx.com
http-01 challenge for www.xxxxxxxxxx.com
Using the webroot path /var/www/certbot for all unmatched domains.
Waiting for verification...
Challenge failed for domain xxxxxxxxxx.com
Challenge failed for domain www.xxxxxxxxxxh.com
http-01 challenge for xxxxxxxxxx.com
http-01 challenge for www.xxxxxxxxxx.com

Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
  Domain: xxxxxxxxxx.com
  Type:   connection
  Detail: <IP_ADDRESS>: Fetching http://xxxxxxxxxx.com/.well-known/acme-challenge/G7bIn9vz-4rZD0sTFkdeVbZMT9jNT2L3l93rFnCQNss: Connection refused

  Domain: www.xxxxxxxxxx.com
  Type:   connection
  Detail: <IP_ADDRESS>: Fetching http://www.xxxxxxxxxx.com/.well-known/acme-challenge/bm5u8WM4aOo_6pwvR9PVzFH0DK_MmCVIqula_nFmAy4: Connection refused

Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.

Cleaning up challenges
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

### Reloading nginx ...
Error response from daemon: Container 9859f7134aad0a7d54d17be20982f1b09b1f091cce79937d77beb7fdc98f3968 is restarting, wait until the container is running

I've obvioulsy replaced my domain with xxxxxxxxxx.com, althought I haven't mentionned it earlier.
Looking at my VPS structure, I'm not able to locate the http://xxxxxxxxxx.com/.well-known/acme-challenge.
Could it be the culprit ?

$BNB Airdrop Guide: Claim Your $1000 in BNB Now!
🎉 Congratulations! You've won a share of the $1.500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. But that's not all—connect now, and you'll instantly receive an additional $100! Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. 🌐 Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. 🔄 Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

💰 Don't miss out on your $1.000k in BNB! Plus, enjoy an instant $100 upon connection. Act now to secure your tokens. And hey, seize the chance to win up to $20,000—it's your golden opportunity!
Winners: @RitwickVerma, @calify, @chriscarrollsmith, @ZeusTheMighty, @bryanwills, @Sundayfree, @yueyingjuesha


TypeScript Error in Function Return Types

🔎 Search Terms
"Function Return Types", "Type Inference", "Type Error", "keyof", "Type Assignment"
🕗 Version & Regression Information
Environment:

TypeScript Version: 5.1.6
Node Version: 18.12.1
Operating System: Windows 11
IDE: WebStorm 2023.2

tsconfig.json:
{
  "compilerOptions": {
    "strict": true,
    "lib": ["ESNext", "dom"],
    "module": "ESNext",
    "target": "ESNext",
    "skipLibCheck": true,
    "moduleResolution": "node",
    "esModuleInterop": true,
    "resolveJsonModule": true
  }
}

Additional Information:
This issue seems to have emerged after a recent update in the TypeScript version. The code logic appears to be accurate, and the TypeScript configuration in my tsconfig.json file seems appropriately configured. The discrepancy between the expected behavior and the actual TypeScript error suggests a potential bug in TypeScript's latest version or a misconfiguration.
⏯ Playground Link
https://www.typescriptlang.org/play?#code/FAFwngDgpgBAgjAvDAjKSsBCSYCZjACWAdiFAE4BmAhgMZYD2IAFjAN7AwzUBc8nMAEZ9MwAL4FKAV2K0QhBsRhkAziAA8AaRhQAHmWIATFTADWUMA0oxMTZgD4AFObB9NAShF2A2poC67AIqAO6EILSszhbugVxctNQqsABE1Mk8AnEw5FAgUuRKKNwmtIpqmTCGUDRSADYgGVlcOXkFeMUwpcTlXBISoFBqjqnJ7gDcAkA
💻 Code
type A = 1
type B = 2

interface Both {
  a: A
  b: B
}

function test<K extends keyof Both>(key: K): Both[K] {
  switch (key) {
    case "a":
      return 1 as const
    default:
      return 2 as const
  }
}

test("a");

🙁 Actual behavior
Error Messages:
The error messages I'm encountering is:
TS2322: Type  1  is not assignable to type  Both[K]
Type  number  is not assignable to type  never.

TS2322: Type  2  is not assignable to type  Both[K]
Type  number  is not assignable to type  never.

🙂 Expected behavior
The function test should compile without any errors, as the return types are correctly inferred and match the expected types defined in the Both interface. The final call to test("a") should yield the expected return type of 1.

Duplicate of #33014.


Add PyCon APAC 2022(hosted by Taiwan) videos

Thank you for this contribution! This looks mostly ready to go, just a few small change requests:

Please delete the pycon-apac-2022/.DS_Store file, as this is an artifact of the OS and not relevant to PyVideo.
Can you remove the conference title from the talk titles in the talk JSON files? I understand that this is useful for search on YouTube, but the events are stored as part of the talk data and linked directly within the talk pages.


[POAE7-2736] Hotfix for FunctionLookupTest build failure

What changes were proposed in this pull request?
Hotfix for FunctionLookupTest build failure
Why are the changes needed?
hotfix
Does this PR introduce any user-facing change?
No
How was this patch tested?
CI/CD
Which label does this PR belong to?

@jikunshang @kd97 please help approve this hotfix. Thanks.


Replacing JSR 305 with Spotbugs?

How about replacing JSR 305 with Spotbugs annotations? It's still maintained and has a clear license (context: https://github.com/findbugsproject/findbugs/issues/128).
No strong opinion from my side though.

ping @jhy

My inclination is to stay with the current implementation as it works and is BSD licensed. My specific concern with changing to another annotation API is how that impacts backwards compatibility. Those annotations are part of the contact in some way and I don't know what impacts there will be in changing it.
I am sure there is a path but without a strong motivation to move, prefer to leave as-is.


mask_axis property (WIP)

Description
Adds a mask_axis property to napari.layers.Labels for labels with shapes like (16, 224, 224) or (224, 224, 16). This feature is, intentionally, not exposed anywhere in the application.
Type of change

[x] New feature (non-breaking change which adds functionality)

References

How has this been tested?

[x] example: 2D and 3D mask fixtures
[x] example: unit tests for label_masks utility function
[ ] example: unit tests for _raw_to_displayed that use the 2D and 3D mask fixtures

Final checklist:

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

WIP like Simon Belmont. I am still learning the Layer interface.

Nice @0x00b1!! Let me know if you want any early feedback, have questions anywhere!

This would close #269

@0x00b1 this has been kinda quiet for a while. We are going to close for now since the issue (#269) remains open to track. Feel free to reopen if you want to keep working on it.


Quality-of-life improvements for Flix Contact Sheet app

Changes:

Updated .gitignore
Settings stored in ~/.flix-contact-sheet to remember the user's selections between uses
Icon file added in ./icons
Flix logo packaged with resources.qrc

Hi, thank you for the contribution, and sorry that we didn't get to it until now! I've now incorporated these changes as part of #17, so I'll close this PR in favour of that one. Thanks again!


Fix NULL + Improved BQSQLException

Hi Jonathan,
Thank you for sharing your fork.
The first commit in this pull request fixes null handling for float (and probably other datatypes). This fixes https://code.google.com/p/starschema-bigquery-jdbc/issues/detail?id=13

The issue was to use
result == null
instead of
com.google.api.client.util.Data.isNull(result) a.k.a. Data.isNull(result)
as documented in TableCell.getV()

The second commit is an improvement in the error message.

Most of the valuable information is in the detail message of the GoogleJsonResponseException, so I think it is better to append the detail message to the main message.
I also fixed two exceptions from SQLException to BQSQLException to be consistent accross the driver (raising only BQSQLException).

Third commit fixes Issue 10: BigQuery Integer is bigger than a Java Integer: https://code.google.com/p/starschema-bigquery-jdbc/issues/detail?id=10

Sincerely,
jsiess

@jsiessataccess Thanks so much for your work on this.
I'm slowly getting around to pulling in pieces of this PR. I should be merging in the first several commits in the near future.

@jsiessataccess I have merged in several of the commits in this PR.
In the future it would be preferable for each PR to contain a single bugfix or feature. In order to merge the remaining commits, please open a PR for each distinct unit of work.


Bad (invalid?) code generated for "generate get/set accessors"

Note that there is bad behavior without the leading newline, but it is significantly worse when the body of the class starts with a newline:
class C {

    /**
     * Some comments
     */
    [|someProp!: string; // stuff|]
}

Refactor [| this range |]
Expected
class C {

    private _someProp!: string; // stuff

    /**
     * Some comments
     */
    public get someProp(): string {
        return this._someProp;
    }
    public set someProp(value: string) {
        this._someProp = value;
    }
}

Actual
class C {

    /**
     * Some comments
     */
    private _someProp!: string; // stuff
    public get someProp(): string {
        return this._someProp;
    }
    public set
        /**
         * Some comments
         */
        someProp /**
 * Some comments
 */(value: string) {
        this._someProp = value;
    }
}

Thanks @a-tarasyuk!


python311Packages.equinox: 0.11.3 -> 0.11.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python311Packages.equinox is: A JAX library based around a simple idea: represent parameterised functions (such as neural networks) as PyTrees
meta.homepage for python311Packages.equinox is: https://github.com/patrick-kidger/equinox
meta.changelog for python311Packages.equinox is: https://github.com/patrick-kidger/equinox/releases/tag/v0.11.4
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.11.4 with grep in /nix/store/x5scn8mqdcjz11i5npqvaf4iga6k6sx9-python3.11-equinox-0.11.4
found 0.11.4 in filename of file in /nix/store/x5scn8mqdcjz11i5npqvaf4iga6k6sx9-python3.11-equinox-0.11.4

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath
python311Packages.equinox
python312Packages.equinox

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/x5scn8mqdcjz11i5npqvaf4iga6k6sx9-python3.11-equinox-0.11.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

Or:
nix build github:r-ryantm/nixpkgs/22d2bf52cacb843715a978271cf8dc9daa0d8647#python311Packages.equinox

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/x5scn8mqdcjz11i5npqvaf4iga6k6sx9-python3.11-equinox-0.11.4
ls -la /nix/store/x5scn8mqdcjz11i5npqvaf4iga6k6sx9-python3.11-equinox-0.11.4/bin

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

Maintainer pings
cc @GaetanLepage for testing.

Duplicate of https://github.com/NixOS/nixpkgs/pull/304068


Huge performance issues

Calling IsPublicHoliday in a loop result in terrible performance degradation since all the providers and dictionaries are re-created every time, FROM SCRATCH.
You have to cache them in static vars

I think I do not have to do anything. You can cache the items self.
If you use the project in your software you are welcome to support me. Then I can optimize the query.

We did create a workaround in the calling code, but I thought you and others might know of this issue.
I can fix and send a pull request to you.
PS. Also I don't mind donating to a good project to keep you going, will do that later

Thanks for the pull

please include this in your next nuget release, thanks

is available


Warning:DecodeCurrentAccessUnit() failed (459804) in frame: 0 uiDId: 0 uiQId: 0

I am trying to decode a H264 bytestream of the format:
0x000001[SPS] 0x000001[PPS] 0x000001[I frame][P frame][P frame]. . .
But the decoder throws the following error and the output file is zero bytes in size.

[OpenH264] this = 0x02B32178, Warning:DecodeCurrentAccessUnit() failed (459804) in frame: 0 uiDId: 0 uiQId: 0
iWidth:         0
height:         0
Frames:         0
decode time:    0.011096 sec
FPS:            0.000000 fps
Can someone help me debug this issue? Thanks in advance

This error code means there is MB level syntax parse error. Please check how your data is generated or any header information is correct or not.

I have something similar issue. The warning is shown as:
Warning : DecodeCurrentAccessUnit() failed (12) in frame:0 uiDld:0 uiQld:0
when trying decode attached H264 file. I have been trying to decode H264 file on Window 10 PC. The same file can be played VLC player.
I'll appreciate any help or suggestion.
PCdatafromTR7.zip
Note: The  "welsenc_arbitrary_res.cfg" file is used as configuration in decode operation at my PC. And since "welsenc_arbitrary_res.cfg" doesnt contain anything hence I am assuming the default value of parameter would be used.


Vue JS NewsWebsite

A news website with api support built on VueJs

Please assign it to me I am using chakra ui to build it

@Jyo561 while creating PR please follow all the Contribution Rules which are mentioned in the issue #43 .

ok

@Jyo561, Any Update?

i am unable to upload video for it please try to accept it with the ss

@heet-kumar

i am unable to upload video for it please try to accept it with the ss

@Jyo561 try to see the video link which is provided to you .
How to upload video in markdown then watch this video :
https://drive.google.com/file/d/12cjBwDaTCK4pu7cqNI_FNuRAZwamCywP/view?usp=sharing
Note : Screen Recorded video should include

code go-through
what are the files you have included
run your project in screen recording

if then also you are not able to add it then ping me on discord then through voice channel and screen sharing we will try to resolve this issue tomorrow after 11 am whenever you get free .


Horde 3D

Horde 3D is one of the best graphics rendering engines which is open source. https://github.com/horde3d/Horde3D
Please consider it , Thanks

We can’t reopen this issue until a PR is opened, unfortunately, consider making a pull request!


Consider overwriting existing Measure values with MeasureMap.Builder.set.

Currently, MeasureMap.Builder.set(MeasureDouble, double) has no effect when the Measure was already set: https://github.com/census-instrumentation/opencensus-java/blob/c82910ac0b04ceba7396887b6e044cf878a46f31/core/src/main/java/io/opencensus/stats/MeasureMap.java#L63
Should we change the behavior to be more similar to Map.put and TagContext.set, which overwrite previous values?

I'm not 100% sure about overwriting existing values. Consider a case when user gets stats of the same Measure from multiple sources, and they want to record them in one MeasureMap:
Measure measure = ... MeasureMap.Builder builder = ... double value1 = .... // from source 1 builder.set(measure, value1); double value2 = ... // from source2 builder.set(measure, value2)
As the result both value1 and value2 will be recorded. Again, I'm not sure if this is a valid use case, or we should expect that users should set values for each measure only once.

I agree.  Allowing multiple values to be set at once would be more convenient for users, and less surprising.  The only benefit of disallowing multiple values that I can think of is that it might allow us to make optimizations that depend on the uniqueness of measures in the MeasureMap.

Fixed in #636


Buy/Sell Grid Calculator

I have read this thread (https://github.com/chrisleekr/binance-trading-bot
) several times and made a excel sheet to easy calculate your minimal profit.
But with my calculation (worst scenario) you dont have any profit. You loss some money.
BinanceBot_Calculate.xlsx
Did i have made a mistake with the xlsx?

I won't open excel file (for security reason).
Please make Google Docs or something I can see in online.

I won't open excel file (for security reason). Please make Google Docs or something I can see in online.

Sure :)
https://docs.google.com/spreadsheets/d/159wlTHJyNubXzNN6XtfY8Be13UmEvPu4k4bc5WAVlAE/edit?usp=sharing
You have edit permissions

Your last price for Sell Grid #1 is not correct.
It does not set as the last buy limit price. It is calculating new last buy price based on the coin quantity and quote quantity (purchase amount).
See this code for the reference:  https://github.com/chrisleekr/binance-trading-bot/blob/master/app/cronjob/trailingTradeHelper/common.js#L514
I have calculated based on your excel sheet. The last buy price should be 92.06181644

In addition, Sell Grid #2 is not using the last sell limit price. Even if the sell grid #1 is executed, the last buy price won't be updated.
Lastly, your sell configuration is expecting low profit. If you were intended, it's ok. Otherwise, you won't get much profits. You also don't subtract the commission. So take that into account.

Ah thanks i understand.
I think based with this in my mined i made a mistake


Fixed bundle products with no options

Related issues

closes #
Short description and why it's useful

When bundle products have no options they can have the same hash as a normal
product so I just hash the whole product which fixes the issue.
Why the has can be the same?
The hash can be the same as a normal product that is because the product_option are the same from a bundle product to a simple product.
Screenshots of visual changes before/after (if there are any)

Which environment this relates to
Check your case. In case of any doubts please read about Release Cycle

[x] Test version (https://test.storefrontcloud.io) - this is a new feature or improvement for Vue Storefront. I've created branch from develop branch and want to merge it back to develop
[ ] RC version (https://next.storefrontcloud.io) - this is a stabilisation fix for Release Candidate of Vue Storefront. I've created branch from release branch and want to merge it back to release
[ ] Stable version (https://demo.storefrontcloud.io) - this is an important fix for current stable version. I've created branch from hotfix or master branch and want to merge it back to hotfix

Upgrade Notes and Changelog

[x] No upgrade steps required (100% backward compatibility and no breaking changes)
[ ] I've updated the Upgrade notes and Changelog on how to port existing VS sites with this new feature

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change
Contribution and currently important rules acceptance

[x] I read and followed contribution rules

@patzick that was when I fixed the test. I have now renamed the test to its old name so it should be clear now what it does.


drivers: usb_dc_stm32 broken after west update

after "west update" the stm32 usb driver is broken
[ 80%] Built target drivers__i2c
/home/stefan/zephyr/drivers/usb/device/usb_dc_stm32.c: In function 'usb_dc_stm32_get_maximum_speed':
/home/stefan/zephyr/drivers/usb/device/usb_dc_stm32.c:326:11: error: 'USB_OTG_SPEED_LOW' undeclared (first use in this function); did you mean 'USB_OTG_SPEED_FULL'?
   speed = USB_OTG_SPEED_LOW;
           ^~~~~~~~~~~~~~~~~
           USB_OTG_SPEED_FULL
/home/stefan/zephyr/drivers/usb/device/usb_dc_stm32.c:326:11: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [zephyr/CMakeFiles/zephyr.dir/build.make:518: zephyr/CMakeFiles/zephyr.dir/drivers/usb/device/usb_dc_stm32.c.obj] Error 1

@StefJar, can you provide target on which this was spotted?
Txs

I am using an board based on the STM32F412RG
Think you can use the nucleo_f412zg for testing.
In case you want to rebuild my config:
the dts is based on st/f4/stm32f412Xg.dtsi
and I activate the usb via
&usbotg_fs {
	status = "ok";
};

the defconfig looks like
# usb
CONFIG_USB=y
CONFIG_USB_DC_STM32=y
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_DEVICE_VID=0x2FE1
CONFIG_USB_DEVICE_PID=0x69
CONFIG_USB_DEVICE_MANUFACTURER="xxx"
CONFIG_USB_DEVICE_PRODUCT="xxx"
CONFIG_USB_CDC_ACM=y
CONFIG_USB_VBUS_GPIO=y
CONFIG_USB_VBUS_GPIO_DEV_NAME="GPIOA"
CONFIG_USB_VBUS_GPIO_PIN_NUM=9

thx for checking

@erwango e.g. stm32f4_disco
This low-speed option is superfluous in my opinion. Workaround:
diff --git a/drivers/usb/device/usb_dc_stm32.c b/drivers/usb/device/usb_dc_stm32.c
index b16f6ab7a3..89c0292965 100644
--- a/drivers/usb/device/usb_dc_stm32.c
+++ b/drivers/usb/device/usb_dc_stm32.c
@@ -322,8 +322,6 @@ static u32_t usb_dc_stm32_get_maximum_speed(void)
 #else
                speed = USB_OTG_SPEED_FULL;
 #endif /* DT_COMPAT_ST_STM32_USBPHYC && DT_USB_HS_BASE_ADDRESS */
-       } else if (!strncmp(DT_USB_MAXIMUM_SPEED, "low-speed", 9)) {
-               speed = USB_OTG_SPEED_LOW;
        } else {
                LOG_DBG("Unsupported maximum speed defined in device tree. "
                        "USB controller will default to its maximum HW "

this fixes the error

@jfischer-phytec-iot, indeed, I'm checking internally this is the case for all STM32 references (and code could be removed) or if it's supported in some samples (then we need to protect these lines).


blob.GetAll fails from a certain height

Celestia Node version
Semantic version: v0.12.4 Commit: 8e5a71746bc9bd9300ad3e4853797e64fdd1d018 Build Date: Fri Feb  9 11:20:30 UTC 2024 Golang version: go1.21.1
OS
System version: amd64/linux
Install tools
Followed step-by-step tutorial in the docs to install a celestia DA full node for Mainnet Beta

https://docs.celestia.org/nodes/celestia-node
https://docs.celestia.org/nodes/full-storage-nod

Others
Running on AWS m5.4xlarge:

16 vCPU
64GB RAM

Steps to reproduce it

Setup celestia DA full node
Start syncing process
Write a script to query blob.GetAll for each height, e.g. using
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $CELESTIA_NODE_AUTH_TOKEN" -d '{   "id": 1,   "jsonrpc": "2.0",   "method": "blob.GetAll",   "params": [       $HEIGHT,       ["AAAAAAAAAAAAAAAAAAAAAAAAAIZiad33fbxA7Z0="]   ] }' <IP_ADDRESS>:26658

Expected result
I expect to get a response for every request to store all blobs for a given namespace.
Actual result
Instead, the request stalls starting from a certain height (observed starting from height740731, 740740), although requesting all blobs for a lower height works totally fine. The node doesn't throw errors when requesting, CPU and RAM usage limits are not exceeded. A node restart ends in the same issue, although resetting the store with celestia full unsafe-reset-store.
Relevant log output
Couldn't find any possibly related node logs

Notes
No response

Might be related to https://github.com/celestiaorg/celestia-node/issues/2915

Could you please run your node with metrics flags pointing to our otel collecter? We would also need your peerID (show at node start) to filter out your node metrics.
--metrics.endpoint otel.celestia.observer

Today I found out that restarting the node or the whole server fixes the issue shortly, but just increases that certain height: I couldn't query blob.GetAll on my instance for all heights >= 740740; after restarting, I can't query it for all heights >= 740817.

Seems related to https://github.com/celestiaorg/go-header/pull/159

I have reproduced the issue and I can confirm your thesis @vgonkivs, because the error occurs when querying one blob more than one time. However, I've appended the logs of my node when reproducing:
celestia-node.txt
In another terminal, I have executed the following commands (every time I exited the curl execution with ^C, the response was stalling for more than 30s):
`Wed Feb 28 14:51:51 UTC 2024
ubuntu@ip-172-31-1-21:~$ curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $CELESTIA_NODE_AUTH_TOKEN" -d '{ "id": 1, "jsonrpc": "2.0", "method": "blob.GetAll", "params": [ 745000, ["AAAAAAAAAAAAAAAAAAAAAAAAAIZiad33fbxA7Z0="] ] }' <IP_ADDRESS>:26658
{"jsonrpc":"2.0","id":1,"error":{"code":1,"message":"getting blobs for namespace(00000000000000000000000000000000000000866269ddf77dbc40ed9d): blob: not found\nblob: not found"}}
ubuntu@ip-172-31-1-21:~$ curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $CELESTIA_NODE_AUTH_TOKEN" -d '{ "id": 1, "jsonrpc": "2.0", "method": "blob.GetAll", "params": [ 745000, ["AAAAAAAAAAAAAAAAAAAAAAAAAIZiad33fbxA7Z0="] ] }' <IP_ADDRESS>:26658
^C
ubuntu@ip-172-31-1-21:~$ curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $CELESTIA_NODE_AUTH_TOKEN" -d '{ "id": 1, "jsonrpc": "2.0", "method": "blob.GetAll", "params": [ 745010, ["AAAAAAAAAAAAAAAAAAAAAAAAAIZiad33fbxA7Z0="] ] }' <IP_ADDRESS>:26658
{"jsonrpc":"2.0","id":1,"error":{"code":1,"message":"getting blobs for namespace(00000000000000000000000000000000000000866269ddf77dbc40ed9d): blob: not found\nblob: not found"}}
ubuntu@ip-172-31-1-21:~$ curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $CELESTIA_NODE_AUTH_TOKEN" -d '{ "id": 1, "jsonrpc": "2.0", "method": "blob.GetAll", "params": [ 745010, ["AAAAAAAAAAAAAAAAAAAAAAAAAIZiad33fbxA7Z0="] ] }' <IP_ADDRESS>:26658
{"jsonrpc":"2.0","id":1,"error":{"code":1,"message":"getting blobs for namespace(00000000000000000000000000000000000000866269ddf77dbc40ed9d): blob: not found\nblob: not found"}}
ubuntu@ip-172-31-1-21:~$ curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $CELESTIA_NODE_AUTH_TOKEN" -d '{ "id": 1, "jsonrpc": "2.0", "method": "blob.GetAll", "params": [ 745010, ["AAAAAAAAAAAAAAAAAAAAAAAAAIZiad33fbxA7Z0="] ] }' <IP_ADDRESS>:26658
{"jsonrpc":"2.0","id":1,"error":{"code":1,"message":"getting blobs for namespace(00000000000000000000000000000000000000866269ddf77dbc40ed9d): blob: not found\nblob: not found"}}
ubuntu@ip-172-31-1-21:~$ curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $CELESTIA_NODE_AUTH_TOKEN" -d '{ "id": 1, "jsonrpc": "2.0", "method": "blob.GetAll", "params": [ 745010, ["AAAAAAAAAAAAAAAAAAAAAAAAAIZiad33fbxA7Z0="] ] }' <IP_ADDRESS>:26658
^C`

@christopherbrumm, could you also test this behavior on the LN? I can see you using FN and we wonder if that's consistent across node types, particularly light

@christopherbrumm, could you also test this behavior on the LN? I can see you using FN and we wonder if that's consistent across node types, particularly light

I was able to reproduce the issue on the LN. Will provide docs if required.

For completeness, linking the script to reproduce the issue in this thread:
https://github.com/christopherbrumm/scripts/tree/main/celestia

Hello, @christopherbrumm. Thanks for the script. It helped a lot. Yesterday I had a chance to reproduce this issue. It seems that @renaynay was right: the root cause was in syncer. This issue was fixed at https://github.com/celestiaorg/go-header/pull/159. I tried your script on version v0.13(which already contains the fix) and for now, it works fine. Could you please also try v0.13?

That's great news, will try and confirm it asap in order to close this issue.
Thanks a lot!

Hi @vgonkivs, after five attempts with different setups, I can confirm that the upgrade to v0.13 did not completely fix the reported issue.
The node still stalls at a certain height and makes blob requests not possible. I am still using the provided script to replicate this issue.
Also, I've noticed another issue that occurs when requesting share.GetEDS. Essentially, it mirrors the blob issue: the node stalls when requesting data above a certain level. I have added an additional script to reproduce this issue with more context in the README.
I deployed five nodes on five different instances. While four of them have the issues listed, one is working fine. After realizing that one node has no problems providing blobs and shares, I tried to duplicate the setup. However, a node with identical setup shows the same problems again.
cc @Wondertan

Currently running 3 nodes on a fresh server and for all 3 the scripts are running through super smoothly.
Will keep this thread updated.

I guess we can close this issue then. Regarding the high duration of some requests: the current protocol for getting shares is slow(a known problem) and we are currently working on better solutions.
cc @Wondertan

Yes, lets close then


Add puzzle (jigsaw) variants

The tabs of the normal puzzle icon feel a lot more puzzly to me.

The tabs of the normal puzzle icon feel a lot more puzzly to me.

@jguddas See latest push, and alts above… https://github.com/lucide-icons/lucide/pull/1268#issue-1706715572

The notches are too small and dense and the whole icon is a bit too bottom left heavy, maybe something like this?

maybe something like this?

@karsa-mistmere Works for me…

Both feel a bit small.
For the naming, they could all be something-puzzle-piece.
The first one could be irregular and the second one could be stack
Scratch wiki: hat, stack, reporter, boolean, or cap

Hmm, not sure edge really describes it well.

Looks like the comment bot has gone haywire again 🤪

Hmm, not sure edge really describes it well.

@jguddas Looks more like an “edge piece” to me, than anything else… Maybe puzzle-piece-simple?

Hmm, not sure edge really describes it well.

@jguddas Looks more like an “edge piece” to me, than anything else… Maybe puzzle-piece-simple?

For it to be an edge piece it would have to have one less flat side.

For it to be an edge piece it would have to have one less flat side.

@jguddas Technically yes… What do you think of -simple or -minimal?

Can we have some use cases described why we should have another puzzle icon?

Can we have some use cases described why we should have another puzzle icon?

@ericfennis One obvious use case is to represent plugins/extensions (not just for browsers, but to lots of other apps/editors)…
The existing diagonal piece doesn’t necessarily fit so nicely into a toolbar, or alongside other, more squared, icons.
I’m personally less bothered about puzzle-2 (if you guys were to insist on dropping one—although it looks more like a stereotypical puzzle piece…)
Also, I have since noticed these all over the place in the wild…
puzzle-2 here for example in Chrome/Brave:

And the simple puzzle-3 here in Safari iOS, among other places…

I think the diagonal icon could work here just as well, I kind of feel like this is not really a separate use case, more of a personal preference.

That being said, as far as I'm concerned, we could add more variants, as long as have sufficiently large gaps between opposing sides of the notches and are well balanced in general, but let's keep things simple, two are probably already plenty, we don't need to cover all possible puzzle pieces in existence. :)

That being said, as far as I'm concerned, we could add more variants … but let's keep things simple, two are probably already plenty, we don't need to cover all possible puzzle pieces in existence. :)

Sure, I wasn’t planning on adding any more! :) Like I said, (currently named) puzzle-3 trumps the others for me…
So you are saying I rename that (-3 to -2) and we just go with those pair…? @karsa-mistmere cc: @ericfennis @jguddas

I'm not so sure. 🤔
What exactly does the alternate bring to the table apart from being very vertically off centre?

I'm ok with these changes in this PR

I'm against adding this variant.

With the comments from @karsa-mistmere and @jguddas I think it's better we close this one and first discuss if we need these variants.


Muliple conventions

URL(s) with the issue:
https://www.tensorflow.org/tutorials/quickstart/beginner
https://www.tensorflow.org/tutorials/keras/classification?hl=en,https://keras.io/api/models/sequential/
https://keras.io/guides/sequential_model/
Description of issue (what needs changing):
tf.keras.layers.Dense
keras.layers.Dense
layers.Dense
Muliple conventions are followed. Which is the preferred way?

basically tensorflow uses keras as backend ,so its  basically depends upon which one your using either keras or tennsorflow.
if your using keras ,then you can use
import keras from keras.layers import Dense
if you want to use tensorflow  you  can  use tensorflow
`import tensorflow as tf
model.add(tf.keras.layers.Dense(128,activation=tf.nn.relu)) '
basically both codes working same.
Keras is a neural network library while TensorFlow is the open-source library for a number of various tasks in machine learning. TensorFlow provides both high-level and low-level APIs while Keras provides only high-level APIs. Keras is built in Python which makes it way more user-friendly than TensorFlow


logging-relation-changed fails behind proxy

Steps to reproduce

deploy behind proxy
relate logging relation
see the failure

Expected behavior
Relating logging provider behind a proxy should not fail, except if the proxy has not authorized the URL. (which in turn is another issue, since artifact comes from github...)
Actual behavior

Requests to fetch https://github.com/canonical/loki-k8s-operator/releases/download/promtail-v2.5.0/promtail-static-amd64.gz fails from within the relation library.
Error
2024-04-23T13:00:24.668Z [container-agent] 2024-04-23 13:00:24 ERROR juju-log logging:152: Uncaught exception while in charm code:
2024-04-23T13:00:24.668Z [container-agent] Traceback (most recent call last):
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/urllib/request.py", line 1348, in do_open
2024-04-23T13:00:24.668Z [container-agent]     h.request(req.get_method(), req.selector, req.data, headers,
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/http/client.py", line 1283, in request
2024-04-23T13:00:24.668Z [container-agent]     self._send_request(method, url, body, headers, encode_chunked)
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/http/client.py", line 1329, in _send_request
2024-04-23T13:00:24.668Z [container-agent]     self.endheaders(body, encode_chunked=encode_chunked)
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/http/client.py", line 1278, in endheaders
2024-04-23T13:00:24.668Z [container-agent]     self._send_output(message_body, encode_chunked=encode_chunked)
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/http/client.py", line 1038, in _send_output
2024-04-23T13:00:24.668Z [container-agent]     self.send(msg)
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/http/client.py", line 976, in send
2024-04-23T13:00:24.668Z [container-agent]     self.connect()
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/http/client.py", line 1448, in connect
2024-04-23T13:00:24.668Z [container-agent]     super().connect()
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/http/client.py", line 942, in connect
2024-04-23T13:00:24.668Z [container-agent]     self.sock = self._create_connection(
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/socket.py", line 845, in create_connection
2024-04-23T13:00:24.668Z [container-agent]     raise err
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/socket.py", line 833, in create_connection
2024-04-23T13:00:24.668Z [container-agent]     sock.connect(sa)
2024-04-23T13:00:24.668Z [container-agent] OSError: [Errno 113] No route to host
2024-04-23T13:00:24.668Z [container-agent]
2024-04-23T13:00:24.668Z [container-agent] During handling of the above exception, another exception occurred:
2024-04-23T13:00:24.668Z [container-agent]
2024-04-23T13:00:24.668Z [container-agent] Traceback (most recent call last):
2024-04-23T13:00:24.668Z [container-agent]   File "/var/lib/juju/agents/unit-mysql-0/charm/./src/charm.py", line 770, in <module>
2024-04-23T13:00:24.668Z [container-agent]     main(MySQLOperatorCharm)
2024-04-23T13:00:24.668Z [container-agent]   File "/var/lib/juju/agents/unit-mysql-0/charm/venv/ops/main.py", line 456, in main
2024-04-23T13:00:24.668Z [container-agent]     _emit_charm_event(charm, dispatcher.event_name)
2024-04-23T13:00:24.668Z [container-agent]   File "/var/lib/juju/agents/unit-mysql-0/charm/venv/ops/main.py", line 144, in _emit_charm_event
2024-04-23T13:00:24.668Z [container-agent]     event_to_emit.emit(*args, **kwargs)
2024-04-23T13:00:24.668Z [container-agent]   File "/var/lib/juju/agents/unit-mysql-0/charm/venv/ops/framework.py", line 351, in emit
2024-04-23T13:00:24.668Z [container-agent]     framework._emit(event)
2024-04-23T13:00:24.668Z [container-agent]   File "/var/lib/juju/agents/unit-mysql-0/charm/venv/ops/framework.py", line 853, in _emit
2024-04-23T13:00:24.668Z [container-agent]     self._reemit(event_path)
2024-04-23T13:00:24.668Z [container-agent]   File "/var/lib/juju/agents/unit-mysql-0/charm/venv/ops/framework.py", line 943, in _reemit
2024-04-23T13:00:24.668Z [container-agent]     custom_handler(event)
2024-04-23T13:00:24.668Z [container-agent]   File "/var/lib/juju/agents/unit-mysql-0/charm/lib/charms/loki_k8s/v0/loki_push_api.py", line 1835, in _on_relation_changed
2024-04-23T13:00:24.668Z [container-agent]     self._setup_promtail()
2024-04-23T13:00:24.668Z [container-agent]   File "/var/lib/juju/agents/unit-mysql-0/charm/lib/charms/loki_k8s/v0/loki_push_api.py", line 2272, in _setup_promtail
2024-04-23T13:00:24.668Z [container-agent]     self._obtain_promtail(promtail_binaries[self._arch])
2024-04-23T13:00:24.668Z [container-agent]   File "/var/lib/juju/agents/unit-mysql-0/charm/lib/charms/loki_k8s/v0/loki_push_api.py", line 1971, in _obtain_promtail
2024-04-23T13:00:24.668Z [container-agent]     self._download_and_push_promtail_to_workload(promtail_info)
2024-04-23T13:00:24.668Z [container-agent]   File "/var/lib/juju/agents/unit-mysql-0/charm/lib/charms/loki_k8s/v0/loki_push_api.py", line 2093, in _download_and_push_promtail_to_workload
2024-04-23T13:00:24.668Z [container-agent]     with request.urlopen(promtail_info["url"]) as r:
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
2024-04-23T13:00:24.668Z [container-agent]     return opener.open(url, data, timeout)
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/urllib/request.py", line 519, in open
2024-04-23T13:00:24.668Z [container-agent]     response = self._open(req, data)
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/urllib/request.py", line 536, in _open
2024-04-23T13:00:24.668Z [container-agent]     result = self._call_chain(self.handle_open, protocol, protocol +
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
2024-04-23T13:00:24.668Z [container-agent]     result = func(*args)
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/urllib/request.py", line 1391, in https_open
2024-04-23T13:00:24.668Z [container-agent]     return self.do_open(http.client.HTTPSConnection, req,
2024-04-23T13:00:24.668Z [container-agent]   File "/usr/lib/python3.10/urllib/request.py", line 1351, in do_open
2024-04-23T13:00:24.668Z [container-agent]     raise URLError(err)
2024-04-23T13:00:24.668Z [container-agent] urllib.error.URLError: <urlopen error [Errno 113] No route to host>

After setting proxies within a debug-code execution, the charm code managed to download the artifact.
Additional context
Newer versions of the library support reading proxy information from JUJU_... vars: https://github.com/canonical/loki-k8s-operator/blob/9f7580e9b441697246f566c63dd7bd93858c2a33/lib/charms/loki_k8s/v0/loki_push_api.py#L2123

Fixed on upstream o11y libs


How to compile to arm linux?

Hello, Can it be compiled to arm linux?and how to compile?
Thanks .

yes, its dependent libraries can be run on arm as well. I recommend you to install dependencies.txt firstly.


add cargo build --release to ci

Which issue does this PR close?

Closes #1728
Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

I don't think you need build per se - using check is good enough


Update base for Docker build image

I came across this in #392, where it became clear that Ubuntu's 18.04 release (now several years old) was using quite ancient versions of certain tools.

I think the idea is that we want to continue to support Ubuntu's 18.04 (bionic) users.   At least we should probably not stop supporting them unless we have good reason to.

Ah, I don't think I understood your Dockerfile comment correctly... but I get it now — maintain backwards compatibility for as long as possible.

One thing I'll note is that in rust-lang/rust we ran into toolchain issues a lot and the solution was that while we'd start with an ancient docker container we'd download and build newer versions of tools needed, e.g. a newer git, cmake, openssl, clang, etc.


Update nodejs-typescript-food-catalog with Azure deployment workflow

Tested as far as successfully running the provision and deploy lifecycles stages.

Added support for deploying a multi-tenant app registration, the same approach used for local development. Azure Key Vault is used to secure the client secret and storage account connection string, and the function app uses Key Vault references to access the values using MSI authentication.


BaseSettings dict with defaults

Question
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
pydantic version: 1.6.1
pydantic compiled: True
install path: /venv/lib/python3.8/site-packages/pydantic
python version: 3.8.5 (default, Jul 27 2020, 08:42:51)  [GCC 10.1.0]
platform: Linux-5.7.11-arch1-1-x86_64-with-glibc2.2.5
optional deps. installed: ['email-validator', 'devtools']

Hi, so I'm trying to use the BaseSettings feature of Pydantic and my config is not one-to-one with my env vars i.e. I combine various env vars to one dictionary in the settings class for example.
from pydantic import BaseSettings, BaseModel
from pydantic.networks import HttpUrl
from typing import Dict

class DatabaseConfig(BaseModel):
    database: str = os.environ["POSTGRES_DB"]
    user: str = os.environ["POSTGRES_USER"]
    password: str = os.environ["POSTGRES_PASSWORD"]
    host: str = os.environ["POSTGRES_HOST"]
    port: int = os.environ["POSTGRES_PORT"]

class APIConfig(BaseModel):
    url: HttpUrl = os.environ["API_URL"]
    path: Dict[str, str] = {"default": os.environ["MY_PATH"]}
    timeout: int = os.environ["API_TIMEOUT"]

class APIList(BaseModel):
    my_api: APIConfig

class Settings(BaseSettings):
    DATABASE: DatabaseConfig = {}
    API: APIList = {}

So for DATABASE, pydantic complains with a Validation Error, field required if I don't put the empty {}. However, with API, even with the empty {} it still complains with the same error.
How can I fix this? At best I would like the functionality of
settings = Settings()
settings.API.my_api.url

With the defaults handling the call to my environment variables.
Thanks for the awesome library.

Hi @alecgerona
Settings.API should be a valid APIList instance
class Settings(BaseSettings):
    DATABASE: DatabaseConfig = {}
    API: APIList = {}

settings = Settings()

pydantic.error_wrappers.ValidationError: 1 validation error for Settings
API -> my_api
  field required (type=value_error.missing)

So you could just change default value {} to {'my_api': {}}
class Settings(BaseSettings):
    DATABASE: DatabaseConfig = {}
    API: APIList = {'my_api': {}}


Improve integration tests to fix intermittent test failures

This PR improves integration tests to fix intermittent test failures.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Naduni Pamudika seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


[zh] Resync kcm reference

Also unified some styling of the tables,

/lgtm
/approve

/lgtm
/approve


Extension executable not found

Which OS: Fedora 28
Which extension version: 1.1.1
Which LLDB version: 6.0.1
Which VSCode version:  1.29.1
What is the problem and how did you get there:
This morning everything was working fine, but when I installed and removed the Macaroon-theme, my debugging stopped working the following message:
Could not start debugging because executable '~/.vscode/extensions/vadimcn.vscode-lldb-1.1.1/lldb/bin/lldb' was not found.

The file was not there, running the diagnostics does not accuse any error:
--- Checking version ---
lldb version 6.0.1
--- Checking Python ---
(lldb) script import sys, io, lldb
(lldb) script print(lldb.SBDebugger.Create().IsValid())
True
(lldb) script print("OK")
OK
--- Done ---

My output after tying to debug
...
Matching compilation artifacts:
{ fileName: '~/Documents/Rust/prog/target/debug/prog',
  name: 'prog',
  kind: 'bin' }
Starting new session with:
{ type: 'lldb',
  request: 'launch',
  name: 'Debug executable \'prog\'',
  args: [],
  cwd: '${workspaceFolder}',
  program: '~/Documents/Rust/prog/target/debug/prog' }
Error: spawn ~/.vscode/extensions/vadimcn.vscode-lldb-1.1.1/lldb/bin/lldb ENOENT

the same, I try to explicit setting lldb path in settings, it works.
"lldb.executable": "/usr/bin/lldb"
as you see, it was already in the environment, it was confusing.
OS: ubuntu 18.10
vscode version: 1.29.1
lldb version: 7.0.0

Oops, looks like I messed up default path handling!
Should be fixed in 1.1.2.  Can you please verify?


Wifi isn't showing up to connect via PC

So today I tried to install Coder onto my nice little SD card that I had been running Raspbian on. I had a bit of trouble trying to figure out how to get the disk image onto the SD card, since I am running Windows 8.1, and I don't get the nice little installer.
So here is what I did:
Downloaded Coder (the zip)
Downloaded and installed the Bonjour Print Services thing
Downloaded and installed SD Formatter
Formatted SD with Quick Format (just used the setting that it opened with)
Downloaded and installed Win32DiskImager
Extracted the coder disk image out of the folder in the zip that WASN'T the Mac folder (the self-titled one)
Wrote the disk image to the SD card, it said it worked. It also renamed my SD card Coder.
Ejected
Stuck the SD card in my Pi, stuck in power cord, and HDMI cable/cord thing.
There wasn't anything showing up on the screen, so I took out the HDMI cord
And It looks like its on, the little LEDs are on, but the wifi isn't showing up.
I do have a WiFi usb thing, it worked when I was running Raspbian.
Anybody have any idea of what I did wrong? It isn't like the instructions for Windows were super detailed or anything, so....
Frankly, I am a bit frustrated that I couldn't find support anywhere else but here.
Thanks!
Was I supposed to leave Raspbian on there?

All windows 8 problems still on 8.1.
It is Microsoft not liking all things  Raspbian and image formatter as
it is still wanting to make Money.
Not give things like Linux Raspbian a chance to grow as it is competion.
I have split my Hard Disk on my laptop, one side is windows 7 and the other
is Linux ..... Arduino and Raspbian work fine.    So windows 8, and 8.1 is
fit for the trash can.
It is not for helping you to use Raspbian, the size of your SD card will
make no difference either.  4 to 64 GB windows is the problem,  go back to
windows 7.    Or perhaps wait for Windows  10  to have it's own problems
sorted. You will be banking your head with 8 & 8.1.
Good luck
On Wednesday, March 4, 2015, WhovianSupreme<EMAIL_ADDRESS>wrote:

So today I tried to install Coder onto my nice little SD card that I had
been running Raspbian on. I had a bit of trouble trying to figure out how
to get the disk image onto the SD card, since I am running Windows 8.1, and
I don't get the nice little installer.
So here is what I did:
Downloaded Coder (the zip)
Downloaded and installed the Bonjour Print Services thing
Downloaded and installed SD Formatter
Formatted SD with Quick Format (just used the setting that it opened with)
Downloaded and installed Win32DiskImager
Extracted the coder disk image out of the folder in the zip that WASN'T
the Mac folder (the self-titled one)
Wrote the disk image to the SD card, it said it worked. It also renamed my
SD card Coder.
Ejected
Stuck the SD card in my Pi, stuck in power cord, and HDMI cable/cord thing.
There wasn't anything showing up on the screen, so I took out the HDMI cord
And It looks like its on, the little LEDs are on, but the wifi isn't
showing up.
I do have a WiFi usb thing, it worked when I was running Raspbian.
Anybody have any idea of what I did wrong? It isn't like the instructions
for Windows were super detailed or anything, so....
Frankly, I am a bit frustrated that I couldn't find support anywhere else
but here.
Thanks!
—
Reply to this email directly or view it on GitHub
https://github.com/googlecreativelab/coder/issues/95.

@WhovianSupreme sorry to hear you're having difficulties. The good news is that Coder runs on top of raspbian, so if you've had rasbian working in the past, we should be able to get Coder working as well. Once you get the device booting, it shouldn't matter what OS you have on your computer.  Here's some quick thoughts:

you saw that the sd card was renamed to coder. that's a good sign and means win32diskimager is doing its job. can you confirm that your sd is 4GB or larger? if not, it's possible for the boot drive to be successfully created (the disk you see mounted in windows), but for there not to be enough disk for the entire linux partition to be created.

it sounds like you have lights blinking, which is a good sign that the device is actually booting. you should definitely see something on HDMI out, though, if you're using it. in that respect, it should boot just like a normal raspbian image. make sure hdmi is connected and tv is on before you plug in the power -- i've noticed that sometimes the TV doesn't get detected correctly if it's plugged in afterward. If we can get this part working, it might help with debugging what is happening.

depending on what device you have (B, B+ or 2 B), it might be a half minute to a minute for it to finish booting. at the end of this, if your wifi adapter has an led, you should be able to see it blinking when it establishes a network connection.

coder will only start its CoderConfig network if it doesn't have an ethernet connection. when there's no ethernet and it hasn't been configured for your wireless network, it will create an Ad-Hoc (device to device) network.

I noticed this article that makes it sound like windows 8.1 won't show ad-hoc networks anymore, and you may need to do something more manual:
http://answers.microsoft.com/en-us/windows/forum/windows8_1-networking/windows-81-ad-hoc-not-showing/5d75d887-ff59-425e-a480-9f80ada63627
If that's true, I'd actually recommend just setting up your wireless connection manually. If you look on the sd card inside coder_settings/reset_files, you'll find a file called wpa_supplicant.txt. Make a copy of that and put it in coder_settings/wpa_supplicant.txt. Edit that file using a program like Notepadd++ that respect unix line endings, and look for a section like this:
#
# A typical encypted network using WPA
#
network={
    ssid="Network Name"
    psk="yourpassword"

    # Change to 0 to enable
    disabled=1
    scan_ssid=1
    priority=4
}

You can edit that with your network id, password, and change disabled to 0. Save it. When coder boots, it should read this file and start up on your normal wireless network.

@jmstriegel So I just got back to try to fix it, and as soon as I stuck the SD card in my PC it said there was something wrong, and I should scan it. I opened file explorer and it seems as though it should have worked, it seems intact. I just did the whole copying the wpa_supplicant.txt file, and I noticed that it said that I had 55.9 MB total on the SD card. I am a bit confused considering that it said that I had, like, a gig, earlier. So I am not entirely sure what happened there, but I have a sinking feeling that it was because I didn't do the whole Erase All the Things with win32diskimager, and I didn't do any special partition-y stuff. So should I just re-do the whole process and try with the Erase or Overwrite option?

Seems to be working... But after all this trouble, the biggest problem left is that I can't find my mouse.

@jmstriegel Its asking for my login, which I don't have. I tried what I copied with that .txt file earlier, but it didn't work.

Ok, so it's booting now! Is it asking for that on your TV or in the web browser? You will want to connect from your browser to get things set up for the first time.
If you haven't created a password yet, the console/ssh password is just "raspberry", but if you connect via your web browser the first thing it will want you to do is set a new password.

TV, and I was booting up the Pi, and it asked for coder login, then password.
So what would the login be?

Until you set it up, login is pi, username is raspberry.
Can you tell if if connected to your wifi network? Instead of logging in at the TV, to connect to coder, you'll want to open chrome on your laptop and go to http://coder.local (or for the moment you can connect to the ip address that you see on your tv).

Just to clarify, what Coder does is make it possible to program web apps on your pi through a web browser, without it needing to be connected to a keyboard or a tv.

The Pi itself (connected to my TV and a mouse and keyboard) was asking for my login. The network wasn't showing up.

@jmstriegel So I logged in on my Pi, via the TV, and it worked with pi and raspberry as login and pass. However, the wifi isn't showing up. Is there something I have to do to on top of this? And it is a seperate wifi called coderconfig, right?

@WhovianSupreme see my note above about windows 8.1 not working with ad-hoc networks. You aren't going to see any of the Coder stuff while you're looking at things on your tv. I had you connect to the TV so you can confirm that everything is booting, and it also will be a way for you to manually configure things.
I'd recommend following the instructions above to manually configure the device's wireless settings so that it can connect to your router. Just to get stuff working the first time, you can also plug Coder right into an ethernet port on your router. Once it is running on the network, you should connect to the device's IP using your PC's web browser. Usually, this means going to http://coder.local/ but you can also go to http://[ipaddress], where [ipaddress] is the ip address you see printed out when you boot while connected to your TV.

@jmstriegel Are you referring to the article linked above? If so, I tried this one:

Because the wireless network picker in Windows 8.1 doesn't show ad-hoc networks, connecting must be done by hand.
To see all networks in range, including ad-hoc, run this command in command shell (cmd.exe):

netsh wlan show networks

SETUP
This must be done once per network.
go to "Network and Sharing Center"
click "Set up a new connection or network"
double click "Manually connect to a wireless network"
enter the SSID of the ad-hoc network (as shown by "netsh wlan show networks") into the "Network >name" field
configure security settings accordingly
uncheck "Start this connection automatically" (important)
click "Next", then "Close"
Run this command (important):

netsh wlan set profileparameter  connectiontype=ibss
Replace  with the SSID of your network.

CONNECT
After setting up, run this command whenever you want to connect:
netsh wlan connect
Replace  with the SSID of your network.
Hovering over WiFi icon in system tray will show the name of the network that you are currently >connected to, even if it's an ad-hoc network (the network picker will not show it if it's ad-hoc). The >name is also visible in "Network and Sharing Center" window.

And, well, it didn't work at about the first step. I don't see a place anywhere to set up a new connection, it only has Manage Known Networks, Ethernet, and Add a VPN connection.
 Also, (this is shameful) I don't have a clue where the router is, and if I did, I wouldn't know how to set up Ethernet.
I'm terribly sorry for bothering you and using up your time.


Improve BaseNetwork, TruncatedBaseNetwork & fine tuning

First step in being able to use this for classification.

Remove concept of endpoint from BaseNetwork.
Improve docstrings.
Change way to do fine tuning (now it also works on ResNet or any architecture).
Add unit tests.

If anyone can come up with a better name than fine_tune_from, I am all ears :joy:


added templates for output and config.xml

WIP. Need to replace the template with the correct template for ktest to work correctly. Merge After we have semantics working correctly for json parsing.

I'm ready to merge this, @msaxena2 please merge if you are too.

@ehildenb Go ahead and merge. I don't have anything to push up.


Fail to use multiprocessing from map function

Currently the following code fails on pickle when trying to invoke the pool.map from inside of the map function
#!/usr/bin/python

import lithops
import multiprocessing

def mult(val):
    print(val)
    return val * val

def testPool(vals):
    pool = multiprocessing.Pool(8)
    return pool.map(mult, vals)

fexec = lithops.FunctionExecutor()
fexec.call_async(testPool, [1, 2, 3])
print(fexec.get_result())

the stacktrace is:
Traceback (most recent call last):
  File "/action/lithops/worker/jobrunner.py", line 278, in run
  File "poolTest.py", line 19, in testPool
    return pool.map(mult, vals)
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 364, in map
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 771, in get
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 537, in _handle_tasks
  File "/usr/local/lib/python3.8/multiprocessing/connection.py", line 206, in send
  File "/usr/local/lib/python3.8/multiprocessing/reduction.py", line 51, in dumps
_pickle.PicklingError: Can't pickle <function mult at 0x7fcf0dd8a790>: attribute lookup mult on __main__ failed

@JosepSampe can you please take a look?

@kpavel Ok, I will check it

I started investigating this and seems that the problem is located in the runtime, and not in lithops itself.
It needs further investigation, but for now what I did is to create a simple function in the cloud using the ibmcloud cli, and test it with different runtimes. The code is the next (as you can se it is not lithops related):
import sys
import multiprocessing

def mult(val):
    return val * val

def testPool(vals):
    pool = multiprocessing.Pool(8)
    result = pool.map(mult, vals)
    print(result)

def main(dict):
    testPool([1, 2, 3])
    return { 'message': 'Hello world' }

Then I created 3 different actions with different runtimes (and python versions):
ic fn action update test_mp_36 test_mp.py --docker ibmfunctions/action-python-v3.6
ic fn action update test_mp_37 test_mp.py --docker ibmfunctions/action-python-v3.7
ic fn action update test_mp_38 test_mp.py --docker jsampe/action-python-v3.8

Only the runtime with Python3.7 executes the action correctly, the rest of actions fail with the error message you posted above.

Closing it for now since it is an issue inherited from python and not from Lithops. If a user wants to use the multiprocessing library inside a lithops function, the function must be defined in a separate file.


feat(sfc): support using extends interface with defineProps()

close #4498

Why do the feat still no be merged to master branch.

Is it going to be merged ?

@yyx990803

Is it going to be merged ?

Merge progress? Anyone have any clever workarounds? This would go a long way in helping abstract out some complicated bits of our component library...

Over a year has passed since this PR got created :/ Merging it would help to really simplify our project :)


Updating snapshots doesn't remove obsolete ones

Describe the bug
For a .tsx file with snapshot tests, if a new snapshot is added and later removed this then becomes an "obsolete" snapshot. In the interactive terminal when using Vitest's watch mode, pressing u to update snapshots does not remove obsolete ones. In Jest, u does two things: update existing snapshots, and remove obsolete ones.

When pressing u Vitest prints Re-running tests... [ update snapshot ] but nothing happns.

The workaround is to delete the obsolete snapshots manually.
Reproduction
Repro: https://stackblitz.com/edit/node-jhjpur?file=src%2Fcomponents%2FButton.test.tsx
System Info
System:
    OS: macOS 11.6.2
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 43.79 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.0 - /usr/local/bin/node
    Yarn: 1.22.17 - ~/.yarn/bin/yarn
    npm: 8.1.2 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Chrome: 98.0.4758.80
    Edge: 98.0.1108.43
    Firefox: 96.0.3
    Firefox Developer Edition: 79.0
    Safari: 15.3
    Safari Technology Preview: 15.4
  npmPackages:
    @vitejs/plugin-react: ^1.1.4 => 1.1.4
    vite: ^2.7.13 => 2.7.13
    vitest: ^0.2.7 => 0.2.7

### Used Package Manager

yarn

### Validations

- [X] Follow our [Code of Conduct](https://github.com/vitest-dev/vitest/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitest.dev/guide).
- [X] Check that there isn't [already an issue](https://github.com/vitest-dev/vitest/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitest-dev/vitest/discussions) or join our [Discord Chat Server](https://chat.vitest.dev).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.

I have the same issue, which is also mentioned at #595 . Here is my test result: https://github.com/originjs/origin.js/runs/5119787485?check_suite_focus=true
These snapshot failures still happened though I have run vitest run -u.

Upgrading to version 0.3.2 works for me.

Cannot reproduce on the latest version. @uicrafts can you confirm it is fixed?

Unfortunately, I can still reproduce this on 0.5.0.
See here: https://stackblitz.com/edit/node-qtcaat?file=src%2Fcomponents%2FButton.test.tsx

still reproducable on 0.9.4.
This one should really get fixed before 1.0.0

Same for me, obsolete snapshot still remains after updating snapshots

Seeing this in 0.12.9 as well.
Interestingly that it did detect them:
 Snapshots  7 written
            7 obsolete

But didn't do anything about them.

Same issue here with vitest 0.13.1

@antfu Looks like this is still an issue on 0.14.1, FYI.

yep, can confirm that this is still an open issue for 0.14.2

Confirmed this is still an issue and also seeing no updates for failing snapshots.
Example repo here: https://github.com/gkiely/vite-app-rtl
Steps to reproduce:
npm install
npm test

> Press u
> Doesn't update

Same issue using 0.15.1

Thanks for fixing this @sheremet-va!

How to run the update a snapshot without removing the obsolete ones?


chore: manage labels through labels.yml

@enocom are there any additional proxy specific labels that need to be added to labels.yml


[Infinity 2d20] Sheet overhaul

Submission Checklist
Required

[X] The pull request title clearly contains the name of the sheet I am editing.
[X] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[X] The pull request makes changes to files in only one sub-folder.
[X] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

Changes / Description

Completely overhauled the existing character sheet, which was based on the RPG's quick start rules.
New sheet is styled to match the official pen and paper sheets.
Implemented sheet worker to migrate attributes from the existing sheet to the new one.
Added roll templates to simplify the complex rolling of 2d20 systems.

Character Sheet Info Roll20 Internal Use only.


Wyoming shields

This PR adds support for state route shields in Wyoming.  Wyoming uses square shields with a yellow background, like the one shown below.

This PR omits the Bucking Horse and 'WYOMING' header text, instead opting for a plain rectangle shield.  Examples are shown below.

Just realized that #238 already addresses this, so closing for now.

As proposed in #238, this is being reopened for consideration as the implementation for Wyoming shields.


Bug 2091758: Rename OS to Operating system in filtering

📝 Description
Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=2091758
Change the "OS" string to correct "Operating system", in the VM Template list filtering.
Change it the same way also in the Catalog and VirtualMachine list filtering, for consistency reasons.
🎥 Demo
Before:

After:

@glekner @avivtur @metalice @pcbailey @yzamir @vojtechszocs please review

/retest
/lgtm


add two new CX-5 2018 fw

Two new variations of CX-5 fw.
Fix a misplaced mazda3 fw.
Signed-off-by: Jafar Al-Gharaibeh<EMAIL_ADDRESS>

dongle IDs?

I don't have them. I can ask the owners if IDs are needed.

Yes, we'll need them to verify the fingerprints

Ok, I will ping them.


BedrockIfy

CurseForge link
https://www.curseforge.com/minecraft/mc-mods/bedrockify
CurseForge Mod Distribution
Allowed
Modrinth link
https://modrinth.com/mod/bedrockify
Source/other link
https://github.com/juancarloscp52/BedrockIfy
Mod file size
1,35 MB
License
(any other license)
What it does
Implements some useful Minecraft Bedrock Edition features into Minecraft Java Edition.
Why should it be in the modpack

Adds a lot of bedrock parity;
Most options are configurable, so you can change it to be more similar to vannila minecraft.

Why shouldn't it be in the modpack

The mod is really big, so i don't know if it brings enough parity to justify its size.
By default settings, the mod is not very vannila-like, having to be modified to have the hud be the same as vannila minecraft.

Additional details
No response

Thank you for the suggestion.
Yes, it achieves the Bedrock parity, which is something FO cares about, but more important than that is the balance and expectations - Java players don't really need or want most of these features.
May reconsider when there becomes a demand for some specific Bedrock feature(s) that this mod provides.


Using with custom filtered alignments

Hi, I have more of a question than an issue, I hope that's ok.
I've mapped my direct RNA reads with minimap2 to the transcriptome and included -N 100 to retain more secondary alignments.
Then I've written a script to filter these files based on 3' ends, alignment score, aligned fraction of reads and accuracy to give me filtered bam files.
I now want to quantify these, but I don't want the primary alignments to be regarded as 'better' than the secondaries. I've tried using salmon also on these filtered bams, but it seems to only quantify the primary alignments and disregard all secondary ones.
Do you know how NanoCount will work with this? Or if there's a way I can modify it to count my secondary alignments?
Thanks for your help!

Hi @josiegleeson,
The current implementation of NanoCount requires the primary alignment to be provided in the source Bam file. However, since it could be a useful feature in some situation like yours, I added the following functionality in the dev branch of the repo :
  -p PRIMARY_SCORE, --primary_score PRIMARY_SCORE
                        Method to pick the best alignment for each read. By
                        default it uses the primary read defined by the
                        aligner but it can be changed to use either the best
                        alignment score ("align_score") or the best alignment
                        length ("align_len"). (default: None) [str]

The dev version 0.2.2 is being deployed on the pip and conda at the moment. I think -p  align_score should do the trick for you. Could you give it a try and report any issues ?
To install the best option is to use pip from github directly
pip install git+https://github.com/a-slide/NanoCount.git@dev

Thanks I'll give it a proper go shortly. So I can still use this on my filtered bams? Or is this for the original bams only?

Update: I've got it installed. It runs on my bam file from minimap2 (-ax map-ont -N 100). But if I try and run it on my bam file filtered with samtools to retain only primary and secondary alignments it no longer works.
Initialise Nanocount
Parse Bam file and filter low quality hits

ERROR: No valid secondary hits found in bam file. Were the reads aligned with minimap -p 0 option ?
Generate initial read/transcript compatibility index
I'm also noticing in your documentation about output, the est_count is abundance * primary alignments. Would it be possible to change this somehow in my case so it is abundance * any alignment?
Thanks again.

Hi @josiegleeson,
Did you run Nanocompore with -p align_score ?
Would you mind rerunning it with --verbose and copy/paste the log here ?
It shouldn't really matter if it's written abundance * primary alignments as primary alignments is just a proxy for number of reads. It you use -p align_score the primary alignment becomes the alignment with the best alignment score for each read.
Something to keep in mind, is that after your filtering steps you need to keep multiple alignments per initial read, as this is required by the EM algorithm to model the uncertainty of mapping.

Hi Adrien,
It seems to all be running fine now! The -p align_score is working, on my samtools filtered files also. But to keep the EM algorithm working well and considering unmapped and supplementaries are filtered out in NanoCount I'll run it on the alignments straight from minimap2.
Thanks again.


"TURNS is not yet supported" error from callstats

Browsers and versions affected
FF 55.0 x64
Description
Error from callstats and code execution stops. Call doesn't happen.
Steps to reproduce
Followed steps under Deployment and enabled TURN_SERVER_OVERRIDE with a working configuration. Same configuration works with other webrtc solutions.
Expected results
The error should not happen and code should proceed to make the call happen.
Actual results
Error -
TURNS is not yet supported. callstats.min.js:19
Using more than two STUN/TURN servers slows down discovery callstats.min.js:19
TURNS is not yet supported. callstats.min.js:19
Using more than two STUN/TURN servers slows down discovery
When and why this error occurs and how to prevent it. Thanks!

Closing as the 2nd issue is something else and do not have cycles to debug a converted project.


[Native] macOS Badge API

This implements a very simple Badge API in Revery_Native
API:
Revery_Native
  |
  +-> Badge
        |
        +-> func setNumber: int => int
        |
        +-> func hide: unit => unit

Alright I modified the API a bit
Revery_Native
  |
  +-> Badge
        |
        +-> func set: string => unit
        |
        +-> func hide: unit => unit

In Electron, the badge API only works on macOS. This repo basically modifies the app icon to include a badge on Windows. We could essentially do the same with something like ImageMagick, but I'm not sure if it's worth it.
@bryphe -- thoughts on whether or not to have this API on Windows/Linux?

Can't we use this on Windows? https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/badges

@OhadRau That's a UWP only API that isn't accessible for WIndows 32 apps (unlike Toast Notifications)

In #665 I switched to housing the progress bar API under Revery_Native.Icon, and I think it would be appropriate to move this under there too, especially because on Windows the type represented as Icon.t (ITaskbarList3) is also used to set the overlay icon.
As stated before, Win32 has no API for badges. Interestingly, inspecting the Discord asar shows that they have independent ico files for each number. @Et7f3 noted that we could use SDL to dynamically generate the bitmap/icon and display it using SetOverlayIcon

🎉 I got a dynamic badge working on Win32! It uses GDI to import a template image badge.bmp and draw text on it. If the text is longer than 3 characters, it shows the first two and ellipsizes the rest.
This GIF is a pretty good demonstration (sorry for the low quality, Github only allows 10MB):

I'm pretty excited about this, because not even Electron supports this natively on Windows.