response body data keep shifted

hello,
thanks to nice module!
it save my days.
but i struggled at receiving server's data.
lets have a look at wiresharks log that server response
Frame 69088: 82 bytes on wire (656 bits), 82 bytes captured (656 bits) on interface \Device\NPF_{86000046-317D-4591-92BB-CECBE0014CE2}, id 0
Ethernet II, Src: Espressi_1a:e2:09 (c4:4f:33:1a:e2:09), Dst: ASUSTekC_dd:9d:ec (40:b0:76:dd:9d:ec)
Internet Protocol Version 4, Src: <IP_ADDRESS>, Dst: <IP_ADDRESS>
Transmission Control Protocol, Src Port: 4444, Dst Port: 57308, Seq: 2185, Ack: 325, Len: 28
    Source Port: 4444
    Destination Port: 57308
    [Stream index: 541]
    [TCP Segment Len: 28]
    Sequence number: 2185    (relative sequence number)
    Sequence number (raw): 8695
    [Next sequence number: 2213    (relative sequence number)]
    Acknowledgment number: 325    (relative ack number)
    Acknowledgment number (raw): 883360533
    0101 .... = Header Length: 20 bytes (5)
    Flags: 0x018 (PSH, ACK)
    Window size value: 5420
    [Calculated window size: 5420]
    [Window size scaling factor: -2 (no window scaling used)]
    Checksum: 0xf640 [unverified]
    [Checksum Status: Unverified]
    Urgent pointer: 0
    [SEQ/ACK analysis]
    [Timestamps]
    TCP payload (28 bytes)
Data (28 bytes)
    Data:<PHONE_NUMBER>0000000000000000000000…
    [Length: 28]

and this is actual body data that i want to send
02 00 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  01 00

its 28 byte of hex values.
and below code is my okSocket options.
mOkOptions = new OkSocketOptions.Builder()
          .setPulseFrequency(100)
          .setPulseFeedLoseTimes(5000)
          .setReconnectionManager(new NoneReconnect())
          .setConnectTimeoutSecond(10)
          .setReadPackageBytes(28)
          .setReaderProtocol((new IReaderProtocol() {
            @Override
            public int getHeaderLength() {
              return 20;
            }

            @Override
            public int getBodyLength(byte[] header, ByteOrder byteOrder) {
              return 28;
            }
          }))
          .setCallbackThreadModeToken(new OkSocketOptions.ThreadModeToken() {
            @Override
            public void handleCallbackEvent(ActionDispatcher.ActionRunnable runnable) {
              handler.post(runnable);
            }
          })
          .build();

and finally, below each rows are my heartbeating response
BODY : 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
BODY : 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
BODY : 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0
BODY : 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0
BODY : 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0
BODY : 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
BODY : 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
BODY : 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

in my head, it should be
2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0
but instead its shifted 2 bytes each response.
what have i done?
am i totally misunderstood of response datas?
is there known issue?
can you help?
Thanks.

Tks your questions.
The question you raised is a common one, many people don't know "what should I define ReadProtocol here ?"
As your code
mOkOptions = new OkSocketOptions.Builder()
          .setPulseFrequency(100)
          .setPulseFeedLoseTimes(5000)
          .setReconnectionManager(new NoneReconnect())
          .setConnectTimeoutSecond(10)
          .setReadPackageBytes(28)
          .setReaderProtocol((new IReaderProtocol() {
            @Override
            public int getHeaderLength() {
              return 20;
            }

            @Override
            public int getBodyLength(byte[] header, ByteOrder byteOrder) {
              return 28;
            }
          }))
          .setCallbackThreadModeToken(new OkSocketOptions.ThreadModeToken() {
            @Override
            public void handleCallbackEvent(ActionDispatcher.ActionRunnable runnable) {
              handler.post(runnable);
            }
          })
          .build();

getBodyLength(byte[] header, ByteOrder byteOrder) Method should not HardCode here because the body length is dynamic, I think you'd better read the body length from your Header  bytes array.

Hope to resolve your questions, the mind is open glad to hear

Hello, Can I bypass this header mechanism? Can I get all data that send from the client. I have import all module so i can able to edit code. please guild us.


Changed 'flat' to 'flat_orm' in tools

Codecov Report

Merging #9 (3e814f2) into develop (4b0dcfd) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop       #9      +/-   ##
===========================================
- Coverage    90.20%   90.16%   -0.05%
===========================================
  Files           74       64      -10
  Lines         1878     1687     -191
===========================================
- Hits          1694     1521     -173
+ Misses         184      166      -18

Flag
Coverage Δ

flat_generator
90.16% <ø> (ø)

flat_orm
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

flat_orm/lib/src/adapter/insertion_adapter.dart

flat_orm/lib/src/migration.dart

flat_orm/lib/src/sqflite_database_factory.dart

flat_orm/lib/src/adapter/deletion_adapter.dart

flat_orm/lib/src/adapter/query_adapter.dart

...src/extension/on_conflict_strategy_extensions.dart

flat_orm/lib/src/callback.dart

flat_orm/lib/src/adapter/migration_adapter.dart

flat_orm/lib/src/adapter/update_adapter.dart

flat_orm/lib/src/util/primary_key_helper.dart

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4b0dcfd...3e814f2. Read the comment docs.


Added solution for English/Data-Visualization/Hover-tod3-element

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

@RandellDawson  I've made the requested changes, ready for preview.

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


Example of scrollIntoViewOptions usage

Might someone give an example of scrollIntoViewOptions usage? Thanks.

It's just the options that you would pass to scrollIntoView. You can read more about it in MDN Docs


Separate typed and untyped trees

Advanced macrology201 covers how even simple macros can introduce owner chain corruptions that cause cryptic compiler crashes in phases after macro expansion. In gestalt, @liufengyun managed to automatically avoid many such problems by separating typed and untyped trees and introducing a new tree node called TypedSplice to embed a typed tree inside an untyped tree. The separation statically guarantees that untyped trees are not embedded in typed trees. Separation of untyped and typed trees may also offer a solution for hygiene.

The separation between typed and untyped tree originates from the design in Dotty, it helps avoids many mistakes in the compiler. Actually @odersky initially proposed the idea to macros, it turns out to be a good idea as @olafurpg mentioned (repeated below):

auto-manage owner chains
defend against nesting untyped trees inside typed trees
only allow access type information on type trees
potential to enable us do better with hygiene

As a side effect of this separation, sometimes we'll be forced to construct typed trees if we want to splice them into an existing typed tree. Constructing typed trees is like writing a compiler phase, no only there's no syntactic sugar, but also macro authors have to:

insert type parameters manually
insert apply manually
insert implicits manually
resolve overloading manually

The experiment in https://github.com/liufengyun/gestalt/pull/96 has shown it's possible to make it easier to construct typed trees by automatically infer type parameters, insert applys, insert implicits, and  resolve overloading.

Note that we may not need to expose any typed tree constructors. IIRC, your experiments in gestalt showed that splicing typed tree constructors are only necessary for few more advanced use-cases.

Yes, ideally we can have 0 extractors for untyped trees and 0 constructors for typed trees. More advanced macros would require constructors for typed trees.


Try to rewrite emacs packages updater.

I tried to rewrite the emacs packages updater in pure emacs lisp without third party dependencies.
But I have less time to fix it recently.
Therefore, I public my code here and hope someone could make it as a pr.
source code
Goals

Get rid of the inactive emacs2nix project.
Only use emacs builtin functions to reduce maintance costs.

Improving Nixpkgs Emacs infra is always on my TODO list, such as correcting the generated meta.homepage, replacing sha256 to hash and not adding emacs to packageRequires.  So I am glad to see people working towards similar goals!
cc @AndersonTorres

Reducing maintenance cost seems to be your main motivation.
You approach it by reducing dependencies.  However, maintainability is more then just reducing dependencies and reducing dependencies may not improve maintainability.  For example, promise is better than callback (used by url-http) and sleep-for is a code smell to me.  Abstraction is added for a reason.  That being said, unifying the update code for ELPA and MELPA in your work is good, I think.
About the inactivity of emacs2nix, maybe it is because it has always been working well.  So there is nothing need to be changed there.  I have not touched its codebase yet, so I am not sure about its extensibility.
Last but not least, the people who actually do the maintenance are also important.   Currently, I am one of these people and I personally think Haskell (used by emacs2nix) is better than elisp for this not-very-trivial task.  And according to your words, you may not do maintenance.

I have no comment on the code as-is. I'm commenting on the overall state/implementation of  Emacs updaters.
I've also been interested to rewrite our generators, but in type-annotated Python.
Very few contributors are actually competent elisp developers (myself included), and these updaters are somewhat nontrivial.
My main concern with a new implementation, as @jian-lin also alludes to, comes down to who is able to maintain it.

While I was writing this answer (and losing it again due to sleep), I discovered that I was not the first one to notice that annoying bug on emacs2nix that duplicates shell-command-plus.
https://github.com/nix-community/emacs2nix/issues/60
About the maintenance issue, I was thinking in Common Lisp initially, but the CL ecosystem in Nixpkgs is too confusing!
Further, Haskell would require a crash course of many potential maintainers here, way more than elisp ones. The single fact Haskell is not bootstrappable makes things worse.
Python looks more promising.

MELPA, like GNU ELPA, also provides tarballs.  If we use elpaBuild to build those MELPA tarballs for generated MELPA packages, we do not have to deal with recipes.  Does anyone know why we choose to deal with recipes instead?

Like the old music, "it was always burning". Even that strange problem of not being able to use arbitrary strings in version is too mysterious.
If I would guess, it is because usually recipes are more precise and they are suitable for building from pristine sources.
More to the point, my first question would be: how exactly the custom manual-packages can be built by elpaBuild?

how exactly the custom manual-packages can be built by elpaBuild?

To be clear, I am talking about using the same process to generate MELPA and GNU ELPA packages.  I am not talking about replacing melpaBuild with elpaBuild.  melpaBuild is the perfect choice for manualPackages.

I asked most of curiousity, because melpaBuild is by far the most dissonant from the elisp repos we track. Unifying them would be an interesting end goal.
Further, it always bugged me that necessity of a recipe file for MELPA but not for the others.

For multi-file manualPackages, a build phase is needed to make a valid multi-file package tarball from their source repo.  melpaBuild has a build phase and elpaBuild does not.  This is the key difference between them.  What do you mean by "unifying them"?
How to actually do the build phase is another question.  Currently, we use MELPA's package-build package for that, so a recipe is needed.  If you roll your own build phase, you may not need a recipe but you still need a way to pass the related info, such as which files should be included in the package.  I would say a thing like recipe is necessary for a build phase, but it can be more nix-friendly.

