Bringin' back the shouting rainbows

As a user of the CLI,
I would like to experience rainbow-colored joy upon successful setup of a device,
because it used to do that, and also I like pretty lights.

^ this guy knows what I'm talking about

Adding my support :+1: to help disambiguate which Photon I'm talking to when there are multiple in the room and I'm unsure which device has which SSID.

Ok i tested this briefly and particle nyan deviceID on/off works fine. all does not work with the use of interactive prompt for listDevices. Should not be too tough a fix.
@jenesaisdiq can you try that? deviceID or deviceName worked for me

@kennethlimcp Can you file that as a separate issue since this is about the setup process?

particle nyan should probably print some feedback. I tried it, nothing happened, then failed to mentally connect the dots when I later found my Photon going crazy with rainbows :smile:

@tacoe haha, good point!

bump

:+1:

I feel I need more details before being able to implement this:

when do the rainbows start?
when do they stop?

The initial description implies that the device shouts rainbows after the device is setup...but that seems like it's too late?
When devices are first powered up, they enter listening mode. After a device has been setup, the device is no longer in listening mode, and is ideally breathing cyan - that could serve as an indicator that the device was setup? Also since it's no longer in listening mode the device is no longer available for setup via WiFi.

I defer to @dmiddlecamp on what it used to do, but I'd say it does nyan when it first successfully connects to the cloud, in place of breathing cyan. Did the original stop after a while David? I feel like 10 seconds of nyan's probably good...

Is this something the CLI used to do during particle setup ?  Otherwise it's kind of a complicated thing that Cloud would have to work out the logic for... i.e.,  going from no valid key to valid key, send the nyan event on, then turn it off after 10 seconds.  If the CLI does this it would be less state/timer info that the Cloud has to manage, and could run every time particle setup was completed successfully.
Regarding @towynlin 's comment:

Adding my support 👍 to help disambiguate which Photon I'm talking to when there are multiple in the room and I'm unsure which device has which SSID.

I think this is handled by the new Signal / Stop Signaling in the Web IDE, but not necessarily something that is accomplished by running particle setup on a room full of devices... unless the idea was that you start the rainbows DURING setup to help identify which blinking blue Photon you selected from a list of available photons during particle setup.  But if that was the idea then the logic changes a bit.
Use Case 1: Rainbow Joy after setup completes, YAY 🌈  ☁
Use Case 2: Rainbow Joy at the beginning of setup to help identify which blinking blue photon we are setting up.  At a hackathon having both of these happening though would make things fairly confusing.
A 3rd User Case already exists as well: identify a Photon with the Signal button in the Web IDE, but only after it's setup and connected to the Cloud.
:thinking:

I'm guessing that it was triggered by the CLI and by the mobile apps back in the day, upon successful setup and connection to the cloud. I do like the observation that for ID'ing which one you're working with, it's much wiser to signal at the beginning of the process rather than at the end. In a room full of devices it's chaos anyway and neither helps... for that scenario we talked about having a handful of different LED codes and randomly distributing them at manufacture time, or having the CLI/app generate one and show you which it was.

If I remember correctly, the shouting rainbows happened after you claimed / named the device, and was accompanied by happy ascii art.    It's more to congratulate the user on finishing setup, and help build excitement about using the device.
It's also very useful for identifying a particular device later on, but that's less important during setup  / that's a different problem.

BTW it still works for Cores. I set up a Core this weekend and the CLI said it would start shouting rainbows and it did :rainbow:


cyp-config

cyp config

@adamdavies1 @gio-karunakaran the file name for declaration has been spelt incorrectly.


rpcdaemon: validate json rpc api requests

This is the second PR in the series related to fuzzy tests.
Please review #1575 first.
This PR adds a simple validation for any JSON RPC  request and returns an error message if validation fails.

@lupin012 please take a look at these changes


Follow next child process with TTD

