thread '' panicked at 'Encounterred a field that is not supposed to be indexed. Have you modified the index?'

Following instructions for tantivy-cli and encountered the following message:
100000 Docs
126767571 docs / hour
200000 Docs
61979511 docs / hour
300000 Docs
45240748 docs / hour
400000 Docs
80860935 docs / hour
500000 Docs
37683017 docs / hour
600000 Docs
43229461 docs / hour
700000 Docs
40245879 docs / hour
800000 Docs
53577161 docs / hour
900000 Docs
63745697 docs / hour
1000000 Docs
29509239 docs / hour
1100000 Docs
38593585 docs / hour
1200000 Docs
29582937 docs / hour
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
note: Run with RUST_BACKTRACE=1 for a backtrace.
1300000 Docs
37100076 docs / hour
1400000 Docs
34933046 docs / hour
1500000 Docs
50002639 docs / hour
1600000 Docs
36648185 docs / hour
1700000 Docs
43451182 docs / hour
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
1800000 Docs
36208233 docs / hour
1900000 Docs
36207170 docs / hour
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
2000000 Docs
34476517 docs / hour
2100000 Docs
37284904 docs / hour
2200000 Docs
34497714 docs / hour
2300000 Docs
51197990 docs / hour
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
2400000 Docs
35314496 docs / hour
2500000 Docs
35938516 docs / hour
2600000 Docs
35805693 docs / hour
2700000 Docs
45073260 docs / hour
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
2800000 Docs
40951638 docs / hour
2900000 Docs
32014644 docs / hour
3000000 Docs
53152959 docs / hour
3100000 Docs
41247139 docs / hour
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
3200000 Docs
48792619 docs / hour
3300000 Docs
44430117 docs / hour
3400000 Docs
23955508 docs / hour
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
3500000 Docs
35455778 docs / hour
3600000 Docs
42539936 docs / hour
3700000 Docs
39232883 docs / hour
3800000 Docs
36802974 docs / hour
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
3900000 Docs
32920675 docs / hour
4000000 Docs
35512050 docs / hour
4100000 Docs
42407731 docs / hour
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
4200000 Docs
59604287 docs / hour
4300000 Docs
42813997 docs / hour
4400000 Docs
40106933 docs / hour
4500000 Docs
48629958 docs / hour
4600000 Docs
41602207 docs / hour
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
4700000 Docs
43152739 docs / hour
4800000 Docs
39880076 docs / hour
4900000 Docs
33744674 docs / hour
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
5000000 Docs
40354826 docs / hour
Commit succeed, docstamp at 5032119
Waiting for merging threads
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
thread '' panicked at 'Encounterred a field that is not supposed to be
indexed. Have you modified the index?', /checkout/src/libcore/option.rs:823:4
ERROR:tantivy::indexer::index_writer: Some merging thread failed Error(ErrorInThread("Failed to join merging thread."), State { next_error: Some(Error(ErrorInThread("Merging thread failed."), State { next_error: None, backtrace: None })), backtrace: None })
thread 'main' panicked at 'called Result::unwrap() on an Err value: "Indexing failed : Error(ErrorInThread("Failed to join merging thread."), State { next_error: Some(Error(ErrorInThread("Merging thread failed."), State { next_error: None, backtrace: None })), backtrace: None })"', /checkout/src/libcore/result.rs:860:4
real	7m54.105s
user	22m39.868s
sys	3m58.152s
Steps to reproduce:
mkdir wikipedia-index
tantivy new -i wikipedia-index
See meta file here: meta.json.txt
time cat wiki-articles.json | tantivy index -i ./wikipedia-index
Do you need any further info?

Thanks for the bug report. It is perfect.
So the error message is complaining that you had a

directory with an empty index
indexed some documents
changed the schema
added some more document

is that correct?
A change of schema is not supported by tantivy.

When I first saw this message I had added the small dataset (http://fulmicoton.com/tantivy-files/wiki-articles-1000.json) and then later added the full 5m wiki-articles.json.    I suspected that this could have been an unsupported operation, so I deleted the wikipedia-index directory and then started from scratch following exactly the instructions in the tantivy-cli README.md.   I then saw the same errors as detailed above.   So in summary I have not changed the schema.
Please advise on how I can help track down the root cause.
Thanks

It supposedly should work just fine as long as you didn't change the schema... So this could be a bug. Let me try to reproduce.

Thanks.  Let me know if you need any more details from my system or want me to run any tests.
As a very minor issue, I notice that "encountered" is spelt with an extra 'r' in multiple places in the codebase:
https://github.com/tantivy-search/tantivy/search?utf8=✓&q=Encounterred&type=

I have been able to reproduce thanks.

The fix is on the way... I moved the issue to tantivy (as opposed to tantivy-cli).
Thanks for reporting it is a pretty shameful bug.

@dazzag24 Just published the fix in 0.4.2.
The binaries are on the way.

Hi,
I had built tantivy from source yesterday, but had installed tantiy-cli using "cargo install tantivy-cli".   Was tantivy-cli using the tantivy lib that I built or did it pull down it's own copy?
I have already done a "git pull" and a rebuild of tantivy since you submitted the fix earlier.
Thanks

I think it pulled its own copy.

OK. Thanks.
How do I pull the updated version in that case.
Thanks
Darren
On 19 July 2017 at 15:39, Paul Masurel<EMAIL_ADDRESS>wrote:

I think it pulled its own copy.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tantivy-search/tantivy-cli/issues/17#issuecomment-316408715,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAcV842TN7OAqASEIMHUIzrZBTQ7UYcks5sPhUOgaJpZM4ObiGe
.

I republished tantivy-cli too. So cargo install tantivy-cli should work fine now.
Alternatively I republished binaries for Mac OS and Linux. (The Linux one does not include any AVX2 instructions anymore.)

cargo install tantivy-cli
Updating registry https://github.com/rust-lang/crates.io-index
Downloading tantivy-cli v0.4.2
Installing tantivy-cli v0.4.2
error: binary tantivy already exists in destination as part of
tantivy-cli v0.4.0
Add --force to overwrite
So I had to use --force, but the indexing now seems to be working without
error.
Thanks
On 19 July 2017 at 15:46, Paul Masurel<EMAIL_ADDRESS>wrote:

I republished tantivy-cli too. So cargo install tantivy-cli should work
fine now.
Alternatively I republished binaries for Mac OS and Linux. (The Linux one
does not include any AVX2 instructions anymore.)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tantivy-search/tantivy-cli/issues/17#issuecomment-316410801,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAcVwCLaiyInmvJIuwKLhU9VvEbpvHJks5sPhavgaJpZM4ObiGe
.


Remove time filter in no-time-filter error example

The description following this query seems to indicate that it should not have a time filter, but it does.
So I removed it.

Oops! Dupe of #13.


Appdynamics Collector Widget

Rebased with production from December intern development at the University of Illinois Digital Campus Labs.

Do you have a description or any screenshots?

@MarkRx - here you go.

@satishc1 and @nireeshT - please accept this pull request when ready.  Please let me know if I need to bring anything current, I want to avoid too much code divergence after the last rebase.
Again, thank you both for all of your help.  It's been a learning experience for me.

@revelashaun  - PR is in review. We will get it merged at the earliest.

@revelashaun @tabladrum @nireeshT LGTM


Invalid tests in sw-precaching

Library Affected:
sw-precaching
The first four service workers under https://github.com/GoogleChrome/sw-helpers/tree/master/packages/sw-precaching/test/static/response-types have syntax errors in them.
https://github.com/GoogleChrome/sw-helpers/pull/197 included a change to the syntax of a number of service worker files, including the last two files in that directory.
Since those four files are used in tests that are supposed to fail, the test themselves are green, even though the failures are due to the syntax error and don't accurately reflect what's supposed to be tested.
The syntax in the service worker files needs to be updated as in https://github.com/GoogleChrome/sw-helpers/pull/197, and the tests should be revised to explicitly assert something about the err inside the .catch() block to ensure that they're failing for the expected reason. I.e.  the "NOOP" comment shouldn't actually be a NOOP:
return window.goog.swUtils.activateSW(`${STATIC_ASSETS_PATH}/response-types/404-unrevisioned-sw.js`)
.then(() => {
  throw new Error('Expected SW to fail installation due to caching 404 entry.');
}, (err) => {
  // NOOP - The error is not to do with the error throw in SW, so nothing
  // to check.
});

I tried a naive fix that checks for the appropriate error, but ended up triggering the ondeadlock handler in the helper method that cleans up IDB after each test. I'm not sure what's up with that...

Duplicate of #417


Error in java projects (jdtls.nvim)

Description
I've been using the plugin for months and it worked great for lua and js/ts, but now I have started working on Java and this error keeps poping the first time I open a Java project:
Error detected while processing LspAttach Autocommands for "*":
Error executing lua callback: vim/shared.lua:0: t: expected table, got nil
stack traceback:
	[C]: in function 'error'
	vim/shared.lua: in function 'validate'
	vim/shared.lua: in function 'tbl_contains'
	...pace-diagnostics.nvim/lua/workspace-diagnostics/init.lua:113: in function 'populate_workspace_diagnostics'
	/home/sebas/.config/nvim/lua/plugins/lsp-config.lua:290: in function </home/sebas/.config/nvim/lua/plugins/lsp-config.lua:251>
	[C]: in function 'nvim_exec_autocmds'
	/usr/share/nvim/runtime/lua/vim/lsp/client.lua:946: in function '_on_attach'
	/usr/share/nvim/runtime/lua/vim/lsp/client.lua:615: in function ''
	vim/_editor.lua: in function <vim/_editor.lua:0>

I'm using nvim-jdtls for the lsp stuff. I can of course disable the plugin for Java, as workspace diagnostics work by default, but I guess it would be better if it wasn't needed. Or it's expected by the user to select on which lsp to load the plugin?
Steps to reproduce

Create any Maven or Gradle project. No need to add code.
Open a java file in the project
Error (only the first time in the first file I open)

Expected behavior
Not having an error and just don't do anything, as it is not needed in this case.
Environment

Neovim version: Nightly
workspace-diagnostics version: latest
Plugin clash: nvim-jdtls?

This code assumes that lsp client.config.filetypes exists, but that's evidently not the case with jdtls. Could you run :lua= vim.lsp.get_active_client(), and paste here the output that corresponds to the client named jdtls?

You are right, it doesn't set a filetype as it's executed on filetype event so no needed (filetypes = { 'java' }, on lazy). I have to go now, but can try to post the client data later. Right now it's too large for a message and it gets cut off.

This code assumes that lsp client.config.filetypes exists, but that's evidently not the case with jdtls. Could you run :lua= vim.lsp.get_active_client(), and paste here the output that corresponds to the client named jdtls?

The roslyn server has the same issue, here is the client output for it (vim.lsp.get_active_client does not exist for me, so I used vim.lsp.get_clients() and filtered):
https://snips.sh/f/pe3PhTBOaH

vim.lsp.get_active_client does not exist for me, so I used vim.lsp.get_clients()

It's vim.lsp.get_active_clients() (I missed s at the end). However, vim.lsp.get_clients() does not exist for me. What's your nvim version?

vim.lsp.get_active_client does not exist for me, so I used vim.lsp.get_clients()

It's vim.lsp.get_active_clients() (I missed s at the end). However, vim.lsp.get_clients() does not exist for me. What's your nvim version?

Both exist for me :+1:

NVIM v0.11.0-nightly+e820474
Build type: Release
LuaJIT 2.1.1713773202

It looks like roslyn does not advertise file types. Instead it hooks itself on filetype event (just like jdtls):
https://github.com/seblj/roslyn.nvim/blob/5e36cac9371d014c52c4c1068a438bdb7d1c7987/lua/roslyn/init.lua#L256
Can't think of a good work around. We could just pass all project files in that case and hope the server won't fall over?

What I did was add the filetype manually. I think you can do that in the plugin setup like this
require("roslyn").setup({
    config = {
        filetypes = { 'cs' },
    },
})

In any case, I think it would be good for the workspace-diagnostics plugin to early return if it can't identify the filetype instead of crashing, maybe with a message so that people know why it doesn't work.

What I did was add the filetype manually. I think you can do that in the plugin setup like this

Ah, that's nice. I updated the docs.

instead of crashing, maybe with a message so that people know why it doesn't work

Done.

Btw, looks like jdtls is now setting config.filetypes.


sqlite: Avoid calling callbacks multiple times

Fails tests with cache on?

Fails tests with cache on?

ERROR WITH SQL:
BEGIN TRANSACTION;
REPLACE INTO store VALUES ('vynZtZ81CZvHG2doaUyfoovynZtZ81CZvHG2doaUy0', '{"a":1,"b":"|~5m{!{QGHQKbN>q{<K$cBeo5=/.yS#a%m#"}');

ERROR WITH SQL:
BEGIN TRANSACTION;
REPLACE INTO store VALUES ('vynZtZ81CZvHG2doaUyfoovynZtZ81CZvHG2doaUy0', '{"a":1,"b":"|~5m{!{QGHQKbN>q{<K$cBeo5=/.yS#a%m#"}');

Yeah, I know what the bug is, I'm just studying the sqlite3 code trying to determine what the proper fix is. (The sqlite3 docs aren't very good.)

