Does the Typesense Adapter support extra header parameters?

Description
In my infrastructure, I need a mandatory internal api-key (and other headers) for all requests. Is there any way to add those extra headers in all requests to Typesense using this instantsearch adapter?
https://www.algolia.com/doc/api-client/getting-started/request-options/#add-http-headers-to-your-requests

Ok... after a while, I've found the additionalHeaders parameter
server: {       apiKey: 'xyz',       nodes: [         {           host: my-host.com,           port: 433,           protocol: 'https',         },       ],       connectionTimeoutSeconds: 5,       numRetries: 5,       additionalHeaders: { 'my-api-key': 'xyz' },     },


Bug/71/voter wrong input validation

closes #71

Current coverage is 82.59%

Merging #76 into develop will increase coverage by +82.59% as of d951d85

@@            develop     #76   diff @@
=======================================
  Files             0      14    +14
  Stmts             0     787   +787
  Branches          0       0
  Methods           0       0
=======================================
+ Hit               0     650   +650
  Partial           0       0
- Missed            0     137   +137

Review entire Coverage Diff as of d951d85

Powered by Codecov. Updated on successful CI builds.

:+1: looks good to me.


✨ Access to Bedrock and Textract for CJS & Capability Data Science Teams

Describe the feature request.
Headline: Request for the CJS & Capability Data Science team to have access to use textract to get data in the right format from pdfs and the Claude generative AI models on the AP.
Describe the context.
One current projects, and potentially others in the pipelins for the Parole Board. The current proposed data is publically available. However, there be some additional internal data added subject to adding to the DPIA/sharing agreements.
For all projects, we need to be able to:

Read and extract text and non text data from pdf stored in s3, ideally using amazon textract. We've tried other methods to little success.
Test the capabilities of the different models. To retrieveand/or summarise relevant information.
Run the models for inference in production. If the models meet our evaluation thresholds, we then want to be able to use them in production. In practice, this means things like the below for future development:
3.1 Running a script on schedule using Airflow to send data to the models, receive outputs, and save those to an s3 bucket or database on AWS.
3.2 Calling the models via API from a deployed streamlit application

Project details:
Parole Policy binders: Parole Board colleagues currently have a lot of guidance on SharePoint. Members must sift through lots of policy documents. This is problematic as it is not always clear which document to look in and the SharePoint search functionality isn't adequate.  They also may need bespoke advice for their case. We would deliver:

Text analysis of policies and flagging which documents the advice has come from.
Potentially served as an app pulling data from the pdfs and linking members to the places in the documents
Members might also provide details of the case and have related policies flagged to them to consider.

Value / Purpose
We have tested open source methods of extracting text and other mediums from data. Due to the size and complexity of the documents (the documents are very long and may include a wide range of diagrams etc).
Impact:
Members more quickly able to access the right advice needed to progress the case they are working on and get through the parole board faster without decreasing quality of decisions. There are people of varied abilities and this additional tolling may provide extra support in their work.
User Types
Data scientists in CJS & Capability Data Science

Hiya, unless you need some kind of additional support in implementing Bedrock in your usecase, Bedrock can now be requested via a support ticket. When you open a ticket please list users and/or apps that need that access. A support request can be opened here: https://github.com/ministryofjustice/data-platform-support/issues

Apologies, I missed your question.
We don't currently offer textract which is why we don't provide it via a support request.
We have not had a chance to assess this request yet but are happy for you to request bedrock via our support process.


python中erpc_test文件不存在

python中 import erpc_test不存在该文件

Is this ticket related to missing erpc_test module here? https://github.com/EmbeddedRPC/erpc/blob/1bb6e22a7a1f7e21eb300dd547ddfd6c15ae8d9f/erpc_python/test.py#L16

Hi @Peanut0709 , could you be more specific, please? Thanks.

嗨@Peanut0709，你能更具体点吗？谢谢。

test.py这个文件import erpc_test   但是 整个工程里面没有erpc_test这个文件所以会报错

嗨@Peanut0709，你能更具体点吗？谢谢。

运行后显示  No module named 'erpc_test'

此票是否与此处缺少erpc_test模块有关？
https://github.com/EmbeddedRPC/erpc/blob/1bb6e22a7a1f7e21eb300dd547ddfd6c15ae8d9f/erpc_python/test.py#L16

after installing setup.py when you execute test.py
it says "no module name erpc_test" what is its solution ?

It looks like files like test.py, run_test.sh are obsolite or not all files were published. If they are obsolite also README in same folder should be updated

Instead you can try this example which i tried and it is working:
https://github.com/EmbeddedRPC/erpc/tree/develop/examples/matrix_multiply_tcp_python

It looks like files like test.py, run_test.sh are obsolite or not all files were published. If they are obsolite also README in same folder should be updated

Thank you, @Hadatko , yes these files are obsolete and I will delete them.
@Peanut0709 , @drumairali , please use the python example @Hadatko  is referencing.

Can I get any example in which in which from python remote procedure call
is made and on C side it executes and returns results back on python side?.
On Mon, Sep 13, 2021 at 1:38 PM Michal Princ @.***>
wrote:

It looks like files like test.py, run_test.sh are obsolite or not all
files were published. If they are obsolite also README in same folder
should be updated
Thank you, @Hadatko https://github.com/Hadatko , yes these files are
obsolete and I will delete them.
@Peanut0709 https://github.com/Peanut0709 , @drumairali
https://github.com/drumairali , please use the python example @Hadatko
https://github.com/Hadatko is referencing.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/EmbeddedRPC/erpc/issues/186#issuecomment-917968507,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANPKK4HCX43RNGDKWA7YR7LUBW2BJANCNFSM456I6GFA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Hello @drumairali I am afraid we do not have such an example (combining Python on one side and the C on the other side) in the eRPC repo.
BUT, there are such examples in NXP MCUXpressoSDK packages for selected boards. Once downloading for instance the FRDM-K64F or FRDM-K82F packages from the https://mcuxpresso.nxp.com you should find the erpc_client_matrix_multiply_uart example in <MCUXpressoSDK_install_dir>/boards/<board_name>/multiprocessor_examples that demonstrates usage of eRPC between PC (Python client impl.) and board (C server impl.) using UART transport layer. The run_uart.py is located in <MCUXpressoSDK_install_dir>/boards/<board_name>/multiprocessor_examples/erpc_common/erpc_matrix_multiply. See the associated readme for this example. Hope it helps.

like we do matrix multiplication in Python. Is there any working code with which we can do same in C. may be if i will have that C matrix multiplication code then on server side i can run C and on Client side i can run python and i can send the data from Py to C?

thank you so much,,, i wanted to use Raspberry Pi (python) and PC (C/C++) and i wanted to do serial communication using erpc. Right now i am able to do eRPC between Raspberry Pi and PC via rs232 cable but both sides are in python. I want to run a test program in which on PC i just want to do same matrix multiplication example in C.
so is there any way in which i can run C/C++ matrix multiplication program on PC using eRPC exactly like i can do in python (i need this python example(https://github.com/EmbeddedRPC/erpc/tree/develop/examples/matrix_multiply_tcp_python) in C/C++ ). This example has option for both Serial and TCP transport bdw. Can i do it on ubuntu in C/C++ because i have been on it for last 15+ days and no outcome..

Hello @drumairali , your use case is valid but not demonstrated in any example. You have to build it by your own. When intended to use the serial transport on PC, look at and add into your project the erpc_serial_transport.cpp, there is also the C setup function once you would use C code, but this seems to be not used/modified a long time (erpc_setup_serial.cpp).
I would also recommend to have a look at unit_test_serial_client.cpp / unit_test_serial_server.cpp to see how to setup erpc with serial transport in C++ code. Hope it helps.

thank you so much, i appreciate your quick response... i try it..

It looks like this thread can be closed


Support for Internationalization???

hello, I want to thank you for this project. this is awesome and may I ask if there a possible way to add internationalization to blog post ???
one way I can think of is make a different mdx file with localized tag and generate it from there but I want to ask your opinion first in this matter

Thanks, internationalization should be coming soon to SvelteKit, it might be worth holding off, until the official support is live, how urgent is your need?


Issues with some packages

https://github.com/abbeymart/mcresponse
The author seems to have switched the project to Go but it's still in Nimble packages.
@abbeymart

https://github.com/twist-vector/nim-geohash has no .nimble file at all

https://github.com/abbeymart/mccache seems to have switched to Go too.

Let's just remove these packages :)

The packages are still available in nim. If there is any issues, let me know and I will fix it. Perhaps there was a naming conflict

the packages' git-repos were renamed: mccache => mccache-nim and mcresponse => mcresponse-nim

@abbeymart then please make a PR renaming those packages in the Nimble registry :)

Thanks, what PR - you meant republish the packages with the renaming? I can re-publish them, if that works :)

@abbeymart nah, you can just make a PR to change the git repo URL for them

For example replace mccache with mccache-nim here in two places (you don't need to change the actual package name)

ok, thanks. Will do :)

