SqliteException(6410): while selecting from statement, disk I/O error, disk I/O error (code 6410)

When I access a StatefulWidget, in the initState I execute the following code:
`@override
void initState() {
super.initState();

WidgetsBinding.instance.addPostFrameCallback((_) async {

  final queryExpense = database.expenseReportTypeModel.select()
    ..orderBy([
          (t) => drift.OrderingTerm(expression: t.expenseReportTypeDescription)
    ]);
  expenseReportTypeList = await queryExpense.get();
  final queryCustomer = database.customerModel.select()
    ..orderBy(
        [(t) => drift.OrderingTerm(expression: t.customerDescription)]);
  customerList = await queryCustomer.get();
  setState(() {});
});

}`
Executing the second get() generates the following error:
SqliteException(6410): while selecting from statement, disk I/O error, disk I/O error (code 6410) Causing statement: SELECT * FROM "customer_model" ORDER BY "customer_description" ASC;
if I delete the first get() the second one executes correctly
The same problem happens if I insert the code into a transaction. What do I need to do to execute two get()s one after the other?

This is due to https://github.com/simolus3/drift/issues/876 and can be fixed by setting a custom temporary directory when opening the database, like this:
https://github.com/simolus3/drift/blob/8077c564d76cd4861c54915138e1fd5c6d25b8c1/examples/app/lib/database/connection/native.dart#L20-L36
I will also add this to the setup page in the documentation to make this easier to avoid.

I'm having the problem on iOS, not Android

Interesting, I've not seen this happen on iOS before. Does applying the sqlite3.tempDirectory workaround work if you also apply it on iOS?

sorry for my ignorance but I didn't understand where to put that part of code. My code that initializes the database is:
`@DriftDatabase(tables: [
CustomerModel,
DeliveryModel,
ExpenseReportTypeModel,
ExpenseReportModel,
ExpenseReportRowsModel
])
class DatabaseDrift extends _$DatabaseDrift {
DatabaseDrift() : super(_openConnection());

@override
int get schemaVersion => 1;
}
LazyDatabase _openConnection() {
// the LazyDatabase util lets us find the right location for the file async.
return LazyDatabase(() async {
// put the database file, called db.sqlite here, into the documents folder
// for your app.
final dbFolder = await getApplicationDocumentsDirectory();
final file = File(p.join(dbFolder.path, 'db.sqlite'));
return NativeDatabase.createInBackground(file);
});
}`

I figured out where to add the piece of code. Thank you

That's good to know, I'll update the documentation.


Fall back to State District

Fixes #54 by falling back to state_district if county is not defined.

I just saw that Nominatim also has the field state_district.
So I think it might be even better to add the state_district as a new field to the GHEntry?

But Nominatim isn't returning it for our test case.

WDYT @karussell, should we create a new field in GHEntry?

Yes, a new field might be better

Ok, I updated the PR :)


Crashing to safe mode on 0.2.4

I have an iPhone 12 Pro Max using ios 14.3 with the Airpods Pro 2 and when I receive a phone call the phone crashes and goes to safemode, happy to provide any files to help support this.

Any crash log for that?

I was crashing every time this morning and just tried again and it did not crash. However, i have no audio through the airpods and the recipient cannot hear me. If i switch the audio source to iphone/speaker it works without issue.


MatterJS: How to keep consistent bodies speed on different screen resolutions?

I try to keep consistent speed of bodies on different screen resolutions. Now I test two resolutions:

844x390
1920x1080

I precalculate ScreenHeight and create an object with a mass: screenHeight / 130.0. So the mass is depends on screen height. Then I apply some horizontal force in a 60-fps loop with applyForce(), calculated with: const forceX = screenHeight / 60000.
And I get absolutely different speed on different resolutions. Objects on screen: 844x390 moves 20-30x faster than they move on 1920x1080.
Gravity of the world I set as: screenHeight / 1080.
Both cases I test on the same device, the same browser, so there's no any problem with different FPS or a performance value.
Why does it happen? How to keep consistent speed? For example, I wanna move my object by distance: screenHeight * 2.0, spending exactly 1.0 second on different screen resolutions. So I don't know what's the value of a force should I apply to get such behavior.
As for the scale config I use:
scale: {
	width: "100%",
	height: "100%",
	zoom: 1.0,
	mode: Phaser.Scale.ScaleModes.NONE,
	autoCenter: Phaser.Scale.CENTER_BOTH,
},

What should I check? Is that problem related to Phaser or to MatterJS?
UPD:
Looks it works absolutely random when you want to change the scale of physics proportionally. You change all the sizes proportionally to current screen resolution but it works absolutely different.
How do you deal with scaling physics for a current screen resolution?

hello there, I can suggest an  approach to scaling physics in Phaser. If you are using pixel density, you can use the viewport dimensions to scale the physics engine. You can get the viewport dimensions using the window.innerWidth and window.innerHeight properties.
Then, you can use these values to set the mass and force of your physics bodies. For example, you can calculate the mass of your objects as mass = (window.innerHeight / 130), and then use this value to set the mass of your physics bodies.
Similarly, you can calculate the force as force = (window.innerHeight / 60000), and then use this value to apply a horizontal force to your physics bodies. This approach should help you maintain consistent physics behavior across different screen resolutions.
Hope this can help you !


Can't connect/run boot2docker

Hi I'm running:
Yosemite/10.10.1
Virtual box: 4.3.20
When running  boot2docker up
->
..........................................................................oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
Started.
  Trying to get Docker socket one more time
Error requesting socket: exit status 255
Auto detection of the VM's Docker socket failed.
Please run `boot2docker -v up` to diagnose.

