Only varroa mites

Bees have many different disease that will kill them. Is there a way that you can make software work for all of these other diseases that may show up ?

Hello, Of course we can work on such agriculture and environment innovative
software.
Le sam. 21 déc. 2024, 22:09, arvaus @.***> a écrit :

Bees have many different disease that will kill them. Is there a way that
you can make software work for all of these other diseases that may show up
?
—
Reply to this email directly, view it on GitHub
https://github.com/zahiazzineb/bees-diseases-detection-using-yolov5/issues/1,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARKDEQTGC2YYQBXW42CI52T2GXKIRAVCNFSM6AAAAABUA6RAUKVHI2DSMVQWIX3LMV43ASLTON2WKOZSG42TIMZWGM3TONY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


[Feature suggestion] More font sizes

I love Sticky Notes, but the text looks too small to me. It would be great if we could alter the font size for the app itself or at least for the notes. It would make the experience of using it a lot more comfortable. :)

Indeed, rlly waiting for this feature, font size is too smal atm.

Sticky Notes uses the same font size as set in your system. Is there any particular reason you cannot change that instead?

I use pretty small system font as I don't have to read it much (like in menu's, contex menus etc., as I know what and where) and it makes views compact. But in apps like browsers, office I significantly increase fonts.
Also ability to set up font settings per app is very valuable, especially when you have several monitors with different resolutions.

Yes, only font size

Alright!

Hello, after trying half a dozen different sticky note apps, I found this one which is amazing... except I can't change the font size!  I really just need about +2 points on the size to be happy, are you planning on adding this anytime soon?
thank you!


How to set how many frames to render?

I Just found your code, and it is 4 houers ago uploaded ;-))
How to set how many frames to render? I am just getting 5 images rendered only..

just bring up the max value, try update to the latest version


RFC: State toggle (ui-sref-toggle)

Hi, I have a use-case whereby a button effectively opens and closes a form when clicked. The form that is opened is defined in a child state and is targeted through a relative ui-sref=".new". I've currently hacked this behaviour by creating the following directive.
  angular.module('sw.util')
    .directive('uiSrefToggle', function ($timeout, $state) {
      return function (scope, element) {
        element.on('click', function (e) {
          var stateChanged = false
          var unbindListener = scope.$on('$stateChangeStart', function () {
            stateChanged = true
            unbindListener()
          })

          $timeout(function () {
            if (stateChanged) return
            unbindListener()
            $state.go('^')
          }, 200)

          e.preventDefault()
        })
      }
    })

I was wondering whether you would consider/be interested in a PR that would add this type of behaviour to ui-router?
API Options

I feel option 1 is the cleaner of the two from a user's perspective. I suspect option 2 is easier to realise/implement; I had a 2 line fix in ui-router for quite a while that realised this state toggle behaviour by checking whether the attribute 'ui-sref-toggle' was present.
Alternative
An alternative route to take would be to consider whether it's possible to make the ui-sref directive more extensible so that developers might be able to hook these type of use-cases into ui-router..? This would perhaps fit with nateabele's remark in issue #1863.

If you want to resubmit a separate PR that just factors out the uiSref link function into a controller, that'd be fine, too. Then you'll have a more flexible API for making directives that goes beyond what's available in the core if you need to do really specific stuff.

But I'm not sure whether that would work for this use-case - haven't gotten my head around it yet. Wanted to hear your thoughts first!

Hey, sorry for the late feedback. Interesting concept, don't love the implementation. Again, as with other proposals elsewhere (including #1863), you're munging together two unrelated concerns. We could theoretically have thousands of these.
If you're interested in taking up the call for refactoring per my notes in the other issue, I'd be happy to guide you, and it'd probably get you a cleaner, more general solution in your own code.

https://gist.github.com/eddiemonge/f6a58169c2846731a1eb


string_util::split_into ignores final delimiter

Describe the issue
Expected behavior:
string_util::split_into should not ignore the final delimiter.
The string foo;bar; should be split into ["foo", "bar", ""]
Actual behavior:
The string foo;bar; is split into ["foo", "bar"]
Was it working before?
I don't think this is a regression. It may even be the intended behaviour. There are a couple of reasons why I think this should be changed:

This is not consistent with some other string splitting functions. I have tested the Python string.split as well as boost::split.

Declaring an empty i3 (and possibly others? - I only checked i3) workspace icon does not use the expected syntax. I.e. using ws-icon-0 = foo; will cause workspaces called foo to use ws-icon-default rather than an empty value. My current workaround is to do ws-icon-0 = foo;;

Environment:

WM: i3-gaps
Distro: Arch Linux
Output of polybar -vvv:

polybar 3.4.0

Features: +alsa +curl +i3 +mpd +network(libnl) +pulseaudio +xkeyboard

X extensions: +randr (+monitors) +composite +xkb +xrm +xcursor

Build type: Release
Compiler: /usr/bin/c++
Compiler flags: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -Wextra -Wpedantic -O3 -DNDEBUG
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now

If you accept this as a bug, I can submit a PR to fix it.

I'll see why this is like this but I think this might be a bug.

I just opened a new PR to fix this problem. If you can test if it works as intended.


test_openmm_dihedral failing

It seems like this test is failing all of a sudden, but I'm not sure why.
@mikemhenry @ijpulidos : could you investigate why?
I'm not sure if this is only happening in #860 or not, but the tests were passing fine for commit 4b72d38.
https://github.com/choderalab/perses/pull/860/checks?check_run_id=3942799861
=================================== FAILURES ===================================
_____________________________ test_openmm_dihedral _____________________________
[gw1] linux -- Python 3.9.7 /usr/share/miniconda/envs/test/bin/python

    def test_openmm_dihedral():
        """
        Test FFAllAngleGeometryEngine _internal_to_cartesian and _cartesian_to_internal are consistent with OpenMM torsion angles.
        """
        TORSION_TOLERANCE = 1.0e-4 # permitted disagreement in torsions

        # Create geometry engine
        from perses.rjmc import geometry
        geometry_engine = geometry.FFAllAngleGeometryEngine({'test': 'true'})

        # Create a four-bead test system with a single custom force that measures the OpenMM torsion
        import simtk.openmm as openmm
        integrator = openmm.VerletIntegrator(1.0*unit.femtoseconds)
        sys = openmm.System()
        force = openmm.CustomTorsionForce("theta")
        for i in range(4):
            sys.addParticle(1.0*unit.amu)
        force.addTorsion(0,1,2,3,[])
        sys.addForce(force)
        positions = unit.Quantity(np.array([
                [0.10557722, -1.10424644, -1.08578826],
                [0.0765,  0.1,  -0.4005],
                [0.0829, 0.0952, -0.2479],
                [-0.057,  0.0951, -0.1863],
                ]), unit.nanometers)
        atom_position = positions[0,:]
        bond_position = positions[1,:]
        angle_position = positions[2,:]
        torsion_position = positions[3,:]

        #atom_position = unit.Quantity(np.array([ 0.10557722 ,-1.10424644 ,-1.08578826]), unit=unit.nanometers)
        #bond_position = unit.Quantity(np.array([ 0.0765,  0.1  ,  -0.4005]), unit=unit.nanometers)
        #angle_position = unit.Quantity(np.array([ 0.0829 , 0.0952 ,-0.2479]) ,unit=unit.nanometers)
        #torsion_position = unit.Quantity(np.array([-0.057 ,  0.0951 ,-0.1863] ) ,unit=unit.nanometers)

        # Compute the dimensionless internal coordinates consistent with this geometry
        rtp, detJ = geometry_engine._cartesian_to_internal(atom_position, bond_position, angle_position, torsion_position)
        (r, theta, phi) = rtp # dimensionless internal coordinates

        # Create a reference context
        platform = openmm.Platform.getPlatformByName("Reference")
        context = openmm.Context(sys, integrator, platform)
        context.setPositions([atom_position, bond_position, angle_position, torsion_position])
        openmm_phi = context.getState(getEnergy=True).getPotentialEnergy()/unit.kilojoule_per_mole # this system converts torsion radians -> kJ/mol
        assert np.linalg.norm(openmm_phi - phi) < TORSION_TOLERANCE, '_cartesian_to_internal and OpenMM disagree on torsions'

        # Test _internal_to_cartesian by rotating around the torsion
        n_divisions = 100
        phis = np.arange(-np.pi, np.pi, (2.0*np.pi)/n_divisions) # _internal_to_cartesian only accepts dimensionless quantities
        for i, phi in enumerate(phis):
            # Note that (r, theta, phi) are dimensionless here
            xyz_atom1, _ = geometry_engine._internal_to_cartesian(bond_position, angle_position, torsion_position, r, theta, phi)
            positions[0,:] = xyz_atom1
            context.setPositions(positions)
            openmm_phi = context.getState(getEnergy=True).getPotentialEnergy()/unit.kilojoule_per_mole # this system converts torsion radians -> kJ/mol
            msg  = '_internal_to_cartesian and OpenMM disagree on torsions: \n'
            msg += '_internal_to_cartesian generated positions for: {}\n'.format(phi)
            msg += 'OpenMM: {}\n'.format(openmm_phi)
            msg += 'positions: {}'.format(positions)
>           assert np.linalg.norm(openmm_phi - phi) < TORSION_TOLERANCE, msg
E           AssertionError: _internal_to_cartesian and OpenMM disagree on torsions:
E             _internal_to_cartesian generated positions for: -3.141592653589793
E             OpenMM: 3.141592653589793
E             positions: [[ 1.27477734  0.10606969 -1.09675394]
E              [ 0.0765      0.1        -0.4005    ]
E              [ 0.0829      0.0952     -0.2479    ]
E              [-0.057       0.0951     -0.1863    ]] nm
E           assert 6.283185307179586 < 0.0001
E            +  where 6.283185307179586 = <function norm at 0x7f1094d7a820>((3.141592653589793 - -3.141592653589793))
E            +    where <function norm at 0x7f1094d7a820> = <module 'numpy.linalg' from '/usr/share/miniconda/envs/test/lib/python3.9/site-packages/numpy/linalg/__init__.py'>.norm
E            +      where <module 'numpy.linalg' from '/usr/share/miniconda/envs/test/lib/python3.9/site-packages/numpy/linalg/__init__.py'> = np.linalg

perses/tests/test_coordinate_numba.py:105: AssertionError

Looks like it is passing fine on master https://github.com/choderalab/perses/actions/runs/1356975445

Okay, so clearly we are getting positve values for the openmm_phi, whereas we get negative for phi. I don't  know why I cannot reproduce this locally. Any ideas about what a positive phi means here? Maybe that tells us something.

Something weird is going on, looking at the last 2 nights of CI runs:
https://github.com/choderalab/perses/actions/runs/1365813609
https://github.com/choderalab/perses/actions/runs/1361421142
We are getting this error, but not consistently across python versions or openmm versions. So we need to dig into these tests and see if there is a source of randomness somewhere. I'm going to tag this into our current milestone so we can talk about it at our meeting today.


PSS app upgrades - Cabbage