More issues with packages (from my recent https://github.com/Yardanico/nim-snippets/tree/master/pkgraph run).
Mainly missing .nimble file, code rewritten in another language, dependencies that are not in Nimble.
Sorry for the pings, but I think it's better to either fix issues like that in the package index, or remove the package from the index if the developer doesn't support installation via Nimble. Or at least mark the package as "abandoned".

@drkameleon - https://github.com/arturo-lang/arturo has no .nimble file
@philip-wernersbach - https://github.com/philip-wernersbach/nim-orient has the Nim code in a different branch than specified in the package index
@twist-vector - https://github.com/twist-vector/nim-geohash has no .nimble file
@Kryptos-FR - https://github.com/fragcolor-xyz/fragments seems to be rewritten in Rust, although I found the Nim version - https://github.com/sinkingsugar/fragments
@alialrahahleh - https://github.com/alialrahahleh/fjq has no .nimble file (it was removed for some reason)
@elcritch - https://github.com/EmbeddedNim/nephyr/ depends on fastrpc which is not in the package index, so you can't install it via Nimble
@abbeymart - https://github.com/abbeymart/mctranslog/ depends on mcdb which is not in Nimble.
@sinkingsugar - https://github.com/sinkingsugar/nimtorch depends on the fragcolor-xyz/fragments which, as I said above, is in Rust. The fragments URL in the package index should probably be swapped to https://github.com/sinkingsugar/fragments
@Rekihyt - https://github.com/Rekihyt/astdot/ depends on strings but there's no such package in Nimble.
@tonogram - https://github.com/tonogram/spinner seems to be archived (probably need to mark the package as abandoned?) and also depends on gradient which is not in Nimble.
@planetis-m - https://github.com/planety/fsnotify depends on xio which is in the Nimble index, but it points to https://github.com/ringabout/async that doesn't exist. xio in Nimble should probably point to https://github.com/ringabout/Xio, but I'm not sure.
@juancarlospaco - https://github.com/juancarlospaco/fision depends on easygl and other packages that are not in Nimble.
@bung87 - https://github.com/bung87/crowngui depends on goto (maybe https://github.com/sls1005/nim-goto) but it's not in Nimble.

One more thing: I checked what repos are archived or don't exist anymore - https://gist.github.com/Yardanico/7ec0d0ac95c02297cd77055488e931ef is the result. Will we do anything about archived repos (e.g. adding "abandoned" tag for them) and remove packages which repos that no longer exist?

Also checked deleted or archived repos via GitHub API - https://gist.github.com/Yardanico/1c17ce4d94f67a05bc0b000ef68c3d9a - 32 repos that don't exist and 60 archived ones.
Checked with a quick & dirty program - https://gist.github.com/Yardanico/8470dda537cf4f8538b82de324367580

https://github.com/planety/fsnotify depends on xio which is in the Nimble index, but it points to https://github.com/ringabout/async that doesn't exist. xio in Nimble should probably point to https://github.com/ringabout/Xio, but I'm not sure.

@Yardanico thank you! fixed => https://github.com/nim-lang/packages/pull/2359

Thanks for the ping. I'll get Nephyr fixed up.

Thanks for the ping. I'll get Nephyr fixed up.

Nephyr is actually fine, that was a false positive, sorry :)

The astdot repo is fixed.
On Sun, Sep 18, 2022 at 12:07 AM Yardanico @.***> wrote:

Thanks for the ping. I'll get Nephyr fixed up.
Nephyr is actually fine, that was a false positive, sorry :)
—
Reply to this email directly, view it on GitHub
https://github.com/nim-lang/packages/issues/1807#issuecomment-1250207281,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKK76MYAFHXPZGNRVHXP4PDV625RNANCNFSM4XLNQHMA
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Hugh

Something to add to the list. While looking for some error in the CI, I've noticed the following warnings:
W: Unkown error fetching repo https://pmetras.gitlab.io/nim0 No uri scheme supplied.
W: ao: HTTP error fetching repo https://github.com/ephja/nim-ao 404 Not Found
W: linagl: HTTP error fetching repo https://bitbucket.org/BitPuffin/linagl 404 Not Found
W: csv2json: HTTP error fetching repo https://github.com/achesak/nim-csv2json 404 Not Found
W: Unkown error fetching repo https://gitlab.3dicc.com/gokr/lapp error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
W: Unkown error fetching repo https://gitlab.3dicc.com/gokr/blimp error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
W: asyncevents: HTTP error fetching repo https://github.com/tulayang/asyncevents 404 Not Found
W: libjwt: HTTP error fetching repo https://github.com/nimscale/nim-libjwt 404 Not Found
W: forestdb: HTTP error fetching repo https://github.com/nimscale/forestdb 404 Not Found
W: stor: HTTP error fetching repo https://github.com/nimscale/stor 404 Not Found
W: isa: HTTP error fetching repo https://github.com/nimscale/isa 404 Not Found
W: spdk: HTTP error fetching repo https://github.com/nimscale/spdk.git 404 Not Found
W: syphus: HTTP error fetching repo https://github.com/makingspace/syphus-nim 404 Not Found
W: nimetry: HTTP error fetching repo https://github.com/ijneb/nimetry 404 Not Found
W: algebra: HTTP error fetching repo https://github.com/ijneb/nim-algebra 404 Not Found
W: gurl: HTTP error fetching repo https://github.com/MaxUNof/gurl 404 Not Found
W: nim-nmap: HTTP error fetching repo https://github.com/blmvxer/nim-nmap 404 Not Found
W: redneck_translator: HTTP error fetching repo https://github.com/juancarlospaco/redneck-translator 404 Not Found
W: sweetanitify: HTTP error fetching repo https://github.com/juancarlospaco/sweetanitify 404 Not Found
W: htmlview: HTTP error fetching repo https://github.com/yuchunzhou/htmlview 404 Not Found
W: skbintext: HTTP error fetching repo https://github.com/Skrylar/skbintext 404 Not Found
W: skyhash: HTTP error fetching repo https://github.com/Skrylar/skyhash 404 Not Found
W: yukiko: HTTP error fetching repo https://github.com/ethosa/yukiko 404 Not Found
W: origin: HTTP error fetching repo https://github.com/mfiano/origin.nim 404 Not Found
W: dotprov: HTTP error fetching repo https://github.com/minefuto/dotprov 404 Not Found
W: gradient: HTTP error fetching repo https://github.com/luminosoda/gradient 404 Not Found
W: base[64](https://github.com/nim-lang/packages/actions/runs/3083290053/jobs/4984039415#step:4:65)_decoder: HTTP error fetching repo https://github.com/momeemt/base64_cui 404 Not Found
W: ms: HTTP error fetching repo https://fox-cat.github.io/ms/ 404 Not Found
W: psutilim: HTTP error fetching repo https://github.com/KittyTechnoProgrammer/psutilim 404 Not Found
W: blackvas_cli: HTTP error fetching repo https://github.com/momeemt/BlackvasCli 404 Not Found
W: sliceutils: HTTP error fetching repo https://metagn.github.io/sliceutils/sliceutils.html 404 Not Found
W: assigns: HTTP error fetching repo https://metagn.github.io/assigns/assigns.html 404 Not Found
W: applicates: HTTP error fetching repo https://metagn.github.io/applicates/applicates.html 404 Not Found
W: hats: HTTP error fetching repo https://github.com/davidgarland/nim-hats 404 Not Found
W: composition: HTTP error fetching repo https://github.com/DavidMeagher1/composition 404 Not Found
W: mt: HTTP error fetching repo https://codeberg.org/eqf0/mt/ 404 Not Found
W: psy: HTTP error fetching repo https://github.com/psypac/psypac 404 Not Found

Hi
Done for @.***:alialrahahleh/fjq.git
Best Regards,
Ali M. AlRahahleh
On Sun, Sep 18, 2022 at 12:07 AM Yardanico @.***> wrote:

Thanks for the ping. I'll get Nephyr fixed up.
Nephyr is actually fine, that was a false positive, sorry :)
—
Reply to this email directly, view it on GitHub
https://github.com/nim-lang/packages/issues/1807#issuecomment-1250207281,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALBJXG7Y3ZYVZEF42TKV6M3V625RNANCNFSM4XLNQHMA
.
You are receiving this because you were mentioned.Message ID:
@.***>

I went through the current error list of the package scanner and checked each package to see if it has been renamed or rehosted, this is what I ended up with
im0                new url https://gitlab.com/pmetras/nim0/
psutilim            renamed to https://github.com/Techno-Fox/psutil-nim
sliceutils          renamed to https://github.com/metagn/sliceutils
assigns             renamed to https://github.com/metagn/assigns
applicates          renamed to https://github.com/metagn/applicates
lapp                unable to get local issuer certificate, emailed 3dicc.com
blimp               unable to get local issuer certificate, emailed 3dicc.com

nio                 deleted repository
ao                  deleted user
linagl              deleted repository
csv2json            deleted repository
asyncevents         deleted repository
nim-libjwt          deleted user
forestdb            deleted user
stor                deleted user
isa                 deleted user
nimcx               deleted repository
spdk                deleted user
syphus              deleted repository
pdcurses            deleted user
libuv               deleted user
romans              deleted user
gentabs             deleted user
nimetry             deleted repository
algebra             deleted repository
gurl                deleted repository
nim-nmap            deleted repository
redneck_translator  deleted repository
sweetanitify        deleted repository
htmlview            deleted repository
skbintext           deleted repository
skyhash             deleted repository
yukiko              deleted repository
origin              deleted repository
dotprov             deleted repository
gradient            deleted repository
base64_decoder      deleted repository
ms                  deleted repository
blackvas_cli        deleted repository
hats                deleted repository
composition         deleted repository
psy                 deleted user


feat: add screen test code on init

Adds a pixel test pattern when starting up.
Closes #48.

@ph1p do you have any feedback on changes or if you plan to merge the feature at all?

Works like a charm, thanks for the PR :)

Rebased onto master. If there is no intention to merge this, I will close it soon tho.


change kinship_plot.R input arg to be more general

The first argument is called pcrelate_file, but this script can also take KING output. Change the name to something more general. Because this is a positional argument, this should not affect users

fixed in a193165


Support creating folders

As far as I can tell currently it's only possible to create a file based on the target. It would be useful to be able to create folders as well.

thanks for creating an issue! you can already do this. Just end the name of the file with a "/".


Doesn't work on iOS Safari

I have a react and typescript application where this qr reader works fine on my computer with the webcam, but it doesn't work on my phone. I have tried with legacymode=false and true. Is it something to do with it running on localhost?

Are you running your app on localhost? If so you need to activate media on unsafe sites.
https://stackoverflow.com/a/59770868


Update documentation

It seems like rancher is not using cAdviser since v1.2
As such this repository is not needed. Could you please update documentation.

Indeed, the guide and catalog entry have been updated to reflect the change, ranch-eye its-self though hasn't. I'll update the docs to make it clear.

Updated.

Thank you


Author page should display author details