Then I'm running : boot2docker -v up
->
at first I get this:
Waiting for VM and Docker daemon to start...
.Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022 (attempt #0).Connecting to tcp://localhost:2022
later on I get this
o2015/01/23 16:26:05 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/dsegal/.ssh/id_boot2docker docker@localhost grep tcp:// /proc/$(cat /var/run/docker.pid)/cmdline
Error requesting socket: exit status 255
o2015/01/23 16:26:05 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/dsegal/.ssh/id_boot2docker docker@localhost grep tcp:// /proc/$(cat /var/run/docker.pid)/cmdline
Error requesting socket: exit status 255
Started.
Trying to get Docker socket one more time
2015/01/23 16:26:06 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/dsegal/.ssh/id_boot2docker docker@localhost grep tcp:// /proc/$(cat /var/run/docker.pid)/cmdline
Error requesting socket: exit status 255
2015/01/23 16:26:06 executing: /usr/bin/ssh ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 2022 -i /Users/dsegal/.ssh/id_boot2docker docker@localhost tar c /home/docker/.docker/*.pem
Auto detection of the VM's Docker socket failed.
I've setup my bash_profile
``
export DOCKER_HOST=tcp://<IP_ADDRESS>:2376
export DOCKER_HOST=tcp://<IP_ADDRESS>:2376
export DOCKER_CERT_PATH=/Users/dsegal/.boot2docker/certs/boot2docker-vm
export DOCKER_TLS_VERIFY=1

``

I think its also related when running docker
FATA[0000] Couldn't read ca cert /Users/dsegal/.boot2docker/certs/boot2docker-vm/ca.pem: open /Users/dsegal/.boot2docker/certs/boot2docker-vm/ca.pem: no such file or directory
seems like I'm missing the ssh keys

one last thing, when running boot2docker ssh
->
error in run: exit status 255

I usually experience the same when trying to up from vm's aborted state. Seems like it gets corrupted easily. Would be nice to have cli print some meaningful message suggesting to re-do the vm

@RomanSaveljev yeah I've try to reinstall it after removing the vm but still getting same issue

for some reason boot2docker is not creating this directory on my machine
.boot2docker/certs/...

Fix:

locate boot2docker - remove every file related to it.
restart mac.
re-install from the site (don't use the brew version, not sure if its related but its works for me and I'm not going to investigate it further )
boot2docker init, ...

works!

For me this worked:
$ boot2docker remove
$ boot2docker init
$ boot2docker up

@alej0varas i think you meant
$ boot2docker delete and not $boot2docker remove
otherwise it worked perfectly for me

Deleting the entire VM is disruptive and is not an acceptable solution to this problem. This issue should be re-opened.


20 check python and os version consistency

Changes:

Corrected python version in GitHub workflows from 3.8 to 3.9.
Corrected python version in setup_project.sh and venv name in both that scripts and run_pytests.sh. Both now align with the README.md.

A useful link: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners


Wrong dimensions when trying to Model Inference

Hello! I did the "Model Training" for CoNLL03 and when I was going to test the "Model Inference" I'm having the following issue:
RuntimeError: Error(s) in loading state_dict for SparseCHMM:
size mismatch for neural_module.dir_param_base_module.emission_2e.weight: copying a param with shape torch.Size([64, 768]) from checkpoint, the shape in current model is torch.Size([128, 768]).
size mismatch for neural_module.dir_param_base_module.emission_2e.bias: copying a param with shape torch.Size([64]) from checkpoint, the shape in current model is torch.Size([128]).
I made a copy of "./scripts/infer-laptop.sh" for CoNLL03, just changing the output_dir and test_dir.
Any ideas why this is happening or what should I do?

Hi,
Sorry for the late response. I just saw this issue. I noticed that you have closed it. Have you solved the issue?
For CoNLL 2003, we have already prepared a script at ./scripts/train-conll.sh. You can try that one and let me know if it does not work.

Hi! No problem!
Yes, a friend of mine helped me to find what it was.
It was the RELIAB_LVL="label" who was supposed to be changed to RELIAB_LVL="entity" for NER.

Sounds good. Let me know if you have further questions or concerns!


pkgs/cosmic-notifications/package.nix has invalid meta attribute "mainPrograms"

Fails to evaluate on my machine because the expected attribute is meta.mainProgram (without the "s").
Nix Version: nix (Lix, like Nix) 2.92.0-devpre20240830_d75df91

Oops, nice catch! I'll fixed that now


RukPak should be able to inherit resources

As a cluster admin, I have already kubectl'd an application to the cluster. Afterwards, I noticed that the same application was available in the RukPak ecosystem. Today, RukPak would fail to install the application because it won't be able to "adopt" the resources. I would like RukPak to "adopt" the resources if they were not installed due to a separate bundleDeployment.
Acceptance Criteria:

Investigate whether or not RukPak should support abandoning resources owned by a bundleDeployment, ie move from the RukPak ecosystem to raw manifests.

This is completed by #508.


x/tools/gopls: function argument placeholders missing in Emacs

What version of Go are you using (go version)?

$ go version
go version go1.14.7 linux/amd64
$ gopls version
gopls, built in GOPATH mode master

Does this issue reproduce with the latest release?
Yes (I built gopls from HEAD today)
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/user/.cache/go-build"
GOENV="/home/user/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/user/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.14"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.14/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/user/lsp-debug/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build502378375=/tmp/go-build -gno-record-gcc-switches"

What did you do?
I'm trying to migrate from using the company-go emacs package (which uses gocode) to the new gopls support in the lsp-mode package.  For the most part, lsp-mode with gopls seems strictly better.  I'm having trouble getting placeholders to appear during function auto completion, though.  This feature seems to be supported through the lsp-go-use-placeholders option, which is on by default, but doesn't seem to do anything.
What did you expect to see?
Here's an example of what placeholders look like using company-go and selecting a function auto complete item from the menu:

What did you see instead?
The gopls-backed menu has the argument list displayed properly:

However, after selecting an item, no function arguments are displayed:

I'm having a hard time figuring out if this is a problem with gopls, lsp-mode, or company.  The fact that the arguments show up in the completion menu makes me think that gopls is successfully returning them (and the gopls log seems to support this).  And company works correctly with the older company-go/gocode combo, so maybe lsm-mode simply isn't parsing the arguments returned by gopls correctly?
I'm using lsp-mode from melpa (20210207.705), gopls built from HEAD (today), and emacs in Ubuntu 20.10 (1:26.3+1-1ubuntu2).  The screenshots above were generated while using this minimal .emacs configuration:
(require 'package)
(package-initialize)
(require 'company)
(setq lsp-go-gopls-server-args '("-logfile" "gopls.log" "-rpc.trace"))
(require 'lsp-mode)
(add-hook 'go-mode-hook #'lsp-deferred)
(add-hook 'go-mode-hook #'company-mode)

Here is a log from a session using lsp-mode and gopls: gopls.log

It looks like you don't have yasnippet installed/loaded. Yasnippet provides lsp snippet support in conjunction with lsp-mode.
For Emacs Go questions I recommend asking in #emacs on https://invite.slack.golangbridge.org/ .

Thank you!  That was indeed the issue.  I also needed to enable yas-minor-mode.  I'm not completely sure I understand this dependency as most other company modes do this without yasnippet.  It seems to be related to the documentation display feature somehow?  That was previously not showing up either.  Is there anyway to use placeholders without this new dependency?  It's not a huge issue, but it seems like an unnecessary new minor mode as there don't seem to be any Go snippet packages either...

yasnippet is required to use snippets with lsp-mode (and placeholders are snippets). I don't know what company-go did for snippets. I don't think completion documentation depends on snippets, theoretically or in practice.

there don't seem to be any Go snippet packages

https://github.com/dominikh/yasnippet-go
You can also create your own snippets.

Thanks for diagnosing this issue, @muirdm! Going to close this as it seems like it's been resolved.


Suggestions: Add the ability to scroll through images using mouse wheel

Just bought a new Laptop, and tried this out since Picasa is behaving weird on Windows 11.
Fly is pretty close to Picasa, but it's missing out on some minor (and yet key) features:

You can zoom with the mouse wheel on the image in Picasa. This is the same here, however, in Picasa if you hover your mouse down when the image preview strip becomes visible, you can scroll through the images using the same mouse wheel. This is being sorely missed on Fly

You can double click on the outside area to change the image display from full screen to window mode. However, if you double click the darkened border area again, you cannot go back to full screen mode like you can in Picasa.

I sincerely request you to add these features in and it will be the perfect Picasa replacement

The ribbon feature was deliberately not added as photo navigation was made so fast such that the user won't need to check the thumbnails.

Since mouse scroll is already tied to the zoom feature, I shall try to add a modifier key which we can press and then scroll the mouse to navigate through the photo list like we press the arrow keys.
Shall check.

Shall try to incorporate both these in the next version.

@vpsj, I am implementing this feature. In the next version, if you scroll after pressing CTRL key, we will navigate through photos. Also if we keep the mouse over the next,back button on screen and scroll, you will be able to navigate through photos. If you keep the mouse over rotate button and scroll, then you will be able to navigate through photos.

@vpsj, I am implementing this feature. In the next version, if you scroll after pressing CTRL key, we will navigate through photos. Also if we keep the mouse over the next,back button on screen and scroll, you will be able to navigate through photos. If you keep the mouse over rotate button and scroll, then you will be able to navigate through photos.

That's brilliant!
Thank you for being so proactive:)

Lot of scroll wheel options are added. Check latest 2.3.0 release notes.

Lot of scroll wheel options are added. Check latest 2.3.0 release notes.


doesn't work ng2-bootstrap

i'm using ng2-bootstrap with bootstrap 4.
the datepicker works just fine. when i add datevalidation and validation errors are present the datepicker freaks out (see attached screenshot)

as long theres no validation error datepicker behaves normal

package.json
{
"name": "web2",
"version": "0.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"start": "ng serve",
"lint": "tslint "src/**/*.ts"",
"test": "ng test",
"pree2e": "webdriver-manager update",
"e2e": "protractor"
},
"private": true,
"dependencies": {
"@angular/common": "2.0.0",
"@angular/compiler": "2.0.0",
"@angular/core": "2.0.0",
"@angular/forms": "2.0.0",
"@angular/http": "2.0.0",
"@angular/platform-browser": "2.0.0",
"@angular/platform-browser-dynamic": "2.0.0",
"@angular/router": "3.0.0",
"core-js": "^2.4.1",
"ng2-bootstrap": "^1.1.5",
"ng2-cookies": "^1.0.2",
"ng2-validation": "^2.0.0",
"rxjs": "5.0.0-beta.12",
"ts-helpers": "^1.1.1",
"zone.js": "^0.6.23"
},
"devDependencies": {
"@types/jasmine": "^2.2.30",
"angular-cli": "1.0.0-beta.15",
"codelyzer": "~0.0.26",
"jasmine-core": "2.4.1",
"jasmine-spec-reporter": "2.5.0",
"karma": "1.2.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.2.1",
"protractor": "4.0.5",
"ts-node": "1.2.1",
"tslint": "3.13.0",
"typescript": "2.0.2"
}
}

this is actually an issue of ng2-bootstrap


Icons missing in AppImage build

The automated test took the following screenshot:

Strangely, I cannot reproduce this on a local Clear Linux OS machine.
go-appimage is supposed to deploy imageformats and iconengines. Did it do that, and did it succeed doing it?
https://github.com/probonopd/linuxdeployqt/blob/42e51ea7c7a572a0aa1a21fc47d0f80032809d9d/tools/linuxdeployqt/shared.cpp#L1259
Reference:
https://github.com/AppImage/appimage.github.io/pull/2314

This may be due to the fact that the highcolor icon theme is missing on the automated test system, and nothing sets the XDG_CURRENT_DESKTOP variable.


Packagist hooks need updating

GitHub has deprecated the legacy service hooks system, in favour of webhooks. Bugsnag's PHP packages are not yet using the new hooks.