Should be fixed now.


feat: fetch and display status

Fetch and display status with a link to the status page https://status.hiro.so/

closes #780

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


v5 RTL - StyleSheetManager, stylisPlugins and stylisRTLPlugin

Hello.
Off-topic:
Before everything I want to thank you for your amazing work and making the world a better place :)
Several years ago I had to add RTL support in a fairly big project and it was the biggest pain I've experienced :)
Now I had to do this again in a different project and while researching I got more than happy that SC provided an amazing solution to it.
On-topic:
Short problem description: stylisPlugins is not applied dynamically and never re-run;
Packages that I use:
"react": "^16.8.6",
"styled-components": "^5.0.0-beta.6",
"stylis-rtl": "^1.0.1"
"i18next": "^17.0.9",

I'm using "StyleSheetManager" and "stylisRTLPlugin" to accomplish the RTL support.
It's working if the website is initially loaded with rtl direction.
The problem is that "stylisRTLPlugin" has no "dir" detection so you either use it or not.
If you change the website language trough the UI from ltr language to an rtl nothing happens.
First I tried this:
import { StyleSheetManager } from "styled-components";
import stylisRTLPlugin from "stylis-rtl";

<StyleSheetManager stylisPlugins={props.dir === "rtl" ? [stylisRTLPlugin] : null}>
  <App />
</StyleSheetManager>

When I change the language in the website, the console says this:
"stylisPlugins are frozen on initial mount of StyleSheetManager. Changing this prop dynamically will have no effect."
Since we don't have any dynamic plugin mechanics, I tried something very dirty, I added key={dir} to the <StyleSheetManager>.
This of course solved some problems and created ton of others, like creating new styles in parallel of the old ones:
.SxmYk {
    margin-right: auto;
}

.SxmYk {
    margin-left: auto;
}

Currently my only solution is to refresh the page if I switch between languages with different "dir".
I'll be forever grateful if anyone can give me a solution to this case.

Hello @mario-iliev
First of all, I'm a beginner at this, first time trying to solve the RTL problem with styled-component.
I came across the beta for V5 while trying to solve it, but I find it hard to setup with nextjs without an example code, so it would be great of you could share your setup for me to play with.
It's working if the website is initially loaded with rtl direction.
The problem is that "stylisRTLPlugin" has no "dir" detection so you either use it or not.
If you change the website language trough the UI from ltr language to an rtl nothing happens.