Scenario
Given an author named 'Alan Turing'
When a user visits Turing's details page
Then no error should occour
Hints
A 'show' page displays an author's details.
In a test, visit the show page of @alan with visit author_path(@alan).
Create a separate file for author show page feature tests. Make sure it ends with _spec.rb, so that RSpec recognizes it as a test and runs it.
Test for existence of text on a page using the have_text matcher:
expect(page).to have_text(...).
Create a show action on the AuthorsController and a 'show' view (app/views/authors/show.html.erb).
Here is the relevant section (5.7) of the Rails Guide.
Tip: FactoryBot.create :author creates and saves a valid author object in your tests. If you un-comment the code in spec/factories/authors.rb, the author will be initialized with meaningful values.
Error

Got AbstractController::ActionNotFound: The action 'show' could not be found for AuthorsController

7 exercise tests have passed. There are 44 in total. You will solve multiple at once towards the end.

Sorry, it's not working for me yet:
Scenario
Given an author named 'Alan Turing'
When a user visits Turing's details page
Then it should show Turing's first name, last name and homepage
Error

Expected to find text "http://wikipedia.de/alan_turing" in "author page\nalan turing"

If you have problems solving this task, please don't hesitate to contact the teaching team!


Error when running make migrate

Here is the error log:
(llama-app-backend-py3.11) bash-3.2$ make migrate
echo "Running migrations."
Running migrations.
docker compose start db
[+] Running 1/1
 ✔ Container backend-db-1  Started                                                                                0.3s
poetry run python -m alembic upgrade head
The currently activated Python version 3.9.16 is not supported by the project (^3.10).
Trying to find and use a compatible version.
Using python3 (3.11.5)
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/.../Library/Caches/pypoetry/virtualenvs/llama-app-backend-cPGORASJ-py3.11/lib/python3.11/site-packages/alembic/__main__.py", line 4, in <module>
    main(prog="alembic")
  File "/Users.../Library/Caches/pypoetry/virtualenvs/llama-app-backend-cPGORASJ-py3.11/lib/python3.11/site-packages/alembic/config.py", line 630, in main
    CommandLine(prog=prog).main(argv=argv)
  File "/Users/.../Library/Caches/pypoetry/virtualenvs/llama-app-backend-cPGORASJ-py3.11/lib/python3.11/site-packages/alembic/config.py", line 624, in main
    self.run_cmd(cfg, options)
  File "/Users/.../Library/Caches/pypoetry/virtualenvs/llama-app-backend-cPGORASJ-py3.11/lib/python3.11/site-packages/alembic/config.py", line 601, in run_cmd
    fn(
  File "/Users.../Library/Caches/pypoetry/virtualenvs/llama-app-backend-cPGORASJ-py3.11/lib/python3.11/site-packages/alembic/command.py", line 385, in upgrade
    script.run_env()
  File "/Users/.../Library/Caches/pypoetry/virtualenvs/llama-app-backend-cPGORASJ-py3.11/lib/python3.11/site-packages/alembic/script/base.py", line 578, in run_env
    util.load_python_file(self.dir, "env.py")
  File "/Users/.../Library/Caches/pypoetry/virtualenvs/llama-app-backend-cPGORASJ-py3.11/lib/python3.11/site-packages/alembic/util/pyfiles.py", line 93, in load_python_file
    module = load_module_py(module_id, path)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/.../Library/Caches/pypoetry/virtualenvs/llama-app-backend-cPGORASJ-py3.11/lib/python3.11/site-packages/alembic/util/pyfiles.py", line 109, in load_module_py
    spec.loader.exec_module(module)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/.../Desktop/jp_projects/ai_hackathons/sec-insights/backend/alembic/env.py", line 9, in <module>
    from app.core.config import settings
  File "/Users/.../Desktop/jp_projects/ai_hackathons/sec-insights/backend/app/core/config.py", line 169, in <module>
    settings = Settings()
               ^^^^^^^^^^
  File "pydantic/env_settings.py", line 40, in pydantic.env_settings.BaseSettings.__init__
  File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 7 validation errors for Settings
AWS_KEY
  field required (type=value_error.missing)
AWS_SECRET
  field required (type=value_error.missing)
POLYGON_IO_API_KEY
  field required (type=value_error.missing)
DATABASE_URL
  field required (type=value_error.missing)
S3_BUCKET_NAME
  field required (type=value_error.missing)
S3_ASSET_BUCKET_NAME
  field required (type=value_error.missing)
CDN_BASE_URL
  field required (type=value_error.missing)
make: *** [migrate] Error 1

Hi @jpzhangvincent , thanks for checking out the repo!
Looks like you need to set your environment variables. The first step to setting up the backend repo is to run cp .env.development .env and then load in the env vars in .env by running set -a followed by source .env.
After that, the service should technically start but certain endpoints won't work until you've properly set the API key and other secret parameters (e.g. OPENAI_API_KEY, AWS_KEY, AWS_SECRET etc.). You'll need to create your own AWS, OpenAI, Polygon.io etc. accounts and get the API keys from those accounts into the .env file for the complete setup.

Hmm but when I run in the codespace it didn't complain even when I didn't specify AWS_KEY/AWS_SECRET... but it throws the error and stop running due to the validator when I'm testing locally

Hmm not sure why that'd be the case actually 🤔 It certainly shouldn't start if you haven't set those environment variabels.
For what it's worth, if you're just trying to run migrations you can just set dummy values to many of those environment variables values like xxx as is done in .env.development here.

Closing the issue as there's no follow-up. Please re-open if you continue having an issue related to this!


[WIP] replace print statements with calls to HARK logger, see #130

Addresses #130 by using the HARK logger more widely in the library

[ ] Tests for new functionality/models or Tests to reproduce the bug-fix in code.
[ ] Updated documentation of features that add new functionality.
[ ] Update CHANGELOG.md with major/minor changes.

@sbenthall will fix conflicts and then pass back to @MridulS for review?


feature request: add 'vertical' layout option to dag command

This option would render the DAG with a vertical layout. It would also be useful to colorize the node based on the model schema.
E.g. sqlmesh dag --layout=vertical

i think we may deprecate the dag functionality in the context and just have it in the ide, so closing this as not planned


Cargo uses .cargo/config of workspace from which it is excluded

So we have a big cargo workspace, let's say in /workspace/. We have /workspace/vendor and /workspace/.cargo/config which points crates-io to this vendor directory. In /workspace/Cargo.toml we exclude one directory from the workspace:
exclude = [
    "excluded"
]

So, when I go into /workspace/excluded and I try to run cargo build, I'm getting these kind of errors:
error: failed to select a version for the requirement `libc = "^0.2.62"`
  candidate versions found which didn't match: 0.2.50
  location searched: directory source `/workspace/vendor` (which is replacing registry `https://github.com/rust-lang/crates.io-index`)
required by package `excluded v0.1.0 (/workspace/excluded)`
perhaps a crate was updated and forgotten to be re-vendored?

So it seems that the source replacement from .cargo/config is seen as totally separate from the workspace concept. This if of course very annoying and I would consider it a bug. A directory excluded from the workspace should not use configs that are set in the workspace directory.

Cargo searches all parent directories for a .cargo directory, whether or not they're part of the workspace IIRC.

Correct. In my opinion that doesn't make sense. Somehow vendor directories should be linkable with workspaces instead of entirely independent.

As the config is an environment config, rather than a project config, this is working as expected.  This is a common point of confusion though and we have many other issues tracking this.  Closing in favor of #2930 so we consolidate conversations about the config lookup rules
See also #12738 for tracking efforts in finding ways to store settings in the project that is currently only supported in the environment.


Add support for DNS over TLS

Hi
Can you please add support of DNS over TLS for the DNS service?

See #321

@angristan It was more like "please add the possibility to configure DNS over TLS / DNS over HTTPS using your DNS-install script"


Missing hyperlink

In the last sentence of the second-to-last paragraph in the section titled, "Recognize CPU-Bound and I/O-Bound Work," the reference to the Task Parallel Library should probably be hyperlinked to the TPL documentation (https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/task-parallel-library-tpl).

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

ID: 07ed82a3-99c1-0893-4e81-d095b4757ecc
Version Independent ID: 3765200b-43e5-441c-b290-709c34dd2f6d
Content: Asynchronous programming
Content Source: docs/csharp/async.md
Product: dotnet-csharp
GitHub Login: @cartermp
Microsoft Alias: wiwagn

@BillWagner I think we may want to associate this article with you now - currently we're both "owning" it  😄

Sure, I'll give it a try.  Thanks!


Request for Documentation: ElasticSearch FAQs

Mattermost user katie.wiersgalla from https://community.mattermost.com has requested the following be documented:
##### What indexes do we create?

Right now we create three types of indexes: posts, users and channels.  Users and channels only have one index each, but for posts we create multiple, aggregating the posts by date.

##### We don't store attachments in ES, correct?

Yes, we don't store files in ES.

##### What form is the data we send into ES?

The communication with ES happens through its REST API, so we send JSON messages to index entities and query for them.

##### Do we have any estimates on "Queries/user/day" or something like that?

It is difficult to estimate, but it depends on what they use ES for. Right now you can use ES for the search feature and from 5.12 on it will be possible to use it for autocompletion of users/channels. Every time a message is published, a channel is created or a user changes, either because their properties change (e.g.: change of the first name) or because they join/leave a channel, that post/channel/user is sent to ES.

As for queries, if the search feature through ES is enabled, every search will generate a query, and if the autocompletion feature is enabled, every user or channel autocompletion when writting a message or user search will generate a query.

See the original post here.
This issue was generated from Mattermost using the Doc Up plugin.

I've added three of the four questions to the ES content.
For question four, I'd like to clarify whether the customer is asking for a search string to account for that or whether they're confirming that it's possible to access logs that indicate the number of queries per user per day.


Request dependency <=2.68 opens to potential memory exposure vulnerability

Do you want to request a feature or report a bug?
This ticket is to report a a potential security vulnerability caused by the request dependency.
What is the current behavior?
Various of the dependencies used by bower make use of a vulnerable version of the request package (<2.68) that allow potential memory exposure.
Involved dependencies are: registry-client, request-replay
details:

https://snyk.io/vuln/npm:request:20160119
https://github.com/request/request/pull/2018
https://github.com/IndigoUnited/node-request-replay/pull/7

could someone review this ticket?


In README, Comment on relationship with https://github.com/gzuidhof/zarr.js/

There's an existing Typescript package for reading Zarr files here https://github.com/gzuidhof/zarr.js/
Presumably this new package has some features or use cases the that package does not cover. Could you comment on the relationship between these two packages? That would help new users (like myself) decide between the two.

Hi there. I'm aware of the other project and one of the primary contributors.
zarr.js is a port of the Python implementation, which led to some inherent design limitations which made it challenging to maintain and introduce new features. In contrast, zarrita.js was a complete rewrite designed for JavaScript with a more functional API, offering better tree-shaking. This allows developers to only include the features they need, potentially reducing bundle sizes.
zarrita.js also has a more streamlined (and subjectively ergonomic) API, focusing on common use cases rather than mirroring the extensive Python API.
The primary funcational difference is that zarrita.js supports both Zarr v2 and v3 (zarr.js only supports v2). Beyond that,  zarrita.js offers a collection of storage backends and improved TypeScript typings.


glags-x64-windows build failed with vs2017

Package: gflags:x64-windows
Vcpkg version: 2018.11.23-nohash
vcpkg install gflags:x64-windows
D:\vcpkg>vcpkg install gflags:x64-windows
The following packages will be built and installed:
gflags[core]:x64-windows
Starting package 1/1: gflags:x64-windows
Building package gflags[core]:x64-windows...
Warning: The following VS instances are excluded because the English language pa
ck is unavailable.
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise
C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview
Please install the English language pack.
-- Using cached D:/vcpkg/downloads/gflags-gflags-v2.2.2.tar.gz
-- Using source at D:/vcpkg/buildtrees/gflags/src/v2.2.2-d9283b9285
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
Command failed: ninja;-v
Working Directory: D:/vcpkg/buildtrees/gflags/x64-windows-rel/vcpkg-parallel
-configure
See logs for more information:
D:\vcpkg\buildtrees\gflags\config-x64-windows-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_cmake.cmake:257 (vcpkg_execute_required_process)
ports/gflags/portfile.cmake:18 (vcpkg_configure_cmake)
scripts/ports.cmake:71 (include)
Error: Building package gflags:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: gflags:x64-windows
Vcpkg version: 2018.11.23-nohash
Additionally, attach any relevant sections from the log files above.
config-x64-windows-out.log

Please install the English language pack.

Thank you. It works!


Unable to triple click items into a grid.

This is a bug that affects all versions where I am unable to triple click all stacks of an Item in my inventory into a grid. It is a minor bug that is quickly solved with a chest and an importer, but it is a vanilla functionality that should remain in my opinion.

What exactly should I do to triple click? I keep trying it in a vanilla chest, sometimes it works but sometimes it doesn't... what is the exact shortcut?

With some item picked up, mouse over the item which has multiple stacks (in
your inventory) and triple click. It should all go in.
On 11 June 2016 at 18:01, Raoul<EMAIL_ADDRESS>wrote:

What exactly should I do to triple click? I keep trying it in a vanilla
chest, sometimes it works but sometimes it doesn't... what is the exact
shortcut?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/raoulvdberge/refinedstorage/issues/69#issuecomment-225358296,
or mute the thread
https://github.com/notifications/unsubscribe/ARh9c6yOMNMGMs9g5wGe81WQVEFrOtqFks5qKqq8gaJpZM4IkNQH
.

The more important question is, how come this functionality did not work originally? Is it a bug with forge not supporting this vanilla functionality?

It doesn't work because the inventory you see in the grid isn't a real inventory!

aha! I figured there was some trickery going on here :). Correct me if I am wrong but, what you do is you detect when the player shift clicks an item , you then delete the stack from that inventory and place it into the RS system? Can we do something similar for the triple click?