Luckily, there is an easy fix. @kattrali simply needs to visit https://packagist.org/trigger-github-sync/. Since you're both an admin on the repos on GitHub, and marked as an maintainer on packagist, packagist will be able re-setup the webhooks using your access token. (also, one should check that packagist has third-party access on GitHub)

fixed! thanks @GrahamCampbell


built-in support for glusterfs client on worker nodes

We are implementing glusterfs cluster to be used as storage for persistent volumes using Heketi API and StorageClasses.
The scenario works only when the glusterfs client package is installed on the worker nodes manually when it comes to pod mounting. Since the manual package installation can be overwritten anytime the reconciler is run, it is requested to make it part of worker node image so that it does not have to be installed manually and also works in autoscale scenario.

Hey @m-usmanayub 👋
for cases like this, we usually recommend installing a Daemonset that installs the binary onto the host system. One key advantage of this approach is that you do not deoend

(Sorry for the accidental close and half-finished comment, I fat-fingered that one.)

Hey @m-usmanayub 👋
for cases like this, we usually recommend running a Daemonset that installs the binary onto the host system. One key advantage of this approach is that you do not depend on the cloud provider and can update the binary per your own preferences.
How do you feel about this approach?

Hi @timoreimann
The approach seems realistic. Do you have any example of this?
Also in such a case we need to know the OS flavor (Ubuntu, CentOS etc) running on the worker nodes and install the relevant OS Package (deb/rpm) by creating a customized docker image. am I right?

@m-usmanayub I'd try to create a Daemonset that mounts the root host-filesystem, chroots into it, checks if the package is already installed, and if not updates the repository and installs the package. We currently run Debian, so the logic could look something like this (untested):
#!/bin/bash

chroot /host /bin/bash -u <<'EOF'
export GLUSTERFS_PACKAGE=glusterfs-client

dpkg -l ${GLUSTERFS_PACKAGE} > /dev/null
case $? in
  0)
    echo "nothing to do: glusterfs package is already installed"
    ;;
  1)
    echo "installing glusterfs package"
    apt-get update && apt-get install -y ${GLUSTERFS_PACKAGE}
    ;;
  *)
    echo "failed to check if glusterfs is installed" >&2
    exit 1
    ;;
esac

sleep infinity
EOF

You might not even need a custom container image if you choose to inline the script as arguments to a container that comes with bash (e.g., a Debian-based image).
For mounting the host file-system, you'll need your Daemonset to specify volume and volume mount fields accordingly. A small blog post on the topic is available here, and our own doks-debug Daemonset does it as well. (Adjust the manifest to your needs, of course.)
Hope this gets you started. Note that while we do not have plans to do so, we could change the distro and/or distro version in the future. Such a change would likely be bundled with a Kubernetes minor release, however, so if you keep an eye on the release notes you should be able to respond to any updates we might do that affect how your Daemonset works.

@timoreimann
Thanks for the explanation, I was able to run a DaemonSet using the logic mentioned however with some changes. As you said we would have to keep a check on the distro and its version of the worker nodes. Please feel free to close the issue if you believe that the package cannot be/will never be made part of the worker nodes. Thanks.
I am posting the yaml definition for anyone who would like to use.
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: gfs-client
  namespace: kube-system
  labels:
    app: gfs-client
spec:
  selector:
    matchLabels:
      name: gfs-client
  template:
    metadata:
      labels:
        name: gfs-client
    spec:
      hostNetwork: true
      containers:
      - name: ubuntu
        securityContext:
          privileged: true
        image: ubuntu:bionic
        args:
        - /bin/bash
        - "-c"
        - |
          chroot /host /bin/bash -u <<'EOF'
          export GLUSTERFS_PACKAGE=glusterfs-client
          apt list --installed | grep ${GLUSTERFS_PACKAGE} > /dev/null
          case $? in
            0)
              echo "nothing to do: glusterfs package is already installed"
            ;;
            1)
              echo "installing glusterfs package"
              apt update && apt install -y ${GLUSTERFS_PACKAGE}
            ;;
            *)
              echo "failed to check if glusterfs is installed" >&2
              exit 1
             ;;
          esac
          sleep infinity
          EOF
        volumeMounts:
          - name: host
            mountPath: /host
          - name: docker
            mountPath: /var/run/docker.sock
      priorityClassName: system-cluster-critical
      volumes:
        - name: host
          hostPath:
            path: /
        - name: docker
          hostPath:
            path: /var/run/docker.sock
            type: Socket

A very nice solution! In the spirit of sharing, I've updated the installation script above :point_up: to install a more recent version of glusterfs-client. At the time of writing, the master nodes are based on Debian Buster which are shipped with version 5.5-3. Due to some strange and persistent issues with missing files / non-empty directories showing as empty on the gluster volumes, I had to update both the server and the client to 8.3-1 from upstream. Here's my code:
image: ubuntu:groovy
args:
  - /bin/bash
  - "-c"
  - |
    chroot /host /bin/bash -u <<'EOF'
    export GLUSTERFS_PACKAGE=glusterfs-client
    apt show ${GLUSTERFS_PACKAGE}
    apt list --installed | grep ${GLUSTERFS_PACKAGE} > /dev/null
    case $? in
      0)
        echo "nothing to do: glusterfs package is already installed"
      ;;
      1)
        echo "installing glusterfs package"
        wget -O - https://download.gluster.org/pub/gluster/glusterfs/7/rsa.pub | apt-key add -
        DEBID=$(grep 'VERSION_ID=' /etc/os-release | cut -d '=' -f 2 | tr -d '"')
        DEBVER=$(grep 'VERSION=' /etc/os-release | grep -Eo '[a-z]+')
        DEBARCH=$(dpkg --print-architecture)
        echo deb https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/${DEBID}/${DEBARCH}/apt ${DEBVER} main > /etc/apt/sources.list.d/gluster.list
        apt update && apt install -y ${GLUSTERFS_PACKAGE}
      ;;
      *)
        echo "failed to check if glusterfs is installed" >&2
        exit 1
       ;;
    esac
    sleep infinity
    EOF

A very nice solution! In the spirit of sharing, I've updated the installation script above :point_up: to install a more recent version of glusterfs-client. At the time of writing, the master nodes are based on Debian Buster which are shipped with version 5.5-3. Due to some strange and persistent issues with missing files / non-empty directories showing as empty on the gluster volumes, I had to update both the server and the client to 8.3-1 from upstream. Here's my code:
image: ubuntu:groovy
args:
  - /bin/bash
  - "-c"
  - |
    chroot /host /bin/bash -u <<'EOF'
    export GLUSTERFS_PACKAGE=glusterfs-client
    apt show ${GLUSTERFS_PACKAGE}
    apt list --installed | grep ${GLUSTERFS_PACKAGE} > /dev/null
    case $? in
      0)
        echo "nothing to do: glusterfs package is already installed"
      ;;
      1)
        echo "installing glusterfs package"
        wget -O - https://download.gluster.org/pub/gluster/glusterfs/7/rsa.pub | apt-key add -
        DEBID=$(grep 'VERSION_ID=' /etc/os-release | cut -d '=' -f 2 | tr -d '"')
        DEBVER=$(grep 'VERSION=' /etc/os-release | grep -Eo '[a-z]+')
        DEBARCH=$(dpkg --print-architecture)
        echo deb https://download.gluster.org/pub/gluster/glusterfs/LATEST/Debian/${DEBID}/${DEBARCH}/apt ${DEBVER} main > /etc/apt/sources.list.d/gluster.list
        apt update && apt install -y ${GLUSTERFS_PACKAGE}
      ;;
      *)
        echo "failed to check if glusterfs is installed" >&2
        exit 1
       ;;
    esac
    sleep infinity
    EOF

I'll be closing out this ticket given a workaround is possible. I could imagine a future feature where customers can choose from a limited list of packages / node properties to enable on bootstrap. This needs broader discussion, however, and consideration for how DOKS worker node images may possibly evolve. We'll continue to track this possibility internally.


Anybody having issues with bucket script aggregation?

I'm trying to do a aggregation with bucket script which is working fine in elasticsearch 5.5 but not in elassandra.
https://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-aggregations-pipeline-bucket-script-aggregation.html
Error I'm receiving the moment I try something with bucket script is:
{
	"error": {
		"root_cause": [],
		"type": "search_phase_execution_exception",
		"reason": "",
		"phase": "fetch",
		"grouped": true,
		"failed_shards": [],
		"caused_by": {
			"type": "script_exception",
			"reason": "compile error",
			"script_stack": [],
			"script": "params.totalSales * 100",
			"lang": "painless",
			"caused_by": {
				"type": "runtime_exception",
				"reason": "java.lang.ClassNotFoundException: org.elasticsearch.painless.PainlessError"
			}
		}
	},
	"status": 503
}