As the author of package generation for GNU ELPA @ttuegel and MELPA @bendlas, could you provide some context?

Whew, that's been a minute ... so when I rewrote the melpa updater, it was mainly because it was very unreliable and slow. I did it in elisp, because a) I don't know enough haskell to have fun maintaining it and b) I wanted to maximize the chance of its users being able to hack on it in a language they're fluent in (seems to have been working so far).
I did originially want to tackle elpa and org packages as well, but those sets are tiny compared to melpa - hence did't have the same problems, and since my PR solved the immediate problem, it got merged for just melpa.
Not a fan of python any more, FWIW

Thanks for the context.
According to https://github.com/NixOS/nixpkgs/pull/59189, it seems not using "the package.el protocol" to generate MELAP packages dates back to melpa2nix of emacs2nix.  I failed to find the reason in a quick search though.
To be clear, using "the package.el protocol" to generate MELAP packages basically means using elpa2nix of emacs2nix for the generation instead of dealing with recipes and building valid package tarballs.

Found https://github.com/nix-community/emacs2nix/issues/5#issuecomment-170408032
I guess dealing with recipes and building valid package tarballs for MELPA packages is better for reproducible builds assuming MELPA also not keeps old tarballs.
However, assuming cache.nixos.org keeps all FODs, then it is not a reproducibility issue for packages in Nixpkgs.  Only third party projects re-using package generation infra of Nixpkgs, such as emacs-overlay, have this reproducibility issue.  To reproduce, apply an old emacs-overlay and build a GNU-devel ELPA package.  If you are "lucky" enough, you will get a 404 for the tarball.
It is still a question whether it is worth adding complexity of package generation infra to get better reproducibility (only for third party projects).

it seems not using "the package.el protocol" to generate MELAP packages dates back to melpa2nix of emacs2nix

It does. I do believe there was a reason for doing this. Maybe ELPA and/or MELPA have been improved since, if you say that you could snapshot the MELPA set through the ELPA routines successfully?

and sleep-for is a code smell to me

In this case, it definitely is. That passage is the exact reason, why I implemented a semaphore package: That is semaphores are made for exactly this use case, where you want to have a maximum number of concurrent resource accesses.
In general, I'd also like to see code sharing with the existing updater, before bringing this in, even though I applaud the effort!

2. Only use emacs builtin functions to reduce maintance costs.

If we want to go down that route, we'll have to either get rid of threads, or vendor in some support like semaphores, promises, or maybe a thread pool. Otherwise, elisp threads are too bare bones to be usable.
Since I also like minimalism, I could see the case for doing this as a few callback trees, driven by process sentinels on download processes.
Still sceptical though, if you've done JS pre-async, you know that callback spaghetti is real.

One aspect to consider with a future rewrite is tree sharding: Generating big files like we currently do makes the git repo size grow faster than it has to.
By splitting up the generated code into smaller chunks we can avoid that.

By splitting up the generated code into smaller chunks we can avoid that.

Good thought! Though I do believe that git repack already does some sort of content-defined chunking, diff storing, or other deduplication. Might be worth verifying before diving into this head first.

assuming cache.nixos.org keeps all FODs, then it is not a reproducibility issue for packages in Nixpkgs. Only third party projects re-using package generation infra of Nixpkgs, such as emacs-overlay, have this reproducibility issue.

I recently find this is not entirely true when working on https://github.com/NixOS/nixpkgs/issues/335442.  Currently, only a subtset of all elisp packages are built by hydra.nixos.org, which means not all ELPA tarballs are cached.  If a tarball is deleted by upstream, building that elisp package gives you a 404 error.  A minimal reproducible example:
> nix build 'github:nixos/nixpkgs?rev=99dc8785f6a0adac95f5e2ab05cc2e1bf666d172#emacs.pkgs.elpaDevelPackages.auctex'
error: builder for '/nix/store/aan4s2w979888pq1daa5l5ar4bh062vb-auctex-<IP_ADDRESS>.20240819.102544.tar.drv' failed with exit code 1;
       last 10 log lines:
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 404
       >
       > trying https://elpa.gnu.org/devel/auctex-<IP_ADDRESS>.20240819.102544.tar.lz
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 404
       > error: cannot download auctex-<IP_ADDRESS>.20240819.102544.tar from any mirror
       For full logs, run 'nix log /nix/store/aan4s2w979888pq1daa5l5ar4bh062vb-auctex-<IP_ADDRESS>.20240819.102544.tar.drv'.
error: 1 dependencies of derivation '/nix/store/lda5ss5bwp1cx6qdfl9vichw53lfazdi-emacs-auctex-<IP_ADDRESS>.20240819.102544.drv' failed to build

I think building tarballs for ELPA packages from source code, instead of downloading tarballs directly, is a good idea.
An alternative method is to make hydra.nixos.org build all elisp packages, which, I think, is worse.

I think building tarballs for ELPA packages from source code, instead of downloading tarballs directly, is a good idea.

Well, as a general rule, since at least the xz-incident we should not rely on second-hand sources.

One aspect to consider with a future rewrite is tree sharding: Generating big files like we currently do makes the git repo size grow faster than it has to.
By splitting up the generated code into smaller chunks we can avoid that.

This is not true, the actual problem is the amount of data stored.
It doesn't matter whether you store i.e. 2MiB in 1 file or split into 1000 files, it's still 2MiB worth of information. (It's actually slightly worse the more files you have as each file has a fixed cost.)
What you really want to keep down w.r.t. repository size is therefore the amount of information you record, particularly hashes as they do not compress. I don't know the details but the current recipes-archive-melpa.json appears to record git rev hash + content hash for two versions for each package (normal(?) + unstable) which seems unnecessary; the version not used by default for emacsPackages should be relegated to the emacs-overlay. This would already cut your space usage by half to about 90Bytes per package which is reasonable IMHO.
It should also be noted that git is extremely good at storing large text files with minimal differences between them efficiently. The only things you should consider w.r.t. individual lockfile size would be the all the other tools used to interact with the files such as your editor of choice or the GitHub UI. Though personally, I think trying to make visualisation tools able to handle data that ranges into megabytes well is a lost cause and e.g. sharding them just isn't worth the effort.

which seems unnecessary; the version not used by default for emacsPackages should be relegated to the emacs-overlay

Melpa Stable tracks the most recent tagged version for each package, while Melpa-Unstable tracks the HEAD.
It is generally recommended to use the Unstable.
On the other hand, we should update Elisp packages more often - a hell of a work given that it mass-rebuilds.

Frequent mass rebuilds are not an issue as long as you send them through staging.

Data venia, it looks like a "ignoring all problems, there is no problem" argument.
Anyway, there is a bigger problem pointed by @\jian-lin.
Unfortunately it is now a mere anecdotal evidence, but I remember when I updated Elisp packages when auctex failed to  build due to "upstream no longer available".


Update L2Ver41xInputStream.java

Adding support for mark/reset/skip

Only sequential read is allowed.

I've been using it for quite some time, and haven't noticed any side effects, what could go wrong?

L2Ver41xInputStream uses InflaterInputStream, which does not support mark/reset. Wrap it in a BufferedInputStream to add buffering.


[ContentSwitcher] Icon content switcher

Is this an extension to an existing component, pattern, or a brand new asset?
This is an EDS item.
What is the rationale for this contribution.
Content switchers are often used best in switching between different views of the same content. However the current Carbon offering examples at least only allow text, which is less appropriate for mobile applications as well as cases such as charts where a simple switcher would suffice with less visual distraction.
Note: This may be possible using stock carbon components, in which case this issue will serve us tracking the code example.
Detail the intended behavior
This is a version of the existing carbon content switcher component, but with 20px icons instead of text as content. All other interactions, styles etc are retained.

Inspiration from other products
Example of this in use in APM

PAL issue

:tada: This issue has been resolved in version 2.68.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


No recipient, not send the file.

If there's no email of the person who you want to send the file, not send the file.

I can work on this.

thanks @jQwotos  :)


Add primary button style

ISSUE-NO
#158
What does this PR do?
Add style to primary button.
Description of Task to be completed?
Primary button style add to global.css

@Evavic44 Is this ok first I PR to master then I realised that I have to push my code to website branch so I closed it.

You were supposed to create a new branch in your fork before pushing to the origin master branch. new-branch - upstream master

Noted


Improve DX for key-value and profile-NFTs: abstract away erc725 hash, encrypt, decrypt

Background / motivation
The key-value-flow.md and profile-nfts-flow.md READMEs have super-useful functionality by leveraging ERC725 to the max: on-chain key-value (noSQL) datastore, SBTs, on-chain & private user profiles
To implement this, the READMEs had to do a lot of grunt work

hash the key everywhere, to make ERC725 happy
lotsa munging of data to make encryption play well with ERC725 (example below)

Doing this opens up future possibilities:

trustless datatoken-based data sharing, where data payload is the ERC725. The trick: "make it where it's easy to share with >>1  people by pre-generating keys, with a different url for each datatoken minted"
trustless data sharing for large data: put data payload into arweave. Leverage pybundlr.

TODO

[x] Implement DataNFT set/get without needing user to hash the input key
[x] Create new crypto.py module to make it easy to do: create symmetric key; symmetric encrypt/decrypt; asymmetric encrypt/decrypt. Test it
[x] Rename key-value & profile-nft READMEs to be key-value-private/public. Update them to use the new crypto.py library

Example
Here's step 3 status quo. "Alice adds key-value pair to data NFT. 'value' encrypted with a symmetric key 'symkey'" :
# Key-value pair
profiledata_name = "fav_color"
profiledata_val = "blue"

# Prep key for setter. Contract/ERC725 requires keccak256 hash
profiledata_name_hash = Web3.keccak(text=profiledata_name)

# Choose a symkey where:
# - sharing it unlocks only this field: make unique to this data nft & field
# - only Alice can compute it: make it a function of her private key
# - is hardware wallet friendly: uses Alice's digital signature not private key
preimage = data_nft.address + profiledata_name
preimage = sha256(preimage.encode('utf-8')).hexdigest()
prefix = "\x19Ethereum Signed Message:\n32"
msg = Web3.solidityKeccak(
    ["bytes", "bytes"], [Web3.toBytes(text=prefix), Web3.toBytes(text=preimage)]
)
signed = sign_with_key(msg, alice.private_key)
symkey = b64encode(str(signed).encode('ascii'))[:43] + b'='  # bytes