I could, but the clean solution would be to make the slots actually work.

maybe we could refer some ae2 code?

We don't, I know how to do it myself. It'll just take a little time.

Awesome!

https://twitter.com/vdbergeraoul/status/743067947065872384
;)


Straw man PR for improved highlighting

I've fixed the off by one error and have committed using the correct email address!
We still need to decide whether triggering by cursor position is the way to go, or whether hover would be better -- and if we stick with cursor position, should being in a function name and/or next to a comma in a parameter list also highlight the function?
Plus any amount of CSS tweaking, of course.

I think this is better than not being there.  Further improvements to styles and such can come later.


Support for mapping Access service tokens to Access policy

At the moment it doesn't seem to be possible to create an Access Policy with a Decision type Non-Identity.
If this get supported, we can then attach a Access Service Token to an Access Policy using the API.
Details on how to attach an access service token to an access policy: https://developers.cloudflare.com/access/service-auth/service-token/

this has been added in #419

It is, thanks!


Added autocenter to timeline widget

Added autocenter day in the timeline widget. Consider testing on multiple devices.

I noticed that in the init state it is not set to the center. Trying to put it anyway doesn't put it central

Great job! I will perform tests on the code, and I will approve it.
one small enhancement is to replace this MediaQuery.of(context).size.width with  MediaQuery.sizeOf(context).width

Great job! I will perform tests on the code, and I will approve it.
on small enhancement is to  replace this MediaQuery.of(context).size.width with

great, reassurances also to set the day centered when initializing the widget 👍👋

@Matt0550  Just saw your comment in Issues and now found you here. Thanks man ❤❤


Add crawling for events?

Is there an option to crawl events out of Facebook?
If not, would it be easy to implement? I could assist if there is interest for that.

At the moment there is no such function but thx for bringing up the idea :)
I think that having a dedicated "event" crawler would be useful, I know many people that "use facebook only for events", so it can work as a real time aggregator of interesting events on given pages. Even a simple csv could be enough to replicate (and possibly enhance) the events infos; ultimately having an export in iCal  with a nice frontend would be ideal.
Also, for pages that host regular events, it would be useful to have the crawler to perform better data science analysis

I created this based on some needs, hope it helps.
https://github.com/rugantio/fbcrawl/pull/40

@StefanYohansson is this crawling events from a page, or universally?

I just checked the events crawler, it seems that it's broken somehow. I do not get any events crawled even when there are events on a page. Is there a chance the XPATHS were changed?

@littlewine I don't even know how to get events universally from facebook. There's an event page or something? (I am not familiar with Facebook)

@StefanYohansson facebook.com/events

Also, one more thing I noticed was that you can also get more information about the event by clicking "View Event Details." For instance, you can get a more detailed event description and a count of the number of people going, interested, and who shared the event. I feel like the count of people attending/interested in the event would be important to know.


Use new design and add user flows as dummy pages WD-8469

adjusted to new design
added dummy pages for register, reset, device and setup

it is quite a lot of code in just one commit, any chance to split it into smaller ones?

It's not that many code changes, most of the lines are due to dependency updates, which are a prerequisite for other changes. So factoring them out into individual PRs is painful, because they would rely on each other.

@edlerd looks good to me afaict, what is the policy for frontend tests?how do we catch broken UI?

Looks good. MFA options obviously missing but I assume this is out of scope at this stage


Fix: Dropdown & housecleaning

Q
A

Is bugfix?
❌

New feature?
❌

Breaks BC?
❌

Fixed issues
-

👍


When creating a folder named 'icons' it's automatically git ignored / greyed out

VSCode Version: 1.31.0 (1.31.0)
OS Version: Mac OS High Sierra 10.13.6

Steps to Reproduce:

create a folder named icons anywhere in project
Folder automatically greys out as if its defined in a .gitignore file

Does this issue occur when all extensions are disabled?: Yes

Please run this command in your repo: https://git-scm.com/docs/git-check-ignore


hysteria: Add version 1.0.1

Closes #XXXX

Relates to #XXXX

[X] I have read the Contributing Guide.

/verify

Append #/hysteria.exe at the end of all URLs, and change the bin entry to hysteria.exe

Both issues are fixed.

/verify

/verify

If this is a CLI-only app, can you transfer this PR to the Main bucket?

I don't think this app fits criteria "a reasonably well-known and widely used developer tool" due to a relatively small userbase, can you confirm that you want this app to be added to the Main bucket?

I don't think this app fits criteria "a reasonably well-known and widely used developer tool" due to a relatively small userbase

Okay, then it's fine to add it here


PubSub EOD subscriptions: Block for receipt ModAck (very first ModAck) and pass messages to the calling application only on success.

This flow is applicable only for the Exactly once delivery subscription.
Expected flow:

Client library receives a message from the service on streaming pull (already happens)
Client library issues the first ModAck (a.k.a receipt ModAck) as soon as a message is received (already happens)
Client library waits for this ModAck (receipt modack) to succeed before sending the message to the user via callback. (This is new). Until now, the ModAck is executed asynchronously and the message will be sent to the user via callback.

If the ModAck fails with a temporary error, it should be retried.
If the ModAck fails with a permanent error, don't log it and move on, i.e., don't send message to the user.

If the message is sent to the user via callback, client library extends the lease periodically by executing modack calls (already happens)

If there is a permanent failure in first ModAck, there will be another delivery. If the first delivery is sent to the user, and so is the follow up delivery, that will appear as a duplicate. We can mitigate that case by not sending the first delivery to the user once we know there will be a second delivery (permanent failure on receipt ModAck)

Completed via #10175


Add autoreview in predefined taxonomy terms

Fixes #312
~Unhold: There seems to be a discussion in the issue whether we want to have it.~

@inyono Ready to be merged :-)

@inyono Feedback is implemented. Ready to be merged...

@inyono new feedback included -> ready to be merged

@inyono In https://github.com/serlo/serlo.org/pull/435/commits/79d62d0582bbfaec9d4cb5c85cf66f7d1f69f673 I have included a documentation for this feature in README.md You can remove this commit when you think this is not necessary. :-)


Compatibility with heartbeat

Author Name: novid Agha Hasani (novid Agha Hasani)
Original Redmine Issue: 2429, https://dev.opennebula.org/issues/2429
Original Date: 2013-11-05

heartbeat for detect problem checks exit code, so when openebula will fail, must return exit 3 instead 0
we must change init script opennbula

/etc/init.d/opennebula

