text:
[FEATURE] Chat bot AI

Description
Adding GPT ChatBot
you have to add your own API from Chat-GPT reason API is a personal token  and I'll also add a cloumn for that in the code so you just have to paste the API and it will run for you.
I'll drop the instructions while raise a PR
& I'll add a Step to get API while raising a PR
Assign this issue to me under GSSOC'23
Screenshots
No response
🥦 Browser
Google Chrome
Checklist ✅

[X] I checked and didn't find similar issue
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (blank for no)

This sounds like an intresting issue but TBH I don't think we need this kind of features right now. So I will have to close this, Thank you so much for raising it !

repo: tamalCodes/Milan


text:
Reading Branches from TNtuples

I ran across another (small) issue.
Most of the times my data in root-files is stored in TTrees since these permit to store different datatypes into one collection. However for storing some settings (like Random-Number-Generator Seeds) I prefer to store the values in TNtuples which is similar to TTrees but only allows to store 32-bit floats.
Since the TKey of a TNtuple differs from a TTree the array() is not able to process the entries.
I added again a small file (test.root.zip) with the same data stored once in a TTree and once in a TNtuple.
It would be helpful to add support for TNtuples. In principle this should not differ much from a TTree with a TBranch containing TLeafF objects.

I have to increase the priority for this... I got already multiple requests to add this feature

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
feat: tableplus & sequelpro

Add support for Tableplus & Sequelpro on Mac to the tool

@tanc can we merge this please?

source: gharchive/pull-request

repo: tanc/lando-db-tools


text:
Feature/promotion order

Added sorting to the promotions listed on dashboard/promotions/.
Makes an ajax call and returns a block of rendered html (returning serialised promotion objects was getting very fiddly due to some of the required values being properties, not fields on the model).
A token amount of styling has been put onto the table headers (cursor changes to pointer) but I didn't know what sort of style was really required.

Can you put the javascript into the dashboard.js file?  It's not working for me at the moment but I think that's because of the existing dashboard.js raising an error.

I've moved the javascript into the dashboard.js file and made a small fix to the javascript. Tested on my local machine and it appears to work OK.

authors: codeinthehole scaryclam

repo: tangentlabs/django-oscar


text:
Command "npm run build" exited with 1 部署错误

描述遇到的问题
近期在拉取最新的仓库进行Radeploy的过程中vercel出现了报错
相应配置
blog.tohsaka.me
截图

环境

操作系统: [windows]
浏览器 [Edge]
版本 [e.g. 22]

请尝试更新版本，不确定新版中是否还有这个问题


text:
More consistent interface for converting between screen and geographic coordinates

Uses consistent types and naming for the relevant function calls. It should be obvious that these functions are the inverse of one another.

lngLatToScreenPosition returns true if the point is visible (the opposite of the old behavior). This is a more subjective point but to me it seems much more intuitive to associate a "positive" result with something being visible, e.g. the following use case seems reasonable:

if (lngLatToScreenPosition(lng, lat, &x, &y)) {
  // draw a marker on screen at (x, y)
}

screenPositionToLngLat returns true if the screen position corresponds to a geographic location (i.e. if the ray cast has a positive intersection). This is meaningful information for tilted views.

Updated with improved comments and one more commit.

Looks good to me. Merging.

One question first!

Ok, last issue resolved, should be good to go!

repo: tangrams/tangram-es


text:
Use full path instaed of relative path

Zinc is currently using relative path
https://github.com/tangrams/zinc-style/blob/gh-pages/zinc-style.yaml#L392
It will be nice to have full path, so users don't need to be on local server to run locally.

@hanbyul-here can you add more details, please?

authors: hanbyul-here nvkelso

repo: tangrams/zinc-style

license: mit

license_source: bigquery


text:
:tada: Rafael Perdigão | Teste Tecnico | Fullstack To-Do List

Para visualização em browser:

Acesse o Link:

https://para-to-dos-rafaelpermec.vercel.app

Para visualização de Repostório no Github:

Acesse o meu repositório público:

https://github.com/rafaelPermec/nextjs-fullstack-to-do-list

Para iniciar o projeto:

Após mudar para a branch deste PR em sua maquina, entre com o comando em seu terminal, para entrar no diretório principal e instalar as dependências do projeto,:
cd rafael-perdigao-teste-tecnico && npm install

Faça um arquivo .env com suas credenciais, como no exemplo:
DATABASE_URL=string
NODE_ENV=development
TOKEN_SECRET=string

DATABASE_TOKEN é a hash ou URL para subir o banco de dados no local desejado.
Existe um arquivo .env.example no root do projeto com as configurações para o teste tecnico.

Digite um dos comandos abaixo em seu terminal e vá até http://localhost:3000!
npm run start

|| ou ||

npm run dev

Execução de Testes em Cypress:
Para executar os testes apenas no terminal:
npm run test

ou
npx cypress run

Para executar os testes e vê-los rodando em uma janela de navegador:
npm run cy:open

ou
npx cypress open

Projeto já analisado e devidamente arquivado em .gitmodules
Para ver o projeto completo clique aqui!

repo: taniabulhoes/test-fullstack-developer


text:
Auto Pot

is there settings that i can set auto pot ?

As my server not giving autopot on pet, i always ran out MP on adele routine

repo: tanjeffreyz/auto-maple-resources


text:
[3.2.0][suspense][useQueryErrorResetBoundary] undefined data from useQuery when reseting in ErrorBoundary

Hello @tannerlinsley
I use latest ReactQuery with suspense.
I expect (am I wrong?) that data from useQuery is never undefined when using { suspense: true }.
This is true all the time, expect when reseting state in ErrorBoundary. It happens before any refetch happens.
It used to work (flawlessly) in latest v2 with the previous reset hook, it looks like a regression. I tried both solution from https://react-query.tanstack.com/guides/suspense , same result.
Can I be in any more help to help you help me ?
import React from "react";
import { useQuery as useReactQuery } from "react-query";

const useQuery = <T extends Signature>({
  path,
  key,
  params,
  signature,
  headers,
  enabled = true,
}: P<T>) => {
  const { data, ...debug } = useReactQuery(
    key,
    React.useCallback(() => call({ method: "GET", path, signature, params, headers }), [
      path,
      signature,
      params,
      headers,
    ]),
    {
      suspense: true,
      refetchOnMount: false,
      refetchOnReconnect: false,
      refetchOnWindowFocus: false,
      staleTime: 1000 * 60 * 30, // 30 minutes
      cacheTime: 1000 * 60 * 60, // 60 minutes
      retry: false,
      enabled,
    }
  );

  console.log(debug) // see below

  // throws here
  if (data === undefined) throw new Error("Data not supposed to be undefined with suspense true");

  return data;
};

This is the debug context I receive:
error: ApplicationError at call (http://localhost:3000/static/js/main.chunk.js:1906:36) at Object.queryFn....
errorUpdatedAt: 1
isError: true
isFetched: true
isFetchedAfterMount: false
isFetching: true
isIdle: false
isLoading: false
isLoadingError: true
isRefetchError: false
isStale: true
isSuccess: false
status: "error"

I am the one throwing the ApplicationError in the rest fetch adapter below.
I use concurrent-mode.

data is undefined because the status is "error". But as far as I'm aware, with suspense, your query should never result in "error" state (and you also shouldn't get an error back) because the ErrorBoundary should handle that.
can you maybe create a codesandbox example reproducing the behaviour? Also, can you try out v3.3 (released yesterday)

Behaviour didn't change with v3.3 in my project. I also tried with stock React and no concurrent-mode. Same.
Here is the relevant codesandbox from the docs:
https://codesandbox.io/s/github/tannerlinsley/react-query/tree/master/examples/suspense?file=/src/queries.js
Uncomment the count++ code, run a fetch, remove the nagging error overlay, press the ErrorBoundary retry button, and boom:

This does look like an unwanted regression.

authors: TkDodo bbenezech

repo: tannerlinsley/react-query


text:
Scroll restoration breaks when SSR + InfiniteQuery

Describe the bug
Cached data is not restored and scroll position is reset when a user return to their previously visited page.
I am not sure whether this has something to do with React Query or not, but since it did promised "it just works" I was hoping this should just had work out of the box. Or did I made a mistake in the code?
Here's a sandbox describing the issue: https://codesandbox.io/s/elated-water-x7hwx
To Reproduce
Steps to reproduce the behavior:

Scroll down
Wait for more content to be populated.
Hit next page.
Go back.
Scroll position at the top and cached data is lost.

If you disable getServerSideProps() block entirely, and perform the same steps, scroll restoration works as intended and the cache data remains intact.
Expected behavior
After returning to the page which is index, the scroll should stay where it was and the loaded content should remain there.
Desktop (please complete the following information):

OS: [e.g. iOS] MacOS
Browser: [e.g. chrome, safari] Chrome
Version: [e.g. 22] Version 87.0.4280.88 (Official Build) (arm64)

My current workaround is to use initialData instead of hydration to prevent the cache data from clearing up.
As for the scrolling state, this is a little tricky to implement, but I end up storing the scroll position in the app's global state. I wish I could store this figure with useQuery? Or better yet an out of the box experience without needing to do any of this.
https://codesandbox.io/s/hardcore-pond-zjbwj?file=/pages/index.js:1938-1949

My current workaround is to use initialData instead of hydration to prevent the cache data from clearing up.
As for the scrolling state, this is a little tricky to implement, but I end up storing the scroll position in the app's global state. I wish I could store this figure with useQuery? Or better yet an out of the box experience without needing to do any of this.
https://codesandbox.io/s/hardcore-pond-zjbwj?file=/pages/index.js:1938-1949

I'm not sure if this is the issue, as I haven't looked into it much yet, but It's important to note that codesandbox's routing doesn't really work the same way as a browsers, and thus it's not suitable to test scroll restoration. You must deploy it to a regular browser env (not even the preview in new window option works)

I'm not sure if this is the issue, as I haven't looked into it much yet, but It's important to note that codesandbox's routing doesn't really work the same way as a browsers, and thus it's not suitable to test scroll restoration. You must deploy it to a regular browser env (not even the preview in new window option works)

I'm not sure if this is the issue, as I haven't looked into it much yet, but It's important to note that codesandbox's routing doesn't really work the same way as a browsers, and thus it's not suitable to test scroll restoration. You must deploy it to a regular browser env (not even the preview in new window option works)

I can confirm this is happening on my actual environment not just in the sandbox.