Towards epic.
Task
Upgrade all applications running on all AWS clusters to a version which supports PSS before the cluster is upgraded to AWS v19.3.x.
Why?
All apps running on a cluster need to be upgraded to a version which supports PSS before upgrading to cluster to AWS v19.3.x (see the release notes).
Links

AWS v19.3.0 release notes;
Scheduled cluster upgrades;
App status;
Managed apps upgrades;
Long-term process app upgrades issue;

This refers to non-default apps; which in our case are:

kong-app: deployments on 3.7.0 already ✅
cloudflared: only installed in some kvm installation. so no more upgrades. The app will be deprecated in the future.
linkerd: non-PSS version still used on viking. We need to talk to the customer.
nginx-ingress-controller: this is the most problematic one. Customers need to upgrade to v3.

linkerd: non-PSS version still used on viking. We need to talk to the customer.

Shot a quick message to the customer. Consider it handled.

Hello Team
As you know we're in the process of migrating PSP to PSS.
We are going through the instances of managed apps and found an installation oflinkerdon viking/5e1e5which does not support PSS.
From the org-name and description of the cluster, I take it that this is not a crucial environment and I assume this linkerd instance is there for test purposes.
I would like to check this off my list of things to take care of, for the aforementioned migration.
Can you please give me a quick /whether I can mark this as taken care of?

nginx-ingress-controller: this is the most problematic one. Customers need to upgrade to v3

All affected customers are aware and in the process of updating. Some instances fall out of scope.

╭────┬─────────┬───────────────────────────────┬─────────┬───────╮
│  # │  team   │              app              │ version │ count │
├────┼─────────┼───────────────────────────────┼─────────┼───────┤
│  0 │ cabbage │ app-exporter                  │ 0.3.0   │     1 │
│  1 │ cabbage │ app-exporter                  │ 0.4.0   │     1 │
│  2 │ cabbage │ app-exporter                  │ 2.13.0  │     2 │
│  3 │ cabbage │ app-exporter                  │ 2.30.1  │     3 │
│  4 │ cabbage │ aws-load-balancer-controller  │ 1.2.0   │     4 │
│  5 │ cabbage │ aws-load-balancer-controller  │ 1.3.2   │     9 │
│  6 │ cabbage │ aws-load-balancer-controller  │ 1.4.3   │     2 │
│  7 │ cabbage │ aws-load-balancer-controller  │ 1.5.0   │    42 │
│  8 │ cabbage │ aws-load-balancer-controller  │ 1.6.1   │    20 │
│  9 │ cabbage │ cloudflared                   │ 0.3.0   │     1 │
│ 10 │ cabbage │ cloudflared                   │ 0.4.0   │     1 │
│ 11 │ cabbage │ coredns-app                   │ 1.20.0  │    18 │
│ 12 │ cabbage │ external-dns-app              │ 2.42.0  │    69 │
│ 13 │ cabbage │ external-dns-app              │ 3.0.0   │    25 │
│ 14 │ cabbage │ external-dns-app              │ 3.1.0   │     3 │
│ 15 │ cabbage │ ingress-nginx                 │ 3.5.1   │     3 │
│ 16 │ cabbage │ ingress-nginx                 │ 3.5.2   │     7 │
│ 17 │ cabbage │ ingress-nginx                 │ 3.6.0   │    21 │
│ 18 │ cabbage │ k8s-dns-node-cache-app        │ 2.5.0   │    13 │
│ 19 │ cabbage │ k8s-dns-node-cache-app        │ 2.6.1   │     8 │
│ 20 │ cabbage │ kong-app                      │ 3.7.0   │    50 │
│ 21 │ cabbage │ kong-app                      │ 3.8.0   │     1 │
│ 22 │ cabbage │ kyverno-policies-connectivity │ 0.5.4   │     4 │
│ 23 │ cabbage │ linkerd-control-plane         │ 1.1.0   │     1 │
│ 24 │ cabbage │ linkerd-control-plane         │ 1.2.0   │     6 │
│ 25 │ cabbage │ linkerd-control-plane         │ 1.4.0   │     3 │
│ 26 │ cabbage │ linkerd-viz                   │ 1.3.2   │     6 │
│ 27 │ cabbage │ linkerd-viz                   │ 1.5.0   │     3 │
│ 28 │ cabbage │ linkerd2-cni                  │ 1.3.0   │     6 │
│ 29 │ cabbage │ linkerd2-cni                  │ 1.4.1   │     3 │
│ 30 │ cabbage │ net-exporter                  │ 1.17.0  │    19 │
│ 31 │ cabbage │ net-exporter                  │ 1.18.0  │    37 │
│ 32 │ cabbage │ net-exporter                  │ 1.18.2  │    45 │
│ 33 │ cabbage │ nginx-ingress-controller-app  │ 2.30.1  │    23 │
│ 34 │ cabbage │ oauth2-proxy                  │ 2.12.0  │     1 │
│ 35 │ cabbage │ oauth2-proxy                  │ 2.13.0  │    21 │
│ 36 │ cabbage │ service-mesh-bundle           │ 0.5.0   │     1 │
├────┼─────────┼───────────────────────────────┼─────────┼───────┤
│  # │  team   │              app              │ version │ count │
╰────┴─────────┴───────────────────────────────┴─────────┴───────╯

app-exporter 🚫 not ours
aws-load-balancer-controller 🚫 not ours
cloudflared deprecated. no more upgrades
coredns-app default app. upgrade will happen with the cluster
external-dns-app default app. upgrade will happen with the cluster
ingress-nginx it's fine
linkerd* it's fine
net-exporter default app. upgrade will happen with the cluster
nginx-ingress-controller-app it's v2. needs upgrade. As far as I remember we already got rid of all of them, but I'll check once more.
oauth2-proxy MC only
service-mesh-bundle it's fine

There is nothing else to do here, pending nginx upgrades are to be worked on https://github.com/giantswarm/giantswarm/issues/31059


Does this method rely too much on the internal and external parameters of the sensor

Can you explain your issue more, @2anchao ? I'm not sure I get it.

in autonomous driving, because of the complicated external environment， cameras might deviate from the calibrated position at runtime, bev_baseline use intrinsics and extrinsics to get bev feature, it's efficiency, but it robustness?

Ah, great comment. I think this is definitely something to think about -- it's a criticism that applies to probably all existing works doing a 2D-to-BEV transformation.
You might be encouraged from Fig 6a of "Lift Splat Shoot", which shows that if you train with noise in the extrinsics, you can be robust to this type of noise at test time.

We show that it is possible to train our network such that it is resilient to
common sources of sensor error. [...] [We] show that by training with a large
amount of noise in the extrinsics (blue), the network becomes more robust to extrinsic
noise at test time.

"Lift, Splat, Shoot: Encoding Images from Arbitrary Camera Rigs by Implicitly Unprojecting to 3D" Philion and Fidler, ECCV 2020.
I'm quite sure you could show the same thing with our bev_baseline model, and you could probably also show a similar effect for the intrinsics.

Thanks for your answer and your great work.

I use resnet34 as backbone, get vehicle segmentation miou 45.4(only camera), resnet18 as beckbone get miou 43.2(only camera). I think it's a very good result.
and I want to do some experiments on road segmentation, If convenient, please provide the road segmentation dataloader to me, thanks. my email is<EMAIL_ADDRESS>

That's a great result, @2anchao! I bet the model is quite fast too, because of the shallower backbone. If you make a paper, please remember to cite us! 😄
We will try to add lane and road annotations to the repo soon.

I just do some experiments based on your work, Thank you for your work. if I has chance to make a paper, It's my pleasure to cite your paper.
can I get road annotations by follows:

Yes, that's the right part of the code. lmap might be very close to what you need.

I use lmap to generate road annotations, use res34 as backbone, get miou 74.2😄(only camera), happy!

I use lmap to generate road annotations, use res34 as backbone, get miou 74.2😄(only camera), happy!

Hi , may I ask you how did you use lmap to genereatw road annotations? very thanks.


docker-in-docker cgroup sporadic issues

I've been getting some sporadic issues with the docker-in-docker feature. I have a test that runs devcontainer up --workspace-folder . --remove-existing-container --build-no-cache --log-level trace. The docker daemon (for docker in docker) fails to start and viewing the docker logs shows this:
$ docker logs --details --timestamps ca3e51e6e4fd
2023-01-03T21:10:31.054578741Z  Container started
2023-01-03T21:10:32.376679820Z  echo: write error: No such process
2023-01-03T21:10:32.377961440Z  echo: write error: No such process
2023-01-03T21:10:32.379367661Z  echo: write error: No such process
2023-01-03T21:10:32.380579280Z  echo: write error: No such process
2023-01-03T21:10:32.388264297Z  sed: couldn't flush stdout: Device or resource busy

From some testing it seems to be coming from https://github.com/devcontainers/features/blob/dbf069a5db328e0413300094a0dc37f520000375/src/docker-in-docker/install.sh#L364-L367. The echo: write error: No such process lines seem benign and are ignored in the script, but sed failing causes the script to exit. Rerunning the /usr/local/share/docker-init.sh script using devcontainer exec --workspace-folder . sudo bash -x '/usr/local/share/docker-init.sh' gets through the whole script and seems to work fine.