changing
status)
status_of_proc "oned" "$NAME" && exit 0 || exit $?
;;
to
status)
# NEEDS to be heartbeat friendly...
# so: put some "OK" in the output.
process=$(ps -ef | grep "/usr/bin/oned" | grep -v "grep" | wc -l)
if [ "$process" -gt 0 ]; then
echo "opennebula loaded OK"
# drbd_pretty_status $PROC_DRBD 2>/dev/null
exit 0
else
echo >&2 "opennebula not loaded"
exit 3
fi
# status_of_proc "oned" "$NAME" && exit 0 || exit $?
;;

/etc/init.d/opennebula-sunstone
 # NEEDS to be heartbeat friendly...
 # so: put some "OK" in the output.
 process=$(ps -ef | grep "/usr/lib/one/sunstone/sunstone-server.rb" | grep -v "grep" | wc -l)
 if [ "$process" -gt 0 ]; then
     echo "sunstone loaded OK"
     drbd_pretty_status $PROC_DRBD 2>/dev/null
     exit 0
 else
     echo >&2 "sunstone not loaded"
     exit 3
 fi
;;

/etc/init.d/appmarket

I am writing new init script for 'appmarket' too that attach it
file source related from github is : https://github.com/OpenNebula/one/tree/1a70cffab08276a6019fb876b3ce5f20875d1256/share/pkgs/Ubuntu

Original Redmine Comment
Author Name: novid Agha Hasani (novid Agha Hasani)
Original Date: 2013-11-05T18:44:00Z

Javi Fontan wrote:

Thanks!
We will take a look a these but seem OK.
I am adding a related ticket.

thx man
you can safely remove drbd_pretty_status $PROC_DRBD 2>/dev/null too :)
I used part of the init drbd script and  mistake paste it here !

Original Redmine Comment
Author Name: Javi Fontan (Javi Fontan)
Original Date: 2013-11-05T18:21:59Z

Thanks!
We will take a look a these but seem OK.
I am adding a related ticket.

Since the services are managed by the systemd these days, the systemd can detect itself crash of the service and do the automatic recovery. Also at least for the oned, we have an integration with systemd which is reporting back when the oned is fully ready-to-use.
https://github.com/OpenNebula/one/blob/ec43d184d13955700cb7a4a8073fa721abc62be6/src/nebula/Nebula.cc#L1150-L1154
Closing the issue.


Make the processor superscalar

This issue involves extending the processor so that it can process more than one instruction per cycle. As functional units should naturally scale, the main problem is extending the frontend (to load multiple instructions at once) and backend (to commit multiple instructions at once).

It can be useful to check what is/was implemented in vector extension, because there are similar problems as with superscalarity

SuperscalarFreeRF - #417
MultiportFifo - #395


FA3 for cuda12.3 but torch only releases cuda 12.4 version

Hi, Thank you for wonderful work!
Is that ok  for FA3 compiled in 12.3 but torch is in cuda12.4?

Yes

Thank you very much!!!!!


lowercase not work for variable

    RiveScript rs = new RiveScript();
    rs.stream(new String[] { //
        "! version = 2.0", //
        "+ a", //
        "- {lowercase}A{/lowercase}", //
        "+ b", //
        "- {lowercase}<get v>{/lowercase}"});
    rs.sortReplies();
    rs.setUservar("test", "v", "B");
    System.out.println(rs.reply("test", "a"));
    System.out.println(rs.reply("test", "b"));

output is:
a
B

It reproduced on 0.8.* and 0.9.* versions

This is indeed an issue with current implementations of RiveScript (Java, JS, Go, ..).
The tag ordering, or better the ordering of processing the tags, has been picked carefully to support the common use cases. Processing the lowercase, formal etc formatting tags is done early, also to support e.g. <set name=<formal>>.
It would be better that RiveScript would parse/tokenize the whole message string so we are not dependent on the ordering, but this might be a quite big job to do.
In the short term I don't see this implemented to be honest (also mainly to keep consistence between the various RiveScript impls). However I will start look at e.g. ANTLR so we can make an actual grammar/lexer for RiveScript.


Closes #24. Adding support for the /health/state/* endpoint

I think this does the trick. I copied your tests for the service endpoint and fixed them up a bit. It's not exhaustive (I only check any and passing, for example), but I hope  it's a good enough first step.

Okay, formatting fixed, but CI is still failing. Not sure why at the moment.

There's an intermittent timing fail in the tests .. might just be that.
On Wed, Mar 4, 2015 at 3:40 PM, Pete Emerson<EMAIL_ADDRESS>wrote:

Okay, formatting fixed, but CI is still failing. Not sure why at the
moment.
—
Reply to this email directly or view it on GitHub
https://github.com/cablehead/python-consul/pull/25#issuecomment-77275499
.

I guess that makes sense when you're relying on sleep() to ensure data consistency. I suppose you could widen the sleeps to have a higher likelihood of success, at the expense of slower tests ...

It's on my todo list to make them more deterministic .. It's be good to
rework them so they don't rely on sleeps at all.
On Wed, Mar 4, 2015 at 3:47 PM, Pete Emerson<EMAIL_ADDRESS>wrote:

I guess that makes sense when you're relying on sleep() to ensure data
consistency. I suppose you could widen the sleeps to have a higher
likelihood of success, at the expense of slower tests ...
—
Reply to this email directly or view it on GitHub
https://github.com/cablehead/python-consul/pull/25#issuecomment-77276396
.

Ah, I forgot to add the assert for the name parameter. I'll add that in.

Thanks Pete! I've tagged and pushed to pypi as v0.3.11


Add support to ActKillProcess

Added the ActKillProcess option, which allows for killing the entire process instead of just the thread, as ActKill does.
In the Kernel, when ActKillProcess was created (4.14) an extra ActKillThread action was also added to remove ambiguity.  ActKill was kept for backwards compatibility, so I wonder whether is it worth doing the same here or just the extra comments are sufficient?
More info:
https://man7.org/linux/man-pages/man2/seccomp.2.html
Signed-off-by: Paulo Gomes<EMAIL_ADDRESS>

@saschagrunert PTAL this will be quite useful in the operator later on.

LGTM


Feature Request: store and search in channels XML file for major/minor channel (ATSC)

Although I haven’t looked at the code I could probably look at doing this myself if it doesn’t appeal to you, @lelegard.

Done. The XML format of the channels configuration file has been enhanced to include major and minor id of ATSC channels. This means that you need to tsscan again to rebuild the channel configuration with the new information.
The option --channel-transponder can now use "major.minor", eg. --channel-transponder KXYZ or --channel-transponder 1.4.
Please tell us if this works on a real ATSC network.

Yes, gathering various streams is always useful. Each operator or country has its own percularities which are useful to know and test.

I can confirm the scan correctly adds the major/minor channels to the XML file, and that channel-transponder correctly tunes to the right frequency.
A couple of observations though:
-P zap "service_name" doesn't seem to work for ATSC. I haven't tried this until now, as my own code uses the XML file searching option to get the service ID for a service name and then does the equivalent of zap on the service id. Is this intended to be working now, or is it not yet implemented?

Logically you could also allow -P zap "major.minor" as another way of specifying it?

I just added the zap by name or by major.minor for ATSC streams.
There is one restriction though: The xVCT is not modified in the resulting SPTS. Technically, the output is a clean SPTS with only one service in the PAT. But the ATSC xVCT still contains names of services which were removed. On DVB streams, the SDT is cleaned up to contain only the description of the remaining service.
The reason for this restriction is that, on ATSC streams, the PID 0x1FFB is a mixture of cycled tables (MGT, xVCT) and one-shot tables (STT). It is consequently more difficult to modify tables in this PID. On DVB streams, the PID 0x0011 contains cycled tables only (SDT, BAT).
In fact, the TSDuck packetizer (the section remux) was designed to work either with cycled / scheduled sections or one-shot sections but not a mixture of the two (the design must be completely different). This works fine for MPEG base and DVB. But ATSC introduces what I consider a poor signalization design in the PSIP PID.


Compilation error

tripcode.c:(.text.startup+0x1ea): undefined reference to `DES_fcrypt'
Watdo

try with -lcrypto on the end
On 25/09/2015 12:03, fugbollz wrote:

tripcode.c:(.text.startup+0x1ea): undefined reference to `DES_fcrypt'
Watdo
—
Reply to this email directly or view it on GitHub
https://github.com/Cairnarvon/triptools/issues/3.

Looks like it's already defined int he makefile, Adam. Here is the full output from running ./build.sh:
gcc -o tripcode -Wall -Wextra -pedantic -Werror -Wno-unused-parameter -lcrypto -lssl -O3  -DSJIS_CONVERT tripcode.c
/tmp/ccBvZmyU.o: In function main': tripcode.c:(.text.startup+0x1ea): undefined reference to DES_fcrypt'
collect2: error: ld returned 1 exit status
Makefile:16: recipe for target 'tripcode' failed
make: *** [tripcode] Error 1
ERROR Couldn't build regular tripcode tool!
gcc -o sectrip -Wall -Wextra -pedantic -Werror -Wno-unused-parameter -lcrypto -lssl -O3  -DSECURE_TRIP tripcode.c
/tmp/cc3PKYb5.o: In function main': tripcode.c:(.text.startup+0xbd): undefined reference to SHA1'
collect2: error: ld returned 1 exit status
Makefile:19: recipe for target 'sectrip' failed
make: *** [sectrip] Error 1
ERROR Couldn't build secure tripcode tool!
gcc -o tripfind -Wall -Wextra -pedantic -Werror -Wno-unused-parameter -lcrypto -lssl -O3  tripfind.c
tripfind.c: In function ‘main’:
tripfind.c:178:13: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result]
fread((void*)&srt, sizeof(int), 1, randf);
^
cc1: all warnings being treated as errors
Makefile:22: recipe for target 'tripfind' failed
make: *** [tripfind] Error 1
ERROR Couldn't build regular tripfinder!
gcc -o secfind -Wall -Wextra -pedantic -Werror -Wno-unused-parameter -lcrypto -lssl -O3  -DSECURE_TRIP tripfind.c
tripfind.c: In function ‘main’:
tripfind.c:178:13: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result]
fread((void*)&srt, sizeof(int), 1, randf);
^
cc1: all warnings being treated as errors
Makefile:25: recipe for target 'secfind' failed
make: *** [secfind] Error 1
ERROR Couldn't build secure tripfinder!
gcc -o tripfind-regex -Wall -Wextra -pedantic -Werror -Wno-unused-parameter -lcrypto -lssl -O3  -DUSE_REGEX tripfind.c
tripfind.c: In function ‘main’:
tripfind.c:178:13: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result]
fread((void*)&srt, sizeof(int), 1, randf);
^
cc1: all warnings being treated as errors
Makefile:28: recipe for target 'tripfind-regex' failed
make: *** [tripfind-regex] Error 1
ERROR Couldn't build regular regex tripfinder!
gcc -o secfind-regex -Wall -Wextra -pedantic -Werror -Wno-unused-parameter -lcrypto -lssl -O3  -DUSE_REGEX -DSECURE_TRIP tripfind.c
tripfind.c: In function ‘main’:
tripfind.c:178:13: error: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Werror=unused-result]
fread((void*)&srt, sizeof(int), 1, randf);
^
cc1: all warnings being treated as errors
Makefile:31: recipe for target 'secfind-regex' failed
make: *** [secfind-regex] Error 1
ERROR Couldn't build secure regex tripfinder!

