how to run model using  LlamaCpp from Langchain with gpu

I am running GPT4ALL with LlamaCpp class which imported from langchain.llms, how i could use the gpu to run my model. because it has a very poor performance on cpu
could any one help me telling which dependencies i need to install, which parameters for LlamaCpp need to be changed
or high level apu not support the gpu for now
I have install the package with  "pip install llama-cpp-python"
could anyone help me with that, thanks in advance.

@Muhamad-Nady have you reviewed how to enable CuBLAS or a BLAS implementation in the README.md? This is not full GPU support but will speed up inference for longer (> 32 word) prompts.

@gjmulder, yes i see it but i don't know which one should use with linux, windows. if i have NVIDIA is the same like i have a AMD GPU. I need a little of declaration, how i could use that.  I install  cuBLAS,   but i still have Blas here =0 "AVX = 1 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | VSX = 0 | "

Can you please provide the complete description of your GPU hardware make, model, OS version, python version, text output of your build and install, as requested in the issue template? Ideally, without screenshots, but copy/pasted text so it is easier to read.

Hi @gjmulder here is what you asked for
os: Window 11 Home Version 22h2
GPU: Nvidia RTX 3050 laptop gpu
Python version: 3.10.9 anconda
build text : (base) C:\Users\Ryan\Documents\MuhamadTest>python guiwithmodel_fais.py
llama.cpp: loading model from C:\Users\Ryan\Documents\MuhamadTest\ggjt-model.bin
llama_model_load_internal: format = ggjt v1 (latest)
llama_model_load_internal: n_vocab = 32001
llama_model_load_internal: n_ctx = 2056
llama_model_load_internal: n_embd = 4096
llama_model_load_internal: n_mult = 256
llama_model_load_internal: n_head = 32
llama_model_load_internal: n_layer = 32
llama_model_load_internal: n_rot = 128
llama_model_load_internal: ftype = 2 (mostly Q4_0)
llama_model_load_internal: n_ff = 11008
llama_model_load_internal: n_parts = 1
llama_model_load_internal: model size = 7B
llama_model_load_internal: ggml ctx size = 59.11 KB
llama_model_load_internal: mem required = 5809.33 MB (+ 1026.00 MB per state)
llama_init_from_file: kv self size = 1028.00 MB
AVX = 1 | AVX2 = 1 | AVX512 = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | VSX = 0
could you help me with that

@gjmulder  Hello
Im facing the same issue on Linux
OS: Rocky Linux 9 ( linode vm  )
GPU : Quadro RTX 6000 24GB
I compiled the llama.cpp according to the readme file and specifically this one :
cd build
cmake .. -DLLAMA_CUBLAS=ON
cmake --build . --config Release

The output has showed that "cuda" detected and worked upon it
When i run ./main interactive mode from inside llama.cpp, it works on gpu
When I run LlamaCppEmbeddings from LangChain and the same model (7b quantized ), it doesnt work on gpu and takes around 4minutes to answer a question using the RetrievelQAChain.
Any help in this part?
Thanks

Can you show the full output of each build and run as per the issue template? Use < details > < /details> if it is a lot of text.
What are you --n_gpu_layers set to for both runs?
Do you get the same behaviour if you compile and run the version of llama.cpp that is pulled in via llama-cpp-python?

thanks for your response
embeddings = LlamaCppEmbeddings(model_path=original_model_path,
                              n_ctx=2048,
                              n_gpu_layers=24,
                              n_threads=8,
                              n_batch=1000)
llm = LlamaCpp(
    model_path=original_model_path,
    n_ctx= 2048,
    verbose=True,
    use_mlock=True,
    n_gpu_layers=12,
    n_threads=4,
    n_batch=1000
)

I did this, and its now working so so fast!!
Not sure why when i increase n_gpu_layers it starts to get slower, so for llm 8 was the fastest after several trial and errors
Now in the following
qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retriever=retriever)

When i choose chain_type as "map_reduce", it becomes super slow
Any guidance why?
Thank you in advance

Run:
watch -d nvidia-smi
To see a high level overview of what's going on on your GPU that refreshes every 2 seconds.
You can select and periodically log states using something like:
nvidia-smi -l 1 --query-gpu=name,index,utilization.gpu,utilization.memory,memory.used,temperature.gpu,power.draw --format=csv
man nvidia-smi for all the details of what each metric means.

@gjmulder  I have a question. Depends on what I define the number of GPU layers?
I have nvidia rtx3050

@gjmulder I have a question. Depends on what I define the number of GPU layers? I have nvidia rtx3050

Same question. Following

I don't know anything about Langchain, but if you're having multiple python processes running concurrently on the GPU, you need to ensure they all get enough:

CPU to feed them (n_threads)
VRAM for each context (n_ctx)
VRAM for each set of layers of the models you want to run on the GPU (n_gpu_layers)
GPU threads that the two GPU processes aren't saturating the GPU cores (this is unlikely to happen as far as I've seen)

nvidia-smi will tell you a lot about how the GPU is being loaded. I also keep an eye on atop to ensure the CPU isn't the bottleneck.


Material icons

This branch adds material design icons (@mdi/font) and material icon (material-icons) NPM packages. While the first isn't strictly required, it gives us a bunch of new icon options. The difference in package sizes seem to be moderate - biggest change is in source maps.
Head
static/css/app.f0d6ecc014b266ef49f5ecf30858ce65.css     455 kB       1  [emitted]  [big]  app
static/css/app.f0d6ecc014b266ef49f5ecf30858ce65.css.map     592 kB       1  [emitted]         app
90140d3b6e6ab155d34dbefe7d4e1344272ccbe2: Added @mdi/font
static/css/app.edf256455dfa66015e7356a48407b18d.css     723 kB       1  [emitted]  [big]  app
static/css/app.edf256455dfa66015e7356a48407b18d.css.map    1.11 MB       1  [emitted]         app
43daa29b649da8f5648f1e42c274ba6a3ca2c197: Added material-icons
static/css/app.f246aeeafd13987c68f24912f85c6deb.css     725 kB       1  [emitted]  [big]  app
static/css/app.f246aeeafd13987c68f24912f85c6deb.css.map    1.12 MB       1  [emitted]         app

Just for transparency: If the necessary icon set is added only the build size of the CSS increases in a minimal way from  455kb :arrow_right: 458kb. In case the second icon set is added the build size of the CSS gets slightliy bigger: 458kb :arrow_right: 725kb, which seems IMHO OK.

I treid to test the changes of this PR and it seems to be working for the dev setup (npm run dev)

But in case I build the same application (npm run buld) the icons do not seem to be resolved:

Am I missing something or is there something wrong?

My apologies for not testing this thoroughly.
It seems that for whatever reason the webfonts (e.g. /static/css/MaterialIcons-Regular.woff2) referenced in the respective css are not picked up by webpack. This also means that the package sizes increases above are not reported correctly, as there will be a few kB on top for the webfonts.
I'm looking for a short term fix for this. Otherwise I suggest you hold this PR back until we worked on #94

Ok, after spending some time looking through your build files, the problem appears to be, that you turned off the  'url' option in the css-loader for the production build.
From utils.js:
 var cssLoader = {     loader: 'css-loader',     options: {       minimize: process.env.NODE_ENV === 'production',       url: process.env.NODE_ENV !== 'production',       sourceMap: options.sourceMap     }   }
I'm not entirely sure if I could be breaking something there by turning it always on. Do you remember where this code was coming from or what the intention was?

@chrismayer The issue with the production build should be fixed now.
The initial assessment of the package sizes was wrong. On top of that we get the actual fonts which are deployed inside the static/fonts directory. However keep in mind that the client will usually load only one set of the web fonts, for my browsers (Firefox + Chrome) these are the woff2 fonts. So the situation is not as bad as it looks at first glance. Also it seems that currently only MaterialIcons-Regular is loaded (about 280kb) which would be loaded from Google CDN anyway - others are not yet in use but could be in the future.
`
static/fonts/MaterialIcons-Regular.225ce29.eot     114 kB          [emitted]
static/fonts/materialdesignicons-webfont.174c02f.ttf    1.03 MB          [emitted]  [big]
static/fonts/materialdesignicons-webfont.147e337.woff     465 kB          [emitted]  [big]
static/fonts/materialdesignicons-webfont.64d4cf6.eot    1.03 MB          [emitted]  [big]
static/fonts/MaterialIconsOutlined-Regular.a59f4f5.eot     276 kB          [emitted]  [big]
static/fonts/MaterialIconsTwoTone-Regular.34547a5.otf     553 kB          [emitted]  [big]
static/fonts/MaterialIcons-Regular.fdac816.woff2     100 kB          [emitted]
static/fonts/MaterialIconsOutlined-Regular.29e252f.woff2     125 kB          [emitted]
static/fonts/MaterialIconsTwoTone-Regular.cb9b33e.eot     553 kB          [emitted]  [big]
static/fonts/MaterialIconsSharp-Regular.90e0c78.eot     233 kB          [emitted]
static/fonts/MaterialIconsSharp-Regular.4f8b729.otf     233 kB          [emitted]
static/fonts/MaterialIconsTwoTone-Regular.6445961.woff     272 kB          [emitted]  [big]
static/fonts/MaterialIcons-Regular.c1d575e.woff     128 kB          [emitted]
static/fonts/MaterialIconsRound-Regular.1ee4845.eot     322 kB          [emitted]  [big]
static/fonts/MaterialIconsOutlined-Regular.fc4827f.otf     276 kB          [emitted]  [big]
static/fonts/MaterialIconsRound-Regular.0a6ccea.woff     158 kB          [emitted]
static/fonts/MaterialIconsRound-Regular.4b6a341.otf     322 kB          [emitted]  [big]
static/fonts/MaterialIconsSharp-Regular.7351a6a.woff2     109 kB          [emitted]
static/fonts/MaterialIconsTwoTone-Regular.cc1bc0a.woff2     174 kB          [emitted]
static/fonts/MaterialIconsRound-Regular.923ea6d.woff2     134 kB          [emitted]
static/fonts/materialdesignicons-webfont.7a44ea1.woff2     325 kB          [emitted]  [big]
static/fonts/MaterialIconsOutlined-Regular.46c0977.woff     145 kB          [emitted]
static/fonts/MaterialIconsSharp-Regular.a3cccd1.woff     125 kB          [emitted]
static/fonts/MaterialIcons-Regular.9fc042e.ttf     280 kB          [emitted]  [big]
`


The annotations in values.yaml are ignored when applying to ytt_lib

