Ansible and inserted underscores in extravars

Bug Report
What did you do?
I created a cr with, in the spec the "create_k8s_namespace" key
What did you expect to see?
I expect to see "create_k8s_namespace" as an extravars.
Confirmed reading /tmp/ansible-operator/runner/XYZ/v1alpha1/ASD/default/test-2/env/extravars
What did you see instead? Under which circumstances?
I see "create_k_8_s_namespace" (with inserted underscores)
Environment

operator-sdk version: 1.14.0

Kubernetes version information: v1.15.4-gke.22

Kubernetes cluster kind: gke

Are you writing your operator in ansible, helm, or go?
ansible

HI @johnnyrun,
Could you provide step by step all that we need to reproduce this scenario?
Something as for example:

Create a project following the ansible getting started ( memcached )
Then update the file X with the following code:
Then perform N
Then, check Y

Also, could you please add the logs/output and how you are checking it and where.
Really thank you for your collaboration and attention.

Create the operator using cli
$  operator-sdk version
operator-sdk version: "v0.14.0", commit: "4fb185b9d45682473b4951c9788f845ba2fa5b12", go version: "go1.13.6 darwin/amd64"
$ operator-sdk new bugtest-operator --api-version=johnnyrun.github.com/v1alpha1 --kind=Bugtest --type=ansible
$ cd bugtest-operator

setup a spec key/value changing the default "size" param
$ sed -i s/size/size_k8s_bugtest/  deploy/crds/johnnyrun.github.com_v1alpha1_bugtest_cr.yaml

setup a custom playbook, copy inside the image and setup watches.yaml
#main playbook
$ cat dumpvar.yaml
---
- hosts: localhost
  tasks:
    - name: debug size_k8s_bugtest string
      debug: var=size_k8s_bugtest
    - name: debug size_k_8_s_bugtest string
      debug: var=size_k_8_s_bugtest

#copy this playbook inside the image
$ cat build/Dockerfile
FROM quay.io/operator-framework/ansible-operator:v0.14.0

COPY watches.yaml ${HOME}/watches.yaml

COPY dumpvar.yaml /opt/ansible/

# watches refers to this playbook
$ cat watches.yaml
---
- version: v1alpha1
  group: johnnyrun.github.com
  kind: Bugtest
  playbook: /opt/ansible/dumpvar.yaml

build:
$operator-sdk build removeme
create crd and cr in the cluster
$ kubectl apply -f deploy/crds
run locally but inside docker, putting the kubernetes config inside the container:
docker run -ti --rm -e OPERATOR_NAME=bugtest-operator -e KUBECONFIG=/tmp/config -v /tmp/config:/tmp/config removeme
{"level":"info","ts":1578845585.5585523,"logger":"cmd","msg":"Go Version: go1.13.6"}
{"level":"info","ts":1578845585.5589025,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":1578845585.559011,"logger":"cmd","msg":"Version of operator-sdk: v0.14.0"}
{"level":"info","ts":1578845585.5591285,"logger":"cmd","msg":"WATCH_NAMESPACE environment variable not set. This operator is watching all namespaces.","Namespace":""}
{"level":"info","ts":1578845586.3889246,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":"<IP_ADDRESS>:8383"}
{"level":"info","ts":1578845586.390343,"logger":"watches","msg":"Environment variable not set; using default value","envVar":"WORKER_BUGTEST_JOHNNYRUN_GITHUB_COM","default":1}
{"level":"info","ts":1578845586.390622,"logger":"watches","msg":"Environment variable not set; using default value","envVar":"ANSIBLE_VERBOSITY_BUGTEST_JOHNNYRUN_GITHUB_COM","default":2}
{"level":"info","ts":1578845586.3907392,"logger":"ansible-controller","msg":"Watching resource","Options.Group":"johnnyrun.github.com","Options.Version":"v1alpha1","Options.Kind":"Bugtest"}
{"level":"info","ts":1578845586.3913076,"logger":"leader","msg":"Trying to become the leader."}
{"level":"info","ts":1578845586.3916688,"logger":"leader","msg":"Skipping leader election; not running in a cluster."}
{"level":"info","ts":1578845587.553924,"logger":"metrics","msg":"Skipping metrics Service creation; not running in a cluster."}
{"level":"info","ts":1578845587.5560038,"logger":"proxy","msg":"Starting to serve","Address":"<IP_ADDRESS>:8888"}
{"level":"info","ts":1578845587.5565903,"logger":"controller-runtime.manager","msg":"starting metrics server","path":"/metrics"}
{"level":"info","ts":1578845587.5569623,"logger":"controller-runtime.controller","msg":"Starting EventSource","controller":"bugtest-controller","source":"kind source: johnnyrun.github.com/v1alpha1, Kind=Bugtest"}
{"level":"info","ts":1578845587.6589544,"logger":"controller-runtime.controller","msg":"Starting Controller","controller":"bugtest-controller"}
{"level":"info","ts":1578845587.659084,"logger":"controller-runtime.controller","msg":"Starting workers","controller":"bugtest-controller","worker count":1}
{"level":"info","ts":1578845590.506479,"logger":"logging_event_handler","msg":"[playbook task]","name":"example-bugtest","namespace":"default","gvk":"johnnyrun.github.com/v1alpha1, Kind=Bugtest","event_type":"playbook_on_task_start","job":"6129484611666145821","EventData.Name":"Gathering Facts"}

--------------------------- Ansible Task StdOut -------------------------------

TASK [Gathering Facts] *********************************************************
task path: /opt/ansible/dumpvar.yaml:2

-------------------------------------------------------------------------------
{"level":"info","ts":1578845592.3572443,"logger":"logging_event_handler","msg":"[playbook debug]","name":"example-bugtest","namespace":"default","gvk":"johnnyrun.github.com/v1alpha1, Kind=Bugtest","event_type":"runner_on_ok","job":"6129484611666145821","EventData.TaskArgs":""}

--------------------------- Ansible Task StdOut -------------------------------

 TASK [debug size_k8s_bugtest string] ********************************
ok: [localhost] => {
    "size_k8s_bugtest": "VARIABLE IS NOT DEFINED!: 'size_k8s_bugtest' is undefined"
}

-------------------------------------------------------------------------------
{"level":"info","ts":1578845592.397763,"logger":"logging_event_handler","msg":"[playbook debug]","name":"example-bugtest","namespace":"default","gvk":"johnnyrun.github.com/v1alpha1, Kind=Bugtest","event_type":"runner_on_ok","job":"6129484611666145821","EventData.TaskArgs":""}

--------------------------- Ansible Task StdOut -------------------------------

 TASK [debug size_k_8_s_bugtest string] ********************************
ok: [localhost] => {
    "size_k_8_s_bugtest": 3
}

-------------------------------------------------------------------------------

debug extravars generated file (look at the end of the line pls)
$ docker exec -ti admiring_lewin cat  /tmp/ansible-operator/runner/johnnyrun.github.com/v1alpha1/Bugtest/default/example-bugtest/env/extravars
{"_johnnyrun_github_com_bugtest":{"apiVersion":"johnnyrun.github.com/v1alpha1","kind":"Bugtest","metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"johnnyrun.github.com/v1alpha1\",\"kind\":\"Bugtest\",\"metadata\":{\"annotations\":{},\"name\":\"example-bugtest\",\"namespace\":\"default\"},\"spec\":{\"size_k8s_bugtest\":3}}\n"},"creationTimestamp":"2020-01-12T16:10:20Z","generation":1,"name":"example-bugtest","namespace":"default","resourceVersion":"1081259","selfLink":"/apis/johnnyrun.github.com/v1alpha1/namespaces/default/bugtests/example-bugtest/status","uid":"3fe65202-c13f-4280-823a-463152433792"},"spec":{"size_k8s_bugtest":3},"status":{"conditions":[{"lastTransitionTime":"2020-01-12T16:10:41Z","message":"Running reconciliation","reason":"Running","status":"True","type":"Running"}]}},"_johnnyrun_github_com_bugtest_spec":{"size_k8s_bugtest":3},"meta":{"name":"example-bugtest","namespace":"default"},"size_k_8_s_bugtest":3}

The same using your vanilla repo ansible-memcached-operator and adding only the spec.
git clone https://github.com/camilamacedo86/ansible-memcached-operator
cd ansible-memcached-operator
sed -i s/size/test_k8s_size/ deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
operator-sdk build removeme
kubectl apply -f deploy/crds
docker run -ti --rm -e OPERATOR_NAME=ansible-memcached-operator -e KUBECONFIG=/tmp/config -v /tmp/config:/tmp/config removeme

docker exec affectionate_lederberg cat /tmp/ansible-operator/runner/cache.example.com/v1alpha1/Memcached/default/example-memcached/env/extravars |jq '.'
{
  "_cache_example_com_memcached": {
    "apiVersion": "cache.example.com/v1alpha1",
    "kind": "Memcached",
    "metadata": {
      "annotations": {
        "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"cache.example.com/v1alpha1\",\"kind\":\"Memcached\",\"metadata\":{\"annotations\":{},\"name\":\"example-memcached\",\"namespace\":\"default\"},\"spec\":{\"test_k8s_size\":3}}\n"
      },
      "creationTimestamp": "2020-01-12T16:36:57Z",
      "generation": 1,
      "name": "example-memcached",
      "namespace": "default",
      "resourceVersion": "1091611",
      "selfLink": "/apis/cache.example.com/v1alpha1/namespaces/default/memcacheds/example-memcached/status",
      "uid": "74abb108-c45e-412c-9b4a-82182ba75cab"
    },
    "spec": {
      "test_k8s_size": 3
    },
    "status": {
      "conditions": [
        {
          "lastTransitionTime": "2020-01-12T16:37:23Z",
          "message": "Running reconciliation",
          "reason": "Running",
          "status": "True",
          "type": "Running"
        }
      ]
    }
  },
  "_cache_example_com_memcached_spec": {
    "test_k8s_size": 3
  },
  "meta": {
    "name": "example-memcached",
    "namespace": "default"
  },
  "test_k_8_s_size": 3
}

https://github.com/operator-framework/operator-sdk/blob/92d78a2c25f0edbe039c4906a88fbb38c022018c/pkg/ansible/runner/runner.go#L287
there is a call to mapToSnake, that go to ToSnake() and finally to addWordBoundariesToNumbers(), that intentionally do the conversion:
https://github.com/operator-framework/operator-sdk/blob/92d78a2c25f0edbe039c4906a88fbb38c022018c/pkg/ansible/paramconv/paramconv.go#L75

