wsagent_package

Hello,
Recently were corrected recipes for collector and server. Could you please correct recipe for wsagent_package to use it with cron? For now it restarts agent and apache server every run.

Please look at  commit 8746708a4906860479a348baf032a5bb097773ea on master branch. We will make an official release later on.

Hi,
Thank You, could you please take a look on apache_wsagent.rb as well? There  is the same situation.  I didn't mention it. Actually I use apache_wsagent.rb that includes wsagent_package.rb.

Yes, we are working on that. The fix should be ready by tomorrow.

The fix is ready in commit 6e18751244. Please note that a new dependency to the 'line' cookbook has been added so Berkshelf has to be launched before trying to launch the recipes

Hi,
apache_wsagent.rb still restarts httpd service every runs.  I see it in chef log.
Recipe: dynatrace::apache_wsagent

service[httpd] action restart

restart service service[httpd]

just to check i changed action on reload and got
Recipe: dynatrace::apache_wsagent

service[httpd] action reload

reload service service[httpd]

Looks like  "replace_or_add" is changed every run. Could you please check?

I tried to reproduce the issue and it appears only when executing apache2 and dynatrace::apache_wsagent recipes in the same Chef run. The apache2 recipe will overwrite the httpd.conf file each time it is run.
           - update content in file /etc/httpd/conf/httpd.conf from 836a66 to 928919
           --- /etc/httpd/conf/httpd.conf	2016-12-06 15:37:07.791313681 +0000
           +++ /etc/httpd/conf/.chef-apache2.conf20161206-10101-1bskw4w	2016-12-06 15:38:56.677726012 +0000

In that case it is normal that the service is restarted as the httpd.conf needs to be patched. The only potential enhancement would be to reload the service instead of restarting it...
Assuming the apache server is already installed, and the apache_wsagent is launched the second time there should be no httpd service restart, at least I do not observe it (I tried on Centos-6 and Ubuntu 12.04).
If the issue is still occurring please provide more details about your setup (specifically the target system, the recipes that are being run and logs from Chef execution).

Hi,
Got it, thank for investigation.  i found another way to add the module.  I load the module using a bit another way. Maybe it will help someone with the same issue:
I redefined attribute 'apache_config_file_path' and added new one 'apache_config_file_link'
apache_config_file_path = node['dynatrace']['apache_wsagent']['apache']['config_folder'] + '/mods-available/agent_dynatrace.load'
apache_config_file_link = node['dynatrace']['apache_wsagent']['apache']['config_folder'] + '/mods-enabled/agent_dynatrace.load

and before resource 'replace_or_add' i added 2 new resources
file apache_config_file_path do
  owner 'root'
  group 'root'
  mode '0644'
end

link apache_config_file_link do
  to apache_config_file_path
  mode '0777'
end

Works well. Issue can be closed.

Actually, in case of running apache2 and dynatrace::apache_wsagent recipes in the same run list it would be enough to override the node['dynatrace']['apache_wsagent']['linux']['apache_daemon'] attribute and set its value to an empty string. The apache2 cookbook always defers apache service restart to the end of a run list so changes done by our recipe would be taken into account anyway.


Trying to deploy multiple VS in Common Partition but it's overwriting the config. Please advise

This is my code . Please advise
{
"class" : "AS3",
"action" : "deploy",
"persist" : true,
"declaration" : {
"class": "ADC",
"schemaVersion": "3.34.0",
"id": "test-alf-1",
"label": "test_alf01",
"remark": "Test_config",
"Common": {
"class": "Tenant",
"Shared": {
"class": "Application",
"template": "shared",
"test-alf-01.xyz.com_http": {
"layer4": "tcp",
"pool": {"bigip":"/Common/test_pool"},
"iRules": [
{"bigip": "/Common/_sys_https_redirect"}
],
"translateServerAddress": true,
"translateServerPort": true,
"remark": "test-alf-02.xyx.com",
"class": "Service_HTTP",
"profileHTTP": {
"bigip": "/Common/http"
},
"profileTCP": {
"bigip": "/Common/tcp"
},
"virtualAddresses": [
"<IP_ADDRESS>/23"
],
"virtualPort": 4065,
"snat": "auto",
"allowVlans": [
{
"bigip": "/Common/External"
}
]
},
"test-alf-01.xyz.com_https": {
"layer4": "tcp",
"pool": {"bigip":"/Common/test_pool"},
"iRules": [
{"bigip": "/Common/_sys_https_redirect"}
],
"translateServerAddress": true,
"translateServerPort": true,
"remark": "test-alf-02.xyz.com",
"class": "Service_HTTPS",
"serverTLS": {"bigip":"/Common/WILDCARD-SSL-CLIENT-PROFILE"},
"profileHTTP": {
"bigip": "/Common/http"
},
"profileTCP": {
"bigip": "/Common/tcp"
},
"redirect80": false,
"virtualAddresses": [
"<IP_ADDRESS>/23"
],
"virtualPort": 4066,
"snat": "auto",
"allowVlans": [
{
"bigip": "/Common/External"
}
]
}
}
}
}
}

AS3 is declarative. That means when you supply a second declaration for the Common tenant AS3 will replace the current configuration of the Common tenant. If you want to add a second virtual server to Common, you can update your configuration to contain to virtual servers or you can use a PATCH request to add a second virtual server to your declaration.


DM-37933: Refactor context handling

Dependency injection for mock storage clients wasn't plumbed in at quite the right layer, which created cascading complexity problems through the test suite and in main.py. Restructure using the following principles:

The test suite injects mock storage objects by passing them as optional parameters to the constructor of the ProcessContext object.

ContextDependency manages the global ProcessContext. Normally, it constructs one during initialize(), but to allow for the test suite to build a custom one with dependency injection and inject it, it supports an override method that prevents initialize() from making a new ProcessContext.

Starting background processing is the responsibility of the ContextDependency (again during initialize()), via the start() method on the ProcessContext.

The per-request RequestContext should contain a Factory to make components that can be created on the fly, and copies of any global singletons that handlers need access to. These are taken from the ProcessContext, and the Factory also gets a reference to the ProcessContext.

All the functions to create new service objects live in the Factory and are called via it. They don't need to be reflected in the RequestContext object since its Factory member is public and doesn't need to be hidden.

The ProcessContext should be recreated per-test to ensure that it doesn't share state between tests. This also cleaned up the lifetime issues that required forcing the event loop to have session scope.

The Gafaelfawr client cannot easily be mocked via dependency injection since it's created by the Factory, so handle it with patching for now until it can be converted to httpx mocking.
Where possible, tests use a simple Factory instead of the mocked RequestContext. Code forcing an initial reconcile of prepuller state has been moved into the test fixtures and out of the tests.

In terms of exposing the factory, my logic is that you have to expose something that creates the components you need to use. In the previous code, the context was effectively the factory: it exposed a bunch of properties to construct things for you. This layer of abstraction doesn't feel to me like it's adding anything except a code maintenance burden, since every factory method has a corresponding context method that just forwards to the factory method. So may as well expose the factory and let people call it directly.
The question of a property versus a method is mostly stylistic, but I prefer methods for a factory because ideally the factory is constructing something that doesn't already exist. The line between a property and a method is a bit hazy, but to me a property is exposing something that already exists (possibly in a slightly altered form), and a method is doing something or creating something. Also, just in general when I read other code it seems typical for factory methods to be methods and not properties.
For the mocks, yes, we definitely should move the mocks into Safir. I have been doing that as soon as two different packages use the mock, so haven't done that for the Docker mock yet since for right now only the lab controller uses it. But for instance Safir provides Kubernetes and Google Cloud Storage mocks.


feedback bug

VSCode Version: Code 1.19.3 (7c4205b5c6e52a53b81c69d2b2dc8a627abaa0ba, 2018-01-25T10:36:34.867Z)
OS Version: Windows_NT x64 10.0.14393
Extensions:

Extension
Author (truncated)
Version

tslint
eg2
1.0.24

debugger-for-chrome
msj
4.1.0

The following is my question
I have a problem,  I can't use my select all( ctrl + A )  when I  download the vscode from the  Official website  and install completly， I  have never modify my keyword,  nothing i have to do.

Steps to Reproduce:

Reproduces without extensions: Yes/No

Can you try to do this?
Ctrl + Shift + P -> Preferences: Open Keyboard Shortcuts -> type in "select all" -> take a screenshot of the settings?
For example:


Create .graphqlconfig

WIP: https://github.com/Iteam1337/supreme/tree/feature/graphql-config

https://github.com/Iteam1337/supreme/pull/7


Need keywords in package.json

For instance, a search for ARM in the marketplace yields a couple of other tools for resource manager but not ours.


Add MiddlewareChainType

Added MiddlewareChainType for pattern matching dispatch the middleware
public enum MiddlewareChainType {
    case Next
    case Error(ErrorType)
}

Next: Go to the next chain
Error: Abort and respond error

Usage
next(.Next)

next(.Error(fooError))

Abort case might be added

This PR is integrated with #9


MIOpenGEMM make examples failing