I'm not sure if this is the issue, as I haven't looked into it much yet, but It's important to note that codesandbox's routing doesn't really work the same way as a browsers, and thus it's not suitable to test scroll restoration. You must deploy it to a regular browser env (not even the preview in new window option works)

I can confirm this is happening on my actual environment not just in the sandbox.

Yeap the scrolling restoration doesnt work neither.

Yeap the scrolling restoration doesnt work neither.

I was having this issue as well. The infinite query seems to be reset and only the first page is loaded, when using prefetchInfiniteQuery in Next.js SSR. I ended up giving up on infinite queries and opted for pagination because of this issue and #1458

I was having this issue as well. The infinite query seems to be reset and only the first page is loaded, when using prefetchInfiniteQuery in Next.js SSR. I ended up giving up on infinite queries and opted for pagination because of this issue and #1458

@tannerlinsley
Sorry to bug you but I'm on my edge to get this problem resolved, could you provide some pointers?

@tannerlinsley
Sorry to bug you but I'm on my edge to get this problem resolved, could you provide some pointers?

https://github.com/tannerlinsley/react-query/blob/ead2e5dd5237f3d004b66316b5f36af718286d2d/src/hydration/hydration.ts#L145-L151
I've isolated the issue to this optimization strategy. The cached data doesnt get cleared after I commented off these codes.
However, I still cant get scroll restoration to work properly, it's a lot of harder than I thought.

https://github.com/tannerlinsley/react-query/blob/ead2e5dd5237f3d004b66316b5f36af718286d2d/src/hydration/hydration.ts#L145-L151
I've isolated the issue to this optimization strategy. The cached data doesnt get cleared after I commented off these codes.
However, I still cant get scroll restoration to work properly, it's a lot of harder than I thought.

It looks like query.setState will replace all the cached page entirely, what can we do here?

This is correct. If you hydrate a query with newer data than what is already in the cache, that entire querys data gets replaced with the new data. I think this is the only safe way to handle this scenario, since otherwise you would have a query with parts old and parts new data.
I'm guessing getServerSideProps in Next gets triggered even on back button? (Can't verify myself right now)
I'm not sure if this can be fixed entirely inside of RQ (but not sure it can't either), but as a fix(/workaround) it seems it should be possible in Next to avoid passing any new data to the Hydrate component if the navigation event was a back/pop?

I'm guessing getServerSideProps in Next gets triggered even on back button? (Can't verify myself right now)

Yep, it gets triggered.

I'm not sure if this can be fixed entirely inside of RQ (but not sure it can't either), but as a fix(/workaround) it seems it should be possible in Next to avoid passing any new data to the Hydrate component if the navigation event was a back/pop?
Update: From RQs perspective, we don't know anything about navigations since we aren't integrated at the router layer. We only know that "please hydrate this new data for me into the cache". Even if we can't "fix" this in RQ, it would be good to document this pattern in the docs and/or an example.

I had to use initialData as the workaround as it is stands, it works flawlessly. IMO, I think we should take a look at what initialData is doing and lend its logic to hydration which is not to disregard the existing state.
This might be a naive solution:
if (isInfiniteQuery === false) { // <----- I added this
    if (query) {
      if (query.state.dataUpdatedAt < dehydratedQuery.state.dataUpdatedAt) {
        query.setState(dehydratedQuery.state)
      }
      return
    }
}

The way initialData handles this is simply to never update the cache after the initial seed, so I do think there is a flaw in that solution in that you can't ever get subsequent data from getServerSideProps into the cache:

Go to the page with an infiniteQuery and show more
Navigate to a new page
Navigate to the page with the infiniteQuery again (not using the back button)

If data was updated on the server between 1 and 3, I don't think that will be reflected on the page even though it was fetched in the getServerSideProps. The reason for this is that initialData will only be used if there is no current data in the cache, so even if we fetched new data in getServerSideProps, that wont be used. (If staleTime has passed, that data might get fetched again on the client however, but that means double fetching)
Another way to solve this on the application level is to encode this specific application state as a query parameter in the url. That way you can know how much to fetch in getServerSideProps, but I know that isn't always a popular thing to add.

I use ReactQuery normal in Nextjs so no serverSideProps or something and I simply can't get scroll-restoration to work, has anyone a working example or an idea of what I can do to make it work in Nextjs?

I am having the same problem. I fetch the data with useInfiniteQuery and when I change the route to another page  scroll position does not persist and also I lose cached data. I don't use getStaticProps or getServerSideProps .

This specific issue is about server side rendering and infinite query, so if you are not using getServerSideProps, getStaticProps or getInitialProps your issue is probably unrelated to this one (but similar) and I encourage you to open a separate issue with a reproduction. If you mean you are using getInitialProps that works the same as I described above however so in that case it is related (but could have other solutions).
Do note that what you describe can happen if you put <QueryClientProvider> directly in your page instead of in _app.jsx, since that blows away the cache on each page navigation, so please verify that's not the case before opening a new issue. 😄

I am getting the same issue than @ivanjeremic  using getStaticProps when navigate back. I will try with initialData.
@Ephem could we have an option to have threshold for dataUpdatedAt to avoid setState ?

@b-barry Did I understand you correctly that it always works in prod, but you have weird behaviours in dev?
To be clear, React Query does not manage scroll position in any active way. The reason scroll position usually works with React Query is that because it keeps data cached it can show the previous page immediately which lets the built in browser scroll restoration work as intended.

authors: Ephem b-barry danbeneventano ivanjeremic nubpro tannerlinsley uguremirmustafa


text:
Relax contraints on field name

Is your feature request related to a problem? Please describe.
Currently tantivy is very strict on field name as shown by the regex used to validate field names:
r#"^[_a-zA-Z][_\-a-zA-Z0-9]*$"#
This can be annoying for users to have this restriction. Major database accepts utf8 string and Lucene too.
Describe the solution you'd like
I suggest to allow any string as field names.
I don't expect this to be an issue to tantivy as the real identifier for a field is the id.

I think lucene allows anything, can you confirm?

Yes there is no restriction as you see here.
It raises some issues when you need to parse, lucene resolves that with using backslash to escape special characters using in the query syntax:
Escaping Special Characters
Lucene supports escaping special characters that are part of the query syntax. The current list special characters are

+ - && || ! ( ) { } [ ] ^ " ~ * ? : \ /

To escape these character use the \ before the character. For example to search for (1+1):2 use the query:

\(1\+1\)\:2

To keep things simple, I will only authorize the "." as this is the only need for Quickwit for now and update the query parser so that it supports that.
This sounds like a dumb request but don't want to distract tantivy task force on that now.

Ok tantivy has to support unicode ;)

authors: fmassot fulmicoton

repo: tantivy-search/tantivy


text:
Compatibility with older Python versions

Hi, thank you for the great work!
I am now integrating this toolkit to ESPnet through this PR so that many ESPnet users can do pseudo MOS evaluations.
SpeechMOS depends on Python>=3.10, but I think it is desirable to be able to use older python versions if possible.
My understanding is that one of the dependencies in python 3.10 comes from this part, because I get the following error when running SpeechMOS with Python 3.8.
from speechmos.utmos22.strong.model import UTMOS22Strong # pylint: disable=wrong-import-position
File ".cache/torch/hub/tarepan_SpeechMOS_v1.1.0/speechmos/utmos22/strong/model.py", line 7, in <module>
from ..fairseq_alt import Wav2Vec2Model
File ".cache/torch/hub/tarepan_SpeechMOS_v1.1.0/speechmos/utmos22/fairseq_alt.py", line 43, in <module>
class ConvFeatureExtractionModel(nn.Module):
File ".cache/torch/hub/tarepan_SpeechMOS_v1.1.0/speechmos/utmos22/fairseq_alt.py", line 46, in ConvFeatureExtractionModel
def __init__(self, conv_layers: list[tuple[int, int, int]]):
TypeError: 'type' object is not subscriptable

This can be avoid by using typing.List, instead of list as discussed here.
Therefore, could you please consider releasing it on torch.hub so that it can be used with older Python versions?
Thank you again for releasing the great toolkit.

I am grad to hear that this repository will contribute to great ESPNet!
New feature "old Python support" sounds good.
If someone make a pull request, I gladly review it.
Do you have motivation to make the pull request?
Currently SpeechMOS do not implement CI workflow for public pull request.
If you have motivation to make the 'Py3.8 mode' PR, I will quickly prepare the CI workflow, then notify you to 'now we can make a pull request!'

Thank you for the quick response!
Then let me send a PR if it's ready :)

We are ready, @Takaaki-Saeki 👍
Below is a list of repository-wide (not model part) modification points for 'Py3.8 mode'.
Please include below mods.