Thank you @johnnyrun for filing this. We've been banging our heads for days now trying to understand why variable resolution didn't work in our ansible operator where we used names like: db2_port.
The confusing/surprising part of the current behavior is that it is not performing traditional conversion to snake case (which is not supposed to process numbers in the converted names).
The expected behavior should be:
a) remove addition of '_' characters around numbers
OR
b) document the conversion behavior for ansible operator

sorry @asmacdo I lost your reply.
One plus  of the operator-sdk in flavour ansible is that you can use existing playbook in k8s. But in this case it is not possible due to I need to modify it.
example: want to use kubespray inside ansible-sdk? At the moment you can't without forking kubespray.
example:
https://github.com/kubernetes-sigs/kubespray/blob/master/inventory/sample/group_vars/k8s-cluster/k8s-cluster.yml#L170

@dubauski Thanks.
At the moment I wrap the role I need to run in a playbook that begins with:
 - hosts: localhost
    vars:
      k8s_namespace: "{{ k_8_s_namespace }}"

In order to workaround it.
@asmacdo says this is the correct behavior.
I don't agree..
I'll fork later but for the moment I use this workaround.

@johnnyrun, see #1770. I had the same problem this morning and was able to get the unaltered spec of my CR using the _<group_name>_<kind>_spec variable that is exposed to my Ansible playbook through the operator.

@johnnyrun, see #1770 (specifically #1770 (comment)). I had the same problem this morning and was able to get the unaltered spec of my CR using the _<group_name>_<kind>_spec variable that is exposed to my Ansible playbook through the operator.

Thank you @jValdron for pointing out the hidden variable that can provide original values. This may prove helpful.

I could reproduce the scenario with 0.16.0 SDK version on top of Ansible Memcached Sample by performing the following changes

Update the CR:

apiVersion: cache.example.com/v1alpha1
kind: Memcached
metadata:
  name: example-memcached
spec:
  # Add fields here
  size: 3
  size_k8s_bugtest: test1
  size_k_8_s_bugtest: test2

Add the tasks to debug their values:

---
# tasks file for Memcached
- name: start memcached
  k8s:
...

- name: debug size_k8s_bugtest string
  debug: var=size_k8s_bugtest
- name: debug size_k_8_s_bugtest string
  debug: var=size_k_8_s_bugtest

Running make install and checking its result:

TASK [memcached : debug size_k8s_bugtest string] *******************************
task path: /opt/ansible/roles/memcached/tasks/main.yml:33
ok: [localhost] => {
    "size_k8s_bugtest": "VARIABLE IS NOT DEFINED!: 'size_k8s_bugtest' is undefined"
}

TASK [memcached : debug size_k_8_s_bugtest string] *****************************
task path: /opt/ansible/roles/memcached/tasks/main.yml:35
ok: [localhost] => {
    "size_k_8_s_bugtest": "test1"
}
META: ran handlers
META: ran handlers


Feature/char filter

Closes: #5

Codecov Report

Merging #44 into master will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #44   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         4
  Lines          107       108    +1
=========================================
+ Hits           107       108    +1

Impacted Files
Coverage Δ

django_property_filter/filters.py
100.00% <100.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 ea545dc...450534d. Read the comment docs.


Waiting on Jest PR to enable functionality

Describe the bug
Created an issue and PR for new Jest-Runner functionality required for this project.