Hi,
The class not found should be in modules/lang-painless/lang-painless-5.5.0.jar.
What is your environnement ? (version, os, installation ?)

Tried in multiple environments, on mac os, on centos 7 and on docker, same issue. Versions tested are <IP_ADDRESS> and <IP_ADDRESS>

Well, the issue comes from a class loading issue of asm jar required by both elasticsearch scripting modules (expression+painless) and cassandra UDF (see CASSANDRA-11193).
If you don't have any Cassandra UDF in your schema, the quick workaround is to move lib/asm-debug-all-5.1.jar to modules/lang-painless/asm-debug-all-5.1.jar + restart.g
The fix will be available soon in next release <IP_ADDRESS>.
Thanks for reporting the issue.

@vroyer just tested last version, same issue still persist as soon as indexes are defined.
Example query which works on elasticsearch but not in elassandra is
{
  "from": 0,
  "size": 0,
  "aggs": {
    "test_script": {
      "avg": {
        "field": "cpu_usage",
        "script": "_value + 2000"
      }
    }
  }
}

Yes, there is still a class loading issue.
If you don’t need cassandra UDF, remove lib/asm-debug-all-5.1.jar and it should work.
Thanks.

Le 22 févr. 2018 à 17:25, shpetimshala<EMAIL_ADDRESS>a écrit :
@vroyer https://github.com/vroyer just tested last version, same issue still persist as soon as indexes are defined.
Example query which works on elasticsearch but not in elassandra is
{
"from": 0,
"size": 0,
"aggs": {
"test_script": {
"avg": {
"field": "cpu_usage",
"script": "_value + 2000"
}
}
}
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/strapdata/elassandra/issues/165#issuecomment-367736326, or mute the thread https://github.com/notifications/unsubscribe-auth/AJzHmW99aeWkq2RiC3N9xASN-Ug89IvCks5tXZUFgaJpZM4R82_f.


Cannot install templates to panel

Problem: Websocket throws an error when working with servers
Expected: Server installation would commence
Actual: Server installation fails to work
Version: 2.0.0.v1 alpha
Info: It appears as though the server management page is not valid websocket, resulting in the following error:
"[ERROR] websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header"

Didn't see it documented here, so added it. Also, if there is a way to manually get the files for the server moved, that would be helpful to know


Yank and paste does not work with clipboard or other system buffer

Or any other system buffers. To paste/copy something outside jupyterlab one still need to use CTRL+C/CTRL+V in inset mode with manual selection.
It would be good to add registers support: https://www.davidbegin.com/10-vim-registers-to-rule-them-all/
Or do something like set clipboard=unnamedplus (https://stackoverflow.com/questions/11489428/how-to-make-vim-paste-from-and-copy-to-systems-clipboard)

By the way, both copying and pasting from the system clipboard ("+y and "+p) are supported by the underlying vim engine (https://github.com/replit/codemirror-vim) in Chrome-based browsers, even without any additional JupyterLab extensions. (Attempting the first paste will ask you for permissions.)
Copying to the system clipboard (the + register) is supported in Firefox. However, Firefox unfortunately does not allow Javascript to read/paste from the system clipboard, and it does not provide an accessible way to grant the permission to do so. The only workaround I'm aware of is to Ctrl+v in Insert mode.
So this is partly a "it's already implemented", if you aren't using Firefox, and partly a "there isn't anything we can do here", if you are using Firefox.

By the way, both copying and pasting from the system clipboard ("+y and "+p) are supported by the underlying vim engine

Oh wow, that's cool! Would it be possible to include an option to set this as the default register without rebdining every y operation manually? Something like set clipboard=unnamedplus in regular vim?

As mentioned above, I believe the original issue of not being able to use registers is already resolved for most cases, with the caveat that pasting from the system clipboard in Firefox can only be implemented upstream in Firefox. For clarity, the enhancement request for an option to set the + register as the default register will be tracked in #79.


Remove allowBackup, fix #20

https://code.google.com/p/android/issues/detail?id=70073
cc @redox

LGTM :+1:


Possibility to specify glideslope profile

While most airports have a glideslope profile of 3 degrees, It can vary from airport to airport. An example of this would be EGLC, where the glideslope profile is a scary 5.5 degrees:

My idea is that the glideslope profile could be specified in the airport file. I think #426 makes this improvement a bit easier to program, but I wouldn't know. It could look something like this:

Are you sure this isn't already possible? I swear I remember seeing somewhere that you could specify it...

If it is possible, I had absolutely no idea. I'll check

Yes indeed! Just add the glideslope property (separate from ils) with the degrees of the slope. Should work! In theory :wink:

Wow, I didn't know that feature existed, however it isn't working. The problem is that the aircraft don't capture the ILS:

@Fechulo It seems to work for me. :confused: You can see I doubled the gradient of the 28R glideslope, and the 28R guy is twice the height of the 28L guy in the screenshot.

As you can see, I wasn't doing it correctly.  Glad to hear it's working :smile:


Adds support for 'ObjectCreated:Post' when receiving an object via Presigned POST

Adds an ObjectCreated:Post event when a POST request is made.
Fixes an issue I created https://github.com/jamhall/s3rver/issues/529

Hello! Thanks @jamhall for putting this library together and @randonia for putting together this pull request. Any chance this PR could be put into the next release of s3rver?

Hi @randonia, thanks for the contribution and sorry for the super long delay. I'm working on the next minor release which will have a significantly reworked Object POST endpoint. I'm expecting to have it out sometime this week! I'll be sure to include support for this with the new changes.


Keep useReducer dispatch and useState updater refs constant

Fixes #100.
The fix consist mostly on inlining the previously generated code by gen_js_api and removing the wrapping over the following functions:

The updater returned in the 2nd position of the tuple in useState
The dispatch returned in 2nd position of the tuple in useReducer

Both functions can take only 1 argument, so I don't see any reason why the currying handling is needed in these case.
Added some tests for this as well as a base test for useState, which was not existent.

Here's an example of the transformation:
let (useState_internal :
      Imports.react -> (unit -> 'state) -> 'state * (('state -> 'state) -> unit)
      ) =
 fun (react : Imports.react) (init : unit -> 'state) ->
  let result =
    Ojs.call
      (Imports.react_to_js react)
      "useState"
      [|Ojs.fun_to_js 1 (fun _ -> Obj.magic (init ()))|]
  in
  ( Obj.magic (Ojs.array_get result 0)
- , fun (updater : 'state -> 'state) ->
-     ignore
-       (Ojs.apply (Ojs.array_get result 1)
-          [| Ojs.fun_to_js 1 (fun (data : Ojs.t) ->
-                 Obj.magic (updater (Obj.magic data)) ) |] ) )
+ Obj.magic (Ojs.array_get result 1))

let useState initial = useState_internal Imports.react initial


Docker build issue

Hi here,
the docker images isn't build.
docker build -t postfix_exporter .
Sending build context to Docker daemon  163.3kB
Step 1/11 : FROM golang:1.8
 ---> 0d283eb41a92
Step 2/11 : ADD . /go/src/github.com/kumina/postfix_exporter
 ---> Using cache
 ---> f49562557fac
Step 3/11 : WORKDIR /go/src/github.com/kumina/postfix_exporter
 ---> Using cache
 ---> acb297e116a2
Step 4/11 : RUN apt-get update -qq && apt-get install -qqy   build-essential   libsystemd-dev
 ---> Using cache
 ---> ba9935ecd889
Step 5/11 : RUN go get -v ./...
 ---> Running in 7107ab9f144c
github.com/alecthomas/kingpin (download)
github.com/alecthomas/template (download)
github.com/alecthomas/units (download)
github.com/coreos/go-systemd (download)
github.com/coreos/pkg (download)
github.com/hpcloud/tail (download)
github.com/prometheus/client_golang (download)
github.com/beorn7/perks (download)
github.com/cespare/xxhash (download)
package github.com/cespare/xxhash/v2: cannot find package "github.com/cespare/xxhash/v2" in any of:
	/usr/local/go/src/github.com/cespare/xxhash/v2 (from $GOROOT)
	/go/src/github.com/cespare/xxhash/v2 (from $GOPATH)
github.com/golang/protobuf (download)
github.com/prometheus/client_model (download)
github.com/prometheus/common (download)
github.com/matttproud/golang_protobuf_extensions (download)
github.com/prometheus/procfs (download)
The command '/bin/sh -c go get -v ./...' returned a non-zero code: 1

Hi @uftang88,
Thank you for bringing this to our attention.
I have just pushed an update for the Dockerfile.
Enjoy :slightly_smiling_face:


TensorFlow keeps creating threads when multi-GPU training （thread leak）

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
source
TensorFlow version
2.11.0
Custom code
Yes
OS platform and distribution
Linux Ubuntu 20.04
Mobile device
No response
Python version
3.9.13
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
11.4
GPU model and memory
Nvidia A800
Current behavior?
I was using this machine to train a GPT-2 example from (the data I used can also be found in this link, also here https://github.com/chinese-poetry/chinese-poetry.git) https://keras.io/examples/generative/gpt2_text_generation_with_kerasnlp/
Before we start, I would give a baseline amount of this machine's threads :

When starting with the multi-GPU training of tensorflow by calling the tf.distribute.MirroredStrategy, the training process worked fine as usual.
But with the time went by, I found the amount of threads increased with the training process going, here is the evidence of thread increasing when processing 3354th batch (I used cat /proc/"this programs' pid"/status to check the number of threads):

Then, the evidence of thread increasing when processing 3791st batch (the amount of threads reached 22178):

When calculating  the 5054th batch, the training program got an error, and I captured a count of threads before the error (achieved around 31120 threads):

I checked an similar issue in https://github.com/tensorflow/tensorflow/issues/62466, but I cannot find a solution, moreover, I have run other examples like diffusion model using this machine and the same tensorflow env with multi-GPU training, which worked fine and no any problems. So, could you please give me a help for this problem, very appreciated.
Standalone code to reproduce the issue
Here is my code

import os

os.environ["KERAS_BACKEND"] = "tensorflow"  # or "tensorflow" or "torch"

import keras_nlp
import keras
import tensorflow as tf
import time

keras.mixed_precision.set_global_policy("mixed_float16")

import os
import json
import datetime

train_ds = (
    tf.data.Dataset.from_tensor_slices(paragraphs)
    .batch(36)
    .cache()
    .prefetch(tf.data.AUTOTUNE)
)

strategy = tf.distribute.MirroredStrategy(["GPU:0", "GPU:1", "GPU:2", "GPU:3", "GPU:4", "GPU:5"])
print("Number of devices: {}".format(strategy.num_replicas_in_sync))

preprocessor = keras_nlp.models.GPT2CausalLMPreprocessor.from_preset(
    "gpt2_base_en",
    sequence_length=128,
)

# Open a strategy scope.
with strategy.scope():
# To speed up training and generation, we use preprocessor of length 128
# instead of full length 1024.
    gpt2_lm = keras_nlp.models.GPT2CausalLM.from_preset(
        "gpt2_base_en", preprocessor=preprocessor
    )
    num_epochs = 5

    checkpoint_callback = tf.keras.callbacks.ModelCheckpoint(
        filepath=checkpoint_path,
        save_weights_only=True,
        monitor="accuracy",
        # monitor="i_loss",
        mode="min",
        save_best_only=True,
        save_freq="epoch"
    )
    learning_rate = 5e-4

    loss = keras.losses.SparseCategoricalCrossentropy(from_logits=True)
    gpt2_lm.compile(
        optimizer=keras.optimizers.Adam(learning_rate),
        loss=loss,
        weighted_metrics=["accuracy"],
    )

    gpt2_lm.fit(train_ds, epochs=num_epochs, callbacks=[
        checkpoint_callback,
        tensorboard_callback,
    ],
                )

Relevant log output
2024-09-21 00:24:25.840848: W tensorflow/compiler/tf2xla/kernels/random_ops.cc:57] Warning: Using tf.random.uniform with XLA compilation will ignore seeds; consider using tf.random.stateless_uniform instead if reproducible behavior is desired. gpt2_causal_lm/gpt2_backbone/embeddings_dropout/dropout/random_uniform/RandomUniform
2024-09-21 00:24:25.846135: I tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc:268] disabling MLIR crash reproducer, set env var `MLIR_CRASH_REPRODUCER_DIRECTORY` to enable.
2024-09-21 00:24:26.559075: W tensorflow/compiler/tf2xla/kernels/assert_op.cc:38] Ignoring Assert operator sparse_categorical_crossentropy/SparseSoftmaxCrossEntropyWithLogits/assert_equal_1/Assert/Assert
2024-09-21 00:24:26.572007: W tensorflow/compiler/tf2xla/kernels/assert_op.cc:38] Ignoring Assert operator sparse_categorical_crossentropy/SparseSoftmaxCrossEntropyWithLogits/assert_equal_1/Assert/Assert
2024-09-21 00:24:26.573183: W tensorflow/compiler/tf2xla/kernels/assert_op.cc:38] Ignoring Assert operator sparse_categorical_crossentropy/SparseSoftmaxCrossEntropyWithLogits/assert_equal_1/Assert/Assert
2024-09-21 00:24:26.581128: W tensorflow/compiler/tf2xla/kernels/assert_op.cc:38] Ignoring Assert operator sparse_categorical_crossentropy/SparseSoftmaxCrossEntropyWithLogits/assert_equal_1/Assert/Assert
2024-09-21 00:24:26.581197: W tensorflow/compiler/tf2xla/kernels/assert_op.cc:38] Ignoring Assert operator sparse_categorical_crossentropy/SparseSoftmaxCrossEntropyWithLogits/assert_equal_1/Assert/Assert
2024-09-21 00:24:26.588190: W tensorflow/compiler/tf2xla/kernels/assert_op.cc:38] Ignoring Assert operator sparse_categorical_crossentropy/SparseSoftmaxCrossEntropyWithLogits/assert_equal_1/Assert/Assert
12024-09-21 00:25:01.986918: I tensorflow/compiler/xla/stream_executor/gpu/asm_compiler.cc:325] ptxas warning : Registers are spilled to local memory in function 'fusion_1267'
ptxas warning : Registers are spilled to local memory in function 'fusion_1225'
ptxas warning : Registers are spilled to local memory in function 'fusion_1111'
ptxas warning : Registers are spilled to local memory in function 'fusion_1220'
ptxas warning : Registers are spilled to local memory in function 'fusion_1124'
ptxas warning : Registers are spilled to local memory in function 'fusion_1175'
ptxas warning : Registers are spilled to local memory in function 'fusion_1128'
ptxas warning : Registers are spilled to local memory in function 'fusion_1006'
ptxas warning : Registers are spilled to local memory in function 'fusion_1015'