user libraru *so builds ok and test (smallgeometrytest) ran ok, however make examples seems to be failing
Ubuntu 2004 / ROCm4.0
:
root@Standard-PC-i440FX-PIIX-1996:~/ROCm/MIOpenGEMM/build# make examples
[ 58%] Built target miopengemm
Scanning dependencies of target apiexample1
[ 59%] Building CXX object examples/CMakeFiles/apiexample1.dir/apiexample1.cpp.o
In file included from /usr/local/include/CL/cl.h:32,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/platform.hpp:10,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/gemm.hpp:7,
from /root/ROCm/MIOpenGEMM/examples/apiexample1.cpp:8:
/usr/local/include/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
|                                                                                ^
[ 61%] Linking CXX executable apiexample1
[ 61%] Built target apiexample1
Scanning dependencies of target print
[ 62%] Building CXX object examples/CMakeFiles/print.dir/print.cpp.o
In file included from /usr/local/include/CL/cl.h:32,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/platform.hpp:10,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/hint.hpp:10,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/oclutil.hpp:9,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/tinytwo.hpp:12,
from /root/ROCm/MIOpenGEMM/examples/print.cpp:6:
/usr/local/include/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
|                                                                                ^
[ 63%] Linking CXX executable print
[ 63%] Built target print
Scanning dependencies of target multifindbase
[ 64%] Building CXX object examples/CMakeFiles/multifindbase.dir/multifindbase.cpp.o
In file included from /usr/local/include/CL/cl.h:32,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/platform.hpp:10,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/hint.hpp:10,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/oclutil.hpp:9,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/tinytwo.hpp:12,
from /root/ROCm/MIOpenGEMM/examples/multifindbase.cpp:7:
/usr/local/include/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
|                                                                                ^
[ 66%] Linking CXX executable multifindbase
[ 66%] Built target multifindbase
Scanning dependencies of target deepbench
[ 67%] Building CXX object examples/CMakeFiles/deepbench.dir/deepbench.cpp.o
In file included from /usr/local/include/CL/cl.h:32,
from /root/ROCm/MIOpenGEMM/examples/deepbench.cpp:14:
/usr/local/include/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
|                                                                                ^
[ 68%] Linking CXX executable deepbench
[ 68%] Built target deepbench
Scanning dependencies of target accu
[ 70%] Building CXX object examples/CMakeFiles/accu.dir/accu.cpp.o
In file included from /usr/local/include/CL/cl.h:32,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/platform.hpp:10,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/hint.hpp:10,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/oclutil.hpp:9,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/tinytwo.hpp:12,
from /root/ROCm/MIOpenGEMM/examples/accu.cpp:5:
/usr/local/include/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
|                                                                                ^
[ 71%] Linking CXX executable accu
[ 71%] Built target accu
Scanning dependencies of target find
[ 72%] Building CXX object examples/CMakeFiles/find.dir/find.cpp.o
In file included from /usr/local/include/CL/cl.h:32,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/platform.hpp:10,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/hint.hpp:10,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/oclutil.hpp:9,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/tinytwo.hpp:12,
from /root/ROCm/MIOpenGEMM/examples/find.cpp:5:
/usr/local/include/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
|                                                                                ^
[ 74%] Linking CXX executable find
[ 74%] Built target find
Scanning dependencies of target mergecaches
[ 75%] Building CXX object examples/CMakeFiles/mergecaches.dir/mergecaches.cpp.o
In file included from /usr/local/include/CL/cl.h:32,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/platform.hpp:10,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/hint.hpp:10,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/oclutil.hpp:9,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/hyperparams.hpp:13,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/derivedparams.hpp:14,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/kernelcache.hpp:9,
from /root/ROCm/MIOpenGEMM/miopengemm/include/miopengemm/kernelcachemerge.hpp:8,
from /root/ROCm/MIOpenGEMM/examples/mergecaches.cpp:6:
/usr/local/include/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
|                                                                                ^
[ 76%] Linking CXX executable mergecaches
[ 76%] Built target mergecaches
Scanning dependencies of target gemmbench
[ 77%] Building CXX object examples/CMakeFiles/gemmbench.dir/gemmbench.cpp.o
In file included from /usr/local/include/CL/cl.h:32,
from /root/ROCm/MIOpenGEMM/examples/gemmbench.cpp:15:
/usr/local/include/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
|                                                                                ^
/root/ROCm/MIOpenGEMM/examples/gemmbench.cpp: In function int main():
/root/ROCm/MIOpenGEMM/examples/gemmbench.cpp:118:52: error: ceil is not a member of std
118 |       std::min<size_t>(1500, std::max<size_t>(std::ceil(1e11 / (2 * gg.m * gg.k * gg.n)), 2));
|                                                    ^~~~
make[3]: *** [examples/CMakeFiles/gemmbench.dir/build.make:63: examples/CMakeFiles/gemmbench.dir/gemmbench.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:439: examples/CMakeFiles/gemmbench.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:284: examples/CMakeFiles/examples.dir/rule] Error 2
make: *** [Makefile:212: examples] Error 2
root@Standard-PC-i440FX-PIIX-1996:~/ROCm/MIOpenGEMM/build#

Hi @gggh000
Thanks fr reaching out.
I am not sure why you have shared log as lines with strike-through.
Can you please share the steps to reproduce the problem and clear log.
Thank you.

Hi @gggh000
Can you please share the steps to reproduce the problem and clear log.
Thank you.

Hi @gggh000
Thanks fr reaching out.
I am not sure why you have shared log as lines with strike-through.
Can you please share the steps to reproduce the problem and clear log.
Thank you.

not sure why it crossed out. I just pasted and github is converting the format. I will post the repro steps.

To repro, you just do a "make examples" from build directory:
root@guest:~/ROCm/MIOpenGEMM/build# cmake ..
There is an error however I tried with " 'cmake -DCMAKE_CXX_FLAGS=" -std=c++11 -Wall -Wextra -pedantic" but failed as well.

----------------------------------- ERROR -----------------------------------

The variable 'CMAKE_CXX_FLAGS' should only be set by the cmake toolchain,
either by calling 'cmake -DCMAKE_CXX_FLAGS=" -std=c++11 -Wall -Wextra -pedantic"' or
set in a toolchain file and added with
'cmake -DCMAKE_TOOLCHAIN_FILE='.
-----------------------------------------------------------------------------

CMake Warning at /opt/rocm/share/rocm/cmake/ROCMChecks.cmake:37 (message):
The toolchain variable 'CMAKE_CXX_FLAGS' is modified in the CMakeLists.txt.
Call Stack (most recent call first):
examples/CMakeLists.txt:9999 (rocm_check_toolchain_var)
examples/CMakeLists.txt:5 (SET)

----------------------------------- ERROR -----------------------------------

The variable 'CMAKE_CXX_FLAGS' should only be set by the cmake toolchain,
either by calling 'cmake -DCMAKE_CXX_FLAGS=" -std=c++11 -Wall -Wextra -pedantic"' or
set in a toolchain file and added with
'cmake -DCMAKE_TOOLCHAIN_FILE='.
-----------------------------------------------------------------------------

CMake Warning at /opt/rocm/share/rocm/cmake/ROCMChecks.cmake:37 (message):
The toolchain variable 'CMAKE_CXX_FLAGS' is modified in the CMakeLists.txt.
Call Stack (most recent call first):
tests/CMakeLists.txt:9999 (rocm_check_toolchain_var)
tests/CMakeLists.txt:5 (SET)
-- Could NOT find LATEX (missing: LATEX_COMPILER)
Latex builder not found. To build PDF documentation run make in /root/ROCm/MIOpenGEMM/doc/pdf, once a latex builder is installed.
-- Configuring done
-- Generating done
-- Build files have been written to: /root/ROCm/MIOpenGEMM/build
root@sriov-guest:~/ROCm/MIOpenGEMM/build# make
[100%] Built target miopengemm
root@sriov-guest:~/ROCm/MIOpenGEMM/build# make examples
[ 58%] Built target miopengemm
[ 59%] Building CXX object examples/CMakeFiles/gemmbench.dir/gemmbench.cpp.o
In file included from /opt/rocm/opencl/include/CL/cl.h:32:0,
from /root/ROCm/MIOpenGEMM/examples/gemmbench.cpp:15:
/opt/rocm/opencl/include/CL/cl_version.h:34:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
#pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
^
/root/ROCm/MIOpenGEMM/examples/gemmbench.cpp: In function 'int main()':
/root/ROCm/MIOpenGEMM/examples/gemmbench.cpp:118:52: error: 'ceil' is not a member of 'std'
std::min<size_t>(1500, std::max<size_t>(std::ceil(1e11 / (2 * gg.m * gg.k * gg.n)), 2));
^~~~
/root/ROCm/MIOpenGEMM/examples/gemmbench.cpp:118:52: note: suggested alternative: 'cerr'
std::min<size_t>(1500, std::max<size_t>(std::ceil(1e11 / (2 * gg.m * gg.k * gg.n)), 2));
^~~~
cerr
examples/CMakeFiles/gemmbench.dir/build.make:62: recipe for target 'examples/CMakeFiles/gemmbench.dir/gemmbench.cpp.o' failed
make[3]: *** [examples/CMakeFiles/gemmbench.dir/gemmbench.cpp.o] Error 1
CMakeFiles/Makefile2:679: recipe for target 'examples/CMakeFiles/gemmbench.dir/all' failed
make[2]: *** [examples/CMakeFiles/gemmbench.dir/all] Error 2
CMakeFiles/Makefile2:605: recipe for target 'examples/CMakeFiles/examples.dir/rule' failed
make[1]: *** [examples/CMakeFiles/examples.dir/rule] Error 2
Makefile:368: recipe for target 'examples' failed
make: *** [examples] Error 2

Thanks @gggh000
I am able to reproduce the problem.
I will try to help you or else I will reach MIOpen team for further help if needed.
Thank you.

Hi @gggh000
Got an update for you.
Issue is resolved with below steps now, can you please follow the same.
git clone https://github.com/ROCmSoftwarePlatform/MIOpenGEMM -b rocm-4.1.x && cd MIOpenGEMM/
mkdir build && cd build/
cmake ..
make miopengemm
sudo make install
Thank you.


Unable to obtain a JavascriptEngine

Describe the bug
Running application on device with real AdUnits and on simulator with Test Ad Units. I counter an error saying
Sending plugin error: {"save":false,"callbackId":"33634438","pluginId":"AdMob","methodName":"prepareInterstitial","success":false,"error":{"message":"Unable to obtain a JavascriptEngine."}}
Ad failed to load : 0
File: https://localhost/main.46b33a8cc361aa8b.js - Line 1 - Msg: ERROR Error: Unable to obtain a JavascriptEngine.

To Reproduce
Run the demo in android studio using ionic cap open android and chose latest android 14.0 in simulators. User will see no Ads loaded.
Expected behavior
Ad should be loaded
Desktop (please complete the following information):
None
Smartphone (please complete the following information):

Device: Pixel 7 Pro API 34
OS: Android 14
Browser chrome
Version "@capacitor-community/admob": "^5.3.1"

Additional context
It is related to WebView in latest Android versions.

this might fix but I have not tested on device yet but its working on android 14 simulator.
dependencies {
    implementation("androidx.javascriptengine:javascriptengine:1.0.0-beta01")
}

variable.gradle
minSdkVersion = 26


Localisation of Shift Left for Hindi.

Please describe why this term needs to be updated
Page content - https://glossary.cncf.io/shift-left/
Shift-left.md is not available in hindi .
Please describe why this term needs to be updated

Shift-left.md term available in English only but This term also needs to be Localized in Hindi.
visit on page- https://glossary.cncf.io/shift-left/

Hey, @abhay-raj19  I would like to work on this!
Assign it to me :)

Hey @Manthan1313Github good to see you here but I have raised this issue yesterday only and I have not been assigned yet.
first of all i will work on it .