Hi @ryparker
I am one of the allure developers. We are interested in test filtration for jest. You wrote you have another approach instead of the current solution (
https://github.com/facebook/jest/issues/10288#issuecomment-668151742)
Can you give us your idea?


Fix broken geocoding test

Overview
When geocoding a facility, if the country code returned by Google Maps
is different from the country code provided by the user, we throw a
ValueError.
We’re testing this code with an address that previously was getting
mapped by Google Maps to China, and testing that we threw an error
because the user had entered it as India. Google is now returning that
address as being in India, which means that a value error was
(correctly, but breaking the test) not raised.
The test now mocks the API response so that we are testing only our
own code, and not third-party responses.
Connects #1545
Demo
Broken test:

Passing tests:

Notes
Only one of the three geocoding tests were breaking, but I switched to the mock for all three.
Testing Instructions

Run the tests and confirm they are all passing.
Visually confirm the mocked responses are reasonable given the tests' purposes.

Checklist

[ ] fixup! commits have been squashed
[ ] CI passes after rebase
[ ] CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines

Thank you for reviewing!


Player CP: New Player Bug

The player cp has a bug with new players. It attempts to load their history, and since there is no history it crashes with this error:
Fatal error: Uncaught exception 'Exception' with message 'Entry for Test User in not found' in /home/pauperkr/public_html/gatherling/models/Entry.php:36 Stack trace: #0 /home/pauperkr/public_html/gatherling/player.php(189): Entry->__construct(NULL, 'Hoju_ca') #1 /home/pauperkr/public_html/gatherling/player.php(152): print_recentDeckTable() #2 /home/pauperkr/public_html/gatherling/player.php(76): print_mainPlayerCP(Object(Player)) #3 {main} thrown in/home/pauperkr/public_html/gatherling/models/Entry.phpon line 36
This is a problem since players cannot register themselves to events. Once a host registers the new player to an event, the player then has a history and the new player cp will work.

I just uploaded the commit for the fix for this. Will send it to you as soon as you merge the rest. I highly suggest you upload this repair directly to Gatherling on your site to take care of this ongoing issue. It is a real pain during registration for new players to always need assistance.
You can just replace the following function in player.php if you like:
function print_recentDeckTable() {
global $player;
echo "\n";
echo "RECENT DECKS\n";
echo "";
echo "";
echo "(see all)\n";
$event = $player->getLastEventPlayed();
if (is_null($event))
{
echo "No Decks Found!\n";
}
else
{
$entry = new Entry($event->name, $player->name);
if ($entry->deck)
{
$decks = $player->getRecentDecks(6);
}
else
{
$decks = $player->getRecentDecks(5);
}
if (!$entry->deck) {
$cell1 = medalImgStr($entry->medal);
$cell4 = $entry->recordString();
echo "$cell1\n";
echo "" . $entry->createDeckLink() . "";
echo "threadurl}">{$event->name}\n";
echo "$cell4\n";
}
foreach ($decks as $deck) {
$cell1 = medalImgStr($deck->medal);
$cell4 = $deck->recordString();
echo "$cell1\n";
echo "" . $deck->linkTo() . "\n";
echo "getEvent()->threadurl}">{$deck->eventname}\n";
echo "$cell4\n";
}
}
echo "\n";
}

I just created the commit to repair this. Will send it to you as soon as you merge the rest.

I've confirmed that the fix in a3b5c3ac (merged today) fixes this issue in testing.


Unable to build on Arch (missing package?)

I was curious to try this and I wanted to try to build for HIPBLAS on Arch (hopefully, otherwise I'll have to do Vulkan.)  Unfortunately, the instructions assume Ubuntu is the only Linux distribution.  I've tried to figure out the equivalent packages and I think most of them may already be installed on my system at this point even, but it's hard to be sure because it doesn't use the same package system.
Unfortunately, I'm currently getting hung up on the initial cmake configuration.  It says:
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindOpenSSL.cmake:691 (find_package_handle_standard_args)
  CMakeLists.txt:33 (find_package)

Now I've tried OPENSSL_ROOT_DIR=/usr/include/openssl (which does have a crypto.h file if that's what it wants) and I've tried /usr/lib where the .so files are but that doesn't work.  I'm not really sure exactly what it's looking for here.
EDIT:  Despite the implication of the error that it wanted OPENSSL_ROOT_DIR= it also wanted OPENSSL_CRYPTO_LIBRARY=.  Including that has gotten the build to go further along, but after it says configuration done it then says:
CMake Error in CMakeLists.txt:
  Imported target "OpenSSL::Crypto" includes non-existent path

    "/media/2tbssd2/ml/build/sd.cpp.gui.wx/build/=/usr/include/openssl"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

Maybe I'm not giving it the directory it wants, but it didn't accept either of those directories, so I'm not really sure what to give it then.
As you might expect, building fails near the end:
[ 95%] Linking CXX executable stablediffusiongui
/usr/bin/ld: error: /usr/include/openssl: read: Is a directory
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/stablediffusiongui.dir/build.make:311: stablediffusiongui] Error 1
make[1]: *** [CMakeFiles/Makefile2:592: CMakeFiles/stablediffusiongui.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

I don't really know cmake well enough to know what exactly to do with it here.
If anyone has built on Arch, I'd love to know what the equivalent packages it wants installed and any other configuration changes it may need.

@Nazosan
I booted up an arch (i never used it before).
Please pull the git repository again and delete everything from the build dir, and follow these steps (with fresh start):
git clone https://github.com/fszontagh/sd.cpp.gui.wx.git
because i pushed some commits to fix this.
To install the deps:
pacman -S base-devel cmake gcc git ninja pkgconfig exiv2 gtk3 libsecret webkit2gtk libnotify sdl pangomm
maybe the base-devel is not required to it, i don't known
Create the build folder:
cd sd.cpp.gui.wx.git
mkdir build
cd build

Configure the project: (of course you need to specify your own SD_* parameters to build it)
cmake .. -DCMAKE_BUILD_TYPE=Release -DSD_AVX=ON -G Ninja
Generate language files:
cmake --build . --target po-compile

added a wiki page for this howto

Ok, I rebuilt using those instructions.  I think the HIPBLAS one worked.  Vulkan didn't.  It said it couldn't find vulkan-shaders-gen.  I have most of the Vulkan packages installed including headers and tools, so I'm not sure what it needs for that.  HIPBLAS compiled so I would rather use that anyway, just curious what package Vulkan wants for that.
Minor thing, but it didn't move stablediffusiongui_diffuser into the root of the build directory.  I was afraid it didn't build it at all for a moment, but I found it in extprocess.
When I ran it, it said it was using the AVX file (I built with a number of options in place just in case to try different things.)  I tried to do a gen and it just said "An error occurred while starting the generation process" in a message box and the log at the bottom says "Generation error: External process stopped."  I tried removing all but the hipblas file, but still got that -- including it saying it was using the AVX library (even though it wasn't there anymore after I moved it...)  I'll try rebuilding without the AVX/AVX2 libraries -- with only HIPBLAS -- when I have time.
BTW, the new instructions on either page of the wiki don't include all the variables (like -DSD_HIPBLAS or -DSD_VULKAN, etc.)  I had to look at the changelog of the readme file even to remember what the exact variable to use HIP was.

Ok, I rebuilt using those instructions. I think the HIPBLAS one worked. Vulkan didn't. It said it couldn't find vulkan-shaders-gen. I have most of the Vulkan packages installed including headers and tools, so I'm not sure what it needs for that. HIPBLAS compiled so I would rather use that anyway, just curious what package Vulkan wants for that.

Currently in the GUI logic, only AMD, NVIDIA and CPU (with the 3 cpu features) exists. If the gui detects a nvidia card, then trying to load the _cuda shared lib. If detecting AMD GPU, then it trying to load the _hibplas shared lib. If none found, then it start looking for AVX512, AVX2 and lastly the AVX CPU features . (in this order how i wrote in it)
There is no other checks, if all shared libs failt to load, then the external process just simply resarting forever.
There is a log file in your app directory with more details:
$HOME/.stablediffusiongui/sd_ui_data/app.log
It is possible to compile the sd.cpp sources with vulkan separately, then rename the stable-diffusion.so to stable-diffusion_cuda.so or stable-diffusion_hipblas.so. Then the gui can be forced to search for a specific shared lib (for example launch the app with: stablediffusiongui -cuda). But i never tested it, and i not recommend this way.

When I ran it, it said it was using the AVX file (I built with a number of options in place just in case to try different things.) I tried to do a gen and it just said "An error occurred while starting the generation process" in a message box and the log at the bottom says "Generation error: External process stopped." I tried removing all but the hipblas file, but still got that -- including it saying it was using the AVX library (even though it wasn't there anymore after I moved it...) I'll try rebuilding without the AVX/AVX2 libraries -- with only HIPBLAS -- when I have time.

Maybe the GUI didn't find the shared libs.
Here is the relevant wiki page for the installation.
I think, it's easier if you generate an AppImage. The Linux "Release" version is expecting the binaries all installed in system-wide.

BTW, the new instructions on either page of the wiki don't include all the variables (like -DSD_HIPBLAS or -DSD_VULKAN, etc.) I had to look at the changelog of the readme file even to remember what the exact variable to use HIP was.

Some documentation is missing yet. But for cmake parameters, you can check out the workflow here. In this workflow all possible variations are presents.
Currently only these variants supported by the GUI:

SD_AVX
SD_AVX2
SD_AVX512
SD_CUBLAS
SD_HIPBLAS

Sadly, but i have no resources to test HIPBLAS and other backends on multiple platforms.

Shouldn't it try HIP before trying AVX2?
I found the log file, but it says nothing useful:
An error occurred when trying to start external process: /media/2tbssd2/ml/build/sd.cpp.gui.wx/build/stablediffusiongui_diffuser.
Please try again.
And later when I tried to do a gen:
Starting external process: /media/2tbssd2/ml/build/sd.cpp.gui.wx/build/stablediffusiongui_diffuser libstable-diffusion_avx2.so
Generation error: External process stopped
That is not a very useful log...
Are you saying the built libraries should be manually copied to /usr/lib instead of just in the same folder as the two binaries?  I may try an AppImage later, though I prefer a cleaner setup than the way those work.
Anyway, this is getting towards more generic troubleshooting, so in regards to the subject of the issue alone, the only thing left I'm uncertain about is what it wants for Vulkan to compile.  I have most of the Vulkan packages installed and games work, KoboldCPP can compile its own Vulkan backend fine, etc.  This is the only thing that fails when looking for "vulkan-shaders-gen."

Shouldn't it try HIP before trying AVX2?

Yes, but if no shared lib found, it will fail.

I found the log file, but it says nothing useful

Oh, yes, the logging is not perfect, but useful in some cases.
You can try to manually start the 'diffuser' prorcess:
/media/2tbssd2/ml/build/sd.cpp.gui.wx/build/stablediffusiongui_diffuser libstable-diffusion_avx2.so
But as i suspect, it can not find the libs.

Are you saying the built libraries should be manually copied to /usr/lib instead of just in the same folder as the two binaries? I may try an AppImage later, though I prefer a cleaner setup than the way those work.

Yes. (on windows these libs need to be placed into the same directory, on linux it must be placed into the system-wide directories).
This is the content of the ubuntu's cuda deb package (i think Arch and Ubuntu has similarities in these system paths):
$ dpkg -L libstablediffusion-cuda-b5f4932
/usr
/usr/lib
/usr/lib/libstable-diffusion_cuda.so

This is the stablediffusiongui deb package's content:
$ dpkg -L stablediffusiongui
/usr
/usr/bin
/usr/bin/stablediffusiongui
/usr/bin/stablediffusiongui_diffuser
/usr/share
/usr/share/applications
/usr/share/applications/stablediffusiongui.desktop
/usr/share/icons
/usr/share/icons/hicolor
/usr/share/icons/hicolor/256x256
/usr/share/icons/hicolor/256x256/apps
/usr/share/icons/hicolor/256x256/apps/stablediffusiongui.png
/usr/share/locale
/usr/share/locale/en
/usr/share/locale/en/LC_MESSAGES
/usr/share/locale/en/LC_MESSAGES/stablediffusiongui.mo
/usr/share/locale/hu
/usr/share/locale/hu/LC_MESSAGES
/usr/share/locale/hu/LC_MESSAGES/stablediffusiongui.mo

You don't need to recompile or reconfigure if you have success once with it. The AppImage uses the already compiled binaries, and just 'fusing' it into one.
Other method is the cmake's built-in install: (run in the build dir)
cmake --install . --config Release
But this command needs sudo. I never tested it.
This command is used to collect the files for building the AppImage:
COMMAND ${CMAKE_COMMAND} --install ${CMAKE_BINARY_DIR} --prefix ${CMAKE_BINARY_DIR}/AppImageSource/usr --config Release
This line is in the cmake/AppImage.cmake file

Anyway, this is getting towards more generic troubleshooting, so in regards to the subject of the issue alone, the only thing left I'm uncertain about is what it wants for Vulkan to compile. I have most of the Vulkan packages installed and games work, KoboldCPP can compile its own Vulkan backend fine, etc. This is the only thing that fails when looking for "vulkan-shaders-gen."

Today i made some new workflows at github. I tried to add the vulkan variant, but i got the same build error "vulkan-shaders-gen."as you mentioned. I think it's failing at the backend (ggml.cpp or the sd.cpp), i can't identify the exact problem. Maybe a next sd.cpp version will fix it. (As i see, on the sd.cpp workflow, there is problem with the HIPS now but vulkan works in the master branch :( ). As i know, some feature missing from the vulkan backend (not implemented and / or low performance), so may the HIPBLAS better. But i have no AMD card, i can't test it.
So, no vulkan support now.


Updated readme and gitignore

README.md: updated badges
.gitignore: added .coverage.txt, removed /target/

Accidentally branched from old master instead of main


incompatible Defaults for functions vs Struct Deserializers

the serialize and deserialize functions use different defaults than the DefaultOptions Struct. Specifically, the functions use a fixedint format, but DefaultOptions uses varint.
Confusingly, both the function documentation and the Struct documentation indicate that they use the default options.
I ran into this issue, because I am writing some code that needs to use serde::de::DeserializeSeed, which requires access to the Deserializer as a struct. However, the data may not be created with the struct, as most bincode usage seems to use the functions.
Steps to reproduce:
extern crate bincode;
extern crate serde;

#[test]
fn test_mix_fn_and_struct() {
    // example data
    let orig = ("abc", 1, 2, 3);

    // serialize using fn
    let encoded: Vec<u8> = bincode::serialize(&orig).unwrap();

    // deserialize using struct
    let opts = bincode::DefaultOptions::new();
    let mut deserializer = bincode::Deserializer::from_slice(&encoded, opts);
    let output = <_ as serde::Deserialize>::deserialize(&mut deserializer).unwrap();
    // fails
    assert_eq!(orig, output);
    // ---- test_mix_fn_and_struct stdout ----
    // thread 'test_mix_fn_and_struct' panicked at 'assertion failed: `(left == right)`
    // left: `("abc", 1, 2, 3)`,
    // right: `("\u{0}\u{0}\u{0}", 0, 0, 0)`', tests/default.rs:13:5
}

Yeah, I messed up the documentation on this one. The reason serialize and deserialize use fixedint is to maintain backwards compatibility with older versions of bincode. Closing this as a duplicate of #348


Here is a rough draft of a theme called Low Earth Orbit, or LEO.  I was motivated by the fact we have this Themes capability but nothing really beyond DND, Blank, and the Old Journal one I created a long time ago.  The Journal one is pretty niche, and has a some slightly complex CSS stuff, and I think it's sort of hard for a user to "customize" since it's so wrapped up in it's background page texture.
With LEO, I wanted to put a non-DND theme together that didn't rely on static/hosted images for background textures or page elements and was instead designed using CSS for as much of the total styling as possible.  And, ideally, stay away from very complex CSS, though I'm not sure I've accomplished that.  Hopefully I could create a decent looking theme that was simpler to customize with basically just colors and different border styles.
Low Earth Orbit as name comes from my original inspiration, pulp sci-fi book covers.  Lots of that yellow and red lettering, and basic solid or dotted lines.  It's a fairly tough source material because those books only had illustrated covers, and of course the actual pages are basically just text.  I've tried looking for similar "retro" pulpy sci-fi magazines but it's not super easy to find the insides of those.  But I've only really done web searches...I may stop at a couple stores near me that should have some physical copies in stock.
Ultimately, I may shift gears slightly towards a non-sci-fi pulp fiction theme...it's not a big jump, but should be more recognizable/generic.  Perhaps two themes, one built on the other?
Anyway, enough talk, let me know if you think there is anything here we want to move forward with, or changes, or if you have some source material that you think we should try to incorporate.  At this point, this is far from complete (Tables? Alternating pages?  h4 & h5?  Cover page?) so it's sort of a preview before I put more effort into it.
Screenshots:

I like this.

going to close this PR.  Might open a discussion about theme suggestions (the graphic part of that).


F-Droid inclusion

Hi @YTVanced
Since this app is Apache V2 licensed, are you considering the fact to add it to F-Droid? It could be useful for some of us.
You can find some documentation here.
Otherwise, if you don't want to work on the inclusion of this app by yourself, would it be ok for you if one of our packager takes care of this?

You can maintain it on fdroid if you wish, we update it using vanced manager anyhow.


Error in evaluating the ResidualBlock.

Hi all
I try to generate a map with LIO-LIVOX using HAP.
I ran my custom rosbag files, and it works well with this error.
I think memory leak is occurred due to this problem, but I do not have an idea to solve this problem
Any solutions?
Hello,
I'm trying to build a map with Livox-Horizon, but LIO-LIVOX doesn't work properly.
The terminal prompts the following error, has anyone encountered a similar error, or is there any solution?
Thank you all very much!
[ INFO] [1683814134.886824369]: Frame: 92

[ INFO] [1683814135.955633539]: Frame: 93

[ INFO] [1683814137.024720123]: Frame: 94

**************Start MAP Initialization!!!******************
WARNING: Logging before InitGoogleLogging() is written to STDERR
W0511 22:08:57.031163 24555 residual_block.cc:131]

Error in evaluating the ResidualBlock.

There are two possible reasons. Either the CostFunction did not evaluate and fill all
residual and jacobians that were requested or there was a non-finite value (nan/infinite)
generated during the or jacobian computation.

Residual Block size: 1 parameter blocks x 3 residuals

For each parameter block, the value of the parameters are printed in the first column
and the value of the jacobian under the corresponding residual. If a ParameterBlock was
held constant then the corresponding jacobian is printed as 'Not Computed'. If an entry
of the Jacobian/residual array was requested but was not written to by user code, it is
indicated by 'Uninitialized'. This is an error. Residuals or Jacobian values evaluating
to Inf or NaN is also an error.

Residuals:              nan          nan          nan

Parameter Block 0, size: 4

           1 |            0            0            0
           0 |            0        19.61            0
           0 |       -19.61            0            0
           0 |            0            0            0

E0511 22:08:57.031241 24555 trust_region_minimizer.cc:72] Terminating: Residual and Jacobian evaluation failed.
W0511 22:08:57.031497 24632 residual_block.cc:131]

Error in evaluating the ResidualBlock.

There are two possible reasons. Either the CostFunction did not evaluate and fill all
residual and jacobians that were requested or there was a non-finite value (nan/infinite)
generated during the or jacobian computation.

Residual Block size: 5 parameter blocks x 9 residuals

For each parameter block, the value of the parameters are printed in the first column
and the value of the jacobian under the corresponding residual. If a ParameterBlock was
held constant then the corresponding jacobian is printed as 'Not Computed'. If an entry
of the Jacobian/residual array was requested but was not written to by user code, it is
indicated by 'Uninitialized'. This is an error. Residuals or Jacobian values evaluating
to Inf or NaN is also an error.

Residuals:             -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan

Parameter Block 0, size: 3

           0 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan
           0 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan
           0 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan

Parameter Block 1, size: 3

  0.00156916 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan
   0.0147306 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan
  -0.0786896 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan

Parameter Block 2, size: 3

  0.00156916 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan
   0.0147306 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan
  -0.0786896 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan

Parameter Block 3, size: 3

           0 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan
           0 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan
           0 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan

Parameter Block 4, size: 3

           0 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan
           0 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan
           0 |         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan         -nan

@QingKe-UP Have you solved it? I met the same question, even it appeared "-19.61" "-nan". But I have no idea to deal with this question. Looking forward to your reply.

@QingKe-UP Have you solved it? I met the same question, even it appeared "-19.61" "-nan". But I have no idea to deal with this question. Looking forward to your reply.

same problem happened to me, with -19.61 in my Parameter Block

@QingKe-UP Have you solved it? I met the same question, even it appeared "-19.61" "-nan". But I have no idea to deal with this question. Looking forward to your reply.

I finally solved this problem by using a package suitable for Ubuntu 20.04. This bag is mentioned in this question[https://github.com/Livox-SDK/LIO-Livox/issues/12]


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-26-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3395

Questions ?
Please refer to the Backport tool documentation


address comments in PR to upstream

See https://github.com/slsa-framework/slsa-github-generator/pull/3570
Summary
...
Testing Process
...
Checklist

[ ] Review the contributing guidelines
[ ] Add a reference to related issues in the PR description.
[ ] Update documentation if applicable.
[ ] Add unit tests if applicable.
[ ] Add changes to the CHANGELOG if applicable.

@jblebrun, could you take a look at my fixes to see if they're okay?


[SPARK-36782][CORE][FOLLOW-UP] Only handle shuffle block in separate thread pool

What changes were proposed in this pull request?

This's a follow-up of https://github.com/apache/spark/pull/34043. This PR proposes to only handle shuffle blocks in the separate thread pool and leave other blocks the same behavior as it is.
Why are the changes needed?

To avoid any potential overhead.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

Pass existing tests.

cc @f-thiele  @mridulm @gengliangwang

Test build #143535 has started for PR 34076 at commit dd32bc2.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48044/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48044/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/48044/

Merging to master/3.2

Test build #143535 has finished for PR 34076 at commit dd32bc2.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/143535/

Late LGTM, thanks for fixing this @Ngone51 !


Updated a pre-exisitng course with the updated course

CodeWithHarry started a new JS course on his YT channel, and this already existing link should be changed to the updated one.
What does this PR do?
Updated a pre-existing course
For resources
Course/Playlist: https://www.youtube.com/playlist?list=PLu0W_9lII9ahR1blWXxgSlL4y9iQBnLpR
Why is this valuable (or not)?
Sure is! Taught by one of the best YouTubers out there
How do we know it's really free?
It's on YouTube
For book lists, is it a book? For course lists, is it a course? etc.
Course/Playlist
Checklist:

[ ] Read our contributing guidelines.
[ ] Search for duplicates.
[ ] Include author(s) and platform where appropriate.
[ ] Put lists in alphabetical order, with correct spacing.
[ ] Add needed indications (PDF, access notes, under construction).
[ ] Used an informative name for this pull request.
Completed!

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

For some reason, it's not ordering it alphabetically, please have a look.

For some reason, it's not ordering it alphabetically, please have a look.

Done at 8476fd760dc1dbf0e388b601f2b92e2b064d4ab1


chore: roll clang 307486:308728

See upstream:
https://chromium-review.googlesource.com/c/chromium/src/+/582074
We don't need any of the other changes from that CL, because they're all
fuchsia- or iOS-only.
Ref electron/electron#13988

Well, this is unfortunate :(
The error seems really weird, too - it's like the system libstdc++ is actually somehow newer than what ships with this Clang roll?

The error seems to be fixed in https://chromium-review.googlesource.com/c/chromium/src/+/582976 , so using 308728-3 should be good for us.

Nice. @nornagon you want to try that roll with libcc before I try it with Electron itself?

Updated the patch to refer to 308728-3.

I'll wait on @deepak1556 to merge this when ready.

Does this need to go in first, and then the submodule on the Electron PR needs to be updated?

Yep, that's accurate.

Then I guess we need to make some sort of a final call on whether this is worth merging, both here and on Electron itself.


Parsed time after DST switch displayed with +1 hour than its current time.

Description of the Issue and Steps to Reproduce:
Parse and display the following timestring: "2018-03-25T19:00:00+01:00"
Note, this time is after the DST switch.
When I display this time with  a.format("HH:mm") I would expect. 19:00.
But it shows, 20:00.
Is there a way to print times in their current equivalent? (I suppose this issue is gone after next saturday) but will appear again over 6 months.
Please include the values of all variables used.
var a = moment("2018-03-25T19:00:00+01:00")
Environment:
58.0.2 (64-bit) Mozilla Firefox on Ubuntu
Ubuntu 16.04
Other information that may be helpful:
Location is amsterdam.
CET (Central European Time)
UTC/GMT +1 hour
If you are reporting an issue, please run the following code in the environment you are using and include the output:
console.log( (new Date()).toString())
console.log((new Date()).toLocaleString())
console.log( (new Date()).getTimezoneOffset())
console.log( navigator.userAgent)
console.log(moment.version)
Fri Mar 23 2018 16:11:32 GMT+0100 (CET)
23/03/2018, 16:11:32
-60
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0code:4:1
2.21.0
(bower installed)  "moment": "^2.17.0",

I think you might be looking for parseZone:
moment.parseZone("2018-03-25T19:00:00+01:00").format('HH:mm'); // 19:00
moment.parseZone("2018-03-25T19:00:00+02:00").format('HH:mm'); // 19:00
moment.parseZone("2018-03-25T19:00:00+03:00").format('HH:mm'); // 19:00


feat: add font-thai support

Description
Added support for Thai font. Along the way, I tried to add QEMU, to enable build for chromium. Will take a look later for docker manifest, to combine build 2 different docker file with different platform target and push on the same tag. But, haven't manage to do it using my own account. And, docker manifest seems experimental too.

Hi @amille44420 . I have split the push job into two (for chrome and chromium)

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


Avoid Areas?

Hi there, i am not quite sure wether i am right here to ask the question - i have also tried to ask in the google forum.
so if its wrong to ask here - please delete this.
So i just found this amazing project here. so i am trying to make a profile wich avoids certain areas - for example areas described in OSM as  "boundary=protected_area" Is there any way to achieve this functionality?
Thank you very much,
pcace

I tried a little (not really working Workaround, but maybe someone has an idea?
What i did is to generate a geojson file like this: https://overpass-turbo.eu/s/Vw4, exportet it and then importet it to the brouter web client as nogo area.
Problem 1: it then does not have a lower priority, it simply is literally a NOGO area.
Problem 2: it produces extremely large files and so it works only for very very small areas...
... so not really a solution... :(

[Please avoid cross-posting in multiple channels.]
Loading Nogos from  Overpass via GeoJSON file is what I would have suggested, there is no other way right now.

there is a weight setting in the dialog where you can set a cost factor for passing instead of fully blocking
yes, this approach is very limited, as it is passing all the data with every request to the server

There really should be a way to consider surroundings of ways (e.g. by polygon intersection) when building the routing data files and to add that information as artificial tags.

Closing, as the "Load no-go areas" feature is what we can offer for this right now, and further improvements would need to be made on the backend, see Consider surroundings ·  brouter#258.


add selected menu by default in url

add selected menu by default in url #

That is on the user to setup in his links.
Example:

About

Services

Contact

And the nav will pick up those hashes.


Enforce metadata.yaml validations

Test Evidence with varnish metadata.yaml
2022/04/28 14:07:24 impacted apps: map[]
=== RUN   TestThirdPartyApps/debian-10/varnish
=== PAUSE TestThirdPartyApps/debian-10/varnish
=== CONT  TestThirdPartyApps/debian-10/varnish
    third_party_apps_test.go:566: Test logs: /tmp/731947741/TestThirdPartyApps_debian-10_varnish
    third_party_apps_test.go:568: Instance Log: https://console.cloud.google.com/logs/viewer?resource=gce_instance%2Finstance_id%2F3255385600635136305&project=stackdriver-kubernetes-1337
2022/04/28 14:07:55 Attempt 1 of debian-10 test of varnish finished with err=could not validate contents of metadata.yaml: Key: 'IntegrationMetadata.Description' Error:Field validation for 'Description' failed on the 'required' tag
Key: 'IntegrationMetadata.ConfigurationOptions' Error:Field validation for 'ConfigurationOptions' failed on the 'required' tag
Key: 'IntegrationMetadata.SupportedAppVersion' Error:Field validation for 'SupportedAppVersion' failed on the 'required' tag, retryable=false
    third_party_apps_test.go:579: Non-retryable error: could not validate contents of metadata.yaml: Key: 'IntegrationMetadata.Description' Error:Field validation for 'Description' failed on the 'required' tag
        Key: 'IntegrationMetadata.ConfigurationOptions' Error:Field validation for 'ConfigurationOptions' failed on the 'required' tag
        Key: 'IntegrationMetadata.SupportedAppVersion' Error:Field validation for 'SupportedAppVersion' failed on the 'required' tag
--- FAIL: TestThirdPartyApps (0.02s)
    --- FAIL: TestThirdPartyApps/debian-10/varnish (55.26s)
FAIL
FAIL	command-line-arguments	55.568s
FAIL

--- PASS: TestThirdPartyApps (0.02s)
    --- PASS: TestThirdPartyApps/debian-10/memcached (224.33s)
    --- PASS: TestThirdPartyApps/debian-10/couchdb (231.05s)
    --- PASS: TestThirdPartyApps/debian-10/redis (236.20s)
    --- PASS: TestThirdPartyApps/debian-10/zookeeper (237.06s)
    --- PASS: TestThirdPartyApps/debian-10/varnish (244.09s)
    --- PASS: TestThirdPartyApps/debian-10/postgresql (244.97s)
    --- PASS: TestThirdPartyApps/debian-10/nginx (245.45s)
    --- PASS: TestThirdPartyApps/debian-10/mongodb (246.03s)
    --- PASS: TestThirdPartyApps/debian-10/apache (250.33s)
    --- PASS: TestThirdPartyApps/debian-10/mysql (265.32s)
    --- PASS: TestThirdPartyApps/debian-10/jvm (279.94s)
    --- PASS: TestThirdPartyApps/debian-10/wildfly (292.24s)
    --- PASS: TestThirdPartyApps/debian-10/elasticsearch (303.75s)
    --- PASS: TestThirdPartyApps/debian-10/kafka (305.05s)
    --- PASS: TestThirdPartyApps/debian-10/activemq (306.57s)
    --- PASS: TestThirdPartyApps/debian-10/cassandra (310.47s)
    --- PASS: TestThirdPartyApps/debian-10/hbase (317.51s)
    --- PASS: TestThirdPartyApps/debian-10/rabbitmq (333.42s)
    --- PASS: TestThirdPartyApps/debian-10/tomcat (351.01s)
    --- PASS: TestThirdPartyApps/debian-10/hadoop (357.17s)
    --- PASS: TestThirdPartyApps/debian-10/solr (1156.42s)

sophieyfang@sophieyfang:~/ops-agent/integration_test$ PROJECT="stackdriver-kubernetes-1337" GOOGLE_APPLICATION_CREDENTIALS="${HOME}/credentials.json" SCRIPTS_DIR=third_party_apps_data go run -tags=integration_test ./cmd/generate_expected_metrics
2022/04/28 18:17:35 Processing 4 metrics for postgresql...
2022/04/28 18:17:35 Processing 8 metrics for wildfly...
2022/04/28 18:17:35 Processing 8 metrics for hadoop...
2022/04/28 18:17:35 Processing 4 metrics for nginx...
2022/04/28 18:17:35 Processing 18 metrics for elasticsearch...
2022/04/28 18:17:35 Processing 51 metrics for hbase...
2022/04/28 18:17:35 Processing 16 metrics for jvm...
2022/04/28 18:17:35 Processing 11 metrics for mongodb...
2022/04/28 18:17:35 Processing 11 metrics for solr...
2022/04/28 18:17:35 Processing 11 metrics for varnish...
2022/04/28 18:17:35 Processing 11 metrics for activemq...
2022/04/28 18:17:35 Processing 16 metrics for cassandra...
2022/04/28 18:17:35 Processing 3 metrics for mssql...
2022/04/28 18:17:35 Processing 10 metrics for memcached...
2022/04/28 18:17:35 Processing 13 metrics for zookeeper...
2022/04/28 18:17:35 Processing 4 metrics for iis...
2022/04/28 18:17:35 Processing 8 metrics for couchdb...
2022/04/28 18:17:35 Processing 10 metrics for kafka...
2022/04/28 18:17:35 Processing 2 metrics for rabbitmq...
2022/04/28 18:17:35 Processing 24 metrics for redis...
2022/04/28 18:17:35 Processing 7 metrics for tomcat...
2022/04/28 18:17:35 Processing 5 metrics for apache...
2022/04/28 18:17:35 Processing 17 metrics for mysql...

Side question: Do we have any way to test that the validation does take effect? Just for future's sake. Not blocking this PR.

Great question: To test third_party_test.go, we can take out the part of parsing+validating into its own function then test that function. Now i test it manually by making obvious wrong stuff in the metadata.yaml file and expect the test to fail in the way i want it be..rlly not an ideal way.


Fixing typos in glossary.md

Fixing typos and change some expressions for better understanding

I saw some typos and some expressions a bit difficult to read so I decided to contribute a bit

@Ethanol48 This is great!  thanks for the submission

note: i went ahead and merged this into a WIP branch i have off of main—thanks again for the help here!


fix: removed wrong old redlock types

Codecov Report
Patch and project coverage have no change.

Comparison is base (65a02fb) 96.54% compared to head (b3675a7) 96.54%.

:exclamation: Current head b3675a7 differs from pull request most recent head 322d3c8. Consider uploading reports for the commit 322d3c8 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #142   +/-   ##
=======================================
  Coverage   96.54%   96.54%
=======================================
  Files          56       56
  Lines         376      376
  Branches       62       62
=======================================
  Hits          363      363
  Misses          7        7
  Partials        6        6

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[SEQ-1710] Export FCP XML + Asset Bundle

From SyncLinear.com | SEQ-1710

This would be SUPER cool.

Good first task for future CTO!

@bwilliams is this something you think you can knock this out quickly? Parker thinks it's still pretty important for interop

There should be a way to do GES to FCP 7 XML using OTIO, but I don't think Erik could figure it out.

We could try that built in converter before doing our own.


Implementation of Stargate user profile

Thanks guys for your revolutionary project!
Could you please add some new features? I suggest:

User profiles (ability to upload avatars, add bio, link twitter, etc.)
A more user-friendly and detailed assets dashboard
Snapshot.org widget integration for a better user experience
Some other features

Are you sure you have the right project?


Update tutorial hint display

https://makecode.adafruit.com/app/643f557e06a785fd3e789c8e93a909ff9a0cb09d-427b673194

The hint can not be blown on ios

Should the blocks be visible? It's nice to have a separation between the "instruction" and the solution/blocks, so the "See more" only displays the text. Straightforward fix, if we want it though.

Jacqueline doesn't want blocks to be show with more. More is for instructions which didn't fit.

The reason for "more" is to be able to see both the expected code section and the user code on the same screen without any kind of dialog.
On your first step, the hint dialog shows text. On the second it doesn't. Seems inconsistent.

On step 1, click two times on the hint and the text goes away.

The whole editor scrolls up and down when the hint bleeds off.

I think the blocks need to be visible for early tutorials. We are teaching how blocs snap as much as how the editor is being used. Not showing the blocs is a major untested change compared to the current tutorial engine.

Updated link with the blocks automatically visible for tutorials with the fullscreen tag: https://makecode.adafruit.com/app/643f557e06a785fd3e789c8e93a909ff9a0cb09d-427b673194
Not sure if this is what you were addressing, Peli?

The reason for "more" is to be able to see both the expected code section and the user code on the same screen without any kind of dialog.

@Jaqster strongly belives we shouldn't show answer in more button

On step 1, click two times on the hint and the text goes away.

This intentional to draw attention to the hint on the first UI. First time we show the instruction with the full solution. After that instruction goes to the text area and solution goes to the hint.

I think the blocks need to be visible for early tutorials. We are teaching how blocs snap as much as how the editor is being used. Not showing the blocs is a major untested change compared to the current tutorial engine.

I agree with the above feedback. We should show the solution in each tutorial and shouldn't break existing flow

Text is visible in the first step because we automatically flash the dialog, to let users know it's there, but we don't want to display only the solution. Any time the hint is clicked after that, the dialog only shows the solution, since the text is always already visible in the tutorial card.

The purpose of the tutorial is to take fresh users through the coding experience. Not showing the blocs makes it much harder for them to achieve the steps. This change was made to support Python/TS tutorials where seeing the code is critical for non-bloc based languages where syntax is way more important.
If you want to draw attention on the hint, show the tip for the hint. not the hint itself. Having the hint showing text then no text looks like a bug.
The difference between hint vs no-hint is way too subtle IMO. The little bubble can easily be overlooked.

Shannon latest change shows the full solution when you go to the step. Does that suffice? If not I think we need to discuss on a call.
This is the same behavior as the live website where the modal shows the full solution at every step if @fullscreen is specified.

The more section was added to avoid the disconnect between the blocks in dialog and the code. The tooltip is another form of dialog which has the same problem. You can’t compare side by side your solution to the correct solution.

Hint should show the ### hint content, which may be the code solution. Let the tutorial author decide if the code needs to be in the main section.
And the hint button needs to be much more obvious.

Latest: https://makecode.adafruit.com/app/39c1eec283ee78479b2fa6b3728ee3172e89bfb1-2ec7dad50f


Lag scroll and high window CPU usage

I'm experiencing laggy scrolling, for any file even if I run vs code with disabled extensions (code --disable-extensions);
Process Explorer shows windows process takes a lot cpu while I'm scrolling, up to 120% sometimes, usually about 60-80% https://screencast.com/t/SmUJtQBvQa

VSCode Version: Version 1.24.0 (1.24.0)
OS Version: Mac OS 10.13.4 (17E202)
MacBook Air Early 2014 i7 cpu 8g ram

Steps to Reproduce:

Open vs code
Scroll file fast up and down
See lags and high window process usage in the Process Explorer

Does this issue occur when all extensions are disabled?: Yes/No
Yes, extensions are disabled.

Here I attached performance profile, you can see sometimes it has some frames > 100ms Profile-20180610T124305.json.zip

@vedmant Sorry for taking such a long time to dive deep into this. Indeed, some frames take an unusual long time. I think that the view fails to use the monospace optimizations that are built in. This frame is indicative of that:

Are you using a custom font family that is not monospace? Are you using ligatures? Are you using window.zoomLevel?  Are you using editor.disableMonospaceOptimizations ? Are you using ligatures? What are your settings? Can you attempt to reset them and try to reproduce ?

Hi,
Are you using a custom font family that is not monospace? - I use  "editor.fontFamily": "Menlo, Monaco, 'Courier New', monospace",
Are you using ligatures? - No
Are you using window.zoomLevel? - No
Are you using editor.disableMonospaceOptimizations ? - No, don't have that option at all
Are you using ligatures? - No
What are your settings? - I don't have much settings
{
  "editor.fontSize": 14.5,
  "editor.lineHeight": 19,
  "terminal.integrated.fontSize": 14,
  "window.zoomLevel": 0,
  "workbench.colorCustomizations": {
    "statusBar.background": "#303030",
    "statusBar.noFolderBackground": "#222225",
    "statusBar.debuggingBackground": "#511f1f"
  },
  "editor.detectIndentation": false,
  "editor.tabSize": 2,
  "workbench.colorTheme": "Sublime Monokai",
  "editor.minimap.enabled": false,
  "workbench.activityBar.visible": false,
  "extensions.ignoreRecommendations": false,
  "explorer.autoReveal": false,
  "workbench.editor.enablePreview": false,
  "editor.tabCompletion": true,
  "editor.quickSuggestions": {
    "other": true,
    "comments": false,
    "strings": false
  },
  "[scss]": {
    "editor.insertSpaces": true,
    "editor.tabSize": 2
  },
  "[html]": {
    "editor.insertSpaces": true,
    "editor.tabSize": 2
  },
  "[javascript]": {
    "editor.formatOnSave": true
  },
  "[python]": {
    "editor.insertSpaces": true,
    "editor.tabSize": 2
  },
  "editor.formatOnPaste": true,
  "editor.renderWhitespace": "boundary",
  "python.formatting.provider": "autopep8",
  "python.formatting.autopep8Args": ["--indent-size=2", "--max-line-length=100"],
  "python.formatting.yapfArgs": ["--style", "{indent_width: 2, spaces_before_comment: 2}"],
  "emmet.includeLanguages": {"erb": "html"},
  "prettier.semi": false,
  "prettier.printWidth": 120,
  "prettier.singleQuote": true,
  "prettier.trailingComma": "all",
}

Can you attempt to reset them and try to reproduce ? - I'll try this a bit later

Here is the subset of settings that might impact rendering from the above:
{
  "editor.fontSize": 14.5,
  "editor.lineHeight": 19,
  "window.zoomLevel": 0,
  "workbench.colorCustomizations": {
    "statusBar.background": "#303030",
    "statusBar.noFolderBackground": "#222225",
    "statusBar.debuggingBackground": "#511f1f"
  },
  "workbench.colorTheme": "Sublime Monokai",
  "editor.minimap.enabled": false,
  "workbench.activityBar.visible": false,
  "editor.renderWhitespace": "boundary",
}


Request textDocument/foldingRange failed

Initial checklist

[X] I read the support docs
[X] I read the contributing guide
[X] I agree to follow the code of conduct
[X] I searched issues and couldn’t find anything (or linked relevant results below)

Affected packages and versions
1.2.1
Link to runnable example
No response
Steps to reproduce

Load an MDX file that imports another MDX file in VS Code
Follow the symbol of the imported file
When navigating to the imported file the error should occur

Expected behavior
No error is thrown when navigating symbols.
Actual behavior

Go to output results in the following:
[Error - 8:18:22 PM] Request textDocument/foldingRange failed.
  Message: Request textDocument/foldingRange failed with message: Cannot read properties of undefined (reading 'textSpan')
  Code: -32603

Runtime
Node v17
Package manager
pnpm
OS
macOS
Build and bundle tools
No response

This is a duplicate of #289. This has been fixed in #290, but not yet released. I intend to create a new release today or tomorrow.

Oops, sorry for the duplicate! I totally missed that searching through the issues 🤦

This has just been released in v1.2.2 :tada:


Ad/1.3.1

Fixed some compile errors as well as added one missing dependency (scala-logging).

Should https://github.com/mesosphere/marathon/pull/4526/commits/ca527cf72a1914df0e052883e9455abce44e0487 be two commits? One with the actual changes and one with the compile error fixes?
Does we have the same issues on master?

No, we don't have this issue on master.

retest this please

@zen-dog Thanks
Going forward we should try to omit such kind of PRs.

retest this please


Proxy server hot-reloading does not play nice with htmx

I'm currently using the templ proxy server for development of an application that uses htmx. Everything works as expected except for one slightly annoying console error. Whenever htmx loads a new page from the templ proxy server it re-executes the reload event listener script. This causes a javascript error because of the redeclared identifier (let src).
This is the script I'm talking about:
let src = new EventSource("/_templ/reload/events");
src.onmessage = (event) => {
	if (event && event.data === "reload") {
		window.location.reload();
	}
};

I'm currently just hiding error messages from this script using a filter.
-url:http://<IP_ADDRESS>:3001/_templ/reload/script.js

Is this a known issue and is there a workaround? Or is there potentially something amiss with my development setup? Would it make sense to use var src in the script instead to avoid this error?

Any reason you closed this one?
If it is a problem, it would be pretty easy to rename the variable to templ_src or something, it would just be an update to https://github.com/a-h/templ/blob/main/cmd/templ/generatecmd/proxy/script.js

Sorry, I didn't want to waste anyone's time and it's not too much trouble to suppress the error messages.
The issue isn't the chosen variable name, but the script re-executing after htmx page changes, causing a re-declaration error. The issue is specific to servers using htmx or htmx-like libraries (like turbo/turbolinks/pjax). I'm not sure if setups like this are common enough among templ users to warrant fixing the error. Unless there is some dead-simple fix that is low-overhead and doesn't break any other use cases, it's probably not worth it.

I think this could be a wider issue. I ran into myself while testing something. I've put together a little PR, what do you think?

Thank you for this! It works great for me and looks like a clean solution without adding too much complexity.
And thank you for the rest of your work here. Templ has been a complete pleasure to use. 👍


In-GUI search support

Perhaps using anvils? That, or chat prompts, although anvils would be far more impressive. Will require more research before implementing.

Taken from #13. Separated for organizational purposes.

Chat prompts seem to be the way to go with this. The handling of anvils in Bukkit is sub-par to say the least, and "absurd" would be far more realistic. However, this feels like the kind of update that belongs in v1.6, as v1.5 has so far been focused on quality of life updates for server owners. (In-game editor, permissions, economy, etc.)

Anvils are alright since the PrepareAnvilEvent was added, I think. Before that you need a plugin channel listener like the one I created for BukkitUtilities back then.

The problem is actually due to the fact that you cannot set items in an anvil inventory, since the anvil inventory itself is actually an instance of CraftInventoryCustom rather than CraftInventoryAnvil (assuming it was created via Bukkit#createInventory). I did some work trying to create an actual CraftInventoryAnvil via reflection using the NMS ContainerAnvil class and such, but it still failed to set the items in the inventory when I called .setItem on the anvil inventory.

The problem is actually due to the fact that you cannot set items in an anvil inventory, since the anvil inventory itself is actually an instance of CraftInventoryCustom rather than CraftInventoryAnvil (assuming it was created via Bukkit#createInventory). I did some work trying to create an actual CraftInventoryAnvil via reflection using the NMS ContainerAnvil class and such, but it still failed to set the items in the inventory when I called .setItem on the anvil inventory.


WritableView Implementation

Issues with WritableView Implementation
1. Environment

Verification performed in WPF

2. Exception When Editing Empty Row in DataGrid
Issue Description

Double-clicking on the empty row at the bottom of a bound DataGrid triggers an exception in NotifyCollectionChangedSynchronizedViewList

public int Add(object? value)
{
    throw new NotImplementedException();
}

Additional Observations

No exception occurs when editing cells with existing values
Editing functionality was working in versions up to v3.0.4
Hypothesis: In WPF, editing operations alone don't pass through object? IList.this[int index]

3. Unexpected Behavior with WritableView Filter
Added the following code to ObservableCollections.sandbox.ConsoleApp
Reproduction Code
notify[1] = "99999";
view.AttachFilter(x => x % 2 == 0);
Console.WriteLine("view");
foreach (var item in view)
{
    Console.WriteLine(item);
}
Console.WriteLine("");
Console.WriteLine("l(source)");
foreach (var item in l)
{
    Console.WriteLine(item);
}

Current Output
view
0
99999
4

l(source)
0
99999
2
3
4
5

Expected Output
view
0
4

l(source)
0
1
99999
3
4
5

4. Related Improvements

I have submitted a pull request addressing the overloads of ToWritableNotifyCollectionChanged. #74

Thank you, I've released 3.1.1, that fixed these issues.
2: I've implement Add operation for WritableNotifyCollectionChanged
Usage example:
IList<string?> bindable = view.ToWritableNotifyCollectionChanged((string? newView, Person original, ref bool setValue) =>
{
    if (setValue)
    {
        // default setValue == true is Set operation
        original.Name = newView;

        // You can modify setValue to false, it does not set original collection to new value.
        // For mutable reference types, when there is only a single,
        // bound View and to avoid recreating the View, setting false is effective.
        // Otherwise, keeping it true will set the value in the original collection as well,
        // and change notifications will be sent to lower-level Views(the delegate for View generation will also be called anew).
        setValue = false;
        return original;
    }
    else
    {
        // default setValue == false is Add operation
        return new Person { Age = null, Name = newView };
    }
});

3: It is bug! I've fixed!

I may have seen a glimmer of hope.
I'll investigate a bit more and submit a PR...!


HIVE-25128: Remove Thrift Exceptions From RawStore alterCatalog

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

@miklosgergely This one is an important foundation change based on my discussions in HIVE-25126, but the details for this particular PR are found in HIVE-25128.
Please let me know what you think.
Thanks!!!

@nrg4878 This is a really heavy commit to change all the method signatures, though I do have another PR ready to go: #2290.
As you've seen from the initial interest in this patch, I didn't want to put the time into all of the work without some acknowledgement and buy-in on the current direction I'm trying to take this in.  I still prefer the piecemeal approach for that reason. This PR is just a bit more foundational because it includes the Exceptions I would like to move forward with.


Encryption APIs for Iceberg.

Addressed CR comments so far.

Looks good. I caught just one thing that I missed last time.

Whoops I missed a few CRs, will address

Ok the last comments have been addressed.


existing workspace rules are not replaced when adding new ones

When redefining a workspace rule, the old one will have precedence over the new one since the new one is added at the back of the deque, instead of modifying the exiting one.
for instance:
hyprctl keyword workspace 8,monitor:DP-9
hyprctl keyword workspace 8,monitor:eDP-1
one would expect that workspace 8 would open on eDP-1 but it opens on DP-9

So did you learn not to write conflicting rules?  Also, seems like you're trying to mix docked profile vs laptop profile, those probably need to be on separate configs.

413a36a914d5ccab38feb3cab93db8f2b1352363


Improve flatMap efficiency

StreamFlatMappingSpliterator calls forEach on the returned Stream, it should call forEachRemaining on the Spliterator instead (which seems to give a small improvement as measured by jmh against iteration over 1000 values )
 ReactiveSeq.iterate(1,i->i+1)
                     .limit(10000)
                     .flatMap(i -> Stream.of(i * 2,i*2,i*2,i*2))
                     .forEach(bh::consume);

Merged in https://github.com/aol/cyclops-react/pull/463


Remove SlamData Matryoshka from the incubator

Just a friendly reminder that this PR is waiting on a quick merge. Thanks!

Please go ahead and merge this.
Do svidaniya, Matryoshka.

Merged as f8db9df61d49f8fda90f478376e2cd6a05946f98.
We're sorry to see Matryoshka go, and would like to assure you that the door is open for you to return in future should you choose to.


Handle deprecated providers with a error message and a URL to follow up

See - http://libcloud.apache.org/blog/2016/02/16/new-drivers-deprecated-drivers.html

@Kami @erjohnso @jcsalterego @runseb @allardhoeve - this is an important one. Are you happy with the way this works?

Looks simple enough to me.

LGTM @tonybaloney. Nice clean up!

Yay, removing code is always great (less stuff to maintainer, less surface area for bugs, etc.) :P
LGTM


Finite differences c++ module

Implemented finite differences as a module for CppRunner
Tested it
Corrected jacobian computation for hand tracking (used to compute only one pair of derivatives by us)
Optimized some memory allocations

Some of the resulting plots:
FiniteOld here stands for the old (removed in this PR) implementation.

Here new implementation works longer than the old one, because the old one didn't compute all the derivatives by us.

I'm not an expert on this, but I can't see anything wrong with it!


remove rbac.

ref: https://github.com/stolostron/backlog/issues/25620
Signed-off-by: morvencao<EMAIL_ADDRESS>

/LGTM


Support for multiple readers

Added a function called 'listen', which calls the SWSerial function of the same name. This allows the user to select from multiple SWSerial ports/RFID readers to listen to.

Thank you.


Parse numbers in Account entity

First step at Issue #9 -- just tackling the Account entity in this PR. The goal is to find an approach we like before moving on to the rest of the entities.
Overview
The general approach is to split the existing Account entity type into two types: RawAccount and Account.

RawAccount represents the data in the same way it comes from the Alpaca API. Numbers, dates, and enums are all represented as strings.
Account represents the data with certain fields parsed for convenience.

In this PR, I parse all numbers to number and I provide a type for the status enum
I'm not parsing dates in this PR. See more info on that in the questions section below.

Then we have a simple Parser class that is responsible for converting from RawAccount to Account. In the Client's getAccount() method, we simply make the API request, then call the parser. That's pretty much it.
Questions
Branch
I think you'll want to make a 2.x branch that we can merge this (and future PRs) to correct? Once you do that, I can update this PR to go there rather than master.
Prettier thing
The Prettier build step is failing. It looks like maybe it can't handle this PR because it's coming from my fork? Do you know if that's expected?
Tests
I wanted to write tests for the parser, but I couldn't get AVA up and running quickly without making a bunch of changes. I guess we'll add tests later?
Parsing Dates
I chose not to parse dates in this PR. I'm worried about timezones. As soon as you go from string to Date, you get a date that is in the timezone of whatever machine parsed it. This is a source of bugs. For example, you might have one machine hit the API and another machine process the data and those machines could be in different timezones.
We could parse dates and inform users of this package to be careful with timezones, but I believe it's safer to leave them as ISO-8601 strings and let the user do the parsing themselves.
Thoughts?
General style
Feel free to nitpick on stuff in here as I get used to the project's style. I do feel like this project would benefit from some lint rules, although maybe that's a non-issue since there is the Prettier action thing.
Manual testing
I npm linked my fork locally to my trading app. I hit the getAccount() method in the client and logged the output. The output matched my expectations.

Awesome! Can you point this to the new dev branch?
Building
Not sure why the prettier build step is failing but I'll look into it, maybe its a one time thing. If not I'll replace it.
Tests
As for tests... how we do this remains a mystery to me currently. The best thing I can think of is to mock alpaca responses in unit tests. Otherwise they aren't very useful if they aren't simulating API responses. I don't like the idea of requiring an API key and secret just to run the tests, so that is where mocking would come into play. That said it's a time consuming task and I don't think its necessary at the moment. This latest build has been very stable and I've used it thoroughly.
Dates
What if dates were a string object that had a helper method, one that could convert it to a local date? Such as .toDate(). Another simple solution that comes to mind is to parse the dates ourself but use UTC which is more than reasonable. The user can take it to another timezone then on their own if they wish.
I'll await the PR on the new branch and then begin testing from there. Thank you by the way for your work on the project! Love to see the improvements taking shape. 😄

Ok turn's out I can do it. Didn't know until I just checked. 🤷🏻♂ Gonna go ahead and merge into dev and begin testing these changes.

Thanks @117 ! I'm going to start working on the next one.


Update gRPC library version.

We have to make sure that we maintain a Java 8 compatibility.

Done


feat!: make onetrust consent manager fields source type specific

Description of the change
Made OneTrust consent manager fields source type specific.
Liear Link
https://linear.app/rudderstack/issue/SDK-998/make-legacy-consent-configuration-fields-source-specific
Fixes # (issue)
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

Checklist:

[ ] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added unit tests for the code
[ ] I have made corresponding changes to the documentation

The pull request is ready for release.


Some errors when running the script

So I after I configured and installed the requirements I am getting errors. I don't know if I did something wrong.

Yup just saw that Gunicorn was not supported on Windows so I guess I'll change the dependencies on Nasse and drop Nasse requirement on this project for now!

Oh okay thanks I will close the issue when its dropped.

Should be solved with 6ad101dc8be0469a4cf90290e3c5604054ba61d1


About downloading data from huggingface

Hello, congratulations on the ICLR acceptance.
I've read the paper thoroughly and I'm really grateful for sharing both the model and the data. However, I encountered an error while trying to download the data from Hugging Face, and I have a question about it.
I attempted to download the dataset using the following method:
import datasets
ds = datasets.load_dataset('nicklashansen/tdmpc2')

However, I received the following error:
DataFilesNotFoundError: No (supported) data files found in nicklashansen/tdmpc2

Could it be that I am using the wrong method to download the data? If there is an alternative method, please let me know. Thank you!

Hi @mynsng, thank you!
I'll need to look into whether the dataset is configured correctly for API use, I suspect that I might have missed a step (first time uploading a dataset to huggingface). In the mean time, you should be able to download each shard/chunk of the dataset manually with
wget https://huggingface.co/datasets/nicklashansen/tdmpc2/resolve/main/mt80/chunk_0.pt?download=true

Apologies for the inconvenience!

It works! Thank you for your efforts!


camel application property routesUri is not overridden at runtime

Describe the bug
When using the camel extension, the application property quarkus.camel.routes-uris is not overridden at run time with the native executable. It should be in ConfigPhase.RUN_TIME instead of ConfigPhase.BUILD_AND_RUN_TIME_FIXED.
Original discussion here
Expected behavior
When overriding application property routes-uris with a config/application.properties file or environment variable, it should be taken into at run time by the executable.
Actual behavior
Still takes the value from the development version in resources/application.properties no matter what.
To Reproduce
Steps to reproduce the behavior:

git clone https://github.com/alainpham/quarkus-kafka-camel-servlet.git
cd quarkus-kafka-camel-servlet
Add some configuration change regarding camel in the docker-compose.xml as environment vars file. We can try to change the url patterns or the uris to the routes.xml.

    environment:
      - 'QUARKUS_CAMEL_ROUTES_URIS=file:/camel/routessss.xml'

docker-compose up
The new values are not taken into account

Configuration
# Add your application.properties here, if applicable.

Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):

Output of uname -a or ver: 3.10.0-957.21.3.el7.x86_64
Output of java -version:

openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)

GraalVM version (if different from Java):

openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-20190523183340.buildslave.jdk8u-src-tar--b03)
OpenJDK 64-Bit GraalVM CE 19.0.2 (build 25.212-b03-jvmci-19-b04, mixed mode)

Quarkus version or git rev: 0.18.0

Moving routesUris from BUILD_AND_RUN_TIME_FIXED to RUN_TIME would make it impossible to do the build time materialization of the routes (because the RUNTIME config is simply not available at runtime). I do not think we want to do that. WDYT, @lburgazzoli?
As an alternative, we could perhaps add runtime routesUris config option to the existing build time one. The new runtime option would have the semantics requested by @alainpham.
As a workaround, we can recommend the technique used in the core-cdi itest. We use a path literal there, but you could make it dynamic by using a field annotated with something like @ConfigProperty(name = "your.runtime.path")

Agreed with @gnodet  and others to move the property to RUN_TIME.

Has this ever been implemented so far?

will work on it now


Seed word transition

Need a way for users having 24 seedwords backup recover in the 12 seedwords app.
A user had the live app that we released having 24 seedword backup. He backed-up using 24 seed words.
Then we went to 12 seedwords. He upgraded the app.
Now he wants to recover his wallet, but has 24 seedwords while our app allows 12.

Platform: TG
User: Cu**x

Resolved


Build command not generate JS file types correctly with commonjs

Issue workflow progress

Progress of the issue based on the
Contributor Workflow

[ ] 1. The issue provides a reproduction available on
Github

Make sure to fork this template and run yarn generate in the terminal.
Please make sure Mesh package versions under package.json matches yours.

[ ] 2. A failing test has been provided
[ ] 3. A local solution has been provided
[ ] 4. A pull request is pending review

Describe the bug
When we launch build command of the cli with commonjs and the flag --fileType=js
mesh build --fileType=js
the build commands fails because it are not treating files as commonjs library. Moreover, without fileType=js it only generates ts files and is not traspiling to js files.
To Reproduce Steps to reproduce the behavior:

In the repository, change build command to mesh build --fileType=js
Execute npm run build
Launch the next error:

💥 🕸  Mesh - Wiki  Failed to generate the schema C:\Inditex\Projects\mesh\openapi-javascript-wiki.mesh\sources\Wiki\schemaWithAnnotations.js:2
import { buildASTSchema } from 'graphql';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1195:20)
at Module._compile (node:internal/modules/cjs/loader:1239:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Object.require.extensions. [as .js] (C:\Inditex\Projects\mesh\openapi-javascript-wiki\node_modules\ts-node\src\index.ts:1608:43)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Function.Module._load (node:internal/modules/cjs/loader:972:12)
at Module.require (node:internal/modules/cjs/loader:1157:19)
at require (node:internal/modules/helpers:119:18)
at C:\Inditex\Projects\mesh\openapi-javascript-wiki\node_modules@graphql-mesh\utils\cjs\defaultImportFn.js:29:74
💥 🕸  Mesh  Error: Schemas couldn't be generated successfully. Check for the logs by running Mesh with DEBUG=1 environmental variable to get more verbose output.
at getMesh (C:\Inditex\Projects\mesh\openapi-javascript-wiki\node_modules@graphql-mesh\runtime\cjs\get-mesh.js:167:15)
at async Object.handler (C:\Inditex\Projects\mesh\openapi-javascript-wiki\node_modules@graphql-mesh\cli\cjs\index.js:311:53)

Expected behavior

Generate correct commonjs package with js files (not only TS files).
Environment:

OS: Windows 10
@graphql-mesh/cli: 0.82.33
"@graphql-mesh/openapi: 0.36.0
NodeJS: 19.8.1

Additional context

It happens with other samples of commonjs. It seems that schemaWithAnnotations.js file is not treated correctly as commonjs file and it treats it as ESM module.

@gabel finally we didn't work with Graphql and I left the use of the library aside. I'm sorry :(


An idea to add SQL Like Functionality in LINQ

This is not an issue, its just an idea of new feature, if not implemented till date.
Is there any features list available?
Currently, there is no feature or support similar to Like functionality in SQL. However, we can use Contains to meet our requirements, which uses in at SQL side (dbengine). I am just thinking to add a new feature something similar to sqllike here is an example: An idea to add SQL Like Functionality in LINQ.
Any thoughts/suggestions to add this feature? @shanselman @anurse  @srivatsn

We already have this.
https://github.com/aspnet/EntityFramework/blob/dev/src/EntityFramework.Relational/Query/ExpressionTranslators/ContainsTranslator.cs

Awesome! Good to know
On 25/09/2015 9:30 PM, "Nate McMaster"<EMAIL_ADDRESS>wrote:

We already have this.
https://github.com/aspnet/EntityFramework/blob/dev/src/EntityFramework.Relational/Query/ExpressionTranslators/ContainsTranslator.cs
—
Reply to this email directly or view it on GitHub
https://github.com/aspnet/EntityFramework/issues/3225#issuecomment-143261155
.

Thanks for the suggestion!


duplicate entry:android/support/v4/print/PrintHelperKitkat$1.class

Error:Execution failed for task ':C2B_Phone:transformClassesWithJarMergingFor_360Debug'.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/print/PrintHelperKitkat$1.class

anybody can help me ?

@the-south-snowing I think it's not from this library, because we don't use print stuff you know...

Might be a version conflict with the support-v4 library pulling in two variants of the same class. As hotchemi-san said though, not a PermissionsDispatcher issue per se.

@the-south-snowing You can try like following:
    compile('com.commonsware.cwac:camera-v9:0.5.4') {
      exclude module: 'support-v4'
    }

@aurae Thx man!

Nobody can sovle this question？


Controller Rumble Not Working on Ubuntu

I play the game on both Ubuntu and Windows with an X-Box One controller. On Windows, I get a controller rumble whenever I dash. On Ubuntu 18.04.1, my controller never rumbles. I'm running kernel 4.15 currently.

I think this is some MonoGame related Linux issue. Doesn't seem to work with some other MonoGame things too, but works just fine with every other engine.

Celeste only uses MonoGame for the console ports.


Add test script demoing how to use global.texture memory for intermediates in TE and TIR.

cc @echuraev please take a look, this should help demo how to use textures for intermediate buffers. I provide an example with both TE and also TIR.

LGTM, thank you


Learn about Django Framework

Learn about django framework by watching videos or by googleing it. Then list favoured resources below.

Ongoing Training

[ ] Watch
[ ] Read

Lessons learned are listed in About Django page.

Learning is a journey :)

My journey continues, but this task shall end :)


Add extension methods to GetUtils

I like the idea of the GetUtils, but I also would like them to be usable as an extension method instead through the GetUtils class.
I created extensions methods for all of them.
Hope you like the idea.

Great! I was thinking about it right now. You were very precise!
Thanks again.


Event API design

present tense
name-style like native DOM event

[ ] alert
[ ] pagination
[ ] tabs

no prefix
custom event won't bubble

[ ] modal
[ ] pagination
[ ] popover
[ ] tooltip

emit event when value change
change event

[ ] carousel
[ ] pagination
[ ] tabs

better with semantic v-modal

present tense & no prefix
Pls provide some detail.

changed -> change
popover-show -> show


CLOUD-45976 introduce V2 instance types for Azure

@akanto @doktoric

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1678/

LGTM


Tensorflow GPU installation in Windows 10 with anaconda

System information

OS Platform and Distribution: Windows 10
TensorFlow installed from (source or binary): I don't know
TensorFlow version: 1.12.0
Python version:  3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)]
Installed using virtualenv? pip? conda?: I don't remember
Bazel version (if compiling from source): I don't know
GCC/Compiler version (if compiling from source): I don't know
CUDA/cuDNN version: Cuda compilation tools, release 10.0, V10.0.130 / cuDNN v. 7.4.1
GPU model and memory:  GeForce GT 635M

Describe the problem
I can't install the GPU version of Tensorflow
Provide the exact sequence of commands / steps that you executed before running into the problem
I try to install the GPU version of Tensorflow
So I run the following lines in a Windows command prompt
conda create --name tf_gpu
activate tf_gpu
conda install tensorflow-gpu

After running conda create --name tf_gpu, I got the following message

Preparing transaction: done
Verifying transaction:
SafetyError: The package for setuptools located at C:\Users\User\Miniconda4\pkgs\setuptools-40.6.2-py36_0
appears to be corrupted. The path ‘Scripts/easy_install.exe’
has a sha256 mismatch.
reported sha256: 993203a406e04936a07829b1f482fd27d739b640482e213f4c49ea1ee78a5fcf
actual sha256: dd0f7f55b91f4c77c6064f6ed3219e3573ae2b4ada1190094887da40d6b7fde1
SafetyError: The package for wheel located at C:\Users\User\Miniconda4\pkgs\wheel-0.32.3-py36_0
appears to be corrupted. The path ‘Scripts/wheel.exe’
has a sha256 mismatch.
reported sha256: 993203a406e04936a07829b1f482fd27d739b640482e213f4c49ea1ee78a5fcf
actual sha256: e94002e198d87676ccfef870c0648d33d57bd30288ba00dbab112597e223759d
done
Executing transaction: done

But I think, that is a minor problem. However, when I run conda install tensorflow-gpu I get this

2018–12–16 16:15:23.825085: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX
2018–12–16 16:15:24.615875: E tensorflow/stream_executor/cuda/cuda_driver.cc:300] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
2018–12–16 16:15:24.623130: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:163] retrieving CUDA diagnostic information for host: DESKTOP-85SA7VT
2018–12–16 16:15:24.627495: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:170] hostname: DESKTOP-85SA7VT
Device mapping: no known devices.
2018–12–16 16:15:24.645904: I tensorflow/core/common_runtime/direct_session.cc:307] Device mapping:
.