If this is correct then I don't think it is possible to change direction at runtime, because the styles are missing from the loaded css.
To make it work at runtime, the css has to be already loaded, and you should have a css selector to detect if dir is LTR or RTL.
based on this solution here: https://github.com/styled-components/styled-components/issues/844#issuecomment-457568491
I wrote this: https://codesandbox.io/s/styled-components-rtl-5rl5v which adds 2 functions dir and dirLocal too sleepy to think of good names :p
If the whole site switches direction at once (layout) then it easy to do using the dir function, as long as you set dir="rlt" on the html tag.
Which I think should be easy, since i18next drops a cookie that you can read in _document.js
import { parseCookies } from 'nookies';
static async getInitialProps(ctx) {
...
      const cookies = parseCookies(ctx);
      initialProps.language = cookies['next-i18next'] || 'en';
      initialProps.direction = initialProps.language === 'ar' ? 'rtl' : 'ltr';
...
}
render() {
    const { theme, language, direction } = this.props;

    return (
      <Html
        lang={language}
        dir={direction}
...
}

Things get complicated if some part of the site are gonna have different direction, for example data loaded from database, in this case I'm thinking of adding a css selector the dynamic elements and target them using dirLocal, which adds css to the element if it has a "ltr" or "rtl" as class.
Finally, at runetime in the component that triggers the language change, you could directly modify the HTML dir attribute to trigger the css change.
document.getElementsByTagName("html")[0].setAttribute("dir", "rtl");
I hope somebody can provide a better solution to this problem.

Short problem description: stylisPlugins is not applied dynamically and never re-run;

Yes this is true and intentional for performance. If you need to switch this out I recommend putting a key prop on the StyleSheetManager and flipping it when you need to recalculate all the styles.

same problem here

@probablyup can you give a code snippet example please

For example.
<StyleSheetManager key={props.dir === "rtl" ? 'rtl' : 'ltr'} stylisPlugins={props.dir === "rtl" ? [stylisRTLPlugin] : null}>
   ...
</StyleSheetManager>

@ROUDALI your issue is something different I think.

Yes, i'm using StyleSheetManager in a Next.js project in order to call stylisRTLPlugin
example : (i'm using styled_components in componentStepper )
example : https://codesandbox.io/s/hello-world-1urec
GO to https://1urec.sse.codesandbox.io/about and start refreshing the page === (FOUC)
the problem is when i load the page in first ms it shows the page without style , then the style is loaded.

Try stylis-rtlcss, it also supports Directives to import lines or block of style


Error "unexpected folder structure" during zip import

When I try to import the following zip into a offline project, I get the error mentioned in the title.
Here is the zip: https://open.sap.com/files/f94c899c-62ae-4c79-81ff-c05d3b44c390
Reproduction:
+Offline
package $WTC1
create package $WTC1
Import
Select the zip
-> error
Happened on NW 7.30 and NW 7.51. abapGit version 1.67  2018-05-22T19:07:46.531Z
The same zip worked for sure with 1.60 or 1.61.

I think this is related to 1383. Can you either put all files and folders except .abapgit.xml into a folder named src or change the starting folder to /.

Can't reproduce it on my 7.51.

Can't reproduce it on my 7.51 with latest abapGit.

It still reproduces for me, a fresh 7.51 in a virtual box with the latest abapGit.
When I change the starting folder from the default /src to / then the import works. So the workaround does work.

the .abapgit.xml should be set via ZCL_ABAPGIT_REPO->FIND_REMOTE_DOT_ABAPGIT but I guess for some reason this does not work for ZIP files.
import zip code below, looks like FIND_REMOTE_DOT_ABAPGIT is called somewhere down in gui_deserialize. I currently dont have access to any test sytems, back in the office sometime during the weekend.
  METHOD import.

    DATA: lo_repo TYPE REF TO zcl_abapgit_repo_offline.

    lo_repo ?= zcl_abapgit_repo_srv=>get_instance( )->get( iv_key ).
    lo_repo->set_files_remote( unzip_file( file_upload( ) ) ).

    zcl_abapgit_services_repo=>gui_deserialize( lo_repo ).

  ENDMETHOD.

I also cannot reproduce the issue, @testitorleaveit can you try setting a breakpoint in below code, and paste the values for IV_PATH and the io_dot->get_starting_folder( ) ? Are you on windows using normal SAP GUI?

okay, this might be worth investigating, some of the zip stuff might not work as expected on Java/macOS

there is an issue somewhere, but we are not able to reproduce it, hence I will close the issue


Build fails

Details

Project URL: https://readthedocs.org/projects/tinamit/
Build URL (if applicable): https://readthedocs.org/projects/tinamit/builds/6364471/
Read the Docs username (if applicable): julien.malard

Expected Result
Documentation should build with no errors.
Actual Result
I received this message:
Erreur
There was a problem with Read the Docs while building your documentation. Please report this to us with your build id (6364288).
However, the documentation does seem to build somewhat.

Looks like you have a undefined variable
jinja2.exceptions.UndefinedError: 'theme_navigation_depth' is undefined

Just here https://github.com/julienmalard/Tinamit/blob/master/docs/source/_templates/layout.html#L140
But is kind of weird that the docs build.

Hello,
I copied the template directly from the RTD theme (which does compile in general) and only tweaked a few things to add support for right-to-left languages. Could that still be the problem?
Many thanks,
Julien Malard

દ્વારા: Santos Gallegos<EMAIL_ADDRESS>મોકલ્યું: 21 ડિસેમ્બર 2017 00:17:13
પ્રતિ: rtfd/readthedocs.org
Cc: Julien Malard; Author
વિષય: Re: [rtfd/readthedocs.org] Build fails (#3362)
Looks like you have a undefined variable
jinja2.exceptions.UndefinedError: 'theme_navigation_depth' is undefined
Just here https://github.com/julienmalard/Tinamit/blob/master/docs/source/_templates/layout.html#L140
But is kind of weird that the docs build.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/rtfd/readthedocs.org/issues/3362#issuecomment-353260397, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKMb68lzuEcJNweQi6vaJKN7s3u_TqLeks5tCenZgaJpZM4Q2k6l.

I think so, maybe you can try updating to the latest template, also seems like the recent failures are related to your project having unicode branch names, rtd don't support unicode branches at the moment,

Thank you! What more information should I provide?
I had opened an issue with regards to the filenames and was told that pull request #4052 should fix it.

@julienmalard You will need to delete or rename this branch https://github.com/julienmalard/Tinamit/tree/اظہر, maybe all this problems related to unicode will be fixed when rtd run python3 in production, please follow  https://github.com/rtfd/readthedocs.org/issues/3060 for updates

Closing this as the user hasn't responded or given more information, feel free to reopen with more information if you are still having this problem :).


Fix for router joinParams call

LGTM

When you have time,
can you open a PR to the original explaining why we did this?


Restore support for matplotlib<3.6

PR #999 depended on matplotlib's layout engine API, which was added in matplotlib 3.6.
Matplotlib is currently on 3.8, so normally this would be OK. However, the version of Pyodide we're using in Shinylive comes with matplotlib 3.5.2, so plots don't work at all on that platform -- it simply throws an error when fig.get_layout_engine() is called. This PR restores support for older versions of matplotlib.
@has2k1 I'm going to merge this soon to get the dev version of shinylive working again, but please take a look at the PR when you have a chance to make sure it looks good.

Retrospectively, this looks good.


Fix HTTP server errors when trying to do a HTTP redirect from components

Hi,
It's to fix this issue when doing HTTP redirections:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at ServerResponse.setHeader (_http_outgoing.js:482:11)
    at ServerResponse.header (/Users/XXXXXXXXXX/Documents/YYYYYYY/node_modules/express/lib/response.js:767:10)
    at ServerResponse.send (/Users/XXXXXXXXXX/Documents/YYYYYYY/node_modules/express/lib/response.js:170:12)
    at renderer.renderToString (/Users/XXXXXXXXXX/Documents/YYYYYYY/node_modules/@akryum/vue-cli-plugin-ssr/lib/app.js:119:15)
    at /Users/XXXXXXXXXX/Documents/YYYYYYY/node_modules/vue-server-renderer/build.dev.js:9536:15

It was not critical in the past (had this 2 years ago https://github.com/Akryum/vue-cli-plugin-ssr/issues/144#issuecomment-601103458), it was just logging things into the console. But since I upgraded some Vue dependencies the "simple log" is now something making the server crashes.
Note: my previous version of vue-server-renderer was v2.6.11 and I tried upgrading to v2.6.14. Don't know which change exactly breaks things... but it's fine with this PR 😄
So to avoid being stuck in a previous version I did a little trick to always respect values that could be passed to the res object.
Hope this helps even if the repo is no longer maintained.
In the meantime if you want to you it you can use a specific branch with some patches I made:
yarn add "@akryum/vue-cli-plugin-ssr@https://github.com/sneko/vue-cli-plugin-ssr#fix/http-redirections"

👍

Here was my hacky solution that didn't require changing the main libs:
in vue.config.js:
module.exports = {
  pluginOptions: {
    ssr: {
      onRender(res, context){
        if(context._routeRedirect){
          res.redirect(301, context._routeRedirect); // do the redirect
          const send = res.send; // store local reference to original send method
          // override send method to prevent headers from being sent
          res.send = function(){
            res.send = send; // restore the original send method for subsequent requests
          }
        }
      },
      ... other configs
    }
  }
}


My Laravel app will be slow when cannot connect to sentry server

Hi,
When I config wrong dsn url, Sentry server died suddenly
or my Laravel app cannot connect to Sentry server.
It will slower than normal.
How can I prevent it?
Thanks,

The best way is to setup Relay on the same server as your app.
Relay will act as a proxy between your app and Sentry (Relay can also be used for self-hosted instances) so your app will always be able to send events to Relay and Relay will always except them even if your Sentry instance is unreachable for whatever reason.
A little more info on it: https://docs.sentry.io/platforms/php/performance/#improve-response-time.


cpplint: 1.5.5 -> 1.6.1

Description of changes
Currently broken because of the switch to python 3.12.
cc @bhipple

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Hi! Just wanted to check on this PR. Anything blocking this PR from being approved/merged? It's currently failing my nixos build. Thanks!

No, unfortunately the test uses deprecated features. I started to patch it but I still have some bugs to fix...

All good man. Take your time and thanks for the PR!

I should have marked this as a draft as the package was not completely fixed. Sorry for the confusion.


Hello! This extension is awesome! ....

Hello! This extension is awesome! Could you post a version for Chrome and Edge.

Hi, I'm thinking of it. Will try to do it in next one-two weeks

Add a question:
At present, it is found that the translation window cannot be maximized. Please support the translation window to be maximized so that it will be more convenient to use. Thank you so much! 👍👍😜


Nuxt3 i cant change host

Environment

Operating System: Darwin
Node Version:     v14.19.1
Nuxt Version:     3.0.0-rc.14
Nitro Version:    1.0.0
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      devServer, runtimeConfig, purgeCSS, modules, image, meta, css
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction
https://codesandbox.io/p/sandbox/lucid-goldstine-mqy88l?file=%2Fpackage.json&selection=[{"endColumn"%3A23%2C"endLineNumber"%3A15%2C"startColumn"%3A23%2C"startLineNumber"%3A15}]
Describe the bug
as i check the documentation i added devserver and changed host but when i try to "yarn dev" its still opens host at default settings.
Am i missing any point here can anyone help me please?
Additional context
No response
Logs
No response

You are using quite an old version of Nuxt which does not support this option. Would you update to the current version (v3.4.2) and try again?


fixed bug that produced wrong overhang in linear, non-directional, single cut reactions.

Changes in this PR
fixed bug that produced wrong overhangs in linear, non-directional, single cut reactions.
Why are you making these changes?
There was a bug in CutWithEnzyme where in the case of linear, non-directional, single cut reactions, it would assume that the overhangs were produced by a forward facing cut site and return a sequence downstream. In the case of the cut being a reverse cut site it would return the wrong overhangs. This was fixed with a simple if-else
Are any changes breaking? (IMPORTANT)
There are no breaking changes.
Pre-merge checklist
All of these must be satisfied before this PR is considered
ready for merging. Mergeable PRs will be prioritized for review.

[x] New/changed functionality is thoroughly tested.
[x] New/changed functionality has a function giving an example of its usage in the associated test file. See primers/primers_test.go for what this might look like.
[x] Changes are documented in CHANGELOG.md in the [Unreleased] section.
[x] All code is properly formatted and linted.
[x] The PR template is filled out.

@TimothyStiles Why did you nuke the changelog in d0f6ab3?


bigger font size

Hello, quite interesting program. But is there a way to change the font and font size ?

As of right now there is no way to modify any kind of setting, but I agree it could use a bigger font indeed.
For now I just increased the size proportion, I hope it's better for you: https://github.com/zonetti/zonote/releases/tag/v0.4.0

Thanks. It’s better. It’s a little frustrating as when using the program the first thing coming in mind is "Well, how to customize this ?" :-)


Inverted slider

Summary:
I've added a "inverted" variable to slider for iOS. It allows to invert the slider direction.
It fixes issue #39 for iOS.
Test Plan:
You can set the "inverted" variable of a Slider component and it'll change its direction.
<SliderExample inverted />

@Iyoss Could you resolve conflicts so we can merge your pr :)?

@wojteg1337 sure, I'll try to do this in this week.


Bonus objectives for Crazy Cycle (Observability Apps)

Towards https://github.com/giantswarm/roadmap/issues/175

[ ] Do some PoC allowing us to stream logs from nginx IC in real customers' TCs to our loki
[ ] jaeger - deploy and collect traces (as optional, as we don't have explicit tracing instrumentation, so it won't be that useful)
[ ] move apps that we're happy with after the cycle from playground to giantswarm

Didn't manage to do this. Closing.


fuse mount broken for snapshots read from stdin

At the moment the fuse mount cannot be used to access files read from stdin:
 % ll ~/mnt/temp/snapshots/2016-09-17T12:33:35+02:00
ls: reading directory '/home/fd0/mnt/temp/snapshots/2016-09-17T12:33:35+02:00': Input/output error
total 0

I can't reproduce this error today, so I did a git bisect and found that it was accidentally resolved by 26da14f315fbfad09bc9e0fa10f16298fa2c0225.


can use in multi lora serving scene?

vllm multi lora use triton kernel， but performance drop out 30%～50%，can use mirage for better performance？

+1


Export Error Messages

Hi , In the current version one can click on the Errors link at the bottom left side of the screen which opens a new window with error and measure details. Is it possible to export all the measures errored along with the error message?  I tried copy/paste as well as right click on the gird, did not work. Finally I ended up with a screen grab and OCR it ?
Thanks
Anbu

I will consider a "Copy to clipboard" button in the error dialog. In the mean time, you can use the following script under the "Advanced Scripting" tab to output all error messages in a way where you can copy them to Excel:
var tsv = "Table\tMeasure\tErrorMessage";
foreach(var measure in Model.AllMeasures.Where(m => m.ErrorMessage != ""))
{
    tsv += "\r\n" + measure.Table.Name + "\t" + measure.Name + "\t" + measure.ErrorMessage.Replace("\n"," ");
}
tsv.Output();

Super. Thanks Daniel.


Unable to load class 'co.touchlab.skie.plugin.shim.ActualKgpShim'

What is the problem?
Compilation fails with:
Unable to load class 'co.touchlab.skie.plugin.shim.ActualKgpShim'
co.touchlab.skie.plugin.shim.ActualKgpShim
When does the problem occur?
During Gradle configuration phase while syncing the project
What versions of SKIE, Kotlin, and Gradle do you use?

SKIE: 0.7.1-preview.2.0.0-RC3
Kotlin: 2.0.0-RC3

Stacktrace: see SkieReportStacktrace.txt

Hi @bwalter089, I wasn't able to reproduce the issue. What Gradle version are you on? Would you be able to create a small reproducer project?

Thanks @TadeasKriz, I am using gradle v4.6. I will try different combinations and provide more feedback. And of course will try to isolate the issue (the project is large...).

Could you try with Gradle 8.7?

The issue remains the same with 4.7 (we use 4.6 because we are considering using Amper which does not support 4.7 yet, at least according to to https://github.com/JetBrains/amper/blob/release/0.3/CHANGELOG.md). I will experiment more and provide a more detailed feedback as soon as possible.

Do you mean 8.6?

In any case, I've been playing around with the 0.7.1-preview.2.0.0-RC3 and it seems like it's another case of Gradle Plugin Portal's terrible caching.

Awesome, it fixed the issue (./gradlew <myTask> --refresh-dependencies was needed instead of ./gradlew dependencies --refresh-dependencies). Thanks a lot! Hopefully you will find a solution for the caching issue with the Gradle team :)

Good to know that worked!
We couldn't find a real solution, so instead we plan to make SKIE Gradle plugin a fat jar, so there will be no dependencies that it could cache wrong.


merge upstream/master

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 5 committers have signed the CLA.:x: Arlo Bryer:x: dpp23:x: dgoade55:x: gurkanoluc:x: carlosjgpArlo Bryer seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

oops this was supposed to to be merged back into our repo :sweat_smile:


Dangerous behaivor when removing all content in the target directory

When running
lazybones create
it removes all content in target directory which is really dangerous (if you by accident run it again when you have added a lot of more code to the project).
Would be nice, and less error prone, to just overwrite or even better get a confirm prompt for each overwrite.

Thanks for the report, although I can't immediately see from the code where this is happening. The unzipping certainly does overwrite any files that already exist, basically on the assumption that you're always creating a new project from a template. Is that the specific issue you're seeing? Or does lazybones create ... actually delete all content from the target directory?

Thanks for the answer:
It removed all directories, or as it seems, only if there are any directories that the new templates doesn´t also have. You can easy reproduce this by running:

Run: lazybones create afterburnerfx afp

Hit return on all default values

Run: ls afp/src/main/java/org/example/  # shows all the newly created content
Run: touch afp/src/main/java/org/example/MyClass.java # to create a new content
Run: lazybones create afterburnerfx afp
Hit return on all EXCEPT package, enter for example short package 'examples'
Then, everything under afp/src/main/java/org/** is wiped

I followed these instructions but couldn't reproduce the issue with either v0.7 or 0.8.1. What version are you using? And which platform? Perhaps it's platform-specific for some reason.

It's is not a problem with lazybones. But the afterburnfx template moves everything under src/main/java to the specified package appending the projectname to each file. Including the old package from the previous create.
Before:
└✪ tree afp/
afp/
├── build.gradle
├── gradle
│   ├── javafx.gradle
│   └── wrapper
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── pom.xml
├── README.md
└── src
    └── main
        ├── java
        │   └── org
        │       └── example
        │           ├── AfpMain.java
        │           ├── AfpPresenter.java
        │           ├── AfpService.java
        │           ├── AfpView.java
        │           └── MyClass.java
        └── resources
            └── org
                └── example
                    └── afp.fxml

After the second create with example as package:
└✪ tree afp/
afp/
├── build.gradle
├── gradle
│   ├── javafx.gradle
│   └── wrapper
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── pom.xml
├── README.md
└── src
    └── main
        ├── java
        │   └── example
        │       ├── AfpMain.java
        │       ├── Afporg
        │       │   └── example
        │       │       ├── AfpMain.java
        │       │       ├── AfpPresenter.java
        │       │       ├── AfpService.java
        │       │       ├── AfpView.java
        │       │       └── MyClass.java
        │       ├── AfpPresenter.java
        │       ├── AfpService.java
        │       └── AfpView.java
        └── resources
            ├── example
            │   └── afp.fxml
            └── org
                └── example
                    └── afp.fxml

Alright, it's the afterburnfx doing this then, sorry pledbrook for wasting your time and thankt ancho


Add Observability feature for version 1.1.10

Description:
At the moment Observability feature[1] is available for versions 2.10, 2.2.0, 2.5.0 and 2.6.0 except for 1.10.0 We have to enable this feature for version 1.10.0.
Affected Product Version:
APIM 1.10.0

Unable to patch this for patch only APIM versions


Feature request: Parse raw request to ffuf options

CLI flags -request and -request-proto should be added to parse a raw request into ffuf options.
The -request-proto is used to define the protocol to use as the raw HTTP request itself does not include that information. The possible values being http and https, defaulting to https. This option should only be used in conjunction with -request.
Options to parse in from the raw request file:

Method
Host
Headers
Body (POST/PUT/etc. data)

The parsing should be handled prior to applying other command line parameters to the configuration structure to allow the user to override some of the values in the parsed request.
As an example, a raw request file:
GET /FUZZ HTTP/1.1
Host: example.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
DNT: 1

Would be parsed into ffuf configuration structure equivalent of:
ffuf -u https://example.org/FUZZ -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Accept-Language: en-US,en;q=0.5" -H "DNT: 1"

With the addition, and the raw request example file above, this would result into a ffuf command:
ffuf -request rawrequest.txt -w wordlist.txt

Changing the protocol to http instead of the default https would be done by:
ffuf -request rawrequest.txt -request-proto http -w wordlist.txt

Overriding the host to connect, the URL component and the protocol (but not the Host header!) could be handled by:
ffuf -request rawrequest.txt -u https://ffuf.io.fi/FUZZ -w wordlist.txt

And overriding only the Host header could be handled by:
ffuf -request rawrequest.txt -H "Host: somethingelse.tld" -w wordlist.txt

This issue has a $100 bounty attached to it.

This is super cool!

Hey, I tried to solve this in pr #137. Let me know if that's what we want.

Correct me if I'm wrong, but Host overriding does not appear to work? Specifically, when using a request file with the following command:
$ ffuf -request req.txt -u https://FUZZ/ -w hostnames.txt
where req.txt:
GET / HTTP/1.1
Host: target.com

and hostnames.txt is a list of fqdns, the requests are genenrated as such:
Host: FUZZ

Ffuf connects to the hostname found in hostnames.txt and not the one in the Host of req.txt. Am I misusing the feature or is this not supported?
Thanks!

i have same problem here

Give the $100 back !
🤣


test: workflow and example

In this PR I added the simplest possible e2e test workflow by creating some files with imports and loading the plugin itself to run eslint

ping @jordansexton

Thank you!


Added Recursive Linked List Reversal Code

Hello respected Sir,
I have added a well written and structured code for "Reversal of Linked List using Recursion". If you feel like it is worth it, then please merge it with the Hactoberfest tag. If any changes are required then please inform me.
Regards,
Debanjan Poddar
@Shubhamrawat5

Alright!


Playground Error: Audio files cannot be non-interleaved

In the OS X Playgrounds that use audio files, I'm receiving the error log below:
2016-06-17 18:14:52.842 com.apple.dt.Xcode.PlaygroundStub-macosx%5B22544:697006%5D Audio files cannot be non-interleaved. Ignoring setting AVLinearPCMIsNonInterleaved YES.
AKAudioPlayer Warning:  "drumloop.wav" is an empty file

@laurentVeliscek, could this be related to some of the changes you've made to AKAudioPlayer?

it seems to be. I gonna check this.
2016-06-18 0:20 GMT+02:00 Nick Arner<EMAIL_ADDRESS>
In the OS X "Balancing Nodes" Playground, I'm receiving the error log
below:
2016-06-17 18:14:52.842 com.apple.dt.Xcode.PlaygroundStub-macosx%5B22544:697006%5D Audio files cannot be non-interleaved. Ignoring setting AVLinearPCMIsNonInterleaved YES.
AKAudioPlayer Warning:  "drumloop.wav" is an empty file
@laurentVeliscek https://github.com/laurentVeliscek, could this be
related to some of the changes you've made to AKAudioPlayer?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/audiokit/AudioKit/issues/418, or mute the thread
https://github.com/notifications/unsubscribe/ASTVrptV6uSNzi-oYhjFtoFUmpwa0v_Jks5qMx21gaJpZM4I4xqd
.

Okay !
I found where it came from. A specific init for AKAudioFile that lets you use a string file path is missing.
I will work tomorrow on AKAudioFile and AKAudioPlayer. Will be fixed I promise. :-)

I believe I've fixed most of the playgrounds on the develop branch. @narner if you want want to check them again, that would be great.

@aure I've pulled from develop, deleted the Derived Data folder, and rebuilt the framework in the OS X playgrounds. Seeing errors like this:
AKAudioPlayer Warning:  "guitarloop.wav" is an empty file

Restored those files, should work again.

@aure All working as expected. Thanks for catching that.


For UTXO Management add a Fiat valuation of the UTXO

Would it be possible to have some sort of Toggle or Option on the UTXOs tab that would allow you to see the Sats Value in fiat ?  This would help in UTXO consolidation, especially with those that might of  been DCAing small sat amounts into their wallets or people who just want to organize their UTXO set into various fiat denominations.
Waiting for the day when my grocery store has Sats shelf tags so I know what Sats number is in terms of a price of a apple, etc. But until then its a Fiat world unfortunately.

Please see https://github.com/sparrowwallet/sparrow/issues/1095#issuecomment-1712950736

I respect that, Thanks for your comment


[cursor] possible zero-based column behavior in cursor

hello! I noticed ddu-source-rg started placing the cursor one column too early. For example when searching for the word filter and selecting this matching line from the ddu-source-rg docs:
    " "ddu-filter-converter_display_word".

the cursor should be on the f in filter (column 12) but instead it is on the dash in column 11. I have checked ddu-source-rg and ddu-kind-file and see the expected column 12 value in both those places, when defining and executing an action respectively.

I'm not sure what is the issue here but the column in the cursor starts from 1 as the documentation mentioned. This is Vim's design and denops does not touch that.
https://github.com/vim-denops/deno-denops-std/blob/cf25ec010f2b8abf93ba5c278898f27432b32f3e/denops_std/function/cursor.ts#L168-L169

OK.   Reproduced.  It is not the problem of denops.vim.
It is the problem of ddu-kind-file.

@dmfay Please update ddu-kind-file.


(analytics): Frontend updates for Application dashboard and data source CRUD v2

Proposed changes

Dashboard options:

Clone
Download
Configure

Bug and style fixes on application dashboard
Data source create v2
Data source update v2
Create dashboard v2

Pre defined
Custom
Upload
Integration with series and label values API for autocompleting / suggesting metric queries
Resource discovery integration for automated query generation based on prometheus labels (to be also used for selection on app. dashboard)

Update dashboard v2

Edit metadata
Edit panels
Edit queries
Custom Prometheus mode using Ace editor with prometheus highlight rules, theme, prometheus query functions and series / label / value completions.

Added portal-dashboards directory in the monitoring folder

Types of changes

[x] New feature (non-breaking change which adds functionality)
[x] Bugfix (non-breaking change which fixes an issue)

Checklist

[x] I have read the CONTRIBUTING doc
[x] I have signed the commit for DCO to be passed.
[x] Lint and unit tests pass locally with my changes

Dependency

PR #2889

Special notes for your reviewer:
App. dashboard (with data source) CRUD v2 PR #2

Also, Since the overview tab has changed entirely now, please update it here as well

Please fix the package-lock.json

@rajdas98 on running the npm install command i am getting these changes, should i just revert to master and send without running it?

Please fix the package-lock.json

Fixed using lts PTAL @rajdas98

@Saranya-jena i have removed as much disabled lint checks as possible but some are purposely placed.


It doesn't work with modules (dynamic feature modules)

I have added to class path :
classpath ("org.lsposed.lsparanoid:gradle-plugin:0.4.4")
Module build gradle file:
apply plugin: "org.lsposed.lsparanoid"
lsparanoid {
            enabled = true
            //includeSubprojects = true
            global = true
        }

Seems to works fine, but when i try to import the class for @Obfuscate inside a module's kotlin file it seems to not being able to recognize the plugin. It says me to import classpath ("org.lsposed.lsparanoid:gradle-plugin:0.4.4") to the class path, but it is currently added.
@Obfuscate
class testClass: testClassAbstract() {

}

It throws unresolved reference

add dependent

@vvb2060 , @yujincheng08 will this feature be available? Because most of Android project are supporting dynamic feature modules so without that support it is useless.
P.s original Paranoid works great with modules.

any example project that reproduces it?
BTW, you hv set global = true. Using annotation then is meaningless.

@yujincheng08 the project is huge. But can be reproduced in simple ways.
Create an Android project and add '@Obfuscate' to the main class activity/fragment.
Add a dynamic feature module to this android project and try to add '@Obfuscate' anotation to any kotlin/java class file inside that dynamic feature module.

@yujincheng08 the dynamic feature modules contains: apply plugin: "com.android.dynamic-feature" but i see that you have disabled the ability to obfuscate android-library too?
So this plugin only obfuscate app class files and not modules or library classes?

0.4.5 shod work


Error: 'en' is not an installed language. // Mac os

Argos cant packages in ~/.local/share/argos-translate/packages, but they are there

Fuck... need the unzip each model

Packages are downloaded to ~/.local/cache/argos-translate/downloads/ then unzipped into ~/.local/share/argos-translate/packages/. See XDG Spec.


NA

Hi! Does your changing the title to "NA" mean that resetting is working for you now? If so, you can click "Close" on this issue to close it and have it no longer appear. :sunny:


API to Parse Public Cloud image names

@chajain There is a pint name check tool in mashouse that you might want to add for your tests. Basically it uses the pint cli  to retrieve all active and inactive names and makes sure it process them.  In your case we might need to test deprecated and deleted names as well.

Also note the license, this code is licensed Apache2 to be compatible with pint, the pre-amble of all source files still references GPLv3 which applies to the other SUSE internal project.

I do not see a .gitignore.  I think it would be useful a I see this .
git status
On branch imgpar
Untracked files:
(use "git add ..." to include in what will be committed)
.tox/
.venv/
imagenameparser.egg-info/
imagenameparser/pycache/
imagenameparser/api/pycache/
tests/pycache/

@rjschwei I have addressed your feedback. Please re-review at your convenience. Thank you!

@rjschwei I added all the missing license pre-amble and other updates. Please take a look at your convinience. Thaks.


Different implementation of paper's equation for getting probability?

def generate_probabilities(alpha, beta, x):
    """Generate probabilities in one pass for all t in x"""
    p = [alpha / (alpha + beta)]
    for t in xrange(1, x):
        pt = (beta + t - 1) / (alpha + beta + t) * p[t-1]
        p.append(pt)
    return p

Paper:

I saw now it's due to indexing difference


Avoid using Workers for Vault and Identity

Remove Profile
Rename Entity -> Profile
Implement Profile by using ProfileState wrapped in Arctokio::sync::RwLock

TODO:
Get rid of any Entity mention

Since this changes the examples in guides. Let's discuss alternate names for Profile before we merge this.
Need to think about this more but some candidates - IdentityProfile, Identity or Identifier.

Landed in #2476


Generic Clipboard API

Current GLFW has the function glfwSetClipboardText() and glfwGetClipboardText(), but the underlying system clipboard APIs are significantly more powerful:

They allow you to offer multiple different formats of the data, e.g. text, image, binary blob.
They allow you to defer the encoding of this data until it is actually requested by another application (when the user tries to paste in another application).

We could add support for this by expanding the API. I am happy to work on this, but would like some feedback first. Here is my proposed API.
Clipboard Offer Objects
We could have an opaque structure GLFWcboffer, which is used to define offers to the clipboard. We would create it with a user-defined data pointer, and a "cancel" callback.
typedef void (* GLFWcboffercancelfun)(void* userdata);
GLFWAPI GLFWcboffer* glfwCreateClipboardOffer(void* userdata, GLFWcboffercancelfun cancelCallback);

The cancel callback is invoked when the app loses ownership of the clipboard (another app inserted something into it).
Offering different types
On some platforms like Windows, there are some standard predefined types such as "text" and "bitmap", whereas on other platforms there are no predefined types and we provide the MIME type of the data instead. To make the API generic, we need special handling for those predefined types, as well the ability to add custom types. In each case, we pass a "send" callback function, which will be called to provide the data when it is needed. For strings we can have this:
typedef char* (* GLFWstringsendfun)(void* userdata);
GLFWAPI void glfwOfferString(GLFWcboffer* offer, GLFWstringsendfun stringSendCallback);

GLFWstringsendfun could return a heap-allocated UTF-8 string, which GLFW will then free(). On Windows this would encode the string into UTF-16 (as glfwSetClipboardString() already does) and add it to the clipboard as CF_UNICODETEXT, whereas on Wayland it would offer it as text/plain;charset=utf-8 (again, as the existing API already does). The main difference would be that it is deferred.
We could have a similar API for offering images, but I haven't looked into it yet (there is no API for storing images in the clipboard yet, but some people have proposed them).
We could have a generic "binary blob" API as well, which could look like this:
typedef void (* GLFWblobsendfun)(void* userdata, void** outptr, size_t* outsize);
GLFWAPI void glfwOfferBlob(GLFWcboffer* offer, const char* mimetype, GLFWblobsendfun blobSendCallback);

The callback would set *outptr to point to a heap-allocated buffer with arbitrary binary data, and *outsize to its size in bytes. GLFW would free the buffer. mimetype would be used to identify the type. On Wayland it would simply pass the MIME type through, on Windows it would call RegisterClipboardFormat() to assign an ID for the mime type and then pass that through.
Acquiring the clipboard
After adding callbacks for one or more types to the offer, a function like this would be used:
GLFWAPI void glfwAcquireClipboard(GLFWwindow* window, GLFWcboffer* offer);

This function would take ownership of the offer. When another application tries to paste a specific type, the appropriate "send" callback is invoked. If another application changes the clipboard content, the "cancel" callback will be invoked.
Getting the clipboard data
We could have separate functions for getting clipboard data in various formats. The existing glfwGetClipboardString() could be used to read strings as before. We could add a function for reading binary blobs too:
GLFWAPI void glfwGetClipboardBlob(GLFWwindow* window, const char* mimetype, const void** outptr, size_t* outsize);

The returned pointer would be valid until the next call to any of the GetClipboard functions.
Fallback
There is a good fallback mechanism for any backend that cannot support all of the features. For example, if a backend only supports copying strings, then glfwAcquireClipboard() could simply immediately invoke the string send callback, and send over the string.
Example: glfwSetClipboardString
With this API, glfwSetClipboardString() could be reimplemented like this (ignoring error handling):
static char* sendString(void* userdata)
{
    return strdup(userdata);
}

GLFWAPI void glfwSetClipboardString(GLFWwindow* window, const char* string)
{
    GLFWcboffer* offer = glfwCreateClipboardOffer(strdup(string), _glfw_free);
    glfwOfferString(offer, sendString);
    glfwAcquireClipboard(window, offer);
}

Use cases
This is a more efficient way of copying large amount of data, is supported by all major operating systems, and allows other types of data to be sent (such as binary blobs) and not just text. One example of where this would be useful is this PR I've raised against Goxel:
https://github.com/guillaumechereau/goxel/pull/395
Furthermore, SDL3 has added support for this as well:
https://wiki.libsdl.org/SDL3/SDL_SetClipboardData
Let me know of any comments or suggestions, and I'll be happy to begin implementing this.

#2636 is related; it's a much lower-level solution that puts most of the work on the client, but allows client to implement this functionality for X11 within GLFW.


deno.land module not found

Describe the bug
The deno.land url 'https://deno.land/x/xata/mod.ts' mentioned in the docs does not work, it returns an http 404 error.
deno run main.ts
Download ⠴ https://deno.land/x/xata/mod.ts                                                                                Warning Implicitly using latest version<EMAIL_ADDRESS>for https://deno.land/x/xata/mod.ts
error: Module not found "https://deno.land/x/xata/mod.ts".
    at file:///Users/kostas/import/src/xata.ts:2:60

Workarounds
Meanwhile, users can use any other Deno compatible CDN like esm.sh: https://esm.sh/@xata.io/client?target=deno

I'm trying to get the mod.ts file to work, but doesn't locally nor re-exporting from another CDN.
I think it's probably better to update the docs pointing to: https://cdn.skypack.dev/@xata.io/client?dts


Direction

I manually tested this branch. The cursor is significantly improved. It works fine with the mouse cursor now. Thanks!
But I find it still has issue with the rtl space. For example, if you type something شسيب then type space, the cursor doesn't move.  Can we merge this branch first and then keep working on it?

Also I found if you use arrow key to navigate through words mix of ltr and rtl characters, you will get quite weird behavior -- different from what I tried in a  rtl textarea.

This branch was mostly written by last year's Summer of Code student, but he never really finished it properly or added tests, and I don't want to merge it in the state it is currently in. This is extremely tricky code, so finishing and merging it would take some time and energy. I have been too busy to take this time. If you are part of an organization that can allocate some money for this, that would help, I guess. If not, I guess I'll eventually feel bad enough about this to work on it, but that might take a while.

BTW, for anybody stumbling upon this issue in Google, it seems that CodeMirror does now support bi-directional text:
https://codemirror.net/demo/bidi.html


[France] Wrong OfficialHolidays

I have some troubles with France official holidays
The GoodFriday (25-03-2016) and  stStephensDay (26-12-2016) aren't official holidays
It's true for "Alsace-Moselle" but not for all France
Nice idea this lib :+1:

Thanks for the feedback. Let me have a look. It has been a while when France was added :)

Just checked and you are right. In case a country has regional holidays I implement separate regional holiday providers. Since that takes a bit more time, I will remove these two holidays then from France. Later will add a separate holiday provider for Alsace and Moselle.

@R2c Looking on the page https://fr.wikipedia.org/wiki/Fêtes_et_jours_fériés_en_France#Tableau_r.C3.A9capitulatif I don't see Alsace, but do see Moselle mentioned. In France are some holidays observed by département or rather region?

In France are some holidays observed by département or rather region?
No, but we have just one expection for 3 départements "Moselle, du Bas-Rhin, du Haut-Rhin".
Bas-Rhin, du Haut-Rhin == Alsace
"I will remove these two holidays then from France. Later will add a separate holiday provider for Alsace and Moselle."
:+1: :+1:

Thanks! Let me then add separate holiday providers by département (similar to the Spain implementation).

Fixed issue for France as Good Friday and St. Stephens Day were defined as official holidays. These aren't national holidays and are only observed in the French departments Moselle, Bas-Rhin and Haut-Rhin. With this fix, these holidays have been removed from the France Holiday providers and new providers for the departments Moselle, Bas-Rhin and Haut-Rhin are added.


Decide if the nodes should repost data to IPFS by default

per comment in #232, nodes currently only re-post data that they request to IPFS, but we need to decide if they should also re-post data that gets repaired during rsmt2d.RepairExtendedDataSqaure.
I also think this question could be phrased: What do we expect from full-nodes, and should that be the default?

closing cause IPFS is not part of this repo any longer


Issue #88: use standard logging instead of print

Description

add QuantumProgram.enable_logs() and disable_logs() as the single point of entry for setting/unsetting the verbosity of the output, replacing the different verbose and silent parameters.
add a qiskit._logging module that contains two convenience functions for setting up the loggers (format, handlers) to be used by the SDK, defaulting to sensible values.
replace print() with logger.info() (or logger.debug() on the mapper)

Not included in this PR:

replacement of verbose/silent and print in qiskit.tools (might be well suited for a follow-up first contribution PR)
fine grained decision about what current output should be INFO/WARNING/DEBUG
allowing the user to override the logging format (might be better tackled along with a bigger scope PR that introduces some sort of user configuration mechanism)

Motivation and Context
As described in #88, there are a number of drawbacks to using print statements, specially on a SDK. Since a number of functions can emit log information, it changes the way "verbosity" is requested or specified by the user: now the user should call:
qp = QuantumProgram()
... (operations where he is not interested in the output)
qp.enable_logs()
... (from that point onward, the operations will be print its output)
qp.disable_logs()
.... (optionally, hide the output from that point onward)

This is mostly because it is not recommended that a library modifies the configuration of the loggers directly:

(...) the configuration of handlers is the prerogative of the application developer who uses your library. The application developer knows their target audience and what handlers are most appropriate for their application: if you add handlers ‘under the hood’, you might well interfere with their ability to carry out unit tests and deliver logs which suit their requirements.

but at the same time trying to cater to users who want an easy way to "toggle the output" of specific snippets of their code and mostly just use QuantumObject directly.
How Has This Been Tested?
make test. I would love to have some feedback and extra manual testing as it is very likely that the regular output is a bit more verbose than it was and there might be some formatting issues.
Screenshots (if appropriate):
Types of changes

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

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Looks good to me!

Updated the PR with changes spawned from the most recent discussion:

reverted get_execution_list() in order to use print directly, as it is meant to be used only during interactive sessions.
update the default logger configuration so INFO messages are printed without the extra timestamp, module, and level prepended string.

As a follow-up to this PR, we should eventually:

tackle the remaining print statements in the following files. Some of them might be false positives:

qiskit/qasm/_node/_creg.py
qiskit/qasm/_node/_id.py
qiskit/qasm/_node/_indexedid.py
qiskit/qasm/_node/_intnode.py
qiskit/qasm/_node/_node.py
qiskit/qasm/_node/_qreg.py
qiskit/qasm/_node/_real.py
qiskit/qasm/_qasmlexer.py
qiskit/qasm/_qasmparser.py
qiskit/qasm/_qasm.py
qiskit/tools/apps/optimization.py
qiskit/tools/qcvv/tomography.py
qiskit/tools/qi/pauli.py
qiskit/tools/visualization.py

decide the level of the messages on a case-by-case basis. The output might be too verbose for some operations, and only useful for debugging or getting very fine-grained information.
revise the places where messages are emitted because of an Exception or an error, and consider using logger.exception in those cases.


Type specification error for type PublishRequest<TBody = BodyInit>['contentBasedDeduplication']

Hi,
We have noticed a strange behaviour when trying to avoid deduplication on message publishing, for a specific use-case.
The type specification describes the property contentBasedDeduplication of the messaging publishing requests, given by the type PublishRequest as a boolean with default false. But when parsing the js request object properties to the Qstash HTTP request headers it sets the value to "true" whenever the value in contentBasedDeduplication is not undefined. So when passing contentBasedDeduplication as false, it stills set the header value to true, deduplicating the message anyway.
(See: https://github.com/upstash/qstash-js/blob/main/src/client/utils.ts#L50)
IMO although an easy workaround would be passing undefined, or not passing the value at all, it should set the value to what the user passes, accordingly to the type specification.

Hi there,
There seems to be an issue in how we set the Upstash-Content-Based-Deduplication header like you said.
We will fix it to work like this:
if (request.contentBasedDeduplication) {
  headers.set("Upstash-Content-Based-Deduplication", "true");
}


Clarify the sentence about dropping Neovim 0.4.4 support

This might seem like pointless nitpicking, but someone on Matrix actually read this sentence in the README to mean "Once Neovim 0.5 is released, support for all versions >0.4.4 (i.e., including 0.5) will be removed". This doesn't seem to me to be a meaningful interpretation, but it's true that the sentence is ambiguous if you read it literally. Hence this patch.

Ah thanks for the PR, haven't looked at that in a while. I anticipated changing more since then which hasn't happened so no need for the breaking change yet. Happy to leave it in there for now as it will probably be removed in the future


Logo Proposal

Greetings, @Kongsea
I'm an open source enthusiast, and just noticed you've just started this project!
I wanted to collaborate! I'd like to propose a logo for free
If thats something that might interest you, let me know!
Graphic Designer - Luigi.
Cheers!

Thank you for your proposal.
But this project is just a toy one, it's not a complete project.


AttributeError: 'NoneType' object has no attribute 'update'

运行的时候报如下错误：
File "E:\deeplearning\software\Anaconda3\lib\copy.py", line 306, in _reconstruct
y.dict.update(state)
AttributeError: 'NoneType' object has no attribute 'update'
有遇到的吗，求解答？

谢谢您，
能否留下完整的运行哪个脚本或者程序得到的这个错误的？

@rockingdingo 您好，我的也遇到了这个错误，我使用的是deepnlp 的textsum模块，在python2.7+tensorflow1.0中可以运行，但是在我目前的虚拟环境：python3.4+tensorflow1.3和python2.7+tensorflow1.3中均无法运行，报了上述同样的错误，我现在把打印信息贴给您一下
=========================================================================
(py27tf13) k**@k**-pc:~/Workspace/model_deepnlp/deepnlp/textsum$ python predict.py
Traceback (most recent call last):
File "predict.py", line 171, in
tf.app.run()
File "/home/kinlon/Workspace/virtual-env/py27tf13/local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "predict.py", line 153, in main
decode()
File "predict.py", line 40, in decode
model = create_model(sess, True)
File "/home/kinlon/Workspace/model_deepnlp/deepnlp/textsum/headline.py", line 142, in create_model
forward_only=forward_only)
File "/home/kinlon/Workspace/model_deepnlp/deepnlp/textsum/seq2seq_model.py", line 169, in init
softmax_loss_function=softmax_loss_function)
File "/home/kinlon/Workspace/virtual-env/py27tf13/local/lib/python2.7/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py", line 1206, in model_with_buckets
decoder_inputs[:bucket[1]])
File "/home/kinlon/Workspace/model_deepnlp/deepnlp/textsum/seq2seq_model.py", line 168, in
self.target_weights, buckets, lambda x, y: seq2seq_f(x, y, True),
File "/home/kinlon/Workspace/model_deepnlp/deepnlp/textsum/seq2seq_model.py", line 145, in seq2seq_f
dtype=tf.float32)
File "/home/kinlon/Workspace/virtual-env/py27tf13/local/lib/python2.7/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py", line 848, in embedding_attention_seq2seq
encoder_cell = copy.deepcopy(cell)
File "/usr/lib/python2.7/copy.py", line 174, in deepcopy
y = copier(memo)
File "/home/kinlon/Workspace/virtual-env/py27tf13/local/lib/python2.7/site-packages/tensorflow/python/layers/base.py", line 487, in deepcopy
setattr(result, k, copy.deepcopy(v, memo))
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
y.append(deepcopy(a, memo))
File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
y.append(deepcopy(a, memo))
File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
y.append(deepcopy(a, memo))
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 237, in _deepcopy_tuple
y.append(deepcopy(a, memo))
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct
state = deepcopy(state, memo)
File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
y = copier(x, memo)
File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
y = _reconstruct(x, rv, 1, memo)
File "/usr/lib/python2.7/copy.py", line 343, in _reconstruct
y.dict.update(state)
AttributeError: 'NoneType' object has no attribute 'update'

@linmufeng See my comment in https://github.com/tensorflow/tensorflow/issues/11157#issuecomment-353725791. It solves this problem too.


1.0.1

Coverage remained the same at 100.0% when pulling 0dd2853b5796336aa4f524104b5d34b8a104c780 on 1.0.1 into 52df85a1409c421a81f995bbf1a8eeebde2b9830 on master.


Wrong 'ANALYTICS' link

Change this link to runeyield.info please, because it opens link to bnb analytics

@SonyaDolmatova Pls share urls for MCTN and MCCN we can use to link an user address. I could not find anything for MCTN at runeyield.info or do I miss something ...

@SonyaDolmatova Pls share urls for MCTN and MCCN we can use to link an user address. I could not find anything for MCTN at runeyield.info or do I miss something ...

Not sure if MCTN is needed. What i meant was: This 'ANALYTICS' link opens analytics for Bepswap, for tracking Binance blockchain, but this is Asgardex, so it should open RUNEYIELD.INFO for tracking MCCN LPing.


Feature/validate/115

https://github.com/TinkoffCreditSystems/stapp/issues/115

Pull Request Test Coverage Report for Build 352

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 351:
0.0%

Covered Lines:
539

Relevant Lines:
539

💛  - Coveralls

Pull Request Test Coverage Report for Build 352

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 351:
0.0%

Covered Lines:
539

Relevant Lines:
539

💛  - Coveralls


Pay attention to RabbitMQ and AMQP 1.0

If you plan to use RabbitMQ rather than Service Bus in development, by interfacing with AMQP 1.0, pay attention to this :
The equivalent of Service Bus topics in RabbitMQ are Header Exchanges. But those are not compatible with the AMQP 1.0 plugin provided by RabbitMQ.
see https://github.com/rabbitmq/rabbitmq-amqp1.0#message-properties-annotations-headers-etc

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

ID: 8f590167-a388-94ac-e39b-463978a761b0
Version Independent ID: 7f36b050-25b4-e998-26b7-bcf1ebc3d4aa
Content: Implementing an event bus with RabbitMQ for the development or test environment
Content Source: docs/architecture/microservices/multi-container-microservice-net-applications/rabbitmq-event-bus-development-test-environment.md
Product: dotnet
Technology: dotnet-ebooks
GitHub Login: @nishanil
Microsoft Alias: nanil

Thanks for your feedback @Necriis. @CESARDELATORRE please take a look.

I see you are not reusing connections when publishing events. The RabbitMQ documentation states that connections should be long-lived objects. Creating a connection has a lot of overhead attached to it. See also https://www.rabbitmq.com/dotnet-api-guide.html#connection-and-channel-lifspan
Also, make sure you enable automatic connection failure recovery. It will save you some major headaches. Details about it are listed in the documentation: https://www.rabbitmq.com/dotnet-api-guide.html#recovery

Hi @Necriis, thanks for the heads up!
There are no plans to change messaging to AMQP 1.0 en eShop, but toke note of this in the backlog
Thanks!
Closing this issue now but feel free to comment, will reopen if needed.


Enhance zUnit Runner Option to Debug in a UserBuild scenario

If the code coverage is activated and configured, the setup will always direct to the headless code coverage daemon.
In case of a userBuild, the debug session should be directed to the user.
https://github.com/IBM/dbb-zappbuild/blob/02d949f6b098b5e03f74c51c11f9a543fac05568/languages/ZunitConfig.groovy#L96

The functionality was shipped via zAppBuild 2.3.0 #176 and is documented as part at BUILD.md


Cannot see "Enable .NET Framework source stepping" option

This page says that to enable stepping into dotnet source code you have to enable "Enable .NET Framework source stepping", however in VS 2022 17.6.5, this option is not present in Options.Debugging.General.

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

ID: 2e04e717-61a6-99eb-60cd-34263fa597b5
Version Independent ID: 3ee15675-d5bd-f3c9-fb85-1b65b3d71897
Content: Debug .NET Framework source - Visual Studio (Windows)
Content Source: docs/debugger/how-to-debug-dotnet-framework-source.md
Product: visual-studio-windows
Technology: vs-ide-debug
GitHub Login: @Mikejo5000
Microsoft Alias: mikejo

@lukos -- Luke, thank you for your feedback.  You are correct; that option appears in Visual Studio 2017 and Visual Studio 2019, but not in Visual Studio 2022.  Please consider these resources:

Ask a question or find an answer on the Microsoft Q&A page for Visual Studio.
Check the Visual Studio MSDN Forum.
Stack Overflow
Reddit

@Mikejo5000 -- Mike, please look into this issue.

@lukos From a developer community post:
Source stepping seems to work when “Enable Just My Code” is off and “Enable Source Link support” is on and “Microsoft Symbol Servers” are enabled under Options > Debugging > Symbols.
post:
https://developercommunity.visualstudio.com/t/Enable-NET-Framework-source-stepping/10372238?q=Enable+.NET+Framework+source+stepping&viewtype=all
I've updated the article. Update should be live by noon PST.


[WIP] Deprecates old APIs

Related issue: #3944
This PR deprecates cert-manager.io/v1alpha2, cert-manager.io/v1alpha3, cert-manager.io/v1beta1, acme.cert-manager.io/v1alpha2, acme.cert-manager.io/v1alpha3, acme.cert-manager.io/v1beta1 APIs.
The users requesting these APIs will get a warning:

The next steps for v1.4 will be to provide users some instructions how to migrate stored versions and PR version bumps to any external projects using these APIs.
The next steps in v1.6 will be to remove these APIs (including, for example, conversion webhook functionality)
Note: I deprecated all the alpha and beta APIs for both cert-manager.io and acme.cert-manager.io. It seemed like if we deprecate cert-manager.io, we might as well deprecate acme.cert-manager.io too.
We might have set different deprecation timelines for alpha and beta versions. Given that it is the v1alpha2 versions that seem to be used most from the deprecated APIs, this probably would have meant deprecating v1beta and v1alpha3 before v1alpha2.
Deprecates cert-manager.io/v1alpha2, cert-manager.io/v1alpha3, cert-manager.io/v1beta1, acme.cert-manager.io/v1alpha2, acme.cert-manager.io/v1alpha3, acme.cert-manager.io/v1beta1 APIs. These APIs will be removed in cert-manager v1.6

/kind cleanup
Signed-off-by: irbekrm<EMAIL_ADDRESS>

/milestone v1.4
The deprecation, deprecationWarning fields should have been available since k8s v1.16
/test pull-cert-manager-e2e-v1-16

Appears like this will not work with older versions of Kubernetes.

Why isn't it breaking on 1.17 and 1.18? The deprecated field has been introduced in 1.19 (see CRD 1.18 vs. 1.19), so I would expect 1.17 and 1.18 to fail too 😅

Why isn't it breaking on 1.17 and 1.18? The deprecated field has been introduced in 1.19 (see CRD 1.18 vs. 1.19), so I would expect 1.17 and 1.18 to fail too sweat_smile

I am expecting it to break in v1.17 and v1.18 too. I haven't explicitly tested

Other thought: as @wallrj, is it worth re-creating the "legacy" CRD manifests that we had back in cert-manager 1.1?
Back then, we had a tool called filter-crd that created a "legacy" version of the manifests by stripping some fields.
With this trick, we managed to keep supporting old Kubernetes versions (down to 1.10, instead of 1.16), which meant people using OpenShift 3 could use cert-manager 1.1.
For example, you can see in the GitHub assets of v1.1.1 two files, cert-manager-legacy.crds.yaml and cert-manager-legacy.yaml.
Since the issue is only related to the CustomResourceDefinition kind, we would only need to ship cert-manager-legacy.crds.yaml (no need for cert-manager-legacy.yaml).

/test pull-cert-manager-e2e-v1-16

Other thought: as @wallrj, is it worth re-creating the "legacy" CRD manifests that we had back in cert-manager 1.1?

Agree that could be an alternative solution. I chose to do this in the validating webhook as that way 1) We will show deprecation warnings to users of all supported versions of k8s 2) We won't confuse users with an extra 'legacy' crds file that would only exist for 2 releases

Back then, we had a tool called filter-crd that created a "legacy" version of the manifests by stripping some fields

We still have it here, we use it to create standard manifests from Helm ones by stripping annotations. I've been wanting to potentially replace it with some generic tool for a while 😄

/lgtm


Ensure all tabular interfaces treat empty list equally

This PR ensures that all tabular interfaces treat an empty list equally generating data columns of float64 types. Previously the pandas interface would interpret an empty list as 'object' type data which is inconsistent with other interfaces and caused issues in some of our examples (specifically the Tap example in the Custom Interactions user guide).

I agree the object type is something to be avoided. Tests are green so I'll go ahead and merge.


Cherow 2.0 progress....

Current Master branch is Cherow 2.0, but will not be released in near future it seems. @fkleuver has assigned that task, and no progress for now.
While we all waiting for @fkleuver I would recommend to migrate to the meriyah parser.
It's a faster parser, and more stable than Cherow 2.x in current state.

do you have access to publish? @KFlash

@aladdin-add Nope. I lost access last year.

There are tons of things to fix, and the scope stuff issue haven't been solved last 4 months. It's one of the blockers before a Cherow 2.0 release. @fkleuver mentioned extracting the scope logic.
There are also several known issues with loc tracking, perf regression etc. Things I discovered while finishing the Meriyah parser. And there exist also some other issues I haven't opened a issue for.
So I leave Cherow in the hands of @fkleuver now and pull myself away from Cherow and instead focusing on Meriyah wich have no issues at all.

Thanks for this issue. This repository and project will no longer be maintained, please consider its successor: https://github.com/meriyah/meriyah
Thanks for understanding and we apologize for any inconvenience!


add VisualViewport type definitions

Search Terms
visualViewport
Suggestion
add visualViewport type definition to lib.dom
Use Cases
it is a web API available in most browsers,
Examples

Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

Woot!


RFC: Jira-CDEvents Integration

This RFC describes

an approach to integrate Jira with CDEvents using using webhook-adapter.
and the list of Jira event types mapping with CDEvents

@xibz could please approve if there are no other comments and merge.
Also please create a repository jira-translator under cdevents once this is merged.
Thank you.

@xibz @afrittoli, could you please a create repository jira-translator


This is causing segfaults in basic-cli and Folkert would like a new basic-cli release for the simple-c-abi branch.

Reverting did not actually fix the segfault.


MultiMode Lexer defaultMode should not be implicitly defined

Currently a MultiMode lexer uses the "first" mode in the definition as the default mode.
So in this example the defaultMode will be "numbers_mode"
var multiModeLexerDefinition = {
    // the default (initial) mode is "numbers_mode" it is implicitly defined as the first key in the definition object.
    "numbers_mode": [One, Two, Three, ExitNumbers, EnterLetters, Whitespace],
    "Letter_mode":  [Alpha, Beta, Gamma, ExitLetter, EnterSigns, Whitespace],
    "signs_mode":   [Hash, Caret, Amp, ExitSigns, EnterNumbers, Whitespace]
};

The problem is that the default mode relies on the order of iteration on javascript objects
which is left undefined in the ECMAScript specifications and is thus implementation dependent.
A more robust way would be to define the defaultMode explicitly:
var multiModeLexerDefinition = {

    modes : {
        "numbers_mode": [One, Two, Three, ExitNumbers, EnterLetters, Whitespace],
        "Letter_mode":  [Alpha, Beta, Gamma, ExitLetter, EnterSigns, Whitespace],
        "signs_mode":   [Hash, Caret, Amp, ExitSigns, EnterNumbers, Whitespace]
    },

    // the default mode is explicitly defined.
    defaultMode : "numbers_mode"
};

Not that this is a breaking change which requires slight modification to existing MultiMode Lexers.


fix(returned_args): proper message

fixes #195

I tested it manually, couldn't find an easy way to add an automated test

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 0.0%

Totals

Change from base Build<PHONE_NUMBER>7:
0.0%

Covered Lines:
0

Relevant Lines:
0

💛  - Coveralls