@abhay-raj19 yes, sorry. you can take this.

/assign @abhay-raj19

Any Updates on this issue?

will raise up the PR by the end of the day.


Limit reading CharBuffer.array() to CharBuffer.limit() to avoid additional NULL characters at the end of some inputs

It is not documented explicitly, but CharBuffer.array() "Returns the char array that backs this buffer", so the buffer may have excess space at the end that was not used for the input.
(See also the explanation why https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6442955 is not a bug:

The Charset Buffer API is optimized for efficiency, not convenience. Buffer copies are avoided, but this means some buffers have extra elements between their limit and their capacity.

)
In a recent change to DataUtil the array() was passed without restricting its use to the length of limit(), hence adding NULL characters at the end.
Fixed by passing the value of limit() to the CharArrayReader that is actually reading from the array().

Thanks! Merged.


add Create, Edit, Delete a post

This PR will add code for the Create, Edit and Delete a post
In this PR, 243 additions 88 deletions lines of code

some files contain only 5 to 6 lines of code change
some files are just related to backend files

Please review this PR and give your feedback

Live Preview

Thank you for reviewing,


Bunch of fixes

Fixed few bugs related to latest commit in the history storing.
Addressed these changes:

Changed history.json path to work cross-platform
Fixes error when the history file contains an empty array(on the suggestion system)
Now using relative paths with os's homedir
Added yarn for those(like me) who use it
Fixed electron version(wich should be latest 1.4 and not at least 1.4 wich installs the very latest, wich as you know is broken)
Created a small system to check for the existence of needed files and automatically create them(on first launch or when the user deletes them) [Has to be expanded later on, though for now, it's just to address these issues]

Tested on Ubuntu 16.04 and everything works as expected

Now it's mergeable, tell me if there's something you'd like to change

Oh, thank you very much! You did great job for me (I was planning to fix these bugs)! Thumbs up 👍


Vera thermostat does not show up in HA after upgrade to 0.47

Home Assistant release: 0.47
Python release: 3.4.2
Component/platform: vera thermostat
Description of problem: Vera thermostat does not show up in HA after upgrade to 0.47
Expected: on release 0.46.1 Thermostat was working as it should
Problem-relevant configuration.yaml entries and steps to reproduce:
vera_controller_url: http://vera.ip:3480/

Additional info:
Getting such error for every thermostat after upgrade to 0.47
2017-06-18 18:08:45 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
result = next(coro)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity.py", line 245, in async_update_ha_state
attr = self.state_attributes or {}
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/climate/init.py", line 417, in state_attributes
self._convert_for_display(self.current_temperature),
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/climate/vera.py", line 112, in current_temperature
return self.vera_device.get_current_temperature()
File "/home/mick/.homeassistant/deps/pyvera/init.py", line 841, in get_current_temperature
return float(self.get_value('temperature'))
TypeError: float() argument must be a string or a number, not 'NoneType'

Hrm, interesting that the thermostat is returning None for the temperature, but I'll work on a pull request to support that.

Thank you! That is very standard config of Vera edge and Danfoss LC-13 thermostat. Nothing really changed from initial setup.

Just anFYI- I have 2 stelpro zwave thermostats connected through my Vera which get pulled into HASS and they seem to be working fine with 0.47

Probably just connected to one exact model of thermostat: http://heating.danfoss.com/PCMPDF/living-connect_OEM_VQIDA15T_013R9563.pdf

I have the same issue after upgrading from 0.46.0 to 0.48.0
2017-07-04 12:51:43 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
    result = next(coro)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity
    new_entity, self, update_before_add=update_before_add
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 238, in async_add_entity
    yield from entity.async_update_ha_state()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 245, in async_update_ha_state
    attr = self.state_attributes or {}
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/climate/__init__.py", line 417, in state_attributes
    self._convert_for_display(self.current_temperature),
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/climate/vera.py", line 112, in current_temperature
    return self.vera_device.get_current_temperature()
  File "/home/homeassistant/.homeassistant/deps/pyvera/__init__.py", line 841, in get_current_temperature
    return float(self.get_value('temperature'))
TypeError: float() argument must be a string or a number, not 'NoneType'
2017-07-04 12:51:43 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
    result = next(coro)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 381, in async_process_entity
    new_entity, self, update_before_add=update_before_add
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 238, in async_add_entity
    yield from entity.async_update_ha_state()
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 245, in async_update_ha_state
    attr = self.state_attributes or {}
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/climate/__init__.py", line 417, in state_attributes
    self._convert_for_display(self.current_temperature),
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/climate/vera.py", line 112, in current_temperature
    return self.vera_device.get_current_temperature()
  File "/home/homeassistant/.homeassistant/deps/pyvera/__init__.py", line 841, in get_current_temperature
    return float(self.get_value('temperature'))
TypeError: float() argument must be a string or a number, not 'NoneType'

My Thermostats are danfoss Living Connect (z-Wave Radiator Thromostats)

Anything that can be done to further debug this? It's summer now so I don't need the thermostats working. But:
Winter is coming!

Issue is resolved in pyvera, just need to make a pull request to update the version and we should be set. I'll try to do that soon

This pull request updated pyvera: https://github.com/home-assistant/home-assistant/pull/8437


What is the licence for this repository?

Pcx used Unlicense but a standard OSI approved licence would be preferable. I'm personally interested in potentially using this in Open Brush which is Apache 2.0 licenced so something compatible would be a great help.

Hi. Thank you for your information. This repository is not licensed yet.

I suspect you mean "we haven't chosen a licence yet". All code is automatically copyrighted. It's a good idea to make your intent clear - many people assume that the lack of a licence on Github means "it's open source but we forgot to add a licence". If your intent is for this to be closed source then say that explicitly. (although, I would question why you haven't just made the repo private...).
If you did want to make this open source than that it's usually as simple as picking between MIT and GPLv3


missing video on LSFB-iso

While, trying to download the LSFB dataset, as described here, I got an error message
"FileNotFoundError:
Could not download the desired file: videos/CLSFBI0307A_S008_B_652647_652959.mp4.
Resource not found (https://lsfb.info.unamur.be/static/datasets/lsfb_v2/isol/videos/CLSFBI0307A_S008_B_652647_652959.mp4)"
and this error message stopped the downloading process, having downloaded only 115 isolated SL videos out of the 96184 (considering the instances.csv file).

Hello, we have identified the problem. We are currently working on it. As soon as it's fixed and the files are up to date on the server, we'll let you know! Sorry for the inconvenience.

The server problem should now be solved. You can now try downloading the dataset! Please let us know if it works, or if it doesn't.

Things are better, the download process loads till 52%, but...
Videos for 120739 instances:  52%|████████████▉            | 62320/120739 [00:00<00:00, 168304.40files/s]
Traceback (most recent call last):
File "", line 1, in
File ".../lib/python3.9/site-packages/lsfb_dataset/download/downloader.py", line 224, in download
self._download_files(
File ".../lib/python3.9/site-packages/lsfb_dataset/download/downloader.py", line 201, in _download_files
thread_map(
File ".../lib/python3.9/site-packages/tqdm/contrib/concurrent.py", line 69, in thread_map
return _executor_map(ThreadPoolExecutor, fn, *iterables, **tqdm_kwargs)
File ".../lib/python3.9/site-packages/tqdm/contrib/concurrent.py", line 51, in _executor_map
return list(tqdm_class(ex.map(fn, *iterables, chunksize=chunksize), **kwargs))
File ".../lib/python3.9/site-packages/tqdm/std.py", line 1182, in iter
for obj in iterable:
File "/usr/lib/python3.9/concurrent/futures/_base.py", line 609, in result_iterator
yield fs.pop().result()
File "/usr/lib/python3.9/concurrent/futures/_base.py", line 439, in result
return self.__get_result()
File "/usr/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File ".../lib/python3.9/site-packages/lsfb_dataset/download/downloader.py", line 180, in _download_file
raise FileNotFoundError(
FileNotFoundError:
Could not download the desired file: videos/CLSFBI4403A_S089_B_299833_300889.mp4.
Wrong  HTTP status (500) for request (https://lsfb.info.unamur.be/static/datasets/lsfb_v2/isol/videos/CLSFBI4403A_S089_B_299833_300889.mp4).

Hello,
To give some insight into what happened.
An incomplete data pre-processing pipelines caused the initial error. We added new annotated videos to the dataset and the landmarks were correctly uploaded on the dataset server but not the video.
The HTTP status 500 error is still being investigated. I was also downloading the dataset to test if everything was fine. Maybe it was too much for the little server we got.

Thank you for your quick answer and for the time you spend to solve the problem. I appreciate it because I would like to use your dataset in my experiments.

Ok it seems that it was an error in an .htaccess file. Now you can retry to download.

You should close the issue. I downloaded all videos.


Able to send multiple emoji by drag and drop

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open the website
Open any chat from LHN
click emoji picker
drag and drop multiple emoji in the composer

Expected Result:
Multiple emoji shouldn't be sent
Actual Result:
Able to send multiple emoji by drag and drop
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.55-3
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/43996225/05563f26-5213-471e-b3f2-b92396519342
https://github.com/Expensify/App/assets/43996225/4d38479a-f256-4eda-be9a-1a4d7f1011d5
Expensify/Expensify Issue URL:
Issue reported by: @misgana96
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692436999667899
View all open jobs on GitHub

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

Proposal
Please re-state the problem that we are trying to solve in this issue.
Able to send multiple emoji by drag and drop
What is the root cause of that problem?
The Text is selectable by default. When we are selecting the emojis by dragging, it selects the emojis as text here.
https://github.com/Expensify/App/blob/03cf0b14f82a41db004dfee27799e3cea1608ee5/src/components/EmojiPicker/EmojiPickerMenuItem/index.js#L83
What changes do you think we should make in order to solve the problem?
Just add userSelect style to none by doing this
<Text style={[styles.emojiText, styles.userSelectNone]}>{this.props.emoji}</Text>

What alternative solutions did you explore? (Optional)

Proposal
Please re-state the problem that we are trying to solve in this issue.
Able to send multiple emoji by drag and drop
What is the root cause of that problem?
This happened after the issue which we've managed to prevent the Drop for unwanted things like links, text etc.
Ex: If we drag text into composer we would be getting the DnD banner we show for files.
Before that also this could happen, but it didn't because of the banner we show on Drop.
This issue happens when we drop the dragged content to into textinput only. which is causing the issue because we're not handling any drop events for textinput and textinput defaulty accept any content dropped into it.
Demo
https://github.com/Expensify/App/assets/59088937/e4a43fce-c0c5-46ac-95af-bae89b6b5279
If you observe the above video when we drag emoji content into the input it's getting unwanted focus which is causing the issue here.
What changes do you think we should make in order to solve the problem?
One solution could be disabling the input here, but that could cause the regressions like when we click on the input while the emoji modal is opened it won't close actually it should because of the disabled state input won't process any events causing the emoji modal to keep opened.
As a normal user who is using the composer, will select the input after they completed their work with emoji so this wouldn't solve the entire issue.
Another solution is that we let the composer get focused and prevent drop event so that even composer is focused content won't get pasted.
useEffect(() => {
    if (!textInput.current) return;
    const listener = textInput.current.addEventListener('drop', (event) => {
        event.preventDefault();
        return false;
    });
    return () => {
        textInput.current.removeEventListener('drop', listener);
    };
}, [textInput]);

What alternative solutions did you explore? (Optional)
NA
Result
https://github.com/Expensify/App/assets/59088937/ca80999c-2e9b-4343-be6a-24928a886bec

Yes it looks like a cool feature actually

I don't really see this as a problem to fix either, tbh. @arosiclair, what do you think?

It doesn't only happen with emojis.. what ever you drag into composer it's get pasted.
https://github.com/Expensify/App/assets/59088937/72ce3920-e64a-42eb-bcf2-c7e816e1e842

It doesn't only happen with emojis.. what ever you drag into composer it's get pasted.
Kapture.2023-08-21.at.16.21.54.mp4

We should not stop everything from getting pasted.
I think it should be upto the engineering team to decide which text is selected.

I don't really see this as a problem to fix either, tbh. @arosiclair, what do you think?

Agreed this looks more like a feature not a bug. I'd say we close this out

Cool, closing it out then! :)


Directive for using element size instead of the screen size for responsivenes

Our application can be standalone (full page app) or embedded (i.e. fills certain div of the page) so we need to make the application responsive to the "parent" div size not the screen size for it to work in all situations.
So far this library seems like the best way to make our app responsive and the only feature missing is to be able to define a div which size is used instead of the screen size. My current thought is that there could be *responsive-window directive set to true/false (active or not) to define the component which size is used instead of the screen size.
I have just started using angular2 a week a go so I decided to ask if this kind of feature would make sense before fully jumping into implementing it. I already made a quick test to define the "responsive window/root/screen" via DOM selector and to fetch the element size via querySelector and it works nicely, but currently I think the directive approach would be more efficient and perhaps the best way to implement this feature.
So do you think this kind of feature would make sense and is the suggested approach best way to go in your opinion?

Thanks! I will separate directives that do not have to load the entire library if you want to use a single directive. And I will look to add the option to calculate the size through the div father in responsive directive and responsive-info.
It would be something like this? : )

👍

I made a quick implementation of adding *responsive-window directive which "registers" itself for the config class to be used as the reference width instead of the window width. The advantage is that through the directive I can get the element reference without any DOM queries and it works even if the element is created on the fly (lazy routes for example). Although this isn't as useful as your suggestion since you can only set one "master" parent window for the width.
So I like your suggestion a lot, but wouldn't it be more efficient to use directive to name the parent? For example:
? This way it would be even possible to make it so that if you name a div as "window" then that could be the default so no getSize would need to be used if you just want make everything responsive to one master div (this would be our use case).
If you think that is a good idea I could adapt my implementation to that (i.e. add support for naming the window and defining it via getSize) and then make a pull request so you could make my implementation better :)

I made a pull request from my implementation, please feel free to use that or make a better one. As I mentioned I only started with Angular 2 couple weeks a go so my implementation might not be the best one :).
I changed my implementation based on your comment so that you can now also define the element to be used for the sizes operator in addition to defining a main window (using 'window' as the name) for all responsive operations.

Great! You have done a great job. I will separate directives in bundles and when this this. I update the demo and get on npm. :)
Now I'll add you as a collaborator.
If you see any need to change or you would like to add something else. ; )
Thank you very much.