Is there something wrong with the CUDA/cuDNN installation ?
Tensorflow with CPU does work but not GPU Tensorflow. Thanks

Maybe your graficscard is too old for current Cuda versions.

System information

OS Platform and Distribution: Windows 10
TensorFlow installed from (source or binary): I don't know
TensorFlow version: 1.12.0
Python version:  3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)]
Installed using virtualenv? pip? conda?: I don't remember
Bazel version (if compiling from source): I don't know
GCC/Compiler version (if compiling from source): I don't know
CUDA/cuDNN version: Cuda compilation tools, release 10.0, V10.0.130 / cuDNN v. 7.4.1
GPU model and memory:  GeForce GT 635M

Describe the problem
I can't install the GPU version of Tensorflow
Provide the exact sequence of commands / steps that you executed before running into the problem
I try to install the GPU version of Tensorflow
So I run the following lines in a Windows command prompt
conda create --name tf_gpu
activate tf_gpu
conda install tensorflow-gpu

After running conda create --name tf_gpu, I got the following message

Preparing transaction: done
Verifying transaction:
SafetyError: The package for setuptools located at C:\Users\User\Miniconda4\pkgs\setuptools-40.6.2-py36_0
appears to be corrupted. The path ‘Scripts/easy_install.exe’
has a sha256 mismatch.
reported sha256: 993203a406e04936a07829b1f482fd27d739b640482e213f4c49ea1ee78a5fcf
actual sha256: dd0f7f55b91f4c77c6064f6ed3219e3573ae2b4ada1190094887da40d6b7fde1
SafetyError: The package for wheel located at C:\Users\User\Miniconda4\pkgs\wheel-0.32.3-py36_0
appears to be corrupted. The path ‘Scripts/wheel.exe’
has a sha256 mismatch.
reported sha256: 993203a406e04936a07829b1f482fd27d739b640482e213f4c49ea1ee78a5fcf
actual sha256: e94002e198d87676ccfef870c0648d33d57bd30288ba00dbab112597e223759d
done
Executing transaction: done