Do you actually have the OpenSSL development libraries installed? The linker can't find them.

As far as I'm aware, yes I have libssl-dev. I made sure that it's installed before I proceeded with compiling. I also have openssl installed.

openssl version
OpenSSL 1.0.1f 6 Jan 2014

I tried compiling under Linux Mint and Lubuntu. Same errors.
Is there some sort of linking missing? Perhaps I should add something in the makefile?

After way too much googling, I found the answer in this question on Stack Overflow.

When you link your application, the linker looks for dependencies in the order you give them on the command line.
So if you add a library (like -lssl) before the source/object file that depends on that library, the linker will not find any dependencies and ignore the library.
This means that you must always put libraries last on the command line.

So it seems Adam's advice was right, despite its brevity. The order of the arguments matter. With the wrong order, a library is not included, thus the error in question. So for example...
        $(CC) -o $@ $(TRIPFLAGS) $<
...will fail because the -lssl argument (part of $(TRIPFLAGS) as per the definition at the top of the makefile) comes before the source code files. Whereas...
        $(CC) $< -o $@ $(TRIPFLAGS)
...is an example of a working statement.
Might also want to add -Wno-unused-result to WARNS to suppress the warning about fread that was elevated to an error.
All of this might vary depending on which compiler you're using, and maybe to some degree on which -std is selected by default in the system.


Update cats-effect, cats-effect-testkit to 3.4.3

Updates

org.typelevel:cats-effect
org.typelevel:cats-effect-testkit

from 3.4.1 to 3.4.3.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "org.typelevel" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #24.


Advancing 0.18.1 release to status: installers

Components:

https://github.com/submariner-io/admiral/commits/release-0.18
https://github.com/submariner-io/cloud-prepare/commits/release-0.18
https://github.com/submariner-io/lighthouse/commits/release-0.18
https://github.com/submariner-io/shipyard/commits/release-0.18
https://github.com/submariner-io/submariner/commits/release-0.18
https://github.com/submariner-io/submariner-operator/commits/release-0.18

It's interesting the bot left the comment for the submariner-operator bump here instead of on the Projects-step PR as normal: https://github.com/submariner-io/releases/pull/1086

@yboaron you’ll need to redo this once https://github.com/submariner-io/submariner-operator/pull/3249 is merged


Authentication issues in injected mode

On wiki here, there is an instruction to set app setting WEBSITE_AUTH_OPENID_ISSUER
However when I'm trying to do this on my Function App it throws the following error:
AppSetting with name 'WEBSITE_AUTH_OPENID_ISSUER' is not allowed.
The same goes for the 'WEBSITE_AUTH_CLIENT_ID' app setting.
What should I do to configure it now?
I'm using WebAppAuthSettingsV2 for EasyAuth

Now I can see in Kudu console that these variables are already set. However I get 401

Hello @scale-tone
Thanks for quick reply. Ok, I found out that as you wrote there is no need to set these appsettings because they are already in place.
I'm running Azure Function App with enabled Authentication (V2) and I would like to add monitor in injected mode.
Now I have issue with "Login Failed" described on screen above.
Is this trying to authenticate to storage account with task hub using my principal (logged in user) or as application (the one configured in Authentication tab in azure portal)?

I would like to add monitor in injected mode.

@yoozek , can you show a screenshot of this tab:

of your Function App instance in Azure Portal (with whatever sensitive info redacted)?

@scale-tone

auth works fine by the way

I don't know what I changed but it works now. Hovewer it still says anonymous in right top, is this correct?

it still says anonymous in right top, is this correct?

No, it is not correct, it means that your DfMon endpoint now has its authentication disabled (which, of course, is a bad idea for a publicly available endpoint).
This can only happen either when DfmSettings.DisableAuthentication property is set to true in your code or when DFM_NONCE config setting is set to i_sure_know_what_i_am_doing.
Please, provide the following things (with all sensitive info redacted):

Your CSPROJ-file.
Your host.json file.
How your call to DfmEndpoint.Setup() looks like right now (this call must be in your code, if you're using DfMon in injected mode).
A screenshot of your Function App instance's Configuration tab in Azure Portal. Only config setting names are needed.
Open Dev Tools in your browser (by pressing F12), go to Network tab there, then navigate to your DfMon endpoint and make a screenshot of all network calls that are failing (if any), with details like status code and/or error message.

Do you still need help on this, @yoozek ?

@scale-tone yes, sorry this week I had a lot of different topics and couldn't find time to get into this again. I'll try it again and describe next week

Csproj
<Project Sdk="Microsoft.NET.Sdk"> 	<PropertyGroup> 		<TargetFramework>net6.0</TargetFramework> 		<Nullable>enable</Nullable> 		<TreatWarningsAsErrors>true</TreatWarningsAsErrors> 		<AzureFunctionsVersion>v4</AzureFunctionsVersion> 		<DurableFunctionsMonitorRoutePrefix>monitor</DurableFunctionsMonitorRoutePrefix>   </PropertyGroup> 	<ItemGroup> 		<PackageReference Include="DurableFunctionsMonitor.DotNetBackend" Version="6.2.1" /> //...
host.json
{   "version": "2.0",   "functionTimeout": "00:10:00",   "logging": {     "logLevel": {       "default": "Warning",       "Host.Results": "Information",       "Host.Triggers.DurableTask": "Information",       "System.Net.Http.HttpClient": "Information",       "Microsoft.EntityFrameworkCore.Database.Command": "Warning",       "Function": "Information",       "PPS.MSSalesPrice.FunctionApp.Functions": "Information"     },     "applicationInsights": {       "samplingSettings": {         "isEnabled": true,         "excludedTypes": "Request"       }     }   } }
In startup.cs
        DfmEndpoint.Setup(new DfmSettings         {             DisableAuthentication = appEnvironment is { IsDev: true, IsAzureDev: false }         });
Function App config names

From Network traffic in browser I see:
/api/monitor/a/p/i/easyauth-config  - it returns 200 but userName is null
/api/monitor/a/p/i/task-hub-names - returns 401 Unauthorized
Error window shows following:

Hi @scale-tone
When accessing it directly I have this error:

/api/monitor/a/p/i/easyauth-config returns 200 and userName = null
In browser's network tab I can see this

Yes, I can confirm that my authentication settings on Function App are the same
here is the CSPROJ file
<Project Sdk="Microsoft.NET.Sdk">
	<PropertyGroup>
		<TargetFramework>net6.0</TargetFramework>
		<Nullable>enable</Nullable>
		<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
		<AzureFunctionsVersion>v4</AzureFunctionsVersion>
		<DurableFunctionsMonitorRoutePrefix>monitor</DurableFunctionsMonitorRoutePrefix>
  </PropertyGroup>
	<ItemGroup>
		<PackageReference Include="Azure.Security.KeyVault.Certificates" Version="4.4.0" />
		<PackageReference Include="DurableFunctionsMonitor.DotNetBackend" Version="6.2.1" />
		<PackageReference Include="EFCore.BulkExtensions" Version="6.6.2" />
		<PackageReference Include="FluentEmail.Liquid" Version="3.0.2" />
		<PackageReference Include="FluentEmail.Smtp" Version="3.0.2" />
		<PackageReference Include="ISO.4217.CurrencyCodes" Version="1.0.10" />
	    <PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
		<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.9.4" />
		<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.OpenApi" Version="1.5.0" />
		<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.Storage" Version="5.1.1" />
		<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
		<PackageReference Include="Microsoft.Extensions.Http.Polly" Version="6.0.8" />
		<PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.1.3" />
		<PackageReference Include="Microsoft.SharePointOnline.CSOM" Version="16.1.23311.12000" />
		<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
		<PackageReference Include="NSwag.ApiDescription.Client" Version="13.18.2">
			<PrivateAssets>all</PrivateAssets>
			<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
		</PackageReference>
		<PackageReference Include="SharpZipLib" Version="1.4.1" />
		<PackageReference Include="sib_api_v3_sdk" Version="3.3.0" />
  </ItemGroup>
  <ItemGroup>
    <None Update="local.settings.json">
		  <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
		</None>
		<None Update="host.json">
			<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
		</None>
	</ItemGroup>
</Project>

@yoozek , I can see from your CSPROJ-file that your local.settings.json file gets deployed to your Function App instance.
This should not be the case (as it might contain settings that are not intended for cloud env).
I suggest you add <CopyToPublishDirectory>Never</CopyToPublishDirectory> to its node to prevent that from happening. And re-deploy the app, of course.
This might not resolve the actual ussue, but it is a good idea to do so anyway.
If after that the issue is still present, can you please try to navigate and login to your DfMon instance in browser's incognito mode and see if results are the same?

Still the same, is service principal requiring any special permissions?

service principal requiring any special permissions?

Which service principal are you referring to?

Anyway, to explain the situation better.
The 401 Unauthorized response that you're observing is not produced by DfMon's code. Whenever DfMon returns 401, it always gives an empty body along with it and never produces any HTML.
The only thing that could possibly return such a response is EasyAuth module. But so far I am unable to identify the combination of settings that could result in such strange behavior of it. With the settings you've shown on your screenshot it should return 302 Found for any requests not containing a valid auth cookie and allow all other requests to proceed.
In your case, for some yet unknown reason, EasyAuth allows requests to DfMon's HTML statics and even allows requests to /a/p/i/easyauth-config, but rejects all other API calls. So surely there must be something missing in the picture.
Do you have any other HTTP-triggered functions in your project? If yes, which authentication do they use?
Can I ask you to stream logs from your Function App instance and check if any errors appear there when you navigate to DfMon?
Also can you please confirm that those failing requests contain 'Cookie' header in them?

Do you still need help on this, @yoozek ?


Developing the baseline retrieval mechanism for the Retrieve module

The similarity score between the embedding of user's query and the embedding of function descriptions can be used as the baseline retrieval mechanism.
The similarity score can be implemented based on either the inner product of the embeddings or the Euclidean distance between them.
Once the scores are computed, the top-K most similar functions needs to be returned.

To improve retrieval accuracy using embeddings, you can take the following steps:

Enhance the Representation: Use more sophisticated embedding models or domain-specific fine-tuning to ensure that the embeddings capture the nuances of the query and the descriptions more accurately.

Combine Name and Description Embeddings: Sometimes, function names alone may not capture the full context or relevance of the function. By combining the embeddings of function names and descriptions, you can get a more comprehensive representation. One approach is to concatenate or average the embeddings of the function name and description before calculating similarity.

Contextualize the Query: Consider refining the query embedding by incorporating contextual clues or keywords extracted from the function descriptions. For instance, if the query is about visualizing data, ensure the embeddings emphasize terms like "visualize," "plot," "histogram," etc.

Use Multi-modal Similarity Measures: Instead of relying solely on cosine similarity, experiment with other similarity measures that might capture more subtle differences, such as Euclidean distance or more advanced neural network-based approaches like cross-attention mechanisms.

Implement Post-Processing Filters: After retrieving the top matches based on embeddings, apply additional filters or rules that align with your understanding of the functions. For instance, if the query mentions visualization explicitly, you might prioritize functions with descriptions containing keywords related to plotting or visualization.

Re-rank Based on Task-Specific Heuristics: Finally, consider re-ranking the retrieved results based on heuristics relevant to the task. For example, if the query specifically mentions histograms, functions that explicitly mention "histogram" or related concepts in their descriptions should be ranked higher.

So if we have metrics like this, can we produce a score for similarity for each search result and show and sort on response?


Permission to copy content from readme

I'm trying to add postcss-normalize natively in create-react-app (PR). I need to add documentation around it and I'd like to reuse parts of readme text in there if that's OK with the authors/collaborators?
Also, once the PR gets merged, folks would no longer have to go through special instructions, so that part may need an update.

Yes, you have all the permission in the world. Sorry for the delay. It looks like it has been added, so I will tentatively close this.

Yes. So this section is obsolete: https://github.com/csstools/postcss-normalize/blob/master/INSTALL.md#create-react-app. Do you want me to send a PR to update the readme?


Add missing LICENSE file

The LICENSE file is missing from the repo - even though readme.md refers to it (leading to a 404 error when clicking the link). While at it, I've spelled out the licensing clause...

Danke Dir Achim.


Request to Showcase my Version !

I have changed the code and create my own version. I will feel glad if you list it in your README.md. Peace. :)
Here is the link https://hashirshoaeb.github.io/home/