I tried the directive in the demo and I can not make it work. Could you give me an example of use that works for you with the demo. Will update the readme with that example as verify that it works correctly. : )
Thanks!


accidental axiom in MAxO

MAxO includes the axiom:
inheres in rdfs:subClassOf radioactive
I don't know how it got there, but it should be deleted.
Thanks @hlapp.

I have no idea how/when that happened. WIll take care of it ASAP.
Thank you.


Error in log file

This error that is seen in the log, can not be removed ??? For example, as you use a boat, the log fills up again and again
Using latest version
[10:33:08] [Server thread/ERROR]: java.lang.Exception: Collision box is too big! AABB[-2.8665841650000006E7, 70.48636387177976, -1950.2073794882745] -› [-608.1301989108324, 72.28636382409604, 1.2290058650000006E7] returning empty list! this might break things

I have the same issue. I also sometimes get this random crash while flying
message.txt


cant get the names on the bottom axis

Hi there.
Im trying to reproduce the chart as shown.
I cant get the names under each column can you please advise?

did you set the xAxis type to category?

Hi,
thanks for coming back to me.
I start a new EasyChart and get this .. >>> http://screencast.com/t/y9eyjZLAb http://screencast.com/t/y9eyjZLAb
Thanks
Jon

On 14 Sep 2016, at 15:02, Thomas Daem<EMAIL_ADDRESS>wrote:
did you set the xAxis type to category?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bestuurszaken/easychart/issues/29#issuecomment-247022739, or mute the thread https://github.com/notifications/unsubscribe-auth/AE70OPGaEKretxcYWgG351FblFOD4bRcks5qp_55gaJpZM4J8swv.

I get this..

On 14 Sep 2016, at 15:05, Thomas Daem<EMAIL_ADDRESS>wrote:
https://cloud.githubusercontent.com/assets/3327763/18515250/faae68ba-7a94-11e6-9a88-68bbf0e80b16.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bestuurszaken/easychart/issues/29#issuecomment-247023543, or mute the thread https://github.com/notifications/unsubscribe-auth/AE70OGETfsXuFBf5KWKh0vhQg2WSUlL-ks5qp_8OgaJpZM4J8swv.

Hope this works for you: https://vimeo.com/182706675/67a9b4dbe3

thats great.
thanks
Im smuggling with getting edit chat working….
at the moment I have a button on html page that opens Easychart. need to being in the current settings and then allow the user to modify them and save them.
is this difficult to do?
Ive been battling for over a week now.

On 14 Sep 2016, at 15:23, Thomas Daem<EMAIL_ADDRESS>wrote:
Hope this works for you: https://vimeo.com/182706675/67a9b4dbe3 https://vimeo.com/182706675/67a9b4dbe3
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bestuurszaken/easychart/issues/29#issuecomment-247029359, or mute the thread https://github.com/notifications/unsubscribe-auth/AE70OBzBoEluO6NCu5bnOxsCBYYKrl8Aks5qqANQgaJpZM4J8swv.

That relates to #22 and #27.
Once #27 is added it will be pretty easy to do.

at present can I use render.js?

On 14 Sep 2016, at 15:50, Thomas Daem<EMAIL_ADDRESS>wrote:
That relates to #22 https://github.com/bestuurszaken/easychart/issues/22 and #27 https://github.com/bestuurszaken/easychart/issues/27.
Once #27 https://github.com/bestuurszaken/easychart/issues/27 is added it will be pretty easy to do.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bestuurszaken/easychart/issues/29#issuecomment-247038527, or mute the thread https://github.com/notifications/unsubscribe-auth/AE70ODkuFFkjuKz_7axKZWeNKyGI8qSRks5qqAmqgaJpZM4J8swv.

Problem is, right now you can't use the render build and the app build at the same time.
With #27 this will be fixed.

ok.
would a donation get this built sooner :)

On 14 Sep 2016, at 15:54, Thomas Daem<EMAIL_ADDRESS>wrote:
Problem is, right now you can't use the render build and the app build at the same time.
With #27 https://github.com/bestuurszaken/easychart/issues/27 this will be fixed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/bestuurszaken/easychart/issues/29#issuecomment-247040100, or mute the thread https://github.com/notifications/unsubscribe-auth/AE70OM2idzBUKtxuUxqXkggmUwakWCnrks5qqArAgaJpZM4J8swv.

see #27 for follow up


DS-3937 Add support for styling and rows in the submission-forms.xml

This PR is the first part of https://github.com/DSpace/DSpace/pull/2103
It includes:

add row tag in the submissionform-definition so to allow to put multiple fields in the same row in the UI
add a style tag to provide additional information (as for instance extra css classes) to apply to the field in the UI

Coverage increased (+0.03%) to 27.256% when pulling 7aed10c1b1a40dd78f5b211395030e54a7f9682b on inputform-rows into c0066d2a2fa4afacadba2bf36f20d94cd818217c on DS-3580_workspaceitem.

I have 2 questions for this PR:

How can users migrate to the new submission-forms.xml format? I don't see a script to convert their existing submission forms
Can you add Integration Tests for the customizations?

merged with the latest code in https://github.com/DSpace/DSpace/pull/2187


Google Form for Feedback

Raw form can be edited here
Currently integrated into the site here

Ref: 5b359eb


Beamline Objects Wiki Pages (Catalogue)

This is not necessary anymore. The new optical elements article covers the important features.


Generate updated static landscapes

Going to the URL and clicking files changed should let you see all of the changes to landscape.yml since you created the 2.0 static landscape.
https://github.com/cncf/landscape/compare/a42c0cca198f96a2e79d70e41bc9f7b832cd8272...master#diff-399df63a0dc3d44f4844720cbfc58105

Other corrections:

Cumulus in networking is closed source
VMWare Haret in service discovery is open source
IronDB in monitoring is closed source

Closed.


chore: Remove en-us from azure.microsoft.com links

This matches link locale guidelines

Thanks, @nschonni !


After the move to block vol. mode as the default in v0.2.0 volume snapshots are not working with CDI

Describe the bug
I'm using KCLI to deploy VM's and K3s clusters on-top of Harvester. KCLI integrates with KubeVirt by way of the kubeconfig one can pull out from an installed Harvester cluster.
In 0.1.0 of Harvester CDI cloning worked without issues. In 0.2.0 it doesn't.
To Reproduce
Steps to reproduce the behavior:

Setup Harvester v0.2.0
Install KCLI
Configure KCLI to use the Harvester platform:
Here's how
Execute kcli download image ubuntu2004 to download the Ubuntu 20.04 OS img
Execute kcli create vm -i ubuntu2004