This unfortunately only happens around 20% of the time for me.
Machine: Seeing this most often on the ubuntu-latest GitHub Actions runner. I've also seen it locally with VS Code on macOS 13.0.1 (22A400) running Docker Desktop (currently v4.15.0 but also previous versions)
VS Code Version: 1.74.2 (Universal) Commit: e8a3071ea4344d9d48ef8a4df2c097372b0c5161
devcontainers extension version: v0.266.1 (I've also seen it with other versions. Also seen the issue with the CLI version 0.26.1 and others)
devcontainer.json
{
  "name": "test",
  "build": {
    "dockerfile": "Dockerfile"
  },
  "workspaceFolder": "/workspaces/test",
  "customizations": {
    "vscode": {
      "settings": {},
      "extensions": [
        "Prisma.prisma",
        "bungcip.better-toml",
        "dbaeumer.vscode-eslint",
        "ms-azuretools.vscode-docker",
        "redhat.vscode-yaml",
        "esbenp.prettier-vscode"
      ]
    }
  },
  "portsAttributes": {}
  "updateContentCommand": ["/bin/bash", ".devcontainer/updateContent.sh"],
  "remoteUser": "node",
  "containerEnv": {
  },
  "features": {
    "ghcr.io/devcontainers/features/aws-cli": {},
    "ghcr.io/devcontainers/features/desktop-lite:1": {},
    "ghcr.io/devcontainers/features/docker-in-docker": {},
    "ghcr.io/devcontainers/features/github-cli": {},
    "ghcr.io/devcontainers/features/sshd": {},
    "ghcr.io/devcontainers/features/terraform": {}
  },
  "hostRequirements": {
    "cpus": 4,
    "memory": "6gb",
    "storage": "16gb"
  }
}

Dockerfile
# See here for image contents:
# https://github.com/devcontainers/images/tree/main/src/javascript-node
FROM mcr.microsoft.com/devcontainers/javascript-node:16

# Install dependencies needed for running Cypress
# https://docs.cypress.io/guides/continuous-integration/introduction#Ubuntu-Debian
RUN apt-get update && \
    export DEBIAN_FRONTEND=noninteractive && \
    apt-get --yes install --no-install-recommends \
        libgtk2.0-0 \
        libgtk-3-0 \
        libgbm-dev \
        libnotify-dev \
        libgconf-2-4 \
        libnss3 \
        libxss1 \
        libasound2 \
        libxtst6 xauth xvfb

# Set up [Corepack](https://nodejs.org/dist/latest/docs/api/corepack.html). This
# also sets up [yarn](https://yarnpkg.com/getting-started/install).
RUN corepack enable

# Install vercel
RUN su node -c 'npm install --location=global vercel'

# Add script to load .env
COPY env.sh /etc/profile.d/
# For some reason, the files in profile.d aren't always sourced, so explicitly
# make sure we always source env.sh.
RUN echo "[[ -r /etc/profile.d/env.sh ]] && . /etc/profile.d/env.sh" >> /etc/bash.bashrc
RUN echo "[[ -r /etc/profile.d/env.sh ]] && . /etc/profile.d/env.sh" >> /etc/zsh/zshenv

dockerfile looks alright.
To me it looks like sometimes /sys/fs/cgroup/cgroup.controllers exists and hence the script tries to update its content.
The line where you pointed that the devcontainer errors out, seems like either /sys/fs/cgroup/cgroup.controllers or  /sys/fs/cgroup/cgroup.subtree_control is in use by some other process.
As you were successfully able to fix it by rerunning '/usr/local/share/docker-init.sh', I wonder if either  /sys/fs/cgroup/cgroup.controllers gets removed or is no longed occupied by other process.
I believe we could update the sed command to update the contents indirectly with a temp file. As it's not a 100% repro, I am not confident if that should fix the issue. 🤔
Or maybe a retry of the sed command for few times before it fails.

I don't have any other thoughts besides that. I did find this post on stack overflow which seems like it might be related, but I don't have a good enough understanding of the problem to know how exactly.
I'll keep trying to create a reproducible example so we can test any solutions.
Also, I was able to find at least one example of this happening in the tests for this repository: example build. Towards the bottom of the output there's a line "sed: couldn't flush stdout: Device or resource busy" which is the same error I'm getting.

@georgewitteman Thanks for your insights. ✨
@joshspicer do you have any other thoughts? Also, what do you think about proposed solutions in https://github.com/devcontainers/features/issues/372#issuecomment-1371384303

If it helps folks, I tested ubuntu-20.04 and this issue seems to not appear there. Hope that helps resolve this and/or interested to hear if that helps others.

Hi @samruddhikhandale and @joshspicer! Curious if you have any updates on this. We're still seeing it a lot in our private repo and it looks like it's still happening in this repo a lot too

https://github.com/devcontainers/features/actions/runs/4010989896/jobs/6888084819
https://github.com/devcontainers/features/actions/runs/4008826023/jobs/6883478385
https://github.com/devcontainers/features/actions/runs/4008826023/jobs/6883478649
https://github.com/devcontainers/features/actions/runs/3991435586/jobs/6846235185
https://github.com/devcontainers/features/actions/runs/3941798965/jobs/6744676121

Hi @georgewitteman,
Apologies for the inconvenience.
This issue is with the action-runner image (ubuntu-latest) as mentioned in https://github.com/devcontainers/ci/issues/192#issuecomment-1401104759. I have already reported this issue with the Actions team - https://github.com/actions/runner-images/issues/6980
@georgewitteman Until the upstream bug is resolved, can you update your action workflow as follows? 👇

runs-on: ubuntu-20.04

The bug does not appear with ubuntu-20.04 or earlier images.

@samruddhikhandale thank you so much! I'll update our workflow.

This seems to have worked. We haven't seen this issue in a few days. Thanks again for the help!

This seems to have worked. We haven't seen this issue in a few days. Thanks again for the help!

Awesome!
@georgewitteman wondering what fixed things for you, whether ubuntu:latest started working smoothly or is it the switch to ubuntu-20.04 ?

We stopped seeing the issue after switching the runner to ubuntu-20.04


save qrcode as image file

from <-qr looks like return a base64 image, but it think it's not a valid base64 image
1@e1BI89ppIOMLzneaTuCXiBOD0tQM3UfWBuLkoRuEW0ArtDA677pc+3OI,Kpo9jYA5XBqlnoLkjCwCY+iUj8aFs0HCHuCwfxV7EUc=,gSBDVxw1OahON22s9xdNyg==

how i can save qrcode as image file

you can see the example in dimaskiddo/go-whatsapp-rest helper file :)
Hope this helps you

thank you @dimaskiddo
tmp := <-chanqr

png, errPNG := qrcode.Encode(tmp, qrcode.Medium, 256)
if errPNG != nil {
	return
}

fmt.Println(base64.StdEncoding.EncodeToString(png))


LNK110 cannot open file 'E:\librealsense-2.16.3\example.obj'

Required Info

Camera Model
D415

Firmware Version
<IP_ADDRESS>

Operating System & Version
Win 10

Platform
PC

SDK Version
2.16.3

Language
C++

Issue Description
Hello, I am new to C++. When I ran the sample 'measure', an error popped up, which was 'LNK1104 cannot open file 'E:\librealsense-2.16.3\examples.obj'. But I cannot find examples.obj. How can I get rid of this error?

Thanks for your reply. Then how can I install the module pyrealsense2? I have tried 'pip3 install pyrealsense2' in anaconda3 and it said pyrealsense2 has been installed successfully. But when I run an example, it said 'No module named 'pyrealsense2''. Could you tell me what should I do? Thank you.

Maybe this is due to a difference in python version or architecture? In general pip install pyrealsense2 should do the trick.
Given the .pyd files in the installer, you can also copy them next to your python script and rename to pyrealsense2.pyd. Hope this helps

Thanks for your answer.
But I got another issue, which is:
Traceback (most recent call last):
File "E:\project\opencv_pointcloud_viewer.py", line 73, in
pipeline.start(config)
'RuntimeError: Couldn't resolve requests.
I saw a similar issue about this, but I still don't know how to solve this. Is it about the resolution?

This can happen when the cameras is detected as a USB2 device instead of USB3. You can further investigate using the realsense-viewer tool.


[Question] TabbarIOS.Item icon with image

How do I allow tabbarIOS.item to use my image?
Here's my code, I have an image called itemSelected
<TabBarIOS.Item
  selected={this.state.selectedTab === 'Item'}
  icon={require('image!itemNotSelected')}
  selectedIcon={require('image!itemSelected')}
 title="Item"
 onPress={() => { this.setState({ selectedTab: 'Item',});}}

However, I can only see a square box being loaded from react-native in my tabbar.

it's working, except that my image needed to have transparent area.


modify the eval_metric.py to load the annotation during offline evaluation.

modify the eval_metric.py to load the annotation during offline evaluation.

I'm wondering whether we should keep gt in the dumped results. Because it is duplicated with the dataset annotation and is not compressed.
We can modify the eval_metric.py to load the annotation during offline evaluation.

Originally posted by @RangiLyu in https://github.com/open-mmlab/mmdetection/pull/9784#discussion_r1109200230

We will fix this during support mmeval


Config files for training publication models

Hi,
Can you provide config files for the models that you trained for the publication? I'd like to be able to run your training script as it was run to produce publication results.
Congrats on putting out this awesome work and I appreciate the effort you've made to make this work accessible and reproducible.
Thanks,
Ian

Hi Ian,
thanks for this suggestion. I uploaded config files for all five models presented in the preprint (c4dab2b6fb85e1b3db4482824db21d69dfd62db8). I would however ask @yuanqidu, who performed the CrossDocked experiments, to confirm that the settings are correct.
Best,
Arne

Awesome, thank you for the quick response.


Windows CI supports

@Brooooooklyn It seems tests on GitHub windows machines are ok. Could you describe the error you hit?

@hyf0 Node test on Windows

@Brooooooklyn It seems fine too. https://github.com/rolldown-rs/rolldown/actions/runs/4396030789/jobs/7698206066


Flying while mounted and such. It should be one or the other no?

This is probably related to a whole bucket of strangeness around "rideables". My latest: Have someone mount your summoned ride and then leave the room.  The rider will remain and your mount will follow without the rider.

I'd guess you can sit in a boat and fly as well.


changed api version to v2

The previous version of the API was throwing HTTP Error 401 for every request.

@sebampuero could you sign up for the API access? They do not entertain this anymore -> https://soundcloud.com/you/apps/new

@sebampuero could you sign up for the API access? They do not entertain this anymore -> https://soundcloud.com/you/apps/new

@forkbabu API application requests are not processed anymore as you can see by following your link :

And indeed, I also manage to make it work by using api-v2


README is mentioning appengine-web.xml, but this file does not exist in the repository

Providing only the README, It is not clear to me what or where is appengine-web.xml.

You can find it there: https://github.com/GoogleCloudPlatform/appengine-java-vm-hello/blob/master/src/main/webapp/WEB-INF/appengine-web.xml

Thanks. What do you think of adding this as a precision in the README?

it is there https://github.com/GoogleCloudPlatform/appengine-java-vm-hello/blob/master/src/main/webapp/WEB-INF/appengine-web.xml


Some tweaks for bamboo support

Can you take a look at why tests are failing?

It should be OK now. I did some change in behavior that was why tests failed. I added an optional argument for TestCase to enable new behavior (multiple error/failure/skipped sub-elements).

Is there any chance to close this pull request @sysradium? It seems tests are OK now.

Well, it's still failing for at least python 3.3

The checks are failing probably because of unsupported interpreter "py33: InterpreterNotFound: python3.3". I do not understand how this works or which interpreters are supported. But it seems I did not break this by changes. Is there any possibility to run this check on the master branch to check if it is working? Then we could disable the checks for failing interprets

Good question. I need to have a look 🤔

@martinrakovec I think now you can fix the merge conflicts and it'll just work.

@sysradium Is there any chance that this changes will make it to PyPi?


Support verifying private claims

I can't see it documented anywhere and I can't find it in the code.
Example
token payload
{
  "privateClaim": "private",
  "iss": "...",
  "sub": "...",
  "aud": "...",
  "iat":<PHONE_NUMBER>,
  "exp":<PHONE_NUMBER>
}

var cert = fs.readFileSync('public.pem');  // get public key
jwt.verify(token, cert, { privateClaim: "private" }, function(err, decoded) {
  // no err
})

Is this a feature that would be considered? Currently I have to verify the token and then verify against private claims when the payload gets returned.
I'm happy to do a PR if there's no reason for not supporting it

As a user, I would be opposed to having such a functionality in the library itself, so that it can stay more focused. What if a claim is an array, or a complex object, that needs application-level verification? Surely the library can't (and shouldn't) cover such cases. Instead, I would expect the developer to encapsulate this library in something that understands claims.

We have been touching a bit at different moments:

https://github.com/auth0/node-jsonwebtoken/pull/563#issuecomment-459443236
https://github.com/auth0/node-jsonwebtoken/issues/271
I will close this issue as duplicated and keep ^ 271