Hey @hashirshoaeb , Superbly edited.. liked the idea of adding some more details to the page.. Good work.. will surely add it to readme !

Done sir (y)

Thank you sir :)


Solution for not overlapping content

Right now, when the wire-spy popup opens, it overlaps content on the bottom which may itself contain components we want to analyze. It would be nice to have some solution for this problem.

Thanks for reporting! This is now fixed https://github.com/wire-elements/wire-spy/commit/f7b2b843b611e8f7dd757c2dadec9becf5bb383b

@PhiloNL the issue i still present for me...


Explore migrating to pyproject.toml only

I believe recent versions of setuptools support packages only using pyproject.toml for packaging, including editable installs.

structlog uses Hatch with hatch-vcs which I believe is also the default recommended in in the official packaging docs for Python.

https://github.com/hynek/structlog/blob/6b06c062dbcd166bfba0da407e9af63432bedea2/pyproject.toml


Can you please add more customizable options for Left/Right drawable like image size or textview instead?

@NottSSA Sorry for the late response, but I've been very busy lately with other things. What exactly do you require? It would be helpful if you could describe your use case in more detail (e.g. do you want larger icons, text or both?). Thanks!

@TR4Android Actually, when user swipe the item its shown imageView that we can add image, But for me I want the option for "TextView" and it would be great if you can larger "imageView" too


Ask for the "PrivacyInfo.xcprivacy" required by Apple

Hi team,
Is there a plan to include the PrivacyInfo.xcprivacy manifest as required by Apple?
ref: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files
Thanks,
Hao

Hello,
Where to include this? I'm not sure I understand the question here. Can you provide more info?
Thanks


applicationautoscaling-controller generates UUID for targeted resource

Describe the bug
Either the application-autoscaler ACK or the Sagemaker API is assigning a random UUID to a targeted resource, resulting in my IAM role not being authorized to perform an action (sagemaker:DescribeEndpointConfig) on my specific named resource.
Steps to reproduce
Set up IAM policy for a role that allows the sagemaker:DescribeEndpointConfig action on a specific named resource. When the role tries to perform the sagemaker:DescribeEndpointConfig action, I get an error which I find in CloudTrail:
User: arn:aws:sts::4006xxxx5920:assumed-role/gaip-sagemaker-auto-scaling/kiam-kiam is not authorized to perform:
sagemaker:DescribeEndpointConfig on resource: arn:aws:sagemaker:us-east-1:4006xxxx5920:endpoint-config/7f4e1944-1817
4891-9bef-e055a90787a4 because no identity-based policy allows the sagemaker:DescribeEndpointConfig action

It looks like either the ACK or Sagemaker API is assigning a random UUID to the endpoint-config resource, and my policy cannot find our specific named resource, since we will not know this UUID in advance, nor are we able to use a wildcard (company policy). Is there a reason why this UUID is getting assigned instead of the actual resource? If I cannot use a wildcard to name my resource that will use this action, how would I be able to grant permission for our endpoint to perform sagemaker:DescribeEndpointConfig?
Expected outcome
The targeted resource should have the correct name and not a random UUID, so that my IAM role will be authorized to perform the action on the resource.
Environment

Kubernetes version: Server Version: v1.25.16
Using EKS (yes/no), if so version? No
AWS service targeted (S3, RDS, etc.): Sagemaker, CloudWatch
applicationautoscaling-controller version: 1.0.14
ArgoCD
Helm

Looking at the sagemaker code, it doesn't look like the we're generating any sort of UUID, so i'm suspecting that this could be a Sagemaker CP behaviour. @aws-controllers-k8s/sagemaker-maintainer any thoughts on this?

How is the endpoint configuration being created in this case? For the endpoint configuration arn, the resource identifier should be the same as the endpoint configuration name.

I worked with AWS Support, and they were able to pinpoint the issue to the Application Auto Scaling service itself. Currently, the service uses a permissions validation check that passes a randomly generated endpoint config name to the DescribeEndpointConfig call. As this validation check does not acount for IAM policies scoping down to the resource name, it is the cause of the issue.
AWS reported that the internal team is working to fix this, but I was told the change would not be applied until the beginning of August at the earliest. Since this issue has impact on my company's business, I hope the change goes in soon. Closing this issue - thank you, all.


Convert CredentialsNDBProperty into a JsonProperty