The above should request for a VM named something randomly generated to be created on the Harvester platform. Part of that process entails requesting CDI to create a clone of the OS img PVC ....
A datavolume is created and a volume snapshot as well. However, executing kubectl describe ... on the volumesnapshot the newest event is  Normal  CreatingSnapshot  41m   snapshot-controller  Waiting for a snapshot default/RANDOM_NAME to be created by the CSI driver. and nothing more happens.

It can potentially be reproduced by just executing:
kubectl create -f - <<EOF
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
 name: "test-clone"
spec:
 pvc:
   accessModes:
     - ReadWriteOnce
   resources:
     requests:
       storage: 25Gi
   volumeMode: Block
 source:
   pvc:
     name:      ubuntu2004
     namespace: default
EOF

After one have downloaded the ubuntu2004 image with KCLI. The above DataVolume will create a volumesnapshot request that will also just hang and do nothing.

The initial symptom that I exeperienced/saw was the following err. in the CDI deployment pod, the kubernetes events and elsewhere: the object has been modified; please apply your changes to the latest version and try again ... but that's just a symptom as I've later found out.
Expected behavior
That volume snapshots are working with Longhorn now that Longhorn seems to advertise that it does so. Because, the KubeVirt CDI component wouldn't try to use smart cloning and volume snapshots if the CSI driver wasn't advertising it.
Environment:

Harvester ISO version: v0.2.0
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630):

Two Dell PowerEdge R710's
One HP ProLiant G9

Additional context
Slack RancherLabs Harvester channel debugging thread > https://rancher-users.slack.com/archives/C01GKHKAG0K/p1621182290393100
Slack Kubernetes virtualization channel debugging thread > https://kubernetes.slack.com/archives/C8ED7RKFE/p1621161501370600

Looking forward to hearing from the project. And let me know if I need to elaborate further on xyz 👍

For me the biggest question is why are volume snapshots not working. The snapshot remains pending forever on something.

Indeed, the VM creation is pending on the volume snapshot.
Here's how you can fix it:

Go to  Longhorn UI via https://<Harvester_Management_IP>:30444/k8s/clusters/local/api/v1/namespaces/longhorn-system/services/http:longhorn-frontend:80/proxy/
Follow the instruction to set the Longhorn backup target.
In Longhorn UI, go to the Volume page, find the volume for your ubuntu2004 image, click the attach operation for it.

After that, PVC from the volume snapshot should be provisioned successfully and the VM should be running.
Explanation:
A volume snapshot in the sense of Kubernetes represents a longhorn backup.
To create a longhorn backup, the backup target needs to be set and the volume needs to be attached.
I think this is a Longhorn configuration issue and there's nothing we can do on either Harvester or CDI side. Let me know if you have any further questions.


Doesn't work with HTTPS

I haven't looked into it too thoroughly, but when I setup ShamRack with a domain, say example.com, then hit https://example.com, it still hits example.com (doesn't go through ShamRack).

ShamRack binds handlers to a hostname/port combination, with the port defaulting to 80.  To register a handler for an HTTPS URL, you'll want to bind to port 443, e.g.
ShamRack.at("www.greetings.com", 443) do |env|
  ["200 OK", { "Content-type" => "text/plain" }, ["Hello, world!"]]
end

puts open("https://www.greetings.com/").read

Excellent! Thanks so much.


Enums with associated values

Hi! I have the JSON pasted below (similar to that of #325)
[
  {
    "type": "cat",
    "name": "matisse",
    "lives": 9
  },
  {
    "type": "dog",
    "name": "fido",
    "trained": 1
  }
]

I also have two structs (I don't want to use classes) that represent a Cat and a Dog, and an Animal enum with two cases with associated values.
I would like to obtain an [Animal] from the JSON, and I have written a decode function for the Animal enum that switches between the two types.
Everything seems to work for this basic JSON (although the code is a bit messy), but I would like to have an opinion from you guys on this approach. Do you see any potential flaws? Is there an easier way to do this?
Thanks!
enum Animal {
    case ACat(Cat)
    case ADog(Dog)
}

struct Cat: Decodable {

    let name: String
    var lives: Int

    static func create(name: String)(lives: Int) -> Cat {
        return Cat(name: name, lives: lives)
    }
    static func decode(j: JSON) -> Decoded<Cat> {
        return Cat.create
            <^> j <| "name"
            <*> j <| "lives"
    }
}

struct Dog: Decodable {

    let name: String
    var trained: Bool

    static func create(name: String)(trained: Bool) -> Dog {
        return Dog(name: name, trained: trained)
    }
    static func decode(j: JSON) -> Decoded<Dog> {
        return Dog.create
            <^> j <| "name"
            <*> j <| "trained"
    }
}

extension Animal: Decodable {

    static func decode(j: JSON) -> Decoded<Animal> {

        switch j {
        case let .Object(obj):
            if let type = obj["type"] {
                switch type {
                case .String(let s):
                    switch s {
                    case "cat":
                        let cat = Cat.decode(j)
                        switch cat {
                        case .Success(let v):
                            return pure(.ACat(v))
                        case .Failure(let e):
                            return .Failure(e)
                        }
                    case "dog":
                        let dog = Dog.decode(j)
                        switch dog {
                        case .Success(let v):
                            return pure(.ADog(v))
                        case .Failure(let e):
                            return .Failure(e)
                        }
                    default:
                        return .Failure(.Custom("unrecognized type"))
                    }
                default:
                    return .typeMismatch("not a string", actual: type)
                }
            }
            return .Failure(.Custom("missing type"))
        default:
            return .typeMismatch("not an object", actual: j)
        }
    }
}

Hi @lorlab -- I came up with this, which isn't quite equivalent, but does something very similar:

extension Animal: Decodable {
  static func decode(j: JSON) -> Decoded<Animal> {
    return decodeCat(j) <|> decodeDog(j)
  }

  static func decodeCat(json: JSON) -> Decoded<Animal> {
    return { .ACat($0) } <^> Cat.decode(json)
  }

  static func decodeDog(json: JSON) -> Decoded<Animal> {
    return { .ADog($0) } <^> Dog.decode(json)
  }
}

Instead of relying on the type key in the JSON, we're using the alternative operator (<|>) to first attempt to decode into a .ACat, and if that fails, decode into .ADog.
You could built the type key check into each of the functions decodeCat or decodeDog, if you wish :)

Interesting! Will this also work for more than 2 cases? I only gave two in my example but I do in fact have more...

Yep, you sure can! Just keep chaining the alternative operator, e.g.
extension Animal: Decodable {
  static func decode(j: JSON) -> Decoded<Animal> {
    return decodeCat(j)
      <|> decodeDog(j)
      <|> decodeRabbit(j)
      <|> ...
  }

OK thanks!


Fixed typo (exapmle)

@hubalazs : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Confirmed correction. Thanks.


Out of box support for jscs

http://jscs.info/

JSCS is a code style linter for programmatically enforcing your style guide. You can configure JSCS for your project in detail using over 90 validation rules, including presets from popular style guides like jQuery, Airbnb, Google, and more.

Adoption rates are high, it'd be great to see support for this built into this plugin

Seems like a good idea. But currently js-beautify is set as the default formatter. So this will have to wait until multiple formatter support is implemented.

What work is required to allow multi-formatter support?

I started working on it at branch multiple-formatters.
This rewrite will also address some other issues and will break backward compatibility.
I expect it to be finished in a few days.

Could you provide a definition for jscs (just pasting it in this thread is fine by me)  and test it on the multiple-formatters branch? That would be greatly appreciated.

Where in the plugin do I do this?

I've added it and things seem to work.

Something seems to have broke my autocmd:
autocmd BufWritePre,FileWritePre *.js silent! :Autoformat<CR>

@faceleg Sorry to respond so late.
Does the problem occur at the multiple-formatters branch, or at the master branch?

Multiple formatters branch.

This is very peculiar. I will try to fix it.

Found it. You must not put the  at the end. This should work:
autocmd BufWrite *.js :Autoformat

Oh you mean the <cr>?

Oh, ha, it is interpreted as html :)
Yes, indeed

This should be fixed in the new update.

Thanks, great work!


osx: performance issue when using cgo

What version of Delve are you using (dlv version)?
99cad1044b695e4bd75b0431c4b25982636e4a71
What version of Go are you using? (go version)?
go 1.9.2
What operating system and processor architecture are you using?
osx 10.12.6 / amd64
What did you do?
debug app with cgo present
What did you expect to see?
same network traffic between debug server and delve as an app without cgo
What did you see instead?
a lot more network traffic (around 30 times more)

Using the attached project, set a breakpoint on the indicated line and then step to the next line while monitoring the traffic between delve and debugserver.
Then, follow the same steps but disable the import cgo line.
awesomeProject.zip
When running from the CLI, the application crashes in my case, with a panic saying that there was a signal while nexting (or some similar message but I believe it might be because of how I run the debugging setup, if you want that exact error, please let me know).
I've attached the IDE logs that are relevant for delve, the IDE always sends the same requests, but in the CGO case, about 7MB worth of logs are generated while in the non-CGO case about 90KB.
idea logs.zip
I'll dig more around this in the coming days as now I'll have more time to check this issue out but in case you have some ideas about this, that would be awesome.
Thank you for your time and help.
Original issue: https://youtrack.jetbrains.com/issue/GO-4923

On a quick look, I can't replicate the same issue on Windows, I'll try Ubuntu later.


The accuracy is lower than the results reported in the paper.

The arguments are fixed.
we run python run_experiment.py --do_train", which means that we use **trainval_unbiased_all_fully** and testdev_pred" ( The data is directly from Meta)。
The results are as follows. We only get 55% (vs 65 in paper). Is there any wrong or I miss some important details?

You can reproduce some basic results via the mnmm data and the current code. But if you wish to reproduce our best results in the leaderboard，you need to check the following.
First，our paper reports results on the test split. I don't think you can get these results locally.
Second，I don't think the numbers on the validation sets are so low. Did you change the batch size or train long enough epochs？
Third，if you check the mnmm's code，I remember that they treat the final answers as middle results. This is different from ours. You need to write additional codes to generate the middle results of routines.
Forth，some training data is simply wrong. If you look at the training data，you would find out that some occasionally points to nonexisting objects. We did a lot of dirty work to make the training data right. Especially the original data is wrong in some classes so their performances are poor.
Fifth，the original programs use different terms to represent the same meanings. For example，they use on，on the top of， to the top of，... to represent the same meaning. We made them into uniform forms to achieve good results.

You can reproduce some basic results via the mnmm data and the current code. But if you wish to reproduce our best results in the leaderboard，you need to check the following. First，our paper reports results on the test split. I don't think you can get these results locally. Second，I don't think the numbers on the validation sets are so low. Did you change the batch size or train long enough epochs？ Third，if you check the mnmm's code，I remember that they treat the final answers as middle results. This is different from ours. You need to write additional codes to generate the middle results of routines. Forth，some training data is simply wrong. If you look at the training data，you would find out that some occasionally points to nonexisting objects. We did a lot of dirty work to make the training data right. Especially the original data is wrong in some classes so their performances are poor. Fifth，the original programs use different terms to represent the same meanings. For example，they use on，on the top of， to the top of，... to represent the same meaning. We made them into uniform forms to achieve good results.

OK, I will have a try. Is there any pre-trained model?

I don't have pretrained models at this moment because I have changed my research interests. Sorry for that.

Ok,Thanks.

Hello, have you fully reproduced the results of the paper now? What GPU are you using and how long is the training time?

Ok,Thanks.
I can not find the results in the board

We did not make the results publically available because our results were much lower than the transformer-based SOTA at that time. But please be aware that the SOTA often uses cross-trained features on external datasets such as LXMERT.

Hello, have you fully reproduced the results of the paper now? What GPU are you using and how long is the training time?

Eight 2080Ti should be fine within five days.

lts publically available because our results were much lower than the transformer-based SOT

but how can you obtain the test results without submission？

It's a good question. Almost all the competitions I know, including the GQA competition, can select both visible and non-visible competition. This happens after submission.

It's a good question. Almost all the competitions I know, including the GQA competition, can select both visible and non-visible competition. This happens after submission.

OK，I see.


Switch to circleci

Change
Following APR's deploy flow:

Switch to CircleCi
Add deploy.sh which uploads to ECR and then deploys to K8s

Build failure is because I switched from Travis to Circle and travis doesn't find .travis.yml anymore which I deleted. Once this is merged, I'll removed travis project.


fix: return only "current" iceberg columns

Feature or Bugfix

Bugfix

Detail

wr.catalog.get_table_types returns all columns including Iceberg columns that have been removed from the schema (and are marked with iceberg.field.current: false) that confuses subsequent wr.athena.to_iceberg INSERT's.

Relates

https://github.com/aws/aws-sdk-pandas/issues/2978
https://github.com/apache/iceberg/issues/7584

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 29ec58d9c94c4ab8382329de969b0f598c52e583
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubDistributedCodeBuild6-jWcl5DLmvupS
Commit ID: 29ec58d9c94c4ab8382329de969b0f598c52e583
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: f82fed5f065a4dc0f0153fe7a91044800ed7901c
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubDistributedCodeBuild6-jWcl5DLmvupS
Commit ID: f82fed5f065a4dc0f0153fe7a91044800ed7901c
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubDistributedCodeBuild6-jWcl5DLmvupS
Commit ID: f82fed5f065a4dc0f0153fe7a91044800ed7901c
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: 58c17ae00fb99473d7f7e985be3d1ecf2a3d3df9
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubDistributedCodeBuild6-jWcl5DLmvupS
Commit ID: 58c17ae00fb99473d7f7e985be3d1ecf2a3d3df9
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


F#2437 additional metadata source info

Description

Add  addtional metadata information after explore
Related Issue :

#2437
How Has This Been Tested?

Go to Explore Data Page using lnb
Click Data Card
Check Modal shows proper data
Click See all list Button
Check Modal shows proper data

Need additional checks?
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] I have read the CONTRIBUTING document.
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have added tests to cover my changes.