Dockerfile: Change 3.10 in FROM to 3.8 → Enable development in Python3.8 automatically
test.yml: Enable comment-outed test-py308 job → CI check for Python3.8 automatically run
README.md: Change version guide requires Python=>3.10 to requires Python=>3.8 → Loosen Python version restriction
pyproject.toml: Change "^3.10" of python to `"^3.8" → Loosen Python version restriction

Thanks! I will send a PR with changes as you suggested.
BTW, I have released a model on my forked repo. The following runs successfully with python 3.8.
predictor = torch.hub.load("Takaaki-Saeki/SpeechMOS:v1.1.0", "utmos22_strong")

authors: Takaaki-Saeki tarepan

repo: tarepan/SpeechMOS


text:
Add downstream integration test for hercules-ci/gitignore

In https://github.com/hercules-ci/gitignore.nix/issues/32 we noticed that using readDir (and searching for .gitignore files outside of the project directory) would watch way to many directories recursively. https://github.com/hercules-ci/gitignore.nix/pull/33 should fix that, but we have to confirm.

More context: https://github.com/target/lorri/issues/211#issuecomment-553720336, https://github.com/target/lorri/issues/211#issuecomment-555026353

I haven't been able to repro with a simplistic setup.
Setup
# default.nix
{ pkgs ? import <nixpkgs> {} }:
let
  gitignoreSrc = pkgs.fetchFromGitHub {
    owner = "hercules-ci";
    repo = "gitignore";
    # rev = "f9e996052b5af4032fe6150bba4a6fe4f7b9d698";
    # sha256 = "sha256:0jrh5ghisaqdd0vldbywags20m2cxpkbbk5jjjmwaw0gr8nhsafv";
    rev = "f9525682432c116edfb390482dcc7f72ae3df64b"; # before "don't readDir the store"
    sha256 = "sha256:1iy502qi8ljj7c31vsjb75vnrbfkpc2pnfq85j33zvnr2li3kb4i";
  };
  inherit (import gitignoreSrc { inherit (pkgs) lib; }) gitignoreSource;
in
  pkgs.stdenv.mkDerivation {
    name = "hercules-gitignore-test";
    src = gitignoreSource ./.;
  }

# Makefile
install:
        echo 'Done'

and shell.nix is a soft link to default.nix.
As a sanity check, this succeeds:
$ nix-build .

Result
In neither case did lorri start watching / or /nix or /nix/store.

straceing this, it looks to me like the readDirs stop at the Git repo boundary in either case.

authors: Profpatsch curiousleo

repo: target/lorri


text:
Fixes error in SCRIMP++ matrix profile indices.

SCRIMP++ returns matrix profile indices that are invalid (greater than the profile length). This fixes this issue.

@tylerwmarrs can you review this? Not sure if there's an ongoing discussion anywhere.

Refers to issue #62.

repo: target/matrixprofile-ts


text:
update dependencies

Breaking changes to tui-rs library for this big dependency update

@miraclx would you be able to help test this branch and confirm there are no visual differences between it and 0.11.0?
I'm many versions behind on the tui library I'm using, and updating to the latest version had some pretty big API breakages that caused me to have to change how certain things are rendered. Everything looks good on my end, but I'd appreciate another set of eyes / different terminals to really confirm.

Hm, assuming we even use different terminals or have different perspectives on how things should look 😅 (hint: I doubt it)
I'm testing it anyways

I'm just wanting to make sure things look near identical with the changes made. I've tested with Dark and Light themes using windows terminal and alacritty on linux.
It appears I'm now setting the text to "White" instead of the default foreground color of the users terminal. I need to switch this back. Otherwise things look good.

LGTM;
I did notice the whites (color) in group (or block?) headers were in a sense, "brighter" in this version, I haven't peered through the code yet but this is very trivial, so in a sense, it's pretty good.

In ref to ~1

0.11.0
#68

Yeah, I'm torn on if I should keep it white or foreground color. I think I'll keep it as foreground, but when I eventually add theming, I'll have a distinct color for text?

I agree with that, and having those theming options is the literal best.
+1 from me on this PR

Awesome! Now that this is done, I'll be working on theme support next

authors: miraclx tarkah

repo: tarkah/tickrs


text:
Restoring multiple index mappings has odd behavior

In order to help us troubleshoot issues with this project, you must provide the following details:

ElasticDump version: 4.3
Elasticsearch version: 5.6.5
Node.js version (note that nodejs v8+ is required for this tool): 8.12

I'm using the latest Docker build.
Backup and restore of ES mappings does not have parity among backup vs restore.
For backup, you can specify just the ES URL as the input, i.e. http://localhost:9200 and if the output is a JSON file, you'll get an object where the top level keys are the name of the indices.
However, when restoring from json to ES you must provide an index as the output. This is where things get weird. The resulting index you restored to, will contain mappings for EVERY doc type that was in the backup json file, regardless of which indices various types belonged to.
So I created 2 indices and 2 unique mappings, one for each index:
In [2]: es = elasticsearch.Elasticsearch(port=9201)

In [4]: es.indices.create('indi-1')
Out[4]: {'acknowledged': True, 'shards_acknowledged': True, 'index': 'indi-1'}

In [5]: es.indices.create('indi-2')
Out[5]: {'acknowledged': True, 'shards_acknowledged': True, 'index': 'indi-2'}

In [6]: mapping1 = {
   ...:     'properties': {
   ...:         'ip': {'type': 'ip'}
   ...:         }}

In [7]: mapping1
Out[7]: {'properties': {'ip': {'type': 'ip'}}}

In [8]: es.indices.put_mapping('doc', mapping1, index='indi-1')
Out[8]: {'acknowledged': True}

In [9]: mapping2 = {'properties': {'another-ip': {'type': 'ip'}}}

In [10]: es.indices.put_mapping('doc', mapping2, index='indi-2')
Out[10]: {'acknowledged': True}

Then I backed up all indices, which is "normal" functionality:
docker run -it --net my_net -v $(pwd)/es_dump_test:/tmp/es_dump_test/ taskrabbit/elasticsearch-dump --input=http://elastic2:9200 --output=/tmp/es_dump_test/mappings.json --type mapping
And here's my mappings:
{"indi-2":{"mappings":{"doc":{"properties":{"another-ip":{"type":"ip"}}}}},"indi-1":{"mappings":{"doc":{"properties":{"ip":{"type":"ip"}}}}}}

Then, flush ES...
So now, I cannot restore these mappings in the same way I backed them up.
docker run -it --net my_net -v $(pwd)/es_dump_test:/tmp/es_dump_test/ taskrabbit/elasticsearch-dump --output=http://elastic2:9200 --input=/tmp/es_dump_test/mappings.json --type mapping

Wed, 06 Mar 2019 22:30:42 GMT | starting dump
Wed, 06 Mar 2019 22:30:42 GMT | got 1 objects from source file (offset: 0)
Wed, 06 Mar 2019 22:30:42 GMT | Error Emitted => {"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: mapping type is missing;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: mapping type is missing;"}
Wed, 06 Mar 2019 22:30:42 GMT | Total Writes: 0
Wed, 06 Mar 2019 22:30:42 GMT | dump ended with error (set phase)  => [object Object]

Ok, so I want to restore my first index...
docker run -it --net my_net -v $(pwd)/es_dump_test:/tmp/es_dump_test/ taskrabbit/elasticsearch-dump --output=http://elastic2:9200/indi-1 --input=/tmp/es_dump_test/mappings.json --type mapping
When I dump my mappings...
{
    "indi-1": {
        "mappings": {
            "doc": {
                "properties": {
                    "another-ip": {
                        "type": "ip"
                    },
                    "ip": {
                        "type": "ip"
                    }
                }
            }
        }
    }
}

Both field mappings for the same doc appear in this index. Had I chosen different doc names, there would be two types of docs under "mappings".

The problem is you're doing a global dump of mappings (multiple index mapping backup), then trying to do a specific index restoration. It wasn't designed for that, hence why you're having issues.

There isn’t a global restore option. So what’s the point of a global
backup? And even then, you’re ignoring the fact that doing an
index-specific restore off of a global backup still applies every mapping
for every doc type for every index to the one specific index named in the
restore.

It would because it’s iterating the global mapping over a single index.
feel free to submit a PR

authors: ferronrsmith johntmyers

repo: taskrabbit/elasticsearch-dump


text:
[Bug]: Oldest review on top

What happened?

The oldest review is on top.

What did you expect to happen?

in my opinion is the newest review always on top.

Version
3.5.x
What browser are you seeing the problem on?
Firefox, Chrome, Safari
Relevant log output
No response

This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue. If this issue is critical to your business, consider the Dedicated Support Service where a Service Level Agreement is offered.

repo: tastyigniter/TastyIgniter


text:
🛑 Lavalink Backup is down

In beebb53, Lavalink Backup (https://lava2.chirailava.tk/metrics) was down:

HTTP code: 429
Response time: 6449 ms

Resolved: Lavalink Backup is back up in 894bf5c.

repo: tathaha/bruhuptime


text:
[bug] Sveltekit + Tauri v2 beta automatically closing without any errors

Describe the bug
When I'm developping my Sveltekit + Tauri app and updating a component that's trigger the Vite reload. Tauri just close randomly without any errors, warning or any text.
Reproduction
Generate a Sveltekit + Tauri beta project. (First Sveltekit then Tauri, not from create-tauri-app)
Create a svelte component.
Update it multiples times to trigger the Vite reload each time
Watch Tauri closing after two or three attempts.
Expected behavior
The app should not close at any point.
Full tauri info output
[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 121.0.2277.106
    ✔ MSVC:
        - Visual Studio Build Tools�2019
        - Visual Studio Community 2022
    ✔ rustc: 1.75.0 (82e1608df 2023-12-21)
    ✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.10.0
    - npm: 10.2.5
    - bun: 1.0.18

[-] Packages
    - tauri [RUST]: 2.0.0-beta.2
    - tauri-build [RUST]: 2.0.0-beta.1
    - wry [RUST]: 0.35.2
    - tao [RUST]: 0.25.0
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 2.0.0-beta.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../build
    - devUrl: http://localhost:5173/
    - framework: Svelte
    - bundler: Vite

Stack trace
No response
Additional context
No response

Seems to be a mouse event. When I'm hovering a button, the cursor change rapidly between the base cursor and pointer cursor and after 5-10 secondes my app just close.

Should be fixed by https://github.com/tauri-apps/tauri/pull/8790 then

authors: Maxensimon amrbashir

repo: tauri-apps/tauri


text:
[bug] MSI bundling fails if package.productName contains a period.

Describe the bug
If the package.productName value contains a period (eg. app.name), the MSI bundling fails with this error:
Finished release [optimized] target(s) in 16.39s
        Info Target: x64
     Running candle for "main.wxs"
     Running light to produce D:\path\to\project\src-tauri\target\release\bundle\msi\app.name_0.0.0_x64_en-US.msi
       Error failed to bundle project: error running light.exe

(BTW, since it's my first interaction here, I wanna say I really love the Tauri project. Thanks to all the contributors and maintainers who work on it!)
Reproduction
I'm using Windows 10.

Set the package.productName field to contain a period. eg "app.name".
Set tauri.bundle.active to true.
Set tauri.bundle.targets to "all"
Run npm run tauri build in the terminal.

Expected behavior
The build should not throw any errors even at the bundling stage, and the MSI file should be created successfully.
Full tauri info output
[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 123.0.2420.97
    ✔ MSVC:
        - Visual Studio Community 2019
        - Visual Studio Community 2022
    ✔ rustc: 1.70.0 (90c541806 2023-05-31)
    ✔ cargo: 1.70.0 (ec8a8a0ca 2023-04-25)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 21.6.1
    - pnpm: 8.6.6
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 1.5.4
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.7
    - tao [RUST]: 0.16.6
    - @tauri-apps/api [NPM]: 1.5.3
    - @tauri-apps/cli [NPM]: 1.5.9 (outdated, latest: 1.5.11)

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace
No response
Additional context
No response

While i prefer your write up, i will still close it as a duplicate of https://github.com/tauri-apps/tauri/issues/8848. Thanks for the report!

Actually, can you post the logs you get via
npm run tauri build -- --verbose

And if it complains about a .wxs file, ideally include that file too.

Sorry, somehow missed the first issue. Here is the log:
D:\code\rust\tauri\Clergy-Catalog>npm run tauri build -- --verbose

> clergy-catalog@0.0.0 tauri
> tauri build --verbose

       Debug [globset] built glob set; 0 literals, 2 basenames, 0 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 0 regexes
       Debug [globset] glob converted to regex: Glob { glob: "**/npm-debug.log*", re: "(?-u)^(?:/?|.*/)npm\\-debug\\.log[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([RecursivePrefix, Literal('n'), Literal('p'), Literal('m'), Literal('-'), Literal('d'), Literal('e'), Literal('b'), Literal('u'), Literal('g'), Literal('.'), Literal('l'), Literal('o'), Literal('g'), ZeroOrMore]) }
       Debug [globset] glob converted to regex: Glob { glob: "**/yarn-debug.log*", re: "(?-u)^(?:/?|.*/)yarn\\-debug\\.log[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([RecursivePrefix, Literal('y'), Literal('a'), Literal('r'), Literal('n'), Literal('-'), Literal('d'), Literal('e'), Literal('b'), Literal('u'), Literal('g'), Literal('.'), Literal('l'), Literal('o'), Literal('g'), ZeroOrMore]) }
       Debug [globset] glob converted to regex: Glob { glob: "**/yarn-error.log*", re: "(?-u)^(?:/?|.*/)yarn\\-error\\.log[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([RecursivePrefix, Literal('y'), Literal('a'), Literal('r'), Literal('n'), Literal('-'), Literal('e'), Literal('r'), Literal('r'), Literal('o'), Literal('r'), Literal('.'), Literal('l'), Literal('o'), Literal('g'), ZeroOrMore]) }
       Debug [globset] glob converted to regex: Glob { glob: "**/pnpm-debug.log*", re: "(?-u)^(?:/?|.*/)pnpm\\-debug\\.log[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([RecursivePrefix, Literal('p'), Literal('n'), Literal('p'), Literal('m'), Literal('-'), Literal('d'), Literal('e'), Literal('b'), Literal('u'), Literal('g'), Literal('.'), Literal('l'), Literal('o'), Literal('g'), ZeroOrMore]) }
       Debug [globset] glob converted to regex: Glob { glob: "**/lerna-debug.log*", re: "(?-u)^(?:/?|.*/)lerna\\-debug\\.log[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator:
true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([RecursivePrefix, Literal('l'), Literal('e'), Literal('r'), Literal('n'), Literal('a'), Literal('-'), Literal('d'), Literal('e'), Literal('b'), Literal('u'), Literal('g'), Literal('.'), Literal('l'), Literal('o'), Literal('g'), ZeroOrMore]) }
       Debug [globset] glob converted to regex: Glob { glob: ".vscode/*", re: "(?-u)^\\.vscode/[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([Literal('.'), Literal('v'), Literal('s'), Literal('c'), Literal('o'), Literal('d'), Literal('e'), Literal('/'), ZeroOrMore]) }
       Debug [globset] glob converted to regex: Glob { glob: "**/*.ntvs*", re: "(?-u)^(?:/?|.*/)[^/]*\\.ntvs[^/]*$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([RecursivePrefix, ZeroOrMore, Literal('.'), Literal('n'), Literal('t'), Literal('v'), Literal('s'), ZeroOrMore]) }
       Debug [globset] glob converted to regex: Glob { glob: "**/*.sw?", re: "(?-u)^(?:/?|.*/)[^/]*\\.sw[^/]$", opts: GlobOptions { case_insensitive: false, literal_separator: true, backslash_escape: true, empty_alternates: false }, tokens: Tokens([RecursivePrefix, ZeroOrMore, Literal('.'), Literal('s'), Literal('w'), Any]) }
       Debug [globset] built glob set; 1 literals, 6 basenames, 5 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 8 regexes
       Debug [globset] built glob set; 1 literals, 0 basenames, 0 extensions, 0 prefixes, 0 suffixes, 0 required extensions, 0 regexes
       Debug [ignore::walk] ignoring D:\code\rust\tauri\Clergy-Catalog\src-tauri\.gitignore: Ignore(IgnoreMatch(Hidden))
       Debug [ignore::walk] ignoring D:\code\rust\tauri\Clergy-Catalog\src-tauri\target: Ignore(IgnoreMatch(Gitignore(Glob { from: Some("D:\\code\\rust\\tauri\\Clergy-Catalog\\src-tauri\\.gitignore"), original: "/target/", actual: "target", is_whitelist: false, is_only_dir: true })))
     Running [tauri_cli::build] beforeBuildCommand `npm run build`
       Debug [tauri_cli::build] Setting environment for hook {"TAURI_PLATFORM_TYPE": "Windows_NT", "TAURI_FAMILY": "windows", "TAURI_PLATFORM_VERSION": "10.0.19045", "TAURI_TARGET_TRIPLE": "x86_64-pc-windows-msvc", "TAURI_ARCH": "x86_64", "TAURI_PLATFORM": "windows"}
     Running [tauri_cli] Command `cmd  /S /C npm run build`

> clergy-catalog@0.0.0 build
> vite build

vite v5.0.12 building for production...
✓ 1234 modules transformed.
dist/index.html                  0.40 kB │ gzip:   0.28 kB
dist/assets/index-L7E5RiIx.js  585.13 kB │ gzip: 182.44 kB

(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 5.19s
     Running [tauri_cli] Command `cargo  build --features custom-protocol --release`
   Compiling clergy-catalog v0.0.0 (D:\code\rust\tauri\Clergy-Catalog\src-tauri)
    Finished release [optimized] target(s) in 17.26s
        Info [tauri_bundler::bundle::windows::msi::wix] Target: x64
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("upgrade_code")], "upgrade_code")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("manufacturer")], "manufacturer")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("version")], "version")))
       Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("allow_downgrades"), value: Context(Bool(true), ["allow_downgrades"]) }], hash: {}
       Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("banner_path"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("dialog_image_path"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("license"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("icon_path")], "icon_path")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("manufacturer")], "manufacturer")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering helper: "unless", params: [PathAndJson { relative_path: Some("license"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("manufacturer")], "manufacturer")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("manufacturer")], "manufacturer")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("path_component_guid")], "path_component_guid")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("app_exe_source")], "app_exe_source")))
       Debug [handlebars::render] Rendering helper: "each", params: [PathAndJson { relative_path: Some("binaries"), value: Context(Array [], ["binaries"]) }], hash: {}
       Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("enable_elevated_update_task"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("resources")], "resources")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("manufacturer")], "manufacturer")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("bundle_id")], "bundle_id")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("manufacturer")], "manufacturer")))
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("product_name")], "product_name")))
       Debug [handlebars::render] Rendering helper: "each", params: [PathAndJson { relative_path: Some("merge_modules"), value: Context(Array [], ["merge_modules"]) }], hash: {}
       Debug [handlebars::render] Rendering helper: "each", params: [PathAndJson { relative_path: Some("resource_file_ids"), value: Context(Array [], ["resource_file_ids"]) }], hash: {}
       Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("enable_elevated_update_task"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering helper: "each", params: [PathAndJson { relative_path: Some("binaries"), value: Context(Array [], ["binaries"]) }], hash: {}
       Debug [handlebars::render] Rendering helper: "each", params: [PathAndJson { relative_path: Some("component_group_refs"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering helper: "each", params: [PathAndJson { relative_path: Some("component_refs"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering helper: "each", params: [PathAndJson { relative_path: Some("feature_group_refs"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering helper: "each", params: [PathAndJson { relative_path: Some("feature_refs"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering helper: "each", params: [PathAndJson { relative_path: Some("merge_refs"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("install_webview"), value: Context(Bool(true), ["install_webview"]) }], hash: {}
       Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("download_bootstrapper"), value: Context(Bool(true), ["download_bootstrapper"]) }], hash: {}
       Debug [handlebars::render] Rendering value: Path(Relative(([Named("webview_installer_args")], "webview_installer_args")))
       Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("webview2_bootstrapper_path"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("webview2_installer_path"), value: Missing }], hash: {}
       Debug [handlebars::render] Rendering helper: "if", params: [PathAndJson { relative_path: Some("enable_elevated_update_task"), value: Missing }], hash: {}
     Running [tauri_bundler::bundle::windows::msi::wix] candle for "main.wxs"
     Running [tauri_bundler::bundle::common] Command `C:\Users\Daniel\AppData\Local\tauri/WixTools\candle.exe  -arch x64 main.wxs -dSourceDir=D:\code\rust\tauri\Clergy-Catalog\src-tauri\target\release\clergy.catalog.exe`
Windows Installer XML Toolset Compiler version 3.11.2.4516
Copyright (c) .NET Foundation and contributors. All rights reserved.

main.wxs
     Running [tauri_bundler::bundle::windows::msi::wix] light to produce D:\code\rust\tauri\Clergy-Catalog\src-tauri\target\release\bundle\msi\clergy.catalog_0.0.0_x64_en-US.msi
     Running [tauri_bundler::bundle::common] Command `C:\Users\Daniel\AppData\Local\tauri/WixTools\light.exe  -ext C:\Users\Daniel\AppData\Local\tauri/WixTools\WixUIExtension.dll -ext C:\Users\Daniel\AppData\Local\tauri/WixTools\WixUtilExtension.dll -o D:\code\rust\tauri\Clergy-Catalog\src-tauri\target\release\wix\x64\output.msi -cultures:en-us -loc D:\code\rust\tauri\Clergy-Catalog\src-tauri\target\release\wix\x64\locale.wxl *.wixobj`
Windows Installer XML Toolset Linker version 3.11.2.4516
Copyright (c) .NET Foundation and contributors. All rights reserved.

D:\code\rust\tauri\Clergy-Catalog\src-tauri\target\release\wix\x64\main.wxs(101) : error LGHT0103 : The system cannot find the file 'D:\code\rust\tauri\Clergy-Catalog\src-tauri\target\release\clergy.catalog.exe'.
       Error [tauri_cli_node] failed to bundle project: error running light.exe

main.wxs
<?if $(sys.BUILDARCH)="x86"?>
    <?define Win64 = "no" ?>
    <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
<?elseif $(sys.BUILDARCH)="x64"?>
    <?define Win64 = "yes" ?>
    <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
<?else?>
    <?error Unsupported value of sys.BUILDARCH=$(sys.BUILDARCH)?>
<?endif?>

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Product
            Id="*"
            Name="clergy.catalog"
            UpgradeCode="9ecb4cca-950e-5b24-90fa-6eef5fa16644"
            Language="!(loc.TauriLanguage)"
            Manufacturer="clergycatalog"
            Version="0.0.0">

        <Package Id="*"
                 Keywords="Installer"
                 InstallerVersion="450"
                 Languages="0"
                 Compressed="yes"
                 InstallScope="perMachine"
                 SummaryCodepage="!(loc.TauriCodepage)"/>

        <!-- https://docs.microsoft.com/en-us/windows/win32/msi/reinstallmode -->
        <!-- reinstall all files; rewrite all registry entries; reinstall all shortcuts -->
        <Property Id="REINSTALLMODE" Value="amus" />

            <MajorUpgrade Schedule="afterInstallInitialize" AllowDowngrades="yes" />

        <InstallExecuteSequence>
            <RemoveShortcuts>Installed AND NOT UPGRADINGPRODUCTCODE</RemoveShortcuts>
        </InstallExecuteSequence>

        <Media Id="1" Cabinet="app.cab" EmbedCab="yes" />

        <Icon Id="ProductIcon" SourceFile="D:\code\rust\tauri\Clergy-Catalog\src-tauri\target\release\resources\icon.ico"/>
        <Property Id="ARPPRODUCTICON" Value="ProductIcon" />
        <Property Id="ARPNOREPAIR" Value="yes" Secure="yes" />      <!-- Remove repair -->
        <SetProperty Id="ARPNOMODIFY" Value="1" After="InstallValidate" Sequence="execute"/>

        <!-- initialize with previous InstallDir -->
        <Property Id="INSTALLDIR">
            <RegistrySearch Id="PrevInstallDirReg" Root="HKCU" Key="Software\clergycatalog\clergy.catalog" Name="InstallDir" Type="raw"/>
        </Property>

        <!-- launch app checkbox -->
        <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="!(loc.LaunchApp)" />
        <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1"/>
        <Property Id="WixShellExecTarget" Value="[!Path]" />
        <CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />

        <UI>
            <!-- launch app checkbox -->
            <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>

            <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />

            <!-- Skip license dialog -->
            <Publish Dialog="WelcomeDlg"
                     Control="Next"
                     Event="NewDialog"
                     Value="InstallDirDlg"
                     Order="2">1</Publish>
            <Publish Dialog="InstallDirDlg"
                     Control="Back"
                     Event="NewDialog"
                     Value="WelcomeDlg"
                     Order="2">1</Publish>
        </UI>

        <UIRef Id="WixUI_InstallDir" />

        <Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="DesktopFolder" Name="Desktop">
                <Component Id="ApplicationShortcutDesktop" Guid="*">
                    <Shortcut Id="ApplicationDesktopShortcut" Name="clergy.catalog" Description="Runs clergy.catalog" Target="[!Path]" WorkingDirectory="INSTALLDIR" />
                    <RemoveFolder Id="DesktopFolder" On="uninstall" />
                    <RegistryValue Root="HKCU" Key="Software\clergycatalog\clergy.catalog" Name="Desktop Shortcut" Type="integer" Value="1" KeyPath="yes" />
                </Component>
            </Directory>
            <Directory Id="$(var.PlatformProgramFilesFolder)" Name="PFiles">
                <Directory Id="INSTALLDIR" Name="clergy.catalog"/>
            </Directory>
            <Directory Id="ProgramMenuFolder">
                <Directory Id="ApplicationProgramsFolder" Name="clergy.catalog"/>
            </Directory>
        </Directory>

        <DirectoryRef Id="INSTALLDIR">
            <Component Id="RegistryEntries" Guid="*">
                <RegistryKey Root="HKCU" Key="Software\clergycatalog\clergy.catalog">
                    <RegistryValue Name="InstallDir" Type="string" Value="[INSTALLDIR]" KeyPath="yes" />
                </RegistryKey>
            </Component>
            <Component Id="Path" Guid="48407956-7ce5-5446-a03b-519a5b54c96e" Win64="$(var.Win64)">
                <File Id="Path" Source="D:\code\rust\tauri\Clergy-Catalog\src-tauri\target\release\clergy.catalog.exe" KeyPath="yes" Checksum="yes"/>
            </Component>

            <Component Id="CMP_UninstallShortcut" Guid="*">

                <Shortcut Id="UninstallShortcut"
						  Name="Uninstall clergy.catalog"
						  Description="Uninstalls clergy.catalog"
						  Target="[System64Folder]msiexec.exe"
						  Arguments="/x [ProductCode]" />

				<RemoveFolder Id="INSTALLDIR"
							  On="uninstall" />

				<RegistryValue Root="HKCU"
							   Key="Software\clergycatalog\clergy.catalog"
							   Name="Uninstaller Shortcut"
							   Type="integer"
							   Value="1"
							   KeyPath="yes" />
            </Component>
        </DirectoryRef>

        <DirectoryRef Id="ApplicationProgramsFolder">
            <Component Id="ApplicationShortcut" Guid="*">
                <Shortcut Id="ApplicationStartMenuShortcut"
                    Name="clergy.catalog"
                    Description="Runs clergy.catalog"
                    Target="[!Path]"
                    Icon="ProductIcon"
                    WorkingDirectory="INSTALLDIR">
                    <ShortcutProperty Key="System.AppUserModel.ID" Value="com.clergycatalog.dev"/>
                </Shortcut>
                <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
                <RegistryValue Root="HKCU" Key="Software\clergycatalog\clergy.catalog" Name="Start Menu Shortcut" Type="integer" Value="1" KeyPath="yes"/>
           </Component>
        </DirectoryRef>

<Feature
                Id="MainProgram"
                Title="Application"
                Description="!(loc.InstallAppFeature)"
                Level="1"
                ConfigurableDirectory="INSTALLDIR"
                AllowAdvertise="no"
                Display="expand"
                Absent="disallow">

            <ComponentRef Id="RegistryEntries"/>

            <Feature Id="ShortcutsFeature"
                Title="Shortcuts"
                Level="1">
                <ComponentRef Id="Path"/>
                <ComponentRef Id="CMP_UninstallShortcut" />
                <ComponentRef Id="ApplicationShortcut" />
                <ComponentRef Id="ApplicationShortcutDesktop" />
            </Feature>

            <Feature
                Id="Environment"
                Title="PATH Environment Variable"
                Description="!(loc.PathEnvVarFeature)"
                Level="1"
                Absent="allow">
            <ComponentRef Id="Path"/>
</Feature>
        </Feature>

        <Feature Id="External" AllowAdvertise="no" Absent="disallow">
</Feature>

        <!-- WebView2 -->
        <Property Id="WVRTINSTALLED">
            <RegistrySearch Id="WVRTInstalledSystem" Root="HKLM" Key="SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}" Name="pv" Type="raw" Win64="no" />
            <RegistrySearch Id="WVRTInstalledUser" Root="HKCU" Key="SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}" Name="pv" Type="raw"/>
        </Property>

        <CustomAction Id='DownloadAndInvokeBootstrapper' Directory="INSTALLDIR" Execute="deferred" ExeCommand='powershell.exe -NoProfile -windowstyle hidden try [\{] [\[]Net.ServicePointManager[\]]::SecurityProtocol = [\[]Net.SecurityProtocolType[\]]::Tls12 [\}] catch [\{][\}]; Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2124703" -OutFile "$env:TEMP\MicrosoftEdgeWebview2Setup.exe" ; Start-Process -FilePath "$env:TEMP\MicrosoftEdgeWebview2Setup.exe" -ArgumentList ('/silent', '/install') -Wait' Return='check'/>
        <InstallExecuteSequence>
            <Custom Action='DownloadAndInvokeBootstrapper' Before='InstallFinalize'>
                <![CDATA[NOT(REMOVE OR WVRTINSTALLED)]]>
            </Custom>
        </InstallExecuteSequence>

        <!-- Embedded webview bootstrapper mode -->

        <!-- Embedded offline installer -->

        <SetProperty Id="ARPINSTALLLOCATION" Value="[INSTALLDIR]" After="CostFinalize"/>
    </Product>
</Wix>

Thank you. I opened a PR for v1. v2 will be fixed by https://github.com/tauri-apps/tauri/pull/9375.

Thank you too! That was really fast. :)

authors: FabianLars danferns


text:
Pass promiseCapability to HostImportModuleDynamically

Or am I completely misreading the spec?

Good catch!

authors: domenic jakearchibald


text:
Signal.subtle.watched/unwatched is not sufficient, we need to be notified when a signal is used (even without a watcher)

Hello,
As a maintainer of the tansu signal library, I am trying (here) to re-implement it using signal-polyfill and I came across the following difference of behavior, that I would like to solve, avoiding any breaking change.
With tansu (inspired by svelte stores), as described further in this article we have the ability to know whether a signal is used or not, in order to update the signal value and add or remove event listeners.
For example, we can create the following signal that contains a string value from the local storage and a computed that parses the value as JSON:
import {readable, computed} from '@amadeus-it-group/tansu';

// this signal is synchronized with the "preferences" item in local storage
const preferences$ = readable(null as string | null, (set) => {
  // this function is called when the signal starts to be used

  const updateFromStorage = (e: StorageEvent) => {
    if (e.key === "preferences") {
      set(e.newValue);
    }
  };
  window.addEventListener('storage', updateFromStorage);
  set(localStorage.getItem("preferences"));
  return () => {
    // this function is called when the signal is no longer used
    window.removeEventListener('storage', updateFromStorage)
  };
});

const parsedPreferences$ = computed(() => JSON.parse(preferences$() ?? "null"));

Now if I call parsedPreferences$() at any time, I have the current value of the "preferences" local storage item parsed as a json object.
However, with the current signals proposal, this is not possible to achieve without constantly listening to the "storage" event.
I know the Signal.subtle.watched and Signal.subtle.unwatched callbacks, but they are not called when the value is read through a one-time access to the value of a dependent signal:
import { Signal } from 'signal-polyfill';

const updateFromStorage = (e: StorageEvent) => {
  if (e.key === "preferences") {
    preferences$.set(e.newValue);
  }
}
const preferences$ = new Signal.State(null as string | null, {
  [Signal.subtle.watched]: () => {
    preferences$.set(localStorage.getItem("preferences"));
    window.addEventListener('storage', updateFromStorage);
  },
  [Signal.subtle.unwatched]: () => {
    window.removeEventListener('storage', updateFromStorage);
  }
})

const parsedPreferences$ = new Signal.Computed(() => JSON.parse(preferences$.get() ?? "null"));

With the above code, if I read parsedPreferences$.get() once (without having a watcher) and then the value of the "preferences" local storage item changes from another tab,  and then I read again (still without having a watcher) parsedPreferences$.get(), the value will not be up-to-date.
I believe it is fundamental that the signals proposal allows such a use case.

I ran into this problem in my framework too. It seems this proposal allows an unavoidable edge case when integrating external sources where the replica might be stale and there's no reliable way to know.
I've opened a broader proposal in https://github.com/tc39/proposal-signals/issues/237.

One tricky part here is if you want a notion of "is this signal in use?" that incorporates unwatched signals, whatever that notion is ends up sensitive to GC timing: a computed that previously read your signal can become garbage later, without ever having another lifecycle event happen to it.
If you accept that condition, you can deal with it explicitly and get something resembling... well, it resembles what you asked for, though not necessarily what you want. What you'd do is:

keep an "internal" State that you update (via an event listener)
when someone wants access to it, you hand out a "public" Computed that reads the private state. you put the public computed in a FinalizationRegistry, and you make sure that (if you retain it at all) you only retain the public Computed weakly
now you can use "are there any public readers that haven't been finalized yet?" to tell whether there's any possibility of any other code trying to consume the value, which would let you add or clean up the handlers.

Of course, it may be that what you really want is more like #237 (a way to make things recompute every time no matter what) rather than a way to be notified when all (watched and unwatched both) consumers of a node become garbage.

@shaylew Thank you for your comment.

One tricky part here is if you want a notion of "is this signal in use?" that incorporates unwatched signals, whatever that notion is ends up sensitive to GC timing: a computed that previously read your signal can become garbage later, without ever having another lifecycle event happen to it.

I don't see things like this. For me, GC should not be involved at all in the process of knowing whether a signal is in use.
A signal can be and should be able to be considered unused even though it is not garbage collected. Maybe it will be in use later.
For me, a signal should be considered in use:

if it is watched
or synchronously from just before being read to just after

That's what we implemented in tansu: there is only one way to read the value of a store which is subscribing to it. As long as there is a subscription, the store is used. When the last subscriber unsubscribes, the store is unused.
Then we have a helper get function that allows to get the value of the store. It just internally subscribes, which gives the value of the store to the listener synchronously, and then immediately unsubscribes.

Of course, it may be that what you really want is more like #237 (a way to make things recompute every time no matter what) rather than a way to be notified when all (watched and unwatched both) consumers of a node become garbage.

What I really want is indeed something like #237.

That's what we implemented in tansu: there is only one way to read the value of a store which is subscribing to it. As long as there is a subscription, the store is used. When the last subscriber unsubscribes, the store is unused.

Ah, I see how you can make things work with that sort of design. But one of the goals of signals is for APIs that are resting to be able to be used from code that doesn't know or care about signals. If you can call .get from anywhere, and consumers don't need to manually subscribe and unsubscribe, "is it still live" is the only real approximation you can get of whether it might be accessed. As long as it's possible to read a signal from a regular non-signal context, you're going to have readers that the framework didn't know about ahead of time.
(And "use watchers to keep things live" basically corresponds to the other answer, which is "okay, I'll trade manual subscribe/unsubscribe for more precise tracking of what's 'active'".)

For info, I have opened this PR in the polyfill as a potential solution for this issue.

authors: PsychoLlama divdavem shaylew


text:
LDAP authentication doesn't work when group contains an underscore

Hi,
We've had trouble setting up LDAP authentication because our LDAP group contains an underscore. The underscore that is part of the group apparently gets interpreted by Micronaut configuration parser.
We've found a workaround: set the name property under the group definition.
  security:
    ldap:
      group:
        ldap1:
          name: Enterprise_DevTeam
          groups:
            - read-write
        ldap2:
          name: Enterprise_Admin
          groups:
            - admin
            - read-write

It could be a good idea to document it and maybe standardize on this format.

Hi,
Have you just try to quote the name ?
Seems to be weird that micronaut will convert a quoted string ?

We've just tried and quoting the name doesn't work.

ha ok !!! Just understand !!
Your previous configuration was :
  security:
    ldap:
      group:
        Enterprise_DevTeam:
          groups:
            - read-write
        Enterprise_Admin:
          groups:
            - admin
            - read-write

right ?
If it the case, it's normal behaviour of micronaut !!
And you have right, will add some documentation !

Correc, this config above doesn't work.

authors: legege tchiotludo

repo: tchiotludo/kafkahq


text:
custom handwriting?

Can one use this to produce a custom handwriting style? That is, if I have an image (or even many, many images) of someone's handwriting, could I use this so that it would reproduce any text I input and produce an image of that text in my chosen custom handwriting style?

Hi,
It does support conditioning on a custom handwriting style via the "--writersource" argument.  To get good results you might have to preprocess, which I believe involves cropping the handwriting picture so it's just a single line of writing, and turning it to grayscale. I don't think it supports using multiple style images though.
hope this helps.


text:
Configuration file reading is broken in 3.11.0

After updating to V3.11.0, the -c or --config option no longer works. It is just ignored, and hence any configuration options (like links to ignore) are uneffective.
The tool doesn't even attempt to read the config file. Running
 markdown-link-check.cmd -c .\a-non-existing-file.json -v Documentation\creating-new-release.md

does not produce an error about a missing json file (but only because there's a broken link in that file in my case).
Reverting back to V3.10.3 fixes this.

Can only confirm that it's broken and fails silently. cc @tcort if you haven't seen the issue yet :heart:

Confirming that ignorePatterns and aliveCodes are currently ignored, haven't validated other configuration as of yet.

In response to user feedback, I downgraded markdown-link-check to v3.10.3 in MegaLinter v6.22.0. We will unpin markdown-link-check once a fix to this issue is released.

should be fixed in 3.11.1. If not, please re-open.

No specified config file will now return an error in 3.11.1
docker run ghcr.io/tcort/markdown-link-check:3.11.1
/src/markdown-link-check:99
		input.opts.config = program.opts().config.trim();
		                                         ^

TypeError: Cannot read properties of undefined (reading 'trim')
    at getInputs (/src/markdown-link-check:99:44)
    at main (/src/markdown-link-check:232:20)

Node.js v19.8.1

authors: Kurt-von-Laven MarcelMue maTraxion nhinze23 pgrawehr tcort vordimous

repo: tcort/markdown-link-check

license: isc


text:
[Missing] Animated football

Blog: https://telegram.org/blog/profile-videos-people-nearby-and-more

Support was added in TDLib 1.6.7.

authors: Sajilck levlam

repo: tdlib/td


text:
Unable to build TDLib for Android

Hi,
I've previously built the TDLib for Android in the past but I can't get it working anymore. I'm following the instructions here: https://github.com/tdlib/td/tree/master/example/android
~/working/external/telegram_sdk/example/android$ ./build-tdlib.sh
Downloading annotation Java package...
Generating TDLib source files...
-- Could NOT find ccache (this is NOT an error)
-- Found OpenSSL: /opt/homebrew/Cellar/openssl@3/3.1.2/include /opt/homebrew/Cellar/openssl@3/3.1.2/lib/libssl.dylib;/opt/homebrew/Cellar/openssl@3/3.1.2/lib/libcrypto.dylib
-- Git state: 986f1ab469b9bbff2b95850cc4485e16798a26b7
-- Found ZLIB: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/include /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/usr/lib/libz.tbd
CMake Error at SDK/cmake/3.22.1/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2
  JAVA_AWT_INCLUDE_PATH)
Call Stack (most recent call first):
  SDK/cmake/3.22.1/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  SDK/cmake/3.22.1/share/cmake-3.22/Modules/FindJNI.cmake:382 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  /Users/jpage/working/external/telegram_sdk/CMakeLists.txt:930 (find_package)

I should say I'm running on an M1 Mac so maybe that's related to the reason it's failing. If so, does anyone know how to fix?
I also tried running the docker build but that ran for several hours and seemed like it was just re-building over and over without ever actually working.

I'm not using the prebuilt library because it appears it hasn't been updated in a long time.. correct me if I'm wrong there. If it's not going to be maintained can it be removed and the build generator be updated? I'm talking about this:
TDLib for Android is available in a prebuilt form and can be downloaded from there.

CMake Error at SDK/cmake/3.22.1/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2
JAVA_AWT_INCLUDE_PATH)

The script can't find installed system JDK. It can be installed with brew install openjdk or from the official web site. After JDK is installed, you need to add JAVA_HOME environment variable, which should point to the installation path ("/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home/" if JDK is installed with Homebrew).

If it's not going to be maintained can it be removed and the build generator be updated?

Yes, it will be removed after the Android example is completed with all other types of TDLib builds for Android.

@levlam - thanks for the fast reply!
I did install the JDK via brew but noticed JAVA_HOME was set to "/opt/homebrew/opt/openjdk" and not "/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home/"
That seemed to do the trick as it's building now


text:
Application goes down with error: database disk image is malformed for database

I store my user's session in a file whenever the java service needs restart.
While service comes up, the session file is restored.
At times, I get this issue due to which service goes down and can not come up unless I create a fresh session(and verification) for the user.
Log:
[Status.h:256][#1][!Td]
Unexpected Status [Error : 0 : database disk image is malformed for database "/app/sqlite/user/db.sqlite"] in file /app/td/tddb/td/db/SqliteKeyValue.cpp at line 76

Is someone also facing this issue? Kindly help.

The file db.sqlite is malformed as the error states. You can't copy a file, which is used and actively changed by another program. Apps aren't supposed to interfere with the internal TDLib state, including the db.sqlite file.


text:
[Question] How to organize a search among chat/group/etc name

Hello, i ask for advice or a second opinion about my problem.
At my app i have a search field where user types a chat name (or it's part) and the app is supposed to provide a list of found results.
So i take a string which user typed and I trigger searchPublicChats and searchChatsOnServer. So i getting array of chat ids.
Then i take each chat id and trigger getChat , so i receive chat Title and some other info.
Then i want to add chat logo to each chat instance and represent it along with title.
It seems i need to perform an additional request to download an icon to each chat instance.
There's a Minithumbnail, but it's really too small.
While it's processing the user is waiting for search result.
Is there any better solution for search?
Thanks!

See https://github.com/tdlib/td/issues/2616#issuecomment-1735201401 for the methods that are invoked by apps to get results of global search.
Also, you never need to call getChat, because chats should be cached as described at https://core.telegram.org/tdlib/getting-started.

Thanks @levlam i'm receiving updateNewChat event with chat info.
Any life hacks to get a logo? Or for logo i really should send a request and download a file?
Thanks!

authors: levlam tilvin


text:
Bot API Server is sending wrong message_thread_id

When a user replies to the Bot's message on the "GENERAL" topic of any forum the Bot API attaches a totally random message_thread_id with the incoming Message update to the bot.
Hence using this message_thread_id in sendMessage or any other method to send messages will fail throwing the following error:
{
  "ok": false,
  "error_code": 400,
  "description": "Bad Request: message thread not found"
}

The behavior is correct. See https://github.com/tdlib/telegram-bot-api/issues/356#issuecomment-1405378400.

Thanks for the reply. Now I understand this is the intended behavior.
But when the received message_thread_id is utilized in a method such as sendMessage, the bot generates an error. Shouldn't it, instead, send the message to the General Topic rather than throwing an error?

You don't need to specify message_thread_id, if you want to reply a message that doesn't belong to a topic. Actually, you never need to specify message_thread_id explicitly when replying to a message without allow_sending_without_reply.

Thanks @levlam, yeah I'm aware of that.
The actual reason why I had to open up this issue was an issue with my Telegram Bot API wrapper library. Whenever the incoming message is from a Topic the message_thread_id will be set automatically on the reply method (a context-aware alias for sendMessage). And you already know the rest of the story. When the user responds to a bot message in General Topic, there's a valid message identifier present as message_thread_id but when used with sendMessage the API call fails.
I think if the chat is a forum, and message_thread_id is present the API could just send the message to the General Topic in this case (if message_thread_id is a root id of a message in the General Topic). Just my thoughts.
Thanks for your responses again :)

I understand how this works, thanks again.
I'm closing this issue as this is not a bug or problem with the Bot API.

authors: HeySreelal levlam

repo: tdlib/telegram-bot-api


text:
build_linux_amd64_ssl1.sh error

I am running build_linux_amd64_ssl1.sh directly, how to solve this kind of error, what needs to be modified, the environment is centos 8, java11

REVISION=1.0.0.0-SNAPSHOT
rm -rf implementations/tdlight/td_tools_build implementations/tdlight/build api/target-legacy api/target api/.ci-friendly-pom.xml implementations/tdlight/td/generate/auto natives/src/main/java/it/tdlight/jni natives/build natives/tdjni_bin natives/tdjni_docs
mkdir -p implementations/tdlight/build implementations/tdlight/build/td_bin/bin implementations/tdlight/td_tools_build/java/it/tdlight/jni api/src/main/java-legacy/it/tdlight/jni api/src/main/java-sealed/it/tdlight/jni natives/src/main/java/it/tdlight/jni natives/build natives/tdjni_bin natives/tdjni_docs
HOST_CMAKE_C_COMPILER=/usr/bin/clang-12
HOST_CMAKE_CXX_COMPILER=/usr/bin/clang++-12
HOST_CMAKE_C_FLAGS=-fuse-ld=lld
HOST_CMAKE_CXX_FLAGS='-fuse-ld=lld -stdlib=libc++'
HOST_CMAKE_EXE_LINKER_FLAGS='-lc++ -lc++abi -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind'
export 'CMAKE_CXX_FLAGS= -std=c++14'
CMAKE_CXX_FLAGS=' -std=c++14'
++ which sccache
++ alias
++ eval declare -f
+++ declare -f
++ /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot sccache
CCACHE=/root/.cargo/bin/sccache
[[ -x /root/.cargo/bin/sccache ]]
echo 'found sccache: /root/.cargo/bin/sccache'
found sccache: /root/.cargo/bin/sccache
cd implementations/tdlight/td_tools_build
CXXFLAGS=-stdlib=libc++
CC=/usr/bin/clang-12
CXX=/usr/bin/clang++-12
cmake -DCMAKE_C_COMPILER=/usr/bin/clang-12 -DCMAKE_CXX_COMPILER=/usr/bin/clang++-12 '-DCMAKE_C_FLAGS= -fuse-ld=lld' '-DCMAKE_CXX_FLAGS= -std=c++14 -fuse-ld=lld -stdlib=libc++' '-DCMAKE_EXE_LINKER_FLAGS= -lc++ -lc++abi -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind' -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=/root/.cargo/bin/sccache -DCMAKE_CXX_COMPILER_LAUNCHER=/root/.cargo/bin/sccache -DCMAKE_C_FLAGS_RELEASE= '-DCMAKE_CXX_FLAGS_RELEASE=-O0 -DNDEBUG' -DTD_ENABLE_LTO=OFF -DTD_ENABLE_JNI=ON ..
CMake Error: The source directory "/home/cent/tdlight-java-natives/.github/workflows/scripts/implementations/tdlight" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.

you didn't clone the submodules

you didn't clone the submodules

Which submodule is it? I cloned it in this way: git clone --recursive https://github.com/tdlight-team/tdlight-java-natives.git

you didn't clone the submodules

Which submodule is it? I cloned it in this way: git clone --recursive https://github.com/tdlight-team/tdlight-java-natives.git

That's correct, in this way it works.

By the way, why are you trying to build the natives? The new TDLight-java version already offers some built-in precompiled binaries for the most popular platforms.

Yes, but now the precompiled binary with openssl1 is using ubuntu 20.04, so it should be compatible with any non-ancient server.
Why are you using the openssl3 tdlight binary? @levlam suggests to use openssl1 with tdlib if possible.

authors: alon-sys cavallium

repo: tdlight-team/tdlight-java-natives


text:
🛑 upload.nolog.cz is down

In 834a557, upload.nolog.cz (https://upload.nolog.cz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: upload.nolog.cz is back up in e84c2de after 1 hour, 32 minutes.

repo: tdulcet/send-instances-status


text:
🛑 send.zcyph.cc is down

In eb95519, send.zcyph.cc (https://send.zcyph.cc) was down:

HTTP code: 0
Response time: 0 ms

Resolved: send.zcyph.cc is back up in d6401ac after 3 hours, 36 minutes.


text:
🛑 send.monks.tools is down

In 5d2c7d8, send.monks.tools (https://send.monks.tools) was down:

HTTP code: 0
Response time: 0 ms

Resolved: send.monks.tools is back up in 0d762b2.


text:
Property:dataQualityDefinition

Definition
Definition of the digitization quality indicator

Existing property

Existing class

Existing property identifier

Format
Text

Required

Repeatable
no

Constraints

Examples
Georeferenced; Verified; Linked to taxonomic authority

Notes

Deprecated in favour of MeasurementOrFact class

authors: mswoodburn mtrekels

repo: tdwg/cd


text:
Update the yellow box on homepage

No longer "Subscriptions are now open", but "Thank you for attending the SPNHC+TDWG 2018 Conference!" At first I though to link to the abstracts: https://biss.pensoft.net/collection/62/ but I think that the best entry point is still the conference website.

Shouldn't we point to the biodiversity_next as well?
On Fri, 31 Aug 2018, 14:24 Peter Desmet, notifications@github.com wrote:

No longer "Subscriptions are now open", but "Thank you for attending the
SPNHC+TDWG 2018 Conference!" At first I though to link to the abstracts:
https://biss.pensoft.net/collection/62/ but I think that the best entry
point is still the conference website.
[image: screen shot 2018-08-31 at 14 24 01]
https://user-images.githubusercontent.com/600993/44889328-89163b00-ad29-11e8-81b8-79efcf425d7a.png
You can view, comment on, or merge this pull request online at:
https://github.com/tdwg/website/pull/94
Commit Summary

Update the yellow box on homepage

File Changes

M content/pages/home/index.md
https://github.com/tdwg/website/pull/94/files#diff-0 (4)

Patch Links:

https://github.com/tdwg/website/pull/94.patch
https://github.com/tdwg/website/pull/94.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tdwg/website/pull/94, or mute the thread
https://github.com/notifications/unsubscribe-auth/ALmnQGad2eY9K73Lm0w9Jxw8CFmInTjZks5uWJ5agaJpZM4WUf2N
.

@dkoureas Well, there are several things we could point to (but you have to choose one):

2018 conf
2018 nominations (until sep 15, members only?)
2018 elections (members only)
2019 conf

I think at some point later this year we should point to 2019 conf, but one of the other ones might be more urgent now

authors: dkoureas peterdesmet

repo: tdwg/website


text:
comma-quote?

I have a request: in aster, there is one string-word missing: ,"
It would make possible e.g.:
create nam ," John"
nam count type

Maybe for you it would be easy to implement this?

Hey, sorry for getting back so late!
This word does seem nice to have. It can be implemented with the following:
: ," [char] " word c@ 1+ allot ;
And it's now added to aster.f

authors: tdwsl wboeke

repo: tdwsl/aster-forth


text:
데이터 수집 - 분석(문서작성)

종류
ISSUE 종류를 선택하세요

[x] 문서 작성

내용

내용명 : 데이터 수집을 위한 과제&공공데이터 분석 후 노션 문서 작성

체크리스트

[x] 과제 분석
[x] 공공 데이터 분석
[x] 노션 문서 작성

작업 완료


text:
SIFT clean install errors - PDF posters

Hi,
Looks like there is an issue with the links for a few of the SANS posters.
Here's a sample of the log.
comment: 'Failed to cache https://sansorg.egnyte.com/dd/hZjkv5VupH/: Error: HTTP
403: Forbidden reading https://sansorg.egnyte.com/dd/hZjkv5VupH/'
duration: 201.125
name: /home/salty/Desktop/Network-Forensics-Poster.pdf
result: false
Thanks,
Salty
saltstack.log

Thanks for the report @salty4n6 -- we are aware of the issue. Unfortunately it's not a quite fix, some changes are being made with the backend on how these files are hosted and how access it provided. As soon as I have a solution I'll provide an update.

Thanks @ekristen .  I wasn't sure if you were aware or when the change happened.  Close the issue or leave it open, I'll leave that up to you.
Salty

This is now fixed.

repo: teamdfir/sift


text:
Return error tuple instead of raising errors

I found I have to write extra code to handle the raises. This way the
user gets to choose whether to raise.
When googling around, noticed it was also brought up here:
https://elixirforum.com/t/error-handling-with-tesla/4511/4

This issue has been brought up in the past - https://github.com/teamon/tesla/issues/64
Please mind that changing this behaviour would be a major breaking change.
I'm open to changes, but there must a be good reason for them.
The current behaviour is to return %Tesla.Env on successful transaction and raise on adapter/connection errors. As you can is in #64 it is trivial to change this behaviour with a middleware and does not require any changes to the core.

ahh - sorry. Definitely should've thought of the middleware approach. I may close this then as that will do the trick. Ty

repo: teamon/tesla


text:
Allow nested record definitions from arrays and maps.

Also fix namespace bug for union references. (Added a test for each.)
Thanks for writing this great package!

Thanks! Will check shortly and merge.

Why are the compiled files being checked in?
Sent from my mobile device

On Aug 10, 2015, at 8:49 PM, Miki Tebeka notifications@github.com wrote:
Thanks! Will check shortly and merge.
—
Reply to this email directly or view it on GitHub.

:+1: this fixes some bugs I was going to track down

@wesm - Didn't look into it much but the README has this snippet:

As recommended by Cython, the C files output is distributed. This has the advantage that the end user does not need to have Cython installed. However it means that every time you change fastavro/pyfastavro.py you need to run make.

The recommendation is for setup.py sdist, not git. See pandas and other modules implemented in large part in Cython
Sent from my mobile device

On Aug 10, 2015, at 9:10 PM, Matthieu Monsch notifications@github.com wrote:
@wesm - Didn't look into it much but the README has this snippet:
As recommended by Cython, the C files output is distributed. This has the advantage that the end user does not need to have Cython installed. However it means that every time you change fastavro/pyfastavro.py you need to run make.
—
Reply to this email directly or view it on GitHub.

+1

Merged. Will leave the generated c files out of git.

authors: mtth rouge8 tebeka virtuald wesm

repo: tebeka/fastavro


text:
[BUG] swipe down and close pane on iframe

On mobile, if I put an iframe on the pane, I am not able to close the pane when I swipe down on the iframe, example: https://jsfiddle.net/garj/he0tnqow/4/show
I would like to maintain the behaviour of https://jsfiddle.net/romantonoff/vep7t9hy/show on mobile where when i scroll to the top of the list, it will proceed to swipe the pane down, is this possible?

Hello @garj
Let me check this, if this is possible to track iframe scroll events.
Otherwise, it is still possible to drag pane down by draggable element on the top.

authors: garj roman-rr

repo: tech-systems/panes


text:
Implement Mission Leaving Actions

To Highlight:
#29
Implemented Mission Leaving actions

Hi @David-Kasilia,
Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Highlights

[x] Correct GitHub Flow 👍🏾
[x] Good commit history 🥇
[x] Good PR title/description 💯
[x] All linters passed 🥇

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you consider them as they can improve your code. The previous reviewer simply missed some of them, and addressing them will improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy, you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

authors: David-Kasilia techEmprez

repo: techEmprez/react-group-capstone-project


text:
Unique Index Code Bug?

Hi, I was getting a weird duplicate index error despite not having any duplicates, so I was looking through the code and noticed:
UniqueIndex.prototype.set = function (obj) {
      var fieldValue = obj[this.field];
      if (fieldValue !== null && typeof (fieldValue) !== 'undefined') {
        if (this.keyMap[fieldValue]) {
          throw new Error('Duplicate key for property ' + this.field + ': ' + fieldValue);
        } else {
          this.keyMap[fieldValue] = obj;
          this.lokiMap[obj.$loki] = fieldValue;
        }
      }
    };

Instead of if (this.keyMap[fieldValue]), shouldn't it be if (this.keyMap.hasOwnProperty(fieldValue))?

I think I've found my problem: if you use a loki indexed adapter, the ensureUniqueIndex() function is called automatically. If you then call the ensureUniqueIndex() function manually afterwards, it triggers an error because the key has already been saved in the keyMap.
This seems very convoluted - I'm not quite sure what I should be doing.

As I remember it, we did not want to serialize the constraints themselves as they are duplicate objects to what we already have in data.   The idea was to not save constraints themselves but save list of unique property names and recreate on load if they are defined on a collection.
I am noticing our serializeReplacer (at the loki level) is where we are attempting to null out the unique constraints when we probably need to do this in a collection level toJSON override.  I will need to look over to make sure we are not serializing objects themselves in collection unique object.
If you save your db/collections with unique indexes, you should not need to reapply them on load.  Is that ok? We may still have some old documentation indicating need to reapply but those docs should probably be updated if they say that.

Thanks, I guess my main concern is that my data might have multiple same indexes without my knowing. I hence don't mind using ensureUniqueIndex(), but a function that could just check whether all indices are unique would be a great addition (if one already exists that would be superb).

That should not be difficult... I will look this over in the next day or two.  ensureUniqueIndex should not create duplicate, and ensureAllIndexes (or possibly a new ensureAllUniqueIndexes) should rebuild all unique indexes if they do not exist... our loadJSONObject should call out to that instead of using inline logic.

Alright, i made a simple fix which should allow flexibility in (re)applying unique indices without erroring.
I believe @techfort created unique index functionality so i am testing the waters here but here are some thoughts on consistency :

If you are just inserting objects, your unique constraints (and collection) should remain valid no problem.
By default loki does not clone objects.  If you update your object to violate unique constraints, and call update... loki will maintain integrity of the constraints index but damage is already done on your object.  You will be notified of error but you would have to fix it by removing that duplicate key.

So it would seem the 'unique indices' feature should probably require collection cloning be enabled.
Any thoughts @hsdk123 @techfort @alexandernst @VladimirTechMan ?

I completely skipped unique indices while reading Loki's code, so I can't really say what would be a good fix for this. Reading that part of the code is on my TODO list, just if I could get 483h in a day... that would be awesome.

I only pulled you guys in since this might be in line with 2.0 'profiles'

I believe this was resolved, closing.

authors: alexandernst hsdk123 obeliskos

repo: techfort/LokiJS


text:
Fix issue with decoding signed values of non-standard length

I noticed certain signals were getting decoded incorrectly from one of my DBC files. I tracked this down to signed values that have less bits than the corresponding rust type. For instance if I have a signed signal foo with 4 bits (corresponding to a rust i8):
If I try to set a value of -3, it correctly gets encoded in fn set_foo to the bits [1, 0, 1, 1]. Then in fn foo_raw it was first loading the data as a u8, and since the 4 most significant bits get dropped, the value gets read in as 13 rather than 253. So when that value gets converted to an i8 the result is 13 instead of -3. It seems like bitvec::field::BitSlice::load_le<i8>, on the other hand, works correctly without the intermediate conversion to a u8

Hi @killercup anything I can do to help get this fix merged in?

repo: technocreatives/dbc-codegen


text:
update logos in footer an section

++ adapted footer to new logo sorting
++ replaced tsb logo with citylab logo in "prototype" section

👍  Thx for taking care of this! Please update the snapshots by running npm run test -- -u and commit your updated snapshots.

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

authors: Esshahn tsboter vogelino

repo: technologiestiftung/stadtpuls-frontend


text:
🛑 Front-end is down

In 58ec4af, Front-end (https://feddit.nl) was down:

HTTP code: 500
Response time: 685 ms

Resolved: Front-end is back up in 732a813 after 16 minutes.

repo: tedvdb/feddit-status


text:
Improve structure of the packit config a bit

Add comments describing jobs.
Use consistent indentation.

/packit propose-downstream

How about employing a YAML formatter, e.g. one running in pre-commit time like https://github.com/jumanjihouse/pre-commit-hook-yamlfmt? There are 60 files with .yaml suffix, 10 .yml, and 646 .fmf files in the tmt repository, keeping consistent formatting might be a futile effort for humans. We can start slow as always, gradually cover directories until the whole repo is "protected".

How about employing a YAML formatter, e.g. one running in pre-commit time...

Nice idea!

/packit build

authors: happz lukaszachy psss

repo: teemtee/tmt


text:
[feat] Create a teia.art instance of the ipfs proxy

Describe the problem
Currently, teia.art is using https://ipfsproxy.teia.rocks/ as an IPFS proxy for nft.storage
Teia.art should have its own instance of the proxy
Describe the solution you'd like
Host an instance of https://github.com/teia-community/ipfs-upload-proxy on the teia.art infrastructure
Alternatives considered
No response
Additional context
No response

FYI. @jmagly

thx for posting, this is on my to-do list, first focusing on pinning, for gateway there are some options. cloudflare for example now has a paid IPFS tier.
owning the service is also possible

This is not for the gateway, this is for the upload of files to ipfs. Xat created this with the help of 852Kerfunkle so that we can hide our api key from the general public :)

ahhh a pinning gateway,  do i need to find a place to run it or is that already figured and we just need DNS?

Currently it's running in a container next to the indexer. But I think it would be better to run that on teia infra too (with a teia api key from nft.storage + maybe some rate limiting?).
This is what I did:
Dockerfile
FROM node:18-alpine

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY . /usr/src/app
RUN npm install

CMD [ "npm", "run", "start" ]

docker-compose.yml
version: "3"
services:
  ipfsproxy:
    build: .
    environment:
      - API_TOKEN=theapikey(or with a .env file)
    restart: unless-stopped

@Zir0h this can be closed right? 😄

Yes, we can see later when we have some funds to install a dedicated instance of every service :smile: The upload proxy is using a bearer token that merch gave me, so it's already on a .art account.

authors: NoRulesJustFeels Zir0h jmagly melMass

repo: teia-community/teia-ui


text:
how to disable cmd-tab

how to disable cmd-tab in the json file, any ideas?

You can't until #16 is implemented.

repo: tekezo/Karabiner-Elements

license: unlicense


text:
Keeps loading after selecting the address

When I select the address on the trezor connector it closes the window, comes back to https://www.omnitrezor.com/ but keeps loading forever.
Ubuntu and Chrome latest

@zeiv I "fixed" it by moving funds from the legacy account to the new account. My funds were on legacy and the issue no longer happens on the new wallet (not legacy)

Ah yes, that would make sense.  I should probably include a note about that somewhere... this tool creates a P2SH bitcoin transaction to facilitate the OMNI transaction, which are only supported by the new segwit accounts in Trezor.  I'm going to go ahead and close this but feel free to reopen if you need!

authors: filipehdbr zeiv

repo: tektite-software/omni-trezor


text:
I feel to build a long time

Each building will be stuck here for a long time have what way can a bit faster

Are you using kaniko？ @bibi520

yes

i think that you can upgrade kaniko version.

Do you use the latest version?

we use v0.24. which is faster. we open source dashboard in compass

Thank you. I'll try.

/kind question
/close

I switched to kaniko's version, but the more projects he builds, the longer he gets stuck

Stuck for three minutes

This happens from time to time

It's been nine minutes and we haven't started building yet

repo: tektoncd/pipeline