# Prep value for setter
profiledata_val_encr_hex = Fernet(symkey).encrypt(profiledata_val.encode('utf-8')).hex()

# set
data_nft.setNewData(profiledata_name_hash, profiledata_val_encr_hex, {"from": alice})

@calina-c thanks for reviewing, and helping get this over the line wrt CI tests.
Could you do a new ocean.py release please? So that this is available. (Or if you plan to do one in the next few days anyway, that's fine too.)


Leaderboard

Very wonderful work you have done. Though there were no enough JavaScript code to review.
I observed that you used a sec in this lines:
https://github.com/HossainAraf/Leaderboard/blob/c848cb1e783ccd652959fb6bedea2178963f8737/src/index.html#L9-L31
For semantic and screen reader purposes, it will be better to use a <section> tag instead of just a <sec> tag

Thanks


chore(release): v1.6.1 🎉

:robot: I have created a release beep boop
1.6.1 (2024-09-01)
Bug Fixes

practs: bump practs to latest best (ddbcff3)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/ehmpathy/uni-time/releases/tag/v1.6.1 :sunflower:


Is changing to bold font possible part of EnhanceAnyLexer

From the documentation, I see only foreground color can be changed...
In addition can we make it bold in any way?
Regards,

Unfortunately no, not with the current implementation. I tested, again, with styles, and although it says it can be used together with lexers, I see a constant high CPU usage with it. The strange thing is that using the batch lexer doesn't seem to cause this, but using Rust, C and V lexers for example causes this problem.
Still testing further.

+1 and if possible, please add italic, underlined and font size too.

@Ekopalypse ok... hope you are in a  position to get it working.  Thx.

Using lexers seems to work, but there is a problem when using it with "normal text", i.e. without lexers.
I will test this for a few days to see if there are any other hidden oddities.

@Ekopalypse wow looks great!!! Looking forward.
Regards,

@oirfeodent, @bobcate, @Weber-Frank
An experimental version has been uploaded that allows styles to be used instead of or together with indicators.
Note: Styles have a negative impact on the overall performance of Notepad++, as the built-in lexer must be instructed to re-evaluate the entire visual area after each change.
If styles are not really needed, the use of the indicator is recommended.
During the internal test phase with ~1000 line sized source files, no noticeable delays due to styles were detected. However, a test with a 1_000_000 line XML file shows considerable delays.
Extract the zip file into the plugin directory of the Notepad++ installation.
When you start Notepad++ and open the About dialogue of EnhanceAnyLexer, you should see that version 2.0.0 has been loaded.
The following new configurations must be made in order to use the styles.
Lines with style_NNN=;;;;;; must be created in the global section and
lines with use_style_NNN=regular expression must be defined in the lexer related sections to be able to use them.
Currently, incorrectly defined style lines are ignored; in future, a linter will indicate any errors.
Extract from the help text of the initial configuration file:
...

; USE OF STYLES
; NOTE, If styles are used instead of the indicator, the computing power increases considerably,
; as the built-in lexer is instructed to re-evaluate the currently visible area with every change and every scroll.
; If a lexer has to re-evaluate the entire buffer, as is the case with xml and json, this can lead to very slow or even unusable response times.
;
; Each style must be defined beforehand.
; A line must start with style_NNN= followed by 7 style attribute values separated by semicolons.
; NNN should be a unique number per style in the range of 0 to 255 and must be used later with use_style_NNN.
; As Scintilla reserves the use of id 0 to STYLE_LASTPREDEFINED, currently 39, for internal use, a start id=50 seems appropriate.
; The order of the style attributes is IMPORTANT/SIGNIFICANT!!!
; The following 7 attributes can be set
;
; fore_color;back_color;bold;italic;underline;font_size;font_name
;
; bold, italic and underlined are boolean-like values, 1 means set, 0 means not set
; font_name a string like Consolas
; font_size a number like 12
; fore_color and back_color is the same as for the indicator configuration
; A missing value means that the value from Notepad++`s default style, aka style 0, is used.

; EXAMPLE
; A defined foreground and background color, a font size and with a bold style
; style id=   fg   ;   bg  ; bold ; italic; underline; font_size; font_name
; style_50=0x123456;#ff00ff;  1   ;       ;          ;    23    ;

; A style with a defined font name, the foreground color from the DEFAULT style, a defined background color and the rest are from the default style
; style_51=;#00d7ff;;;;;Consolas

; TEMPLATE
; style_id=fore_color; back_color; bold; italic; underline; font_size; font_name
; style_50=          ;           ;     ;       ;          ;          ;

...

; Each configured lexer must have a section with its name,
; (NOTE: use the menu function "Enhance current language" as it takes care of the correct naming)
; followed by one or more lines with the syntax
; color[optional whitelist] = regular expression
; or
; use_style_NNN[optional whitelist] = regular expression

Wow, that's almost what i wanted.
but i have still 2 problems with this version:

Scrolling with holding the arrow keys (left, rigth, up and down) keys are not possible like before.
The text or cursor scrolls but it jumps a lot and you can't see where the cursor is, so it's not really usable for me since i scroll a lot with the arrow keys.
Maybe it's possible to detect such a keypress in the plugin and not try to add the styles as long as that key is pressed?

When writing to the configuration, N++ is very slow and sometimes hangs. It may make sense to apply the changes when the configuration is saved rather than applying them in real time?

Hopefully you can do something about problem 1, problem 2 is not that important.
Best regards
Frank Weber

@Weber-Frank
Regarding 1:
I also use the arrow keys quite often and have not had this problem with Rust, V or Python source files. May I ask what type of file you are processing and how big it is? Or can you share an example and your configuration for such a file? Subclassing scintilla to detect keystrokes could be one way to solve the problem, maybe using idle styling is another way, but the downside would be that the coloring happens later.
Re 2: Real-time matching is good because the effects of the regular expression used are immediately visible, but currently the plugin tries to find the matches in the entire content of the file. Limiting it to a configurable number of maximum matches should significantly improve performance.

I usually work on Javascript files (*.js and .tsx), the largest one i'm also testing the new version on is about 1.5MB in size and ~35000 lines.
My test configuration for coloring the background for all words Write until the next bracket and the word “G”. in orange and the word “Msg” in yellow is simply:
style_51=;0x00F8F8;;;;;
[javascript]
use_style_50 = (Write.*?(|G.)
use_style_51 = Msg
(I still need to find a better color for this orange, but it's good for testing)
I'm sorry I can't post a sample file because it's all copyrighted.
What i can say, it contains 2855 hits for Write..., 10276 for G. and 4015 for Msg.
If the coloration occurs later, that is certainly better than the current behavior.
Except that the delay time is half an hour. 😂
Regarding 2: In my opinion, this is a good idea, but as i said, not that important.
best regards

@Ekopalypse It works for me.
The files I work on hardly reaches a max of 10K lines.
So far no issues or lags.
Regards,

The problem seems to be lexer-specific, and it makes sense when you consider what happens now. However, I wonder whether it's even necessary for me to instruct the lexer to reevaluate the visual area. Yes, I have to think about strategies to equalize this, but it won't be possible to solve the whole thing completely. Caching doesn't seem to me to be a solution, as it is in the nature of regular expressions to invalidate previous matches with every change in the text. Unfortunately, Idle styling didn't help either. I will probably have to get an overview of where most of the time is spent first.

Maybe it makes sense to find out the difference between using the arrow keys and using the scroll bar or mouse wheel, because it works perfectly with the scroll bar and mouse wheel?
Maybe notpad interprets the use of the arrow keys as input in the text and 'thinks' that's are changes in the text and executes the appropriate routines for changes, which takes the time that causes the delays?

I just play a little with the config and get an exeeption:

It happened when i was scrolling the configuration with the mouse wheel.
When i scroll up and reach a point in the top, the style_xx... config entries get the background color defined in that line.
I've never seen this before because I apparently never scrolled that high to get to it. please refer:

At the time of the exception, only the first entry (style_50) was colored, the other two were not.
Maybe this will help find the cause. I haven't been able to reproduce this error again until now.
In such a case, is a debug log written here? If so, I think i can send it if i know where it was written.
If not, perhaps you can create and publish a debug version with such output enabled?
Just in case it happens again.
best regards

Sorry, that shouldn't have happened, and no, a debug log is not available.

I've never seen this before because ...

 Of course, to see the background color, you have to move the cursor to another line.

If not, maybe you can create and publish a debug version with this output enabled...

I deleted the current version because that could lead to data loss (maybe already has?) ... I'll try to find some time this weekend to create a new version.
Thanks for testing and reporting the problem.

Hi @Ekopalypse
I understand there seems to be performance issues.
So far I have been using the experimental release (more than a month) without any issues.
Does it make sense to do a release with a "on/off switch", so some users who dont see the issues can use the newer features?
I don't know what you think about this or it would be bigger problem for you to maintain the code?
Regards,
Vetri.

Hi @oirfeodent
sorry for the delay, but the only thing that makes me hesitate to release a new version is the reported crash.
Unfortunately, I haven't yet found out what could have caused it.
I have implemented a crash handler and run some tests, but so far I have not been able to generate a situation that leads to a crash.
Because of another problem with the lsp plugin I am currently trying to figure out how I can best implement a fuzzy testing framework with PythonScript.
This could also help here.

Experimental version link is 'not found'. What a pity

@netcraftz sorry for the inconvenience, yes it has been removed due to the reported crash.
I'm on vacation starting Monday, next week, which means I can spend some time working on this problem then.


License on upload elliot

--- Releases ---
Android release: https://appdistribution.firebase.google.com/testerapps/1:305132849030:android:6cf0cd5ec064fad3ffce07/releases/26ontggqeasgg

A few tweaks from https://github.com/ardriveapp/ardrive-web/pull/1641

@thiagocarvalhodev Fixes based on your review here: https://github.com/ardriveapp/ardrive-web/pull/1660
Also another PR to fix a (previously?) failing test: https://github.com/ardriveapp/ardrive-web/pull/1661

Closing this one to use the newly created branch following our naming conventions for branch names: https://github.com/ardriveapp/ardrive-web/pull/1662


bctoolbox: 5.1.17 -> 5.1.32

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/bctoolbox/versions.
meta.description for bctoolbox is: "Utilities library for Linphone"
meta.homepage for bctoolbox is: "https://gitlab.linphone.org/BC/public/bctoolbox"
meta.changelog for bctoolbox is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 5.1.32 with grep in /nix/store/5djflri2plp85vq3cf9i16cwbw98nfp0-bctoolbox-5.1.32
found 5.1.32 in filename of file in /nix/store/5djflri2plp85vq3cf9i16cwbw98nfp0-bctoolbox-5.1.32

Rebuild report (if merged into master) (click to expand)

19 total rebuild path(s)

13 package rebuild(s)

13 x86_64-linux rebuild(s)
6 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
bctoolbox
belcard
belle-sip
belr
bzrtp
liblinphone
lime
linphone
mediastreamer
mediastreamer-openh264
msilbc
ortp
trx

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/5djflri2plp85vq3cf9i16cwbw98nfp0-bctoolbox-5.1.32 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A bctoolbox https://github.com/r-ryantm/nixpkgs/archive/c08c806f7703c5c74736ae081fdf295ea9417dcb.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/5djflri2plp85vq3cf9i16cwbw98nfp0-bctoolbox-5.1.32
ls -la /nix/store/5djflri2plp85vq3cf9i16cwbw98nfp0-bctoolbox-5.1.32/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

13 packages built:

bctoolbox
belcard
belle-sip
belr
bzrtp
liblinphone
lime
linphone
mediastreamer
mediastreamer-openh264
msilbc
ortp
trx

Maintainer pings
cc @7c6f434c @jluttine for testing.

@ThibaultLemaire should these things go in lockstep across the libraries or is it OK to update them separately?

@7c6f434c They should. Otherwise we might end up with broken functionality in linphone desktop (even if it builds). The chances aren't that high, but short of testing by hand, we'd have no way to assert everything still works fine.
Although for this particular bump, I've reviewed the changes and I think it's very unlikely that it would break anything.

OK, I am fine closing such uncoordinated auto-bumps as a matter of policy


ObjectStore: hard to determine the cause of the error thrown from retry

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

I found hard to determine the cause of the error thrown from retry when using object_store in our project, due to not enough information in error msg.
Describe the solution you'd like

Add more detailed information in error msg.
Describe alternatives you've considered

Additional context

label_issue.py automatically added labels {'object-store'} from #5012


sudo chef-server-ctl reconfigure

Hi,
Can someone help me solve this issue?

Recipe: private-chef::postgresql

user[opscode-pgsql] action create

Error executing action create on resource 'user[opscode-pgsql]'
Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received '8'
---- Begin output of ["usermod", "-d", "/var/opt/opscode/postgresql", "opscode-pgsql"] ----
STDOUT:
STDERR: usermod: user opscode-pgsql is currently logged in
---- End output of ["usermod", "-d", "/var/opt/opscode/postgresql", "opscode-pgsql"] ----
Ran ["usermod", "-d", "/var/opt/opscode/postgresql", "opscode-pgsql"] returned 8
Resource Declaration:
In /opt/opscode/embedded/cookbooks/private-chef/recipes/postgresql.rb
27: user node['private_chef']['postgresql']['username'] do
28: system true
29: shell node['private_chef']['postgresql']['shell']
30: home node['private_chef']['postgresql']['home']
31: end
32:
Compiled Resource:
Declared in /opt/opscode/embedded/cookbooks/private-chef/recipes/postgresql.rb:27:in `from_file'
user("opscode-pgsql") do
action :create
supports {:manage_home=>false, :non_unique=>false}
retries 0
retry_delay 2
guard_interpreter :default
username "opscode-pgsql"
home "/var/opt/opscode/postgresql"
shell "/bin/sh"
system true
cookbook_name :"private-chef"
recipe_name "postgresql"
end
Running handlers:
[2015-02-23T18:10:13+00:00] ERROR: Running exception handlers
Running handlers complete
[2015-02-23T18:10:13+00:00] ERROR: Exception handlers complete
[2015-02-23T18:10:13+00:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 5 resources updated in<PHONE_NUMBER>84 seconds
[2015-02-23T18:10:13+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: useropscode-pgsql had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '8'
---- Begin output of ["usermod", "-d", "/var/opt/opscode/postgresql", "opscode-pgsql"] ----
STDOUT:
STDERR: usermod: user opscode-pgsql is currently logged in
---- End output of ["usermod", "-d", "/var/opt/opscode/postgresql", "opscode-pgsql"] ----
Ran ["usermod", "-d", "/var/opt/opscode/postgresql", "opscode-pgsql"] returned 8

I'm going to close this out for now, as it's not clear what has gone on with @jigishmehta86's setup, but something odd is going on. In other tickets I've informed them the best course of action is to wipe clean and start over, ideally with Chef server 12 (see here https://github.com/chef/chef/issues/2972 for instance).
@jigishmehta86 Should you run into more issues, please feel free to open a new issue and we'll work with you to get through it.

cool. Thanks


Try adding a pip install to readthedocs.yml

Per @niklassiemer observation in #132.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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 89.912%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
4403

Relevant Lines:
4897

💛  - Coveralls


Build failure: signumone-ks

Steps To Reproduce
Steps to reproduce the behavior:

nix-build -I . -A signumone-ks on master

Build log
these 2 derivations will be built:
  /nix/store/m8sc7i1axqgqmn90xw526mzh4fxrbd69-signumone-ks-3.1.3.deb.drv
  /nix/store/zjjpbahk9qxsdrw82plm4dvzjpb4w9rk-signumone-ks-3.1.3.drv
building '/nix/store/m8sc7i1axqgqmn90xw526mzh4fxrbd69-signumone-ks-3.1.3.deb.drv'...

trying https://cdn-dist.signum.one/3.1.3/signumone-ks-3.1.3.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0  6209    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 530
error: cannot download signumone-ks-3.1.3.deb from any mirror
error: builder for '/nix/store/m8sc7i1axqgqmn90xw526mzh4fxrbd69-signumone-ks-3.1.3.deb.drv' failed with exit code 1;
       last 7 log lines:
       >
       > trying https://cdn-dist.signum.one/3.1.3/signumone-ks-3.1.3.deb
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0  6209    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 530
       > error: cannot download signumone-ks-3.1.3.deb from any mirror
       For full logs, run 'nix log /nix/store/m8sc7i1axqgqmn90xw526mzh4fxrbd69-signumone-ks-3.1.3.deb.drv'.
error: 1 dependencies of derivation '/nix/store/zjjpbahk9qxsdrw82plm4dvzjpb4w9rk-signumone-ks-3.1.3.drv' failed to build

Additional context
Detected when reviewing https://github.com/NixOS/nixpkgs/pull/249311 locally
Notify maintainers

@wolfangaukang
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.4.10, NixOS, 23.11 (Tapir), 23.11.20230814.6e28791`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.0`
 - channels(katexochen): `""`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/fdy2b9n83ksarxhddniyb6wxzh9628g6-source`

This issue can be closed as #249734 is merged


Analyzing the current design with pros,cons and effect of edge cases

Analyzing the current design with pros,cons and effect of edge cases

Current design:

Completed the task and documented all details : 28/04/2022


Dom child element lists

What should the primitive operations on child lists be? We should be able to implement filtering, sorting, mapping etc in terms of the primitives.

Reactivity is now handled by futures-signals


Do in-source build on EL9

This fixes the build not finding the Makefile on EL9. See https://opensciencegrid.atlassian.net/browse/SOFTWARE-5510?focusedCommentId=376297 for explanation

I didn't see the cmake macros on el7 so we'll have to conditionally define them ourselves if we want to use them. Or wait until el7 is EOL.


Fix focusable_preview deprecation warnings

Changed the function call from the now deprecated focusable_preview to the new open_floating_preview
Since this neovim's commit (https://github.com/neovim/neovim/commit/64da499ac25bd833c57e0850e31affd22294049e), focusable_preview is now deprecated in favour of the new open_floating_preview.

This is the mentioned deprecation warning:

thank you! I've tried this (NVIM v0.5.0-dev+1362-g3cd688ff7) and it works perfectly for me

Great, sorry for the delay and thanks for handling this !


routing: payment splitting pre-check

Splitting pre-check to see if the total balance is sufficient for the payment. Otherwise splitting won't ever result in a successful payment, but small shards may be held by the recipient until mpp timeout.

Hold off re-review, found a problem

Problem fixed. In findPath still only the max was checked and not the total.


Timer feature does not enable futures-lite

On a blank node-bindgen repo I ran nj-cli build and the build failed with:
error[E0433]: failed to resolve: use of undeclared type or module `futures_lite`
  --> /home/nick/.cargo/registry/src/github.com-1ecc6299db9ec823/fluvio-future-0.1.10/src/timer.rs:10:9
   |
10 |     use futures_lite::future::Future;
   |         ^^^^^^^^^^^^ use of undeclared type or module `futures_lite`

Looks like the timer feature needs futures_lite but does not enable it.

thanks for reporting this. let me check

fixed.  perform cargo update


Injected CSS causes all divs to have large margins

This package injects the following code into the header:
https://github.com/rikhuijzer/PlutoStaticHTML.jl/blob/f71e051c09b86219fcf7e50647d17b55a7d93106/src/build.jl#L178-L190
This can cause divs that appear regularly spaced in Pluto and Documenter to be very widely spaced with PlutoStaticHTML. e.g. see all of the InferenceData objects here:
https://arviz-devs.github.io/ArviZ.jl/previews/PR136/quickstart/

@rikhuijzer is there a workaround for this? If not, is there a way to disable the addition of this CSS?

@rikhuijzer is there a workaround for this? If not, is there a way to disable the addition of this CSS?

You can always override the elements with your own CSS and !important. It should be pretty trivial if you know CSS. The difficulty is figuring out how elements are called and how they should look.

You can always override the elements with your own CSS and !important. It should be pretty trivial if you know CSS. The difficulty is figuring out how elements are called and how they should look.

I included the following in a custom.css file:
pre, div {
    margin-top: inherit !important;
    margin-bottom: inherit !important;
}

But since the CSS added by this package is embedded in the md file, it takes precedent, so I'd need to modify all produced markdown files to remove the added CSS. As you noted in https://github.com/rikhuijzer/PlutoStaticHTML.jl/issues/89#issuecomment-1073120424, you've elsewhere made the decision to not insert CSS that users may not want. I doubt I'm the first person who will have this issue, so it would be nice to be able to opt out of this added CSS. For me personally, the pages look fine without the adjustment to the margins.

You can always override the elements with your own CSS and !important. It should be pretty trivial if you know CSS. The difficulty is figuring out how elements are called and how they should look.

I included the following in a custom.css file:
pre, div {
    margin-top: inherit !important;
    margin-bottom: inherit !important;
}

But since the CSS added by this package is embedded in the md file, it takes precedent, so I'd need to modify all produced markdown files to remove the added CSS. As you noted in #89 (comment), you've elsewhere made the decision to not insert CSS that users may not want. I doubt I'm the first person who will have this issue, so it would be nice to be able to opt out of this added CSS. For me personally, the pages look fine without the adjustment to the margins.

Have you tried pinning the more narrow elements? CSS will take the style of the closest element. Otherwise, feel free to open a PR. I have been living from a laptop and travelling all week for my job so that‘s why I haven’t implemented a fix yet


Adding Test case for Bubble Sort

Add spock test to cover the implementation for Bubble Sort

well-done bro. thanks.


Export from a specific model view page in Django Admin

Does anyone have any ideas on the best way to add an export button on a model instance's page in Django Admin? The thought being that if you browse to a resource, it would be fairly natural workflow-wise to want to be able to click Export on that page and export that model instance.
I imagine that it is fairly easy to custom code this but it might be a cool feature as a mixin for the model admin, or as an additional feature for the ExportActionMixin.

I think on this that it should be coupled to the export action. If you have the export action enabled you should be able to export a model from its page (and trigger the export workflow etc just like when you select models and do the drop down).  I’ll wish I was better at the django admin code so maybe this would be a decent learning opportunity for me.

Export from actions are being refactored in #1671.  Perhaps we could look into this also.


bug: ion-datetime value=""

I am new to Ionic, it may be somewhat outdated.
Discard if so.
Working with ion-datetime.
set value = "2020" and when performing ionic serve and open in my browser value was -1.
Example:
value = "2020"
"2019" was displayed
no repro in Stackblitz >>>>>>>>>>>>>>>>
https://ionic-4zupt3.stackblitz.io/
ionic version with angular: 5.4.16
Google Chrome: Versión 81.0.4044.129 (Build oficial) (64 bits)
Win 10

Kind Regards!

Thanks for the issue. What is the bug you are running into?

Thanks for the issue. What is the bug you are running into?

UI does not display date correctly

Can you be more specific? A detailed description of the bug would be very helpful.

¿Puedes ser mas específico? Una descripción detallada del error sería muy útil.

Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic/pull/21309 and a fix will be available in an upcoming release of Ionic Framework.
I also noticed your example is using Ionic 3. Ionic 3 is only receiving critical security updates moving forward, so if you would like to get this fix we recommend upgrading your application to Ionic Framework v5.


set file mode explicitly when downloading binary

Set file mode explicitly when downloading binary because the default mode has changed after this security fix was introduced in ansible.
Fixes: https://github.com/cloudalchemy/ansible-node-exporter/issues/177.

@paulfantom is it ready to merge now?

Thank you! 💯 Sorry for the wait, I was on vacations :)

No worries! Hope you enjoyed your vacations 🏖
Thanks for merging!


Add codecov upload to dotnet and python

@LayZeeDK use of CodeCov is a decision made by the architect @Sondergaard during PI planning. SonarCloud also was mentioned as a possibility.

I see, @djorgensendk. Thank you for enlightening me.
@Sondergaard do we have an Architecture Decision Record (ADR)? It would be helpful to track requirements, options considered, pros and cons as well as background for decisions.

@LayZeeDK - we do not have any ADR for the decision to use CodeCov.
We startede implementing CodeCov before SonarCloud. I am not sure that the two products are feature equivalent.

Thank you for your reply, @Sondergaard. Do we have ADRs for DataHub at all? 👀


Name of the icon is not correct

I have just installed the module in my vue project.
Vue version: 2.6.10
Vue unicons version: 3.3.1
Using the following code everything is fine:
<unicon name="car-wash" fill="limegreen"></unicon>
<unicon name="layer-group" fill="royalblue" icon-style="monochrome"></unicon>

However, when I use these icons (found on https://antonreshetov.github.io/vue-unicons/):
<unicon name="angle-up"></unicon>
<unicon name="wifi"></unicon>

I get empty placeholders, and the following errors in console:
Name 'angle-up' of the icon is not correct
Name 'wifi' of the icon is not correct

What do I miss?

I found out the error, I realized just now that I had to add these icons:
import { uniWifi, uniAngleUp } from 'vue-unicons/dist/icons';


ref: Use Error instead of Vec

What is the feature you would like to see?
We should use Err combined with #[derive(SolidityError)] when the function does need to return a Result
This will probably include defining an error strategy
Contribution Guidelines

[X] I agree to follow this project's Contribution Guidelines

Connected with https://github.com/OpenZeppelin/rust-contracts-stylus/issues/336

What exactly should be done as part of this issue?
In which contract are Errs combined with #[derive(SolidityError)] not used?


(release-1.3) [FLINK-7143, FLINK-7195] Collection of Kafka fixes for release-1.3

This PR subsumes #4344 and #4301, including changes in both PRs merged and conflicts resolved.
Apparently, some new tests added in one of the PRs relies also on the fix of the other PR, so opening this one to have a better overall view of the status of the fixes.

R: @aljoscha

@aljoscha do you have any last comments on these changes?

I don't but I would like to give @StephanEwen a chance to comment on the changes that make the checkpoint-related methods on the consumer base final.

I reviewed this a last time with Stephan, offline, and we think we should go with this version. Overriding the snapshot methods is most likely not necessary anymore but if it is we will "un-finalize" them again before release.
@tzulitai Do you want to have the honours of merging? 😃

@aljoscha sure, merging this now :)


So this could be an issue with the device fw itself or maybe some hw 'soft' failure.
Does the DND light turn on/off correctly when you operate the HA/meross_lan light entity ?

I have 3 device and all fail the same
I have the dndmode off and outlet is off, then switch outlet on but the led is off, then switch dndmode to on and turn on the led
When switch outlet off (with led on and dndmode on), then the led stay on, then switch dndmode off and then led turn off
Is like the dndmode need to be changed to refresh the led

Hi. Any news from this?

I didn't have the time to reproduce the behavior you're experiencing so this is still 'in the queue'...
don't worry btw, I'll check it in the next few days ;)

I hava a similar problem.
If the dnd is off and I turn the switch on the led stays off. If I then turn dnd on the led goes on. However If I now turn the switch off the light stays on and cant be turned off until I switch the switch on and change the dnd to off.

Any news about this??

Not yet..still in the backlog ;)

I did some tests and this is what happens on mines (mss310 fw 2.1.4)

switch off
dnd off (led is off)
turn dnd on (led lights up in red)
switch on (led lights up in red/blue)
after a while the red goes away and just stays blue
switch off (led off)
switch on (led on blue)

It looks like whenever you turn on the dnd, the led goes in a 'lighted' state (mines go red) for a while and this is independent of the switch state. I think the led light has different meanings since it is also used to carry connection/pairing state so, when you turn it on (the dnd) the led not only shows the switch state but also some other info.
Could this explain the behavior you experience?

Not. Bassically the led not turn on. Only if change dnd turn on if switch on

I did some tests and this is what happens on mines (mss310 fw 2.1.4)

switch off
dnd off (led is off)
turn dnd on (led lights up in red)
switch on (led lights up in red/blue)
after a while the red goes away and just stays blue
switch off (led off)
switch on (led on blue)

It looks like whenever you turn on the dnd, the led goes in a 'lighted' state (mines go red) for a while and this is independent of the switch state. I think the led light has different meanings since it is also used to carry connection/pairing state so, when you turn it on (the dnd) the led not only shows the switch state but also some other info.
Could this explain the behavior you experience?

more or less yes

Issue still exist with mss710, I just switch from meross iot cloud integration to yours and the light does not switch on when the plug is set to on.
It works fine with the meross application too.
Anyway thanks for working on this integration, hope you can fix it in a future release

Hello,
I just installed Meross-lan on HA and I have the same problem on 7 sockets mss210 7.0.0 (Firmware: 7.3.5)
The most annoying thing is that if my wife turns on a switch with her iPhone under Homekit, it turns on the LED correctly, and if I turn it off with HA, the LED stays on!
Thanks in advance for the fix


Fix wrong Typography variant prop value in sign in example.

Wrong parameter cause this error:
Warning: Failed prop type: Invalid prop variant of value h5 supplied to Typography, expected one of ["display4","display3","display2","display1","headline","title","subheading","body2","body1","caption","button","srOnly","inherit"].

Our docs on master are using the new typography v2 spec. The change will be rolled out in 3.2.0. Until then you should not copy examples from master src into your own codebase. Only use those deployed to https://material-ui.com/.

Our docs on master are using the new typography v2 spec. The change will be rolled out in 3.2.0. Until then you should not copy examples from master src into your own codebase. Only use those deployed to https://material-ui.com/.

Thank you

Same issue with the examples. @eps1lon Given the number of users we have, what do you think of waiting for the release to upgrade the usage?

@eps1lon The documentation match the released version. So we are good.

@mikhailsidorov Thank you for reporting the issue and opening a pull request!

@mikhailsidorov Thank you for reporting the issue and opening a pull request!

Thank you for your work guys.


link buttons: href or reverse(viewname)

Hi,
I think it would be handy to provide view names and get a reverse on eg. {% bootsrap_button "Log in " viewname="login" %}, because I don't see any clean way to get both {% bootstrap_button ... %} and {% url "login" %}.
This draft is only here to start discussions. If this idea is approved, I'll go on and add docs and tests.
Thanks !

Would this work for you?
{% url "login" as url_login %}
{% bootstrap_button "Log in" url_login %}

I have been looking for this without success in the doc.
Thanks for the help, and sorry for the useless PR.

No apologies needed, good luck with Django!


Ability to have duplicate updates - but different allow types

Ability to have duplicate updates in the same dependabot
Would like the ability to do something like this:
version: 2
updates:
  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "daily"
    versioning-strategy: increase
    allow:
      - dependency-type: "production"

  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "weekly"
    versioning-strategy: increase
    allow:
      - dependency-type: "development"

This lets me define that daily, look for dependencies, and weekly look for dev dependencies.
How I have this setup now, I get an error saying

The property '#/updates/1' is a duplicate. Update configs must have a unique combination of 'package-ecosystem', 'directory', and 'target-branch'

Any plans on this feature?

Duplicate of #1778

Thanks @mwaddell ❤ , closing as a duplicate of:

https://github.com/dependabot/dependabot-core/issues/1778


Prevent leakage of zombie processes in jenkins master

See https://github.com/openshift/release/issues/432 for details, including research around the core problem and how it was fixed in similar docker based images

@jim-minter if you find room for this in your other jenkins tech debt work this sprint, please considering knocking this out too.
I think @smarterclayton was also on board with tini.

Just started poking around as well ... assuming we only want to install the 64bit version, hopefully running a 32 bit JVM is orthogonal.  Something to include in unit testing.

Forgot ... make test in this repo runs 32 bit mode


Fix bug using ansible copy module on remote mode

Ansible copy module in local has no problem, but when on remote mode,
will report Unable to find '{}' in expected paths error.
In order to support local and remote mode at the same time,
it is better use shell instead.

Please refer to: https://github.com/ansible/ansible/issues/19994

Build this

@markusthoemmes ,can you look at this, if deployment node and target node are in same machine,
below ansible task has no problem
- name: "Copy expanded archive to final configuration directory"
  copy:
    #  WARNING:  The trailing slash is significant, signalling to copy contents
    src: "{{ openwhisk_build_dir }}/{{ openwhisk_cli.archive_name }}/"
    dest: "{{ openwhisk_cli.nginxdir.name }}"

but if deployment node and target node are in different machines, will report report Unable to find '{}' in expected paths error.
So submit a patch to solve the problem.

This problem is solved by this patch: https://github.com/apache/incubator-openwhisk/pull/3406
So closed.


Aggregate licences to one file in multi module project

I have an android project (with AGP 3.2.0) with a lot of library modules. I would like to have all dependencies in one file. Is this currently possible? I would like to apply the plugin to the root gradle file, so it can check all modules.
At the moment I will get one licence report per module.
For this I added the plugin in all modules.

Have you tried just applying this to the "app" module? You only need the license file for the end production app.

Yes I tried that, but it only shows the direct dependencies of the app module not the dependencies of the other gradle modules.
I would like to have one licence file for the end production app.

I have a few tests with modules. Can you great a test project on GitHub so
I can work on it?
On Thu, Apr 12, 2018, 10:57 PM Michael Möbius<EMAIL_ADDRESS>wrote:

Yes I tried that, but it only shows the direct dependencies of the app
module not the dependencies of the other gradle modules.
I would like to have one licence file for the end production app.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jaredsburrows/gradle-license-plugin/issues/41#issuecomment-381031968,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABqMSPvWT2TrSbpV--6RNBmoSLSZtnbIks5toD43gaJpZM4TJsTb
.

Any update on this? If you have implementation project(":sdk") in your build.gradle, it should work read into the projects dependencies.

Bump

I have the same issue.
I have a project with two modules "app" and "persistence", "persistence" is a dependency for "app".
Dependencies from the persistence module are not included in the app/build/reports/licenses/licenseReleaseReport.json.
The build.gradle in my app module looks like this:
buildscript {
    repositories {
        maven {
            url 'https://maven.google.com'
        }
        jcenter()
    }
    dependencies {
        classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.7.0'
        classpath "com.jaredsburrows:gradle-license-plugin:0.8.5"
    }
}

plugins {
    id 'pl.droidsonroids.pitest' version '0.0.9'
}

apply plugin: 'com.android.application'
apply plugin: 'com.vanniktech.android.junit.jacoco'
apply plugin: 'maven-publish'
apply plugin: "com.jaredsburrows.license"

publishing {
    // stuff
}

pitest {
    targetClasses = ['com.my-app.*']
    verbose true
    threads = 4
    outputFormats = ['XML', 'HTML']
}

android {
    compileSdkVersion project.ext.compileSdkVersion
    buildToolsVersion project.ext.buildToolsVersion

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    signingConfigs {
        debug {
            storeFile file("../contrib/debug.keystore")
        }

        release {
            storeFile file("../contrib/release.keystore")
            storePassword 'foobar'
            keyAlias 'release_key'
            keyPassword 'foobar'
        }
    }

    buildTypes {
        debug {
            signingConfig signingConfigs.debug
        }
        release {
            signingConfig signingConfigs.release
            zipAlignEnabled true
            minifyEnabled false
            shrinkResources false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    defaultConfig {
        applicationId 'com.my-app'
        minSdkVersion project.ext.minSdkVersion
        targetSdkVersion project.ext.targetSdkVersion

        versionCode project.ext.projectVersionCode
        versionName rootProject.version

        testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'

        multiDexEnabled true

        ext.versionString = project.hasProperty('versionString') ? project.getProperty('versionString') : rootProject.version

        resValue 'string', 'app_version', ext.versionString
    }

    testOptions {
        unitTests {
            includeAndroidResources = true
        }
    }

    lintOptions {
        disable 'ValidFragment'//, 'MissingTranslation'
        checkReleaseBuilds true
        abortOnError false
    }

    packagingOptions {
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/DEPENDENCIES'
    }
    buildToolsVersion '26.0.2'
}

dependencies {
    implementation project(':persistence')

    implementation 'com.google.guava:guava:18.0'

    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

    // other dependencies

    testImplementation 'junit:junit:4.12'

    androidTestImplementation 'com.android.support.test:runner:1.0.1'
}

The build.gradle in my persistence module looks like this:
buildscript {
    repositories {
        maven {
            url 'https://maven.google.com'
        }
    }
    dependencies {
        classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.7.0'
    }
}

plugins {
    id 'pl.droidsonroids.pitest' version '0.0.9'
}

apply plugin: 'com.android.library'
apply plugin: 'com.vanniktech.android.junit.jacoco'

pitest {
    targetClasses = ['com.my-app.*']
    verbose true
    threads = 4
    outputFormats = ['XML', 'HTML']
}

android {
    compileSdkVersion project.ext.compileSdkVersion
    buildToolsVersion project.ext.buildToolsVersion

    defaultConfig {
        minSdkVersion project.ext.minSdkVersion
        targetSdkVersion project.ext.targetSdkVersion
        versionCode project.ext.projectVersionCode
        versionName rootProject.version
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    buildToolsVersion '26.0.2'
}

dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'org.reflections:reflections:0.9.11'

    testImplementation 'junit:junit:4.12'
    testImplementation 'org.robolectric:robolectric:3.4.2'
    testImplementation 'org.mockito:mockito-core:2.8.47'
}

And here is my root build.gradle:
buildscript {

    repositories {
        maven {
            url 'https://maven.google.com'
        }
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven {
                url "http://my-app-maven.repo.blub"
        }
    }

    project.ext {
        compileSdkVersion = 26
        buildToolsVersion = '26.0.1'
        minSdkVersion = 17
        targetSdkVersion = 26

        projectVersionCode = 100
    }

    group 'com.my-app'
    version '1.0.0-SNAPSHOT'

}

task clean(type: Delete) {
    delete rootProject.buildDir
}

task npmInstall(type: Exec) {
    workingDir './'
    executable 'yarn'
    args 'install'
}

i have nearly the same setup, but dependencies of other modules than :app are not visible in the generated html file

Any follow up on this?
cc @jaredsburrows

@jimlyas I accept PRs :)
How would this work? Aggregate all submodules into the root where gradlew licenseReport was ran? What if there is more than one 1 app in the Gradle project?


BUG: A sparse matrix raises a ValueError when __rmul__ with a value as None

Describe your issue.
A sparse matrix multiplied with a value of an unsupported operand type raises TypeError. However, in SciPy 1.8.0rc1, a sparse matrix raises ValueError when it is called __rmul__ with a value that is not interpretable as an array,  e.g. None. It should raise TypeError instead as __mul__ does.
Reproducing Code Example
import numpy as np
import scipy.sparse as sp
m = np.eye(3)
m = sp.coo_matrix(m)
None * m

Error message
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ext-mtakagi/.pyenv/versions/nvidia/lib/python3.9/site-packages/scipy/sparse/_base.py", line 610, in __rmul__
    return self._rmul_dispatch(other)
  File "/home/ext-mtakagi/.pyenv/versions/nvidia/lib/python3.9/site-packages/scipy/sparse/_base.py", line 607, in _rmul_dispatch
    return (self.transpose() @ tr).transpose()
  File "/home/ext-mtakagi/.pyenv/versions/nvidia/lib/python3.9/site-packages/scipy/sparse/_base.py", line 618, in __matmul__
    raise ValueError("Scalar operands are not allowed, "
ValueError: Scalar operands are not allowed, use '*' instead

SciPy/NumPy/Python version information
1.8.0rc1 1.22.0rc1 sys.version_info(major=3, minor=9, micro=7, releaselevel='final', serial=0)

Thanks for reporting this bug, @takagi.   You are correct, that should be a TypeError.

I'm adding new issues that should be fixed for 1.8.0rc2 (or 1.8.0 final) to the 1.8.0 milestone.  If a different procedure is preferred, let me know.

xref: https://github.com/cupy/cupy/issues/6233

Thanks, it is definitely fine for us.

What's happening here is that, somehow, other gets converted to array(None, dtype=object) which does not look like a scalar anymore.  I'll investigate.

The problem is that None can be coerced into an array:
In [2]: np.array(None)
Out[2]: array(None, dtype=object)

I can add a specific check for None, but it sounds like you want a wider class of objects excluded?
I you only want None to be excluded, I can easily add that back in with a special check.

Here's the offending code from _base.py:
        # If it's a list or whatever, treat it like a matrix
        other_a = np.asanyarray(other)

How about reverting this line https://github.com/scipy/scipy/pull/14822/files#diff-8aed1ba485f8d01bc74679865b6ca8fa04efde8b6fef5a57f587b61eb7a8734cR607 to
return (self.transpose() * tr).transpose()

or
return self.transpose()._mul_dispatch(tr).transpose()

We cannot revert that line, or it will break for arrays. I think by the time we get to the point where we think array(None, dtype=object) is another array we should interact with, we're in trouble already. I think this goes back to an issue with NumPy where it is a bit over-eager in converting objects to arrays.  @seberg Thoughts?

I got
>>> np.eye(2) * sparse.csr_array(np.arange(6).reshape(2, 3))
array([[0., 1., 2.],
       [3., 4., 5.]])
>>> np.__version__, scipy.__version__
('1.22.0rc2', '1.8.0rc1')

but I expect dense * sparse computes

elementwise mul if both operands are "array"
matmul if any operand is a "matrix"

I think the problem is that isscalar is not just not very useful.  You can't know that the result asarray result won't be 0-D, and if it is you have to go into the normal multiply path.  (There might be more subtleties, in that None * m used to fail earlier and not try to go to object arrays, but that seems OK?)
So, you can't commit to using @ quite there, calling the _mul_dispatcher may well be reasonable.  By that time, the other object got a chance to deal with it, so converting it to a dense array should not be terrible (but that could be an object array of course).

but I expect dense * sparse computes

elementwise mul if both operands are "array"
matmul if any operand is a "matrix"

This is a bug, for sure!

OK, figured it out: rmul is missing from the array interface :roll_eyes:

I'd like to see the issue reopened to clarify the status. The original problem persists in 1.8.0rc2.
Python 3.10.0 (default, Oct 26 2021, 11:19:32) [Clang 11.0.0 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> import scipy.sparse as sp
>>> m = np.eye(3)
>>> m = sp.coo_matrix(m)
>>> None * m
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../site-packages/scipy/sparse/_base.py", line 610, in __rmul__
    return self._rmul_dispatch(other)
  File ".../site-packages/scipy/sparse/_base.py", line 607, in _rmul_dispatch
    return (self.transpose() @ tr).transpose()
  File ".../site-packages/scipy/sparse/_base.py", line 618, in __matmul__
    raise ValueError("Scalar operands are not allowed, "
ValueError: Scalar operands are not allowed, use '*' instead
>>> np.__version__
'1.22.0'
>>> import scipy; scipy.__version__
'1.8.0rc2'

Yes, sorry, my fix only helped for sparse arrays, not matrices.

Would this be too explicit a fix?
diff --git a/scipy/sparse/_base.py b/scipy/sparse/_base.py
index 0611242e9..47b0ca5fc 100644
--- a/scipy/sparse/_base.py
+++ b/scipy/sparse/_base.py
@@ -604,6 +604,10 @@ class spmatrix:
                 tr = other.transpose()
             except AttributeError:
                 tr = np.asarray(other).transpose()
+
+            if tr.shape == ():
+                raise TypeError('Multiplier is not scalar-like, but also cannot be converted to an array')
+
             return (self.transpose() @ tr).transpose()

     def __rmul__(self, other):  # other * self

It might be possible that tr is a ()-shaped numeric array. While I can't give its exact example for now, there is a "dense array" class that is not covered by _sputils.isdense but np.asarray works.
>>> import numpy as np, scipy.sparse as sparse, torch
>>> sparse._sputils.isscalarlike(torch.tensor(3))
False
>>> np.asarray(torch.tensor(3))
array(3)
>>> type(_)
<class 'numpy.ndarray'>

If the "array" class does not implement transpose, the results differ:
>>> torch.Tensor.transpose = lambda self: "".noattribute  # as if torch.Tensor.transpose were unimplemented
>>> torch.tensor(3) * sparse.csr_matrix([[1, 2], [0, 3]])
<2x2 sparse matrix of type '<class 'numpy.int64'>'
        with 3 stored elements in Compressed Sparse Row format>
>>> _.todense()
matrix([[3, 6],
        [0, 9]])

with SciPy 1.7.3 and
>>> torch.tensor(3) * sparse.csr_matrix([[1, 2], [0, 3]])
ValueError: Scalar operands are not allowed, use '*' instead

with SciPy 1.8.0rc2.


Update home pages with lessons

Here's a start (re: issue #21 on https://github.com/data-lessons/library-data-intro/issues). I moved what was in index.html to blog.md and updated _layouts/default.html appropriately to reflect this change.
I also updated the verbiage on about.md a bit.
This could still use some serious styling, and could even be done dynamically a la the way software carpentry treats episodes. But it's a starting point for links to all the lessons in one place.

Hold off on this PR. Have to update some image files first...

OK, added images files to blog. Should probably fix this so image assets aren't duplicated (or triplicated, or quadruplicated), but that is a separate issue.  PR should be ready.

@jezcope Seen as you were looking at this separately (which I assumed incorrectly was dormant, so apologies for the duplication!) could you take a look at this?

 ;)

Yeah, sorry. I just wanted to see what it would look like. Do your hacks look much different?

No worries! I hadn't put any info on the front page so this is better. I had solved the duplicate assets problem though, so I'm just putting together a PR for that over lunch.
This may help with previewing Github Pages stuff: https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/

See #3 :smiley:

Thanks both. Nice to have a proper landing page!

Yes, I really like this summary of the lessons.


fix(config): iblinds V3/V3.1 Parameters (8-10)

Add new parameters for the latest firmware V3.07/V3.12 of iblinds V3/V3.1 (respectively)
Parameters:
8: Minimum Tilt Level
9: Maximum Tilt Level
10: Remap 99
Chance H.
Lead Developer at HAB Home Intelligence

Also this seems to have merge conflicts. If you can, please reset your branch to our master branch and then apply the changes in a single commit.

Also, your fork seems to be a bit out of date (still had the old config format). I suggest you re-create it and sync it before each PR to prevent conflicts.


Add mutiple env variable option

This PR creates a new option for the S3DATA env variable of 'multiple.'
When set, it allows the user to set the storage location of an object by setting the 'x-amz-meta-scal-location-constraint' header on a put request.
Current supported locations are mem, file, and sproxyd.

@ironman-machine check it!

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/multipleEnvVariable"}
Please follow http://ci.ironmann.io/gh/scality/Integration/10186 for CI status.

@ironman-machine backendInfo fixed

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/multipleEnvVariable"}
Please follow http://ci.ironmann.io/gh/scality/Integration/10198 for CI status.

@ironman-machine now

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/multipleEnvVariable"}
Please follow http://ci.ironmann.io/gh/scality/Integration/10205 for CI status.

@ironman-machine go

Please try to split into smaller commits with well-defined scope next time if that is possible without too much pain, to help the reviewer ;)

@ironman-machine let's go

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/multipleEnvVariable"}
Please follow http://ci.ironmann.io/gh/scality/Integration/10382 for CI status.

@ironman-machine do it

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/multipleEnvVariable"}
Please follow http://ci.ironmann.io/gh/scality/Integration/10439 for CI status.

@ironman-machine last one

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/multipleEnvVariable"}
Please follow http://ci.ironmann.io/gh/scality/Integration/10498 for CI status.

@ironman-machine really last one

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"REPO_NAME": "S3", "DEFAULT_BRANCH": "master", "SCALITY_S3_BRANCH": "ft/multipleEnvVariable"}
Please follow http://ci.ironmann.io/gh/scality/Integration/10586 for CI status.

@ironman-machine try
SCALITY_FEDERATION_BRANCH=ft/addnewconfig
SCALITY_INTEGRATION_BRANCH=ft/addnewconfig

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"DEFAULT_BRANCH": "master", "SCALITY_FEDERATION_BRANCH": "ft/addnewconfig", "SCALITY_INTEGRATION_BRANCH": "ft/addnewconfig", "SCALITY_S3_BRANCH": "ft/multipleEnvVariable", "REPO_NAME": "S3"}
Please follow http://ci.ironmann.io/gh/scality/Integration/10601 for CI status.

@ironman-machine try
SCALITY_FEDERATION_BRANCH=ft/addnewconfig
SCALITY_INTEGRATION_BRANCH=ft/addnewconfig

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"DEFAULT_BRANCH": "master", "SCALITY_FEDERATION_BRANCH": "ft/addnewconfig", "SCALITY_INTEGRATION_BRANCH": "ft/addnewconfig", "SCALITY_S3_BRANCH": "ft/multipleEnvVariable", "REPO_NAME": "S3"}
Please follow http://ci.ironmann.io/gh/scality/Integration/10609 for CI status.

@ironman-machine try
SCALITY_FEDERATION_BRANCH=ft/addnewconfig
SCALITY_INTEGRATION_BRANCH=ft/addnewconfig

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"DEFAULT_BRANCH": "master", "SCALITY_FEDERATION_BRANCH": "ft/addnewconfig", "SCALITY_INTEGRATION_BRANCH": "ft/addnewconfig", "SCALITY_S3_BRANCH": "ft/multipleEnvVariable", "REPO_NAME": "S3"}
Please follow http://ci.ironmann.io/gh/scality/Integration/10804 for CI status.

@ironman-machine try
SCALITY_FEDERATION_BRANCH=ft/addnewconfig
SCALITY_INTEGRATION_BRANCH=ft/addnewconfig

Hello @dora-korpar
Starting end to end procedure using the following payload:
{"DEFAULT_BRANCH": "master", "SCALITY_FEDERATION_BRANCH": "ft/addnewconfig", "SCALITY_INTEGRATION_BRANCH": "ft/addnewconfig", "SCALITY_S3_BRANCH": "ft/multipleEnvVariable", "REPO_NAME": "S3"}
Please follow http://ci.ironmann.io/gh/scality/Integration/10811 for CI status.


Unable to contribute to this project

I've installed Sphinx and cloned this project.
On the master branch, when trying to make html from the aspnet directory the build exit with the (warning treated as an) error:
c:\Git\aspnet-docs\aspnet\fundamentals\app-state.rst:148: WARNING: dn:iface reference target not found: ~Microsoft.AspNetCore.Http.ISession

But the index.rst file do exist in my C:\Git\aspnet-docs\api\autoapi\Microsoft\AspNetCore\Http\ISession\ folder, and the corresponding web page exist in the cross referenced mapped site.
The cross reference mapping is:
intersphinx_mapping = {
    'api': ('http://docs.asp.net/projects/api/en/latest', '../common/api.inv')
}

and should be ok.
I've also managed to read the api.inv file with the sphobjinv package, that I've installed with pip install sphobjinv.
I've converted the api.inv file to api.txt file with the line command (executed from the common folder):
sphobjinv decode api.inv

and I did found this reference:
Microsoft.AspNetCore.Http.ISession dn:interface 1 autoapi/Microsoft/AspNetCore/Http/ISession/index.html#$ -

in the text-converted file.
So I really can't understand why I get the warning error.

Solved!
Cause
All *.rst files use a wrong syntax to cross reference. As an example see the line that produce the error:
[...] which exposes a property called ``Session`` of type :dn:interface:`~Microsoft.AspNetCore.Http.ISession`. [...]

note the reverse accent (aka backtick or grave accent) before the tilde character, placed there to mark the beginning of the hyperlink reference (as dictated by the reStructuredText inline markdown syntax).
But in that position the reverse accent breaks the cross reference syntax!
Solution
The right place is before the start of the cross reference, as shown here:
[...] which exposes a property called ``Session`` of type `:dn:interface:~Microsoft.AspNetCore.Http.ISession`. [...]

After changing this in all the *.rst files, all the warning errors disappear.

Hi Nicolò,
I can't reproduce this issue on my machine, probably because I already have the required bits installed. Here is what I just did to reproduce.

Go to my 'scratch' folder in cmd prompt
git clone  docs
cd docs
cd aspnet
make html

End result:

Are you certain you have followed the instructions here, from the correct directories and with the necessary permissions?
https://github.com/aspnet/Docs/blob/master/CONTRIBUTING.md

Hi Steve,
I'm double checking and also try to install everything again to another device (my Surface Pro 1, still good for this). I'll update ASAP

@ncarandini  Just ignore that warning for now.

Thanks Rick and Steve, I successfully installed everything on my other device. So I'm good to go.
By the way, I'm still trying to understand what got wrong on my first device, but now is irrelevant, just my curiosity.

I've also solved on my first device uninstalling python and deleting all related folders in %LocalAppData%\Programs\ and following the steps on the https://github.com/aspnet/Docs/blob/master/CONTRIBUTING.md (as I did before, but only after some other steps, like installing the latest version of Sphinx by myself).
To reproduce the issue, I tried to replay the same steps I did the first time in a Windows 10 clean VM, without success.
So I've decided that enough is enough, and this has been a long story with an happy ending.

Hi Steve,
thanks for your help.
My apologies for wasting your time, restarting from scratch solved the issue, and I can’t tell what went wrong in the first try.
I hope to meet you in person at the MVP Summit, I owe you a beer! :)
Nicolò.
Da: Steve Smith<EMAIL_ADDRESS>Inviato: lunedì 26 settembre 2016 17:39
A: aspnet/Docs<EMAIL_ADDRESS>Cc: Nicolò Carandini<EMAIL_ADDRESS>State change<EMAIL_ADDRESS>Oggetto: Re: [aspnet/Docs] Unable to contribute to this project (#1915)
Hi Nicolò,
I can't reproduce this issue on my machine, probably because I already have the required bits installed. Here is what I just did to reproduce.

Go to my 'scratch' folder in cmd prompt
git clone docs
cd docs
cd aspnet
make html

End result:
https://cloud.githubusercontent.com/assets/782127/18840744/9d4f52cc-83dd-11e6-8604-9cb567ddc753.png
Are you certain you have followed the instructions here, from the correct directories and with the necessary permissions?
https://github.com/aspnet/Docs/blob/master/CONTRIBUTING.md
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/aspnet/Docs/issues/1915#issuecomment-249607408 , or mute the thread https://github.com/notifications/unsubscribe-auth/AAIgCjNSAlyXnETuSvCicyv8PiRnSJUcks5qt-cDgaJpZM4KF1lk .  https://github.com/notifications/beacon/AAIgCr5rbLRHUc3b85eGHWT8_eJOa-xsks5qt-cDgaJpZM4KF1lk.gif


possibility to restrict Sunda straits?

Hello,
First of all, thank you so much for maintaining this package, it is super useful.
I am plotting various routes across countries, and I notices that when trying to link the DRC to China, the chosen route is different to what ships normally choose. As you can see from the picture below, the route linking South Africa to China passes through the Sunda straits ( near Jakarta ). However, this route is not commonly used since that's a straight that is very difficult to navigate for large vessels, which normally pass through the Malacca straits when travelling to South Africa.
Is there any chance you could add this straight as one of those straights that can be restricted? If not, is there any technique you could suggest I use to manually remove that passage?
Thank you
Leonardo

Hi @LeoPaoli,
It looks similar to the previous request/issue.
I'll look up for main straits out there that are missing in the current version, then will include in the network.
If you have a list of straits, feel free to share here.
Regards

Covered in Release 1.3.1 🚀

Hello,
Thanks a lot!
You probably already covered it, but I would say that the list of straits
in the PDF attached is an exhaustive one.
Best
Leo
On Thu, 25 Jan 2024 at 20:52, Gent @.***> wrote:

Hi @LeoPaoli https://github.com/LeoPaoli,
It looks similar to the previous request/issue.
I'll look up for main straits out there that are missing in the current
version, then will include in the network.
If you have a list of straits, feel free to share here.
Regards
—
Reply to this email directly, view it on GitHub
https://github.com/genthalili/searoute-py/issues/25#issuecomment-1910890778,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGNOTCZE24F3IZ4DUVBU5RLYQKZW5AVCNFSM6AAAAABCG6WDJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJQHA4TANZXHA
.
You are receiving this because you were mentioned.Message ID:
@.***>


feat!: do not check for expect before printing the argument of accept…

…(...)
Checklist
check the box if it is not applicable to your changes

[x] I have updated the README with the necessary documentation
[x] I have added unit tests
[x] I have added end-to-end tests
[x] I have linked all related issues or PRs
[x] I have re-generated the completions and manpage using cargo xtask compgen and cargo xtask mangen

Description of the changes

Do not require --expect to be able to print the argument of the accept binding
Do not print an empty line if --expect is set but a different accept key is pressed
Effectively starts the deprecation of --expect <key> in favor of --bind:accept(<key>)

closes #624

@ibhagwan if you have some time, I'd love for you to take a look at this and give me your opinion !

The PR title validation is expected to fail, as it does not validate PRs with breaking changes, which this one is.

@ibhagwan if you have some time, I'd love for you to take a very quick look at this and give me your opinion !

Will do some testing on master and let you know my thought, Ty @LoricAndre!

I'll revert the change if you see anything, don't hesitate to tell me !

@LoricAndre, maybe I'm missing something but the below still doesn't work (the select-all is ignored):
echo "1\n2" | sk --bind=ctrl-q:select-all+accept --expect=ctrl-q

Could you try --bind ctrl-q:select-all+accept(ctrl-q), without expect ?

Could you try --bind ctrl-q:select-all+accept(ctrl-q), without expect ?

Works

If  accept(<key>) the way to go no problem, I just wasn't sure if this PR should also "fix" the expect+bind combo.

I think we'll try to deprecate --expect, I don't really know why it is there since internally it is translated into and Accept event, just like the one you create with the command above.

I think we'll try to deprecate --expect, I don't really know why it is there since internally it is translated into and Accept event, just like the one you create with the command above.

Good call, I find it confusing and counter intuitive and I like the accept(key) approach.

@LoricAndre , https://github.com/ibhagwan/fzf-lua/commit/c3a3b95fce776a9feebb153f425906b1358c6588


[KIP-601] Increase connection timeout

being closer to the defaults in KIP-601.
In KafkaJS the connection establishment limit corresponds to the connectionTimeout + authenticationTimeout.
authenticationTimeout has been increased to 10s, but connectionTimeout is 1s.
KIP-601 socket.connection.setup.timeout.ms is about connection and in librdkafka corresponds to 30s, while in kafka-clients is exponential from a minimum of socket.connection.setup.timeout.ms (10s) to a maximum of socket.connection.setup.timeout.max.ms (30s).
This reduces the gap by setting the minimum to 10s and the sum of them to 20s.

Thanks for this PR @emasab
I think it's important to bump this limit too @Nevon - otherwise it makes the client too fragile to connection storm issues - we've seen cases where clients connect to brokers at once and due to either throttling or simple overload of the acceptor thread in Kafka, the broker can take more than a second to establish the connection.
If clients are too sensitive to this timeout, they risk perpetuating the issue


Implement simple POST API deployed on AWS

closes #7 Implement simple POST API deployed on AWS
As a developer, I want to deploy an HTTP POST ping API, so that I can verify the server responds when I send a request.
AC:

simple PING API: checking if the server is there.
Use URL to send post HTTP POST request and server responds with status code and body.

Activities / Time Estimates:
Research P1 (Investigated which options to host API, what type): 1 hour
Meet with Devops (Discuss API gateway/lambda): 1 hour
Create (in AWS console:): new API gateway, and integrate with new Lambda function trigger: 30 minutes
Research P2 (API gateway with HTTP API and Lambda): 2 hours
Develop (Lambda function ): 1 hour
Add Route integration: 10 minutes
Revision based on front end team and fixed CORS issue: 2? hours
PR 1 hour
Test Case 1:

Open URL https://9u4xt4nqr1.execute-api.us-west-2.amazonaws.com/default/test in browser
Verify response from the server (JSON body with sample mock data)

Test Case 2:
Prerequisites:
Postman installed or Postman account to use web browser

Create a new request by clicking the plus icon in the tabs section

Enter request URL: https://9u4xt4nqr1.execute-api.us-west-2.amazonaws.com/default/test

Press Send

The response body will show with sample JSON data

Change the “GET” method to “POST” (drop-down is next to URL).

POST options:

Select the “Body” tab under the URL
“raw”
JSON on the dropdown

Enter simple JSON e.g. [{“id”:1}]

Press the “send” button

Server responds with body and status code. example:

I wrote a simple Python test script and everything worked out as expected. Well done.
import requests as req

def main():
    url = 'https://9u4xt4nqr1.execute-api.us-west-2.amazonaws.com/default/test'
    r = req.get(url)
    print('Response from POST\n\t' + str(r) + '\n\t' + str(r.content) +\
        '\n')

    r = req.post(url, json={'id':1})
    print('Response from GET\n\t' + str(r.content))

if __name__ == '__main__':
    main()


[SPARK-45475][SQL] Uses DataFrame.foreachPartition instead of RDD.foreachPartition in JdbcUtils

What changes were proposed in this pull request?
This PR is kind of a followup for https://github.com/apache/spark/pull/39976 that addresses https://github.com/apache/spark/pull/39976#issuecomment-1752930380 comment.
Why are the changes needed?
In order to probably assign the SQL execution ID so df.observe works with this.
Does this PR introduce any user-facing change?
Yes. df.observe will work with JDBC connectors.
How was this patch tested?
Manually tested.
Was this patch authored or co-authored using generative AI tooling?
No.

QQ: is there an E2E test for this change?

Added a simple test

Merged to master and branch-3.5.

@HyukjinKwon did this break the 3.5 build?  I'm seeing an error building:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala:902: type mismatch;
08:23:21   found   : Object
08:23:21   required: Iterator[org.apache.spark.sql.Row]

I reverted it. I will make a PR tmr.