2024-09-21 00:25:02.215951: I tensorflow/compiler/jit/xla_compilation_cache.cc:477] Compiled cluster using XLA!  This line is logged at most once for the lifetime of the process.
2024-09-21 00:25:02.420703: I tensorflow/compiler/xla/stream_executor/gpu/asm_compiler.cc:325] ptxas warning : Registers are spilled to local memory in function 'fusion_1267'
ptxas warning : Registers are spilled to local memory in function 'fusion_1225'
ptxas warning : Registers are spilled to local memory in function 'fusion_1111'
ptxas warning : Registers are spilled to local memory in function 'fusion_1220'
ptxas warning : Registers are spilled to local memory in function 'fusion_1124'
ptxas warning : Registers are spilled to local memory in function 'fusion_1175'
ptxas warning : Registers are spilled to local memory in function 'fusion_1128'
ptxas warning : Registers are spilled to local memory in function 'fusion_1006'
ptxas warning : Registers are spilled to local memory in function 'fusion_1015'

2024-09-21 00:25:02.542130: I tensorflow/compiler/xla/stream_executor/gpu/asm_compiler.cc:325] ptxas warning : Registers are spilled to local memory in function 'fusion_1267'
ptxas warning : Registers are spilled to local memory in function 'fusion_1225'
ptxas warning : Registers are spilled to local memory in function 'fusion_1111'
ptxas warning : Registers are spilled to local memory in function 'fusion_1220'
ptxas warning : Registers are spilled to local memory in function 'fusion_1124'
ptxas warning : Registers are spilled to local memory in function 'fusion_1175'
ptxas warning : Registers are spilled to local memory in function 'fusion_1128'
ptxas warning : Registers are spilled to local memory in function 'fusion_1006'
ptxas warning : Registers are spilled to local memory in function 'fusion_1015'

2024-09-21 00:25:03.595774: I tensorflow/compiler/xla/stream_executor/gpu/asm_compiler.cc:325] ptxas warning : Registers are spilled to local memory in function 'fusion_1267'
ptxas warning : Registers are spilled to local memory in function 'fusion_1225'
ptxas warning : Registers are spilled to local memory in function 'fusion_1111'
ptxas warning : Registers are spilled to local memory in function 'fusion_1220'
ptxas warning : Registers are spilled to local memory in function 'fusion_1124'
ptxas warning : Registers are spilled to local memory in function 'fusion_1175'
ptxas warning : Registers are spilled to local memory in function 'fusion_1128'
ptxas warning : Registers are spilled to local memory in function 'fusion_1006'
ptxas warning : Registers are spilled to local memory in function 'fusion_1015'