Additional Context

@thinkcsww
please resolve conflicts.

run build
deploy to 3

@alchan-lee @ufoscw
수정했습니다.

run build
deploy to 3

@thinkcsww

when I change a description of metadata, patch api request error

Tags and Catalogs Input not work.

please remove  tag

please remove "Previous" button

@ufoscw
수정했습니다. 확인 부탁드립니다.

run build
deploy to 3

@thinkcsww

Message is strange after modifying metadata description. (Datasource -> Metadata)

description No line breaks

If no catalog is specified, it should be displayed as blank, not "Unclassified".
Text input instead of the add catalog button

@ufoscw 수정했습니다.

run build
deploy to 3

@thinkcsww

There is no delete button.
typo in text input placeholder ("Search column" - > " Search catalog")

@ufoscw 수정했습니다.

run build
deploy to 3

run build
deploy to 3


Dates don't parse correctly.

Something is seriously wrong with the Date module's time zone handling.. Parsing a UTC date results in the date being cast to local without accounting for the time zone:
th> date.Format():parse("2016-01-05T12:15:43Z")
2016-01-05T12:15:43--5

The result is a local date with the hour incorrectly set. If this were a UTC date, the hour should be 17.
th> date.Format():parse("2016-01-05T12:15:43Z"):hour()
12
th> date.Format():parse("2016-01-05T12:15:43Z").utc
false

But ISO 8601 says that dates with a Z at the end are unambiguously always UTC. See also the related #180 issue which happens because the default printing doesn't account for this either.

Wow, that was misguided code! We should be ok here now. A few new tests would feel good at this point...


Add HW-11, Cypress intro

Add HW-11, Cypress intro

@Alisa-Shevchenko there should be fixed one thing:
You have created PR into my repo, pls create a new PR following this instruction:


unminify CSS and JavaScript before materializing

I have created a new Katalon Studio project VisualInspectionOfCssAndJs v0.1.0. It could a diff report that includes CSS and JavaScript like this:

CSS and JavaScipts are often minified. *.css and *.js file contains lines very very long.  It is a silly idea to take diffs of these minified texts. Just useless.
I want to "prettify" these minified texts (CSS and JS) automatically.

JSON as well.

unminify.com looks good.
https://unminify.com/

Is it worth?
I would never debug the Bootstrap myself. I would only be interested in the code I wrote.
Do I do minifying my JS and CSS? No, I won't.


Categories need localising

At the moment, categories are hard coded in English. Ideally we should have these localised like other pieces of card data.

Given they're token enums, it's probably better to produce a translation mapping document separately

If they aren't localized somewhere in some xml or if it's proven too much of an hassle to find it, the mapping is probably for the best. I would prefer to avoid hardcoded mapping, the day the game add a new category or remove old one, we have to go back to the script and change it, we would have to keep track of the game changes more closely. Maybe make sure that the script alert us if it detects a case like that, this can't be allowed to go silently.
My personal take is I'd rather have no localization than risk having a localization that is bad which is why I haven't personally translated categories, rarities, and the likes for my api. My mother tongue is french so I can translate to that language or put my seal of approval on a french translation.

I've just had a poke around the Gwent files to find this localisation.
They are in the format:
"interface";"card_category_no_decoyable";"Stubborn"
"interface";"card_category_necrophage";"Necrophage"
They are stored in a csv file called
interface_en-us.csv
Which can be found in
/Gwent/GWENT_Data/StreamingAssets/AssetBundles/Localization/en-us/text.en-us
This is a Unity AssetBundle that has to be unpacked using something like UABE.
Note that by default, only the localisation you use in the game is downloaded. You have to launch the game in all of the localisations to get all of the folders for this.

It is a lot of effort to go and obtain these files for every patch. My initial suggestion would be to create a mapping for these once, based on the localisations files described above, and then apply them to every patch.
It is unlikely that these will change in the future, since they are descriptions for core mechanics that I doubt CDPR would like to keep changing. If there is a change, I think it would be fairly obvious and won't go unnoticed.
This method is weak to new cards being released with new category tags that are not used elsewhere. Thos are not as easy to spot.

Categories are now localised and included in the categories.json output.


✨  add ULIB type

Resolves #67

please review

@JeanArhancet There's a typo in the title, which probably shouldn't make into the changelog. Also, maybe this hasn't been reviewed because it's a draft?

Thank you for your feedback @andygarfield
I removed the _init_..etc in the last commit to use pydantic v2 functions. The PR is ready @Kludex

Why isn't this PR merged? I really wawnt this feature so, if there are any left work to do, I will work on them.
Tell me what is needed to get this PR merged.


Resolve long filename issue at FAQ section

DESC

generated filenames are too long in faq bec answer + question is used to generate the filenames

TODOs

[x] other field to generate file names /  use pageId to generate filenames?

implemented


!#playsound random

plays a random sound :)

Code suggestion, playsound.py, line 142.
if message:
    sample = message.split(' ')[0].lower()
    if sample == "random":
        sample = valid_samples[random.randint(0, len(valid_samples))]
        payload = {'sample': sample}
        bot.websocket_manager.emit('play_sound', payload)
        bot.whisper(source.username, 'Successfully played your sample {}'.format(sample))
        return True

    if sample in self.valid_samples:
        payload = {'sample': sample}
        ...


Pressing play when using network pauses and requires a second press

Configuration
React Native Environment Info:
    System:
      OS: macOS 10.14.4
      CPU: (4) x64 Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz
      Memory: 714.62 MB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 10.15.1 - ~/.nvm/versions/node/v10.15.1/bin/node
      Yarn: 1.16.0 - /usr/local/bin/yarn
      npm: 6.4.1 - ~/.nvm/versions/node/v10.15.1/bin/npm
      Watchman: 4.1.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 23, 24, 25, 26, 27
        Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.1, 27.0.3, 28.0.0
        System Images: android-23 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom
    IDEs:
      Android Studio: 2.3 AI-162.4069837
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3
      react-native: 0.59.5 => 0.59.5

Using react-native-track-player version 1.1.4.
Issue
When running the example code on iOS, but using a network stream, pressing play results in the following state changes:

playing
ready
loading
paused

This means you have to press play a second time to actually get it to play. Is there something I'm missing?
Code
import React, { Component } from 'react'
import { StyleSheet, Text, View } from 'react-native'
import TrackPlayer from 'react-native-track-player'
import { Player } from './src/components/Player'

interface Props {}

interface State {
  playbackState: TrackPlayer.State
}

export default class App extends Component<Props, State> {
  onStateChanged?: TrackPlayer.EmitterSubscription

  state: Readonly<State> = {
    playbackState: TrackPlayer.STATE_NONE
  }

  componentWillMount() {
    this.onStateChanged = TrackPlayer.addEventListener('playback-state', (data) => {
      console.log('playback-state changed', data)
      this.setState({ playbackState: data.state })
    })
  }

