Create Database HTTP interface

Is there any way to create a database using the HTTP protocol ? Or to get the actual transport used inside the InfluxDB object?
(On another note: The lib does not support influxDB2.0 right ?)

Yes, you can use InfluxDB::createDatabaseIfNotExists() (supported on HTTP only). The internal transport is not exposed.

(On another note: The lib does not support influxDB2.0 right ?)

Not officially, but I have it on my todo list already.

Or is the install command the problem ? Because this is all the install command does for me. To get to more in depth commands i would have to copy header files from src which sounds wrong.

The install command installs public / exported API only, everything in src/ is implementation only and not intended for client usage. The structure looks OK for me.

Ok i am very sorry seems that i was completely mistaken yesterday. Or may it be possible that the last tagged version did not support that yet ? Because i always got an error saying that it was not implemented. (Only Curl installed so Http protocol)

The method is available since v0.6.0, can you figure out the version you are using (eg. CMakeLists.txt or Git commit)?

Yeah i must have messed it up somehow.

Ok there definetly is something wrong i was not completely mistaken. So i am building for Windows and Linux - release and debug. If i use 0.6.4 only Release can find the symbol for InfluxDB::createDatabaseIfNotExists(). If i use the master it compiles everything but debug build for Windows crashes and throws: bad allocation which is not caught by this code snippet
const std::string query = "http://user:password@localhost:8086?db=metrics";
    try
    {
        mConnection = influxdb::InfluxDBFactory::Get(query);
    }
    catch (influxdb::InfluxDBException& e)
    {
        std::cout << e.what() << std::endl;
    }

The curl binary i am using is https://curl.se/windows/dl-7.75.0_4/curl-7.75.0_4-win64-mingw.zip.
Ninja version is 1.10.2
cl.exe: Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29337 for x64
CMake version is 3.19.5

Do I understand this correctly: The issue appears on Linux and Windows (or Windows only?)? Is there any useful information in the bad_alloc exception or it's stacktrace?
Can I test the minimal example in two scenarios (not linking any other libraries):

The code above compiled as an executable and InfluxdDB is linked
The code is compiled as part of this project (eg. by using a add_executable()and linking the library)

The 0.6.4 issue appears on Win and Linux. Master only has the explained issue on Windows. I tried to find more useful information but as soon as i try to step in on InfluxDBFactory::Get the Exception appears. This is what i think is the weirdest thing and i cannot really explain it. I tried deleting anf starting from scratch but the issue comes up again. The Library is built and Linked via a custom finder for the include dir and the library.

I can try to put together a minimal example later today.

That would be great. Please double check if the correct library is linked, maybe there's another version laying around somewhere.

influx_testing.zip
If you want to have a look here is a reproducer. I guess there is something wrong with my linking but i did not figure it out yet.

The project failed to build on my system (Linux) as it copies curl DLLs around.
Please start with a really minimal example, like a simple main with the code above and no additional logic or dependencies. You can then use ldd to figure out what's linked actually. Just make sure influxdb and the example are compiled with the same build type – unlike the CMake default the library uses RelWithDebInfo if no build type is set explicitly.

I just simplified the sample and it ran. Then i executed the binary from the debug build that failed the last days and that worked too. I don't know why but it seems to be somehow ip dependent. If i use localhost, the local IP or the IP within the VPN. All the tests i did today - without changes - apart from the used IP worked. I will just close this again...


Track token use per play

It might be interesting to track how many token's an AI model uses when playing a round so that we can then display a cost / game won or "brain efficiency" that we can then display on the leaderboard

input and output or only output tokens?

@FleetAdmiralJakob the idea is to know how much you spend per one click of "Start game"

I want to work on this
discord: obo.baddest

Made a PR for this issue if anyone can check it out and give feedback.
https://github.com/webdevcody/survive-the-night-sim/pull/134
Thank you.

closed in https://github.com/webdevcody/survive-the-night-sim/pull/134


Build failure with Go 1.7.4

I am new to go, but I think I am doing this right and it should work.  The following uses docker to reproduce the problem to ensure that the issues aren't related to my environment.
$ docker run -it golang:1.7.4
root@1880646cda2e:/go# export GOOS=windows
root@1880646cda2e:/go# export GOARCH=386
root@1880646cda2e:/go# go get github.com/microsoft/hcsshim
# github.com/microsoft/hcsshim
src/github.com/microsoft/hcsshim/hcsshim.go:151: type [1073741824]uint16 too large

Closing. Minimum go version is now 1.9.


use different host as relayhost in sasl_passwd

Hi,
Thanks for this awesome helm chart!
For some reason our SMTP relay requires a different host in the sasl_passwd file than the actual RELAYHOST configured.
Would it be possible to add something like an SASL_RELAYHOST variable that will be used instead of the RELAYHOST inside the sasl_passwd file when specified?
I would be happy to create a PR if you think this makes sense.
Thanks a lot!

Weird flex but OK. Submit a patch and we'll see what can be done.

fyi patch is here, let me know what you think: https://github.com/bokysan/docker-postfix/pull/77


Sendgrid mails goes to spam folder

Sendgrid mails goes to spam folder and their support propose only get Dedicated IP.
Part of their mail:

It is also important to note that you are on a Shared IP, there is some risk involved as other users use the same sending IP address to deliver their email as well. SendGrid does its best to identify bad senders in our system but unfortunately one or two bad senders on Shared IPs can sometimes impact the email deliverability of good senders.
What I can recommend in this case is encourage those recipients (or move your test emails) out of the spam folder and into the inbox. the more this happens the more your reputation will build as it is just starting out fresh sending with us.

I've setup DKIM and SPF records on my domain... Anyway I live theory, thats probably its not 100% their problem.
Mayby also mail template is too popular, and gmail automaticaly recognize it as spam.
How about your mails @eemebarbe ?
P.S. thanks for answer on previous issue.

That wouldn't have anything to do with the app.

I understand it completely. How about your mails on your server, does it delivers in incoming box?


Can't get back to Draft; add button capture to work by default

Replication steps for the issue:

Install Draft from opkg
Install Keywriter form opkg
Configure Draft to launch Keywriter
Go into Keywriter
Can't get back to the Draft launcher, tried tapping on each corner and each button in read and write Keywriter mode

Suggested options:
Similarly to Remux and Oxide add a default button capture event, so on one of the button presses the user can get back to the Draft launcher.
Thanks for the consideration.

I believe @dixonary is working on a complete rewrite of draft so this likely wont happen as part of it's current form. What you (or another person) could do is open a PR to add this in. Likely something like populating /etc/draft/.terminate with kill <pid> of the started process if a stop command isn't provided. Although with how it's running the process I'm not sure how easy that would be to do without rewriting how applications are started.

Thanks Eeems!
As noted in the readme, as of the current version of draft the termination logic is handled by button-capture, a separate binary. This binary is not included as part of the draft package.
So an alternative solution may be to augment the draft package in Toltec to include and enable button-capture by default.

(naturally these problems will be solved in the next major version!)

@dixonary & @Eeems
Thank you both for comments. I was filing an issue as a suggestion for a future inclusion to make the package installation and wider use a bit easier.
Since there is a new version in the works, seems like that would be the most logical place. Looking forward to it once it comes out.
Thank you for creating and maintaining the code.


Manual merge PR #21890

Hello,
You closed my Issue without speak with me.
You said that the YAKU token was already used but yeah it's my token and i did a mistake the address was wrong.
I updated the token address, please merge it.
Thank you

To update the address you'll need to edit the existing token, not add a new token.

How to do that @spacemandev-git ?

I only modify my token on the list then ask a merge

Start from a fresh copy of the token list, find your token and modify it. You've instead added your token as a new listing, which will not work.


kernel_concatenation_test fails with "Aborted (Core dumped)"

@tensorflow/micro
System information

Host OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04
TensorFlow installed from (source or binary): source
Tensorflow version (commit SHA if source): 765ddddb22
Target platform (e.g. Arm Mbed OS, Arduino Nano 33 etc.): Linux x86_64

Describe the problem
Running
$ make -f tensorflow/lite/micro/tools/make/Makefile test_kernel_concatenation_test
results in the following output
tensorflow/lite/micro/testing/test_linux_binary.sh: line 46:  4201 Aborted                 (core dumped) $1 > ${MICRO_LOG_FILENAME} 2>&1 tensorflow/lite/micro/tools/make/Makefile:321: recipe for target 'test_kernel_concatenation_test' failed make: *** [test_kernel_concatenation_test] Error 134
Please provide the exact sequence of commands/steps when you ran into the problem
$ make -f tensorflow/lite/micro/tools/make/Makefile test_kernel_concatenation_test

Confirming that I see the test segfault, though I am able to build it. Because of the recent flatbuffer version upgrade, please try make clean clean_downloads and then try to run the test.
We will look into the test segfaulting.
$ make -f tensorflow/lite/micro/tools/make/Makefile test_kernel_concatenation_test
tensorflow/lite/micro/testing/test_linux_binary.sh tensorflow/lite/micro/tools/make/gen/linux_x86_64/bin/kernel_concatenation_test '~~~ALL TESTS PASSED~~~'
Segmentation fault
tensorflow/lite/micro/tools/make/gen/linux_x86_64/bin/kernel_concatenation_test: FAIL - '~~~ALL TESTS PASSED~~~' not found in logs.
Testing TwoInputsAllAxesCombinations
Segmentation fault
make: *** [tensorflow/lite/micro/tools/make/Makefile:321: test_kernel_concatenation_test] Error 1

I just tried this and it worked for me.  @jenselofsson can you confirm that this is now fixed for you as well?


Noetic transition (with Python 3 and 64-bit Raspberry Pi OS)