12024-09-21 00:25:04.071526: I tensorflow/compiler/xla/stream_executor/gpu/asm_compiler.cc:325] ptxas warning : Registers are spilled to local memory in function 'fusion_1267'
ptxas warning : Registers are spilled to local memory in function 'fusion_1225'
ptxas warning : Registers are spilled to local memory in function 'fusion_1111'
ptxas warning : Registers are spilled to local memory in function 'fusion_1220'
ptxas warning : Registers are spilled to local memory in function 'fusion_1124'
ptxas warning : Registers are spilled to local memory in function 'fusion_1175'
ptxas warning : Registers are spilled to local memory in function 'fusion_1128'
ptxas warning : Registers are spilled to local memory in function 'fusion_1006'
ptxas warning : Registers are spilled to local memory in function 'fusion_1015'

2024-09-21 00:25:04.130504: I tensorflow/compiler/xla/stream_executor/gpu/asm_compiler.cc:325] ptxas warning : Registers are spilled to local memory in function 'fusion_1267'
ptxas warning : Registers are spilled to local memory in function 'fusion_1225'
ptxas warning : Registers are spilled to local memory in function 'fusion_1111'
ptxas warning : Registers are spilled to local memory in function 'fusion_1220'
ptxas warning : Registers are spilled to local memory in function 'fusion_1124'
ptxas warning : Registers are spilled to local memory in function 'fusion_1175'
ptxas warning : Registers are spilled to local memory in function 'fusion_1128'
ptxas warning : Registers are spilled to local memory in function 'fusion_1006'
ptxas warning : Registers are spilled to local memory in function 'fusion_1015'

2024-09-21 00:25:05.333297: I tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:630] TensorFloat-32 will be used for the matrix multiplication. This will only be logged once.
5054/8663 [================>.............] - ETA: 9:14 - loss: 11.8715 - accuracy: 2.2702terminate called after throwing an instance of 'std::system_error'
terminate called recursively
  what():  Resource temporarily unavailable
Aborted (core dumped)

@Jisencc,
I can see that you are using tensorflow v2.11 which is pretty old. Could you please try using latest tensorflow v2.17 and update whether you are facing a similar issue? Thank you!

Hi @tilakrayal,
Very glad to hear your response. I would really like to try the tensorflow v2.17, and actually I have installed the latest tensorflow v2.17 in the initial round of using this machine, which cannot work on there.  When I checked the Nvidia Kernel Module in this machine, I found:
NVRM version: NVIDIA UNIX x86_64 Kernel Module  470.256.02
So, for meeting the requirements, I had to downgrade the Nvidia driver to NVIDIA-SMI 470.256.02   Driver Version: 470.256.02   CUDA Version: 11.4 (I had tried a lot of the latest Nvidia driver on this machine such as 550, and these were not worked, just 470 was fine to this machine).
Based on this, I have to install the tensorflow v2.11 to meet the CUDA tookit Version: 11.4, which eventually worked fine. Other programs run on the same tensorflow env was fine and no problem, but when run the GPT-2,  this situation happend. I am so sorry for that.
I compared the GPT-2 code of calling tensorflow multi-GPU training module with my previous projects run successfully on this machine, which was no any difference.
I have checked the same issue at https://github.com/tensorflow/tensorflow/issues/62466, but they overcome this problem by revising .cc flies, I cannot find this file in my machine.
Therefore, if possible, could you please give me a way to overcome this issue by just revising .py files or adding some codes to close the corresponding code that may inducing the issue (a accessible way I can process).
Sorry to disturb again.


QR Code support international

Hello, Canadian here. Our vaccination passport is going live in a week or so and like other countries, the app offered does not allow the usage of the wallet.
I was wondering if there is any plan to support international QR code.
Actually, I'd be interested in knowing a bit more about where the decoding is being done and what are the limitations or how to implement support for Canadian code. If someone would give me some pointers I can certainly open a PR.
Thanks

Will COVIDPass ever support other QR codes than the European one? Or should we fork the repo?
Regarding the Canadian QR code, here’s a project  that shows how to read it.

This might be a bit hard to do, since there is no global standard for this system. As mentioned above, Canada has own, idk about US or LATAM or Africa/Asia region. And if all of them would have their own standard, it would be hell to upkeep. Just giving my two cents on this.

I believe BC and Quebec in Canada use the Smart Health Cards. More info on it here and here. I was able to scan the BC QR code with iOS 15 beta and add it into my Health app as a vaccine record. It also has a copy of the QR code, but it's not very easily accessible compared to the Wallet app.
One thing I haven't been able to find is if the Wallet app QR codes support the type of QR code needed for the vaccine records. Need to do some more digging around.

This might be a bit hard to do, since there is no global standard for this system. As mentioned above, Canada has own, idk about US or LATAM or Africa/Asia region. And if all of them would have their own standard, it would be hell to upkeep. Just giving my two cents on this.

I believe there are ways to structure the code such that each country has it’s own code file with the QR code logic, but that’s more about the project’s vision. Right now the description is

Web app for adding EU Digital COVID Certificates to your wallet apps

If that’s not changing then better fork it.

I have found this fork that works with passes using Smart Health Card format. Works in QC (ON and BC too?) @GabrielCartier @kmavai


Boilerplate favicon and meta tags for client apps

What this does
Adds some smart defaults and standards for setting up favicons, a preview image, and the Facebook and Twitter meta tags. This setup works well for
Checklist

[x] Add favicon tags to vue3 and react index.html files
[x] Add meta tags to vue3 and react index.html
[x] Verify that settings.py staticfiles settings will work with both clients
[x] Add default favicons to both clients (?)
[ ] Add default preview image to both clients (?)

Deploy Notes
These meta tags are good defaults, but require some customization by engineers when deploying. As a standard, we use favicon-generator.org with a SQUARE image to generator the set of icon files and the manifest.json file referenced by index.html and by favicon_urls.py.
Beyond that, I recommend customizing the preview image, description tags, and possibly the URL tags.
How to test
TODO: Need to run some tests myself.

love that you replaced those gross placeholder images on the vue side of things

Cypress firefox issue. Merging anyway


cattle-cluster-agent can not access rancher-server-ip/ping

What kind of request is this (question/bug/enhancement/feature request):
cattle-cluster-agent
Steps to reproduce (least amount of steps as possible):
install 3 nodes k8s cluster use rancher server custom manner, 1 master  2 nodes
master and nodes use rancher.me(192.168.x.x  rancher.me record in /etc/hosts) to point rancher server
install istio 1.0.4
deploy helloworld exmaple of istio
cattle-cluster-agent always error state
Result:
log of pod
INFO: Environment: CATTLE_ADDRESS=<IP_ADDRESS> CATTLE_CA_CHECKSUM=bef8cee61dab2c6de88cb8444a5cc16203e6f82559faaec81b27e34aec479d27 CATTLE_CLUSTER=true CATTLE_INTERNAL_ADDRESS= CATTLE_K8S_MANAGED=true CATTLE_NODE_NAME=cattle-cluster-agent-766dfbf568-n7dbk CATTLE_SERVER=https://rancher.me
INFO: Using resolv.conf: nameserver <IP_ADDRESS> search cattle-system.svc.cluster.local svc.cluster.local cluster.local localdomain options ndots:5
ERROR: https://rancher.me/ping is not accessible (Failed to connect to rancher.me port 443: Connection refused)

Other details that may be helpful:
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):
2.1.3
Installation option (single install/HA):
single node

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported):
Hosted
Machine type (cloud/VM/metal) and specifications (CPU/memory):
VM
Kubernetes version (use kubectl version):
1.12.3

(paste the output here)

Docker (use docker info):
18.09.0

(paste the output here)

Rancher installs require a resolvable DNS name, not via a workaround in /etc/hosts. That works for the node-agents but not for the cluster agent as it uses the clusters DNS to resolve names. See https://github.com/rancher/rancher/issues?q=is%3Aissue+cattle-cluster-agent+dns+is%3Aclosed for more examples.
If you believe there is a bug here, let me know.

can i use ip directly for node-agents?

Dear  @superseb ,
Is there  any solution for it ?
how  this  cattle-cluster-name  will be  resolved?


linux-35 lost external connection phone device.

Type of Request
bug
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
linux-35 lost external connection phone device.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

Rebooting phone device to restore connection.


Check for valid signature in hmac-auth plugin before comparing digests.

Summary

Inside Hmac-Auth access.lua if invalid base64 encoded signature is passed to Kong then Kong returns, "Kong Error" because there is no check whether a proper signature is passed or not. I have added a nil check before comparing the lengths of the two digests so that Kong can return "Unauthorised" message in case of an invalid signature.
Also previously, length of the same digest was compared which would always return true, so I have fixed it

Full changelog
To reproduce:

Create an API and a consumer.
Add Hmac-auth to the API and create a credential for the consumer.
Call the API with and invalid base64 encoded signature.
[ This will result in Kong Error. HttpStatus code: 500 ]