It would be great to be able to be about to launch a proces (e.g. I've put a breakpoint at CreateProcess) and TTD the resulting or next child process of a process I'm currently debugging, either in TTD or in normal debugging.

Thank you for your suggestion. Detecting a process launch "as it happens" in order to initiate TTD recording is an interestingly complex thing to do, especially if you are also using antivirus products or other types of security products that also aim to detect such things. Detecting it in a process that's being debugged is... a great idea. The debugger already monitors process creation for its own purposes ("Debug child processes").
I can make no promises at this time, but you've been definitely heard :-).
Thanx!


Stage variable not properly injected into swagger doc

I have the following resources in a SAM CloudFormation template (this template is not complete—just showing the relevant parts):
Parameters:
  EncryptedMongoUrl:
    Type: "String"
    Description: "Encrypted MONGO_URL value."
  UserPoolName:
    Type: "String"
    Description: "Desired name of the Cognito user pool."
Resources:
  UserPool:
    Type: "AWS::Cognito::UserPool"
    Properties:
      UserPoolName: !Ref UserPoolName
      Policies:
        PasswordPolicy:
          MinimumLength: 8
          RequireLowercase: true
          RequireUppercase: true
          RequireNumbers: true
          RequireSymbols: false
  ApiGateway:
    Type: "AWS::Serverless::Api"
    DependsOn: UserPool
    Properties:
      StageName: "v1"
      DefinitionUri: "./lambda-proxy-api.yaml"
      Variables:
        GraphQLFuncName: !Ref GraphQL
        UserPoolArn: !GetAtt UserPool.Arn

Here's the lambda-proxy-api.yaml file:
---
swagger: 2.0
info:
  title: OnSpotServerlessApi
paths:
  "/graphql":
    post:
      responses: {}
      security:
      - UserPool: []
      x-amazon-apigateway-integration:
        uri: arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:xxx:function:${stageVariables.GraphQLFuncName}/invocations
        httpMethod: POST
        type: aws_proxy
securityDefinitions:
  UserPool:
    type: apiKey
    name: Authorization
    in: header
    x-amazon-apigateway-authtype: cognito_user_pools
    x-amazon-apigateway-authorizer:
      providerARNs:
      - ${stageVariables.UserPoolArn}
      type: cognito_user_pools

Oddly enough, the GraphQL function name comes through just fine, but the stageVariables.UserPoolArn does not. When the stack tries to build, I get this error:

Errors found during import: Unable to create authorizer 'UserPool': ProviderARNs need to be valid Cognito Userpools. Invalid ARNs- ${stageVariables.UserPoolArn} Unable to put method 'POST' on resource at path '/graphql': Invalid authorizer ID specified. Setting the authorization type to CUSTOM or COGNITO_USER_POOLS requires a valid authorizer.

Why does this variable interpolation not work?

looks like #66


Fix installation on Raspbian systems

This PR fixes https://github.com/angristan/wireguard-install/issues/263
Since Raspbian and Debian share OS version ID in /etc/os-release, and there are the same wireguard packages in both distros, it's OK to consider them the same OS further down in the script.

Thanks!


Final Round has Two Balls

Couple of changes here...

Balls now go into the this.balls array on the game object instead of this.ball

We can add multiple balls now safely
For now there is not a way to remove a single ball, just a game.removeBalls() that gets rid of them all

Final round is announced (when it's tied with the next point deciding winner)

Two balls are spawned for the final round

Bonus fun GIF of this in progress...
https://giphy.com/gifs/229rorsQnT8Pgh6amN

For now there is not a way to remove a single ball, just a game.removeBalls() that gets rid of them all

When do we even need to remove only one ball?


autoHide dont close if trigger click

Hi everyone,
i try to autohide tooltip with directive, on click outside of my button, but dont work.
if popover, works fine.
on example have the two tries.
<button
  v-tooltip="{
    content: 'MY TOOLTIP',
    placement: 'bottom',
    trigger: 'click',
    autoHide: true
  }"
>BUTTON</button>

Example: https://codesandbox.io/s/vue-template-kl5fy
anyone know how to make this?

@Akryum have any suggest to make it?

Same issue, but it is fixed in the 3.0.0 version.
https://jsfiddle.net/rgzmsq4y/7/

The opposite problem appears for trigger: 'hover', then autoHide: false does not work and a click will destroy the tooltip. Nice that this will be fixed in 3.0.0. When will this be released? npm still installs 2.0.3...

...and as it seems there are some API changes in version 3it would be very nice to fix this also in version 2

See: https://github.com/Akryum/v-tooltip/issues/517#issuecomment-752787516

It would be nice to have this fix in version 2 as well.


ModuleNotFoundError: No module named 'lib.model.roi_crop._ext.roi_crop._roi_crop'

Traceback (most recent call last):
File "trainval_net_global_local.py", line 25, in
from lib.model.utils.net_utils import weights_normal_init, save_net, load_net,
File "E:\DA_Detection-master\lib\model\utils\net_utils.py", line 10, in
from lib.model.roi_crop.functions.roi_crop import RoICropFunction
File "E:\DA_Detection-master\lib\model\roi_crop\functions\roi_crop.py", line 4, in
from lib.model.roi_crop.ext import roi_crop
File "E:\DA_Detection-master\lib\model\roi_crop_ext\roi_crop_init.py", line 3, in
from ._roi_crop import lib as _lib, ffi as _ffi
ModuleNotFoundError: No module named 'lib.model.roi_crop._ext.roi_crop._roi_crop'

@Daipuwei   Hi, have you solved this problem? I have met the same issue.

@Daipuwei Hi, have you solved this problem? I have met the same issue.

Sorry, it's a difficult bug that I have not solved

@Daipuwei Hi, have you solved this problem? I have met the same issue.

could we talk about this bug via wechat? my wechat id is : dpw19960712

you can run sh make.sh https://github.com/jwyang/faster-rcnn.pytorch/issues/324#issue-365083085
if some errors happen, you can check whetherthe pytorch version matchs the cuda version

run sh make.sh jwyang/faster-rcnn.pytorch#324
if some errors happen, you can check whetherthe pytorch version matchs the cuda version


Formula for ChEBI:137328

Dear ChEBI Curators,
We need this very generic entity to have a formula so that we can balance the reaction in RHEA. Can you please add the following formula which applies to all children?
ChEBI:137328
Formula: C20H31O4
Also, please check and if agree, add the following children relationships:
ChEBI:75327 is_a ChEBI:137328
ChEBI:75232 is_a ChEBI:137328
ChEBI:75233 is_a ChEBI:137328
ChEBI:75234 is_a ChEBI:137328
ChEBI:75235 is_a ChEBI:137342
Thanks in advance!

Hi Lucila,
I've added the formula and the relationships.
Kind regards,
Steve


Mention in assertEqualsNoOrder doc that arrays are not compared deeply

Fixes #2500.
Did you remember to?

[x] Add test case(s)
[x] Update CHANGES.txt

Not quite sure why some tests fail, it appears to be unrelated to these changes?


Installation error

(venv) PS C:\Users\PC\PycharmProjects\pythonProject1> pip install saymytext
Collecting saymytext
Using cached saymytext-1.0-py3-none-any.whl (2.7 kB)
Collecting PyAudio==0.2.11
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: pydub==0.25.1 in c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages (from saymytext) (0.25.1)
Collecting gTTS==2.2.3
Using cached gTTS-2.2.3-py3-none-any.whl (25 kB)
Requirement already satisfied: click in c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages (from gTTS==2.2.3->saymytext) (8.1.3)
Requirement already satisfied: six in c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages (from gTTS==2.2.3->saymytext) (1.16.0)
Requirement already satisfied: requests in c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages (from gTTS==2.2.3->saymytext) (2.28.1)
Requirement already satisfied: colorama in c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages (from click->gTTS==2.2.3->saymytext) (0.4.5)
Requirement already satisfied: idna<4,>=2.5 in c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages (from requests->gTTS==2.2.3->saymytext) (3.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages (from requests->gTTS==2.2.3->saymytext) (1.26.11)
Requirement already satisfied: charset-normalizer<3,>=2 in c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages (from requests->gTTS==2.2.3->saymytext) (2.1.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages (from requests->gTTS==2.2.3->saymytext) (2022.6.15)
Building wheels for collected packages: PyAudio
Building wheel for PyAudio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\PC\PycharmProjects\pythonProject1\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PC\AppData\Local\Temp
\pip-install-aen652tc\pyaudio_7f5f51e46f0144b99519429fc984a75e\setup.py'"'"'; file='"'"'C:\Users\PC\AppData\Local\Temp\pip-install-aen652tc\pyaudio_7f5f51e46f0144b9951942
9fc984a75e\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\PC\AppData\Local\Temp\pip-wheel-y8o4p2p8'
cwd: C:\Users\PC\AppData\Local\Temp\pip-install-aen652tc\pyaudio_7f5f51e46f0144b99519429fc984a75e
Complete output (54 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
copying src\pyaudio.py -> build\lib.win-amd64-3.10
running build_ext
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\PC\AppData\Local\Temp\pip-install-aen652tc\pyaudio_7f5f51e46f0144b99519429fc984a75e\setup.py", line 106, in
setup(name='PyAudio',
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_init_.py", line 155, in setup
return distutils.core.setup(**attrs)
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\core.py", line 148, in setup
return run_commands(dist)
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\core.py", line 163, in run_commands
dist.run_commands()
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\dist.py", line 967, in run_commands
self.run_command(cmd)
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils\command\build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils_msvccompiler.py", line 327, in compile
self.initialize()
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools_distutils_msvccompiler.py", line 224, in initialize
vc_env = _get_vc_env(plat_spec)
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
setuptools._distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
ERROR: Failed building wheel for PyAudio
Running setup.py clean for PyAudio
Failed to build PyAudio
Installing collected packages: PyAudio, gTTS, saymytext
Attempting uninstall: PyAudio
Found existing installation: PyAudio 0.2.12
Uninstalling PyAudio-0.2.12:
Successfully uninstalled PyAudio-0.2.12
Running setup.py install for PyAudio ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\PC\PycharmProjects\pythonProject1\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PC\AppData\Local\Te
mp\pip-install-aen652tc\pyaudio_7f5f51e46f0144b99519429fc984a75e\setup.py'"'"'; file='"'"'C:\Users\PC\AppData\Local\Temp\pip-install-aen652tc\pyaudio_7f5f51e46f0144b99519
429fc984a75e\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f
.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\PC\AppData\Local\Temp\pip-record-clpljctu\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\PC\PycharmProjects\pythonProject1\venv\include\site\python3.10\PyAudio'
cwd: C:\Users\PC\AppData\Local\Temp\pip-install-aen652tc\pyaudio_7f5f51e46f0144b99519429fc984a75e
Complete output (10 lines):
running install
C:\Users\PC\PycharmProjects\pythonProject1\venv\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
copying src\pyaudio.py -> build\lib.win-amd64-3.10
running build_ext
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
Rolling back uninstall of PyAudio
Moving to c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages_pycache_\pyaudio.cpython-310.pyc
from C:\Users\PC\AppData\Local\Temp\pip-uninstall-cieqmlq0\pyaudio.cpython-310.pyc
Moving to c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages_portaudio.cp310-win_amd64.pyd
from C:\Users\PC\AppData\Local\Temp\pip-uninstall-f_hz_6dq_portaudio.cp310-win_amd64.pyd
Moving to c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages\pyaudio-0.2.12.dist-info
from C:\Users\PC\PycharmProjects\pythonProject1\venv\Lib\site-packages~yaudio-0.2.12.dist-info
Moving to c:\users\pc\pycharmprojects\pythonproject1\venv\lib\site-packages\pyaudio.py
from C:\Users\PC\AppData\Local\Temp\pip-uninstall-f_hz_6dq\pyaudio.py
ERROR: Command errored out with exit status 1: 'C:\Users\PC\PycharmProjects\pythonProject1\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'
C:\Users\PC\AppData\Local\Temp\pip-install-aen652tc\pyaudio_7f5f51e46f0144b99519429fc984a75e\setup.py'"'"'; file='"'"'C:\Users\PC\AppData\Local\Temp\pip-install-aen65
2tc\pyaudio_7f5f51e46f0144b99519429fc984a75e\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools imp
ort setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\PC\AppData\Local\Temp
\pip-record-clpljctu\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\PC\PycharmProjects\pythonProject1\venv\include\site\python3.10\PyAudio' Check the logs for full command output.
WARNING: You are using pip version 21.3.1; however, version 22.2.2 is available.
You should consider upgrading via the 'C:\Users\PC\PycharmProjects\pythonProject1\venv\Scripts\python.exe -m pip install --upgrade pip' command.
(venv) PS C:\Users\PC\PycharmProjects\pythonProject1>

Please tell me what is the problem

Hi.
The error is: Microsoft Visual C++ 14.0 or greater is required. Get it
with "Microsoft C++ Build Tools.
You could try to update build tools on your windows machine.
Go to https://visualstudio.microsoft.com/visual-cpp-build-tools/ download
and update.
On Wed, Aug 17, 2022 at 1:40 PM johnxpres @.***> wrote:

Please tell me what is the problem
—
Reply to this email directly, view it on GitHub
https://github.com/skvortsovden/saymytext/issues/1#issuecomment-1217896843,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALVMCCVLSALDEJC6ZCW6TN3VZTFSRANCNFSM56ZGU2MQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


fix NoDependsOn

follow up for #410

@premun I think this would be okay, since they will get a warning on this - warning CS8670: Object or collection initializer implicitly dereferences possibly null member 'JobBase.DependsOn'

@premun this was already merged on #408


Create variant of google-cloud-java with Guava and grpc-stub shaded

Note: GAX needs to be exposed.
Consequences:

Guava can't be exposed on the public surface of GAX or google-cloud-java
grpc-stub can't be exposed on the public surface of GAX or google-cloud-java (since it exposes Guava)
The generated grpc packages need to be split into two: a package with proto-generated types (no Guava dependency) and a package with only grpc (which exposes Guava), and the second type of package needs to be shaded.

Coordinating issue in GAX is filed at https://github.com/googleapis/gax-java/issues/188 .
Also: protobuf-java-util needs to be shaded.
@VisibleForTesting needs to be removed throughout the code.

blocking issues:

https://github.com/googleapis/api-common-java/issues/8 "Remove Guava from surface (remove from public classes and methods)"
https://github.com/googleapis/gax-java/issues/240 "delete PathTemplate & related classes, depend on api-common-java"

I will migrate Java grpc package generation to toolkit as part of this change.

We will also need to shade protobuf-java-util and guava that it depends on once PR #1770 is merged.

The task to split the proto-generated classes and grpc-generated classes is being tracked in https://github.com/googleapis/toolkit/issues/803 , and @shinfan is working on it.

Actually, the splitting of proto-generated classes and grpc-generated classes is being tracked in https://github.com/googleapis/toolkit/issues/1145 ; googleapis/toolkit#803  is a prerequisite.

The release-blocking aspect of this issue is to confirm that Guava can be shaded, and that there is no Guava on the surface of any package we own in the stack (api-common-java, gax-java, google-cloud-java). The actual shading support can come after 1.0.

Tested that guava can be shaded by successfully running integration tests against a shaded artifact with Guava 12 loaded. Can also confirm that Guava has been removed from the surface of api-common, gax-java and google-cloud-java

This is sorely needed for us. I am currently blocked in a place where I have two conflicting guavas, on in a classloader I can control the other in one i can not control (writing a plugin, that depends on another plugin). Where the plugin I depend upon uses the appllication classloader (and gets guava 11) but the google cloud library I use requires guava 20.
Can you prioritise this higher? Exposing such a widely used dependency that is not binary compatible is a huge mistake.

This is sorely needed. Is there a way to get a higher priority on this? Exposing a dependency on such a widely used library is a big mistake.

Hey! Any estimation on when this could go in? We have a few cases where this causes quite a bit of pain.

Same situation here, one library breaks with < guava 20 others break when it's > 20. Basically making it really hard to use GCP. Always been able to work through guava conflicts in 3rd party libraries in the past but sort of stuck with GCP and other google apis.

@garrettjonesgoogle OpenTSDB uses guava version 18.
I'm getting this error during runtime:
java.lang.NoClassDefFoundError: Could not initialize class com.google.pubsub.v1.PubsubMessage$AttributesDefaultEntryHolder

@edmonddc on the surface that doesn't seem related to Guava - could you give a more extended stack trace?

@garrettjonesgoogle, I'm not really sure if it is really guava. But I got the idea that it might be guava from this:
https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/TROUBLESHOOTING.md
This is the stacktrace:
018-04-30 07:55:14,813 ERROR [OpenTSDB I/O Worker #3] ConnectionManager: Unexpected exception from downstream for [id: 0x7ec44c51, /<IP_ADDRESS>:59892 :> /<IP_ADDRESS>:4242] java.lang.NoClassDefFoundError: Could not initialize class com.google.pubsub.v1.PubsubMessage$AttributesDefaultEntryHolder 	at com.google.pubsub.v1.PubsubMessage$Builder.internalGetAttributes(PubsubMessage.java:758) ~[GCloudPublisher-0.1.0-jar-with-dependencies.jar:na] 	at com.google.pubsub.v1.PubsubMessage$Builder.buildPartial(PubsubMessage.java:622) ~[GCloudPublisher-0.1.0-jar-with-dependencies.jar:na] 	at com.google.pubsub.v1.PubsubMessage$Builder.build(PubsubMessage.java:610) ~[GCloudPublisher-0.1.0-jar-with-dependencies.jar:na] 	at com.cascadeo.tsdb.GCloudPublisher.publishDataPointHelper(GCloudPublisher.java:177) ~[GCloudPublisher-0.1.0-jar-with-dependencies.jar:na] 	at com.cascadeo.tsdb.GCloudPublisher.publishDataPoint(GCloudPublisher.java:94) ~[GCloudPublisher-0.1.0-jar-with-dependencies.jar:na] 	at net.opentsdb.tsd.RTPublisher.sinkDataPoint(RTPublisher.java:105) ~[tsdb-2.3.0.jar:] 	at net.opentsdb.core.TSDB$1WriteCB.call(TSDB.java:1035) ~[tsdb-2.3.0.jar:] 	at net.opentsdb.core.TSDB$1WriteCB.call(TSDB.java:977) ~[tsdb-2.3.0.jar:] 	at com.stumbleupon.async.Deferred.doCall(Deferred.java:1278) ~[async-1.4.0.jar:na] 	at com.stumbleupon.async.Deferred.addCallbacks(Deferred.java:688) ~[async-1.4.0.jar:na] 	at com.stumbleupon.async.Deferred.addCallbackDeferring(Deferred.java:738) ~[async-1.4.0.jar:na] 	at net.opentsdb.core.TSDB.addPointInternal(TSDB.java:1049) ~[tsdb-2.3.0.jar:]

I don't see Guava anywhere in the stack trace... I do see that your jar is named GCloudPublisher-0.1.0-jar-with-dependencies.jar, implying you have done some shading. Maybe your shading configuration isn't quite right?

@garrettjonesgoogle I haven't done any shading yet. But I might do that to fix the runtime issue. I made GCloudPublisher for OpenTSDB as RT plugin.

Just dropping this here... I was able to fix the issue on my build. The issue is on protobuf and not on guava. The runtime enviroment on OpenTSDB is using an older version of protobuf. After shading the protobuf on the pom file, I was able to connect to google cloud pubsub.

@chingor13, we should figure out what to do about the Hadoop ecosystem

Apparently Hadoop uses Guava 19 now: https://issues.apache.org/jira/browse/HADOOP-14380

This should probably happen after @chingor13  reorgs the clients.

I don't think we want to do this any more.


Match userguide Asciidoc filenames to declared URLs

This establishes a convention that allows us to programmatically
figure out which Asciidoc file corresponds to which userguide
chapter, under the goal of allowing quick edits on GitHub.
Issue: gradle/dotorg-docs#59
Context

Contributor Checklist

[ ] Review Contribution Guidelines
[ ] Sign Gradle CLA
[ ] Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by Gradle team
[ ] Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective
[ ] Provide unit tests (under <subproject>/src/test) to verify logic
[ ] Update User Guide, DSL Reference, and Javadoc for public-facing changes
[ ] Ensure that tests pass locally: ./gradlew <changed-subproject>:check

Gradle Core Team Checklist

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation
[ ] Recognize contributor in release notes

Does this PR change any plugin documentation URLs? If it does we need to update the kotlin-dsl code generation logic.

@bamboo Yes, it does change a couple of them slightly:

buildDashboard_plugin.html => build_dashboard_plugin.html
javaGradle_plugin.html => java_gradle_plugin.html
javaLibraryDistribution_plugin.html => java_library_distribution_plugin.html
project_reports_plugin.html => project_report_plugin.html

Please let me know if you want my assistance making the change for Kotlin DSL. Once merged, this change would affect the /nightly docs as well as Gradle 4.5+.
@bamboo It might be helpful for us to know how Kotlin DSL manages this. We'll be rearranging the docs more in the future.

@eriwen I think it's this: https://github.com/gradle/kotlin-dsl/blob/6a3c51a65e8423aa33432b816996360cd32e7906/provider/src/main/kotlin/org/gradle/kotlin/dsl/codegen/PluginIdExtensions.kt
@bamboo This reminds me of an idea I had awhile ago...
Maybe we could/should add a doc URL to the plugin metadata (META-INF/gradle-plugins/<whatever>.properties or some programmatic way of listing this).

@eriwen thanks, I'll update the code once this is merged.
@big-guy that's the code.

Maybe we could/should add a doc URL to the plugin metadata (META-INF/gradle-plugins/.properties or some programmatic way of listing this).

Yes, that's going to be  more attractive once we start moving plugins to separate repos.
For the small and closed world of plugins we're managing links for, I think the current solution is fine.

Are you good with this change @lptr or @wolfs or @bmuschko?


IGNITE-12268 Adds ability to set up custom REST processor.

We need to change the return type of StandaloneGridKernalContext#rest, also


cyber:fixed log level

Fix the commit message to Cyber: Fixed log level., which is the most preferred format.

No additional chars like *.
Space after :.
Title-case for both module name and message sentence.
As it's a sentence, end with ..

Done.


feat(alerta-service): Support the "attributes" attribute in Alerta node

Fix influxdata#2349
This commit adds support for custom Alerta alert attributes (see Alerta Alert Format for details).
Attributes are specified with "attribute" keyword in tick script, e.g.:
|alert()
    // ...
    .alerta()
        // ...
        .attribute('customUrl', 'https://example.com/')
        .attribute('booleanAttribute', TRUE)
        .attribute('numericAttribute', 9001)
        .attribute('templatedAttribute', 'Templates are supported: {{ .Name }}')

Required for all non-trivial PRs

[x] Rebased/mergable
[x] Tests pass
[x] CHANGELOG.md updated
[x] Sign CLA (if not already signed)

Tested this changes with Alerta API 8.6.0 (latest)

Looks like builds on master branch are broken.

Hi @docmerlin, when can we expect the v1.6.3 release?


esp32 :how to use wifi on esp32 ?

are there have any samples or doc?

This is still WIP, no documentation or code to make this happen yet.


Deprecate passing a dict to the Examples class

Add the necessary deprecation and user warnings
Update tests

Change Summary

Related issue number

Checklist

[ ] The pull request title is a good summary of the changes - it will be used in the changelog
[ ] Unit tests for the changes exist
[ ] Tests pass on CI
[ ] Documentation reflects the changes where applicable
[ ] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Great, go ahead and merge when you're ready 👍


Use cargo install --examples

You're maybe already aware of this, but I recently learned about cargo install --examples. I had looked for easy ways to run examples from crates without manually checking them out and had come across this project. It wasn't until much later that I realized that cargo could do the heavy lifting of getting the source code and building examples, and I put together this shell script based around it that approximates this crate:
cargo_example() (
  if test "$#" -lt 1; then
    echo "usage: cargo_example <crate> <example> [...]"
    return
  fi
  set -e
  crate="$1"; shift
  dir="$HOME/.cargo-examples/$crate"
  if ! test -d "$dir/bin"; then
    cargo install "$crate" --examples --root "$dir"
  fi
  if test "$#" -lt 1; then
    echo "Available examples for crate '$crate':"
    ls "$dir/bin"
    return
  fi
  command="$1"; shift
  if ! test -x "$dir/bin/$command"; then
    echo "No example '$command' found for crate '$crate' (remove the $dir directory to force a rebuild)"
    return 1
  fi
  "$dir/bin/$command" "$@"
)

There are a few advantages to this approach:

The source corresponds to the latest published crate version rather than whatever the HEAD of the git repository is; it will also work for crates without repositories, if those exist

It would be straightforward to extend to support specifying arbitrary crate versions

The user's .cargo registry is reused for source caching and a full git clone can be avoided—downloading the crate source should be cheaper
Intermediate build artifacts are automatically cleaned up by cargo after the build completes
It depends on fewer details of cargo like the REST API

As a downside, cargo does print a warning about adding the custom root directory to your $PATH after installing, but that can probably be worked around.
I mostly wanted to open this issue to to share the knowledge because this project has good Google placement for queries related to running cargo examples. Given that this seems to mostly be a proof of concept I'm not sure whether you think it'd be worth reworking this crate to use cargo install --examples, but would you at least consider updating this sentence from the README to mention cargo install as an alternative?: "In order to run examples you'll always have to manually clone or download the repository of the crate whose examples you wish to run."

I wasn't aware of the existence of cargo install --examples when I made the request for implementation, but a primary problem is the lack of an easy way to clean all the examples added, or to avoid adding them to the PATH.
Here anyone can just delete the .cargo-examples if they start taking too much space

Here anyone can just delete the .cargo-examples if they start taking too much space

Same with the cargo install approach; the script addresses that by using the --root argument to install to a dedicated location not on the user PATH.

Same with the cargo install approach; the script addresses that by using the --root argument to install to a dedicated location not on the user PATH.

Oh then I have no objections, this sounds like a better approach


No type class instance for RowToList t4 t5 error with explicit exports

Quick Summary
If you use explicit exports when defining a form, you must ensure that any types used within the Form newtype are also exported, or else you'll receive the dreaded No type class instance for RowToList t4 t5 error message.
It's not the only way to receive that error message, but if you receive the error, double-check explicit exports.
Given a form type like this:
data MyCustomError = MyCustomError

newtype Form f = Form { email :: f (Array MyCustomError) String String }
derive instance newtypeForm :: Newtype (Form f) _

then, if you are using explicit exports, ensure that you also export any types used within the newtype along with the newtype itself. For example, while this will not show any errors in this module, this is incorrect:
module MyModule
  ( Form
  ) where

Instead, ensure that you export the associated types, too:
module MyModule
  ( Form
  , MyCustomError(..)
  ) where

Environment

purescript-halogen-formless [0.1.1]

Current behavior
If you write a Form newtype that relies on custom types written in the same module, and then you explicitly export the Form newtype without also exporting the custom types, you don't get a warning or an error until you go to actually use it with the Formless component. At that moment, you'll receive the error seen in #15  (No type class instance for Prim.Row.RowToList t4 t5 ...) with essentially no information to go off of for debugging purposes beyond that.
The problem appears to be that the compiler can't find the correct instance for RowToList because it can't find the custom type that was never exported.
For example, this form file (provided by @Unisay) will compile just fine:
module EmailForm
  ( formInput
  , Form
  ) where

import Prelude
import Data.Bifunctor (lmap)
import Data.Newtype (class Newtype)
import Data.Symbol (SProxy(..))
import Formless as F
import Formless.Validation.Polyform (applyOnInputFields)
import Halogen.HTML as HH
import Halogen.HTML.Events as HE
import Halogen.HTML.Properties as HP
import Polyform.Validation as V

type Errors = Array ValidationError
data ValidationError = InvalidEmail String

newtype Email = Email String

newtype Form f = Form { email :: f Errors String Email }
derive instance newtypeForm :: Newtype (Form f) _

formInput :: ∀ m. Monad m => F.Input' Form Email m
formInput = { formSpec, validator, submitter, render }

formSpec :: Form F.FormSpec
formSpec = F.mkFormSpec { email: "" }

validator :: ∀ m. Monad m => Form F.InputField -> m (Form F.InputField)
validator = applyOnInputFields $ identity { email: validateEmail }

validateEmail :: ∀ m. Monad m => V.Validation m Errors String Email
validateEmail = V.hoistFnV $ mkEmail
  >>> lmap (InvalidEmail >>> pure)
  >>> V.fromEither

submitter :: ∀ m. Monad m => Form F.OutputField -> m Email
submitter = F.unwrapOutput >>> _.email >>> pure

render :: ∀ m. F.State Form Email m -> F.HTML' Form Email m
render fstate = do
  let _email = SProxy :: SProxy "email"
  HH.div_
    [ HH.label_ [HH.text "Email"]
    , HH.p_
        [ HH.input
            [ HP.value $ F.getInput _email fstate.form
            , HE.onValueInput $ HE.input $ F.ModifyValidate <<< F.setInput _email
            ]
        ]
    ]

However, as soon as it's used in a minimal component like this, the compiler spits out the RowToList error:
module Component
  ( component
  , Query(..)
  ) where

import Prelude

import EmailForm as EmailForm
import Data.Maybe (Maybe(..))
import Effect.Aff (Aff)
import Formless as F
import Halogen as H
import Halogen.HTML as HH
import Halogen.HTML.Events as HE

data Query a = Formless (F.Message' Email.Form Email) a
type ChildQuery = F.Query' EmailForm.Form Email Aff

component :: H.Component T.HTML Query Unit Void Aff
component = H.parentComponent
  { initialState: const unit
  , render: const render
  , eval: eval
  , receiver: const Nothing
  }

-- Error thrown here
render :: H.ParentHTML Query ChildQuery Unit Aff
render = HH.slot unit F.component Email.form (HE.input Formless)

eval :: Query ~> H.ParentDSL Unit Query ChildQuery Unit Void Aff
eval (Formless _ next) = pure next

The solution is to also export the custom error type defined in the module.
Expected behavior

Ideally, the compiler ought to warn when exporting the Form type without any of the types used inside of it, if those types are not exported as well. For example, if the only place ValidationError is ever defined is the same module as Form, and it is used in the row inside Form, then exporting Form should also require exporting those other types even if you're exporting Form without its constructors. This is related to https://github.com/purescript/purescript/issues/3394

If (1) above is not a good solution, there isn't available compiler support, or there's some other reason it can't be the solution, then at least #15 should be implemented to provide a better message for this error. In fact, because that error can arise in a few specific scenarios, there ought to be a piece of documentation specifically about this error that the error message links to.

In the meantime, this issue will help others solve the problem if it arises in their project.

With some further exploration, this issue is not to do with exporting the constructors of the Form newtype. It's specifically to do with the newtype relying on types that are defined in the same module but not exported to other modules.
For the time being, my solution will simply be to add a custom type error to the Formless component and link to new Formless documentation in this repository that helps troubleshoot possible causes.


Normalize example syntax

We've been using the https://github.com/red-gate/XmlDoc2CmdletDoc tool to put cmdlet documentation in-line with the source code. This PR normalizes the syntax we use for writing out examples.
Previously we were inconsistent in how we encoded examples. Sometimes we had text before the code snippet, sometimes afterwards. Sometimes we had <code> elements inside of <para> elements, other times we had it the other way around.
With this PR, all of our examples will render correctly in the new cmdlet reference website. (Current demo.)
The exact rules for how things are encoded are documented here and here. But ultimately it boils down to:

SHOULD NOT put <para> blocks before the <code> block. These are interpreted as "introduction" text. But the way Microsoft outputs introduction text is immediately before the cmdlet example, and by convention is only "PS C:>". We should just ignore that.
MUST only have one <code> block. Subsequent <code> blocks in the <example> will be ignored.
MUST NOT use HTML-escape characters, e.g. > to represent >. These don't get converted correctly. Just use > in the <code> block.
MUST NOT include <para> blocks inside of a <code> block. If you need newlines, just put them inside of the <code> element.
MAY have multiple <para> elements after the <code> block.

@quoctruong @ILMTitan PTAL. Not a functional change, but moving forward all cmdlet examples should follow this style. I can give you the gory details about how our previous, inconsistent approach wouldn't render correctly.

Done. PTAL.

PTAL

Yup, I'll take care of that and submit.
On Mon, Oct 17, 2016 at 12:57 PM, Quoc Truong<EMAIL_ADDRESS>wrote:

@quoctruong approved this pull request.
LGTM. GitHub indicates there may be merge conflict between this and the
master branch though.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/GoogleCloudPlatform/google-cloud-powershell/pull/347#pullrequestreview-4546316,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD19l1raaUtAASsoX26dv-jQWWI7ja3Bks5q09M-gaJpZM4KY0Q7
.


Update Google Maps Plugin README.

Adds instructions for iOS and notes that this is a developers preview.

TBR @bparrishMines @cbracken

@Hixie do you think https://github.com/dart-lang/sdk/issues/35261#issuecomment-442004235 is worth it for unreleased packages to make it a bit harder for people to publish wip packages.

We should just publish the packages early.


copy-sqllogin Unable to use SourceSqlCredential or DestinationSqlCredential

Is this:
Just place "x" to indicate selection (e.g. "[x]")

[ ] feature
[ X] bug:

System Details

Operating system name and version:
Output from $PSVersionTable:
Name                           Value

PSVersion                      4.0
WSManStackVersion              3.0
SerializationVersion           <IP_ADDRESS>
CLRVersion                     4.0.30319.42000
BuildVersion                   6.3.9600.17400
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2
Evaluate $PSVersionTable in PowerShell and paste the output here

Output of dbatools version:

Evaluate (Get-Module dbatools -ListAvailable).Version and paste output here
latest from website as of today 3/07/2017 - I was unable to get this command to output.

- SQL Server version for source/target
SQL 2012 SP3 CU8

## Steps to Reproduce

Import-Module C:\_appscripts\dbatools-master\dbatools.psd1

$cred = Get-Credential
copy-sqllogin -source sts1 -destination ss3 -SourceSqlCredential $cred -DestinationSqlCredential $cred

3. Received following error

Attempting to connect to SQL Servers..
What if: Performing the operation "Showing time started message" on target "console".
What if: Performing the operation "Showing migration attempt message" on target "console".
Skipping ##MS_PolicyEventProcessingLogin##
Skipping ##MS_PolicyTsqlExecutionLogin##
Can't connect to sts1: System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'CV\matt.dunleavy'.

At line:115 char:3
+         throw "Can't connect to $sqlserver`: $message "
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Can't connect t...unleavy'.
    :String) [], RuntimeException
    + FullyQualifiedErrorId : Can't connect to sts1: System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'CV\matt.dunleavy'.

fixed in dev version


Populate sentry_useremail with email address

Summary
Email verification was added in Sentry Server 8.6, which uses a new table named sentry_useremail to store email addresses for verification rather than using the email address already in the auth_user table. This updates the sentry-ldap-auth plugin so the sentry_useremail table is populated with the value of the LDAP user's mail attribute.
Fixes #11
How to test

With an instance of Sentry Server 8.6 or higher, pip install git+https://github.com/Banno/getsentry-ldap-auth.git@populate-useremail

Log in with an LDAP user's credentials
Query the sentry_useremail table to verify that the e-mail address is populated as expected

Notes

This has been made backward-compatible with Sentry Server versions before 8.6, so no exceptions are thrown due to the lack of the sentry.models.UserEmail model

Awesome, will test right away. Thanks guys!


requestPointerLock crashes in Safari

Try this game: http://playcanv.as/p/VXuXQkTe
It doesn't start in Safari because we crash when app.mouse.enablePointerLock() is called.
Probably should check for support before crashing.

Fixed in https://github.com/playcanvas/engine/commit/54c2b2641a335fe6dca8eb16909b20d18e31a3bc


Middleware: Domain server summary: Add Link to Server group

Domain mode EAP7 is configured.
From Middleware Provider Summary page, go to "Middleware Servers"
Select some Domain mode server from list.
There is not back link to Server group from server's summary page.

From "Middleware Domains" it is possible to list all servers of all Server groups, but when listing Domain mode servers from "Middleware Servers" or going into that servers summary page, there is not a link to "Server Group". There is feed_id, but user should not copy it and search by it.
Feature Request:
Add new field "Server Group" in "Relationships" of Domain mode Server Summary page with linking to Server Group.
Currently there is link from Server Group to Domain which is good.
Adding requested link will close the backward linking chain.
@abonas

@miq-bot add_label providers/hawkular

@hhovsepy a server belongs in domain mode to a server group and not to a domain (and a server group, in turn, belongs to a domain). so if anything, this should be about a link between a server to a server group.
@miq-bot assign @Jiri-Kremser
@Jiri-Kremser please check this issue

@abonas ok, then to server group,
at least to be some backward compatibility between servers and back to server groups.

@hhovsepy please adjust title/description accordingly, I'll let @Jiri-Kremser respond/check on the issue essence itself :)

@hhovsepy if you navigate from domain->server group->server, can you see those relationships/links? is it missing only in a particular situation or always?

@abonas right, it is missing in all cases, while navigating: domain->server group->server, or directly provider->server.

@hhovsepy I am taking this issue. As far as I understand, there is a missing link in the summary page. I can find your desired link, but is hidden under the "Relationships" pane located at the left of the summary page. Please, see this image:

Can you try that link and tell if that is what you need? If so, may be we only should replicate that link to the summary page to make it available at first look.

@israel-hdez thank you for taking a look,
yes this is the link I wanted to replicate on the summary page, and it links correctly.

Verified, Middleware Server Group link is in Relationship section of Server's Summary page.


longevist PHAF files

Mandatory columns as follows:
FIle 1
1 | Gene systematic ID |  (see file 1 short_lived)
2 | FYPO ID | FYPO:0000245 |
3 | Allele description | deletion |
4 | Expression | null |
11 | Allele type | deletion |
12 | Evidence | ECO:0000336 |
13 | Condition | YES |
17 | Reference | PMID:35820914 |
18 | taxon | taxon:4896
19 | Date | 2024-12-31
FIle 2
1 | Gene systematic ID |  (see file 2 long_lived)
2 | FYPO ID |  FYPO:0001309 |
3 | Allele description | deletion |
4 | Expression | null |
11 | Allele type | deletion |
12 | Evidence | ECO:0000336 |
13 | Condition | YES |
17 | Reference | PMID:35820914 |
18 | taxon | taxon:4896
19 | Date | 2024-12-31
[short_lived.txt](https://github.com/user-attachments/files/18277363/short_
long_lived.txt
lived.txt)

long_lived.txt
short_lived.txt


Can't connect to mysql through socket, but .htconfig.php is <IP_ADDRESS>

PHP Warning:  mysqli::mysqli(): (HY000/2002): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /home/src/hubzilla/include/dba/dba_mysqli.php on line 11
PHP Stack trace:
PHP   1. {main}() /home/src/hubzilla/include/deliver.php:0
PHP   2. deliver_run() /home/src/hubzilla/include/deliver.php:176
PHP   3. cli_startup() /home/src/hubzilla/include/deliver.php:9
PHP   4. dba_factory() /home/src/hubzilla/include/cli_startup.php:22
PHP   5. dba_driver->__construct() /home/src/hubzilla/include/dba/dba_driver.php:37
PHP   6. dba_mysqli->connect() /home/src/hubzilla/include/dba/dba_driver.php:117
PHP   7. mysqli->mysqli() /home/src/hubzilla/include/dba/dba_mysqli.php:11

but .htconfig.php is:
$db_host = '<IP_ADDRESS>';
$db_port = '3306';
$db_user = 'hubzilla';

This is causing API calls to fail. In particular, it's causing 404 errors (maybe because boot.php or something very early on is failing to run due to socket error, thus the whole application is unavailable)
NB: this is being prompted by heavy load during bulk migrator importer testing.  I'm not sure I could come up with a reproducible test case, but I could try.

Also, I'm seeing these too, which are puzzling:
PHP Fatal error:  Call to undefined function mysql_connect() in /home/src/hubzilla/include/dba/dba_mysql.php on line 9
PHP Stack trace:
PHP   1. {main}() /home/src/hubzilla/include/deliver.php:0
PHP   2. deliver_run() /home/src/hubzilla/include/deliver.php:176
PHP   3. cli_startup() /home/src/hubzilla/include/deliver.php:9
PHP   4. dba_factory() /home/src/hubzilla/include/cli_startup.php:22
PHP   5. dba_driver->__construct() /home/src/hubzilla/include/dba/dba_driver.php:41
PHP   6. dba_mysql->connect() /home/src/hubzilla/include/dba/dba_driver.php:117

uhm look your host is <IP_ADDRESS>       localhost and in my.cnf max number of connections make UP
install mysqltuner is also for centos and so on
apt-get install mysqltuner
execute mysqltuner and you can see your MYSQL errors and what you need to make UP
I see previously some errors with HUbzilla in MySQL but all disappear using MariaDb . You can simple use apt-get remove for remove your MYSQL (NOT USE --Purge or you will lost your databases)
Make a copy of my.cnf and remove the Original and Install MariaDb

Nevermind, pilot error. File was not saved due to permissions error. Ignore the noise.

Ropening this. Indeed the settings are correct. It's possible that mysqli is ignoring <IP_ADDRESS> and insisting on using local socket instead. If this is the case, fixing this might be worthwhile.

Chasing down those line numbers, it seems that mysqli is seeing the $port as null! Thus it thinks it must use sockets. I suspect this is a PHP typecasting problem.

There we are first check sockets :+1:
In root:
php -i | fgrep 'mysql.default_socket'
Need to return something like that
mysql.default_socket => /var/run/mysqld/mysqld.sock => /var/run/mysqld/mysqld.sock
pdo_mysql.default_socket => /var/run/mysqld/mysqld.sock => /var/run/mysqld/mysqld.sock
In root terminal execute:
mysql -u root -p -h <IP_ADDRESS>
they will ask your root mysql password if connect go exit write "quit"
if not connect is a problem in your file my.cnf or /etc/hosts loook there if show 127 .0.0.1 and also to localhost pointing inside /etc/hosts
If connect and you can get <IP_ADDRESS> The problem usually with php the usual is a problem is your MySQL user host permissions . Simple make sure what ever mysql user you want to use have access to <IP_ADDRESS> and localhost
You can easy look all that with not command line with webmin anyway.

Added to hopefully reduce the noise:
php -i does report
mysqli.default_port => 3306 => 3306

The lines listed  clearly are executing because either the test for $port is incorrect (maybe it should be is_null()), or for some other reason. Perhaps someone who knows more PHP than I do could actually help fix this bug.

you can show anything in your php.ini any mysql port you like can be setup there  php -i not probe your mysql user connect to localhost or <IP_ADDRESS>:3306

Solution was port in .htconfig.php must be an integer not a string. Manually editing that file is frought with danger. However, mysql is still crashing and behaving badly, so this wasn't actually the problem. Closing this in an attempt to shake off the noise.


Consider applying moderation on the level of handlers

By applying the moderation for the whole input message, we will moderate any command or message handlers at once

Done in this commit: https://github.com/Flagro/TelegramRPBot/commit/f9347c0c07a9a23ea1a179087a67b67d1faafa59


Set a no output logger by default

There are a lot of calls to logger so either a nil logger argument needs to either raise an ArgumentError or have a reasonable default.
Here I'm presuming that the logger argument being nil is merely development exploration of the gem, so defaulting to a nil logger with a warning is acceptable.
Fixes #121

Closed by https://github.com/zendesk/ruby-kafka/commit/4ab0619eb3f9dfbeff4f16d6ba78d0e7973987f7 instead.

@dasch doing this
kafka = Kafka.new(seed_brokers: BROKERS)
producer = kafka.producer
producer.produce("foo", topic: "test")
producer.deliver_messages

on master still doesnt work. adding logger: Logger.new(nil) does help.
Was the fix merge?

On latest master that snippet works.

What exception are you seeing?

using
gem 'ruby-kafka', git: "https://github.com/zendesk/ruby-kafka.git", branch: "master"
I am getting
NoMethodError: undefined method `info' for nil:NilClass
    from .../ruby-kafka-0.2.0/lib/kafka/cluster.rb:39:in `add_target_topics'

unless I add the Logger.new(nil)

@guyisra On master I don't get the error when I go through the snippet code anymore. Maybe try bundle update ruby-kafka?

The fix works for me! Kinda bummed not to see specs around the behavior though.

@sdball I typically only specify positive properties (i.e., stuff that should happen) and not negative properties (stuff that should not happen). Over-specification is just as problematic as under-specification is.

Interesting, I haven't really seen that approach before. But passing a logger argument should result in a nil logger, right?
For my view I treat tests as the first code reuse of a system as well as executable documentation. That's why I like to cover both directions with a clear explanation.
If something changes and the tests need to change then that's should that should be carefully considered because the stated API is changing.

Oops: not passing a logger should result in a nil logger.


Steps to reproduce:

Enable a repository
Make the first build
Enable an hourly cron job
Disable repository
Wait for next cron schedule
Voila! cron execute the job

I think that if a repository is disabled, Drone should be disable cron jobs too.

fixed by 32f286e1ed5ecce82ebc8fbbca292e086227329e


Global frame definition in Action (v0.3)

Is your feature request related to a problem? Please explain.
It's sometimes a little hard to define the frames in a relative fashion inside an Action (v0.3).
If I want to define two objects that appear one after another but should disappear at the same global time one has to write some kind of weird formula :smile:
Describe the solution you'd like
We have the ability to use Rel already which I haven't really used at all yet :smile: and I think Glob makes more sense for this.
So instead of writing
o = Object(101:200, ...)
act!(o, Action(10:20, ...))

one can write
o = Object(101:200, ...)
act!(o, Action(Glob(110:120), ...))

One should also update example follow path with this.


ENHACEMENT: identifier field for features

Hello again,
In the GeoJSON specification, it's contemplated the possibility of having an identifier field in the GeoJSON objects, stored in the id field. It would be great to have GeoJSON.js accept another parameter to specify which field should be parsed into that identifier. As of now, it can be done by iterating the results and moving the id field from properties to the feature.
Thanks for your time,
Pedro.

I have modified my local copy to account for this. It sets feature no.1 as id: 0, no.2 as 1 etc..
I could do a pull request for this change - and in my use case it would suffice. However I wanted to ask if anyone has ever had a need for this ID beeing anything other than just a sequencial number.

However I wanted to ask if anyone has ever had a need for this ID beeing anything other than just a sequencial number.
Yes, this could come from input json and should be dealt with as include for properties.

Just in case anyone else stumbles on this in need of a solution, here is how to move the 'id' field out of properties and put it in the feature root. It would be nice if GeoJSON.js handled this natively however.
`
// Parse data into geojson.
const geojson = GeoJSON.parse(data, { Point: ['lat', 'lng'] })
// Move id from properties to feature.
geojson.features = geojson.features.map(({ properties: { id, ...otherProperties }, ...rest }) => ({ id, properties: otherProperties, ...rest }))
`


Add analytics stack label

Fixes

Fixes failing stack label check in https://github.com/WordPress/openverse/pull/943
Description

Do we actually want this? How do we decide what the "stacks" are?
Testing Instructions

Test by confirming the check passes in this PR with the analytics label.
Checklist

[x] My pull request has a descriptive title (not a vague title like
Update index.md).
[x] My pull request targets the default branch of the repository (main) or
a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[N/A] I added or updated tests for the changes I made (if applicable).
[N/A] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible
errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

Considering that the 🧱 stack: frontend labels covers this use case

This is only true if we assume that Django won't be sending analytics events. #873 requests one analytics event added on the API side.
I'm not sure what the intention of the stack labels is though, what they mean to convey.

As for what constitutes the stack, that's a good question and one that needs more clarity, and possibly better naming.

Can you open an issue for this? It shouldn't be too hard to do, just need a backfill job or manual work to switch things that used the old "backend" label so we can delete it, right?

@obulat do we have infra issues in this repo? WordPress plugins do seem like a new stack. Also documentation deservers to be a stack, considering it's a standalone Sphinx project.

@dhruvkb Do you have any further thoughts on this PR? I'd like to close it if we don't want to take this approach. But then it's worth discussing the stack labels a bit more generally elsewhere to clarify what their purpose is and how we would decide to add new ones.

I think we can close the PR, or put it on hold, till we have a discussion to clearly understand what the labels actually mean.

Sounds good! Identifying the use-cases for them during that future discussion will hopefully help give clarity.


OSD-6004 - Allow generic var replacement for any usecase

Right now we support only two parameters osdctl servicelog post -t $template -c $CLUSTER -i $CASE_ID . This PR is removing this logic of specific flags (e.g. one flag for the cluster, one flag for the caseid, etc) and it replaces it with any custom flag introduced by the user, via the -p.
e.g.
servicelog post -t /path/to/template -p FOO=asdf -p BAR=qwert
# you need to have ${FOO} and ${BAR} placeholders in the template, otherwise it fails

tested, works, lgtm, plz mrg, kthxbye

/lgtm
/approve


Create a SteadyTime type in the Manager

This replaces Manager.getSteadyTime() long value with a concrete type to make it more apparent what time is being used. The serialization and deserialization logic have been encapsulated as methods to make the conversion consistent.
This closes #4482

@keith-turner - I wasn't sure exactly if this was what you had in mind but I took an attempt at this. Mostly it's just a wrapper for the long time and provides some methods for comparing and serialization/deserialization. The ManagerTime class is still responsible for handling the computation of a new SteadTime object based on a skew.

My latest update moves the SteadyTime object to the core module in the same package as NanoTime, I realized I needed to move this in order to make the class available when looking at passing it to the TabletManagementIterator (which is not in the manager module) for https://github.com/apache/accumulo/issues/4454


[BUG] project root get set to wrong directory

NeoVim Version
NVIM v0.9.0
Build type: Release
LuaJIT 2.1.0-beta3

Describe the bug
When running lua require'neotest'.summary.open() the tab with the summary opens and starts parsing tests. The problem is that it does not parse from that file only or the project files. It jumps quite a few folder out and starts parsing from that.
Running :lua print(vim.fn.getwd()) gives the correct working dir.
Are there any likely causes for this, or is it hard to say without more info?
I am debugging Dart code.
How does neoest choose what it sets as the root project dir?

Ah, I see. Thank you for the reply


Use the same yesno indicators accross all boolean columns

Description

Just a small update to use the same yesno indicators accross all tables. Some used a big check mark, others a small one and others used True and False.
User Impact

Nothing really
Demo

N/A
Docs

N/A

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Additional details and impacted files

:loudspeaker: Thoughts on this report? Let us know!


Error in gym setup on Windows

Hi there,
I just cloned the repo, create a new conda environment and then run pip install --upgrade luxai_s2.
I get this error:
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

This is my conda environment:
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
bzip2                     1.0.8                h7f98852_4    conda-forge
ca-certificates           2022.12.7            ha878542_0    conda-forge
ld_impl_linux-64          2.40                 h41732ed_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 12.2.0              h65d4601_19    conda-forge
libgomp                   12.2.0              h65d4601_19    conda-forge
libnsl                    2.0.0                h7f98852_0    conda-forge
libsqlite                 3.40.0               h753d276_0    conda-forge
libuuid                   2.32.1            h7f98852_1000    conda-forge
libzlib                   1.2.13               h166bdaf_4    conda-forge
ncurses                   6.3                  h27087fc_1    conda-forge
openssl                   3.0.8                h0b41bf4_0    conda-forge
pip                       23.0.1             pyhd8ed1ab_0    conda-forge
python                    3.8.16          he550d4f_1_cpython    conda-forge
readline                  8.1.2                h0f457ee_0    conda-forge
setuptools                67.3.2             pyhd8ed1ab_0    conda-forge
tk                        8.6.12               h27826a3_0    conda-forge
wheel                     0.38.4             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge

This is the pip env:
Package    Version
---------- -------
pip        23.0.1
setuptools 67.3.2
wheel      0.38.4

Thank you for your help

Try pip install setuptools==56.0.0 maybe need to downgrade further.

Thanks for the quick responde. Unfortunately, no luck. I tried also 50.0.0

Could you try creating an env with https://github.com/Lux-AI-Challenge/Lux-Design-S2/blob/main/environment.yml?

No luck
Building wheels for collected packages: vec_noise
  Building wheel for vec_noise (setup.py): started
  Building wheel for vec_noise (setup.py): finished with status 'error'
  Running setup.py clean for vec_noise
Failed to build vec_noise
Installing collected packages: gymnasium-notices, vec_noise, typing-extensions, termcolor, pygame, jax-jumpy, importlib-metadata, gymnasium, pettingzoo
  Running setup.py install for vec_noise: started
  Running setup.py install for vec_noise: finished with status 'error'

Pip subprocess error:
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      C:\Users\jacopo-repossi\miniconda3\envs\luxai_s2\lib\site-packages\setuptools\__init__.py:85: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`.
        dist.fetch_build_eggs(dist.setup_requires)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-38
      creating build\lib.win-amd64-cpython-38\vec_noise
      copying perlin.py -> build\lib.win-amd64-cpython-38\vec_noise
      copying shader.py -> build\lib.win-amd64-cpython-38\vec_noise
      copying shader_noise.py -> build\lib.win-amd64-cpython-38\vec_noise
      copying test.py -> build\lib.win-amd64-cpython-38\vec_noise
      copying __init__.py -> build\lib.win-amd64-cpython-38\vec_noise
      running build_ext
      building 'vec_noise._simplex' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for vec_noise
  error: subprocess-exited-with-error

  × Running setup.py install for vec_noise did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      C:\Users\jacopo-repossi\miniconda3\envs\luxai_s2\lib\site-packages\setuptools\__init__.py:85: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`.
        dist.fetch_build_eggs(dist.setup_requires)
      running install
      C:\Users\jacopo-repossi\miniconda3\envs\luxai_s2\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-38
      creating build\lib.win-amd64-cpython-38\vec_noise
      copying perlin.py -> build\lib.win-amd64-cpython-38\vec_noise
      copying shader.py -> build\lib.win-amd64-cpython-38\vec_noise
      copying shader_noise.py -> build\lib.win-amd64-cpython-38\vec_noise
      copying test.py -> build\lib.win-amd64-cpython-38\vec_noise
      copying __init__.py -> build\lib.win-amd64-cpython-38\vec_noise
      running build_ext
      building 'vec_noise._simplex' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> vec_noise

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

failed

CondaEnvException: Pip failed

You need to do the following:
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

If you already have it try reinstalling

I had to reinstalling it. Super weird.
At the end I did the following, for future reference:

no conda, but I used pip and virtualenv
setuptools==56.0.0
(re)install Microsoft Visual C++ 14.0 or greater

Thanks for your help


Render newslines (as  tags) in listing descriptions

per request from @joshfraser, following code from here:
https://medium.com/@kevinsimper/react-newline-to-break-nl2br-a1c240ba746
Newlines get converted to  tags, nothing more.
We might consider supporting full-on markdown (eg via this package) , but we'd want to disable images, and have a bigger discussion of whether markdown is the officially recommended format for Origin listings.

Oh nice. Safer to do it in css.  Which do setting do we use, pre-line ?

Here are the options 👇

@wanderingstan you want to confirm your approval of this now? Or let me know if you prefer more white space. ⬜

LGTM!


chore(csharp): Abundant Number

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] New algorithm
[ ] Optimization in previous algorithms
[ ] Code style update
[ ] Refactor
[ ] Documentation
[ ] Other, please describe:

Briefly describe the changes in this PR
Created a folder name: Maths in CSharp/src dir and added the solution.cs there
Other information:

closes: #355

Hi @UG-SEP,
I just add some comments about the coding style, please add a unit test for this and ensure this works on dotnetfiddle NET 5.

@ming-tsai I need to add a test unit in the test folder
Am I right

Hi @UG-SEP,
I just add some comments about the coding style, please add a unit test for this and ensure this works on dotnetfiddle NET 5.

@ming-tsai I need to add a test unit in the test folder
Am I right

Yes

@ming It is not showing to add a reference to the Abundant. cs well I have created this in the same project and also Installed NUnit & NUnit3 test adapter
Can you please help me

@Ming It is not showing to add a reference to the Abundant. cs well I have created this in the same project and also Installed NUnit & NUnit3 test adapter
Can you please help me

You could guide with Palindrome test on C#

All test cases pass successfully
Thanks, @ming-tsai  for helping me during the unit test work
I am too glad to have you with me...

Nice work


nw.exe has stopped working

On windows 7 mw.exe crashes all the time.
I'm trying to use this module >> https://npmjs.org/package/ffi
I've installed the module in my app's dir and wrote a simple app, here's the index.html:
<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Test</title>
	</head>
	<body>
		<script>
		var FFI = require('ffi');
		</script>
	</body>
</html>

When i launch the app nw.exe dies. Any ideas?

So what was the fix for this issue?


besides mean average, mode metric should also be available

sometimes a few outliner elapsed values can dramatically change average value and this may lead to wrong evaluation. to decrease this side effect, mode calculation should be available.

How many decimal places should be considered in your opinion for mode calculations?
I would try to write an API for the same.

Looking at request times within a few projects, it looks like 6 decimal places would be sufficient.
But I am not convinced yet that mode calculation will be useful. On the other hand, I am also thinking of calculating standard  deviation to devise a better way for elimination of outliners. For this;
1.step: calculate standard deviation
2.step: ignore numbers which are out of standard deviation
3.step: calculate mean of request times which are in standard deviation.

Check this out:
https://perfwork.wordpress.com/2012/04/09/response-time-metric-for-sla/
Percentiles are the solution. We can go for 90% and a 20% too.


Only picking up python files and its content

I am able to run this locally with Ollama and Deepseek-coder-v2
But somehow its only picking up python and .py file content but shows all file tree
is there a way we can use javascript/typescript files and its content?

@gittmaan Thanks for reporting. Please check now and let me know if you still face issues.
Please upgrade to the latest version

I have Requirement already satisfied: pyasn1<0.7.0,>=0.4.6 in /opt/homebrew/Caskroom/miniforge/base/envs/praison/lib/python3.12/site-packages (from pyasn1-modules>=0.2.1->google-auth<3.0.0dev,>=2.14.1->google-cloud-aiplatform<2.0.0,>=1.26.1->embedchain<0.2.0,>=0.1.113->crewai>=0.32.0->praisonai[code]) (0.6.0) still its not picking js / ts code I am running pip install "praisonai[code]" and praisonai code

@gittmaan pip install -U "praisonai[code]" to upgrade . Please try after that and let me know. Thanks

@gittmaan Should be fixed in this version: https://github.com/MervinPraison/PraisonAI/releases/tag/v0.0.52

@MervinPraison Awesome! I needed to uninstall and install it again and it seems working now thanks 🙏🏼


#459 error collection

closes #459

need to update documentation first

:tada: This PR is included in version 3.12.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


amplify rebuild api fails when using searchable in schema

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v16.14.0
Amplify CLI Version
8.0.1
What operating system are you using?
Windows
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
Amplify Categories
api
Amplify Commands
Not applicable
Describe the bug
amplify rebuild api fails with the following error when using a schema with searchable in it.
🛑 ["Index: 0 State: {\"deploy\":\"waitingForDeployment\"} Message: Resource is not in the state stackUpdateComplete"]
tested application by pushing the schema without searchable and then amplify rebuild api the application works fine with no error.
I utilized the example provided in the documentation.
Expected behavior
perform rebuild without any errors.
Reproduction steps

amplify add api
paste schema containing searchable.
amplify push -y
amplify rebuild api

GraphQL schema(s)
type Student @model @searchable {
  name: String
  dateOfBirth: AWSDate
  email: AWSEmail
  examsCompleted: Int
}

Log output

# Put your logs below this line

Additional information
No response

this issue still occurs for me too

any updates, I have this issue as well


Read up on Preprocessing / Colmap

What is it and what can we do with it?
Create small presentation for rest of team

Colmap as far as we are concerned, generates pointclouds in a sparse and dense variant. It does so using Structure from Motion. With this it determines the locations of our cameras.
In Pre-Processing, we are looking to get camera positions/paths for our source images.
The Images saved are in their original resolution and in progressively downscaled variants.
A pointcloud is generated by Colmaps but isnt needed for splatfacto.
Most of Colmaps other functionality because of this less directly relevant for out splats.
(ns-process-data is not bound to Colmap but can also use hloc, another SfM tool.)
Different camerytypes can be adjusted for here, but splatfacto is only compatible with the default ('perspective').
We can add evaluation data in oder to improve the accuracy of our results with --eval-data.
--matching-method can be alternatively set to exhaustive (or sequential for frames of videos).
The exhaustive option is best used at below ~200 source images which would work well with our current plans to capture our location in batches.
While it has been very effective at improving a scene with low initial matches but could turn out to be marginal with higher quality source images.


chore: adapt ics27 controller claiming of channel capability

Description

ICS27 controller now claims the channel capability passed via ibc core
The channel capability arg is now passed to the underlying app as nil
The channel capability arg in SendTx is now ignored and looked up internally
The testing/mock IBCModule now only claims the channel capability if it is not nil

closes: #2033

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against correct branch (see CONTRIBUTING.md)
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards.
[ ] Wrote unit and integration tests
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/)
[ ] Added relevant godoc comments.
[ ] Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Review Codecov Report in the comment section below once CI passes

Please let me know if there's any additional tests to add. I'll update with a changelog entry also 👍

Codecov Report

Merging #2146 (d995695) into main (f263794) will decrease coverage by 0.03%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##             main    #2146      +/-   ##
==========================================
- Coverage   79.28%   79.24%   -0.04%
==========================================
  Files         170      170
  Lines       11855    11862       +7
==========================================
+ Hits         9399     9400       +1
- Misses       2040     2044       +4
- Partials      416      418       +2

Impacted Files
Coverage Δ

...7-interchain-accounts/controller/ibc_middleware.go
81.69% <25.00%> (-3.61%)
:arrow_down:

.../27-interchain-accounts/controller/keeper/relay.go
73.33% <40.00%> (-4.72%)
:arrow_down:


Feature: could we make the help window configurable?

Have you RTFM'd?

[X] I have done proper research

Feature Request
Currently, the help window is hard-coded to open at the bottom of the screen, which can overlap with the fzf window when using split layout:
Before opening help:

After opening help:

If putting at top with border = "single":

Could we expose an option help_winopts that accepts a table as the parameter passed to vim.api.nvim_open_win() so user can customize the border and position of the help window? I am glad to submit a PR for it.

Could we expose an option help_winopts that accepts a table as the parameter passed to vim.api.nvim_open_win() so user can customize the border and position of the help window? I am glad to submit a PR for it.

Im thinking maybe it’s better to supply a help_open_win opt, the option will be a function responsible for opening a new window, you can then set whatever options you want in nvim_open_win or even open in a top split using vim.cmd(…)?
This would also simplify the config (one single opt) as I don’t foresee too many users customizing the help window.

Im thinking maybe it’s better to supply a help_open_win opt, the option will be a function responsible for opening a new window, you can then set whatever options you want in nvim_open_win or even open in a top split using vim.cmd(…)?

Sounds great, thanks!

https://github.com/ibhagwan/fzf-lua/commit/24dff52a65aa71189425363bd2678c70c2ac8f41
Added my changes on top of your commit, made the option picker local so you can now do this per call (because why not):
require("fzf-lua").files({
  help_open_win = function(buf, enter, opts)
    opts.border = 'single'
    opts.row = 0
    opts.col = 0
    return vim.api.nvim_open_win(buf, enter, opts)
  end,
})

Note that I moved your changes from fzf-lua-opts.txtto OPTIONS.md as that's the original source of the options, the file is then auto-generated with ts-vimdoc.nvim.


[AutoPR monitor/resource-manager] Monitor Python multi-api

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/6410

(message created by the CI based on PR content)


Quic-wf-core.tgz is not downloadable

Hello author, I am very interested in your work. Can you provide a new download address for the dataset? I would greatly appreciate it if you could receive a response

Sorry for that, the link has been updated. You can find the tar files here: https://doi.org/10.3929/ethz-b-000456101

Thank you very much for your update!
养乐多?
@.***

------------------ 原始邮件 ------------------
发件人:                                                                                "jpcsmith/wf-in-the-age-of-quic"                                                                                @.>;
发送时间: 2023年7月12日(星期三) 晚上11:50
@.>;
<EMAIL_ADDRESS>主题: Re: [jpcsmith/wf-in-the-age-of-quic] Quic-wf-core.tgz is not downloadable (Issue #1)
Sorry for that, the link has been updated. You can find the tar files here: https://doi.org/10.3929/ethz-b-000456101
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


extend derive with support for enums

#60 includes support for deriving ToJava and ToRust for structs, but not enums.
For enums, the plan I had was:

#[java(class.name)] on the enum itself
optional #[java(subclass.name)] on each variant, which is then treated exactly like the code for a struct (and the code should mostly be ready for that)
we will check that each subclass for the variants extends the enum class, and that there is exactly one variant without a #[java] annotation (which serves as a "fall through").

When we implement ToRust, we will check whether the input is a subtype of the class associated with each variant and use that constructor if so, falling back to the one variant that has no #[java] annotation. This will use the same variant_to_rust code as for structs.

Here is an example of the kind of type we'd like to apply it to:
https://github.com/duchess-rs/duchess/blob/main/examples/auth.rs#L67-L77
I expect this would look like
#[derive(Debug, Error, duchess::ToRust)]
#[java(java.lang.Throwable)]
pub enum AuthenticateError {
    #[error("Unathenticated({0})")]
    #[java(auth.AuthenticationExceptionUnauthenticated, user_message)]
    Unathenticated(String),

    #[error("InvalidSecurityToken")]
    #[java(auth.AuthenticationExceptionInvalidSecurityToken)]
    InvalidSecurityToken,

    #[error("InvalidSignature")]
    #[java(auth.AuthenticationExceptionInvalidSignature)]
    InvalidSignature,

    #[error("InternalError({0})")]
    #[java(java.lang.Throwable, get_message)]
    InternalError(String),
}

which would generate code vaguely like this
https://github.com/duchess-rs/duchess/blob/main/examples/auth.rs#L157-L192

Hey @duchess-rs/devs -- I'm wondering if anyone has time/interest in taking this on?


Fr/gdrive lef 280

Updates core requester methods to allow for bypassing the JSON.stringify helper transformation (breaks file upload data bodies)
Confirms upload options via tests to demonstrate loading from a local file vs. loading from a downloaded file (more options than what are proven here, like writing the downloaded file to disk, but this works as a gist.
Fixes the auth refresh issue (getInstance wasn't passing along the refresh_token to the API class

👍

:rocket: PR was released in<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>:rocket:


Added CSGO surfing clips

goofy ah CSGO surfing better than code. I've attention span of gold fish, my TS types are all any.

Very poggers, thank you


Added support for SMA Meters

#49 Added Support for SMA Meters

Support for SMA Home Manager 2.0, this is a Grid meter
Support for SMA Energy Meter 30, this can be used as a Grid meter or PV meter
Both devices use UDP multicast to send a binary message with the current power values overall and for each phase encoded with OBIS codes
Including two test cases with sample multicast data packages

Did you test concurrency using go run -race to ensure this doesn't contain any racy code?

Just did, works fine. After a few seconds the multicast data packages take longer than the timeout, but I guess that is because of the -race flag triggering this as it increasing the timing.

Running a build with this from now on, let's see how it works tomorrow :)

Test build failed with golangci/golangci-lint crit unable to find '' - use 'latest' or see https://github.com/golangci/golangci-lint/releases for details

Hier hätte ich die Konstante nicht verwendet, aber ist Geschmackssage.

Ich schon 😁

Ich meinte https://github.com/andig/evcc/blob/master/provider/mqtt.go#L236

/cc @premultiply- is this something you would want to test while in PR status?

@andig Vor Morgen werde ich leider nicht dazu kommen können etwas zu testen.
Also gerne schon mal mergen wenn es von der Theorie her gehen sollte ;-)

@premultiply das geht nicht nur von der Theorie, das läuft hier sogar praktisch 😁


Chase the Basketball tutorial for Warner Bros. Partnership

A modification of the Chase the Pizza tutorial and the addition of a new custom tutorial intro gif.

Looks great Sonia!  Just missing the custom sprites.


[Map] DM-Bulk

Hash: 2e47381d8d43e39885f5f03ee5babc07d9eaceb2
Current name: DM-Bulk
According to the readme, the author's name is Toby J. Adams aka Legendslayer222
Probably just Toby J. Adams
If there are maps by Legendslayer222 then an alias is required

Updated


Fix #540 : Added more tests to nth-prime and altered example code

The test execute time has gone from 2.975s with the old example code and the old tests to 3.200s with the new tests and the new example code.

@gavinhenderson looks great.  I took a similar approach with my solution a while back!
I appreciate the fact that you commented explaining the magical math.  It might be improved slightly by referring to a citation that explains the formula.  By way of example, here's that old solution I mentioned:
import sieve from './sieve';  //my Sieve class from earlier

export default class Prime{

  // see http://en.wikipedia.org/wiki/Prime_number_theorem#Approximations_for_the_nth_prime_number
  nth(n) {
    if (n < 1) throw new Error("Prime is not possible");
    let approximateLimit = n * Math.log(n) + n * Math.log(Math.log(n));
    approximateLimit < 15 ? approximateLimit = 15 : {};
    return sieve(approximateLimit).primes[n - 1];
  }
}

Would you mind making that comment change?  Otherwise this PR looks good to me.

@matthewmorgan Thats the link added now

@gavinhenderson awesome-- thank you.
Can I ask you to squash your commits to one for this PR?  Please let me know if you need assistance with this, I'd be happy to help.

@matthewmorgan So I think I might have done it?

Nicely done.  Thanks for your contribution!


Add a CtOption to Option conversion?

For now, if one wants to convert a CtOption to an Option (say, at the end of a computation, when constant-time doesn't matter anymore) they need to manually write an if ... else block.
let foo: CtOption<T> = ...
let bar: Option<T> = if foo.is_some().into() {
    foo.unwrap()
} else {
    None
};

Would it make sense to expose an unwrap_option method?

On the one hand, this would allow more idiomatic Rust constructs, e.g. early return with ? such as let bar: T = foo.unwrap_option()?;.
On the other hand, one can argue that an if ... else block is more explicit, which allows to more easily spot the variable-timeness of it.

Rather than an unwrap_option method, if we did this I think that the best API would simply be impl From<CtOption<T>> for Option<T>.  The unwrap_u8 naming is intended to indicate that it's an escape hatch, whereas this would just be an ordinary conversion (in the same way that there's impl From<Choice> for bool).

Thinking about more, it seems to me that an implicit non-constant-time conversion to Option would be a bad idea. The manual if ... else is clearer.


Eddystone-URL uses BroadcastMode?

I need clarification on a few points:

What type of Advertisement PDU is used for each Eddystone Frame type?
Eddystone-URL Configuration Service spec says Eddystone-URL should not be connectable during regular URL Advertising mode which means beacon device acts as a broadcaster, and thus  accoeding to bluetooth spec 4.2 device in the broadcast mode shall not set the ‘LE General Discoverable Mode’
flag or the ‘LE Limited Discoverable Mode’ flag in the Flags AD Type. So Flags must not be there in EddyStone-URL Frame. Correct me if I am wrong.

Every Eddystone frame shares a [common structure][] and each frame type is encapsulated in the Service Data data type.
[common structure]: https://github.com/google/eddystone/blob/master/protocol-specification.md
I'll let @mmocny and @roywant talk about the URL-specific questions.

Actually for first question I want to know the PDU type(like ADV_IND / ADV_NONCONN_IND / ADV_SCAN_IND / ADV_DIRECT_IND) used for each Eddystone frame in BLE Advertisement packet Header.
Does all uses the same PDU type?

We've intentionally left the specific flags undefined. Some implementations may want to remain connectable so they're always configurable, others may want to interleave frames with scan responses, others may want to lock things and be non-connectable after provisioning. While we have advice (like preferring NONCONN in dense 2.4 GHz environments etc.) we feel implementors know their own use cases better than we do.

Thanks a lot [@mashbridge] (https://github.com/mashbridge) for clarifying.

@mashbridge
I have another doubt. Since EddyStone -UID  says:
The length of this frame is fixed and takes up the full 31 bytes of the ADV packet. The value of the Service Data Length byte must be 0x17(23 B). Existing UID implementations that truncate the frame to omit the RFU bytes will use 0x15(21B).
This calculation comes only if FLAGS AD is included in Frame.
According to BT4.2 CSSv6 we can skip FLAGS AD if we use ADV_NOCONN_IND. So is it mandatory to use the Length specified in the Specs.
Same is the case of EddyStone-TLM.

I had not noticed the statement that the length must be 0x17.  If this is true, how is it possible to have shorter URLs that do not use all the bytes available in the PDU?

@arpit0410 Good catch. An earlier revision of the spec did fix the flags etc. but this should speak only w/r/t the service data PDU.
@davidgyoung  This is just for UID frames. URL frames are have variable length.

@mashbridge  So Is there any Plan to Use those 3 Bytes that we get from FLAGS AD which won't be there in ADV_NOCNN_IND PDUs. In that case spec needs to change these Service Data Length Value to allow use of full use of 31 Bytes available.


App panic on user

Michael's push panicked:
multisig tx push ../Downloads/unsigned4.json cosmos icf-fc
panic: interface conversion: interface {} is nil, not []interface {}
goroutine 1 [running]:
main.parseDenomFromJson(0xc0000d4900, 0x699, 0x899, 0x0, 0x0, 0x0, 0x0)
	/Users/niedm/multisig/util.go:114 +0x286
main.cmdPush(0x1cd8100, 0xc0002b23c0, 0x3, 0x3, 0x0, 0x0)
	/Users/niedm/multisig/main.go:342 +0x145
[github.com/spf13/cobra.(*Command).execute(0x1cd8100](http://github.com/spf13/cobra.(*Command).execute(0x1cd8100), 0xc0002b2390, 0x3, 0x3, 0x1cd8100, 0xc0002b2390)
	/Users/niedm/goApps/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:852 +0x47c
[github.com/spf13/cobra.(*Command).ExecuteC(0x1cd7480](http://github.com/spf13/cobra.(*Command).ExecuteC(0x1cd7480), 0x0, 0x0, 0x0)
	/Users/niedm/goApps/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x375
[github.com/spf13/cobra.(*Command).Execute(...)](http://github.com/spf13/cobra.(*Command).Execute(...))
	/Users/niedm/goApps/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
main.main()
	/Users/niedm/multisig/main.go:45 +0x2d
macbook-pro:multisig niedm$

unsigned4.json:
{
  "body": {
    "messages": [
      {
        "@type": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
        "delegator_address": "cosmos1z8mzakma7vnaajysmtkwt4wgjqr2m84tzvyfkz",
        "validator_address": "cosmosvaloper14kn0kk33szpwus9nh8n87fjel8djx0y070ymmj"
      },
      {
        "@type": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
        "delegator_address": "cosmos1z8mzakma7vnaajysmtkwt4wgjqr2m84tzvyfkz",
        "validator_address": "cosmosvaloper1hjct6q7npsspsg3dgvzk3sdf89spmlpfdn6m9d"
      },
      {
        "@type": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
        "delegator_address": "cosmos1z8mzakma7vnaajysmtkwt4wgjqr2m84tzvyfkz",
        "validator_address": "cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn"
      },
      {
        "@type": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
        "delegator_address": "cosmos1z8mzakma7vnaajysmtkwt4wgjqr2m84tzvyfkz",
        "validator_address": "cosmosvaloper1ehkfl7palwrh6w2hhr2yfrgrq8jetgucudztfe"
      },
      {
        "@type": "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",
        "delegator_address": "cosmos1z8mzakma7vnaajysmtkwt4wgjqr2m84tzvyfkz",
        "validator_address": "cosmosvaloper1kgddca7qj96z0qcxr2c45z73cfl0c75p7f3s2e"
      }
    ],
    "memo": "",
    "timeout_height": "0",
    "extension_options": [],
    "non_critical_extension_options": []
  },
  "auth_info": {
    "signer_infos": [],
    "fee": {
      "amount": [
        {
          "denom": "uatom",
          "amount": "10000"
        }
      ],
      "gas_limit": "1200000",
      "payer": "",
      "granter": ""
    }
  },
  "signatures": []
}

Possibly the file has some issues, but we still shouldn't panic.

Related to #26