If we develop this support it should be in a more generic way where the consumer could define the validation. (@rkaw92 is right too).


VSCode intellisense while using typedoc

For some people trying to make a library natively in typescript, documentation is a must, and typedoc does it well. Typedoc is an excellent library and I'm looking forward to using it in my project. But I have 1 problem, As a former jsdoc user I enjoyed the Intellisense it provided inside vscode, it made it a lot easier, to quickly check read what something does, get descriptions for specific parameters, and check examples, all within my IDE. Having something similar inside typedoc would be amazing, especially if it was built into vscode like jsdoc.
But at least having an extension with snippets and syntax highlighting would be a good start, and then later making items like description, variable descriptions etc to it. I would be extremely happy if this was added.

I'm curious - what would you want this to do that VSCode doesn't already do? The built in language support for jsdoc pretty much does all this, and the comments you've been using for jsdoc will (mostly) produce the same output for typedoc.
I don't see spending much time on this - my open source time is limited... and typedoc proper has plenty of issues to resolve still. Also, typedoc is slowly moving towards supporting the tsdoc comment standard, so I suspect that effort in improving editor tooling would be better spent there.

I'm curious - what would you want this to do that VSCode doesn't already do? The built in language support for jsdoc pretty much does all this, and the comments you've been using for jsdoc will (mostly) produce the same output for typedoc.
I don't see spending much time on this - my open source time is limited... and typedoc proper has plenty of issues to resolve still. Also, typedoc is slowly moving towards supporting the tsdoc comment standard, so I suspect that effort in improving editor tooling would be better spent there.


May 2019 upgrade: add segwit recovery spec

Specification of the exemption to the CLEANSTACK rule allowing the recovery of coins in segwit P2SH addresses.

For clarity, add requirement that it applies to transaction inputs "that are pay-to-script-hash (P2SH)".
Just to make sure I am interpreting right:

the first push has to be either OP_0 or OP_1 to OP_16; (OP_1NEGATE not allowed).
the second push can use any of the four valid push forms (OP_PUSH, OP_PUSHDATA1, OP_PUSHDATA2, OP_PUSHDATA4)?

Hmm no, it looks like I misinterpreted -- only the minimal push form is allowed for the second push. The IsWitnessProgram() function imposes the following conditions:

The redeemscript must be between 4 and 42 bytes in length.
The first byte must be OP0 or OP_1 to OP_16.
The second byte's value must be the length of the redeemscript minus two. (this will be between 2 and 40).

Fixed! It's more accurate now. I'm using the definition from bip-141

Great, looks good to me!
It makes sense to merge it now, and any needed improvements can be done after merging.
Thanks Florian and Mark for doing this!


[Feature Request] Phylogenetic Tree

Do you foresee posting a newick formatted phylogenetic tree for the taxa IDs in MetaPhlAn3? It would be helpful for enabling UniFrac distance matrix calculations.

Duplicate of #92


Remove text placeholders from dartdoc customization.

Since we no longer care about these, why keep them...

Because you're normalizing with xml now?

Yes, at least normalizing with xml in the tests. The .html file won't that nice anymore, but maintaining the whitespaces was never really fun...


ImportTransformer - fix for grouped constant and function imports

Coverage increased (+0.001%) to 92.855% when pulling 93b4165dd04827290f115d8c64c1fb7bc25b8823 on werlos:fix_ImportTransformer into 3de1d1bbd53b95201ff627c01e6a16b981cf7612 on FriendsOfPHP:master.

Thank you @kubawerlos.


Better support for timezones (IDFGH-3364)