See TODO (being removed in #434).

Turn this into a JsonProperty and overhaul the Credentials and subclass mechanics to use new_from_dict, to_dict, from_dict, etc.

Thank you for creating this issue, however, this project is deprecatedand we will only be addressing critical security issues. You can read moreabout this deprecation here.
If you need support or help using this library, we recommend that you ask yourquestion on StackOverflow.
If you still think this issue is relevant and should be addressed, pleasecomment and let us know!


Remove px-vis-data from demo.html

px-vis-data is deprecated.  Remove references to it from demo & index.html.

done


Fix same sentences

The sentence "The method would have to allocate a slice of some unknown type and share it back up the call stack" comes up twice.

Closing since the repo has moved to https://github.com/ardanlabs/gotraining-studyguide


Ability to install insitux REPL / CLI tool via npm i -g insitux

Describe the solution you'd like
I want users to be able to, with NodeJS already installed, simply do npm i -g insitux to have the language on their machine.

Upon insitux a REPL should open
insitux file.ix should run that file
insitux . or Insitux path/to/dir should run that directory of *.ix
insitux https://... should download and run Insitux via HTTPS
insitux script-name should download and run an Insitux script from a central repository
any executions with an -r switch should open the REPL after execution

Action items:
[ ] A new repository insitux/insitux-cli should be created for this CLI tool, which inherits the insitux npm package
[ ] This repository should become insitux-lang npm package, as a dependency
[ ] A new repository insitux/repo should be created for scripts to be pulled from, encouraging HTTPS-bootstrapping
[ ] insitux-cli will warn the user of initial HTTPS library loading, and the need to trust scripts
[ ] The NodeJS REPL of this repository should be simplified to JS-interop only, favouring insitux-cli

I have since changed my mind about making it a new package and repository; I shall investigate enhancing the existing Node REPL with these features, making it an ix tool.

ix opens REPL
ix . executes entry.ix in working directory
ix file.ix executes file.ix
ix i username/some-dep re-clones from a Github repository into .ix/username/some-dep
ix i [alias].ix https://... downloads a file from the internet and stores it in .ix/[alias].ix
ix r username/some-dep or ix r alias removes the dependency from .ix
(import "username/some-dep") or (import "alias" "https://...") automatically synchronously does ix i command if the dependency isn't in .ix upon invocation, then loads the entry.ix of the directory or [alias].ix
(import "file.ix") loads a file from the working directory
An ix execution with switch -r will open the REPL after execution
Also long-form ix install/remove is available


Fix typo on line 29 [README.md]

Change "Optimised" to "Optimized".

Both are accepted as far as I know.


Running cog docker on a different port / Running multiple instances of a cog container

Is it possible to run a created cog docker on a different port than 5000. I want to know if I can run multiple instances of the created docker on different ports for handling multiple parallel requests based on the transactions per second in production.
I checked documentation for info regarding this but I didnt find it, I read a few times, sorry if I missed something while reading.
Thanks for your reply in advance!

Hello @programmeddeath1! You can indeed, if you're running the containers with docker run directly.
[With the example on this page], the first port number in the -p option is the port exposed on your machine. So you can run multiple of them like this:
docker run -d -p 5000:5000 ...
docker run -d -p 5001:5000 ...
docker run -d -p 5002:5000 ...

And so on.
Out of interest, what kind of model are you deploying and how are you deploying it? Is it all on a single machine and you're manually running these docker run commands?

Hi @bfirsh  sorry for not mentioning this while raising the question before, i raised it in a hurry without context.
I had ran this before directly using docker run -d -p 5001:5001 container_name, but it is still hosting it on port 5000. the tcp port on the docker shows 5000/tcp. I even tried different ports 6000:6000

This is what I found weird and hence raised this issue. Whatever port i gave, the cog container mapped it to 5000 port and the log shows uvicorn running on http://<IP_ADDRESS>:5000

Its a zeroshot transformer model that I am deploying to a single aws machine. Since I am running on a non-GPU server, i am running  parallel instances to serve multiple requests at a time.
For now I am simply testing this setup and its feasibility. In production mostly the docker runs  and deployment will be triggered through scripts.

Thank you that was it. I was running the container  on a different port too which was causing the problem.


[Feature Request] Maps and GameMode enums

   public enum GameMaps : byte
    {
        None = 0,

        Azagor = 1,
        Basra = 2,
        Contruction = 3,
        District = 4,
        DustyDew = 5,
        Equardovo = 6,
        Frugis = 7,
        Isle = 8,
        Lonovo = 9,
        MultuIslands = 10,
        Namak = 11,
        OilDunes = 12,
        River = 13,
        Salhan = 14,
        SandySunset = 15,
        TensaTown = 16,
        Valley = 17,
        Wakistan = 18,
        WineParadise = 19,
        VoxelLand = 20,
    }

   public enum GameMode : byte
   {
	Null = 0,

	TDM = 1,
	AAS = 2,
	RUSH = 3,
	CONQ = 4,
	DOMI = 5,
	ELI = 6,
	INFCONQ = 7,
	FRONTLINE = 8,
	GunGameFFA = 9,
	FFA = 10,
	GunGameTeam = 11,
	SuicideRush = 12,
	CatchGame = 13,
	Infected = 14,
	CashRun = 15,
	VoxelFortify = 16,
	VoxelTrench = 17,
	CTF = 18,
   }

The reason why an enum wasn't used is that when the game updates and the enum changes, community API would no longer support it.


Cluster Provisioning v2: Support Rancher Rollback/Downgrade (Rancher app)

RKE2 needs to support both the Rancher application and etcd backup scenarios:

Backup/Restore of the Rancher application - This only affects the resources defined in the Rancher application resource set.

etcd backup/restore of the management/local RKE cluster - This only affects the management/local cluster, but not the resources in the downstream clusters.

@Jono-SUSE-Rancher , is this to support base Rancher backup/restore when it's installed on RKE2 (without any downstream clusters)? I would think it's already supported by existing backup/restore configuration as it's unlikely to be affected by which type of k8s cluster Rancher is deployed to. Could you please clarify?

This is to support being able to use backup/restore and expect the new clusters to be backed up and restored.
Use cases include:
Backup and restore Rancher with newly provisioned RKE2 and RKE1 clusters - Migrate Rancher 2.6 from 1 k8s cluster to another with a couple of downstream clusters
Backup 2.5 and upgrade to 2.6 and then restore Rancher to 2.5 state
Start with 2.5, upgrade to 2.6 add more clusters, backup and then restore to 2.6 on a different k8s cluster

Backup 2.5 and upgrade to 2.6 and then restore Rancher to 2.5 state

At this point, cluster-agent on downstream cluster has already been upgraded to 2.6 version. If we are going to support this use case, we might have to deal issues that came with downstream cluster too during restore.

On 2.6.0-rc8
Verified these usecases
using backup restore latest charts verified

Upgrade from 2.5.9 to 2.6.0-rc8 and rollback to 2.5.9 in same cluster
Upgrade from 2.5.9 to 2.6.0-rc8 and rollback to 2.5.9 in a new RKE1 local cluster
Upgrade from 2.5.9 to 2.6.0-rc8 and take backup b1. Deploy RKE2 cluster. Restore to b1
Backup and restore in 2.6.0-rc8


Fix 'docket' typo in documentation

Hello, @Shamus03! This is your first Pull Request that will be reviewed by Ebert, an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its review page. Please check our documentation for more information.

Thanks! 👍


Failed: TypeError: Cannot read property 'parseArgs' of undefined

blessc style.css
Failed: TypeError: Cannot read property 'parseArgs' of undefined
TypeError: Cannot read property 'parseArgs' of undefined
at parseCliArgs (/usr/local/lib/node_modules/bless/lib/parse-cli-args.js:67:44)
at cliExeute (/usr/local/lib/node_modules/bless/lib/cli.js:29:42)
at Object. (/usr/local/lib/node_modules/bless/bin/blessc:7:1)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:430:10)
at startup (node.js:141:18)
at node.js:1003:3

The website is outdated.
You must run the following commands:
$ blessc count style.css to check your file
or
$ blessc chunk style.css to split your file into chunks

Hi,
I have use this command but not working, thrown error
example:-
lessc custom-bootstrapadmin.less | blessc chunk  ../../css/appV2admin.css
Can you please help me out.

@tyaginaitik You're trying to pipe the output of lessc to blessc, and I think bless requires a filename as a parameter instead of reading from STDIN. Run this as two commands:
lessc custom-bootstrapadmin.less && blessc chunk custom-bootstrapadmin.css


Adding a replication controller for all monitoring pods

Removed auth for Grafana to facilitate usage via service proxy on the api-server.
Added a grafana service
Removed elasticsearch dependency for monitoring - faster startup times.
This time 'monitoring.sh' has been updated unlike #3489
Fixes #3558, #2408

cc @zmerlynn

Did you explicitly check with the GKE provider? The GCE provider was a failure, the GKE provider outright hung for some reason.

@zmerlynn: Did you test this PR or are you referring to the previous failures?

I haven't tested this PR. The previous PR was failing on GKE, so I was
asking if you explicitly tested this one on the GKE provider (since it's
commonly not tested).
On Fri, Jan 16, 2015 at 10:39 AM, Vish Kannan<EMAIL_ADDRESS>wrote:

@zmerlynn https://github.com/zmerlynn: Did you test this PR or are you
referring to the previous failures?
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/pull/3570#issuecomment-70300202
.

I haven't. The failure was due to the fact that the monitoring e2e test was not updated after placing heapster pods in a replication controller.

Ran 'monitoring.sh' on GKE and it passed.

Awesome, thanks.


Use DisplayManagerGlobal instance

Use the client instance to communicate with the DisplayManager server.
Fixes #3446

Oops, I kept the old assignment, so the change did notihng.
I amended, the real commit merged is: 9c1722f42846859866d26823a8f6cf07495ab803


Change to github.ref_name for latest flag

I've changed github.sha to github.ref_name.

github.sha points to the current commit SHA in the workflow
github.ref_name will contain the tag name of the release

This ensures the latest tag points to the same commit as the release tag, rather than potentially pointing to a different commit that triggered the workflow. This is especially important if you create releases through the GitHub UI, where you might select an older commit to create the release from.

Should we mention the label in the CONTRIBUTING? I'd say probably not... just for the sake getting bogged down.

Fine for me, but I thought SHA would work...

It does, but is ref_name safer?

Should we mention the label in the CONTRIBUTING? I'd say probably not... just for the sake getting bogged down.

Yeah I reckon not worth it

This ensures the latest tag points to the same commit as the release tag, rather than potentially pointing to a different commit that triggered the workflow. This is especially important if you create releases through the GitHub UI, where you might select an older commit to create the release from.

I think in GitHub's terminology 'commit that triggered the workflow' has a meaning which is dependent on the triggering event and for the release event GITHUB_SHA (and I assume therefore github.sha) is always the last commit in the tagged release. So I don't know that there is any risk of these being different at the point the workflow is run? But I guess there is a possibility the tag could be later changed to point to a different commit SHA in which case maybe pointing to the release tag is slightly preferable, though I would say we would probably not want to ever change release tags after the fact.

though I would say we would probably not want to ever change release tags after the fact.

Agreed


Incorrect uuidv6 implementation

RFC 4122 UUIDv6 Example: 1EC9414C-232A-6B00-B3C8-9E6BDECED846
But in this library NewV6 generates ID like: 01eee693-1887-6e10-a722-9e6bdeced846 has a prefix 0
Many UUID libraries in other languages (for example python uuid6) follow the instructions of the RFC.
For UUIDv6, RFC also mentioned

The 48 bit node SHOULD be set to a pseudo-random value however implementations MAY choose to retain the old MAC address behavior from [RFC4122], Section 4.1.6 and [RFC4122], Section 4.5. For more information on MAC address usage within UUIDs see the Section 8

The last 48bit node can set to a pseudo-random value, it maybe more useful.

I will check the first problem you report and fix it as soon as possible.
Regarding the second question , it is optional to use pseudo-randomness for the lower 48 bits of UUID1, 6. In addition, RFC recommends that you use uuidV7

您反馈的第一个问题，我会查看，有问题会第一时间修复。
对于您反馈的第二个问题，UUID1，6 低48位使用伪随机是可选的，另外RFC推荐您用uuidV7
@ygllq


[Bug]: Text block when editing a maintenance

Description of the Bug
Dear,
I have created a maintenance with markdown inside.

When I want to edit an existing deduction the back text is not large well formatted.

Expected behavior
...
Reproduction
...
Version

2.0.0 (Preview)

Information about your Device
...
Relevant log output
No response

Seems OK with incident edition.