This P/R addresses the need to transition to the latest ROS release, along with the much-requested Python 3 support (see also: #215, #154). The main difference here is that this is no longer a "hacked together ROS-like distribution", ROS Noetic supports Python 3 natively.
Another big change here is the operating system, which is finally a 64-bit one. It is still based on Debian Buster, so there shouldn't be major changes in terms of usability. Still, since Buster is officially supported as a ROS Noetic target platform, and as such has prebuilt packages for it (at least for arm64), the Clover image now benefits from upstream packages. End users will no longer have to struggle compiling their own packages that are missing from the COEX repo.
OpenCV is updated as well, the image now uses the 4.2.0 packages from the COEX repo. Since this is not what comes in Buster by default, several ROS packages still had to be recompiled; these packages are installed from the COEX repo, and will not be updated automatically.
P/R progress:

[x] Noetic native build target;
[x] Raspberry Pi image build;
[x] "Smoke tests" (the resulting image boots, LED strip works, rangefinder works, camera works);
[ ] Flight tests (cannot be performed by me);
[ ] Simulation plugins (they do compile, but I haven't done extensive tests);
[ ] Documentation

The new release can't be release as of https://app.asana.com/0/270319579573412/1199184524185765.

#327.


Fix reseting of line termination for serial

When a serial instruments is set to use the VI_ATTR_TERMCHAR for
VI_ATTR_ASRL_END_IN (default) then it uses the value in VI_ATTR_TERMCHAR.
By default read_termination is None, and VI_ATTR_TERMCHAR ends up being the
default value of LF. But when switching around the read_termination to
something (like CR) then coming back to None will leave VI_ATTR_TERMCHAR
in a different state that at the start (with CR instead of LF) and this will
change the behavior of read on serial instruments.
The above change always makes VI_ATTR_TERMCHAR LF when read_termination is set
to None.

Coverage decreased (-0.01%) to 50.41% when pulling ab5b78bad120c03b62d06ef5b3187bcf41b357ef on lupien:serial_read_termination into 404df0235e638a4f0a85a7018ae1e15d11d49d6b on hgrecco:master.


[Bug]: ImportError: cannot import name 'ResponseSynthesizer' from 'llama_index' (unknown location)

Bug Description
Hi, here i want to use following code:
from llama_index import ResponseSynthesizer
but I met an error:ImportError: cannot import name 'ResponseSynthesizer' from 'llama_index' (unknown location)
Please tell me how can I solve this
Version
0.11.19
Steps to Reproduce
maybe use 'llama_index import ResponseSynthesizer'
Relevant Logs/Tracbacks
No response

OK! But I met another Error: cannot import name 'LLMPredictor' from 'llama_index' (unknown location)

could you tell me how to solve it?

If I must use "LLMPredictor", which version of llama_index should I use?

LLMPredictor was removed a long time ago. Like, anything before v0.10.x will have it.
I really recommend reading the latest docs and using the latest versions of the library though

In latest versions, you can just pass the llm in directly
index.as_query_engine(llm=llm)
Or set a global default
from llama_index.core import Settings

Settings.llm = llm


frequency augment format with identifiers

Along with #166, a request has been received to augment the frequency CVs with identifiers as below:
"frequency":{
 "1hr":"1-hourly average",
 "1hrClimMon":"1-hourly climatological average",
 "3hr":"3-hourly average",
 "6hr":"6-hourly average",
 "day":"daily average",
 "dec":"decadal average (calculated as the mean of 10 years and 12 months per year)",
 "fx":"fixed (time-invariant)",
 "mon":"monthly average",
 "monClim":"monthly climatological average (climatological period should be defined)",
 "subhr":"???",
 "yr":"annual average",
 "yrClim":"annual average (climatological period should be defined)"
},

Suggested amendments or improvements to the suggested values above are welcomed

Note: At some frequencies (e.g., 6hr and 3 and possibly 1hr) some variables may be recorded synoptically (so-called "point" data) while others are time-means at some frequencies, so the descriptions will have to be modified.
Is the idea that the abbreviations are not easy to understand?  If so, perhaps they should be written:
"1hr":"sampled hourly"
"1hrClimMon":"monthly climatology of diurnal cycle computed from hourly samples"
"3hr":"sampled every 3 hours"
"6hr":"sampled every 6 hours"
"day":"daily mean samples"
"dec": **** are you sure these resolve the annual cycle? I thought they were simply decadal means, so they would be labeled "decadal mean samples".
"fx":"fixed (time invariant) field"
"mon":"monthly mean samples"
"monClim":"monthly climatology computed from monthly mean samples"
"subhr":"sampled sub-hourly"
"yr":"annual mean samples"

In the current data request there are no instances of yrClim.  Unless this is an error in the data request, yrClim  should be removed from the CV.  Otherwise I would describe it as "multi-year time mean"

@dnadeau4 the change noted above will likely be implemented today, it'd be great to get this into the new cmip6-cmor-tables/Tables/CMIP6_CV.json release, so just a change to the script that generates the json file


[focusgroup] Focus in logical grid rows that are not vertically stacked

It's not clear to me how the "horizontal", "vertical", and "grid" values correspond with markup and layout. Do focus groups support navigating through groups where the arrow keys don't correspond with the visual layout of items?
For example, WAI ARIA practices have a pill list example that acts as a layout grid. Pressing "down" moves focus to the next pill, while "right" moves from the name to the X button. Is this system supported by focus groups?

Here is the markup for that example:

     Recipient Name 1

         X

     Recipient Name 2

        X

These are logically row-ordered data, so the focusgroup=grid horizontal would be the appropriate mapping. By marking up the content like this (other attributes omitted for brevity) we almost get the expected behavior according to the Authoring Practices:

       Recipient Name 1

        X

       Recipient Name 2

        X

This highlights a few interesting things:

focusgroup=extends on the role=row makes the assumption that it will be the grid's vertical (column) data, but this is not explicit. This assumption is clearly seen when the role=gridcell elements extend the focusgroup which must be an extension of the column-defining focus group only--not defining a new grid structure. This points to the fact that the proposal may need to be explicit about specifying which extension point is the column structures, vs. which is just an extension of the row's data. It happens to work out nicely above, but if there was some other markup between the role=grid and role=row, I'm not sure it would go so well...
Even with a horizontal presentation, the structural navigation metaphor remains intact: pressing "down" on "Recipient Name 1" goes to the cell "below" it in tabular form ("Recipient Name 2"). Same for the close buttons. Right/left arrow keys would work within the row (between the Recipient Name N" and close buttons). However, what would not work, is the behavior of the left and right arrow keys between rows. In the example code, pressing the right arrow key moves focus through row 1, then automatically wraps to the next row (row 2), and moves through it, stopping at the end. This is behavior that is not currently possible with the focusgroup explainer as-is.

Grid navigation behavior of this form might be unique enough to warrant creating a special kind of wrapping behavior to support the 2nd point above. wrap as specified now, only provides row or column wrapping, not end-of-row to start-of-next-row wrapping. Maybe we can consider a new value "flow" that enables this logical progression from row-to-row, which would complete the scenario above.

Both cases should be handled depending on what the author would like the behavior to be (regarding movement from pill-to-pill when focused on a sub-control of the pill).
Note that the 'flow' behavior between rows is now part of the explainer's latest udpate.


fix: relative logo url with option to override

we hardcoded the logo url to https://www.carforyou.ch and in hindsight, I find that somewhat critical. I often find myself testing locally, clicking the logo and then not realizing I switched to production. I propose to default to /, while giving the private seller header in dealerhub the opportunity to override with process.env.LISTINGS_URL explicitly

@Averethel Just for my understanding why do you see changing a link on a logo as a breaking change?

@lkappeler I looked if we need to change the usage. If we don't do anything in dealer hub the logo would link to the welcome page instead of the homepage of car for you. From that perspective, I see it as a breaking change since (if we don't do anything) the user workflow is broken. But it's also fair to not treat it as such since from the interface perspective it's an additive change. I'd like to keep one perspective when we look at changes though so we have the same reference.

yeah I was thinking about that too and decided to turn a blind eye to the fact that for a short time, dealerhub for users might link to dh.cfy.ch/ instead cfy.ch/

I'll bundle this with the separate repository we discussed. that's a clear breaking change anyway

Yeah that was exactly my point like I'd always look the interface perspective of a package like. If you don't change anything when updating will it break your app or not...
(Ofc we need to update the link and add it when updating it but worst case the link we point to another target but nothing will be broken in that way...)


Comments for each commit.

In eeac956 you forgot to remove SMLLineNumbers.m/h from the repo! I'll fix this when pulling.
As a sidenote, Apple's convention for private methods is to prefix them with an underscore.


RW loss

Hi, When I use RW loss, I find a question that during training process, the loss value is negative, Could you tell me why?

Hi! The RRW map contains negative values, so, multiplying it with the softmax values (positive values) will lead to some negative values, which ultimately may lead to a negative loss. Nevertheless, this should not affect convergence or optimization stability.


[Desktop App] First Release

@lukasschor just to confirm:

#727 will not be part of this first release.
#863 takes care of a few known wallet issues, but there are few pending items reported in there.

Yes 👍


Use empty() instead of size() to check whether we have elements in th…

…e map and fixed some incorrect logging
* rmw_connext_shared_cpp/src/names_and_types_helpers.cpp:
* rmw_connext_shared_cpp/src/service_names_and_types.cpp:
* rmw_connext_shared_cpp/src/topic_names_and_types.cpp:
* rmw_connext_shared_cpp/src/types/custom_data_reader_listener.cpp:

Found these when working on rmw_opendds (see https://github.com/jwillemsen/rmw_opendds/tree/jwi-openddsros2)

Linux
Linux-aarch64
macOS
Windows

Jenkins errors don't look to be related to my changes
Linux:

04:49:06 ==> vcs import "src" --force --retry 5 --input 01-rmwc.repos
04:49:06 === src\ros2/rmw_connext (git) ===
04:49:06 Invocation of command 'import' on client 'git' failed: PermissionError: [WinError 5] Access is denied: 'src\\ros2/rmw_connext' (c:\python37\lib\site-packages\vcstool\clients\git.py:209)
04:49:06 <== 'vcs import "src" --force --retry 5 --input 01-rmwc.repos' exited with return code '1'

Windows:

02:33:56 -- Found ament_lint_auto: 0.6.2 (/home/rosbuild/ci_scripts/ws/install/ament_lint_auto/share/ament_lint_auto/cmake)
02:33:56 CMake Error at /home/rosbuild/ci_scripts/ws/install/rmw_implementation_cmake/share/rmw_implementation_cmake/cmake/get_default_rmw_implementation.cmake:60 (message):
02:33:56   Could not find ROS middleware implementation 'NOTFOUND'.  Choose one of the
02:33:56   following:
02:33:56 Call Stack (most recent call first):
02:33:56   CMakeLists.txt:28 (get_default_rmw_implementation)

Checking CI again since it's been a while

Linux
Linux-aarch64
macOS
Windows

Linux CI failure looks unrelated, will wait before rerunning
/home/rosbuild/ci_scripts/venv/bin/python: can't open file '/home/rosbuild/ci_scripts/venv/bin/vcs': [Errno 2] No such file or directory

CI using ros2/ci#234

Linux
Linux aarch64

CI looks good, thanks for the PR!


Difference between ARM Compute Library and ARM NN - Info needed

Hi
I have come across ARM NN: https://github.com/arm-software/armnn
Could you please give some idea on whether it is same as ARM Compute library and what are the differences/similarities.
Basically, I would like to evaluate whether we can use ARM Compute Library OR ARM NN.
Any inputs in this regard would be really helpful.
Thanks in advance.
Kamrao

ok. Thank you. I shall take a look at this.
Kamrao

Thanks @mkamrao . I close the ticket but feel free to open another one if you have any further question

Hi,
Can anyone point me to as a Beginner guide to ArmNN ? I am also confused whether to build the network using the basic building blocks in ACL or to use the ArmNN graph API.
Thanks

Hi @prateethvnayak ,
It depends on the degree you want to tweak the network. We suggest ArmNN because developed for an higher level of abstraction.
Here the link of the repo: https://github.com/arm-software/armnn
Ask there for a guide, they will probably know better where to redirect you.
Also please open a new issue next time
Thanks

@ManubARM Thanks for the quick reply. I just replied here since it was on Similar lines rather than opening a new issue.
I am talking in terms of very basic math operations level, where I need the flexibility of playing with bit-precision for weights in the network. In that sense ACL is more suitable ? or I still could stick to ArmNN.
Thanks

It is more difficult for us to keep track of closed issues, they just won't stand up. Feel free to reopen.
If you want to develop a network with layers already supported in ACL, go for ArmNN. You can use ACL to develop networks, but you'll find it easier with ArmNN.
If you want to create new operators or modify existing ones for research (for example), ACL. In this last case, if we find it of interest we might merge the patch.
Manuel

@ManubARM
Yes, I will be wanting to modify or add new operators for research purpose. I will stick to ACL. Will keep you posted once I have working idea.
And, next time will reopen/open a issue.
thanks

You might be interested on out Linaro gerrit repo:
git clone https://review.mlplatform.org/ml/ComputeLibrary
In there we can review your commits so that they can stick to our conventions
Manuel


Get all the consumable notes by a particular account

This ENDPOINT will be used to show user a list of all the consumable notes that the account can consume. with this user will be able to select all the notes that user wants to execute in a single transaction

There is no straightforward way to check if an account can consume a note other than naively executing a consume-notes transaction and seeing if it works out. This is doable with the client currently, so closing as done.

While this is fine for now, we do need to improve on this strategy. Specifically, for some note types (e.g., P2ID, P2IDR) it is straightforward to check if a can consume a note without executing a transaction. We should create a separate issue for this (unless we already have one).


Setting default value for inputs leads to error

I have written this GraphQL schema:
input OrderByClause {
    field: String
    order: OrderEnum
}
extend type Query {
    brands(q: String @search orderBy: [OrderByClause!] = [{field: "id", order: DESC}] @orderBy): [Brand]
    @paginate(type: "paginator" defaultCount: 10 maxCount: 100 model: "App\\Models\\Brand")
}

but the plugin says that field and order are unknown fields.

Fixed in 3.0.0.


facing Issue While Swift package Manager add

Facing Swift package Manager adding.

@SmartAkashNara , It won't support the Swift Package Manager. We will give the support by EOF.

@sathishvgs ok thanks


Homepage alignment on phone

Currently, it's a vertical scroll with one scheme in one row (iPhone 6, ios 12). Can we have two schemes in a row to reduce the duration of the scroll?

done in latest version


Update Site settings “info”

Automatically generated by Netlify CMS

👷 Deploy Preview for visionary-brigadeiros-5b21d1 processing.

Name
Link

🔨 Latest commit
7cf4db231b57724c5885124df624153e90a542ac

🔍 Latest deploy log
https://app.netlify.com/sites/visionary-brigadeiros-5b21d1/deploys/633491b58b9129000ae51140


fix(core): Remove Aries did comm from typing and strip back UI

Description
Remove Aries/DIDComm from typing and strip back UI
Checklist before requesting a review
Issue ticket number and link

[x] This PR has a valid ticket number or issue: link

Testing & Validation

[ ] This PR has been tested/validated in IOS, Android and browser.
[ ] The code has been tested locally with test coverage match expectations.
[x] Added new Unit/Component testing (if relevant).

Security

[ ] No secrets are being committed (i.e. credentials, PII)
[ ] This PR does not have any significant security implications

Code Review

[ ] There is no unused functionality or blocks of commented out code (otherwise, please explain below)
[ ] In addition to this PR, all relevant documentation (e.g. Confluence) and architecture diagrams (e.g. Miro) were updated

@bao-sotatek Not sure why I can't see the identifier anymore.


Test Case Fail- Push Artifact With ORAS CLI

Exception: Error: Exited with error code: 255. Output:Flag --allow-unsigned has been deprecated, pull no longer exits with an error code in case of unsigned image. Now the flag only suppress warning message.
FATAL:   Couldn't not parse configuration file /usr/local/etc/singularity/singularity.conf: open /usr/local/etc/singularity/singularity.conf: no such file or directory

done


Unable to find template plugin matching '-"typescript" -"typescript-operations" -"typescript-urql"'

Which packages are impacted by your issue?
No response
Describe the bug
While running the yarn codegen command. I am getting the following error
Unable to find template plugin matching '-"typescript" -"typescript-operations" -"typescript-urql"'
I have installed all the Dependencies required for the code generation. Also mentioned all the Dependencies in package.json
Your Example Website or App
https://github.com/saifrahmn/reddit-web
Steps to Reproduce the Bug or Issue
.
Expected behavior
.
Screenshots or Videos
.
Platform

OS:  Windows
NodeJS: [e.g. 18.5.0]
graphql version: [e.g. 16.3.0]
@graphql-codegen/* version(s): [e.g. 2.6.2]

Codegen Config File
No response
Additional context
No response

Hello 👋  Could you try adding a space between the - and each of your template please? :)
overwrite: true
schema: "http://localhost:4000/graphql"
documents: "src/graphql/**/*.graphql"
generates:
  src/generated/graphql.tsx:
    plugins:
      - "typescript"
      - "typescript-operations"
      - "typescript-urql"

That worked @eddeee888, thank you very much. I was stuck at it for a day. Such a effortless error


REC functionality

Hi and thanks for you're awesome work on Grounding DINO.
I mostly use Grounding DINO to label different object classes, which works really nicely.
Now I tried to experiment with the models REC functionality using the Swin-T checkpoint, though Iam not able to get it working properly.
I tried both the image with the different colored cats and the image with the three lions.
E.g., I use the example prompt from the paper for the lion image "The left lion". This does not work at all. And this has been the experience for almost all images and prompts.
Now Iam wondering if Iam doing something wrong?
Thanks in advance,
kind regards,
M

I met the same problem .

Try lowering your text_threshold to ~0.01


Paramount+ a few links are returning extractor errors for no video formats found

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2021.12.17
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log

PASTE VERBOSE LOG HERE

H:\TV\Amazing Race\Season 34>youtube-dl https://www.paramountplus.com/shows/x/video/BLfZ2NmOdC6s7ESNp1lrtdzaxF9cKRMB/ --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.paramountplus.com/shows/x/video/BLfZ2NmOdC6s7ESNp1lrtdzaxF9cKRMB/', '--verbose']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.9.0 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 2021-10-11-git-90a0da9f14-full_build-www.gyan.dev, ffprobe 2021-10-11-git-90a0da9f14-full_build-www.gyan.dev
[debug] Proxy map: {}
[CBS] BLfZ2NmOdC6s7ESNp1lrtdzaxF9cKRMB: Downloading XML
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "b:\python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 815, in wrapper
return func(self, *args, **kwargs)
File "b:\python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 836, in __extract_info
ie_result = ie.extract(url)
File "b:\python39\lib\site-packages\youtube_dl\extractor\common.py", line 534, in extract
ie_result = self._real_extract(url)
File "b:\python39\lib\site-packages\youtube_dl\extractor\cbs.py", line 115, in _real_extract
return self._extract_video_info(content_id)
File "b:\python39\lib\site-packages\youtube_dl\extractor\cbs.py", line 97, in _extract_video_info
self._sort_formats(formats)
File "b:\python39\lib\site-packages\youtube_dl\extractor\common.py", line 1374, in _sort_formats
raise ExtractorError('No video formats found')
youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
H:\TV\Amazing Race\Season 34>youtube-dl https://www.paramountplus.com/shows/x/video/pTnw2RN7hMRYy4wruTBs4DeIFJOGBp91/ --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.paramountplus.com/shows/x/video/pTnw2RN7hMRYy4wruTBs4DeIFJOGBp91/', '--verbose']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.9.0 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 2021-10-11-git-90a0da9f14-full_build-www.gyan.dev, ffprobe 2021-10-11-git-90a0da9f14-full_build-www.gyan.dev
[debug] Proxy map: {}
[CBS] pTnw2RN7hMRYy4wruTBs4DeIFJOGBp91: Downloading XML
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "b:\python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 815, in wrapper
return func(self, *args, **kwargs)
File "b:\python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 836, in __extract_info
ie_result = ie.extract(url)
File "b:\python39\lib\site-packages\youtube_dl\extractor\common.py", line 534, in extract
ie_result = self._real_extract(url)
File "b:\python39\lib\site-packages\youtube_dl\extractor\cbs.py", line 115, in _real_extract
return self._extract_video_info(content_id)
File "b:\python39\lib\site-packages\youtube_dl\extractor\cbs.py", line 97, in _extract_video_info
self._sort_formats(formats)
File "b:\python39\lib\site-packages\youtube_dl\extractor\common.py", line 1374, in _sort_formats
raise ExtractorError('No video formats found')
youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
H:\TV\Amazing Race\Season 34>youtube-dl https://www.paramountplus.com/shows/x/video/fp0UpBYmsWgsJEn6kIZKKLqd2CIL2xGQ/ --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.paramountplus.com/shows/x/video/fp0UpBYmsWgsJEn6kIZKKLqd2CIL2xGQ/', '--verbose']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.9.0 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 2021-10-11-git-90a0da9f14-full_build-www.gyan.dev, ffprobe 2021-10-11-git-90a0da9f14-full_build-www.gyan.dev
[debug] Proxy map: {}
[CBS] fp0UpBYmsWgsJEn6kIZKKLqd2CIL2xGQ: Downloading XML
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "b:\python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 815, in wrapper
return func(self, *args, **kwargs)
File "b:\python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 836, in __extract_info
ie_result = ie.extract(url)
File "b:\python39\lib\site-packages\youtube_dl\extractor\common.py", line 534, in extract
ie_result = self._real_extract(url)
File "b:\python39\lib\site-packages\youtube_dl\extractor\cbs.py", line 115, in _real_extract
return self._extract_video_info(content_id)
File "b:\python39\lib\site-packages\youtube_dl\extractor\cbs.py", line 97, in _extract_video_info
self._sort_formats(formats)
File "b:\python39\lib\site-packages\youtube_dl\extractor\common.py", line 1374, in _sort_formats
raise ExtractorError('No video formats found')
youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
H:\TV\Amazing Race\Season 34>youtube-dl https://www.paramountplus.com/shows/x/video/hR9MY_yNXnGb_MOsSuVuyyeD55cIYe0H/ --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.paramountplus.com/shows/x/video/hR9MY_yNXnGb_MOsSuVuyyeD55cIYe0H/', '--verbose']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.9.0 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 2021-10-11-git-90a0da9f14-full_build-www.gyan.dev, ffprobe 2021-10-11-git-90a0da9f14-full_build-www.gyan.dev
[debug] Proxy map: {}
[CBS] hR9MY_yNXnGb_MOsSuVuyyeD55cIYe0H: Downloading XML
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "b:\python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 815, in wrapper
return func(self, *args, **kwargs)
File "b:\python39\lib\site-packages\youtube_dl\YoutubeDL.py", line 836, in __extract_info
ie_result = ie.extract(url)
File "b:\python39\lib\site-packages\youtube_dl\extractor\common.py", line 534, in extract
ie_result = self._real_extract(url)
File "b:\python39\lib\site-packages\youtube_dl\extractor\cbs.py", line 115, in _real_extract
return self._extract_video_info(content_id)
File "b:\python39\lib\site-packages\youtube_dl\extractor\cbs.py", line 97, in _extract_video_info
self._sort_formats(formats)
File "b:\python39\lib\site-packages\youtube_dl\extractor\common.py", line 1374, in _sort_formats
raise ExtractorError('No video formats found')
youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Description

I've been able to successfully download from Paramount+ in most cases, but for these few videos I am experiencing an Extractor Error that says no video formats were found. I am able to watch each of these episodes on Paramount+ without issue. Note that I am inserting the /x/ in each URL as downloading from Paramount+ doesn't work unless some dummy string is inserted between shows and video, but removing that /x/ and navigating to those links works fine.

Other pages that are handled by the CBS extractor are typically only offering DRM-encumbered formats. That is true for https://www.paramountplus.com/shows/x/video/fp0UpBYmsWgsJEn6kIZKKLqd2CIL2xGQ/.
See #31361.


kubeconfig: Modify FromEnvironment to handle lists

The KUBECONFIG environment variable is defined to contain a list of filenames. If it is a list, return the first one. If it's not a list, returns the entire string (as before).
In theory, a program using this environment variable would merge the kubeconfig files listed into a larger structure containing contexts, users, and clusters. At this time however, the eksctl-anywhere command is always expecting a single user/context/cluster to be defined in a single kubeconfig file.
Issue #, if available:
Description of changes:
Testing (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve


Scorm zip upload gives error at createDirectory

When uploading a zip file, sometimes createDirectory goes wrong, other times it doesn't.
I got this error:

I think it's wrong here:

When I comment out the if statement with the method_exists, it doesn't go wrong anymore.

You need to use a fixed version of 3.0.4 then you are good to go.

Try to check your composer :
"league/flysystem-bundle": "^2.2",
"devianl2/laravel-scorm": "^3.0.8", (Latest)
"php": "^8.0.2",

Great, it's fixed now. Thank you!


Undertow.js 1.0.0.Alpha3

Linux Build 7559 is now running using a merge of 1b87d52f670c626f8a64ba8ba0664465cc144215

Linux Build 7559 outcome was SUCCESS using a merge of 1b87d52f670c626f8a64ba8ba0664465cc144215
Summary: Tests passed: 3113, ignored: 365 Build time: 00:52:03


chore(dsl)!: write to file in workflow builder

Part of #1208.
Moving to a more declarative approach, so that there's no need to call the function explicitly - in practice, one always needs to call it, unless doing something awkward.

#1429  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @krzema12 and the rest of your teammates on  Graphite

Merge activity

May 9, 3:54 AM EDT: @krzema12 started a stack merge that includes this pull request via Graphite.


Infinite loop on import

Hi,
On unity 2020.1, while importing mips map, the unity importer is locked in an infinite loop.
I'm trying to figure it out, but with no success for now.

Hi,
I think the problem comes from this line : https://github.com/azixMcAze/Unity-CustomMipMaps/blob/698e799ac20279e63df0deadd9f593cf1eea869f/Assets/Editor/TestTextureImporter.cs#L68
I worked on it a long ago and I had trouble having all the mipmaps assets refreshed and imported, if I recall correctly.
In previous versions of unity, this line did not cause an infinite loop, but it appears to not be the case anymore.
The importer was never finalized, but maybe you can work it out 👍

Ok, I'll send an update if I find a fix ;)

It happens if the .mip{n}.png files are set to generate mipmaps (which they are by default). The script needs to tell them not to, I think?

I was able to fix this by manually editing the meta files of the .mip files to be readable. Considering that the script imports them the instant they are added to the project, there's no opportunity to manually set them to readable.
The mip script should set them to readable itself. I've been trying to get it to do this in time for the import but haven't quite got it. Will edit this when I figure it out. But I'm reasonably sure that is the issue.


Plugins subsystem

The plugin subsystem must do the following

Load plugins
Reload plugins (loading new version and unplug the old one)
Dispatch calls to method

abandoned


while running ./build.sh COPY failed: stat /var/lib/docker/tmp/docker-builder640498754/crypto: no such file or directory

Linux dev-VirtualBox 4.10.0-42-generic #46~16.04.1-Ubuntu SMP
x86_64 x86_64 x86_64 GNU/Linux
Step 3/3 : COPY crypto /orderer/crypto
COPY failed: stat /var/lib/docker/tmp/docker-builder640498754/crypto: no such file or directory

I am facing same issue.
solved with fixing error found in log one by one.
define cryptogen configtxgen on valid path.
Each peer directory require crypto directory.

@rajiv180984 Could you please explain creation of crypto folder in more detail. I am not able to follow you.


[FEATURE] Initial Tempo Plugin

Description
This first iteration of the Tempo plugin creates a pluginType called TraceQuery and creates plugin kinds TempoTraceQuery and TempoDatasource. This PR does not include any UI changes that accommodate Tempo data. However, future enhancements should include data visualization (e.g. Scatterplot) for TempoTraceQueries and UI data source editing options for TempoDatasources.
TempoDatasource
Currently, you can not add TempoDatasources via. the Perses UI. However, it can be created through the Perses API.
To demo the creation of a global TempoDatasource:

Create a local tempo instance (here's an example). In this example, Tempo is served from localhost:3200.
POST to /api/v1/globaldatasources

Figure 1. This figure shows the request and response from the Perses API when creating a global TempoDatasource.

Figure 2.  The TempoDatasource is now listed as a global data source.
TempoTraceQuery
The following code block is a dashboard definition JSON example for a TempoTraceQuery. The client uses the Grafana Tempo endpoint, /api/search?fooParams to query traces. The query must be written in Trace Query Language (TraceQL). For example  "query": "{ duration > 900ms }".
{
  "kind": "Dashboard,",
  "metadata": {
       ...
  },
  "spec" {
      "display": {
             ...
      },
     "panels": {
            "examplePanel" : {
                    ....
             },
              "queries": [
                          {
                            "kind": "TraceQuery",
                            "spec": {
                              "plugin": {
                                "kind": "TempoTraceQuery",
                                "spec": {
                                  "datasource": {
                                    "kind": "TempoDatasource",
                                    "name": "TempoLocal"
                                  },
                                  "query": "{ duration > 900ms }"
                                }
                              }
                            }
                          }
              ]
        },
        "layouts": {
             ...
         }
   }
}

After the client makes the request, the response is stored in the DataQueriesProvider. Panels can then retrieve the data using the function useDataQueries() e.g. const { queryResults: traceResults } = useDataQueries('TraceQuery');) Currently, there are no panels that accommodate Tempo data, so there are no screenshots.
Future Enhancements
Future enhancements should include a ScatterPlotPanel and TablePanel to display TempoTraceQuery results. Additionally, editing options will be added to the GlobalDatasource editing panels for TempoDatasources.

Screenshots
No UI Changes.

Checklist

[x] Pull request has a descriptive title and context useful to a reviewer.
[x] Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, IGNORE.
[x] All commits have DCO signoffs.

UI Changes

[x] Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
[x] Code follows the UI guidelines.
[x] Visual tests are stable and unlikely to be flaky. See Storybook and e2e docs for more details. Common issues include:

Is the data inconsistent? You need to mock API requests.
Does the time change? You need to use consistent time values or mock time utilities.
Does it have loading states? You need to wait for loading to complete.

Could you also add a doc about the Tempo datasource here: https://github.com/perses/perses/tree/main/docs/api/plugin ? Thanks !

@zhuje you have a conflict, would you mind to sync with the main branch please ?

Could you also add a doc about the Tempo datasource here: https://github.com/perses/perses/tree/main/docs/api/plugin ?

I'll create a separate PR for this.

@sjcobb @nicolastakashi @jgbernalp @celian-garcia maybe you will have others things to say here :)

LGTM, just a minor suggestion

Great ! Thank you @zhuje! I wrote a few comments 👍
For everyone: What is the rule for the files extensions .ts vs .tsx. I think that some files have the .tsx extension where they don't contain html. Is it a problem?

I had the same question for ".ts vs .tsx". I found this answer on StackOverflow. Generally, I followed the format of the Prometheus plugin, so whatever extension they used for a particular component/file I also used.

Awesome! Thank you for taking the time to fix everything @zhuje !!


General questions

Hi there @lovyan03 this looks very promising. Is it ready for people to start using?
I have been using @tobozo's ESP32-Chimera-Core because I want an up to date TFT_eSPI library for use with M5 Stack Core2. However the 3 touch buttons at the bottom of the LCD were not working properly (.pressedFor(1000) specifically) and tobozo told me about M5Unified.
I tried this library today and found the following issues:

I couldn't find a way to control the Core2 green LED which is done via the AXP192 "Sys_LED" on GPIO1. M5Stack's library has  M5.Axp.SetLed(0); to turn the LED off.
I use the FastLED library to control a single WS2812 RGB LED with data pin on ESP32 GPIO27. This was working on Chimera-Core but now the LED does not turn on. Not sure what's happening here.
I have a I2C sensor with SDA on pin 32, SCL pin 33 however I don't seem to be able to communicate with it any more. I initialise it in Wire.begin(32, 33);. I then tried M5.Ex_I2C.begin(I2C_NUM_1, 32, 33); but this also doesn't seem to work.

I'd appreciate your thoughts / ideas on these issues, thank you.

@patfelst
Thank you for your interest.
This project is still in its infancy, and I'm sure it will cause a lot of inconvenience, but I hope to make it good.
If you need an external 5V output, you need to call the following function.
M5.Power.setExtPower(true);  // If you need external port 5V output.

I expect this will probably solve two of your questions.
There is currently no API available for controlling the power LED.
We do not plan to add an LED control function to Axp, as this project needs to work the same way for all models.
I will add the M5.Power.setPowerLED() function instead.

Thanks @lovyan03 yes enabling the 5V power output fixed the RGB LED and the I2C sesnor.
For I2C, calling M5.In_I2C.begin(I2C_NUM_0, 32, 33); works, however I went back to Wire.begin(32, 33);. Again this was 5V power issue.
I look forward to finding M5.Power.setPowerLED() function in a future relase - thanks.
I forgot to say that BtnX.pressedFor(1000) is working as I expcted - good!
I will keep testing this library.

Actually, I have found an issue with BtnX.pressedFor(), but I will raise that in a new issue for this.
All the Lcd functions I have tested are working ok (custom fonts, lines, rectangles).

How do I turn on the Vibration Motor (PWM:AXP_LDO3)?


add more examples

please feel free to add more examples

@SimonWaldherr Added some more examples

Could I refactor a certain example to make it more idiomatic for Go?

I guess so, just open a PR and owner will choose whichever one he wants.

thanks guys 👍


release v0.31.0

https://twitter.com/carvel_dev/status/1560735160064425984
https://github.com/vmware-tanzu/carvel-imgpkg/releases/tag/v0.31.0
https://community.chocolatey.org/packages/imgpkg/0.31.0

https://twitter.com/rastadidi/status/1560871257708515329


binwalk 3.3.1 extract zip failed  but unzip can extract succefully

As the error message indicates, you are missing the 7zz utility (7zip) which Binwalk uses to extract ZIP files. On Ubuntu/Debian this can be installed via sudo apt install 7zip; the package name may vary for other Linux distros.
FYI, you can always view which utilities Binwalk uses for extraction by running binwalk --list.


add build sfi index

Needed for https://github.com/brentp/mosdepth/issues/243

I tagged v0.0.5 with this change


Media in direct message

How to get image from the direct message?

It should be in the entities attribute of the DirectMessage object.
See https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/entities-object#entities-dm.

Hi, im experimenting some problems with direct messages, is it all okay for you with just "api.direct_messages()"?
I heard twitter is changing the way it manages direct messages, but I don't really know if the change has been implemented already...

@miguelp25 This is an unrelated issue. See #1081.


Fix Communication JobRouter Sample Issues

Fixes #28124
@joheredi, @lfraleigh, @mayurid for notification.

API change check
API changes are not detected in this pull request.

These need to be fixed in the samples-dev folder and then re-generate the ts and js into samples with the command dev-tool samples publish

@joheredi PR has been updated, please review.

@joheredi Could you help merge this PR? Thanks a lot.


DefaultCertificateSelector should log a debug message if no matching certificates are found.

What would you like to have changed?
DefaultCertificateSelector in handshake.go should log a debug message if no matching certificates are found.
There is currently just a comment for that case, reading:
// all matching certs are expired or incompatible, oh well
Why is this feature a useful, necessary, and/or important addition to this project?
It's

Trivial to add.
Having it would ease debugging - I spent two hours wondering why things weren't working because I didn't bother adding SANs to my test certificates, and a debug message would have helped me find the problem sooner.

What alternatives are there, or what are you doing in the meantime to work around the lack of this feature?
I don't think there's any meaningful alternatives or workarounds.
Please link to any relevant issues, pull requests, or other discussions.
I have documented my mistakes so that others needn't repeat them. https://github.com/caddyserver/caddy/issues/5450

That would get logged on every TLS request to an unknown domain, so it might be pretty noisy.
I think there's probably a better place to put it. We should probably more loudly write an error log on startup when a cert with no SAN is provided.

logged on every TLS request to an unknown domain

I was suggesting a message be logged at debug level only, which already has multiple messages for every TLS connection, so I don't think this would be an issue.

We should probably more loudly write an error log on startup when a cert with no SAN is provided.

That would be helpful - if someone is trying to generate a self-signed certificate for testing, they'll likely find instructions for doing so with OpenSSL - without SANs.

@ryancdotorg Sorry for the late reply, but am looking into this. I think we're already logging when the cert has no subjects. When you load your SAN-less certificate, there should be a debug log emitted with message "added certificate to cache" -- and it should list the subjects next to it on the same line. On a relevant certificate, what does that log line say?


Proposed changes for #1188

Description
This resolves issue #1188
DESCRIBE DETAIL is supported in SQL. But similar to DESCRIBE HISTORY which has Scala and Python APIs as DeltaTable.history(), there should be DeltaTable.details().
How was this patch tested?
This patch was tested using the spark-shell against open source spark version 3.3.0 via manual verification. There were no existing tests for similar methods. If tests are deemed required, I can resubmit as necessary.
Does this PR introduce any user-facing changes?
Yes, this PR provides new output for commands on DeltaTable.details() using Scala/Pyspark. Output is similar as below:
scala> df.details().show()
+------+--------------------+----+-----------+--------------------+--------------------+--------------------+----------------+--------+-----------+----------+----------------+----------------+
|format|                  id|name|description|            location|           createdAt|        lastModified|partitionColumns|numFiles|sizeInBytes|properties|minReaderVersion|minWriterVersion|
+------+--------------------+----+-----------+--------------------+--------------------+--------------------+----------------+--------+-----------+----------+----------------+----------------+
| delta|c2eaf64d-aaf9-464...|null|       null|file:/tmp/delta-t...|2022-07-01 04:16:...|2022-07-01 04:16:...|              []|       6|       2686|        {}|               1|               2|
+------+--------------------+----+-----------+--------------------+--------------------+--------------------+----------------+--------+-----------+----------+----------------+----------------+

Closing as someone else submitted a similar PR with unit tests added, just verified it, we should use that instead.

Sorry, @zpappa I missed your PR when I pushed mine.

No problem, yours had unit tests! nice job!


cmd/compile: incorrect compilation of specific functions in wasm

UPDATE: I found a much simpler way to reproduce this issue; see https://github.com/golang/go/issues/68156#issuecomment-2229153940
Go version
go version go1.22.4 darwin/arm64
Output of go env in your module/workspace:
GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/kaioreilly/Library/Caches/go-build'
GOENV='/Users/kaioreilly/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/kaioreilly/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/kaioreilly/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/opt/homebrew/Cellar/go/1.22.4/libexec'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/opt/homebrew/Cellar/go/1.22.4/libexec/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.22.4'
GCCGO='gccgo'
AR='ar'
CC='cc'
CXX='c++'
CGO_ENABLED='1'
GOMOD='/Users/kaioreilly/cogent/core/go.mod'
GOWORK='/Users/kaioreilly/cogent/go.work'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/pw/lntpc2cn37v41ct1t0t9t9880000gn/T/go-build988797772=/tmp/go-build -gno-record-gcc-switches -fno-common'

What did you do?
Apologies for the convoluted steps for reproducing. I tried for several hours to get a more reproducible example, but I could not. Somehow there is some deleterious interaction between these various components, and removing any one of them stops the issue. This may seem like an issue to do with one of these third party libraries, but as you will see, this behavior seems to almost certainly be an issue with the compiler or Chromium itself.
I made a go.work workspace containing local clones of the main/master branches of Cogent Core (https://github.com/cogentcore/core) and goldmark (https://github.com/yuin/goldmark). Then, I went to Cogent Core (cd core) and installed the Cogent Core tool (go install ./cmd/core). Then, I went to the basic example in Cogent Core (cd examples/basic) and ran the program for web using core run web. core run web is a command that runs go build using GOOS=js GOARCH=wasm under the hood. Then, I went to port 8080 of my computer's local IP address (http://192.168.1.x:8080; you can run ifconfig to get yours) in Google Chrome on an Android phone (mine is a Pixel 7 Pro running Android 14 with Chrome 126.0.6478.72). I observed that everything worked as expected.
Then, I changed the following line in basic.go in examples/basic from
import "cogentcore.org/core/core"

to
import (
	"cogentcore.org/core/core"
	_ "github.com/yuin/goldmark"
)

Then, I repeated the core run web step from above, opened a new tab on the Android phone, and went to the same URL again. After waiting for some amount of time (no more than a minute), I observed the issue described below.
What did you see happen?
After following all of the steps above, the browser tab reliably turns from correctly rendering the app to displaying an Aw, Snap! error screen (as in https://support.google.com/chrome/answer/95669). Nothing is printed to the console and no further information about a specific error is given.
What did you expect to see?
I expected to see the browser tab continue to correctly render the app.
After several hours of debugging, I have determined that the cause of the issue can be narrowed down to a single function declared in goldmark: util.ReadWhile. When I change the body of this function to just be panic("ReadWhile"), not only does the issue described above cease to happen, the app does not panic. This means that we are actually not even calling this function in the first place, yet somehow its contents are causing bizarre app crashes. I tried various different variations of this function: println("ReadWhile") with a return 0, false afterward results in no crashing and no print statement, whereas the same but with fmt.Println("ReadWhile") results in crashing just like the original body of the function. Several variations on the argument and loop structure of the function have not produced any changes in the crashing behavior; you basically have to remove the entire body of the function for it to stop crashing. Changing the name to SomethingElse also does not stop the crashing. I also tried moving this ReadWhile function elsewhere, but somehow I could not replicate the crash without it being in the same place in goldmark.
The fact that the innocuous contents of a function that is never called lead the program to randomly crash without any further details suggests that this is not a coding error on the part of a third party library but rather some issue with the way that the compiler is building wasm files, or the way that Chromium on Android is handling them. Cogent Core has its own custom wasm_exec.js file, but I verified that the issue still occurs with the standard version contained in misc.
I have only been able to reproduce this issue in Chrome on Android and other Chromium browsers on Android such as Kiwi Browser. It does not occur in Firefox on Android, Safari on iOS, or Chrome on macOS, Ubuntu, or Windows.

Similar Issues

runtime: wasm runtime crashes under certain/undefined conditions #38574

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

cc @aclements

Both wasm2wat app.wasm -o app.wat (from https://github.com/WebAssembly/wabt) and wasm-opt app.wasm -o opt.wasm -O --enable-bulk-memory (from https://github.com/WebAssembly/binaryen) fail to correctly process app.wasm if and only if it is the version including util.ReadWhile that fails on Chrome on Android. This shows that the issue here is with the way Go is compiling util.ReadWhile for wasm, not the way that Chrome is handling it, given that two other widely used programs fail with the same crashing wasm file. This also removes the possibility that wasm_exec.js or any of the other JS files are involved in causing the crash, since the other programs fail with the wasm file completely independent of those other files.
wasm2wat fails immediately with:
~/cogent/core/examples/basic/bin/web/ > wasm2wat app.wasm -o app.wat
error: label stack exceeds max nesting depth
102a212: error: OnBlockExpr callback failed

wasm-opt does not fail with an overt error message; it just continues to run forever while consuming increasing amounts of RAM (40+ GB) and creating an opt.wasm file with a ballooning size.

I have reduced the code necessary to reproduce the issue to this:
package main

import (
	"github.com/jinzhu/copier"
	_ "github.com/yuin/goldmark"
)

func main() {
	copier.Copy(nil, nil)
}

You just have to run this command with that code to reproduce the issue:
GOOS=js GOARCH=wasm go build -o app.wasm && wasm2wat app.wasm -o app.wat

Inside of copier, the cause of the crashing is the four reflect.Value.MethodByName calls in copier.copier. If you comment all four of those out, the crashing stops. As a reminder from above, if you comment out the contents of util.ReadWhile in goldmark, it also stops crashing. This seems to indicate that the cause of the issue is some bizarre interaction between these two functions that results in incorrectly compiled wasm.
Also, just to be clear, we are not actually running the wasm file in the latest reproduction of this issue, just trying to process it, so this has nothing to do with these functions causing issues at runtime. This is only about the compiled wasm.

Actually, you can reproduce the issue even without copier using this code:
package main

import (
	"bytes"

	"github.com/yuin/goldmark"
)

func main() {
	goldmark.New().Convert([]byte{}, &bytes.Buffer{})
}

Also note that in other situations with more complicated code, even commenting out the contents of util.ReadWhile does not solve the issue, meaning that there is no viable workaround for this issue.

cc @golang/wasm

By copying code from goldmark and experimenting, I have gotten this down to a minimal standalone reproducible example, which I have attached here. The issue appears to be a large map that goldmark defines, html5entities. I have gotten it to a point where the program fails, but removing any element of the map or the Characters field of any element of the map results in the program working. This imples that the issue has to do with excessively large objects not being compiled correctly in wasm.
Here is a simple list of the steps required to reproduce this issue now:

Download the attached file and place it in a new Go module
Download wasm2wat from https://github.com/WebAssembly/wabt
Run this command:

GOOS=js GOARCH=wasm go build -o app.wasm && wasm2wat app.wasm -o app.wat

You should observe the following error indicating that the compiled wasm is invalid:
error: label stack exceeds max nesting depth
00ea012: error: OnBlockExpr callback failed

Note that this same issue results not only in this error but also wasm-opt failing and the program crashing in Chrome on Android, as stated in previous comments. You can further observe this by going to the goldmark playground in Chrome on an Android device, and you will see that it crashes with an Aw, Snap! message after some amount of time, as also discussed previously.
Also note that this is not the only way to reproduce this issue, and there are other combinations of functions that result in the same issue as discussed above.

@kkoreilly If I understand correctly this is unrelated to to the go command itself, right? It sounds like this is perhaps an issue in the compiler, or elsewhere in the toolchain?

Yes, it is an issue with the compiler for wasm, not the go command itself.

A further note overall: the wasm2wat command is the most sensitive indicator of the issue, and even when it is just under threshold of crashing, it produces extremely large .wat files and takes a long time to run.  This is consistent with some kind of "overloading" problem that is cumulative, and might explain the otherwise strange interactions with the copier package, and the fact that even when we eliminated the offending html5entities in another test case, it still failed in our larger app context.
Chromium on the android platform appears to be the most sensitive to this overloading problem, as indicated by this report: https://issues.chromium.org/issues/40770034  and others like it.  Interestingly, this issue contains a reference to this other Go project: https://github.com/bvisness/golang-wasm-turbofan-crash -- the author there notes:

Turns out the Go compiler generates very branchy code for map initialization in some cases. The problem went away when we changed our initialization approach to produce fewer branches.

So this is consistent with what we are observing. I could not find a prior Go issues report for this case.
Finally, as the above issue notes, the problem arises when this code is being optimized by the TurboFan stage of chromium wasm loading: https://v8.dev/docs/wasm-compilation-pipeline which explains the otherwise puzzling delay in seeing the crash on an android device.  We were able to modify the chrome flags to disable the baseline loader and only use TurboFan, which resulted in a deterministic crash after the optimization process presumably ran out of memory.
Given how sensitive wasm-opt and wasm2wat are to this issue, and the clearly large amount of RAM it is consuming (wasm-opt went over 48GB on my macbook pro with 64GB), it is likely that fixing this branchy code generation will benefit all platforms in terms of wasm loading and reducing the load on the TurboFan step so the optimized code is available sooner.  Therefore, it would seem that this should be a very high priority issue overall!

@rcoreilly One reason for this is https://github.com/WebAssembly/design/issues/796#issuecomment-401310366.

@neelance so it looks like maybe there are some possible solutions but we shouldn't be holding our breath? :)

Also, in the meantime, is there any documentation for how to avoid some of the worst-case scenarios, e.g., for initializing maps or other problematic cases?

Similar underlying issue for reference: #65440

CC @golang/compiler


Motor Step?

there is a way to control a Motor Step 28byj-48 with gpiozero ?

You mean a stepper motor? See #144
You can do it using low-level classes and we plan to add a class especially for it.


Need to be able to specify view type for vscode.notebook.openNotebookDocument

Previously this was supported, but it looks it was decided to be dropped.
I was using this functionality in the Live Share extension to get notebook contents from the host when the guest opens a notebook document that the host doesn't yet have open. The notebook should be opened with the content provider that the guest selected (if it's not already open on the host).
In general, there needs to be a programmatic way to open a notebook document, and part of that is specifying the view type. I imagine there are other scenarios where an extension would want to open a notebook behind the scenes and not prompt the user to select a content provider. This isn't possible without being able to specify the view type.

Previously this was supported, but it looks it was decided to be dropped.

You need to clarify this, esp. because this wasn't working properly: when the notebook by that uri was already opened, you would get that. Irrespective of the view type. That makes me wonder how this ever worked for you.  See https://github.com/microsoft/vscode/blob/0f64ef1b6555fa3f22f7f03b12ea5f43292b0459/src/vs/workbench/api/common/extHostNotebook.ts#L384-L389
So, how did this work reliably and how exactly is this now broken?

In general, there needs to be a programmatic way to open a notebook document, and part of that is specifying the view type.

Maybe agreeing but the truth is that the core doesn't support this and that we are a far away from doing this correctly. Internally, everything is referenced by uri and for notebooks the correct way would be to mix-in the viewType into that identify. Internally, when you open a notebook that's already open for a different view type we close the existing document and all associated editors. The old API didn't support that (see above) and I am uneasy to give extensions this capability.

Here's what the experience looked like with the old API:
Host opens notebook before guest has opened it
Host can open notebook with any available content provider.
Guest opens notebook while host doesn't have it open
Guest can open notebook with any available content provider.
Host attempts to open notebook after guest has opened notebook
Opens as expected if they select the same content provider that the guest opened the notebook with. Otherwise, the host receives an error Unable to open 'test.nb': A notebook with view type 'view1' already exists for 'file:///test.nb', CANNOT create another notebook with view type view2. and notebook does not open.

The host can open the notebook with the existing content provider and close it, and then they'll be able to open it with any available content provider. Doing this, it's possible the host and guest can view the notebook with different content providers.

Guest attempts to open notebook while host has it open
Opens as expected if they select the same content provider that the host has the notebook open with. Otherwise, the guest receives an error The host has the notebook open with view1. Use the same view to open. and notebook does not open.

This situation is the same as when another guest has opened the notebook, which causes the notebook to be opened invisibly on the host.

To support the guest being able to open a notebook the host doesn't have open and choose a content provider without the host being notified, we need some way to programmatically specify a view type when opening a notebook - previously that was through the viewType argument. If that's through a query string on the URI, that's fine too. But I don't think we can support this scenario without that capability.

Otherwise, the guest receives an error The host has the notebook open with view1. Use the same view to open. and notebook does not open.

I don't see that error in our code. Form the API POV it doesn't make sense that you request viewType "A" and receive "B". It should immediately throw an error instead

I don't see that error in our code.

This is something our extension does when we notice the document is open with a different view type.

Form the API POV it doesn't make sense that you request viewType "A" and receive "B". It should immediately throw an error instead

Agreed. If the API did that, that would be fine. But we still need a way to request opening a document with a specific view type. If it's already open with another one, this is a fine way to handle it.

But we still need a way to request opening a document with a specific view type. If it's already open with another one, this is a fine way to handle it.

Still unsure about that. It will be a very powerful and impactful API but I believe as of today the user cannot overrule that. E.g we must ensure that users can always use "Open With..." to pick another view type no matter what an extension has done before. First, we need to ensure that's possible

Ah, I see. So you want to avoid this situation?

Host attempts to open notebook after guest has opened notebook
Opens as expected if they select the same content provider that the guest opened the notebook with. Otherwise, the host receives an error Unable to open 'test.nb': A notebook with view type 'view1' already exists for 'file:///test.nb', CANNOT create another notebook with view type view2. and notebook does not open.

That makes sense. That's a pretty bad experience. I think it's possible to avoid that while still allowing extensions to open a notebook with a specified view type (if the notebook isn't already open)?

Perhaps most ideal would be to allow the notebook to be open by multiple content providers at the same time - although that requires including the view type as part of the URI.

Perhaps most ideal would be to allow the notebook to be open by multiple content providers at the same time

+💯 we haven't really figured out what view types mean. Today it represents the entity that owns notebooks and therefore it's tricky to have multiple of them. One idea is to append the view type to uris but I am uncertain if it is worth it (this will be a huge technical change). How often will we have different content providers for the same file type?

I suppose we could wait and see how common it becomes as notebooks get more adoption before adding support for it, although I imagine it will get progressively harder to change as more things are built on the assumption of a single view type.
With the current API, if an extension calls openNotebookDocument with the document not already open and multiple content providers exist, do you prompt the user to select one? Or does it select the default?

Or does it select the default?

Must be default, prompting would be a bug

OK, with that and the assumption that users would only ever have a single content provider that they would want to use in a given session, the API in its current form is sufficient to support the Live Share extension.
If we ever have users that want to use multiple content providers in a session, I'll let them know it's a limitation in VS Code and direct them to your repo to make their case.


sort by date is odd as freshness(timestamp) returns 1 for timestamps in the future

https://cord19.vespa.ai/search?query=sddocname%3Adoc&ranking=freshness
The freshness ranking profile uses the freshness(timestamp) ranking feature, instead of timestamp directly. The dataset has for some odd reason dates which are in the future so when sorting by decreasing timestamp to order by date we get ordering which is hard to explain.

Hi @johans1 @frodelu , was there are fix for this? I have the same issue of seeing future dated articles even though original publish date is earlier by several months, eg:

api timestamp from epoch - May 31, 2020
while article shows original publish date 3/13/2020
https://wwwnc.cdc.gov/eid/article/26/6/20-0320_article

Hello @tracy55, We use the CORD-19 dataset and some of the publish_time dates are in the future. This is from the metadata.csv of the 2020-04-03 version for id 43463:
cord_uid                                                                stka064f
sha                                                                          NaN
source_x                                                                     WHO
title                          Case-Fatality Risk Estimates for COVID-19 Calc...
doi                                                       10.3201/eid2606.200320
pmcid                                                                        NaN
pubmed_id                                                                    NaN
license                                                                      unk
abstract                       We estimated the case-fatality risk for 2019 n...
publish_time                                                          2020-06-01
authors                        Wilson, Nick; Kvalsvig, Amanda; Barnard, Lucy ...
journal                                             Emerging Infectious Diseases
Microsoft Academic Paper ID                                                  NaN
WHO #Covidence                                                             #8521
has_pdf_parse                                                              False
has_pmc_xml_parse                                                          False
full_text_file                                                               NaN
url                                       https://doi.org/10.3201/eid2606.200320

i've asked the developers producing the CORD-19 dataset and you can see their response on this below

See https://www.kaggle.com/allen-institute-for-ai/CORD-19-research-challenge/discussion/137474

But the original issue is not fixed, the ordering of articles when using the sort by date option in the cord19.vespa.ai is still undefined for articles with a publish_time in the future as they are assigned the same freshness score of 1.

I see, thank you @jobergum, much appreciated!

Thank you for using the API @tracy55, you can  use https://api.cord19.vespa.ai/search/?query=sars&summary=default&sorting=-timestamp if you want strict ordering fora articles with date in the future.

We didn't notice this was on cord-19 not Vespa. Reopening.
We can solve this by going back to sorting by raw timestamp, as this number isn't used for anything other than sorting anyway (afaik): https://github.com/vespa-engine/sample-apps/pull/333

Thanks @bratseth !

Since there appears to have been some updates to this ticket, just want to check if ranking=freshness will still return future dated articles. Thanks!

It will still return future dated articles, but they will now be sorted correctly.
If you want to limit to certain date ranges you can do that in a query.

great, thank you @bratseth!


[Spotify Player] Support for Spotify Web

Extension
https://www.raycast.com/mattisssa/spotify-player
Description
Currently, you can open songs/playlists/albums in the browser using Cmd+O, and that's about the extent of Spotify Web support. It'd be great if users could configure the extension to automatically open songs in the web instead of the Spotify app, and it'd be even better if media controls (shuffle, play, pause, skip) worked in the web too!
Who will benefit from this feature?
Some people (including myself) prefer to use Spotify Web over the dedicated app for reasons such as easy ad-blocking, URL sharing, and just for the sake of staying lightweight. Supporting Spotify Web would make this extension much more useful for people like us!
Anything else?
An alternative would be supporting the free-tier of the dedicated Spotify app (currently, the extension only works if you have premium), but I assume there are technical limitations stopping you from doing so.

Media controls should work, as it uses the Spotify API.


Question - is there multiple topic support?

My actions before raising this issue

[x] Followed the troubleshooting guide
[x] Read/searched the docs
[x] Searched past issues

Expected Behaviour
This connector cannot deal with more than one MQTT topic, as stated in https://github.com/openfaas/mqtt-connector/tree/master/chart/mqtt-connector and confirmed by my own tests with the connector. This seems normal as only one MQTT subscription is created. I'm wondering why this connector is limited to one single topic per instance.
Current Behaviour
Only one topic is allowed. If more than one topic are used (e.g. my-topic,my-second-topic), no errors are thrown but only the first topic seems to be used. Only messages published to the first topic my-topic will be received by the connector.
Possible Solution
I've added very simple multi-topic support using multiple subscriptions, but maybe I'm missing how the connector-sdk handles/splits the topic internally.
Your Environment

FaaS-CLI version ( Full output from: faas-cli version ):
commit:  c12d57c39ac4cc6eef3c9bba2fb45113d882432f
version: 0.12.14

Docker version docker version (e.g. Docker 17.0.05 ): Docker 19.03.12

Are you using Docker Swarm or Kubernetes (FaaS-netes)? No

Operating System and version (e.g. Linux, Windows, MacOS): Linux

Please do us a favour and use the issue template, this is required for everyone and there are no special cases.
https://raw.githubusercontent.com/openfaas/mqtt-connector/master/.github/ISSUE_TEMPLATE.md

Please do us a favour and use the issue template, this is required for everyone and there are no special cases.
https://raw.githubusercontent.com/openfaas/mqtt-connector/master/.github/ISSUE_TEMPLATE.md

/set title: Question - is there multiple topic support?

/set title: Question - is there multiple topic support?

Description updated. Based on my tests (and the connector documentation), only one topic is allowed as only one MQTT subscription is being created.

Description updated. Based on my tests (and the connector documentation), only one topic is allowed as only one MQTT subscription is being created.

I was also hoping for this functionality. I believe the code @alexellis referred to actually allows a function to have multiple "topic" annotations, not for the MQTT connector to subscribe to multiple MQTT topics.
I'm not currently in a position to test, however I believe that you may be able to have some success with using topic wildcards such as '#', which would subscribe to every topic.
Related source: https://github.com/eclipse/paho.mqtt.golang/blob/master/topic.go
Unfortunately I'm not in a position to test right now. Hopefully that helps!

I've seen that in https://github.com/openfaas/mqtt-connector/blob/d6f8f43c072e7d3276b8ec36bad08900565816b8/main.go#L93-L95 a default publish handler is being used, so all messages in all topics are being received. As far as I can see, it makes both the topic list and the subscription in https://github.com/openfaas/mqtt-connector/blob/d6f8f43c072e7d3276b8ec36bad08900565816b8/main.go#L102 completely useless.
Wouldn't a MessageHandler callback on the subscription line make more sense? This will allow to listen only to the requested topics.

I think multi-topic is supported by mqtt-connector.
It just needs to be made a multi-topic handler by using '#' .
For instance, the connector can set a topic as '/function/#'.
Function 'test1' can be annotated by topic='/function/test1'.
Function 'test2' can be annotated by topic='/function/test2'.
Function 'test3' can be annotated by topic='/function/test3'.
Then by publishing a message on the topic 'function/test1', the connector will be notified and will only invoke function 'test1'.
I tested this and worked.
I would just understand the openfaas components that an MQTT message visits in this trip.
My understanding is that the MQTT message is delivered to MQTT broker --> mqtt-connector --> openfaas gateway --> function and then results are sent back to mqtt-connector that I do not understand why and how we can catch the result from mqtt-connector.
In case of async, the mqtt message is delivered to MQTT broker --> mqtt-connector --> nats --> queue-worker --> function -and results are sent back to mqtt-connector that I do not understand how we can set a callback here.
If someone is familiar openfaas design, please correct me.

@flusflas you didn't fill out the issue template and left off the "Steps to reproduce this issue" part
If you haven't tried this out, how do you know it doesn't work?
And before we get ahead of ourselves, are you talkigng about 1000 topcis, or 3?
If it's a low amount of topics, just install the connector N times per topic. That's a simple and easy solution.
@aslanpour please feel free to try out the scenario you listed above with a wildcard topic using #

@alexellis I just tried the scenario out and works for me. So, no need for a connector per topic. If you need a demonstration, I should be able to give more info in this thread.

That'd be great. I can then add it to the README after that for everyone to benefit from.

Of course you can use a topic with wildcards to address more than one topic, but it doesn't allow multiple topics if they don't share a common structure or you don't want to use wildcards. I think the problem was clear enough and that I provided detailed information on where the problem was.
Anyway, I chose to create a fork of this repository to add this and other features to the connectors, so feel free to close this issue if the current behavior is fine for you.

When you're asking someone to do work for you (out of good will, voluntarily) and they say: "this isn't clear enough", replying with "it is clear enough" means that we have a bit of a communication breakdown.
You're perfectly welcome to fork this repository for your own needs. That's why it's licensed as MIT, however you cannot change the copyright notices and need to credit the source.

/lock: off topic


Broke the connection when running 'insert into select' statement

I was trying to your examples also 'insert into select' statement.
but my connection in postgresql was broken when running 'insert into select' statement.
below is my proceeding.
Please kindly check this out, and give me any feedback through the comment in this document.

my env : centos 7 / postgresql12 / ClickHouse 20.6.4

*************************************** Clickhouse *****************************************
:) CREATE DATABASE test_database;
:) USE test_database;
:) CREATE TABLE tax_bills_nyc
(
bbl Int64
, owner_name String
, tax_class String
, tbea Float64
, bav Float64
, insertion_date DateTime MATERIALIZED now()
)
ENGINE = MergeTree
PARTITION BY tax_class
ORDER BY
(
owner_name
)
;
:) CREATE TABLE tax_bills
(
bbl        bigint
, owner_name text
)
ENGINE = MergeTree
PARTITION BY bbl
ORDER BY
(
bbl
)
;
-- manual data uploading
cat tax_bills_nyc.csv | clickhouse-client --input_format_allow_errors_num=10 --query="INSERT INTO test_database.tax_bills_nyc FORMAT CSV"
*************************************** Clickhouse*****************************************
*************************************** PgSQL *****************************************
create server clickhouse_svr foreign data wrapper clickhouse_fdw OPTIONS (dbname 'test_database', driver 'binary' ,host '<IP_ADDRESS>');
create user MAPPING FOR  CURRENT_USER  server clickhouse_svr ;
IMPORT FOREIGN SCHEMA "default" FROM SERVER clickhouse_svr INTO public;
IMPORT FOREIGN SCHEMA "test_database" FROM SERVER clickhouse_svr INTO public;
\d
               List of relations

Schema |        Name        |     Type      |  Owner
--------+--------------------+---------------+----------
public | pg_stat_statements | view          | postgres
public | tax_bills          | foreign table | postgres
public | tax_bills_nyc      | foreign table | postgres
public | test_form          | foreign table | postgres
(4 rows)
select * from tax_biils_nyc_cp ;
bbl     | owner_name | tax_class | tbea  |  bav   |   insertion_date

------------+------------+-----------+-------+--------+---------------------
4000620001 | DVYA       | d         |  8961 |  80550 | 2020-11-18 03:36:50
1001200009 | LOXI       | d         | 72190 | 648900 | 2020-11-18 03:36:50
4157860094 | LROB       | d         | 13317 | 119700 | 2020-11-18 03:36:50
4123850237 | VYIE       | d         |    50 |    450 | 2020-11-18 03:36:50
4103150163 | WGZW       | d         |  2053 |  18450 | 2020-11-18 03:36:50
4123850237 | WGZW       | d         |   222 |  52413 | 2020-11-18 07:46:31
(6 rows)
insert into tax_bills ( select a.bbl , a.owner_name from tax_bills_nyc as a limit 1 )  ;
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
!> \q
*************************************** PgSQL *****************************************

Looks like segfault, could you send me backtrace from your coredump?

Hello ildus :)
I can give you my sys message like below
It occurred when my connection was gone.
Nov 18 16:08:44 servername kernel: postgres[20398]: segfault at 10 ip 00007f98690f7d75 sp 00007ffd18eb0f00 error 4 in clickhouse_fdw.so[7f9869091000+ec000]
Nov 18 16:08:52 servername kernel: postgres[27366]: segfault at 10 ip 00007f98690f7d75 sp 00007ffd18eb0f00 error 4 in clickhouse_fdw.so[7f9869091000+ec000]
Nov 18 16:09:37 servername kernel: postgres[27596]: segfault at 10 ip 00007f98690f7d75 sp 00007ffd18eb0f00 error 4 in clickhouse_fdw.so[7f9869091000+ec000]
Nov 18 16:10:45 servername kernel: postgres[29383]: segfault at 10 ip 00007f98690f7d75 sp 00007ffd18eb0f00 error 4 in clickhouse_fdw.so[7f9869091000+ec000]
Nov 18 16:47:57 servername kernel: postgres[30910]: segfault at 10 ip 00007f98690f7d75 sp 00007ffd18eb0f00 error 4 in clickhouse_fdw.so[7f9869091000+ec000]
Nov 18 16:58:20 servername kernel: postgres[29526]: segfault at 10 ip 00007f98690f7d75 sp 00007ffd18eb0f00 error 4 in clickhouse_fdw.so[7f9869091000+ec000]
Nov 18 16:58:30 servername kernel: postgres[5965]: segfault at 10 ip 00007f98690f7d75 sp 00007ffd18eb0f00 error 4 in clickhouse_fdw.so[7f9869091000+ec000]

binary protocol is quite unstable since it depends on external library, I would suggest to use http for now.

@sophie-jeong could you check this again? I made some changes since then.

@sophie-jeong could you check this again? I made some changes since then.

@sophie-jeong could you check this again? I made some changes since then.

The problem still appears.
I noticed it appears only when I make insert to clickhouse-stored table when selecting from clickhouse-stored table.
But does not appear when select by postgresql table.


Could you share me a copy of the web site search codes on server?

Hi, qunash.
Thanks to your excellent work. It really makes ChatGPT more powerful.
However, when I use this plugin, the connection to https://ddg-webapp-aagd.vercel.app usually failed.
I wan't to set up a local sever to replace this. Can you share me the code of web site search?

See #69


NFL Single game

Does this support NFL single game for fanduel

Hi, this library doesn't support NFL single game for fanduel. I think it will be easy to add it, because it's like DK showdown that already implemented.  I'm not playing in fanduel, so it will be fine if you attach exported csv for this type of contests, so I can look how FD represents players in this contests.

Sent via the Samsung Galaxy S10+, an AT&T 5G Evolution capable smartphone
-------- Original message --------From: Dima Kudosh<EMAIL_ADDRESS>Date: 9/5/19  1:56 PM  (GMT-05:00) To: DimaKudosh/pydfs-lineup-optimizer<EMAIL_ADDRESS>Cc: Denwen12<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [DimaKudosh/pydfs-lineup-optimizer] NFL Single game (#86) Hi, this library doesn't support NFL single game for fanduel. I think it will be easy to add it, because it's like DK showdown that already implemented.  I'm not playing in fanduel, so it will be fine if you attach exported csv for this type of contests, so I can look how FD represents players in this contests.
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/DimaKudosh/pydfs-lineup-optimizer/issues/86?email_source=notifications\u0026email_token=ANBWO7X4IF5FZRCW4XGSRGLQIFB3JA5CNFSM4IUAPOX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6AEXUA#issuecomment-528501712",
"url": "https://github.com/DimaKudosh/pydfs-lineup-optimizer/issues/86?email_source=notifications\u0026email_token=ANBWO7X4IF5FZRCW4XGSRGLQIFB3JA5CNFSM4IUAPOX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6AEXUA#issuecomment-528501712",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]

here we go
FanDuel-NFL-2019-09-05-37436-lineup-upload-template.zip

I've added FD Single Game for football. Changes in develop branch, so you can reinstall library from develop and give your feedback before I release new version. For using this feature you should init optimizer like this: optimizer = get_optimizer(Site.FANDUEL_SINGLE_GAME, Sport.FOOTBALL)

fantastic I'll try it

Looks like it works well! I just tested it out for tonight's MNF game and the output seemed good.

When will this feature be added? Slash I am new to github can someone tell me how to install a version with this feature?