  componentDidMount() {
    TrackPlayer.setupPlayer()

    TrackPlayer.updateOptions({
      stopWithApp: true,
      capabilities: [
        TrackPlayer.CAPABILITY_PLAY,
        TrackPlayer.CAPABILITY_PAUSE,
        TrackPlayer.CAPABILITY_STOP
      ],
      compactCapabilities: [
        TrackPlayer.CAPABILITY_PLAY,
        TrackPlayer.CAPABILITY_PAUSE
      ]
    })
  }

  componentWillUnmount() {
    if (this.onStateChanged) this.onStateChanged.remove()
  }

  togglePlayback = async () => {
    const currentTrack = await TrackPlayer.getCurrentTrack()

    if (currentTrack == null) {
      await TrackPlayer.reset()
      await TrackPlayer.add({
        id: 'feed',
        url: 'http://<redacted>/stream',
        title: 'My app',
        artist: '',
        artwork: 'https://picsum.photos/200',
      })
      await TrackPlayer.play()
    } else {
      // NB: I've tried switching these around, too
      if (this.state.playbackState === TrackPlayer.STATE_PLAYING) {
        await TrackPlayer.pause()
      } else {
        await TrackPlayer.play()
      }
    }
  }

  getStateName(state: TrackPlayer.State) {
    switch (state) {
      case TrackPlayer.STATE_NONE: return 'None'
      case TrackPlayer.STATE_PLAYING: return 'Playing'
      case TrackPlayer.STATE_PAUSED: return 'Paused'
      case TrackPlayer.STATE_STOPPED: return 'Stopped'
      case TrackPlayer.STATE_BUFFERING: return 'Buffering'
    }
  }

  render() {
    return (
      <View style={styles.container}>
        <Player
          style={styles.player}
          onTogglePlayback={this.togglePlayback}
        />
        <Text style={styles.state}>
          {this.getStateName(this.state.playbackState)}
        </Text>
      </View>
    )
  }
}

Never mind, realised my mistake 🤦♂

What mistake ? I using stream url too and requires a second press. You can help check on #601


Gracefully shutdown on SIGTERM and SIGINT

Hi there,
I'm not 100% sure but as far as I can tell, mongo-connector does not handle SIGSTOP. I'd expect it to listen to that signal and gracefully stop the threads, save the latest state to disk and exit. In SIGSTOP is not handled the only option is to use SIGKILL, which can potentially leave the system in an inconsistent state.
I'm using mongo-connector 2.3.0 with elastic2_doc_manager 0.1.0.

According to the man pages for BSD and Linux (http://www.unix.com/man-page/FreeBSD/3/signal/ and http://man7.org/linux/man-pages/man7/signal.7.html), SIGSTOP cannot be caught or ignored.
SIGKILL is the normal way to stop mongo-connector.

@llvtt you're 100% right. I meant SIGTERM, which is the signal that docker issues on docker stop. I edited the title, thanks.
Regardless of the signal, the critical part is shutting down gracefully, which would include:

closing connections
killing threads
writing progress file to disk
exit with a status code of 0

Right now it takes a while for the system to shutdown. Seems that the system ignores SIGTERM (when running on docker) or SIGINT (when running in a console and doing Control+C) and only when it times out a SIGKILL is emitted. The process ends but with a status of 137 and I'm not sure if the progress file is properly persisted.

Oops, I got my signal wrong as well. I meant SIGINT is the normal way to stop the connector.
If the connector is not responding to a SIGINT within a minute or two, then something is wrong. Do you have the logs from mongo-connector available from a time when it wasn't responding?


[qbittorrent] Unable to log in to local web UI, but can on HA Cloud

I restarted Home Assistant earlier today, and when it had finished I noticed that the qBittorrent add-on did not automatically start. I use the default username & password, and now when I try to log in to the web UI from homeassistant.local I always get back 401 errors. I only know this because I checked the devtools network tab, the usual 'Login failed' notification doesn't even appear. What's strange is that when I access it from the mobile app or via Home Assistant Cloud, I'm able to log in normally using the same credentials.
Does anyone have an idea what could be going on?

Not sure if this could be related with the above error or not:
For me, when I try to load and get a blank screen, this error appears in the logs:
2022/11/16 19:02:23 [error] 611#611: *1 open() "/vuetorrent/public/js/975.d77c0760.js" failed (2: No such file or directory),...
A similar 404 error appears in the web dev tools for this file, it looks like it can't find the JS bundle when loading,... Maybe an incorrect Nginx config or pointing to the wrong file path by mistake?

Did some additional investigating:

This only happens when accessing homeassistant.local, regardless of the browser or device
These are the errors in the JS console after a login attempt (Firefox & Chrome respectively)

I show the qBittorrent status on my dashboard, and even though I can log in via HA Cloud and start & finish a download there, the sensor always shows 'unavailable' as its status.

Logger: homeassistant.components.qbittorrent.sensor
Source: components/qbittorrent/sensor.py:126
Integration: qbittorrent (documentation, issues)
First occurred: 09:25:51 (30 occurrences)
Last logged: 09:30:22

Invalid authentication

Thanks for the investigation! I've reverted my latest change and it works again... Not sure what occurred there... Thanks!

Working again now, even found my old session. Thanks!

Thanks!


Configure .travis.yml to also upload wheels

Wheels provide a quicker installation for users.

Coverage increased (+0.003%) to 99.15% when pulling 3b0cdd378fb1c230893521593cc61dde8acea43d on nicoddemus:patch-1 into c6b821d1161474d7fc8d615ef8c7d948e1076597 on Bachmann1234:master.

I'm familiar. I setup lxmls Mac wheels in their ci a while back! Thanks


Fix/tests pytests/inputs/add skip install

This PR proposes add a missing definition of the skip-install input in tests-pytest/action.yml:
  skip-install:
    description: >
      Whether to skip install.
      Should be false with poetry as build-backend.
      The default value is ``false``.
    default: false
    required: false
    type: boolean

Noticed with https://github.com/ansys-internal/simba-core/actions/runs/8327410143/job/22785207488
Run if grep -q 'build-backend = "poetry\.core\.masonry\.api"' "pyproject.toml"; then
/home/runner/work/_temp/508acb6f-5ce8-452e-84cd-fd2b2305b3de.sh: line 2: poetry: command not found

This is because inputs.skip-install does not exist, then this step that installs poetry is skipped in tests-pytest/action.yml
    - name: "Install project (if required)"
      if: inputs.skip-install == 'false'
      shell: bash
      run: |
        if grep -q 'build-backend = "poetry\.core\.masonry\.api"' "pyproject.toml"; then
          python -m pip install poetry
          poetry install
        else
          python -m pip install .
        fi

Then, with skip-install: false added:
https://github.com/ansys-internal/simba-core/pull/6/commits/191f76402b87d06257706c40c0129dbebc86011e
.github/workflows/ci_cd.yml
      - uses: ansys/actions/tests-pytest@d34d2c5cc77e0bfe0afcb6d913f38e0ad8c5f7bf
        with:
          pytest-extra-args: "--cov=ansys --cov-report=term --cov-report=html:.cov/html"
          skip-install: false

Then in https://github.com/ansys-internal/simba-core/actions/runs/8327598885/job/22785773885  poetry install is restored
...
Run if grep -q 'build-backend = "poetry\.core\.masonry\.api"' "pyproject.toml"; then
  if grep -q 'build-backend = "poetry\.core\.masonry\.api"' "pyproject.toml"; then
    python -m pip install poetry
    poetry install
  else
    python -m pip install .
  fi
...

https://github.com/ansys/actions/actions/runs/8331850513/job/22799631853?pr=428
Run actions-ecosystem/action-add-labels@v1
Error: HttpError: Resource not accessible by integration
Error: Resource not accessible by integration

https://github.com/ansys/actions/actions/runs/8331850513/job/22799631853?pr=428
Run actions-ecosystem/action-add-labels@v1
Error: HttpError: Resource not accessible by integration
Error: Resource not accessible by integration

I am afraid that without access to https://github.com/ansys/actions-ecosystem I am unable to get further insight to fix this issue.

@RobPasMue This PR #428 is related to #423. Could you please help me fix the validation?

This is failing because you opened a PR from a forked repository. Secret access is therefore forbidden. I have given you write access for upcoming occasions :) I will merge this PR as is since it works just fine. Thanks @anscfrisson!
Next time you will be able to create a branch on this repo directly.

This is failing because you opened a PR from a forked repository. Secret access is therefore forbidden. I have given you write access for upcoming occasions :) I will merge this PR as is since it works just fine. Thanks @anscfrisson!
Next time you will be able to create a branch on this repo directly.

Thank you @RobPasMue !


EEF limtis or Fallen Object + EVAL  done triggered every rollout if EEF breaches limit

Currently, when EEF limtis + EVAL are running, and those limits are violated, every rollout in the EVAL gets terminated early on. This continues until the eval number of steps/rollouts is completed.
The same thing happens if an object falls.

Should we accept this behavior? The behavior should be common early on but improve as the robot learns.
Should we turn off this limits with a flag (todo)?
The code does not crash, but you get a null evaluation result.

After further revision, it seems that EEF workspace works well.

commit 2ede60e76d7ca1460f38b9fb7d9db3d7177bc7af in picking_env fixed many bugs.
still, after a fallen_object, if we are using HER, reset_internal() L1306 gets called (self.update_object_goal_her_poses()) but here, new observables have not yet been updated and the setting of an old object triggers an exception.

I think switching the order of these statements would fix that. Will report.


Product images do not show up in the production site

Don't we need 'cdn.swell.store' in the next.config.js so that the images from the domain are allowed to be accessed?
https://github.com/swellstores/horizon/blob/39df509bccbf74774ed32d18cc84a395385facb3/next.config.js#L9
Thank you for your attention in advance/