But I think, that is a minor problem. However, when I run conda install tensorflow-gpu I get this

2018–12–16 16:15:23.825085: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX
2018–12–16 16:15:24.615875: E tensorflow/stream_executor/cuda/cuda_driver.cc:300] failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
2018–12–16 16:15:24.623130: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:163] retrieving CUDA diagnostic information for host: DESKTOP-85SA7VT
2018–12–16 16:15:24.627495: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:170] hostname: DESKTOP-85SA7VT
Device mapping: no known devices.
2018–12–16 16:15:24.645904: I tensorflow/core/common_runtime/direct_session.cc:307] Device mapping:
.

Is there something wrong with the CUDA/cuDNN installation ?
Tensorflow with CPU does work but not GPU Tensorflow. Thanks

Tensorflow-GPU requires Nvidia GPUs with CUDA compute capability 3.5 or higher. compute capability of the GT635M is only 2.1(see https://developer.nvidia.com/cuda-gpus).In fact, the GT635M uses the GF106/GF116 chip based on the Fermi architecture.Not the usual Kepler architecture of the Geforce 600 series.The Fermi architecture is too old, and now the Tensorflow GPU is no longer supported.

@rootkitchao Thank you for your thorough explanation. By the way when installing Tensorflow withconda command it installs CUDA 9.0, not 10.0.
Do you recommend to use pip or conda for the installation of Tensorflow ? The regular installation of Tensorflow GPU seems a bit of a struggle.

Closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


nixos/netdata: support adding extra packages to service PATH

Motivation for this change
Fixes #33366, although a fair number of python plugins seem to fail
for subsequent reasons (as triaged by viewing netdata's error.log).
cc @jtojnar @davidak @cransom
Things done

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

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

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

What is the status of this pull request?

I'm no longer working on this PR.