I have fixed this issue in following steps:

Check if base64 decoded signature is not nil
Compare lengths of computed digest (digest_1) and received digest (digest_2). Earlier, the length of the same digest was compared which will always return true.

Ps: Not every invalid signature returns HTTP 500. Only those signatures which won't be decoded successfully by base64 will result in HTTP500, rest will return HTTP 403 Unauthorised.

The 2 out of 6 checks which have failed in Travis are related to  ACL and Ring-balancer, thus not due to this commit. I don't know why they failed.

@vaibhavatul47 I had a look at this, but I'm unable to reproduce your issue. How did you make it fail?

@Tieske It will fail when the signature is not properly base64 encoded. I've added a test case.

@vaibhavatul47 That test case already passes for me (without your fix)

fixed by #2283 , closing this.
@vaibhavatul47 Many thanks for the report!


seem like have memory leakage when call "i2s_write" at version release/4.4 (IDFGH-7765)

Environment

Development Kit:      [none]
Kit version (DevKitC): [none]
Module or chip used:  [ESP32-WROOM-32U]
IDF version (run git describe --tags to find it):
v4.4.1-117-g8c8f700c1d
Build System:         [idf.py]
Compiler version (run xtensa-esp32-elf-gcc --version to find it):
xtensa-esp32-elf-gcc (crosstool-NG esp-2021r2-patch3) 8.4.0
Operating System:     [Windows]
(Windows only) environment type: [PowerShell].
Using an IDE?: [No]
Power Supply:         [USB]

Problem Description
call function i2s_write, there are memory leakage 24 bytes every time that I observed.
free heap[248824 bytes],minimum heap[248824 bytes]
free heap[248800 bytes],minimum heap[248776 bytes]
free heap[248776 bytes],minimum heap[248752 bytes]
Expected Behavior
heap memory not leak
Actual Behavior
heap memory leak
Steps to reproduce
repeat to call i2s_write and ensure it return successful.
show the heap memory info everytime.
Code to reproduce this issue
please refer from
https://github.com/espressif/esp-idf/blob/c2ccc383dae2a47c2c2dc8c7ad78175a3fd11361/components/driver/deprecated/i2s_legacy.c   line 1630,
according to review the code, maybe there are queue content need to be free, by checking the content data structure,
it is located at lldesc.h ,"struct lldesc_s", which is just right 24 bytes length. so I guess maybe that the queue content was not be free on a suitable time.
could anyone help check the issue ? thanks!
Debug Logs
Other items if possible

[ ] sdkconfig file (attach the sdkconfig file from your project folder)
[ ] elf file in the build folder (note this may contain all the code details and symbols of your project.)
[ ] coredump (This provides stacks of tasks.)

Hi @zhangoneone , before looking into this issue, may I ask why the reference link is a file only exist in v5.0?

I have tested the i2s_write on both master(v5.0) and v4.4, seems no memory leak here. Could you check again if the v4.4 environment is clean and transmit data in right way?

thank your @L-KAYA  reply,  supplement more info
this is debug output log:
I (881) I2S: DMA Malloc info, datalen=blocksize=256, dma_buf_count=8
I (882) I2S: DMA Malloc info, datalen=blocksize=256, dma_buf_count=8
I (885) I2S: I2S0, MCLK output by GPIO0
I (915) ES8311: ES8311 in Slave mode and I2S format
free heap[248776 bytes],minimum heap[248776 bytes]
E (1381) I2S: dma error, interrupt status: 0x00002200
free heap[248752 bytes],minimum heap[248752 bytes]
free heap[248728 bytes],minimum heap[248728 bytes]

debug log indicate there are dma transmit error occur,  not sure how it impact the i2s_write. would there hit  some unpopular code path ?

Seems you have modified the i2s_es8311 example. The error log you mentioned is not a common error, it should never occur. I need to a further test for it. Could you provide the details about how you modified that example?

test_demo.zip
Hi @L-KAYA , I detached a test demo that reproduced the issue, if any problem please let me know,thanks

this test demo base on idf sdk es8311 example but have a little modify

fixed, root cause is freertos msg queue "send operation" do not status check. it lead to memory have been reserved, but send fail, then it has not opportunity to be free.
thank your reply again! I'll close the issue


Unable to compile chronix.ingester

_/home/kodiak/metrics/chronix.ingester-master
./handler.go:40: cannot use "github.com/prometheus/common/model".Sample literal (type *"github.com/prometheus/common/model".Sample) as type *"github.com/prometheus/prometheus/vendor/github.com/prometheus/common/model".Sample in argument to appender.Append
./main.go:45: cannot use chronixStore literal (type chronixStore) as type ingester.ChunkStore in argument to ingester.NewIngester:
chronixStore does not implement ingester.ChunkStore (wrong type for Put method)
have Put("github.com/prometheus/common/model".Metric, []"github.com/prometheus/prometheus/storage/local/chunk".Desc) error
want Put("github.com/ChronixDB/chronix.ingester/vendor/github.com/prometheus/common/model".Metric, []"github.com/ChronixDB/chronix.ingester/vendor/github.com/prometheus/prometheus/storage/local/chunk".Desc) error
./main.go:52: cannot use ing (type *ingester.Ingester) as type "github.com/prometheus/client_golang/prometheus".Collector in argument to "github.com/prometheus/client_golang/prometheus".Register:
*ingester.Ingester does not implement "github.com/prometheus/client_golang/prometheus".Collector (wrong type for Collect method)
have Collect(chan<- "github.com/ChronixDB/chronix.ingester/vendor/github.com/prometheus/client_golang/prometheus".Metric)
want Collect(chan<- "github.com/prometheus/client_golang/prometheus".Metric)
./main.go:55: cannot use ing (type ingester.Ingester) as type storage.SampleAppender in argument to ingestHandler:
ingester.Ingester does not implement storage.SampleAppender (wrong type for Append method)
have Append("github.com/ChronixDB/chronix.ingester/vendor/github.com/prometheus/common/model".Sample) error
want Append("github.com/prometheus/prometheus/vendor/github.com/prometheus/common/model".Sample) error

Have raised the issue in appropriate module


chore: add dialyzer to pipeline

Pull Request Test Coverage Report for Build 092dd2a0a49f3098f29a423b998dea1ecf48e1f6-PR-82

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 5eda4dc6048507cef05907f3abe8033c2752ba27:
0.0%

Covered Lines:
697

Relevant Lines:
697

💛  - Coveralls

lib/spear/reading/stream.ex:50:pattern_match
The pattern can never match the type.

Pattern:

  {{:"event_store.client.streams.ReadResp",
    {:stream_not_found, {:"event_store.client.streams.ReadResp.StreamNotFound", _}}},
   __rest}

Type:
nil

________________________________________________________________________________
lib/spear/reading/stream.ex:54:pattern_match
The pattern can never match the type.

Pattern:
{_message = {:"event_store.client.streams.ReadResp", {:event, _}}, __rest}

Type:
nil

________________________________________________________________________________
lib/spear/reading/stream.ex:60:pattern_match
The pattern can never match the type.

Pattern:
{{:"event_store.client.streams.ReadResp", {_content_case, _}}, __rest}

Type:
nil

________________________________________________________________________________
lib/spear/reading/stream.ex:100:pattern_match
The pattern can never match the type.

Pattern:
{_, _rest = <<__head, _ / binary>>}

Type:
nil

________________________________________________________________________________
lib/spear/reading/stream.ex:113:pattern_match
The pattern can never match the type.

Pattern:
{_message = {:"event_store.client.streams.ReadResp", {:event, _}}, _remaining_buffer}

Type:
nil

________________________________________________________________________________
lib/spear/reading/stream.ex:118:pattern_match
The pattern can never match the type.

Pattern:
{{:"event_store.client.streams.ReadResp", _}, _remaining_buffer}

Type:
nil

________________________________________________________________________________
done (warnings were emitted)
Halting VM with exit status 2

Got stuck with these issues!

Ah I think Spear.Reading.Stream.unfold_chunk/1 is spec'd incorrectly: it should be tuple() instead of struct() since each message is decoded by gpb as a record

I think it is ready now 😄


Add JS RPC Support for getYDoc and updateYDoc in y-durableobjects

closed: #49
closed: #46
This PR introduces several significant updates to the y-durableobjects library, with a major focus on adding new JS RPC support for getYDoc and updateYDoc APIs. These enhancements significantly improve the library's functionality and ease of integration with Hono. Key changes include:

Major Features:

JS RPC APIs getYDoc and updateYDoc:

Implemented new JS RPC APIs to fetch (getYDoc) and update (updateYDoc) YDocs within Durable Objects.
Allows manipulating YDocs from sources other than WebSocket, enhancing flexibility and control.

Hono Integration:

Added examples for integrating y-durableobjects with Hono, using both shorthand and detailed methods.
Demonstrated how to handle WebSocket connections via fetch due to the current limitations of JS RPC (see Cloudflare issue).

Extending with JS RPC:

Explained how to extend y-durableobjects for advanced operations, including accessing and manipulating protected fields:

app: The Hono app instance used to handle requests.
doc: An instance of WSSharedDoc managing the YDoc state.
storage: A YTransactionStorageImpl instance for storing and retrieving YDoc updates.
sessions: A map to manage active WebSocket sessions.
awarenessClients: A set to track client awareness states.

Provided a minimal example of creating a custom Durable Object by extending YDurableObjects.

Client-side Typed Fetch with Hono RPC:

Included a guide for creating a typed client using hc from hono/client to facilitate Hono RPC on the client side.

Documentation Updates:

Updated the README with detailed examples and explanations for the new features and integrations.
Ensured clarity and ease of understanding for developers looking to utilize the new functionalities.

These enhancements aim to provide developers with more robust tools and clearer guidance for integrating Yjs and Durable Objects within the Cloudflare Workers environment, leveraging the power of Hono for efficient and scalable real-time collaboration solutions.

Hi, @tobimori
I have pre-released an enhanced version of y-durableobjects with JSRPC added. It is available from https://pkg.pr.new/napolab/y-durableobjects@50 so please try it out and let me know what you think.
If it seems to be working well, I will release it.
Usage Examples
Usage including fetch (https://github.com/napolab/y-durableobjects/blob/6c2063d8b5745cab03c47d6f01fe6a70a7146868/src/e2e/e2e.test.ts)
getYDoc
API to get YDoc as Uint8Array
app.get("/rooms/:id/state", async (c) => {
    const roomId = c.req.param("id");
    const id = c.env.Y_DURABLE_OBJECTS.idFromName(roomId);
    const stub = c.env.Y_DURABLE_OBJECTS.get(id);

    const doc = await stub.getYDoc();
    const base64 = fromUint8Array(doc);

    return c.json({ doc: base64 }, 200);
  });

updateYDoc
API for updating YDoc from Uint8Array
app.post("/rooms/:id/update", async (c) => {
    const roomId = c.req.param("id");
    const id = c.env.Y_DURABLE_OBJECTS.idFromName(roomId);
    const stub = c.env.Y_DURABLE_OBJECTS.get(id);

    const buffer = await c.req.arrayBuffer();
    const update = new Uint8Array(buffer);

    await stub.updateYDoc(update);

    return c.json(null, 200);
  });

Partial support: https://github.com/napolab/y-durableobjects/pull/20


can this pacake generate C cfg?

now i have a assignment which is to generate C cfg and its Du path. now i could use another package generate C AST, but i dont know how to convert it to cfg

I'm not sure I understand your question, but if you have a corpus of ASTs for C code, you could convert it to a CFG by looking at all of the interior nodes in the trees and creating CFG rules based on the types of the parent and children nodes. This package won't do that for you, but it could help you parse C code once you have the CFG.

okay，thanks for your reply. cause i dont use english as usual communication, so its difficult for me to express my idea in english. I'll try my best to convert c AST to c CFG.
In addition,i use  package   to convert c source code to c AST.

别客气。加油。

Im major in mechainesm, but i choose a course which called《Software source code analysis》, and teacher give us an assignment which is to convert C source code to C CFG and Du Path.
and i just find a package can convert C source code to C AST, so i think can i use the information in AST, and convert it to CFG.
are you chinese? or you just use google translate?

The C language is probably simple enough that you could do the conversion by hand, unless the assignment is to write a program to do it.
我不是中国人，可是我上了一些中文课。

The C language is probably simple enough that you could do the conversion by hand, unless the assignment is to write a program to do it.
我不是中国人，可是我上了一些中文课。

哈哈 厉害，加油。
老师给的任务是，随便给一段c代码 然后生成其cfg和du path，但是我没学过编译原理，而且这不是我的专业领域，我熟悉力学，机械相关的。

of course, teacher let us to achieve by programming not by hand.


Undefined variable: "$colors" in pagination.less and navigation.less

Previously closed issue has not resolved:
https://github.com/nolimits4web/swiper/commit/3d83e7f4b6fc743759adbb6def36382ac0c26933
Still receiving the same error with fresh removal and adding back of package:
.navigation-color-loop(@ruleset) when (length( @colors ) >= 1) {
                                             ^
Variable @colors is undefined

Thanks

Previously closed issue has not resolved

Because it wasn't released yet


Fix gamepad message

This fixes the wrong "driver found" message if VID matches but PID not. I also renamed Gamepad07382217C to Gamepad07382217 because it should end on the VID and PID.

@astralaster : thanks. I wrong the name: one letter escaped. 👍


.debug() with only changed properties

Since it's very easy for the state to get really big in the app I would like to get only the changed keys in the log for clarity.
Is there some possibility to get only changed properties of the state with .debug()?

This is something we've thought about a lot but just haven't gotten to yet. In swift-snapshot-testing we collapse these diffs, and we'd like to do the same here in the future!

This probably can be closed as recent release 0.25.0 addresses that with CustomDump.

Ah yup! Good catch @andreyz :smile:


fix: responsive fix and blog post added

Proposed changes
Fixed responsive in homepage of documentation website and added a blog post
Types of changes

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation Update (if none of the other choices apply)

Checklist

[x] I have read the CONTRIBUTING doc
[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Codecov Report

Merging #29 (ce4ecd5) into main (aaf285c) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #29   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           31        31
  Lines          444       444
  Branches        84        84
=========================================
  Hits           444       444

Continue to review full report at Codecov.

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


Add hex digest interfaces from yambs dist to this package

Maybe just most of this: https://github.com/vkottler/yambs/blob/master/yambs/commands/dist.py#L36-L65

Note: make sure the "sum" output file ends in "sum" e.g. *.sha256sum instead of .sha256

While we're making changes, let's also add:
"""
A module implementing subprocess mixins.
"""

# built-in
from pathlib import Path
from typing import List

# third-party
from vcorelib.task.subprocess.run import SubprocessLogMixin

class SubprocessMixins(SubprocessLogMixin):
    """A task for generating ninja configurations."""

    async def shell_cmd_in_dir(self, path: Path, cmd: List[str]) -> bool:
        """Run a shell command in a specific directory."""

        path.mkdir(exist_ok=True)
        return await self.shell(f'( cd "{path}"; {" ".join(cmd)} )')

to SubprocessLogMixin.

https://github.com/vkottler/vcorelib/pull/95


fix(drawer): fix unclickable buttons on mobile

Fixes https://github.com/l-mbert/dns-checker/issues/10

Tyvm for the PRs!


Run pipelines in parallel.

Then the inventory_runner can get the list of enabled pipelines, figure out the order to process based on dependencies, raise exceptions if dependencies are missing, optionally launch different pipelines in parallel if they are not dependent on each other, etc.

2.0 Crawler is parallel. Closing issue.


Possible with Typer app not in a decorator?

 I instantiate my typer.Typer app like this, as shown in that project's README
app = typer.Typer()

Is there a way to wrap that in a Trogon TUI?

I have the same problem.

Perhaps this will help here?

Yes! Thank you so much!


use debug-assert for clamping values

This is a small change I'd like to suggest
I think these clamps are most useful when debugging or running tests. In most situations this code will never be called with out-of-bounds data unless there is an error in our parsing code. So we want this code to panic! in tests or when debugging. But we probably don't want this extra check in production code. Especially on an embedded platform a panic in production code leaves the embedded device inoperable.

implemented in #10


It seems that I have everything in place so far( I am at step 4), but when I run the app and I click Movie App Nothing happens. I do not understand why nothing happens.

Before you open an issue
If the issue is with an ASP.NET Core document:

Do not open a new issue using this form.
Open the issue with the This page button and form at the bottom of the document's page.

Using the This page button and form to open an issue:

Adds article metadata for tracking, which indicates the article that you're commenting on.
Automatically notifies the article's author about your issue.

If the issue is:

A simple typo or similar correction, you can submit a PR. See the contributor guide for instructions.
A general support question, consider asking on a support forum site.
A site design concern, create an issue at MicrosoftDocs/Feedback.
A problem completing a tutorial, compare your code with the completed sample.
A duplicate of an open or closed issue, leave a comment on that issue.

Issue description
{ description here }
Software versions
Check the .NET target framework(s) being used, and include the version number(s).

[ ] .NET Core
[ ] .NET 5.0 or later
[ ] .NET Framework
[ ] .NET Standard

If using the .NET Core SDK, include dotnet --info output. If using .NET Framework without the .NET Core SDK, include info from Visual Studio's Help > About Microsoft Visual Studio dialog.

dotnet --info output or About VS info
<replace>

The tutorial works. I'm not sure what step you missed. You might try asking on StackOverflow,.