What steps did you take:
TLDR: The annotations like #@overlay/append #@overlay/match-child-defaults missing_ok=True are ignored when applying data values to ytt lib using
#@ def some_values():
#@   return data.values
#@ end

#@ --- #@ template.replace(some_lib.with_data_values(some_values()).eval())

The folder structure is like:
config
config/_ytt_lib
config/_ytt_lib/foo/templates/*
config/_ytt_lib/foo/values.yaml
config/foo.yaml
config/values.yaml

config/foo.yaml
#@ load("@ytt:data", "data")
#@ load("@ytt:library", "library")
#@ load("@ytt:template", "template")

#@ some_lib = library.get("foo")

#@ def some_values():
#@   return data.values
#@ end

--- #@ template.replace(some_lib.with_data_values(some_values()).eval())

config/_ytt_lib/foo/values.yaml
#@data/values
#@overlay/match-child-defaults missing_ok=True

---
foo:
    tolerations: []

config/values.yaml
#@data/values
#@overlay/match-child-defaults missing_ok=True
---
foo:
    tolerations:
    #@overlay/append
    - key: CriticalAddonsOnly
      operator: Exists
    #@overlay/append
    - effect: NoSchedule
      key: node-role.kubernetes.io/master

What happened:
When using ytt
ytt --ignore-unknown-comments -f config
Got the following error
$ ytt --ignore-unknown-comments -f config
ytt: Error:
- library.eval: Evaluating library 'addons/packages/addons-manager/bundle/config': Overlaying data values (in following order: _ytt_lib/addons/packages/addons-manager/bundle/config/values.yaml, additional data values): Overlaying additional data values on top of data values from files (marked as @data/values): Document on line ?: Map item (key 'foo') on line ?: Map item (key 'tolerations') on line ?: Array item on line ?: Expected array item to have 'overlay/match' annotation
    in <toplevel>
      addons-manager.yaml:11 | --- #@ template.replace(addons_manager_lib.with_data_values(addons_manager_values()).eval())

What did you expect:
The template rendering should finish successfully. The annotations in values.yaml outside the ytt lib should not be ignored.
Anything else you would like to add:
If I do
config/foo.yaml
#@ load("@ytt:data", "data")
#@ load("@ytt:library", "library")
#@ load("@ytt:template", "template")

#@ some_lib = library.get("foo")

#@ def some_values():
foo:
    tolerations:
    #@overlay/append
    - key: CriticalAddonsOnly
      operator: Exists
    #@overlay/append
    - effect: NoSchedule
      key: node-role.kubernetes.io/master
#@ end

--- #@ template.replace(some_lib.with_data_values(some_values()).eval())

The template renders without issue
Environment:

ytt version (use ytt --version):
OS (e.g. from /etc/os-release):

Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.

Thanks for reporting this, @blc1996. What version of ytt are you seeing this with?

I believe this issue was resolved in a separate channel.
@blc1996, if I am mistaken, please comment here to re-open this issue.

Reported in another channel:

Hi @cppforlife, I tried your suggestion to add missing_ok
#@ load("@ytt:data", "data")
#@ load("@ytt:library", "library")
#@ load("@ytt:template", "template")
#@ kapp_controller_lib = library.get("addons/packages/kapp-controller/bundle/config")
#@ def kapp_controller_values():
#@overlay/match-child-defaults missing_ok=True
--- #@ data.values
#@ end
--- #@ template.replace(kapp_controller_lib.with_data_values(kapp_controller_values()).eval())

but got the following error message
ytt: Error:
- library.eval: Evaluating library 'addons/packages/kapp-controller/bundle/config': Overlaying data values (in following order: _ytt_lib/addons/packages/kapp-controller/bundle/config/values.yaml, additional data values): Document on line ?: Expected docset, but was *yamlmeta.Map
    in <toplevel>
      kapp-controller.yaml:12 | --- #@ template.replace(kapp_controller_lib.with_data_values(kapp_controller_values()).eval())

Any suggestions on how can I make it work? Thanks!

A Zoom session ensued from which came these outcomes ...

some take aways:

maintaining backward compat rules for package data values will become increasingly important (in a coming ytt schema world this will become more explicit)
ytt will add a feature to support plain data values as part of library module (similar to what root library allows with --data-values-file)
there is a unblocking workaround for now which involved removing "removed" data values via overlays before giving it to library module

ref: #418

To add context as to why this is not a bug and is working as intended:
Data value overlay annotations are only used for merging data values files in the current library. The annotations are used to merge all the data values files in the current library into one structure using the overlay annotations to create the data.values struct. When passing the data.values into a library via some_lib.with_data_values(some_values()), it is at that point a structure that is a result of the overlay operations and does not have any annotations.
A library's data value file is responsible for stating which values the library accepts. Any given values not specified there would be considered as errors when trying to evaluate the library.


Version mismatch with nightly install.

Using the install instructions the latest Standalone version is <IP_ADDRESS>1 but the Jupyter version seems to be <IP_ADDRESS>9. So when trying to connect to the backend from Jupyter I am getting the following error.
H2OConnectionError: Version mismatch. H2O is version <IP_ADDRESS>1, but the h2o-python package is version <IP_ADDRESS>9. Install the matching h2o-Python version from - http://h2o-release.s3.amazonaws.com/h2o/(HEAD detached at ba3505b10)/391/index.html.
The link mentioned in the error message is not valid. What would the correct links be for versions that will connect with each other.

This happens because h2o is a little bit too strict when checking the version. To avoid this you can initialize like this: h2o.init(strict_version_check=False).

Ok good to know. Thanks.

This still happens.
H2OConnectionError: Version mismatch. H2O is version <IP_ADDRESS>, but the h2o-python package is version <IP_ADDRESS>. Install the matching h2o-Python version from - http://h2o-release.s3.amazonaws.com/h2o/rel-wolpert/11/index.html.

It could be you have an old version still running in RAM, even if on the hard drive it's been updated.  You can go to http://localhost:54321 (or where ever you have it set) and then shut down the running version.  Next time you run h2o.init() or similar it will run the new version removing the version mismatch error.


Package request: kaniko

Project description
kaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster
Metadata
homepage URL: https://github.com/GoogleContainerTools/kaniko
source URL: https://github.com/GoogleContainerTools/kaniko
license: Apache-2.0 license
platforms: Linux

Please test. And provide feedback.
You can use nixpkgs-review tool for that:

https://github.com/Mic92/nixpkgs-review

nix-shell -p nixpkgs-review
nixpkgs-review pr 216654
cd nixpkgs
nix build .#kaniko
./result/bin/kaniko

FYI you can do the following to build a container with kaniko in it. Use the kaniko executor on your host system (outside of containers) at your own risk
# nix bundle --bundler github:NixOS/bundlers#toDockerImage nixpkgs#hello
# docker load < kaniko-1.9.1.tar.gz
# docker run kaniko-1.9.1:latest executor --xyz

Note that you may need to build a container with kaniko/executor + credential helpers
https://github.com/GoogleContainerTools/kaniko/blob/main/deploy/Dockerfile#L52-L56


ClassCastException with Java 8 (later than 8.0_11)

What steps will reproduce the problem?
1. Use the seaglass demo package.
2. Run one of the demo, for instance TestButtons.java
3. Hover one of the buttons in the title bar (Minimize, Maximize, Close) and
wait for the toolTip to appear.
4. The following Exception is thrown:
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException:
javax.swing.JButton cannot be cast to javax.swing.JToolTip
	at javax.swing.plaf.synth.SynthToolTipUI.paint(SynthToolTipUI.java:179)
	at javax.swing.plaf.synth.SynthToolTipUI.update(SynthToolTipUI.java:141)
	at javax.swing.JComponent.paintComponent(JComponent.java:777)
	at javax.swing.JComponent.paint(JComponent.java:1053)
	at javax.swing.JComponent.paintChildren(JComponent.java:886)
	at javax.swing.JComponent.paint(JComponent.java:1062)
	at javax.swing.JComponent.paintChildren(JComponent.java:886)
	at javax.swing.JComponent.paint(JComponent.java:1062)
	at javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
	at javax.swing.JComponent.paintChildren(JComponent.java:886)
	at javax.swing.JComponent.paint(JComponent.java:1062)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5223)
	at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1572)
	at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1495)
	at javax.swing.RepaintManager.paint(RepaintManager.java:1265)
	at javax.swing.JComponent._paintImmediately(JComponent.java:5171)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4982)
	at javax.swing.RepaintManager$4.run(RepaintManager.java:824)
	at javax.swing.RepaintManager$4.run(RepaintManager.java:807)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:807)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:782)
	at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:731)
	at javax.swing.RepaintManager.access$1300(RepaintManager.java:64)
	at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1720)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
	at java.awt.EventQueue.access$400(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:697)
	at java.awt.EventQueue$3.run(EventQueue.java:691)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

What is the expected output? What do you see instead?
I should see the tooltip matching the button I'm hovering. Instead I get an
Exception.
This problem is not limited to the title bar buttons. I get Exceptions all over
the place in my application for JScrollBar being cast as JMenuItem, RootPane
has JToolTip and many more.

What version of the product are you using? On what operating system? What
JRE version?
Tested on Windows 7 using jdk8.0_20 and jdk8.0_25. No problem with jdk8.0_11

Please provide any additional information below.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 10 Nov 2014 at 6:33

Yep, same problem for me


Create semant.localplayer.dev.json

Requirements

[x] You have completed your website.
[x] The website is reachable.
[x] You have put a full stop (.) at the end of each of the CNAME and NS records.
[x] The CNAME record doesn't contain https:// or /.
[x] There is sufficient information at the owner field.

Description

Link to Website

CLA Assistant Lite bot: Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.

I have read the CLA Document and I hereby sign the CLA

You can retrigger this bot by commenting recheck in this Pull Request

ok

recheck

recheck

CLA Assistant Lite bot: Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.
I have read the CLA Document and I hereby sign the CLA
You can retrigger this bot by commenting recheck in this Pull Request

how the hell do I agree

I have read the CLA Document and I hereby sign the CLA


Bug in saving model in hdf5 format

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOs Mojave version 10.14.6
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.0.0
Python version:
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: N/A
GPU model and memory: N/A

Describe the current behavior
When try to save the below model in keras format, we get the following error:
ValueError: Unable to create group (name already exists)
This happens as this model has three layers with name as below:
tf_op_layer_Pad/paddings/0
tf_op_layer_Pad/paddings
tf_op_layer_Pad
Such name causes error in keras as described here - https://github.com/keras-team/keras/issues/12195
Describe the expected behavior
Model saving should not fail.
Code to reproduce the issue
import tensorflow as tf
from tensorflow import keras

x = keras.Input(shape=(None,10), dtype="int32", name="input")
T = tf.shape(x)[0]
to_pad = -T % 2
y = tf.pad(x, [[0, to_pad], [0, 0], [0, 0]])
model = keras.Model(inputs=[x,], outputs=[y,])
model.save("model.h5")

Other info / logs
This fix for this has been checked into keras few days ago it seems - https://github.com/keras-team/keras/pull/13477/commits/7dee298ebec503c6b0e1727dfd49b89a3fb002d7
But it seems TF has its own copy of this hdf5 saving, so it seems this fix will also have to be made there -
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/saving/hdf5_format.py#L624

Saving the model to TensorFlow format (tf) works where as hdf5 saving fails with TF nightly version '2.1.0-dev20191101'
import tensorflow as tf
from tensorflow import keras

x = keras.Input(shape=(None,10), dtype="int32", name="input")
T = tf.shape(x)[0]
to_pad = -T % 2
y = tf.pad(x, [[0, to_pad], [0, 0], [0, 0]])
model = keras.Model(inputs=[x,], outputs=[y,])
model.save("models.tf")

We need to backport https://github.com/keras-team/keras/pull/13477

I believe this is a duplicate of https://github.com/tensorflow/tensorflow/issues/33565


[ASCII-2058][E2E] Use require to fail early on fakeintake error

What does this PR do?

Use require instead of assert on fakeintake health assertion.
Motivation

Fail early if the fakeintake is down, otherwise the output can be confusing or show the wrong error.
Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


Feature Add button in clone Repository menu to open Repository in a separate browser window

Checklist
General

[x] I tested all changes and their related features with all corresponding user types on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Client

[x] I followed the coding and design guidelines.
[ ] I added multiple integration tests (Jest) related to the features (with a high test coverage), while following the test guidelines.
[ ] I added authorities to all new routes and checked the course groups for displaying navigation elements (links, buttons).
[ ] I documented the TypeScript code using JSDoc style.
[x] I added multiple screenshots/screencasts of my UI changes.
[x] I translated all newly inserted strings into English and German.

Motivation and Context
Following issue #4582 , a button was added to the clone repository menu, opening the repository in a separate browser window.
Description
A button was added in the clone.repro-button.component.html, which will open the repository link in a separate browser window. Also an English and German caption was added
Steps for Testing
Prerequisites:

1 Student
1 Programming Exercise

Log in to Artemis
Navigate to Course with an existing programming exercise
Try to clone the repository. In the displayed menu there should be a button which opens the repository in a separate browser

Review Progress

Code Review

[ ] Review 1
[ ] Review 2

Manual Tests

[ ] Test 1
[ ] Test 2

Test Coverage

Screenshots

I am not sure if we should really add the button. This is a rare use case, has limited additional use and makes the UI more complex.
If at all we can add a small icon button in the upper right corner with this functionality

Tested on ts3 at the testing session. LGTM 👍🏻


fix(Issue: 2111) Nginx Apply load balancing for UDP

Fix for
https://github.com/opnsense/plugins/issues/2111

@poggenpower This is about nginx, not HAProxy. I've corrected the title accordingly.

Thanks, I should not do two things in parallel 😇

Merged, thanks!


Signed Hein Htet Win for OpenTF Community.

Added in https://github.com/opentffoundation/manifesto/pull/830.


Don't use wget in elemental-iso-add-registration

The rationale behind this change is that wget is not shipped with SLE Micro while curl is.

The rationale behind this change is that wget is not shipped with SLE Micro while curl is.

Thanks! :+1:

What I don't like is that curl doesn't do retry and we have sporadic download issue with opensuse.org regularly...


Investigate Renovate Bot

https://renovatebot.com
A good alternative to greenkeeper. Greenkeeper has a lot of issues with lockfile updates and bugs in appveyor

yarnpkg/yarn is a good example of how renovate is used.


please support negative numbers

Negative numbers are currently bucketed with whatever the lowest bucket is. In a data set where 0 is more likely to be median than minimum, this throws off the scale completely

@kmike82 would you mind including a screenshot of your issue?

In the heatmap jpg, you can see that the lowest value is 0 (all negative numbers seem to get grouped into 0). I am only showing the lowest 5 aggregations here
In the linechart jpg, you can see that I expect numbers to range between -18000 and 15000

Thanks for your work on this. Your plugins are immensely useful

@kmike82 thanks! I am looking into the issue.

Ok, I think I've found the bug here.
This should be changed to:
var colorDomain = [Math.min(0, d3.min(metrics, metric), Math.max(d3.max(metrics, metric), 1)];

I will open a pull request soon.

Thanks!


Back button in Edit TI Group Members View

Description
Adding a 'Back' button to the edit TI group members flow, allowing users to easily go back to the previous page.
Checklist
General
Read the full guidelines for PRs here

[x] Added the correct label: < feature | bug | dependencies | infrastructure | ignore-for-release | database >
[ ] Created unit and/or browser tests which fail without the change (if possible)
[x] Performed manual testing (Chrome and Firefox if it includes front-end changes)
[ ] Extended the README / documentation, if necessary

User visible changes

[ ] Followed steps to internationalize new strings
[ ] Wrote browser tests using the validateAccessibility method
[x] Tested on mobile view. See mobile device mode
[x] Manually tested at 200% size
[x] Manually evaluated tab order

Instructions for manual testing
DevTools -> Program and CiviForm Admin -> Intermediaries

Create a TI group, then, click on 'Edit members'
See if 'Back' button is available and check if it returns you to the previous page.

Issue(s) this completes
Fixes #1426

Before

After

My reccomendatino with different technical efforts:

simple: Add a back button that includes an arrow and the text back above all content and below the tabbed navigation. see sample below
complex: Introduce breadcrumbs as a way for admins to navigate through the admin experience

If we need designs I will be able to get to them in the next Exygy sprint.

@swatkat1 Can you check if this is still relevant?

Not required anymore. Closing!


about core/Common.php load_class for 3.03

Cannot instantiate abstract class MY_Model in
whan i setting abstract class in project core;
A PHP Error was encountered
Severity: Error
Message:  Cannot instantiate abstract class MY_Model
Filename: core/Common.php
Line Number: 196
Backtrace:

How's that?
Btw, please don't write "3.03" ... I see that a lot, it's 3.0.3 - three separate numbers.

IMO the whole new fragment
if ( ! class_exists('CI_Model', FALSE)) { ... }
would be nice to be implemented as a separate protected method _load_system_model_classes() or sort of.
The fragment contains paths, scanning for files may be customized conveniently with overriding this separate method, without touching the system file.

I was just asking if the issue is resolved for the OP ... I just tested manually and it works.
As for your suggestion, I did think about that before writing the patch and I don't see the point in doing that.

I use HMVC with customizations, I needed to touch the system file while embracing this change. For me personally it is not a big deal, ok.

Not that I care about HMVC, but why and how did you manage this change previously? Rewriting load_class()?

Sorry for posting links to my repository, but this is the easiest way to show what I did.
Directly within the system file: Here is the additional method with customization, I have an additional path to check:
https://github.com/ivantcholakov/starter-public-edition-3/commit/fd5bf3ad1d06d20806d70e63697e4aef37b3e359
Here I apply the new method on HMVC code:
https://github.com/ivantcholakov/starter-public-edition-3/commit/7527017399ed81d90feb32475d96ea12cf140e5d

Hah, I saw a mistake of mine in the second commit, I did not replace a fragment fully. It is not important topic here.

And yes, HMVC extends CI_Loader, the successor class is MX_Loader.

It's not that hard to override ...
public function model($model, $object_name = NULL, $connect = FALSE)
{
    class_exists('CI_Model', FALSE) OR $this->_load_system_model_classes();
    return parent::model($model, $object_name, $connect);
}

I will try your suggestion.

It is something similar, in my particular case I simply moved the custom method within the successor class. Also I tested the new code on an application with database, it works.
So, my suggestion was not needed, your code if fine. Thank you, @narfbg


Format the subscription ARN to match AWS' behavior

Instead of using a random UUID alone we're now concatenating the (valid) topic ARN with the UUID,
so that the subscription ARN is also a valid ARN (and incidentally contains the topic for easier debugging)

Codecov Report

Merging #31 into master will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master      #31   +/-   ##
=======================================
  Coverage   38.81%   38.81%
=======================================
  Files          21       21
  Lines         286      286
  Branches       10       13    +3
=======================================
  Hits          111      111
  Misses        175      175

Impacted Files
Coverage Δ

.../main/scala/me/snov/sns/actor/SubscribeActor.scala
0% <0%> (ø)
:arrow_up:

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 cf4fa9d...ee0fa94. Read the comment docs.

Thanks!


Meaningless sounds get produced randomly if there are continuous spaces(newlines, tabs) regardless of prompts or input content

Self Checks

[X] This template is only for bug reports. For questions, please visit Discussions.
[X] I have thoroughly reviewed the project documentation (installation, training, inference) but couldn't find information to solve my problem. English 中文 日本語 Portuguese (Brazil)
[X] I have searched for existing issues, including closed ones. Search issues
[X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[X] [FOR CHINESE USERS] 请务必使用英文提交 Issue，否则会被关闭。谢谢！:）
[X] Please do not modify this template and fill in all required fields.

Cloud or Self Hosted
Self Hosted (Source)
Environment Details
Ubuntu 22.04.3 LTS (Google Colab), Python 3.10, torch==2.4.1
Steps to Reproduce
Run tools/llama/generate.py with any Chinese text that has continuous whitespaces, such as indentations, and with any prompts.
For example:
    要转换的文本。
    要转换的文本？
    要转换的文本。
    “要转换的文本！”
    要转换的文本。

Note that if the indents at the beginning each line get removed, the random meaningless sounds also disappear. Also the meaningless sounds don't always appear on every line. It happens periodically and has no specific patterns.
Right now my workaround is to add an additional clean-up step here inside clean_text
https://github.com/fishaudio/fish-speech/blob/f54c50fe6239d252be88a72433580fdb4118d350/fish_speech/text/clean.py#L24
to replace any continuous whitespace characters with the first occurrence of the matched characters (including newlines or tabs).
✔ Expected Behavior
No random meaningless sounds.
❌ Actual Behavior
As described above.

+1


External compass not detected from time to time

John Brown reported issues with external compass detection on Pixhawk
(https://groups.google.com/forum/#!topic/px4users/oSryUMyXuj0)
I checked his logs and can confirm that internal compass was used in "bad" flight (large interference with power lines and completely wrong calibration). John, please provide more details: compass model, boot logs from SERIAL5.

We have the compass ID implemented by now. Just need to store this during calibration as parameter and we're good.

Implemented partially here, handled now in QGC: https://github.com/mavlink/qgroundcontrol/issues/1427


Plane's model (and possibly forward vector?) turns upside down during half revolution

Not entirely sure why this happens. Possibly caused by the angle being 'unsigned' yet the plane's forward vector is opposite of the world's forward vector? Creates really unnatural feeling movements and need to be fixed as soon as possible.

https://user-images.githubusercontent.com/26779639/232242389-89d1e094-ee2f-4f64-98fe-eaf4ea54fb46.mp4

Fixed by not including roll rotations into the plane's directional vector's calculation, hence making the roll a purely visual effect.
https://user-images.githubusercontent.com/26779639/232244736-65ef2811-3825-46a8-87ec-89e69b20bb7b.mp4


Additional Common Filters

I want to add an additional filter called "Hot Topics". I tried adding an additional route to mimic the ones that are already there for mine, participating, answered, and unaswered, however, I get a routing issue because the routes that those use must override the ones that use a friendly ID. Is there a way to insert my route 'hot' so that it behaves the same? Just to be clear, I want a route similar to:

/forum/threads/mine
/forum/threads/participating
etc.

Such that

/forum/threads/hot

would load my action in the controller rather than defaulting to the show action.
This is the route I'm using currently:
get "/forum/threads/hot" => "simple_discussion/forum_threads#hot"
It tries to load a thread with a friendly ID of "hot" (which doesn't exist, of course) rather than calling my custom action--ostensibly because the resources route for threads by friendly ID are overriding it.
Any suggestions?
Thanks.

Prepend your route so it gets matched first.

Whoops, closed this on accident.

Derp! For some reason I got it in my head that the last route would override. Ugh. I guess this was a rails question more than simple discussion. Sorry about that. Thanks for your response, though. I appreciate it. Also, it worked!! (in case that wasn't clear)
Thanks again.

I like when issues are this easy. 🤘


Java Chapter 2: Only Toolbox-based installations have a default machine entry

In Chapter 2 of the Java under the section "Verify Docker Configuration" it is written that calling docker-machine ls will show an entry named "default".
However, when you have a Linux installation (say Ubuntu), docker will not run using Toolbox with a default (virtualbox) instance. I am unsure if that would also be the case with the new Docker Beta.
The document should be amended to reflect that. For example:

On operating systems that run Docker natively without running Virtalbox, such as Linux, there is no default entry.

@arun-gupta this is another one to update


Writing streams to results

I'm trying to write a feature that allows users to export the results from large queries with the least amount of memory consumed on the Java side.
I've finally ended up with a Stream<Row> with any intermediate materializations, which takes the least amount of memory.
I'm now stuck on how to pass this Stream to ctx.result without Javalin pulling out the entire stream or buffering.
The Stream could potentially have 10s of millions of rows.
I'm OK with outputting to a CSV line by line.

@gane5h I googled "stream to inputstrem", which lead me to https://stackoverflow.com/questions/55709937/how-to-obtain-inputstream-from-java-8-streams/
If you do ctx.result(inputStream), it should be written without being buffered in memory.

Nice, this is exactly it. I also had to convert an outputStream from my serializer to the inputStream that Javalin requires. Thanks a lot @tipsy!


Since Feb 18th, Chart Editor does not work anymore with shinyBuilder

Looks like google changed something. From ShinyBuilder interface,  the Chart Editor pop up but impossible to validate and apply change.
Steps to reproduce the problem with link to a sample page
1.go to https://iheart.shinyapps.io/ShinyBuilder/
2.move your mouse on the pie and click on the Graph button. the Google Graph Editor pop up.
3.click on OK
4.go to the javascript console log
5.you get the error message "Uncaught Error: google-visualization-errors: container is null. message: Container is not defined"
For more detailed information, see
https://code.google.com/p/google-visualization-api-issues/issues/detail?id=1880

Thanks for the feedback equere!  Will take a look at it in the next couple of days.

thanks for you help! and for shinyBuilder .... very useful!

did you had a chance to look at this problem  ? I wonder if I should switch to another solution or wait until you solve it. Let me know.


Add Issue And PR Tempaltes

Would like to add issue and pr templates to these project that will basically explain the type of issue and its description and also the type of pr the set of checklist that it obeys and its description
Kindly assign this to me as a part of Cross-Woc. I would love to do it

okay . Go for it.


nginx fastgci timeout

fastcgi_read_timeout 600;

https://github.com/dominikzogg/vagrant-php/commit/e4a7b4994201fcdd8c75aff35f7c6db0f678cf9d

@MrUpsidown after updating your setup (git submodule update --remote) and run vagrant provision within the vagrant-php dir, the problem should be solved


FIX: [CADT] Edit organization in UI not working

Can't use UI to edit org (endpoint works well). This has something to do with the fact that the edit org endpoint requires form data.

This is in develop and ready for testing


Milestone1/README update

Thanks for opening this up @PhillyWebGuy - We'll want a description of the protocol, which is in progress, as well as a guide on how to run and verify tests. The general idea is that anyone should be able to at least get this running, verify tests as passing, and create test transactions, but we want to provide extra depth to developers who want to contribute or build on top of the protocol. We have a wiki for that but there's not much on it yet.

I'm going to include the setup script in this PR which will Close #24

How are we feeling about this one? Ready to review?


Can you add OTR technology to Ferdi ?

Hi.
There is a security & privacy technology - open source & free of charge - called "Off The Record" (OTR) used to encrypt instant messages over non-encrypted messenger/chat service & private keys generated locally on user device. The site of OTR is:
https://otr.cypherpunks.ca/
It is used as plugin in Pidgin universal messenger. But Pidgin is incompatible with many services & seem to be dead application ......
It will be very useful & big step forward for Ferdi if can include this technology as built-in within Ferdi & make it available for chat services that set by user on Ferdi ....

This issue is still relevant.

It looks like there is a Node Binding library for OTR (https://github.com/mnaamani/node-otr4) so it might be possible to integrate OTR into Ferdi.
We won't be implementing this feature though as we have other priorities for the project, but we'll accept PRs adding this feature, e.g. with an optional setting in the service settings.

I think that this issue should remain open, so that peoples can see it & contributing ........

This issue is still relevant & will elevate Ferdi in it is implemented .....


Remove next/link legacy behavior

This PR only demonstrates the necessary code changes. I will add a migration guide and changesets once we decide we want to change that now.
Changes necessary in projects:
Either:

All custom link blocks need to render a HTML tag (a or span) that accepts a className
All link stylings need to be change to style the link block, not the a-tag in the link block
className needs to be prop drilled in LinkBlock

This will require lots of work in the projects I suppose. The Next codemod  will not be of much help here.
Or: Add legacyBehavior prop to link block usages.

PR Checklist

[x] Verify if the change requires a changeset. See CONTRIBUTING.md
[x] Link to the respective task if one exists: COM-803

@nsams @thomasdax98 I've added the changes we discussed yesterday, so this PR is ready to go.


README.md: "nor" -> "not", backtick causer

Note there's inconsistency on the casing of causer in the README and function documentation.

Thanks


mysql db connection always fails after saving.

Really curious to explore this tool.  Unfortunately, although my connection tests okay (Seems OK!), as soon as I save the db connection, and re-test it, the connection fails with a backtrace.  I am suspecting a problem with the way that the encrypted password is stored.
I'm using OSX.  Connection string is:
mysql://root:PASSWORD@{BLAH}.rds.amazonaws.com:3306/db_name
Seems OK!
Once I save the connection, the password displayed n the connection string changes to XXXXXXX, I can not see any tables from the db, and I get the following backtrace when trying to re-test the connection:
Traceback (most recent call last):
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/caravel/views.py", line 1029, in testconn
engine.connect()
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2018, in connect
return self._connection_cls(self, **kwargs)
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 72, in init
if connection is not None else engine.raw_connection()
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2104, in raw_connection
self.pool.unique_connection, _connection)
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2078, in _wrap_pool_connect
e, dialect, self)
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1405, in _handle_dbapi_exception_noconnection
exc_info
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 202, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2074, in _wrap_pool_connect
return fn()
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/pool.py", line 318, in unique_connection
return _ConnectionFairy._checkout(self)
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/pool.py", line 713, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/pool.py", line 480, in checkout
rec = pool._do_get()
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/pool.py", line 1060, in _do_get
self._dec_overflow()
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 60, in exit
compat.reraise(exc_type, exc_value, exc_tb)
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/pool.py", line 1057, in _do_get
return self._create_connection()
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/pool.py", line 323, in _create_connection
return _ConnectionRecord(self)
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/pool.py", line 449, in init
self.connection = self.**connect()
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/pool.py", line 607, in __connect
connection = self.__pool._invoke_creator(self)
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 97, in connect
return dialect.connect(_cargs, _cparams)
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 385, in connect
return self.dbapi.connect(_cargs, _cparams)
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/MySQLdb/__init.py", line 81, in Connect
return Connection(_args, *_kwargs)
File "/Users/jkeller/.virtualenvs/muck/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in init
super(Connection, self).init(_args, *_kwargs2)
OperationalError: (_mysql_exceptions.OperationalError) (1045, "Access denied for user<EMAIL_ADDRESS>(using password: YES)")

Duplicate of #596, please close.

same for me and it does not work.

Hi Team,
I'm unable to add MySQL connection in database on superset and getting the error
image


Call superstate executes for the same event as the child is in

Currently the super states won't react to an event fired. Is there any elegant way to have all the super states of the current states be called on the same event if it is defined like that?
so for instance i have this function that is defined for every state. I want it to be called for every superstate including the current state:
builder.In(state).On(Events.Do).Execute(state.Do);
but it only executes for the current state and not the super states when firing the event Do,

A transition on a superstate is only called when there is no transition lower in the hierarchy that matches the event and its guard returns true.
I suggest that you add the action to be executed in the transition actions lower in the hierarchy.

Yeah, but how do you know what the super states are?
I've looked it doing it with extensions at the firing event but I'm unable to see what the super state is. Maybe i don't get it, but i like to access https://github.com/appccelerate/statemachine/blob/master/source/Appccelerate.StateMachine/Machine/States/IStateDefinition.cs because there i can see what the super state is. And the events and actions. Like that i could just do recursively for each super state call the action which has the same event.
I cannot do it in a pretty way either at definition since i can't access the hierarchy when building the state machine.
The least favorable way to do this is having an hierarchy defined as a copy, but I don't think that that is a great solution.
Do you've any other suggestions or am i understanding somethings not correctly?

I see only the way to do this, but as I understood you, that is what you want to prevent:
(pseudo code)
DefineHierarchyOn(Superstate).WithInitialSubState(A).AndChildren(B);
In(SuperState).On(E).Execute(Action);
In(A).On(E).Execute(Action, AnotherAction)
In(B).On(E).Execute(Action, YetAnotherAction)
or call Action from inside AnotherAction and YetAnotherAction.
I thought about adding a possibility to specify whether a transition should be passed from superstates to its children, but I don't really like that idea. I think that calling the action explicitly, makes the state machine easier to understand.

So what I thought would work before you told me that the deepest event would get fired on duplicate event:
In(SuperState).On(E).Execute(Action);
In(A).On(E).Execute(Action, AnotherAction);
In(B).On(E).Execute(Action, YetAnotherAction);
I think that is pretty explicit.  And you could maybe in the define hierarchy choose then what behaviour you want on duplicate event. So by default it would only call the lowest in hierarchy (to preserve backwards compatibility) and if you do define it would call all actions in the hierarchy on the event.
And the second option sounds less favorable to me when using it, because you do have to know which other actions you need to call in the sub state actions.

As I understand your idea, it wouldn't work. I understand that you assume that transitions in super states for the same event would have the same target state. However, that is not true. A child state could point to Foo, a superstate to Bar.
Please correct me if I didn't understand your idea.


advanced search query type list

Comments on #1601 note that the list of query types in the advanced search is getting long and a bit disorganized.
Here's a suggested reorganization to use as a starting point for discussion (or to deploy, if you like it well enough as is):

Commonly used queries
Gene list queries

Gene name and IDs
UniProt accessions

Ontology queries

GO
Phenotype
Disease

Gene product queries

Product type
Protein modification
Protein domain
Protein feature
Protein length
Protein mol. weight
Number of TM domains
Number of exons
Number of transcripts

Genome overview queries

Taxonomic conservation
Characterisation status
Genome location

The headings I've put in could either be displayed or just stay behind the scenes as implicit groupings; I don't have a strong preference.

I think this classification is great. It will make it much easier to home in on the appropriate query.
I wonder if the display  even needs to be a vertical list?  It could be  5 boxes arranged in 2 columns  (gene product queries to the left and the others to the right would probably work with the current set) . We could then make  some things   a bit more obvious  with supplemental  info if required - like the "gene list queries" (i.e "upload gene list")
I have to say I struggle with the current list sometimes when I am looking for a specific query type......I think this separation will be really helpful.
Also, I have never noticed this before because I never click on it but the "New Query" link doesn't do anything?

I wonder if the display even needs to be a vertical list? It could be 5 boxes arranged in 2 columns

Could you make a mock up when you get a chance?  Currently the options look like tabs.  That would need to change if we had two columns.

Also, I have never noticed this before because I never click on it but the "New Query" link doesn't do anything?

It's not a link, it's a tab.  Maybe the label could be clearer?  Maybe "Start"?

I was thinking something like this
But probably not worthwhile unless the list gets very long...

Ignore the part about New query...

I would prefer to stick with the current vertical layout. It leaves plenty of space for the query-parameter setting controls once a type is selected.

OK, I prefer the vertical layout too.  So  this one can move to implementation.

I'm not sure how to get the tabs to look OK in the new organisation.  I'll have to think about it.

I removed "next" and "quick" from this while you think about it. Since it is an enhancement it isn't urgent.

I removed "next" and "quick" from this while you think about it.

Thanks.  I'm also a bit worried that the list will be a bit long.  It's already a bit too much on my screen.

I'll put at low priority for now. We can revisit if/when more queries are added...

We can revisit if/when more queries are added...

We'll soon need to add a new query type: #1729
It's currently disabled on the main site.

We'll soon need to add a new query type: #1729

Also #1720

Shall we discuss on next call?

Shall we discuss on next call?

I've added it to my list.

Here's a suggested reorganization to use as a starting point for discussion

I like that organisation.
I've also been experimenting with moving some query types into sub-tabs.  Here's how my prototype looks.  I don't think it looks great at the moment but I'll try a few options.

That works for me.

That works for me.

Great.  I can do a quick demo on Thursday if you like.

That would be great!

Here's my first attempt at grouping the query types.  It's still a bit in progress.  Like the other query builder changes it's only in my local copy for now.

Looks good. I suppose it wants the little arrows for the items that have options in tabs but I can't see anything else to change.
It also occurs to me that if we wind up adding a lot more "commonly used queries", we can group them into tabs using the same categories.

I suppose it wants the little arrows for the items that have options in tabs but I can't see anything else to change.

Good point!  The arrows got lost while I was making these changes.  I'll add them back before release.

It also occurs to me that if we wind up adding a lot more "commonly used queries", we can group them into tabs using the same categories.

That makes sense.

I like it too.
I'm not sure about the grouping of
protein modification and domains features and motifs under 'gene product queries'
but I don't have good suggestions

I have a small text change:
rather than
protein with any coiled-coils
oe
number of coiled-coils
per protein.
Change to
number of coiled-coils regions per protein.
A coiled -coil  region may contain >1 coiled-coil
(also more consistent with the other 2 features)

A coiled -coil region may contain >1 coiled-coil

Ah, I didn't know that.  I've change it.

will this work for japonicus too?

It will once the configuration is updated.

I hope that makes sense.

I think so.  :-)
It's all live now: https://www.pombase.org/query
Let me know if you spot any problems.
The version on my desktop is now JaponicusDB with the new style query builder and configuration: https://desktop.kmr.nz/query

@mah11  could you add a news item on Monday


Create a job security card(filled)

One need to make this component using HTML and Tailwind CSS. I would suggest to use Tailwind Playgrounds to make things faster and quicker.
Here is a reference to the component.

After building the component please raise a PR with a screenshot of the component and add the component in Feature Cards/feature-card-job -security-filled.html.
If you need to use any icon please use it from Hero Icons
Good luck.

Can I work on this issue @rupsha014

go ahead @aritra-tech

I wish to contribute to this issue. Please assign this issue to me @rupsha014

I wish to contribute to this issue. Please assign this issue to me @rupsha014

Ok @MadhurKharche you continue with this issue I will do the other issues.
@rupsha014 please assign it to @MadhurKharche

Hi @rupsha014 I would like to work on this issue

I have added the PR for this issue


Sdk 0.4.01 - update documents and versioning

Coverage remained the same at 51.235% when pulling 22560ef73fc49f202c5066123409cc7efb4471dd on sdk-0.4.01 into f3b95bee2355e5b6e7753115270906117eb1482d on pai-0.14.y.


Remove dns test for the moment

Signed-off-by: Peter Gubka<EMAIL_ADDRESS>

Coverage decreased (-0.09%) to 47.364% when pulling ceba2f58f369465803679a917630aa8ae3c64f0f on pgubka:master into 77091cc7e7c88c433e7cdc874f840a406438ad5d on contiv:master.


Link to docs should open in new tab

Feature Request
It'd be nice if the link to the docs opened in a new tab. Sometimes while I'm on staging, I accidentally click the docs and forget that the links there don't go back to staging.
┆Issue is synchronized with this Jira Story
┆Issue Type: Story
┆Fix Versions: Dockstore 1.8
┆Sprint: Seabright Sprint 22 Whaleboat
┆Issue Number: DOCK-624

LGTM,
API - 1.8.0-alpha.2
UI - 2.5.0-alpha.0


List unpacking

List unpacking
Summary
List unpacking is only working when we are declaring the variables. It should also work with previously defined variables. Need to investigate further into why this is happening, will drop more info here as I find it.
Example

I'd like to pick it.

@Fly-Style awesome, assigned this to you!

@Fly-Style Going to remove your assignment as it's been just over half a year now.

Hi @Jason2605,   Could you provide the example for a proper list unpacking?

@MannarAmuthan There is an example in the screenshot in how it should work, but doesn't, it currently works when you declare a variable but not when you set a variable.
Example:
// Fine
var [x, y] = [1, 2];
print(x); // 1
print(y); // 2

// Issues
var x, y;
[x, y] = [1, 2]; // Invalid assignment target

Hi Could you assign this to me?, I'd like to pick it.

Hi , Which one is correct syntax for unpacking already declared variables x,y?
var x,y;
[x, y] = [1, 2];
(or)
var x,y;
x,y=[1,2];

The first option is what we should have available to us for list unpacking
var x,y;
[x, y] = [1, 2];

Raised pull request for fix: https://github.com/dictu-lang/Dictu/pull/546

Found some issues , will fix it


Update UserGuide and PPP with small changes to DG

Codecov Report

Merging #184 (4b4f6d8) into master (73cddbc) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #184      +/-   ##
============================================
- Coverage     68.30%   68.24%   -0.06%
  Complexity      724      724
============================================
  Files           116      116
  Lines          2483     2485       +2
  Branches        291      292       +1
============================================
  Hits           1696     1696
  Misses          697      697
- Partials         90       92       +2

Impacted Files
Coverage Δ

...edu/address/logic/commands/EditPackageCommand.java
53.33% <0.00%> (-8.21%)
:arrow_down:

...edu/address/logic/commands/ExportToCsvCommand.java
100.00% <0.00%> (ø)

...u/address/logic/commands/DeletePackageCommand.java
0.00% <0.00%> (ø)

...u/address/logic/commands/ImportFromCsvCommand.java
100.00% <0.00%> (ø)

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 73cddbc...4b4f6d8. Read the comment docs.


e2e test support

help blockchain and primatives. and dev ops create true e2e / smoke tests. that run against actual blockchain (alfajores/celo) not anvil.
there are some old ones in the monorepo.
two parts

e2e tests that runs on alfajores in CI but can run against mainnet as well. tests for both with fees/gas set by hand and fetched automatically for

send value native
erc20 transfer, pay with celo
erc20 transfer, pay with each fee token.

cron job that checks for new releases of viem. ethers. web3, and runs some tests with the latest version the e2e tests.

Related PR #388

https://github.com/celo-org/rpc-libraries-e2e

See also https://github.com/celo-org/celo-blockchain-planning/issues/482.


[GHSA-3wqf-4x89-9g79] Bootstrap vulnerable to Cross-Site Scripting (XSS)

Updates

Affected products
Description
References

Comments
I used the demonstration example from https://github.com/twbs/bootstrap/issues/26625#issuecomment-393057193 and proofed, that also version 2.3.0 and above are affected, but 3.4.0 is not, see https://jsbin.com/xixaqeyofi/edit?html,output

Hi @jenhae, I disagree that version 2.3.0 is vulnerable. The line of code in collapse.js that was involved with CVE-2018-14040, parent = $(this._config.parent)[0], (as corrected in https://github.com/twbs/bootstrap/pull/26630/files), wasn't added to collapse.js until version 4.0.0-beta.2 in this commit. I checked version 2.3.0's version of bootstrap-affix.js, the precursor to collapse.js, and was unable to find the affected line of code in that file either.

Hi @shelbyc, I couldn't find the affected line either, I'm not sure how bootstrap-affix correlates with bootstrap-collapse. I was talking about the https://github.com/twbs/bootstrap/blob/v2.3.0/js/bootstrap-collapse.js, maybe another vulnerability.
However, I could track down the issue to line 34 of bootstrap-collapse using my example, see https://github.com/twbs/bootstrap/blob/v2.3.0/js/bootstrap-collapse.js#L34.

@jenhae I read at the bottom of https://github.com/twbs/bootstrap/commits/v3.0.0/js/collapse.js that the file was renamed to collapse.js from js/tests/unit/bootstrap-affix.js, but this may not be accurate because the pages for https://github.com/twbs/bootstrap/commits/v3.0.0/js/alert.js and https://github.com/twbs/bootstrap/commits/v3.0.0/js/carousel.js, among others, also claim that those files are renamed from js/tests/unit/bootstrap-affix.js.

With respect to https://github.com/twbs/bootstrap/blob/v2.3.0/js/bootstrap-collapse.js#L34, I think you should bring your concerns to the maintainers and ask them if they believe this might be another vulnerability. According to this commit, this.$parent = $(this.options.parent) replaced this.$parent = $(this.options["parent"]) in version 2.0.3. I'm not sure if the change in this particular line would affect the code's vulnerability to cross-site scripting, and this comment claims the Debian LTS security team found that Bootstrap version 2.0.2 wasn't vulnerable to CVE-2018-14040. Ultimately, I'm not a JavaScript expert, and the people in the best position to assess whether or not the software has bugs are the maintainers, who are the experts in how Bootstrap works.
Thank you for the nice conversation, and I hope I was able to provide some information to help you move forward!

I think you are right @jenhae! The affected versions should be edited in https://github.com/advisories/GHSA-3wqf-4x89-9g79

@jenhae I think this one should also be edited? https://github.com/advisories/GHSA-7mvr-5x2g-wfc8

@1Jesper1 you're right. Feel free to suggest an improvement https://github.com/advisories/GHSA-7mvr-5x2g-wfc8/improve

@1Jesper1 you're right. Feel free to suggest an improvement https://github.com/advisories/GHSA-7mvr-5x2g-wfc8/improve

Will so soon!

@jenhae Could you review? https://github.com/github/advisory-database/pull/3297/files I think the affected versions could also be tuned in your improvement.

@1Jesper1 I've read your input here and https://github.com/github/advisory-database/pull/3297 and have read the original bug reports. I have a question about this comment in the thread where you originally reported CVE-2018-14042. The comment is from the person who answered this message on the Debian mailing list. The respondent claims that Bootstrap 2.0.2, 3.2.0, and 3.3.7 aren't affected by CVE-2018-14042.
The respondent also claims that In my tests, only CVE-2018-14040 actually triggers a XSS, and only with 3.2.0. So I've marked 2.x N/A there as well.
What do you think of these findings?

@shelbyc About https://github.com/twbs/bootstrap/issues/26628#issuecomment-416282154
See https://jsbin.com/wuxuzineli/edit?html,output You can change the Bootstrap JS version to check if the XSS is hit.
Bootstrap 2.3.0, 3.2.0 and 3.3.7 are vulnerable, that's why this should be changed: "Vulnerable from Bootstrap 2.3.0 to 3.4.0 and 4.x before 4.1.2"

@shelbyc 3.4.0 is not vulnerable. So might be "Vulnerable from Bootstrap 2.3.0 to 3.3.7 and 4.x before 4.1.2"

I showed this contribution and https://github.com/github/advisory-database/pull/3297 to my teammates and one of them found something interesting! Changing the jQuery version also affects whether the XSS is hit.
For example, the response from the Debian mailing list I mentioned earlier has the following links:

Link
Bootstrap Version
jQuery Version
Vulnerable?

https://jsbin.com/bimipayoda/edit?html,output
4.4.1
3.3.1
Yes

https://jsbin.com/nakisuhuso/edit?html,output
3.3.7
3.3.2
No

https://jsbin.com/tafejagene/edit?html,output
3.2.0
3.3.2
No

https://jsbin.com/zapefecije/edit?html,output
2.0.2
3.3.1
No

When we switch all links to using jQuery 3.3.1, the outcome changes:

Bootstrap Version
jQuery Version
Vulnerable?

4.4.1
3.3.1
Yes

3.3.7
3.3.1
Yes

3.2.0
3.3.1
Yes

2.0.2
3.3.1
No

Trying this with versions 3.4.0, 3.3.7, 2.3.0, and 2.2.2:

Bootstrap Version
jQuery Version
Vulnerable?

3.4.0
3.3.1
No

3.3.7
3.3.1
Yes

2.3.0
3.3.1
Yes

2.2.2
3.3.1
No

Do either of you find that the version of jQuery used affects the outcome of the test?

@shelbyc I think jQuery 3.3.2 does not exist..

@jenhae @1Jesper1 Thank you both for using your time and expertise to help me understand GHSA-3wqf-4x89-9g79 and GHSA-7mvr-5x2g-wfc8! I've updated both advisories and am contacting MITRE at https://cveform.mitre.org/ to request to have the CVE records for CVE-2018-14040 and CVE-2018-14042 updated as well.


feat(searchBox): allow to pass a queryHook

The queryHook can be used to implement debouncing for example.
Usage:
searchBox({
  queryHook: (originalQuery, search) => // either call search() or search(newQuery);
});

Nice! LGTM!


[Enhancement] Add callback at the and of the video

It will be good for cutscenes. For example after cutscene toggles game hud visibility etc.

Moved to #35.


Handle exception if we cannot write the sudoers file

Current coverage is 98.34% (diff: 100%)

Merging #354 into development will increase coverage by <.01%

@@           development       #354   diff @@
=============================================
  Files               38         38
  Lines             2941       2958    +17
  Methods              0          0
  Messages             0          0
  Branches           145        145
=============================================
+ Hits              2892       2909    +17
  Misses              43         43
  Partials             6          6

Powered by Codecov. Last update 723f3a7...b4833ce

mock for open changed

OK, hopefully I have al the formatting issues addressed now.


[DNR WIP] Support not updating Items and HeaderFooters at all if they are equivalent

Probably will close this out; once https://github.com/square/Blueprint/pull/239/files lands; this is mostly not useful.


Ability to restart a vertex of the pipeline

Summary
Today, if we want to restart a particular vertex (restart all the vertex pods) after changing some spec (like max payload size for jetstream), we need to restart every vertex pod individually. Here, we would like to have the ability to restart a particular vertex if that is doable
Use Cases
When would you use this?
We would use this when we change specs like isbs spec, etc, or other config maps.

Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

Maybe a workaround,
Scale down the vtx to 0 and And then scale back to desired replicas?
Will that work

That seems fair for this usecase.


Question on vicuna model version

Hello, I'm wondering about the version of Vicuna that was used for the reported results in the paper.
The outcomes from my personal experiments on the ELI5 dataset show notable discrepancies from those reported in the paper.

I used https://huggingface.co/lmsys/vicuna-13b-v1.3.
In addition, I used the full instruction, instead of light instruction.

On ELI5 dataset,

results from personal experiments are

claim recall
citation recall
citation precision

VANILLA (3-psg)
10.8
44.9
43.2

SUMM (10-psg)
11.7
44.4
42.6

SNIPPET (10-psg)
13.0
46.7
42.0

results from the paper:

claim recall
citation recall
citation precision

VANILLA (3-psg)
10.0
15.6
19.6

SUMM (10-psg)
4.9
9.7
12.2

SNIPPET (10-psg)
11.2
27.2
27.9

I'm curious whether you used different checkpoints for Vicuna?
I'd be grateful if you could offer any additional explanations you might have for such differences.
While using the full instruction (rather than the light instruction) could potentially account for some differences, the gap in results appeared too substantial for that alone.
Best regards,
Jihyuk Kim

Hi Jihyuk,
Thank you for your interest in our work. For our experiments, we used an older checkpoint of vicuna (https://huggingface.co/lmsys/vicuna-13b-delta-v1.1).
From our experience, the full instruction and light instruction do not make for significant differences; the reason that we use light instruction for vicuna is due to the limited context lengths, where using a shorter instruction while being able to fit everything else into the context is better than using a longer instruction and using the extrapolated positional embeddings.
Taking a closer look at the differences between the two version, the vicuna repo states that v1.3 is trained on twice the amount of ShareGPT data than before, and 370M tokens were used for fine-tuning. I suspect that the boost in performance originates from the ShareGPT data, which we found to contain conversations similar in format to our tasks.
Thanks for bringing this to our attention!
Best,
Howard


Adding black tick marks in absence of grid lines and change tick label style

@dmadeka this is a PR to your PR which adds short (black) ticks when grid_lines is "none".

Thanks! This is perfect!

@dmadeka arg, I just pushed another commit in the same minute. I am opening another PR right now.


Add network/bridge configuration

The LXD snap should expose configuration options to setup the LXD bridge.

This is blocked on #13


Add German Trade Republic Parser to Program.cs

Oops, I just realised the parser wasn't actually registered in the main Program yet, sorry :sweat_smile:
Mind merging this hotfix real quick? :innocent:

It seems you have missed a unit test 🤭

my bad, fixed now


User Errors - we currently do not provide customers with details on these in our Diagnostic Logs

I worked a case with a customer recently where they could see a very large volume of user errors on the portal for their Event Hub when they checked their diagnostic logs but there are no details on what these were. The customer opened the support ticket with us to understand what these errors were so I took the case and followed up for them - I was told that we do not provide details and it is up to the customer to capture these user errors via their application. I searched online for verbatim from Microsoft confirming this and I could only find posts in third party forums to explain this.
My ask is, can we add a note under the section (https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-metrics-azure-monitor#request-metrics) on this page explaining that we just log out the occurrence of a user error, customers should make sure they capture details on user errors in their applications or they can convert the telemetry generated when messages are sent/consumed into Application Insights? https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-end-to-end-tracing

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

ID: 5c5374f1-66b3-0d14-ddf6-2073ce8ccc58
Version Independent ID: d942fd64-3d07-894b-fec6-2b7a0e6621c9
Content: Metrics in Azure Monitor - Azure Event Hubs
Content Source: articles/event-hubs/event-hubs-metrics-azure-monitor.md
Service: event-hubs
GitHub Login: @ShubhaVijayasarathy
Microsoft Alias: shvija

@aodugga Thanks for bringing this to our notice. I am assigning this issue to the doc owner to review and update as appropriate.
@ShubhaVijayasarathy  Can you please take a look at this one?

Added a note:
https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-metrics-azure-monitor#azure-event-hubs-metrics
#please-close

Added a note:
https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-metrics-azure-monitor#azure-event-hubs-metrics
#please-close


Alerts are not replicated over multiple alerts managers

What did you do?
kubectl apply -f https://raw.githubusercontent.com/coreos/prometheus-operator/release-0.36/bundle.yaml
Kubectl apply from:
apiVersion: monitoring.coreos.com/v1
kind: Alertmanager
metadata:
  name: internal-alertmanager
spec:
  replicas: 3
  image: quay.io/prometheus/alertmanager:v0.20.0
  logLevel: debug

What did you expect to see?
If I send one alert to one of the replicas of the alertmanager I expect that the alert is replicated to all alert managers in the UI.
What did you see instead? Under which circumstances?
When I send one alert to one of alertmanager managers only that instance hows the alert on the ui.
The others are empty.
Environment
minikube

System information:
minikube version: v1.7.3
commit: 436667c819c324e35d7e839f8116b968a2d0a3ff

Alertmanager version:
0.20

Alertmanager configuration file:
ha mode from the prometheus operator

Note: The silences get replicated, what I don't know is if the silences are being replicated over gossip (UDP)
Question is: Is this a wanted behaviour ?

Yeah, that's by design, quoting from the docs: “It's important not to load balance traffic between Prometheus and its Alertmanagers, but instead, point Prometheus to a list of all Alertmanagers.”
Alerts are never replicated. Each Prometheus server has to send alerts to each Alertmanager.

Hi @beorn7  So the alertmanager instances only sync:

The alerts that were send
The silences

Is this correct?

ah, now I think I got it. So each alertmanager stores their own alerts. The alertmanagers only sync the notifications between them. Thanks a lot @beorn7


Remove references to accessibility issues in Frontend Docs from accessibility statement [before 31 March]

What
Once https://github.com/alphagov/govuk-frontend-docs/issues/104 has been merged and deployed, update the accessibility statement to remove the reference to issues caused by the technical documentation template, and update the compliance status.
Why
The known accessibility issues should be resolved by updating to v2.2.0 of the template and ensuring tables have the correct row headers (https://github.com/alphagov/govuk-frontend-docs/issues/104)
Done when

[ ] References to issues in Frontend Docs removed
[ ] Compliance status updated
[ ] Changes 2i'ed

As discussed in the tech writers' docs catchup, the actions to update accessibility statements are as follows:

In your product team's tech doc accessibility statement:

remove the reference to the tech doc template from the "How accessible this website is" section
remove the reference to the tech doc template from the "Non-compliance with the accessibility regulations"
in the "How we tested this website", update the last tested date and remove the bulleted list
update the "What we’re doing to improve accessibility" section
in the "Preparation of this accessibility statement", update the last reviewed and last tested dates

If the documentation is now fully compliant with the regulations, reflect this in the statement using the phrase "This website is fully compliant with the Web Content Accessibility Guidelines version 2.1 AA standard" in the following sections:

How accessible this website is
Compliance status
What we're doing to improve accessibility - suggest you put something in about maintaining the fully compliant status

Check the sample accessibility statement here for more information if needed.

We'll need to adjust that slightly as the accessibility statement for the frontend docs is combined with the accessibility statement for the Design System.

@36degrees Just to confirm:
Is this issue to update https://design-system.service.gov.uk/accessibility/?
And is https://github.com/alphagov/prototype-kit-training/issues/53, because it's in the prototype-kit-training repo, to updatehttps://prototype-kit-training.cloudapps.digital/accessibility.html#non-compliance-with-the-accessibility-regulations?


UI Widget not showing current 'time'

Any ideas? I'm using Pixel 3a (API R) emulator.

Yes because the flutter code of UI widget does not show time :)

Yes because the flutter code of UI widget does not show time :)

Well, it does mate?

If I change the initial value of String time, it shows up.
Problem is, it's not updated at all?

Well, it does mate?

If I change the initial value of String time, it shows up.
Problem is, it's not updated at all?

You need update widget from Android side manually.
Because the widget is not a normal Flutter app. Android init a new Flutter engine, engine run widget Flutter app, a screenshot is taken, Flutter app terminated, screenshot convert to Bitmap and send to Android widget system.

You need update widget from Android side manually.
Because the widget is not a normal Flutter app. Android init a new Flutter engine, engine run widget Flutter app, a screenshot is taken, Flutter app terminated, screenshot convert to Bitmap and send to Android widget system.


Update 1.20

Got the mod to work with 1.20.
Added placeholder to get player name for commands

Im currently on the support for other mc versions, so I'll close this.
Make sure in future PRs, that you also update the .gitignore if you're using an IDE that generates files specifig to your workstation.


Revert "fix: remove typescript bypass on forwardRef (#31)"

This reverts #31, which began to cause warnings and issues in React Native (because function components can't take a ref).
We then update how we handle the refs in Typescript so that there are no Typescript errors when you use the component. Verified working via example app.

@trajano : just FYI, in case I've done something incorrectly. But this change gets rid of the React warnings, and also maintains Typescript correctness.

@trajano : just FYI, in case I've done something incorrectly. But this change gets rid of the React warnings, and also maintains Typescript correctness.

I'll have to check when I have time, but I use function components almost exclusively and forwardRef is a bit weird to use and I usually forget how to do it whenever I switch languages so I wrote up this example for myself.
https://github.com/trajano/react-hooks/blob/master/cookbook/hoc/withHoc.tsx


Question: SELECT values from measurements except if they match regex

I am trying to run a query but am not sure if its possible. Hoping someone here can tell me how do it or explain why it can't be done.
What I need is a way to SELECT values from measurements except if they match certain IPs that I specify. I have a logparser input that watches my apache logs. I also have a script that checks the status of my website periodically. This results in my apache logs flooded with messages from my own IP addresses.
Wanted Query
SELECT "clientip" FROM "apache_access_log" WHERE "clientip" != "<IP_ADDRESS>" AND "host" =~ "web01"  AND "response" =~ "200" AND $timeFilter
Can a query like this be constructed?

Change the double quotes to single quotes around the IP address: WHERE "clientip" != '<IP_ADDRESS>'. Double quotes indicate an identifier (e.g., db name, tag key, field name). Single quotes indicate a string value.
The best place to ask usage questions is on the InfluxData community site.


Usage of Crossref's "free_to_read" tag

Hello again,
after some more discussions with the people from Thieme it looks like they report "free availability" to Crossref by setting the "free_to_read" tag. Unfortunately, this element isn't part of their JSON format, but of the more comprehensive UNIXREF format, see  see https://api.crossref.org/works/10.1055/s-0036-1588536/transform/application/vnd.crossref.unixsd+xml
[...]
<ai:free_to_read start_date="2017-08-28" />
[...]

It looks like the information is currently not exploited by oaDOI, see http://api.oadoi.org/10.1055/s-0036-1588536. Any chance to use the tag as indicator to detect free available content?
Thanks,
inga

thanks for the example!  We knew this field was going to start being used, but hadn't seen it in the wild yet.
Yup, we'll see how much it would improve our coverage and prioritize accordingly.  Good to know this is how Thieme does it, that's helpful.  Thanks :)

Moved to https://support.unpaywall.org/public/tickets/bba3b71bf0d8b6ca2e7bd004f469ad9dc74cd6b11b83c0228f898f32f2c5e2e6


Playground: Nightly builds not getting .d.ts lib files set up right

Repro:
Playground
Likely came from these changes: https://github.com/microsoft/monaco-typescript/pull/64#commits-pushed-7a46ec2

This should be fixed upstream now and we'll see what happens on the next nightly build

Confirmed this is fixed


Require a img file using a variable into path

Do you want to request a feature or report a bug?
Report bug

What is the current behavior?
I'm not able to require a path using that contains a variable.
If the current behavior is a bug, please provide the steps to reproduce.
Here a code example.
If I do this works fine:
var img = require('/Users/username/folder/imgs/img_name.png');
, but if I use this:
var tmpPath = '/Users/username/folder/';
var img = require(tmpPath+'/imgs/img_name.png');
I got

Uncaught Error: Cannot find module "."

What is the expected behavior?
I expect that using a variable path (that comes from app.getPath() or similar) instead of hardcoded path works in the same way.
If this is a feature request, what is motivation or use case for changing the behavior?
NA
Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.
I'm using:

OSX 10.13.3
webpack 3.11.0
electron 1.7.9

And this is my webpack.dev.config.js:
{
const webpack = require('webpack');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { spawn } = require('child_process');
const redis = require('redis')

// Config directories
const SRC_DIR = path.resolve(__dirname, 'src');
const OUTPUT_DIR = path.resolve(__dirname, 'dist');

// Any directories you will be adding code/files into, need to be added to this array so webpack will pick them up
const defaultInclude = [SRC_DIR];

module.exports = {
  entry: SRC_DIR + '/index.js',
  output: {
    path: OUTPUT_DIR,
    publicPath: '/',
    filename: 'bundle.js'
  },
  resolve: {
    alias: {
      'hiredis': path.join(__dirname, 'aliases/hiredis.js')
    }
  },
  module: {
    rules: [
      {
        test: /\.css$/,
        include: /node_modules/,
        loaders: ['style-loader', 'css-loader']
      },
      {
        test: /\.css$/,
        use: [{ loader: 'style-loader' },
              { loader: 'css-loader' }],
        include: defaultInclude
      },
      {
        test: /\.jsx?$/,
        use: [{ loader: 'babel-loader' }],
        include: defaultInclude
      },
      {
        test: /\.(jpe?g|png|gif)$/,
        use: [{ loader: 'file-loader?name=img/[name]__[hash:base64:5].[ext]' }],
        include: defaultInclude
      },
      {
        test: /\.(eot|svg|ttf|woff|woff2)$/,
        use: [{ loader: 'file-loader?name=font/[name]__[hash:base64:5].[ext]' }],
        include: defaultInclude
      }
"webpack.dev.config.js" 81L, 2061C

Thanks
Paolo

webpack does only support simple dynamic dependencies. It's a static bundler and all files need to be able to be determined while compiling. Using absolute paths is also strongly dis-encouraged. Just use static relative paths: require("./imgs/img_name.png")


Dark Discord theme covers visualizer

I have installed the plugin and I see the executable running, but it doesn't seem to be working. I am running Windows 11 Beta (Maybe related?).
Edit: It is a theme problem and Dark Discord causes the visualizer to be covered.

Open your console, by pressing ctrl + I, then disable my plugin and re-enable it.
Take a screenshot of the output and send it here please.

I see now, one of my themes covers the visualizer. I turned off all themes and it appears properly now. Gotta check what theme it is.

Dark discord is the culprit.

Sorry for my late response. I totally forgot this...
You can fix that by applying a custom css rule:
#pspectrum-visualizer { z-index: 0 !important; }

This is not really a bug as I can't add support for every custom theme.


[compiler] introduce python rewrite pattern

sync from internal

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


ex8_3d_gis_content_generation.ipynb: PRT generation

I don't have permission to reach the RPK used in the example.
rpk = gis.content.get('2c31f077021b495cbfe4097227fdd78e')
Can all data used in the example be made publicly accessible.

Hello,
Thanks for the comment. It should be fixed now.
The Zurich Parks parcels Feature Layer ID has been changed in my last commit. You might want to checkout the example from the last master branch state.

We assume this is fixed - please reopen otherwise!


rough in group self service proposal

See the following thread for background:
https://lists.apache.org/list.html?infrastructure@apache.org:lte=1M:make groups self service
Details:

add owner to list of hudson apps attrs, and grant owners write access to
hudson apps.  (leaving hudson-admin and pmc-chairs in place for now).

add ou=auth permissions, modelled after parent (ou=groups) with the following
changes: members of the group have write permissions, and pmc-chairs
are not listed.

add owner to list of ou=groups attributes, and grand owners write access
to groups.  (leaving pmc-chairs in place for now).

change db-jdo definition in asf-authorization from an inline list to
a reference to LDAP.

Committed: https://github.com/apache/infrastructure-puppet/commit/f76aad5ab67480414c67136120cd9bfd01cb9b56 and https://github.com/apache/infrastructure-puppet/commit/1b32a70baab832a64c806ed991ed7a05db3fe792


Markdown syntax mistakes in CONTRIBUTING.md

https://github.com/googlesamples/android-architecture-components/blob/master/CONTRIBUTING.md has incorrect syntax for links, for example

you'll need to sign an [individual CLA] (https://cla.developers.google.com).

I would make a PR, but I see a queue of old unhandled ones.

Feel free to do a PR for the CONTRIBUTING.md file.


Unify Log Messages

To properly allow the use of APM to monitor the application the log messages should follow a unified format. This includes error messages regarding the models or devices.
Research if there is a way to set a format for these log messages or capture them and pipe them through the flask logging that is used everywhere else

Possible approach shown here


⚠ GitLab Server has degraded performance

In b6fb321, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 6934 ms

Resolved: GitLab Server performance has improved in 27518ea.


feat: create sentry release on every prod release

Summary by CodeRabbit

New Features

Enhanced deployment process with Sentry release management integration for both production and staging environments.
Automated creation of Sentry releases linked to specific deployments, improving error tracking and monitoring capabilities.

Sentry release test looking good ✅
https://fyle-technologies-private-limi.sentry.io/releases/ed0d44c26e5dff40a968b551d931931cfb837870/?project=4507616626933760


Add async keyword for signAndSendTransaction

Description
This small change is needed because signAndSendTransaction is an async function for all wallet types.
One of the reasons this is needed is the fact that the code is running synchronously for this function and the .then or .catch in dApps gets ignored when signAndSendTransaction is called.

This change is required because if signAndSendTransaction throws or returns anything it just shows in console but it does not get returned to the dApp.

After this change we can catch and show the error to users:

Hi, @rubenmarcus we need to make this small fix, apologies for not noticing it earlier today.

LGTM!

Hi, @rubenmarcus we need to make this small fix, apologies for not noticing it earlier today.

approved!


⚠ File access (beta) has degraded performance

In 41071c4, File access (beta) (https://beta.fyle.uk/file/fish) experienced degraded performance:

HTTP code: 200
Response time: 3214 ms

Resolved: File access (beta) performance has improved in 6544dd0.


Localization for Blazor-Wasm

By default, .NET WebAssembly sets the culture using the user's language preference. See https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/languages
Application developers can optionally configure the application culture by setting CultureInfo.DefaultThreadCurrentCulture \ CultureInfo.DefaultThreadCurrentUICulture as part of their Program.MainAsync.
To minimize network costs, only satellite assemblies for the selected culture are downloaded.
Sample app with culture picker: https://github.com/pranavkm/LocSample

cc @guardrex

Moved to https://github.com/dotnet/AspNetCore.Docs/issues/17513.


[eyehandcal] Pytest for CLI script

Description
Add testcase for collect_data_and_cal.py using (compressed) realworld user data.
both world camera and wrist camera cases are added
Necessary refactor was done to expose main() and scripts.
Fixes # (issue)
Type of change
Please check the options that are relevant.

[ ] Bug fix (non-breaking change that fixes an issue)
[ ] Proposes a change (non-breaking change that isn't necessarily a bug)
[ ] Refactor
[ ] New feature (non-breaking change that adds a new functionality)
[ ] Breaking change (fix or feature that would break some existing functionality downstream)
[X] This is a unit test
[ ] Documentation only change
[ ] Datasets Release
[ ] Models Release

Type of requested review

[ ] I want a thorough review of the implementation.
[ ] I want a high level review.
[ ] I want a deep design review.

Before and After
If this PR introduces a change or fixes a bug, please add before and after screenshots (if this is causes a UX change) or before and after examples(this could be plain text, videos etc ) to demonstrate the change.
If this PR introduces a new feature, please also add examples or screenshots demonstrating the feature.
Testing
Please describe the tests that you ran to verify your changes and how we can reproduce.
Checklist:

[ ] I have performed manual end-to-end testing of the feature in my environment.
[ ] I have added Docstrings and comments to the code.
[ ] I have made changes to existing documentation where needed.
[ ] I have added tests that show that the PR is functional.
[ ] New and existing unit tests pass locally with my changes.
[ ] I have added relevant collaborators to review the PR before merge.
[ ] [Polymetis only] I ran on hardware (1) all scripts in tests/scripts, (2) asv benchmarks.

Content merged into #1113

Codecov Report

Merging #1114 (ac6baa2) into 0wu/wristcam (54bee5a) will decrease coverage by 0.07%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##           0wu/wristcam    #1114      +/-   ##
================================================
- Coverage         34.20%   34.13%   -0.08%
================================================
  Files               344      343       -1
  Lines             33661    33408     -253
================================================
- Hits              11515    11405     -110
+ Misses            22146    22003     -143

Impacted Files
Coverage Δ

lowlevel/minecraft/pyworld/physical_interfaces.py
88.18% <0.00%> (-2.37%)
:arrow_down:

interpreter/craftassist/tasks.py
75.54% <0.00%> (-0.37%)
:arrow_down:

agents/droidlet_agent.py

agents/_agent.py
51.77% <0.00%> (+10.27%)
:arrow_up:


Add key:value representation of graph and converters for it

Any graph can be represented as following structure
[node1,node2,weight1],
[node3,node5,weight2],
...

Add converters for this things

Well, not any graph can be represented in such a way. You forgetting the fact that node itself can store weight too, but it makes sense to create converters for something like this:
[weight0, weight1,weight2,weight3...]
[nodeId,nodeId,weight],
[nodeId,nodeId,weight]
...

Where first array is weights for each node with increasing index. weight0 is for node0, weight1 for node1 and so on.
And next values is nodes Id of edges where first node is parent, second is child, and third is weight between thems.
This representation will cover most of use cases.


Support multiple GitOps sync APIs

Right now the kpt CLI and backstage UI plugin support creating and showing the status of package-level RootSyncs for kpt-config-sync. It would be useful to also support RepoSync, ArgoCD Application, and FluxCD's resource types also, and extra cool to be able to handle repo-level syncs in addition to package-level syncs. That's a lot of different sync approaches, so we'd probably want at least a code-level abstraction, and possibly some API links or breadcrumbs.

Related to #3253


looking forward to meeting the coding

（Smile）

Hi, I uploaded the code for the Image-Net based experiments. Soon, I will also upload the code for the MiniImageNet based experiments.

Hi, I uploaded the code for the Image-Net based experiments. Soon, I will also upload the code for the MiniImageNet based experiments.

Thanks a lot！


Are instances guaranteed to be terminated?

What happens if a workflow is cancelled, or GitHub goes down?
The action only uses plain RunInstances call, so launched instances will never get terminated if the stop instance step fails to run?
Hashicorp packer has similar issues because it also uses RunInstances.
https://binx.io/blog/2020/03/27/how-to-terminate-packer-instances-on-aws/

@vroad, thank you for your feedback! That's a very good question!

What happens if a workflow is canceled

The GitHub Actions syntax provides the possibility to run the job even if the previous jobs failed or the entire run was canceled. This is a guarantee that the runner termination job will always be run in such cases. See more details in PR #9.

or GitHub goes down

The action only uses plain RunInstances call, so launched instances will never get terminated if the stop instance step fails to run?

Yes, you're right. I have an idea to use "idle timeout" for issue #4. It should resolve this problem as well.

I close the issue as the biggest part of it, which is possible to fix in the current implementation, was fixed in PRs #7 and #10.
The rest will be covered in issue #4.
@vroad thank you for bringing up this topic!

I close the issue as the biggest part of it, which is possible to fix in the current implementation, was fixed in PRs #7 and #10.
The rest will be covered in issue #4.
@vroad thank you for bringing up this topic!


Optimize consecutive declarations

var a = 10; var b = 20;  ==>  var a=10,b=20;

var a=10; var b=a; => var a=10,b=a;. Is that case safe also? I.e. is the order of initialisation defined on all implementations one might reasonably care about?


Article #3 - Authentication/Internal API

Cover Internal API and authentication.  Still determining strategy

New strategy - Pocketbase for auth/internal API combo