I want to display on local logs the current time, adjested to timezone. (boring details: I get to google and fetch the location by geoip, and then call again google to ask the timezone. I get in return an offset in minutes.
I am using the localtime() function, and to adjust the time, I use this code:
    auto positive = offset <= 0 ? '+' : '-' ;
    auto minutes = abs(offset % (60*60));
    auto hours = abs(offset / (60*60));

    char tz[100];
    snprintf(tz, 100, "GMT%c%02d:%02d", positive, hours, minutes);
    setenv("TZ", tz, 1);
    tzset();
    V_PRINT("TZ=%s, offset=%d", tz, offset);

(basically seetting HH:HH into "TZ" env variable).
I found out that I need to use a negative value, while on Linux I need to use a positive value (this seems wrong to me).
How should I handle timezones in ESP?

Every timezone has a standardized name, you have to use this name instead of GMT.
You should search for its name in a search engine
For example: EST5EDT,M3.2.0/2,M11.1.0 for Eastern part of U.S or CST-8 to China.

Hi @DiegoActionItem!
Could you observe a sntp example and doc about System Time?
Thanks.

Take a look at this: https://github.com/moment/moment-timezone/issues/314

I don't want to use names, as the internal DB for timezones will not get updated. If we do use names, at some time, some user will get an hour off. I want to use "minutes offset", which will I read from a server.
Yes, some timezones are not in full hours, yes, some countries have different time zones, yes, you cannot know the local time of a location 3 years in advance, since countries change the timezone definitions weeks in advance. The full timezone database is 300kb compressed and needs to be upgraded once a month... yes, properly handling timezone is hard. So - move this logic to the server.
Here is the only official DB:
https://www.iana.org/time-zones
@raldone01  so - basically you said "no thank you, we don't handle this?"

Hi @DiegoActionItem!
Please read about that here https://unix.stackexchange.com/questions/104088/why-does-tz-utc-8-produce-dates-that-are-utc8.

Why does TZ=UTC-8 produce dates that are UTC+8?
The current time in Los Angeles is 18:05. But when I run TZ=UTC-8 date --iso=ns, I get: 2013-12-07T10:05:37,788173835+0800
The date utility tells me that the time is 10:05, and even says that it's reporting it as UTC+8. Why?
The reason is that TZ=UTC-8 is interpreted as a POSIX time zone. In the POSIX timezone format, the 3 letters are the timezone abbreviation (which is arbitrary) and the number is the number of hours the timezone is behind UTC. So UTC-8 means a timezone abbreviated "UTC" that is −8 hours behind the real UTC, or UTC + 8 hours.

Does it help with your issue?

Hi @DiegoActionItem!
Could you confirm it resolved the issue? If so, please close it. Thanks.

@DiegoActionItem.
The newlib implementation is the same as GNU lib for that case. This works as described in - https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html. You should use it in a reverse way, please observe an example below.

I found out that I need to use a negative value,

Exactly, you should use a negative value [setenv("TZ", "UTC-x")] for UTC+x if it is  east of the Prime Meridian
and should use a positive value [setenv("TZ", "UTC+x")] for UTC-x if it is west of the Prime Meridian.

Example:

Area
Timezone
setenv()

Asia/ Shanghai
Universal Time Coordinated GMT/UTC [UTC+8]
setenv("TZ", "CST-8")

USA/ New York
Eastern Time Zone [UTC-5]
setenv("TZ", "EST+5")

The sntp example demonstrates that. It works as expected it is no an issue.
Thanks.


not picking up custom 'babel' options in 0.2.0 ember-cli

I am trying to prevent the default compact behavior of babel
I set
new EmberApp({
    babel: {
        compact: false
    },

that option is never seen in the invocation of babel
I'm logging this.parent.options in setupPreprocessorRegistry and it's undefined.
logging this while I look for correct solution

@stefanpenner @rwjblue any thoughts on whether this is an ember-cli issue or within the plugin?  I can't find a definitive source of info on how to access app options.


Can't see test outputs

After running cavy run-ios --skipbuild in a react-native project using expo, I'm getting the following lines in console:
cavy: Found an index.test.js entry point. Temporarily replacing index.js to run tests.
cavy: Running `mv index.js index.notest.js && mv index.test.js index.js`...
cavy: Listening on port 8082 for test results...

The app is running in a simulator already but I don't see any test output in neither expo metro bundler nor the terminal console. Any suggestions on how to solve this issue and see my test results?

@sabbir0179 Assuming your index.test.js file is correctly configured to run the tests, did you reload the React Native app? When using the --skipbuild option, the tests won't automatically run until you manually trigger a reload.

@TheAlmightyBob
I have the same problem.
The detailed situation is like this.
https://github.com/pixielabs/cavy/issues/195#issuecomment-678972031

the tests won't automatically run until you manually trigger a reload.

How do you do this?
Run from CLI? or is it the Command + D in the React Native App?

@hoshinaoshi cmd+D or cmd+R (or for Android emulator RR or cmd+M)
This isn't necessary if you don't use --skipbuild, since building/running will start the tests, but using --skipbuild just puts Cavy CLI in a passive mode listening for test results.

@TheAlmightyBob
Thank you for your answer. and I solved it.:bow:
@sabbir0179
I made two mistakes.

Optional entry point when running the test
Expo specifies the entry point of the app because it is App.js.
Also, the test file will be App.test.js.

How to write App.test.js.
Initially I thought I would export App.js and use it in App.test.js.
But it wasn't.
App.test.js simply wrapped the render part of App.js in a Tester component.

Here is the working code.
https://github.com/hoshinaoshi/cavyTest

Glad you got this sorted @hoshinaoshi :) and thanks for helping @TheAlmightyBob !
@hoshinaoshi - are there any parts of the documentation you think could be improved? Maybe specific instructions for Expo set up... we have a Custom Entry Point Guide but maybe this is too hidden away.

@sabbir0179 - I'm closing this issue for now but please let me know whether you're still having trouble and I'll reopen.


fix for TIKA-2731 contributed by @jkakavas

As part of the changes introduced in 1.19 determineMaxEntityExpansions needs to read the jdk.xml.entityExpansionLimit System Property in order to overwrite the default value of 20, if it is set.
This is however by reading all System Properties with System#getProperties() and attempting to find the relevant key in the properties Object. The issue with this approach is that System#getProperties() requires:
java.util.PropertyPermission "*", "read,write"

which is an overly permissive one to allow for the given use case.
A more sane approach, following the least privilege design principal would be to use System.getProperty() for the specific property that only requires
java.util.PropertyPermission "jdk.xml.entityExpansionLimit", "read"

Duh...sorry and thank you!


Model GPT-4 not found

When I do
gpt.py --model=gpt-4
I got
Hi! I'm here to help. Type q or Ctrl-D to exit, c or Ctrl-C to clear the
conversation, r or Ctrl-R to re-generate the last response. To enter multi-line
mode, enter a backslash \ followed by a new line. Exit the multi-line mode by
pressing ESC and then Enter (Meta+Enter).
> are you chatgpt 4?

Request Error. The last prompt was not saved: <class 'openai.error.InvalidRequestError'>: The model: `gpt-4` does not exist
The model: `gpt-4` does not exist
Traceback (most recent call last):
  File "/Users/gogl92/PhpstormProjects/gpt-cli/gptcli/session.py", line 101, in _respond
    for response in completion_iter:
  File "/Users/gogl92/PhpstormProjects/gpt-cli/gptcli/openai.py", line 20, in complete
    openai.ChatCompletion.create(
  File "/opt/homebrew/lib/python3.11/site-packages/openai/api_resources/chat_completion.py", line 25, in create
    return super().create(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
    response, _, api_key = requestor.request(
                           ^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/openai/api_requestor.py", line 226, in request
    resp, got_stream = self._interpret_response(result, stream)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/openai/api_requestor.py", line 619, in _interpret_response
    self._interpret_response_line(
  File "/opt/homebrew/lib/python3.11/site-packages/openai/api_requestor.py", line 682, in _interpret_response_line
    raise self.handle_error_response(
openai.error.InvalidRequestError: The model: `gpt-4` does not exist

Sounds like you don't have access to GPT-4 API. https://openai.com/waitlist/gpt-4-api

I'll verify the API key, thanks
On Tue, May 16, 2023 at 2:22 PM Val Kharitonov @.***>
wrote:

Sounds like you don't have access to GPT-4 API.
https://openai.com/waitlist/gpt-4-api
—
Reply to this email directly, view it on GitHub
https://github.com/kharvd/gpt-cli/issues/33#issuecomment-1550153672, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AALPS2KRBTJAILZ3DAZ6K43XGPAURANCNFSM6AAAAAAYEAIDGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Even if the API doesn't have a permission, shouldn't the program handle an error nicely? (e.g. gpt --model gpt-4 should print something rather than a raw stacktrace) --- before a prompt starts.


Add a ci check that stimcirq readme has an up to date API reference

This was obsoleted by other changes to the README.


[feature request] Enhancement about tweaks of yurtappset

What would you like to be added:
Add {{nodepool}} to replace the specified nodepool, users can batch inject configmap and secret that match the naming rules.
Why is this needed:
There may be different configmaps for different nodepools, and the user may need to write tweaks one by one. After joining {{nodepool}}, the user can bulk write by regularly naming the configmap and secret, like configmap-xxx (xxx represents the detailed name of nodepool).
others
/kind feature

@vie-serendipity It's a good idea to use {{nodepool}} to match multiple nodepools, as it allows users to easily perform batch configurations at the nodepool level.
I think we should make the definition more clearly, so how about use {{nodepool-name}} to replace {{nodepool}}?

@rambohe-ch Good idea.

/assign @vie-serendipity


AttributeError: Can't pickle local object 'simulate..pipe_call'

trying the test invocation fails:
$ python
Python 3.8.5 (default, Jul 21 2020, 10:48:26)
[Clang 11.0.3 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tumor2d
>>> simulate()
>>> tumor2d.simulate()

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/System/Volumes/Data/rikData/virtualenv/pyABC/tumor2d-master/tumor2d/simulate.py", line 70, in simulate
    proc.start()
  File<EMAIL_ADDRESS>line 121, in start
    self._popen = self._Popen(self)
  File<EMAIL_ADDRESS>line 224, in _Popen
    return _default_context.get_context().Process._Popen(process_obj)
  File<EMAIL_ADDRESS>line 284, in _Popen
    return Popen(process_obj)
  File<EMAIL_ADDRESS>line 32, in __init__
    super().__init__(process_obj)
  File<EMAIL_ADDRESS>line 19, in __init__
    self._launch(process_obj)
  File<EMAIL_ADDRESS>line 47, in _launch
    reduction.dump(process_obj, fp)
  File<EMAIL_ADDRESS>line 60, in dump
    ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'simulate.<locals>.pipe_call'

I am not the package owner, but I suspect this may be due to the default pickling behavior on mac having changed with python 3.8 (from fork to spawn). Running multiprocessing.set_start_method("fork") once per session at the beginning may help, see also https://github.com/pytest-dev/pytest-flask/issues/104


update to use rspec 3

These changes (mostly from @atambo) make the gem run cleanly for spec 3.

This will probably break older Rails. Does Apotomo still work with Cells 4? I haven't used it in ages!

No, I don't think apotomo works with Cells 4 (at least the gemspec doesn't allow it to). We basically just got our test suite passing with these changes by trying to follow the same changes that were made to rspec-cells.

@apotonick, would you be cool with merging these changes and bumping the version to 0.10 and doing a release? That way people can still keep to 0.9 for rspec 2 and 0.10 would be rspec 3?


remove screenshot shortcode

But before merging checkout /congo/docs/hosting-deployment/ page. Some screenshots look "broken".
I think the main problem here is resizing in Hugo. Maybe:

instead of 2x use specific flag for screenshots, which would do two things:

it will not resize image (serve as is)
it will divide sizes by two

Introduce one more flag original=true

it will not resize image (serve as is)

The stale bot is putting me to shame. I'm still keen to work towards removing this shortcode but I haven't had any time to look into it!

those soulless machine. Hey, bot, have some patience


fix: pad type bytes in link_store keys

Motivation
One guess for why https://warpcast.com/v/0x6276d3ae is happening is that the RocksDB keys generated before link_store was ported to Rust differ from the JS implementation. Specifically the length of the type bytes is padded to 8 bytes in the previous implementation: https://github.com/farcasterxyz/hub-monorepo/blob/b53a76f0f141096e3d195c132d8d7ba72f4215ef/apps/hubble/src/storage/stores/linkStore.ts#L48-L53
This PR does the same in the Rust implementation.
Change Summary
Pads type bytes used for generating RocksDB keys to at least 8 bytes mirroring the JS implementation.
Merge Checklist
Choose all relevant options below by adding an x now or at any time before submitting for review

[x] PR title adheres to the conventional commits standard
[x] PR has a changeset
[ ] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore)
[x] PR includes documentation if necessary.
[x] All commits have been signed

Additional Context
If this is a relatively large or complex change, provide more details here that will help reviewers

PR-Codex overview
This PR focuses on fixing a bug related to padding type bytes in link_store keys in the hubble app.
Detailed summary

Pad type bytes in link_store keys with zero bytes to fix a bug
Use a mutable vector to resize and extend the type bytes uniformly

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Confirmed this is indeed the issue. Great find, thank you! We'll need to migrate the data as well to fix the bad entries. I'll cherry-pick your commit into the final branch and close this PR.

Confirmed this is indeed the issue. Great find, thank you! We'll need to migrate the data as well to fix the bad entries. I'll cherry-pick your commit into the final branch and close this PR.

Sounds good, I wasn't exactly sure where to go about creating a migration or whether you wanted that at all, so I kept this PR simple! Lmk if you need anything from my side!

Closing in favor of https://github.com/farcasterxyz/hub-monorepo/pull/1994


[Bug] [SQL Task] SQL task using Hive datasource can't obtain a connection when multiple sql-tasks are parallel execution

Search before asking

[x] I had searched in the issues and found no similar issues.

What happened
Sorry for mark the option 'No similar issues found' since I found the similar issues #13602 #13119 #13085  but not found any good solution to salve it.
I'm using version 3.0.0
When multiple sql-tasks with connecting hiveserver2 and scheduled at the same time, it seems that the Hive session will only be created once. which means that the first task can obtain the Hive connection, while other tasks will report the null pointer exception due to not obtaining the connection as follows.

What you expected to happen

I execute the same sql-task several times, only the first one SUCCESS.
Total number of hive sessions only increase once. I tried to change Hikari pool profile on work-server application.yaml but seams doesn't work.
How to reproduce
just manually executing the same sql-task several times and make sure each sql task runtime will be longer than 30s.
Anything else
It happens every time. Due to some reasons, i can't switch the version immediately. I would like to know if there is a fix for this issue in version 3.2.x or later, which was achieved by canceling hive using the hikari pool?
Looking forward to a reply. BR!
Version
dev
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

I change the support.hive.onesession setting back to false, seams fix the bug. need test later.


Adding ELI5 video to the home page

Summary
Here at Meta Open Source, we've been creating short-form videos to explain Meta OSS projects in the simplest terms possible. We started embedding these videos into project pages as you can see in Docusaurus home page, Jest, Litho, Hydra, etc.
Although Ent has moved to Linux foundation, I wanted to propose adding this video to Ent as well, as it's been getting decent views and might benefit the community.
Test plan

@a8m what do you think?


quickcpu: Add version <IP_ADDRESS>

Closes #10252

[x] I have read the Contributing Guide.

extras on  quickcpu took 3s
❯ .\bin\checkver.ps1 -app quickcpu
quickcpu: <IP_ADDRESS>

/verify

CDN Protection.


Update queuing

[ch474]
Introduce a new lightweight Queue class.
Other changes:

OperationRecorder now inherits from Queue, which inherits from QueuingContext
_append_operation, append_operation, _remove_operation and remove_operation all refactored (name and signature change, but functionally no change)
Renamed _queuing_context.py to _queuing.py and moved OperationRecorder out of utils.py

@josh146 @antalszava @trbromley tagged all of you as reviewers because you expressed some interest, but the changes here are so minimal that one reviewer is all that's really needed


linux commands

# https://superuser.com/questions/554319/display-each-sub-directory-size-in-a-list-format-using-one-line-command-in-bash
# 查看当前目录下的各个子目录大小

[root@tencent-beta18 logs]# du -h --max-depth=1
98M     ./bjca-api-statistics-tasks-app
173M    ./bjca-app-api-manager-server
512K    ./apollo
1.4M    ./bjca-app-msgcenter-server
23M     ./arthas
44K     ./bjca-app-config-cases-server
2.7M    ./bjca-bedrock-oss-app
184K    ./bjca-auth-code-server-app
84K     ./bjca-api-usercenter-server-app
44K     ./elastic-job
4.0K    ./arthas-cache
145M    ./bjca-app-usercenter-tasks
324K    ./bjca-api-statistics-server-app
63G     ./bjca-app-usercenter
1.8G    ./bjca-app-metrics-ump-server
13M     ./bjca-app-elastic-server
8.0K    ./simple-jar-demo-server
28K     ./bjca-auth-code-tasks-app
12M     ./bjca-app-xxx-server
65G     .

ps aux
ps aux output meaning
➜  rig git:(master) ps aux | head -5
USER               PID  %CPU %MEM      VSZ    RSS   TT  STAT STARTED      TIME COMMAND
bingoobjca        1522  13.0  1.4  5568692 240992   ??  S    一09上午  22:33.13 /Applications/iTerm.app/Contents/MacOS/iTerm2
bingoobjca       10559   4.1  0.0  4371836   4960 s002  S    10:13上午   0:03.01 -zsh
bingoobjca        1361   3.8  1.3  6239448 218640   ??  S    一09上午  25:19.07 /Applications/QQ.app/Contents/MacOS/QQ
bingoobjca       78181   2.8  9.7 179434016 1629116   ??  S    四10上午  58:29.96 /Applications/GoLand.app/Contents/MacOS/goland

USER = user owning the process
PID = process ID of the process
%CPU = It is the CPU time used divided by the time the process has been running.
%MEM = ratio of the process’s resident set size to the physical memory on the machine
VSZ = virtual memory usage of entire process (in KiB)
RSS = resident set size, the non-swapped physical memory that a task has used (in KiB)
TTY = controlling tty (terminal)
STAT = multi-character process state
START = starting time or date of the process
TIME = cumulative CPU time
COMMAND = command with all its arguments

See the ps man page for more info.
Difference between VSZ vs RSS memory usage
VSZ - Virtual Set Size
The Virtual Set Size is a memory size assigned to a process ( program ) during the initial execution. The Virtual Set Size memory is simply a number of how much memory a process has available for its execution.
RSS - Resident Set Size
As oppose to VSZ ( Virtual Set Size ), RSS is a memory currently used by a process. This is a actual number in kilobytes of how much RAM the current process is using.
ps aux | awk '$2 == pid { print $0 }
➜  rig git:(master) ps aux | awk '$2 == 1522 { print $3,$4,$6,$0 }'
7.9 1.4 240720 bingoobjca        1522   7.9  1.4  5567532 240720   ??  S    一09上午  22:51.44 /Applications/iTerm.app/Contents/MacOS/iTerm2

The TLDR pages are a community effort to simplify the beloved man pages with practical examples. tldr tar
# bingoo @ 192 in ~/github/dog on git:master o [11:57:37]
$ tldr tar

tar

Archiving utility.
Often combined with a compression method, such as gzip or bzip.
More information: <https://www.gnu.org/software/tar>.

- Create an archive from files:
    tar -cf target.tar file1 file2 file3

- Create a gzipped archive:
    tar -czf target.tar.gz file1 file2 file3

- Extract an archive in a target directory:
    tar -xf source.tar -C directory

- Extract a gzipped archive in the current directory:
    tar -xzf source.tar.gz

- Extract a bzipped archive in the current directory:
    tar -xjf source.tar.bz2

- Create a compressed archive, using archive suffix to determine the compression program:
    tar -caf target.tar.xz file1 file2 file3

- List the contents of a tar file:
    tar -tvf source.tar

- Extract files matching a pattern:
    tar -xf source.tar --wildcards "*.html"

list files order by size desc:
[betaoper@beta-hetong default]$ find . -type f  -exec du -h {} + | sort -r -h |head -n 10
16M	./2019-07-09/1148515944367390722Convert.PDF
12M	./2019-06-28/1144528088150097921.PDF
7.9M	./2019-07-02/1146051722958139394Convert.PDF
7.2M	./2019-06-28/1144476741342109698.PDF
5.2M	./2019-07-01/1145605641686265857.PDF
4.6M	./2019-07-02/1146051549095849986.PDF
4.6M	./2019-07-02/1146050677066493953.PDF
4.1M	./2019-07-02/1146057879357550594.DOCX
4.1M	./2019-07-02/1146053558574313475.DOCX
3.5M	./2019-07-04/1146604946106630145.DOCX

指定用户名，进行svn操作: svn co URL  --username xxx --password xxx

查看linux中某个端口（port）是否被占用

lsof   lsof -i:3306
netstat -anp|grep 3306

查看局域网IP列表
[方法1](](https://stackoverflow.com/a/13669860)， nmap
Install nmap,
sudo apt-get install nmap
then
nmap -sP 192.168.1.*
or more commonly
nmap -sn <IP_ADDRESS>/24
will scan the entire .1 to .254 range
This does a simple ping scan in the entire subnet to see which hosts are online.
$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet <IP_ADDRESS>  netmask <IP_ADDRESS>  broadcast <IP_ADDRESS>
        ether 52:54:00:ef:16:bd  txqueuelen 1000  (Ethernet)
        RX packets<PHONE_NUMBER>  bytes<PHONE_NUMBER>423 (2.9 TiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets<PHONE_NUMBER>  bytes<PHONE_NUMBER>442 (3.2 TiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet <IP_ADDRESS>  netmask <IP_ADDRESS>
        loop  txqueuelen 1  (Local Loopback)
        RX packets<PHONE_NUMBER>  bytes<PHONE_NUMBER>424 (1.0 TiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets<PHONE_NUMBER>  bytes<PHONE_NUMBER>424 (1.0 TiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

$ nmap -sP 192.168.1.*

Starting Nmap 6.40 ( http://nmap.org ) at 2019-11-26 11:01 CST
Nmap scan report for hadoop3 (<IP_ADDRESS>)
Host is up (0.00030s latency).
Nmap scan report for <IP_ADDRESS>
Host is up (0.00080s latency).
Nmap scan report for hadoop1 (<IP_ADDRESS>)
Host is up (0.000088s latency).
Nmap scan report for <IP_ADDRESS>
Host is up (0.00044s latency).
Nmap scan report for <IP_ADDRESS>
Host is up (0.00042s latency).
Nmap scan report for hadoop2 (<IP_ADDRESS>)
Host is up (0.00060s latency).
Nmap scan report for hadoop0 (<IP_ADDRESS>)
Host is up (0.00031s latency).
Nmap scan report for <IP_ADDRESS>
Host is up (0.00055s latency).
Nmap done: 256 IP addresses (8 hosts up) scanned in 2.41 seconds

方法2  arp
Try following steps:

Type ipconfig (or ifconfig on Linux) at command prompt. This will give you the IP address of your own machine. For example, your machine's IP address is <IP_ADDRESS>. So your broadcast IP address is <IP_ADDRESS>.
Ping your broadcast IP address ping <IP_ADDRESS> (may require -b on Linux)
Now type arp -a. You will get the list of all IP addresses on your segment.

$ arp -a
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at 02:42:ac:12:00:06 [ether] on br-8983f91a1c88
? (<IP_ADDRESS>) at 02:42:ac:11:00:02 [ether] on docker0
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
hadoop0 (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at 02:42:ac:12:00:08 [ether] on br-8983f91a1c88
? (<IP_ADDRESS>) at <incomplete> on br-8983f91a1c88
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
gateway (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at 02:42:ac:12:00:0a [ether] on br-8983f91a1c88
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
hadoop3 (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
hadoop2 (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at fe:ee:ec:9b:c5:79 [ether] on eth0
? (<IP_ADDRESS>) at <incomplete> on br-8983f91a1c88

grep a file, but show several surrounding lines?
For BSD or GNU grep you can use -B num to set how many lines before the match and -A num for the number of lines after the match.
grep -B 3 -A 2 foo README.txt
If you want the same number of lines before and after you can use -C num.
grep -C 3 foo README.txt
This will show 3 lines before and 3 lines after.
-A and -B will work, as will -C n (for n lines of context), or just -n (for n lines of context... as long as n is 1 to 9).

cat << EOF
To build on @Livven's answer, here are some useful combinations.

variable substitution, leading tab retained, overwrite file, echo to stdout

tee /path/to/file <<EOF
${variable}
EOF
```

2. no variable substitution, leading tab retained, overwrite file, echo to stdout

````bash
tee /path/to/file <<'EOF'
${variable}
EOF

variable substitution, leading tab removed, overwrite file, echo to stdout

tee /path/to/file <<-EOF
    ${variable}
EOF
```

4. variable substitution, leading tab retained, append to file, echo to stdout

````bash
tee -a /path/to/file <<EOF
${variable}
EOF
```

5. variable substitution, leading tab retained, overwrite file, no echo to stdout

````bash
tee /path/to/file <<EOF >/dev/null
${variable}
EOF
```

6. the above can be combined with sudo as well

````bash
sudo -u USER tee /path/to/file <<EOF
${variable}
EOF
```

#!/bin/bash

# bccrack.sh

cd "/Applications/Beyond Compare.app/Contents/MacOS"

if [[ -f BCompare.real ]]; then
    exit 0
fi

mv BCompare BCompare.real

cat > BCompare <<'EOF'
#!/bin/bash

rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.real $@
EOF

chmod +x BCompare

如何使用Journalctl查看和操作Systemd日志

journalctl -u service-name.service -u flag is short for --unit
journalctl -u service-name.service -b  to see only log messages for the current boot, -b is short for --boot
journalctl -u service-name For things named .service, you can actually just use
journalctl --since "2018-08-30 14:10:10" --until "2018-09-02 12:05:50"
journalctl --since "-1h15min"
journalctl --since "2015-01-10" --until "2015-01-11 03:00"
journalctl --since yesterday
journalctl -n  显示最近的10个条目
journalctl -n 20  显示最近的20个条目
journalctl _PID=8088 -o json
journalctl --since 09:00 --until "1 hour ago"
journalctl -f  view a live log of new messages as they are collected

Thanks:

journalctl man page
Use journalctl to View Your System's Logs
如何使用Journalctl查看和操作Systemd日志

Print lines in file from the match line until end of file

sed -n '/matched/,$p' file
awk '/matched/,0' file

In Awk there is , -- the "between" operator(range patterns).  Following some examples (default action = print)

Print the lines between "start" and "stop": awk '/start/,/stop/'
Lines between line 3 and 10:  awk 'NR==3, NR==10'
lines between  and end: awk '/<ACROSS>/, 0' (0 is false, so it never ends)

you can freely mix regexps and line number predicates (or any expression) in them. For example:

NR==1,/rex/   # all lines from the 1rst up to the one matching /rex/
/rex/,0   # from the line matching /rex/ up to the end-of-file.


The Machine ™

Things that need to be moved to the machine before the merger

[ ] array length computation via Rvalue::Len
[ ] heap allocations via Rvalue::NullaryOp(NullOp::Box, _)
[ ] memory::Kind has Rust (heap), C (malloc heap) and Env (env var emulation) allocations

We could add a generic Machine variant to Kind, which every Machine can override

[ ] branching (TerminatorKind::SwitchInt) isn't allowed in CTFE in Rust right now

Things I'm not sure about
There's a lot of stuff that moving to The Machine will make the code much more complex, even though many of these things are basically trivial additions to const eval that imo Rust should have, but couldn't have had with HIR-based const eval.

[ ] Function pointers and calling them
[ ] Some casts which aren't supported by CTFE in Rust right now
[ ] Unsizing
[ ] Local variables
[ ] Destructuring
[ ] Rvalue::Discriminant
[ ] unions
[ ] enum creation
[ ] References and dereferencing
[ ] closures and calling them
[ ] unsafe code handcrafting a vtable by moving a pointer to a const fn into the appropriate vtable fields and then calling the method via a fat pointer pointing to the field.

Some of these things are really hard to untangle from miri without making the code quite riddiculous.
Please check boxes on the things that need to be done in the "I'm not sure"-list and discuss the rest below.

array length computation via Rvalue::Len

This (and Assert!) is implemented in the trans evaluator for bounds checking.

We could add a generic Machine variant to Kind, which every Machine can override

All of those variants (except Rust?) seem like they belong to Machine. Associated type?

Function pointers and calling them

The requirement here should be that the callee is const fn. This will exclude virtual calls.
I don't see a reason to exclude anything else in particular, most of those things are needed in some way or another for trans-time constant evaluation.

All of those variants (except Rust?) seem like they belong to Machine

Rust is just heap allocations. We can move it back to interpret once const eval should allow those.

The requirement here should be that the callee is const fn. This will exclude virtual calls.

That requirement is already guaranteed. Virtual calls can still happen if you do unsafe shenigans.

I don't see a reason to exclude anything else in particular, most of those things are needed in some way or another for trans-time constant evaluation.

Well... That will still mean regular CTFE will suddenly have more features than it does now (I'm not complaining ;))


Update dataweave-formats-json.adoc

Fixed explanatory note for JSON streaming example. This streaming configuration is for a File Read, not an HTTP Listener.

Thx for noticing that error.


Hook up "Create a team" button on teams tab

r? @keybase/react-hackers

PTAL

PTAL!

Actually, never mind, I'm looking over your suggestion in chat now...

Ah, cool, I thought you were suggesting something else but it was the same thing.

merging after CI


Calling Firebase.initializeApp more than once causes default Firebase app already exists error.

ProductName:	Mac OS X
ProductVersion:	10.14.4
BuildVersion:	18E226
"firebase-admin": "5.12.1",
When I call Firebase.initializeApp() more than once, I get this error:
Error: The default Firebase app already exists. This means you called initializeApp() more than once without providing an app name as the second argument. In most cases you only need to call initializeApp() once. But if you do want to initialize multiple apps, pass a second argument to initializeApp() to give each app a unique name.

Its really annoying because I want to create isolated servers for each test without having to run a separate instance of Node. Can you please fix this so more than one can run side-by-side?

There's nothing to fix. This is how this API is expected to work. If you want to run multiple instances of FirebaseApp, you need to give them different names. See https://firebase.google.com/docs/reference/admin/node/admin.app.App.html#name for some examples.

Interesting. So I can make up a random string each time?

That's up to you. As far as the SDK is concerned, each instance of FirebaseApp must have a different name.

There's nothing to fix. This is how this API is expected to work. If you want to run multiple instances of FirebaseApp, you need to give them different names. See https://firebase.google.com/docs/reference/admin/node/admin.app.App.html#name for some examples.

Your app is breaking on Next.js projects with this error. There is nothing in the docs that clues people in on how to fix it. So there actually is something for you guys to fix.

There's nothing to fix. This is how this API is expected to work. If you want to run multiple instances of FirebaseApp, you need to give them different names. See https://firebase.google.com/docs/reference/admin/node/admin.app.App.html#name for some examples.

the link you sent doesn't work...

Based on comments on this thread, the answer provided is not very helpful, i.e. this error breaks Next.js projects with no help info and the provided link leads to a 404.
I've resurrected this issue with a more narrow scope stating that this error breaks Next.js apps:
https://github.com/firebase/firebase-admin-node/issues/2111

I am also getting this error in Firebase Functions.
export const someFirebaseFunction = functions.https.onRequest(
  async (request, response) => {
    ...
    initializeApp();
    ...
  }
)

I was also getting this error but apparently wrapping the initializeApp function under a conditional statement which is executed if firebaseError is false solves this issue.  The below is how this issue was resolved for me:
 if (!FirebaseError) {
      admin.initializeApp({
        credential: admin.credential.cert(cred), //cred is my firebase config file.
    });
 }

A way to resolve this issue is to make the function async and try and catch the error but also continue doing your task:
try {
      admin.initializeApp({
        credential: admin.credential.cert(cred),
      });
      return respond();
    } catch (e) {
      return respond();
    }

function respond(){
// perform your task
}


Fix loginRedirect to avoid using http

use redirect()-to() instead of redirect()-intended() to avoid redirecting to http

But redirect->intended does something else


Sdk Version 30 and above not working

Sdk Version 30 and above not working Even though there is "WRITE_EXTERNAL_STORAGE" and "READ_EXTERNAL_STORAGE". The only solution is to get "MANAGE_EXTERNAL_STORAGE" permission but google play doesn't allow it either. Can you update the library with the Media Store API?

Same issue.
I use Xiaomi Redmi Note 10 5G (M2103K19G)
Android 11, MIUI 12.5.1


TODO: Add the 1x1 conv case to NHWC layout as well

Take a look at https://github.com/pytorch/pytorch/blob/master/caffe2/operators/conv_op_impl.h and port that optimization

Done in 1efb0b2


trouble with wikipedia eval

(celi-framework) python -m celi_framework.examples.wikipedia.eval.run_eval
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/path/to/files/celi/celi_framework/examples/wikipedia/eval/run_eval.py", line 120, in
celi_config = get_config()
^^^^^^^^^^^^
File "/path/to/files/celi/celi_framework/examples/wikipedia/eval/run_eval.py", line 36, in get_config
use_monitor = not args.no_monitor
^^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'no_monitor'

I'm not sure what branch you are on.  That error doesn't line up with the code on master.  run_eval doesn't have a get_config function at all anymore.

Main branch is running fine for me.


Tracking issue: Completions showing up in places where they shouldn't

[x] pp / ppd snippets are suggested in struct literals, where only the field names should appear
[x] inside trait definitions / impls (trait Trait {$0} / impl Foo {$0}), nothing except the fn, type and const keywords (and the full item completions for trait impls) should appear (currently many types and autoimport suggestions), done in #8526 #9020
[x] after use, many type names, macros etc. show up, which they shouldn't (ok, technically you can use Vec; if you want, but that's not really a useful suggestion?), done in #9032
[ ] in type position (e.g. let _: $0), values like local variables, functions and constants show up, which they shouldn't.
[ ] ideally we would only suggest macros in places where they can expand to something that works, but that's probably hard to impossible :thinking: if we can't detect it, maybe we could introduce annotations that can be added to macros to specify it.
[ ] we should also hide #[doc(hidden)] or #[unstable] macros or items, e.g. __thread_local_inner!(cc #7718, #824, #2003)
[ ] in expression or type position, we suggest attributes like bench, derive, test, test_case, global_allocator, cfg_accessible and cfg_eval. At least I think they're attributes? I'm actually not sure where they're coming from.
[ ] in expression/type position, we suggest derive macros like Eq!(...) or Clone!(...) as if one could actually call them that way.

For better clarity, it's preferable to add the corresponding tests into the completions.rs instead of a particular completion module.
This way, we will test all completions at once and ensure that there are no extra completions for all kinds of our completions, including the future added ones.

inside modules (and on top level), e.g. mod foo {$0}, nothing except various keywords that can introduce items should appear

Regarding this, are you referring to macros that shouldn't appear? As the only completions I get here are in fact item and vis keywords as well as macros which seems correct to me.

Yeah, I'm not sure what I meant, macros can appear there and so modules also need to.

in expression or type position, we suggest attributes like bench, derive, test, test_case, global_allocator, cfg_accessible and cfg_eval. At least I think they're attributes? I'm actually not sure where they're coming from.

This seems to happen for all builtin 2.0 macros here 🤔
https://github.com/rust-lang/rust/blob/f6a28aa4036415d8aa713bf707842779b709935e/library/core/src/macros/mod.rs#L1396-L1490

Huh, ok, then it kind of makes sense that they show up. I guess the only way around it is to know in a hard-coded way (since these are built-in) that they're attribute macros? (What does rustc do? Writing e.g. derive!(Foo) just gives a normal "cannot find macro derive in this scope", nothing that indicates that it actually exists as a macro...)

Those are built-in attribute macros. We should add support for that to hir_expand (it should know all built-in macros, and also what kind of macros they are).

I believe we can consider this tracking issue done? There is one open point left which is

ideally we would only suggest macros in places where they can expand to something that works, but that's probably hard to impossible 🤔 if we can't detect it, maybe we could introduce annotations that can be added to macros to specify it.

and for that I believe a standalone issue is more appropriate as its more about brainstorming what to do with that?

Yeah, closing this!


Resource Link for images is broken

In the codelab for building the lemonade app, the link to download the zip files for the images does not work.

I found the images here: https://github.com/google-developer-training/basic-android-kotlin-compose-training-lemonade/blob/m2-main/lemonade_images.zip
They were in an old branch called m2-main.

Perfect, thank you !


xds cache: add concurrent Get benchmark

to measure lock contention as reported in https://github.com/istio/istio/issues/40744

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-cni_istio
ab6c22e64ccec03d0c33245549848f75e273d8ee
link
true
/test integ-cni

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@howardjohn: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-cni_istio
ab6c22e64ccec03d0c33245549848f75e273d8ee
link
true
/test integ-cni

integ-security_istio
ab6c22e64ccec03d0c33245549848f75e273d8ee
link
true
/test integ-security

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Multiple errors using demo source code in Typescript

I copied this code from the gravity demo to add mouse control in my typescript program
    // add mouse control
    var mouse = Mouse.create(render.canvas),
        mouseConstraint = MouseConstraint.create(engine, {
            mouse: mouse,
            constraint: {
                stiffness: 0.2,
                render: {
                    visible: false
                }
            }
        });

    Composite.add(world, mouseConstraint);

    // keep the mouse in sync with rendering
    render.mouse = mouse;

and got the following 3 errors:

Type '{ stiffness: number; render: { visible: false; }; }' is missing the following properties from type 'Constraint': bodyA, bodyB, id, label, and 5 more.

Argument of type 'MouseConstraint' is not assignable to parameter of type 'Body | Composite | Constraint'.
Type 'MouseConstraint' is missing the following properties from type 'Body': angle, angularSpeed, angularVelocity, area, and 30 more.

Property 'mouse' does not exist on type 'Render'.

I don't see any easy workaround to using this mouse functionality in typescript.

I got this working in typescript by removing
render.mouse = mouse;

and on line 2258 of the type file in IMouseConstraintDefinition I changed this
 constraint?: Constraint | undefined;

to
 constraint?: IConstraintDefinition | undefined;

There are so many errors in @types/matter-js, such as Render.create() return Render options while type defination return Render type.

I don't maintain the TypeScript bindings so I can't help much (they're a separate project) but if there's any TypeScript users willing to help them out, I think they take contributions.

I copied this code from the gravity demo to add mouse control in my typescript program
    // add mouse control
    var mouse = Mouse.create(render.canvas),
        mouseConstraint = MouseConstraint.create(engine, {
            mouse: mouse,
            constraint: {
                stiffness: 0.2,
                render: {
                    visible: false
                }
            }
        });

    Composite.add(world, mouseConstraint);

    // keep the mouse in sync with rendering
    render.mouse = mouse;

and got the following 3 errors:

Type '{ stiffness: number; render: { visible: false; }; }' is missing the following properties from type 'Constraint': bodyA, bodyB, id, label, and 5 more.

Argument of type 'MouseConstraint' is not assignable to parameter of type 'Body | Composite | Constraint'.
Type 'MouseConstraint' is missing the following properties from type 'Body': angle, angularSpeed, angularVelocity, area, and 30 more.

Property 'mouse' does not exist on type 'Render'.

I don't see any easy workaround to using this mouse functionality in typescript.

I'm still having this issue too. Is there another link to someone who fixed this?

@CJohnDesign I suppose worth contacting the maintainers on that as it seems overly strict, but for now I guess you could use @ts-ignore around that line e.g. like here?

@CJohnDesign I suppose worth contacting the maintainers on that as it seems overly strict, but for now I guess you could use @ts-ignore around that line e.g. like here?

That worked! this is how my code ended up looking! thanks
      mouseConstraint = MouseConstraint.create(engine, {
        mouse: mouse,
        // eslint-disable-next-line @typescript-eslint/ban-ts-comment
        // @ts-ignore
        constraint: {
          stiffness: 0.2,
          render: {
            visible: false,
          },
        },
      })```

but this not standard work


[Enhancement] Optimize generatePartitionRefMap performance when there are many partitions in base table

Fixes #issue
What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.1
[ ] 3.0
[ ] 2.5
[ ] 2.4

[FE PR Coverage Check]
:heart_eyes: pass : 39 / 40 (97.50%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/common/SyncPartitionUtils.java
39
40
97.50%
[92]

[FE PR Coverage Check]
:heart_eyes: pass : 58 / 60 (96.67%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/common/PartitionRange.java
17
19
89.47%
[75, 78]

:large_blue_circle:
com/starrocks/sql/common/SyncPartitionUtils.java
41
41
100.00%
[]

@Mergifyio backport branch-3.1


Unable to build on MacOS after raising minimum target version to 10.15 (11.0)

Describe the bug
Attempting to build for MacOS fails with cocopods install step failing. I've tried raising the minimum target version in the MacOs Podfile as well as in XCode Project but I still see the error.
dlopen(/opt/homebrew/lib/ruby/gems/3.2.0/gems/ffi-1.15.5/lib/ffi_c.bundle, 0x0009): Library not loaded

Also I've tried all the main suggestions of reinstalling gem and cocoapods and updating Ruby and in all cases I still see the same problem.
I thought this was a flutter issue to begin with and posted here but I was informed that it was likely due to my target version in the MacOS app.
I have not tried to build this for iOS but suspect that I will run into the same issue and probably has the same fix of updating the target version appropriately.
I'm not sure if I'm currently updating the minimum target version correctly or if there are some other places that I'm missing out on in order to get this to work.
To Reproduce
Steps to reproduce the behavior:

Create a new flutter project flutter create bug --platforms macos
Add the Flutter Web Auth 2 as a dep: flutter pub add flutter_web_auth_2
Raise minimum target version in Podfile and in XCode Project

I modify the first line of the Podfile in the macos folder setting the version to 10.15 (i've tried 11.0 too).

platform :osx, '11.0'

I open the XCode Project -> Runner -> Target -> Runner -> Minimum Target Version -> 10.15 (or 11.0)

In the macos folder invoke pod install cd macos; pod install

dlopen(/opt/homebrew/lib/ruby/gems/3.2.0/gems/ffi-1.15.5/lib/ffi_c.bundle, 0x0009): Library not loaded

Expected behavior
I should be able to build on Mac OS.
Screenshots
Updated Mac OS Minimum Target version in the Xcode prooject

Device (please complete the following information!)

Device: Macbook Air M1
OS: 13.4.1
Browser: Chrome
flutter_web_auth_2 version: 2.1.5

Checklist

[X] I have read and followed the entire troubleshooting guide and it has not provided the solution I need.
[X] I have provided all the information I can (incl. auth URL etc.)

This seems to have been fixed by the comment in the linked issue


ghostwriter: init at 1.5.0

Motivation for this change
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build ghostwriter

Failure on aarch64-linux (full log)
Partial log (click to expand)
                                                                    ^~~~~
src/sundown/html.c:524:108: warning: unused parameter 'opaque' [-Wunused-parameter]
 toc_link(struct buf *ob, const struct buf *link, const struct buf *title, const struct buf *content, void *opaque)
                                                                                ^~~~~~
src/sundown/markdown.c: In function 'htmlblock_end_tag':
src/sundown/markdown.c:1829:22: warning: unused parameter 'rndr' [-Wunused-parameter]
  struct sd_markdown *rndr,
                      ^~~~
builder for '/nix/store/iy2pr2g8bi36lyxpr28nbxripnbvsxd4-ghostwriter-1.5.0.drv' failed with exit code 2
error: build of '/nix/store/iy2pr2g8bi36lyxpr28nbxripnbvsxd4-ghostwriter-1.5.0.drv' failed

Success on x86_64-linux (full log)
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0
shrinking /nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0/bin/ghostwriter
gzipping man pages under /nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0/share/man/
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0/bin
patching script interpreter paths in /nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0
checking for references to /tmp/nix-build-ghostwriter-1.5.0.drv-0 in /nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0...
postPatchMkspecs
postPatchMkspecs
/nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0

Success on x86_64-linux (full log)
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0
shrinking /nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0/bin/ghostwriter
gzipping man pages under /nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0/share/man/
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0/bin
patching script interpreter paths in /nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0
checking for references to /build in /nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0...
postPatchMkspecs
postPatchMkspecs
/nix/store/3ajc7zzdk0k42zrbniszxw2xwdsqcvx0-ghostwriter-1.5.0

Success on aarch64-linux (full log)
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/5jyirjq1ql6cmwpi8cglwkfp9w6zmh30-ghostwriter-1.5.0
shrinking /nix/store/5jyirjq1ql6cmwpi8cglwkfp9w6zmh30-ghostwriter-1.5.0/bin/ghostwriter
gzipping man pages under /nix/store/5jyirjq1ql6cmwpi8cglwkfp9w6zmh30-ghostwriter-1.5.0/share/man/
strip is /nix/store/xmpjypwjmp2qi1chs5kr0hacnh161ls4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/5jyirjq1ql6cmwpi8cglwkfp9w6zmh30-ghostwriter-1.5.0/bin
patching script interpreter paths in /nix/store/5jyirjq1ql6cmwpi8cglwkfp9w6zmh30-ghostwriter-1.5.0
checking for references to /build in /nix/store/5jyirjq1ql6cmwpi8cglwkfp9w6zmh30-ghostwriter-1.5.0...
postPatchMkspecs
postPatchMkspecs
/nix/store/5jyirjq1ql6cmwpi8cglwkfp9w6zmh30-ghostwriter-1.5.0

Why did it work now when it didn't work before? I only changed meta.

The aarch64 builder was updated between those to builds to fix a problem with /bin/sh, which was fixed in https://github.com/NixOS/nixpkgs/pull/34628.

Okay, thanks! Then I'll have to revisit an older PR to enable aarch64.


Chapter 16 typo

(p546) In a note, "Since the loss at time 1:t is dependent on the hidden units at all previous time steps 1:t" may be "Since the loss at time t is dependent on the hidden units at all previous time steps 1:t-1".
(p555) In middle code block,
>>> X_train = sequences[:25000,:]
>>> y_train = df.loc[:25000, 'sentiment'].values
>>> X_test = sequences[25000:,:]
>>> y_test = df.loc[25000:, 'sentiment'].values

As you may know, pandas' dataframe slicing includes start and end index.
Actually it is not a problem with this example, but I think it's better to change y_train = df.loc[:24999, 'sentiment'].values.
Thanks.

Thank you @rickiepark for your comments. You are right on both statements, it should be « at time t » and the last index should be 2499. We will make a note of these for the next release.


react@unknown can't be resolved to a satisfying range

I am trying to create a new React app project using npx create-react-app my-first-react-app
I am getting an error -
$ npx create-react-app my-first-react-app
npx: installed 67 in 43.776s

Creating a new React app in C:\Users\myid\my-first-react-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

➤ BR0027: react@unknown can't be resolved to a satisfying range
➤ BR0027: react-dom@unknown can't be resolved to a satisfying range
➤ BR0027: react-scripts@unknown can't be resolved to a satisfying range
➤ BR0027: cra-template@unknown can't be resolved to a satisfying range
➤ Errors happened when preparing the environment required to run this command.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts cra-template --cwd C:\Users\myid\my-first-react-app has failed.

Deleting generated file... package.json
Deleting generated file... yarn.lock
Done.

I have created .npmrc file in C:\Users\myid\ and declared registry path as the packages comes from our internal organisation repository.
Any thoughts on how to resolve this?
npm version 6.14.6, node version 12.18.3

Looks like yarn is causing issue for me. I followed below steps and that did the trick.
npm uninstall –g yarn
npm cache clean –force
npx create-react-app my-app

Looks like yarn is causing issue for me. I followed below steps and that did the trick.
npm uninstall –g yarn
npm cache clean –force
npx create-react-app my-app


Programmatically go to slide with animation?

Is there a way to programmatically go to a slide animating through the slides as it goes; like slick carousels goToSlide method? I may be able to achieve the desired result using the previousSlide and nextSlide methods from the decorators but I don't know how to access those methods outside of using the decorators prop.
It appears that there is a goToSlide method within the carousel, but it isn't exposed.
Suggestions?

This can be done through refs:
this.refs.carousel.goToSlide(3);   // example


Model.eval()

Hi!
During training you don’t use model.eval() when you call to validate() function. It could affect to model performance?

Hi, thanks for noticing this! I will push a new commit shortly
As a side node: The model seems to be in eval-mode by default, which means that after loading a pre-trained model and using it for inference, there should not be any impact on performance. I would expect the validation accuracies to be affected, but have not tested if the impact is actually measurable. If you did, feel free to update here as I'm curious!


lime not installing

Describe your problem here.
i can't install lime in build.yml
https://github.com/user-attachments/assets/1e8b27b6-04fc-4f0c-8e0c-1d2555ba340c
help!
Are you modding a build from source or with Lua?
Source
What is your build target?
Desktop (Linux, Windows or Mac)
Which psych engine version you're on?
1.0 (Final)
Did you edit anything in this build? If so, mention or summarize your changes.
No response

that’s just visual studio setting up lime, just do haxelib install lime

no

i can't install git version of lime

i can't install git version of lime

then do ‘haxelib git lime https://github.com/mcagabe19-stuff/lime`

 it's not installed thank you

then rerun he command


unordered_map header file is insufficient

Including unordered_map' is missing.
Related issues

https://github.com/sony/flutter-embedded-linux/issues/4

@taka-okayama May I request you to review?

Thanks.


VSCode User Area does not work

I took the @import from the theme, and it does not work at all, maybe due to the various CSS changes in Discord itself

Yeah this is known, i dont have time to maintain this theme anymore. so if anyone happen to know how to fix it just make a PR


Validate entropy init and random number generator on all platforms

Problem
Entropy initialization for DRBG_get_bytes() and random number generation (rand() from C++ standard library, GetRandU*()) is done per platform, often in *PlatformManagerImpl<ImplClass>::_InitChipStack().
It was found that the methods are varied and there are no tests (and no easy test, given the methods used) to ensure entropy sources are initialized properly and across the board.
Proposed Solution

Add an entropy init and random number generator audit method in a core component that uses random numbers, during init, to allow showcasing whether the RNGs are initialized or whether each reset/boot we get the same random numbers in the same order.
Have one owner for each platform run the audit so that the platform is validated for doing this platform-level init properly.

All platforms have passed the audit


Fix file names for two-fer.

Because Kotlin style guide forces CamelCase for file/class names, we should use TwoFer.
Now: exercises/two-fer/src/test/kotlin/TwoferTest.kt.
Should be: exercises/two-fer/src/test/kotlin/TwoFerTest.kt.
The main question is if we can just do renaming and it will not break something for somebody.

You can just do the rename. It won't break it for existing users :)