I'm having the same or similar issue with cdn.swell.store trying to load images in development.
Unhandled Runtime Error
Error: Invalid src prop [(https://cdn.swell.store/cirqus-marketplace/6475b1306fa54e0012f89985/bcf5c880882c4c48afd72464be461927/5fa3dd1b51410ef7bfff33ac_WinterMurder-p-800.png)](http://localhost:3000/(https://cdn.swell.store/cirqus-marketplace/6475b1306fa54e0012f89985/bcf5c880882c4c48afd72464be461927/5fa3dd1b51410ef7bfff33ac_WinterMurder-p-800.png)) on `next/image`, hostname "cdn.swell.store" is not configured under images in your `next.config.js`
See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host

Unless I left something undefined somewhere?

that is easy to fix.
you have to edit horizon/next.config.js
 domains: [ 'cdn.swell.store' , 'cdn.schema.io', ...(isDev ? ['cdn.swell.test'] : [])],

you only need to add 'cdn.swell.store' to the array in the settings for images.domains

thanks for the fix @shumiyao 🙏🏾

It is fixed in the latest horizon release v0.5.0


Wavy effect in Wiggle effect

Describe your problem here.
HELP ME:( okay so,in fnf i am have "wiggle effect,or just WAVY effect in this site https://haxeflixel.com/demos/BlendModeShaders/ "
can someone help,what the command in stage i am need to use?
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

what version of psych you use?

what version of psych you use?

6.2 or action builds

you wanna make 3d background like dnb?

i am use 0 5 2

you wanna make 3d background like dnb?

yup

i am use 0 5 2

but we are on 0.6 and above
therefore you have outdated code

i am use 0 5 2

but we are on 0.6 and above therefore you have outdated code
then,i am just need the command use in stage

i need it for the letters


update bootstrap files

Current bootstrap is at 2784xxx, latest block is 2891xxx.

https://s3.us-east-2.amazonaws.com/cityofzion/bootstrap_main/Main2891xxx.tar.gz
I am waiting badly


Replaced obj.constructor with Array.isArray

Fixes #601
This handles edge cases where a user is using something like PrototypeJS which overrides the default Array constructor which prevents perfect-scrollbar from working properly.

Looks nice. Thanks!


tile rotations

In the demo atlas.json I can see a rotated property for each frame. However I can't find any more mentions of rotated in this repo. So my questions is - is it used somehow? How can I have rotated tile?
Also where I can found full description of format used in atlas.json?

Its texturepacker pixi format. https://www.codeandweb.com/texturepacker
pixi-tilemap doesnt take rotations into account, but i think you can change that ;)

OK, now we support rotations both in v5 and v4 versions.

How to make it to support the v6.2.1 and above? Now I have the same problem with the tilemap plugin @ivanpopelyshev
Would you take a look?
I am using
 "name": "@pixi/tilemap",
  "version": "3.2.2",

We added rotations while ago, it should work. If its not, please make minimum demo. Also currently im not working on pixijs and plugins, you should ask @ShukantPal  or someone at https://github.com/pixijs/pixijs/discussions

Not long ago, I have discovered a code demo like this.
import * as PIXI from "pixi.js";
import { CompositeTilemap } from "@pixi/tilemap";

const renderer = PIXI.autoDetectRenderer({ width: 800, height: 600 });
let stage: PIXI.Container;
let tilemap: CompositeTilemap;

document.body.appendChild(renderer.view);

const loader = new PIXI.Loader();

function buildTilemap(frame: number) {
  // Clear everything, like a PIXI.Graphics
  tilemap.clear();

  const resources = loader.resources;
  const size = 32;

  // if you are too lazy, just specify filename and pixi will find it in cache
  for (let i = 0; i < 7; i++) {
    for (let j = 0; j < 5; j++) {
      tilemap.tile("grass.png", i * size, j * size);

      if (i % 2 === 1 && j % 2 === 1) {
        tilemap.tile("tough.png", i * size, j * size);
      }
    }
  }

  // if you are lawful citizen, please use textures from
  const textures = resources.atlas.textures;

  tilemap.tile(textures["brick.png"], 2 * size, 2 * size);
  tilemap.tile(textures["brick_wall.png"], 2 * size, 3 * size, { alpha: 0.6 });

  // chest will be animated!
  // old way: animate on rebuild
  // tilemap.addFrame(textures[frame % 2 == 0 ? "chest.png" : "red_chest.png"], 4 * size, 4 * size);

  // new way: animate on shader: 2 frames , X offset is 32 , "red_chest" is exactly 34 pixels right in the atlas
  tilemap.tile(textures["chest.png"], 4 * size, 4 * size).tileAnimX(34, 2);

  // button does not appear in the atlas, but tilemap wont surrender, it will create second layer for special for buttons
  // buttons will appear above everything
  tilemap.tile(resources.button.texture, 6 * size, 2 * size);

  // if you want rotations:
  // https://pixijs.io/examples-v4/#/textures/texture-rotate.js
  // textures should have frame, orig and trim to do that
  // canvas in pixi-tilemap does not work with rotate!!!!
  const origTex = textures["chest.png"];

  for (let i = 0; i < 8; i++) {
    const frame = origTex.frame.clone();
    const orig = origTex.orig.clone();
    const trim = origTex.orig.clone();
    const rotate = i * 2;

    if (rotate % 4 === 2) {
      orig.width = frame.height;
      orig.height = frame.width;
    }

    const tmpTex = new PIXI.Texture(
      origTex.baseTexture,
      frame,
      orig,
      trim,
      rotate
    );

    // Swap W and H in orig if you rotate%4 is not 0
    tilemap.tile(tmpTex, (i % 4) * size, (i >> 2) * size + 5 * size);
    // rotate is also last parameter in addFrame
  }
}

const options = { crossOrigin: "*" };

loader.add("atlas", "assets/atlas.json", options);
loader.add("button", "assets/button.png", options);
loader.load(function onAssetsLoaded(loader, resources) {
  // first parameter means z-layer, which is not used yet
  // second parameter is list of textures for layers
  stage = new PIXI.Container();
  tilemap = new CompositeTilemap();
  stage.addChild(tilemap);

  PIXI.Ticker.shared.add(() => renderer.render(stage));

  let frame = 0;

  buildTilemap(frame++);

  const pic = new PIXI.Sprite(resources.button.texture);

  pic.position.set(200, 100);
  stage.addChild(pic);

  // ==== New way: animate shader
  function animShader() {
    // animate X frames
    renderer.plugins.tilemap.tileAnim[0] = frame;
    // animate Y frames
    renderer.plugins.tilemap.tileAnim[1] = frame;
    frame++;
  }

  setInterval(animShader, 400);
});

What does it mean by canvas in pixi-tilemap does not work with rotate!!!!

Ohh, canvas renderer rotate.
https://github.com/pixijs/tilemap/blob/e7d26dde5b47a9ea941c50e62ad151acfc7ca57b/src/Tilemap.ts#L377
Somebody has to do it :)

I find the line around here should work on.. https://github.com/pixijs/tilemap/blob/master/src/Tilemap.ts#L261
Let me know if it is the problem to start working

that exact line i mentioned - you have to modify drawImage method there

I am new to pixi packages and its recent updates. I need to go thru all the code first and I am not familiar with shader rendering, I guess we need to find some expert to work on this PR.  @ivanpopelyshev @ShukantPal


[FEATURE] Ignore DISABLED flags from storage layer

Requirements
Background
According to configuration guideline, when a flag is disabled, it is considered as if it doesn't exisit [1]

When the state is set to "DISABLED", flagd will behave like the flag doesn't exist.

However, in the flagd implementation, we still handle Disabled flags and return errors to evaluation requests.
Desired behavior
PR https://github.com/open-feature/flagd/pull/670 & https://github.com/open-feature/flagd/pull/672 improved error handling and introduced bug fixes to disabled flags. Going forward, disabled flags must be ignored from storage which will result in flag not found status matching the configuration guide stated above
[1] - https://github.com/open-feature/flagd/blob/9490ed62e2fc589af8ae7ee26bfd559797a1f83c/docs/configuration/flag_configuration.md?plain=1#L14

I would not ignore them entirely, but print an "info" or "warning" log message to notify somehow that a flag is disabled.

I would not ignore them entirely, but print an "info" or "warning" log message to notify somehow that a flag is disabled.

Ya we could do this when we update the flag state and persist it, or we could keep them in a disabled state and mention it there (though that might add a lot of log-noise)

Listing down the pros & cons of proposals
Ignore at storage
Pros - Fewer flags in cache (storage), considering that there can be several Disabled flags.  And no extra logic for filtering
Cons - If we need a debug log at evaluation time for disabled flags, then we can't do that as we do not have data of disabled flags
Filter at retrieval
Pros - Can provide logs at evaluation time for visibility. Potential future changes (if any) for Disabled flags
Cons - Filtering/check for state is a cost. Storage (cache) must be fast and must contain minimal logic


Highlighting group CornelisType only affects InfoWindow

I am able to change the highlighting in the .agda file buffer of every group I've tried so far, except for CornelisType.
Overriding the settings of this group only changes the colors in the InfoWindow (see screenshot). I'd like these settings
to apply to the file buffer as well, is this possible?
I'm not sure of what parts of my setup are relevant, let me know and I'll provide.

Great color scheme :)
The buffer highlighting comes directly from Agda, so it's a bit hard to say why exactly you're not getting the results you'd like.
As an easy shortcut, you could try copying the colorscheme directly from Certainty by Construction:
https://github.com/isovector/certainty-by-construction/blob/5149d4dbede579599adc9833c1d10ec0f6e85a04/format/tex/agda.sty#L180-L214
If instead you'd like to actually diagnose the problem here, try adding the following code temporarily to your vimrc:
" Show syntax highlighting groups for word under cursor
nnoremap <F2> :call <SID>SynStack()<CR>
function! <SID>SynStack()
    if !exists("*synstack")
        return
    endif
    echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
endfunc

and then pressing F2 while your cursor is over the term you'd like to change the highlighting of. It should dump out the highlighting group it's a part of and let you know what exactly needs to change.

Thanks for the actual color codes, that makes things easier!
I couldn't get your function to work but found that I can do :Inspect on words to get their groups. This returns the
expected groups for all terms in the file buffer except data types which gives No items found at position X,Y in buffer Z. Doing :Inspect on data types in the Info Window returns CornelisType.

That sounds like a bug in cornelis! Please let me know what version of Agda you're running and I'll look into it
On June 16, 2024 3:33:58 p.m. PDT, milaurila @.***> wrote:

Thanks for the actual color codes, that makes things easier!
I couldn't get your function to work but found that I can do :Inspect on words to get their groups. This returns the
expected groups for all terms in the file buffer except data types which gives No items found at position X,Y in buffer Z. Doing :Inspect on data types in the Info Window returns CornelisType.
--
Reply to this email directly or view it on GitHub:
https://github.com/isovector/cornelis/issues/153#issuecomment-2171914454
You are receiving this because you commented.
Message ID: @.***>

I was running Agda 2.6.3. Now 2.6.4 and the problem persists.