How to add custom inline styles for font-weight, letter-spacing, etc...

Hey I'm having trouble figuring out how toggleCustomInlineStyle works.
I was successfully able to change the inline font-size by doing something like:
const newEditorState = toggleCustomInlineStyle(figure.editorState, 'fontSize', e.target.value);
this.setState({editorState: newEditorState})

but then when I wanted to do the same thing with font-weight, letter-spacing, etc... it doesn't work.
Is this function not supported? If so, how can I achieve it?

Hey @DaisukeKajiyama , custom styles supported atm are: https://github.com/jpuri/draftjs-utils/blob/master/js/inline.js#L130
You can use this method directly to add other inline styles: https://draftjs.org/docs/api-reference-rich-utils#toggleinlinestyle
You will also be required to add it here: customStyleMap
https://draftjs.org/docs/advanced-topics-inline-styles#mapping-a-style-string-to-css

@jpuri Thanks! I managed to do it


[bug] async js chunks that include css/scss imports cause => Uncaught (in promise) TypeError: Cannot read property 'call' of undefined

Tested with
ETP:2.1.0
webpack: 2.2.1
Node v7.7.1
There seems to be some issue when importing a scss file in a common chunk if that common chunk also imports an async/dynamic js chunk which imports another scss file.
File setup

//===== a.js =====
import './common';

//===== b.js =====
import './common';

//===== common.js =====
import './common.scss';
import ('./async.js'); // async import

//===== async.js =====
import './async.scss'

This issue happens when allChunks:false [I would like to lazy load js and associated css], and what seems to be happening is that the runtime code for css-loader is not always being included in the bundle which results in the below error?
Uncaught (in promise) TypeError: Cannot read property 'call' of undefined
    at __webpack_require__ (bootstrap 3d99482…:52)
    at Object.95 (async.scss:1)
    at __webpack_require__ (bootstrap 3d99482…:52)
    at Object.96 (async.scss?eb60:4)
    at __webpack_require__ (bootstrap 3d99482…:52)
    at Object.94 (0.cb65e0.chunk.js:8)
    at __webpack_require__ (bootstrap 3d99482…:52)

But if I for example update common.scss  while webpack-dev-server is running, when the bundle gets rebuilt and the page refreshes I can see the code for css-loader in the chunk and the error goes away, but if I restart webpack-dev-server again and refresh the error comes back and css-loader code is gone.
I have created a repo with  showing this error
https://github.com/ericnoguchi/webpack-testing
steps to reproduce.

npm install
npm run startDev
go to http://localhost:8080/ and observe error
updated any of the scss modules e.g. common.scss and after webpack-dev-server refreshes error is gone.
check async/*.chunk.js contents in each case injected in the head tag.

Link stack overflow issue:
http://stackoverflow.com/questions/42687881/async-js-chunks-that-include-scss-imports-cause-uncaught-in-promise-typeerr

I'm having the very same issue! Been trying to debug it a bit, but no luck so far.
AFAIK the code for css-loader(and style-loader) is removed when one of the extracted css files is rebuilt by extract-text-webpack-plugin.
Child deps of that css file are processed https://github.com/webpack/webpack/blob/master/lib/Compilation.js#L506 and it seems that the original, non-extracted css module is removed(might be wrong here). And this in turn removes the reasons for the css-loader and style-loader runtimes to be included in the common chunk.
I'm not really familiar with webpack internals so it's hard to pinpoint the exact location of the issue, some help would be greatly appreciated.

Was kinda right...
Two files are missing in the bundle - css-loader/lib/css-base.js & style-loader/addStyles.js.
Been looking into what happens to addStyles.js. commons.scss module lands here https://github.com/webpack/webpack/blob/master/lib/Compilation.js#L502 after the extract-text-plugin triggers it. It has two dependencies, another commons.scss module(that's from the child compiler I guess?) and addStyles.js. Eventually it get's to this.removeChunkFromDependencies(d.module, chunk); and style-loader/addStyles.js get's removed from the commons chunk and it never ends up in the bundle.

is there any update on this? Issues still remains with wepback 3.1.0 and ETP 3.0.0

@ericnoguchi wip

@ericnoguchi what about set allChunks: true ?
new ExtractTextPlugin({
  filename: '[name].css',
  allChunks: true
})

@evilebottnawi
That is what we are doing for the time being but ideally we would like to be able to lazy load css modules that are included in async JavaScript chunks

@ericnoguchi Looks like an error, looking for a solution, thanks!

@ericnoguchi what about this (async: true):
new webpack.optimize.CommonsChunkPlugin({
   names: ['common', 'vendor', 'webpackBootstrap'],
   async: true
})

If anyones interested I've got a temp fix working by excluding css-loader & style-loader from the common chunks. Looks like this
webpack.config.js
const handleCommonChunks = excludeCommons(entryFileCount); // Entry file count is calculated during build time.

// Somewhere in the webpack config.
new CommonsChunkPlugin({
    name: 'common',
    chunks: commonEntries, // Also generated when the build starts
    minChunks: handleCommonChunks
})

excludeCommons.js
/**
 * List of modules to be excluded from the common chunks. Keep in mind this is checked against the full file path of
 * the module. Separate files or whole folder/pacakages can be excluded.
 */
const excludedModules = [
    'css-loader',
    'style-loader'
];

module.exports = function (entryFileCount, modulesToExclude = excludedModules) {
    return function (module, occurenceCount) {
        const {resource} = module;
        const excludeModule = modulesToExclude.some(moduleName => resource.includes(moduleName));

        /**
         * Returning true will include the module in the common chunk.
         * 1. Do not include excluded modules.
         * 2. If the module occurs in every entry chunk - include it in the common chunk.
         * 3. Exclude every other module.
         */
        if (excludeModule) {
            return false;
        } else if (occurenceCount === entryFileCount) {
            return true;
        } else {
            return false;
        }
    };
};

This really making extract text plugin unusable when using Code Splitting. This issue along with #120 prevent the use of allChunks:false and make css splitting completely broken.

@prannayb can you provide minimum reproducible test repo?

+1 this is affecting our team too.
allChunks:false does somewhat fix this issue, but we do not want to load unnecessary CSS on our initial Single Page App page load.
@kostasmanionis I tried your solution, but I'm hitting a problem. I'm excluding css-loader and style-loader from the common chunk that is based on the async chunks, as your suggestion describes. However, in excluding those modules, they of course then do not exist in my common chunk but they are needed there too, as well as in the chunks themselves, as I have common CSS sitting in the common chunk that has been extracted.

I got around the above mentioned issue by also excluding all CSS/LESS/SCSS from the common chunking too.

I worked around the problem by adding css-loader/lib/css-base and style-loader/lib/addStyles to my vendor bundle. So if you have already a vendor bundle, this is a much simpler workaround.

@ArgonAlex
Good find! I tested your solution with the repo above and so far the error is gone and the css dynamically loads

faced the same issue, for now I am not dynamically loading css. Removed the css import from the lazy-loaded component and added it to main parent component.

@pleerock Looks like my fix only temporarily fixed the problem. It is super odd because if you modify and save a file and let webpack do an incremental build the issue goes away. But I can't do that for a production build. I edited my comment to reflect my experience.

I am getting this issue as well - is there any sign of a fix?

Getting this issue too, no fix on the sight?

Looking at one PR referenced above seems like they have a working fix (works for me too), also similar to the solutions proposed in this page, but placing the 'style-loader/addStyles', 'css-loader/lib/css-base', under the entry point that gives the error instead of placing it in the vendor entry point.
entry: {
  main: [
    'app.js',
    'style-loader/addStyles',
    'css-loader/lib/css-base',
  ]
}

I came across this bug as well and haven't been able to fix this. Adding the loaders like mentioned in the comment above does work, but I don't want to have this in production.
The allChunks: true option really is the only option which solved the issue for me. Only downside is that you have all the CSS in 1 bundle and you don't lazy load that.

@JeroenReumkens Unfortunately, your solution was the only one that worked for me as well!  Thanks for the short term fix.

Not sure if this'll help anyone, but I had the same problem, which went away when I switched from extract-text-webpack-plugin to mini-css-extract-plugin.
Took me quite a while to realize that you're not meant to use extract-text-webpack-plugin with Webpack v4 anymore.

I've tried all the workarounds above, and none have worked for me.
In my case a dependency in node_modules loads its own sass, and when running the app (next.js) in development mode, when navigating between pages, webpack dynamically builds the resources, but then throws the error mentioned in this issue ('TypeError: Cannot read property 'call' of undefined'), which relates directly to the sass import declaration in the dependency. Refreshing the page will avoid the errors (until next rebuild).

So, I just ran into this bug today while using create-react-app. Short of ejecting and trying some of the web pack config changes above, the only solution that worked reliably for me was to move the css imports to the root of the app to avoid any async css imports.

DEPRECATED
Please use: https://github.com/webpack-contrib/mini-css-extract-plugin


Implementation of Dynamic Programming

Longest Common Subsequence
Longest Increasing Subsequence
Edit Distance
Minimum Partition
Ways to Cover a Distance
Longest Path In Matrix
Subset Sum Problem
Optimal Strategy for a Game
0-1 Knapsack Problem
Boolean Parenthesization Problem
Shortest Common Supersequence
Matrix Chain Multiplication
Partition problem
Rod Cutting
Coin change problem
Word Break Problem
Maximal Product when Cutting Rope
Dice Throw Problem
Box Stacking
Egg Dropping Puzzle

Hey , i can implement longest common subsequence(python), can you assign me this

I would like to work on all in C++

Guys you can take any problem you want as long as its implementation doesn't exist.

Added 01-kanpasack bottom up and top down DP . Do check PR #137

i would like to work on the coin change problem using c++

i would like to work on the coin change problem using c++

you can take it as its implementation doesn't exist.

Sir please assign this issue to me
Why you should assign this to me?
i am current rated 5 star at codechef with rating of 2153 and rated expert at codeforces with rating of 1776
https://codeforces.com/profile/navjotdadwal
https://www.codechef.com/users/navjot1234
So i can handle and solve this issue

@navjotdadwal assigned.

May I please be assigned issue 12, Matrix Chain Multiplication using Python(if language not allowed, then using C++). It hasn't been solved.

May I please be assigned issue 12, Matrix Chain Multiplication using Python(if language not allowed, then using C++). It hasn't been solved.

assigned.

Please review my code https://github.com/The-Streamliners/Data-Structures-and-Algorithms/pull/264

hey , I am new to open source development , I would love to work on all of that , can you please assign these to me


Add CellAssign predictions to cell type annotation workflow

Closes #303
This PR adds a process for obtaining CellAssign predictions to the main cell type annotation workflow.

I added this process into the current classify_celltypes.nf process where we now get cell type annotations using both SingleR and CellAssign. Right now for CellAssign I only output the predictions and plan to add one more process to merge in the predictions from CellAssign to the annotated rds file with SingleR annotations.
This does rely on the assumption that every project will have both a SingleR reference and a CellAssign reference. I think that's okay, because I don't see any scenarios as of yet that we wouldn't have them.
I used the highest memory and cpu label that we have. During testing, this was immediately failing due to memory errors, but is running on the third retry. I'm using the max to try and eliminate the failing and re-submitting as much as possible.
Also see AlexsLemonade/ScPCA-admin# for the changes to the metadata file that I made. There I added columns for the SingleR ref file and CellAssign ref file and am directly using them in the workflow rather than creating the paths.

Note: I am still running a test to make sure that this completes fully, but it's been running for some time so I think most of the errors have been accounted for. I'll request a review once I ensure this is able to run to completion.
Edit: The test completed successfully, but it did take ~16 hours as a warning for reviewers that would like to test it. 😬

Thanks for the review @sjspielman. I updated the comments and addressed all of your feedback. I did temporarily update the output, but again I do think that will ultimately change.
For testing I used, SCPCL000295. I will say that I tested before I upped the cpu requirement, so it only used 4 cpus. Increasing that to 12 should hopefully decrease the amount of time we need to run.

I'll try the same library then, let's see how the change in cpu/ram affected runtime!


Latests commits broke flit.nvim

Dunno if it helpful

Seeing similar breakages as well. Running both flit and leap.

can confirm

I'm also getting this error.

Same here 🙁

Same here!

flit call get-input-by-keymap from leap.utils, but this method remove from latest commit

return {
  "ggandor/leap.nvim",
  commit = "a706fea726179be91af75f4030a7b65a6adafa90",
  keys = {
    { "s", mode = { "n", "x", "o" }, desc = "Leap forward to" },
    { "S", mode = { "n", "x", "o" }, desc = "Leap backward to" },
    { "gs", mode = { "n", "x", "o" }, desc = "Leap from windows" },
  },
  config = function(_, opts)
    local leap = require("leap")
    for k, v in pairs(opts) do
      leap.opts[k] = v
    end
    leap.add_default_mappings(true)
    vim.keymap.del({ "x", "o" }, "x")
    vim.keymap.del({ "x", "o" }, "X")
  end,
}

roll back to this commit can fix temp.

Mea culpa. I don't personally use flit, and I always forget how much of the "unofficial" API of Leap is used by it.


Timeout and stashcp curl change

Ilija and I think that the du command in downloading_timeout.sh is never reading any disk usage because unix wouldn't see any disk usage during a file transfer without the use of sync before the du command. We have proposed this, along with minor changes to the loop to check every $timeout seconds as opposed to every 1 second, and moving the kill command to inside the timeout condition, rather than at the end of the loop
(echo "killing process after timeout of $timeout seconds"

kill $$)

In stashcp, we updated the curl command to point to the current host, as I understand we are not using the hadoop cluster for this purpose at the moment. Let me know what you think and thanks.
Tony

Where did you check this code out?  It looks like this pull request is from an old commit, before my changes 2 weeks ago.

NAK: this is a misunderstanding of POSIX.
Writes to a file are immediately visible to other users of the filesystem, including metadata: fsync / sync are only needed to guarantee that the data is durable (on disk).
Further, sync flushes all dirty pages on the filesystem (including those belonging to other jobs) and this could be a real serious disruption on the worker node.

Derek - yes it looks like I was working off an old commit... I can see your most recent one, so I'm going to make the same merge request for just stashcp in just a bit.
Brian - thank you, I let Ilija know of your comment.


Support sprintf formatting in coerce_values

@Wilfred can you add more details? what's the example use case?

Fixed in #33

@suyograo are you sure? As far as I can see, #33, doesn't affect coerce_values.

@Wilfred my bad, reopening them. Is there a PR for that? If so, can you rebase it?

Any progress on this?
I really don't want to have to create a fork to add this feature which is pretty important

Hi @suyograo,
Any news on this? Is there an intention to implement this in the near future?


tc-dump for veth-pair device

Nice project!

I am trying to use this tool to analysis the cilium hostRouting datapath,but when capture at the veth pair device, we can see:

8: lxcc09a28a62daa@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 82:b9:ab:e4:4e:b1 brd ff:ff:ff:ff:ff:ff link-netns cni-29aaea1c-8b74-56c9-8564-c82fb0a4c909
    inet6 fe80::80b9:abff:fee4:4eb1/64 scope link
       valid_lft forever preferred_lft forever
root@vmk0:~# ./tc-dump -d lxcc09a28a62daa icmp and host <IP_ADDRESS>
**2023/11/27 21:06:51 Failed to rewrite const for if@8:lxcc09a28a62daa: rewrite constants: some constants are missing from .rodata: DIR**
root@vmk0:~#

Attach the tc-dump binary:
tc-dump.zip
would you please guide me how to trouble shooting the case thanks.

Environment details

root@vmk0:~# kubectl get nodes -owide
NAME   STATUS   ROLES                       AGE   VERSION        INTERNAL-IP      EXTERNAL-IP   OS-IMAGE             KERNEL-VERSION      CONTAINER-RUNTIME
vmk0   Ready    control-plane,etcd,master   21m   v1.27.3+k3s1   <IP_ADDRESS>    <none>        Ubuntu 22.04.3 LTS   5.15.0-87-generic   containerd://1.7.1-k3s1
vmk1   Ready    <none>                      21m   v1.27.3+k3s1   <IP_ADDRESS>   <none>        Ubuntu 22.04.3 LTS   5.15.0-87-generic   containerd://1.7.1-k3s1
vmk2   Ready    <none>                      20m   v1.27.3+k3s1   <IP_ADDRESS>   <none>        Ubuntu 22.04.3 LTS   5.15.0-87-generic   containerd://1.7.1-k3s1
root@vmk0:~# kk exec -it ds/cilium -- cilium status
Defaulted container "cilium-agent" out of: cilium-agent, config (init), mount-cgroup (init), apply-sysctl-overwrites (init), mount-bpf-fs (init), clean-cilium-state (init), install-cni-binaries (init)
KVStore:                 Ok   Disabled
Kubernetes:              Ok   1.27 (v1.27.3+k3s1) [linux/amd64]
Kubernetes APIs:         ["EndpointSliceOrEndpoint", "cilium/v2::CiliumClusterwideNetworkPolicy", "cilium/v2::CiliumEndpoint", "cilium/v2::CiliumNetworkPolicy", "cilium/v2::CiliumNode", "cilium/v2alpha1::CiliumCIDRGroup", "core/v1::Namespace", "core/v1::Pods", "core/v1::Service", "networking.k8s.io/v1::NetworkPolicy"]
KubeProxyReplacement:    True   [ens3 <IP_ADDRESS> (Direct Routing)]
Host firewall:           Disabled
CNI Chaining:            none
Cilium:                  Ok   1.14.0-rc.0 (v1.14.0-rc.0-08239f59)
NodeMonitor:             Listening for events on 3 CPUs with 64x4096 of shared memory
Cilium health daemon:    Ok
IPAM:                    IPv4: 3/254 allocated from <IP_ADDRESS>/24,
IPv4 BIG TCP:            Disabled
IPv6 BIG TCP:            Disabled
BandwidthManager:        Disabled
Host Routing:            BPF
Masquerading:            BPF   [ens3]   <IP_ADDRESS>/8 [IPv4: Enabled, IPv6: Disabled]
Controller Status:       25/25 healthy
Proxy Status:            OK, ip <IP_ADDRESS>, 0 redirects active on ports 10000-20000, Envoy: embedded
Global Identity Range:   min 256, max 65535
Hubble:                  Ok              Current/Max Flows: 4095/4095 (100.00%), Flows/s: 0.74   Metrics: Disabled
Encryption:              Disabled
Cluster health:          3/3 reachable   (2023-11-27T13:10:33Z)
root@vmk0:~#

But if with non-veth-pair devide, it can be  worked as expected.
[root@2204 ~]$ k exec -it wluo-l6b9p -- ping -c 1 <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>): 56 data bytes
64 bytes from <IP_ADDRESS>: seq=0 ttl=62 time=1.569 ms

--- <IP_ADDRESS> ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 1.569/1.569/1.569 ms
[root@2204 ~]$

root@vmk0:~# ./tc-dump -d ens3 icmp
2023/11/27 21:11:34 Listening events for if@2:ens3 INGRESS by Fentry...
2023/11/27 21:11:34 Listening events for if@2:ens3 EGRESS by Fentry...
ifindex: 2(ens3) dir=EGRESS mark=0x0(0)
        ETH: 52:54:00:0a:6c:d8 -> 52:54:00:59:d3:4d, protocol IPv4
        IPv4: <IP_ADDRESS> -> <IP_ADDRESS>, header length 20, dscp 0x00, total length 84, id 0xefe5, TTL 63, protocol ICMPv4
        ICMPv4: Echo Request, code 0
ifindex: 2(ens3) dir=INGRESS mark=0x0(0)
        ETH: 52:54:00:59:d3:4d -> 52:54:00:0a:6c:d8, protocol IPv4
        IPv4: <IP_ADDRESS> -> <IP_ADDRESS>, header length 20, dscp 0x00, total length 84, id 0xf25e, TTL 63, protocol ICMPv4
        ICMPv4: Echo Reply, code 0
^Croot@vmk0:~#

root@vmk0:~# ./tc-dump -d lxcc09a28a62daa icmp and host <IP_ADDRESS>
**2023/11/27 21:06:51 Failed to rewrite const for if@8:lxcc09a28a62daa: rewrite constants: some constants are missing from .rodata: DIR**

Does lxcc09a28a62daa has tc-bpf-filter rules?
tc filter show dev lxcc09a28a62daa ingress
tc filter show dev lxcc09a28a62daa egress

Does it in a pod?

root@vmk0:~# ./tc-dump -d lxcc09a28a62daa icmp and host <IP_ADDRESS>
**2023/11/27 21:06:51 Failed to rewrite const for if@8:lxcc09a28a62daa: rewrite constants: some constants are missing from .rodata: DIR**

Does lxcc09a28a62daa has tc-bpf-filter rules?
tc filter show dev lxcc09a28a62daa ingress
tc filter show dev lxcc09a28a62daa egress

Yes, it should be.
root@vmk0:~# tc filter show dev lxcc09a28a62daa ingress
tc filter show dev lxcc09a28a62daa egressfilter protocol all pref 1 bpf chain 0
filter protocol all pref 1 bpf chain 0 handle 0x1 cil_from_container-lxcc09a28a62daa direct-action not_in_hw id 486 tag 9df3182a8dc33324 jited
root@vmk0:~# tc filter show dev lxcc09a28a62daa egress
root@vmk0:~#

Does it in a pod?

No, this interface which under ROOT NS.

Hi, I just fixed it by https://github.com/Asphaltt/tc-dump/commit/1f31c18877b34271d677ceafc9255b6c7c2b10fe.
You are recommended to rebuild tc-dump with latest source code.

Sure, let me try.


fix(ci): fix circle ci config

Update circle ci config to use orb
#368 Reverted #363 unintentionally hence this PR which is a new version of #369 taking into account comments on for that PR.
Related to #363 #369 #368

@fkleuver Here you go, updated CI fix using the centralized configuration as you suggested! 😄
P.S. I noticed that my other PR accidentally reverted the other fix @bigopon did. We might want/need to reapply some of the changes to the test setup.

@michaelw85 I'm very glad about this :) Thank you!
I'll merge this now as it looks good. Specifically what changes are you referring to? Things work now, right?

@fkleuver NP happy to be able to help!
The changes I am referring to are related to the karma config. Changing to chrome headless + mocha reporter.


XCode compiler / linker errors

I currently can't compile our Unity project from XCode. I am getting the following Linker errors (along with roughly 20 others all the same)
Undefined symbols for architecture arm64:
  "_sqlite3_bind_int", referenced from:
      AdobeMarketingMobile::Database::SqlBindStatement(sqlite3_stmt*, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::shared_ptr<AdobeMarketingMobile::Variant>, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, std::__1::shared_ptr<AdobeMarketingMobile::Variant> > > > const&) in libACPCore_iOS.a(NativeDatabaseService.o)

I have tried adding libsqlite3 in "Link Binary With Libraries" but that does not seem to solve it for me.

Hey @chrisError -
Are you able to compile your project for device?  Or is the error affecting both simulator and device?  Thanks.
-steveb

Unity apps can't run in Simulator(alas!) so this is a device build (it crashes out in the linking phase)

Gotcha.  Are all the other errors naming sqlite3 as well?

@sbenedicadb I think I have solved it. I needed to add libsql3 and libz as linked binaries to the UnityFramework. thanks for the speedy responses none the less!


Use uprotocol-core-api definitions for uTransport data types

This PR will be to track the work to use the uprotocol-core-api data model for UTransport in lieu of that defined in C++ SDK. (UAttributes, UPayload, UMessageType, UPriority, UPayloadFormat, etc...)

Assigning to @MelamudMichael


Feature request: Toggle command for enabling/disabling inline completions

While I appreciate the current options to explicitly enable and disable completions, having a single command to toggle the feature on or off would be incredibly useful, particularly when mapping this function to a ribbon button or a keyboard shortcut.
Thanks

Thanks for raising this.
I've just added commands to toggle completions, chat view and cache (not just enable/disable), as well a ribbon action item to toggle completions in PR #3 - I'll merge this when I'm done with refactoring!


Erasure Coding

Need to be able to split files up and store them in multiple places, and perhaps have some sort of file health indicator or whatever. Files need to go up and be healthy.
I don't currently know if the regenerating codes are finished/ready, so we should probably just use the longhair library again (if we can manage cross-compilation) or some slower library that has been written in go.
It's not a big deal to require the user to have the file to do repairs, especially since it's only a temporary requirement thanks to regenerating codes.

On Usenet its very normal to use PAR2 files for this, so I am not sure if this should be in Sia itself, since it would be the same as adding automatic unzip-support to Sia, because it's an responsibility of the client to add PAR files (or not) for erasure codes, or use ZIP on their data or not.


Add metrics/version information to projects view

This functionality is bsed on that project site exposes a metrics endpoint.
In this initial work each sites build version in fetched and rendered as a part of every project row in the projects view.

I like this! I think for it to be integrated into the lagoon core it needs to be generalized a bit, so it isn't just a particular metrics endpoint we can pull data from... and the configuration for what to display should be highly configurable.
But I'm happy to try and push this with the Amazee team and figure out how to get it integrated.
I'd prefer not to have a fork running for dpl-platform

I like this! I think for it to be integrated into the lagoon core it needs to be generalized a bit, so it isn't just a particular metrics endpoint we can pull data from... and the configuration for what to display should be highly configurable.
But I'm happy to try and push this with the Amazee team and figure out how to get it integrated.
I'd prefer not to have a fork running for dpl-platform

Yes. Agree. We should not add another dependency to maintain if we can avoid.
Thanks for feedback!
I will contact Amazee about the idea...


Fix for haversine error (#453) Handle NaNs in haversine transform_primitive

Prior to handling NaN's, the code first checks if any are present (to save calculation time). Time with old method that failed on NaNs was 650 ms per 1 million rows. Time for data with no NaNs is now 750ms per 1 million rows. When NaNs are present, time is 1.5 seconds per 1 million rows, even using np.where to fix NaNs in a vectorized way.
Pull Request Description
This allows the Haversine function to handle NaN values as inputs. It does so in a vectorized way so that performance is affected as little as possible.

After creating the pull request: in order to pass the changelog_updated check you will need to update the "Future Release" section of docs/source/changelog.rst to include this pull request.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@Alex-Monahan thank you for the contribution. we will review shortly and hopefully get it into the next release

Closing, work continuing in #1007


Define capabilities in the extension manifest

See https://github.com/zed-industries/zed/pull/16953

This feature isn't being added to Zed at this time


Creating new model

Command:   python scripts/run.py train
How can I solve the problem?

I've solved the problem.THANKS ANYWAY.

Hi CedricChing:
How did you fix the problem of "ValueError: Operands could not be broadcast together with shapes (32, 16, 44) (32, 16, 22)" after running command:  python scripts/run.py train --model complex?
I am using python2.7, Theano (0.10.0b1), and Keras (2.0.6).
Thanks,
Miranda

Hello, @Mi1234 !
    The data format of Theano is 'channel_first', but the default setting of keras is 'channel_last', which is the data format of Tensorflow. So the data_format in file '~/.keras/keras.json' should be changed to 'channel_first'. You can follow the instructions here https://keras.io/backend/#switching-from-one-backend-to-another
    Hope this suggestion can help you.
    Have a good day.
    Cedric

Thank you very much, CedricChing!
The problem has been solved following you instruction.
Best,
Miranda

I am still facing the same issue even after trying this fix. Any further help will be highly appreciated.


Aggregation $out keyword is broken in Fongo - Not copying data to another collection

import com.mongodb.client.MongoDatabase;
import org.mongodb.morphia.Datastore;
     .
     .
     .
MongoDatabase mongoDatabase;
Datastore sourceDatastore;
Datastore destinationDatastore;
     .
     .
     .
mongoDatabase.getCollection(sourceDatastore.getCollection(Employee.class).getName())
         .aggregate(asList(project(include(Employee.FIELDS.toArray(EMPTY_STRING_ARRAY))),
              out(destinationDatastore.getCollection(Employee.class).getName())))
         .first();

project to out doesn't copy data from Source collection to Destination collection. No error or exception!!!
$out is not working on Fongo.
Any help would be appreciated.

Hi,
witch version of fongo ?

This happens with fongo 2.0.5 and mongo java driver 3.2.2.

can you check against the v3 branch plz ?

It works great, thank you :+1:

And now, for the crucial question: any hope to get a release soon? If not, maybe a snapshot  :sweat_smile: ?

tommorow morning in maven central :)
or now if you're lucky

:dancers:


Debug under tryCatch does not go through the error/warning section

I am using RTools version 0.521008.0800...When I run simple tryCatch block code it works well, but when I do it under a Debug Session, the cursor does not pass through the error or warning clause, it goes directly to the finally clause. The result is correct, but debugging step by step it does not pass through such block of code when is raised an error or warning.
Here is a simple example:
goOn <- TRUE
while (goOn) {
    OK <- tryCatch({
        print("This is the tray part")
        print("Second line try block")
        if (n == 0) {
            # No error
            print("Third line try block")
        } else if (n == 1) {
            warning("This a warning line")
        } else {
            goOn <- FALSE
            stop("This is an error line")
        }
    }, error = function(cond) {
        print("handling the error...")
        print("Second line in error")
        message(paste("message cond:", cond))
    }, warning = function(cond) {
        print("handling the warning...")
        print("Second line in warning")
        message(paste("message cond:", cond))
    }, finally = {
        message(sprintf("End of summary for an n value is: %s", n))
        n <- n + 1
    })
}

Thanks in advance,
David

You don't initialise n in either the global or function environment. Is this intended?

Sorry, I forgot to copy the first line in the post, but it was included in the test. Lets add more information:

Running the program is as expected
Using breakpoint inside on warning or error function work
The problem is when I go step by step using: "Step Over" button, it jumps from warning ("..."), or stop ("..") directly to the finally clause.

Here is the source code:
n <- 0
goOn <- TRUE
while (goOn) {
    OK <- tryCatch({
        print("This is the tray part")
        if (n == 0) {
            print("Third is the normal case")
        } else if (n == 1) {
            warning("This is the warning case")
        } else {
            stop("This is the error case")
        }
    }, error = function(cond) {
        goOn <<- FALSE
        print("Handling the error...")
        message(paste("message cond:", cond))
    }, warning = function(cond) {
        print("Handling the warning...")
        message(paste("message cond:", cond))
    }, finally = {
        n <<- n + 1
        situation <- switch(n, "normal", "warn", "err")
        message(sprintf("End of summary for case: '%s'", situation))
    })
}

When I run the code I get this output:
> source("~/R-workspace/projects/PBParseTMMFiles/PBParseTMMFiles/sample.R", encoding = "Windows-1252")
[1] "This is the tray part"
[1] "Third is the normal case"
End of summary for case: 'normal'
[1] "This is the tray part"
[1] "Handling the warning..."
message cond: simpleWarning in doTryCatch(return(expr), name, parentenv, handler): This is the warning case

End of summary for case: 'warn'
[1] "This is the tray part"
[1] "Handling the error..."
message cond: Error in doTryCatch(return(expr), name, parentenv, handler): This is the error case

End of summary for case: 'err'
>

I got the same result, running the source code within the Debug Session:
rtvs::debug_source("~/R-workspace/projects/PBParseTMMFiles/PBParseTMMFiles/sample.R", encoding = "Windows-1252")
Thanks in advance,
David

It appears to be a limitation of the R debugger itself. We translate "Step Over" to "n" in the REPL (you can actually see the command being sent there), which corresponds to "evaluate the next statement, stepping over function calls". In this case, this translates to skipping over the warning/error-handler. Same behavior can be observed in RStudio (and for the same reason).
I think this might actually be by design, if you read "stepping over function calls" as including any calls that happen as the result of evaluation of the statement, even indirect. With the breakpoint on warning, the call  stack when it's hit has two frames, one for global code, and one for tryCatch. Inside the warning-handler, however, the call stack has three frames - the two before, and the handler itself (can be observed by setting a breakpoint inside it also - it'll be hit when you try to step over). So from R's perspective, I think this basically counts as function being called, and it skips that frame. The finally-handler, on the other hand, is not a function, and so it doesn't create a new frame, and there's no "function call" there.


Can't verify created sig

I try to use verifySig with such sytax:
helpeth verifySig 0x440ead7b9ade79ab9423b43c219be92d3f5a29d42c62466bb234f91f16378115 0xb980941815b6c4249b55893ac47542bb7e91ba099fd84e62c72ebecc2814697f6c847ef8df63b05e0e2af0296afebde15224b705a4
7f5cca19d8b8e204d2267000

I get them using:
$ helpeth --p '0x5448fbf2c396a769c11268d2da8c9bfea8c86eaf16f98849d35484084c34137a' signMessage '{ "name":"John", "age":30, "car":null }'
Input message: 0x7b20226e616d65223a224a6f686e222c2022616765223a33302c2022636172223a6e756c6c207d
Message hash (Keccak): 0x440ead7b9ade79ab9423b43c219be92d3f5a29d42c62466bb234f91f16378115
The signature: 0xb980941815b6c4249b55893ac47542bb7e91ba099fd84e62c72ebecc2814697f6c847ef8df63b05e0e2af0296afebde15224b705a47f5cca19d8b8e204d2267000

Am i wrong?
Privatekey is for test puposes only

Sorry, this was due to the an inconsistency between the ethereumjs-util version used.


fixed the issue #30

there was a curly brace missing on line 211

@manthanabc  please make some more changes :)
one word changes are not accepted , sorry :)

It was a bug how should I add code to fix the same thing?


Wait/Quit/Not Responding dialog on slower machines

The Issue
Electron throws up a Wait/Quit dialog repeatedly and says LBRY is not responding on slower machines. I've seen this happen while debugging as well. Something must have changed in the latest electron - we can try to re-visit this after Electron 5 upgrade.
System Configuration

LBRY Daemon version:
LBRY App version:
LBRY Installation ID:
Operating system:

Anything Else

Screenshots

Have not seen complaints of this, closing.


include mapbox-gl.css

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

GitHub release
v1.0.0
v1.0.0

Your semantic-release bot :package::rocket:


Split apart wear

Codecov Report

Merging #768 (157b78b) into main (66f162e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #768   +/-   ##
=======================================
  Coverage   61.53%   61.53%
=======================================
  Files         128      128
  Lines        6307     6307
  Branches     1214     1214
=======================================
  Hits         3881     3881
  Misses       1671     1671
  Partials      755      755

Impacted Files
Coverage Δ

...n/kotlin/com/alexvanyo/composelife/MainActivity.kt
82.60% <ø> (ø)

...lexvanyo/composelife/ui/action/settings/Setting.kt

...exvanyo/composelife/ui/action/InlineSpeedScreen.kt

...anyo/composelife/ui/component/TextFieldDropdown.kt

...nyo/composelife/ui/cells/MutableCellWindowState.kt

...mposelife/ui/action/settings/CellStatePreviewUi.kt

...yo/composelife/ui/action/CellUniverseActionCard.kt

...mposelife/ui/action/CellUniverseActionCardState.kt

...tlin/com/alexvanyo/composelife/wear/theme/Theme.kt

...xvanyo/composelife/ui/action/settings/SettingUi.kt

... and 107 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[C++][Dataset] Allow more aggresive implicit casts for literals

After ARROW-8919, a literal in an Expression may cause unnecessary implicit casting of a column. For example equal(field_ref("i8"), literal(1)) will cause column i8 to be promoted to the type of the literal (int32) for comparison. Since we have access to the literal value at bind time we could examine 1 and determine that it can safely be *de*moted to int8, which produces a semantically equivalent and more performant filter.
Reporter: Ben Kietzman / @bkietz
PRs and other links:

GitHub Pull Request #15180

Note: This issue was originally created as ARROW-11402. Please see the migration documentation for further details.

Issue resolved by pull request 15180
https://github.com/apache/arrow/pull/15180


Collapse the search button to an icon when the split view is smaller

@microbit-robert, does this perform worse than main for you?

In case it seems a little off, the point of collapse aims to fit the French text as well as the English.


[Refactoring] exclude part already checked with previuos condition

@swift-ci smoke test and merge

@valeriyvan Could you fix the typo in the commit message?


Fix missing resources across page loads

-- Inform the hook that an invasive command is being issued.
-- On QUIT and CLOSE commands, inform the hook that the browser is going to exit.
-- Some cleanup

:+1:


I have error when send "GET"

"Refused to set unsafe header "User-Agent""
iam using vuejs

Do you have more details about it?
You also can change the user-agent on your end setting a custom one using axiosConfig.

注释源码里的header设置可以解决，暂时没看的太大的问题，，增加axiosConfig好像会造成没有权限的问题,接口失败

@claudiosanches @AbdallaMohammed
It is more like a upstream issue with axios or browser, you can discover in https://github.com/axios/axios/issues/1231. The main reason is that in the browser environment. Browser will block any action of changing the "User-Agent" header and throw an exception.
Possible solution will be check the usage environment and if it is browser environment then remove the "User-Agent" header.

Im still getting this error

Do you have more details about it?
You also can change the user-agent on your end setting a custom one using axiosConfig.

how does one go about doing it?
axiosConfig: { 'User-Agent': 'YOUR SERVICE HERE' }
unsure what to put in the your service here? how do i check my service name?

I am still getting this error. In chrome it shows an error in console. in Safari the data isn't loaded. iPhone cannot load data because of this.
Can anyone help with this?

I found a decent fix using axios interceptor to force removing custom woocommerce User-Agent 😊
import Vue from 'vue'
import axios from 'axios'
import WooCommerceRestApi from '@woocommerce/woocommerce-rest-api'

/**
 * New JavaScript library for WooCommerce REST API,
 * supports CommonJS (CJS) and Embedded System Module (ESM).
 * @see https://www.npmjs.com/package/@woocommerce/woocommerce-rest-api#esm-example
 */
Vue.prototype.$WC = new WooCommerceRestApi({
  url: process.env.NUXT_ENV_BASE_PATH,
  consumerKey: process.env.NUXT_ENV_WOO_CONSUMER_KEY,
  consumerSecret: process.env.NUXT_ENV_WOO_CONSUMER_SECRET,
  version: 'wc/v3',
})

// Custom interceptor to remove woocommerce custom User-Agent (not allowed in Chrome/Safari)
axios.interceptors.request.use(function (config) {
  const { headers = {} } = config || {}
  if (headers['User-Agent']) delete config.headers['User-Agent']

  return config
})

I found a decent fix using axios interceptor to force removing custom woocommerce User-Agent 😊
import Vue from 'vue'
import axios from 'axios'
import WooCommerceRestApi from '@woocommerce/woocommerce-rest-api'

/**
 * New JavaScript library for WooCommerce REST API,
 * supports CommonJS (CJS) and Embedded System Module (ESM).
 * @see https://www.npmjs.com/package/@woocommerce/woocommerce-rest-api#esm-example
 */
Vue.prototype.$WC = new WooCommerceRestApi({
  url: process.env.NUXT_ENV_BASE_PATH,
  consumerKey: process.env.NUXT_ENV_WOO_CONSUMER_KEY,
  consumerSecret: process.env.NUXT_ENV_WOO_CONSUMER_SECRET,
  version: 'wc/v3',
})

// Custom interceptor to remove woocommerce custom User-Agent (not allowed in Chrome/Safari)
axios.interceptors.request.use(function (config) {
  const { headers = {} } = config || {}
  if (headers['User-Agent']) delete config.headers['User-Agent']

  return config
})


[DRAFT] refactor of transcribe.py[DISCUSS]

This is an initial DRAFT to float/discuss the idea of using a centralized configuration class.  It reduces the current code base of transcribe.py by approximately 12,000 character while, in theory, achieving the same functionality.  I'm referring to ~12,000 character reduction in code logic, not comments or docstrings.  Consolidating some of those as well should further reduce the code base.
Again, a jumping off point for a discussion. Thanks!

I suggest we turn this into an issue or a discussion where we can share ideas, this is much more understandable than a PR

okay, not sure how to do that...Can you convert it or...

Close this and open an issue or a discussion


Add deferred flow - OID4VCI draft 13

deferred flow (first case with a sample user without database - emulate it with a time delay);

Closed. Issue added to the public repo.


/robot_1/state/ground_truth does not publishes contact_state

I see the ground truth topic does not publishes contact state. The topic /robot_1/state/grfs do publish but the publish timestamps are not synchronized. Is there a way to synchronize the timestamps of grfs and ground_truth topic.

These two data streams come from different plugins which run at different rates (a contact sensor and a model plugin) so they aren't automatically synced. Contact sensors only publish data individually over topics, so we have a contact_state_publisher node which subscribes to each of these and publishes a consolidated GRF message. If you wanted to sync them you could perhaps put that logic directly into the estimator plugin (add subscribers to the individual contact topics, then bundle everything together).

Closing due to inactivity.


Added a feature to mark/whitelist lines containing false positives

Added a configurable field which allows defining one or many markers so developers can add in their code as in-line comments to whitelist false positives detected by shhgit.
We found this pretty handy to get cleaner results without having to blacklist secrets one by one in the config.yaml file.

@b-abderrahmane thank you for this. I've decided not to merge as I don't believe in using pragmas for this. It unnecessarily litters the codebase. Tweaking of the blacklists should match most peoples use cases.


Update docs to reflect we are not using systemd in base images

While we do mention this in the base images page, there are other places in the docs where we could be more explicit about what the default is. For example https://www.balena.io/docs/learn/develop/runtime/#mounting-external-storage-media could clarify that if you are running the newer base images, you probably don't have systemd enabled unless you activated it manually (And link to https://www.balena.io/docs/reference/base-images/base-images/#installing-your-own-initsystem)

There have been a few updates removing INITSYSTEM references and systemd. I've done a search for remaining systemd references and they all look relevant so closing this.


Reorder parameters for SuggestedActions

I'd hypothesize it's going to be far more common for users to simply show actions than to show actions to a subset of participants in an activity. Therefore forcing them to always have null as the first parameter, or name parameters every time, is an unnecessary hassle.

Reordering these parameters solves both issues.

We cannot re-order parameters w/o breaking compatability.

@cleemullins - would you be able to add the V5 label to this issue too, just as #1229 .

you could avoid a breaking change on this by using overloads instead of optionals, btw.

Is it appropriate to mark this for v5 and leave it Closed???


Customize tooltip text and allow hiding tooltips

Hi,
I have added three new properties to customize the tooltip displayed for the tabs.
hideTooltip for Tab component which hides all tooltips for all tabs.
hideTooltip for Tabs component which hides the tooltip for only that specific tab.
tooltip for Tabs component which specifies custom tooltip text for that specific tab.
I needed these features so forked and added.  Might be useful for others too.

Hi, Thank you so much for your contribution. Great works! As we can notice, I was using tab character instead of four spaces. So would you please replace spaces with tab character in your code and make another pull request? Thanks again!


[BUG] players lose all progress when downloading on an existing server.

Versions

EasyAuth 3.0.0-7
Fabric API 0.58.0+1.19

Describe the bug
When players logged in on an existing server, all their progress got reset.
To Reproduce
Steps to reproduce the behavior:

install the mod on an existing server with a playerbase.
Log in
See how all progress is lost.

Expected behavior
People would spawn at the correct location with the inventory they had.

You can restore that data by renaming files in folders PlayerData, achievements and stars from old uuid to new uuid.

You can restore that data by renaming files in folders PlayerData, achievements and stars from old uuid to new uuid.

alright, thanks!
I'll try it!


include issue

Hey there, thanks for your work. I am trying to switch from videogular to videojs for an ionic project. I'm trying to follow your instructions, which suggests I include a vjs.directive.js but the paths are not the same.
installation:
bower install vjs-video --save

find . -name *.directive.*
./www/lib/vjs-video/app/scripts/directives/vjs.directive.js
./www/lib/vjs-video/test/spec/directives/vjs.directive.js

Here is what I have included:
   <link rel="stylesheet" href="lib/video.js/dist/video-js/video-js.min.css">
 <script src="lib/video.js/dist/video-js/video.js"></script>
    <script src="lib/vjs-video/dist/vjs-video.js"></script>
    <script src="lib/vjs-video/app/scripts/directives/vjs.directive.js"></script>

The problem is if I add 'vis-video' to my module deps, I get an injector error.

@pliablepixels how are you adding the module dependency?
If your main module was called app, it should be like the following:
angular.module('app', [ 'vjs.video']);

hi @LonnyGomes - thanks - yes, I did specify the dependency as above. I think it may be an ordering issue of the script includes. I'll close this and re-open if I can't figure it out. Thanks.


feat(pixels): add my new pixel

Checklist

[x] I ran npm test locally and it passed without errors.

[x] I only edited the _data/pixels.json file.

[x] I entered the username in the pixels.json that I'm also using to create this pull request.
[x] I acknowledge that all my contributions will be made under the project's license.

I originally put my name in lowercase due to #2537, but I still get We found the Pull Request #2 on the Open Pixel Art remote repository, but it doesn't belong to your GitHub user "afront"! Sadly, I can't change my name to lowercase.


fix: add 'cursor-pointer' class to Slider component

Description

Enhanced the Slider component styles by adding the 'cursor-pointer' class for a consistent cursor style throughout the component.
Motivation

Improves the user experience by providing a clear indication of interactivity with the Slider component.
issue #1934
Changelog

Added 'cursor-pointer' class to the Slider component for a consistent cursor style.
Improved visual feedback for users interacting with the Slider.

Additional info

This change ensures a cohesive and user-friendly experience when using the Slider component.
Results

https://github.com/shadcn-ui/ui/assets/134603758/b00625ef-f126-423d-aa01-d815cb9ae245

@abdulbasithqb Can we fix in new-york as well please? https://github.com/shadcn-ui/ui/blob/main/apps/www/registry/new-york/ui/slider.tsx

@abdulbasithqb Can we fix in new-york as well please? https://github.com/shadcn-ui/ui/blob/main/apps/www/registry/new-york/ui/slider.tsx

Hey @shadcn requested changes are merged  🤝
commit : 996e8be

Hey @shadcn can we merge this PR ?


Select a game by default if it is the only one in a list.

This is more of an enhancement for better user experience.
If there is only one game present in the saved games list while creating a game Select Game screen, this game must be selected by default, so that the game can be started by directly clicking on the Load button. For reference:

This should be resolved for all such lists like single player / multiplayer game selection.
In case there are multiple games in the list the game at the top must be selected by default, so that the arrow keys can be used to make the desired game selection.

Hey! I would like to give this enhancement a try as my first contribution to this project.
After forking my own version, and then creating a branch for this, I looked to see where to create a unit test that tests a method I created that selects the first item. I do not see any tests regarding the UI, however. Is the UI something that has testing written for it for Terasology?
The best place seems to be "engine-tests\src\test\java\org\terasology\rendering\nui\layers\ingame". Would this be an appropriate place to put a class that contains unit tests for this addition?

I fixed this in the commit above using an pre-existing method. However, as @J-Dill asked, I would also like to know if a unit test is needed.

Hey both :-)
Generally any time a unit test is offered we will be absolutely thrilled! Unit test all the things!
As for required: No, not really, at least not yet. Some things are vastly easier to unit test than others and while it would be nice in those cases to have good test coverage we aren't in super strict code coverage checking land just yet.
Any unit test anybody wants to contribute anywhere even without a related issue would be hugely appreciated and reviewed for sure :-)
Also, I mistakenly referenced this issue in a commit while merging #3271. Off-by-one errors happen to us all ;-)
Closing as fixed by #3275 - thanks @manas96 ! I'm trying to add some more beginner friendly issues so hopefully you can find another interesting one to try @J-Dill, if not or even if feel free to also reach out on chat for any advice or other stuff :-)


FTBFS in Debian buildd

Newsboat just entered the Debian repos and right off the bat every single build has failed, logs can be found here.
(Don't look at that green status in amd64, that's because the amd64 binary was uploaded pre-compiled)
Relevant part of the log file:
g++ -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++11 -ggdb -Iinclude -Istfl -Ifilter -I. -Irss -Werror -Wall -Wextra -Wunreachable-code -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/aarch64-linux-gnu -I/usr/include/libxml2 -I/usr/include/json-c -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/usr/include/ncursesw -o filter/Scanner.o -c filter/Scanner.cpp
filter/Scanner.cpp: In member function 'Token* Scanner::NextToken()':
filter/Scanner.cpp:588:12: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
    if ((ch >= L'-' && ch <= L'.') || (ch >= L'A' && ch <= L'Z') || ch == L'_' || (ch >= L'a' && ch <= L'z')) {AddCh(); goto case_3;}
         ~~~^~~~~~~
filter/Scanner.cpp:588:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
    if ((ch >= L'-' && ch <= L'.') || (ch >= L'A' && ch <= L'Z') || ch == L'_' || (ch >= L'a' && ch <= L'z')) {AddCh(); goto case_3;}
                       ~~~^~~~~~~
filter/Scanner.cpp:588:42: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
    if ((ch >= L'-' && ch <= L'.') || (ch >= L'A' && ch <= L'Z') || ch == L'_' || (ch >= L'a' && ch <= L'z')) {AddCh(); goto case_3;}
                                       ~~~^~~~~~~
filter/Scanner.cpp:588:56: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
    if ((ch >= L'-' && ch <= L'.') || (ch >= L'A' && ch <= L'Z') || ch == L'_' || (ch >= L'a' && ch <= L'z')) {AddCh(); goto case_3;}
                                                     ~~~^~~~~~~
filter/Scanner.cpp:588:86: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
    if ((ch >= L'-' && ch <= L'.') || (ch >= L'A' && ch <= L'Z') || ch == L'_' || (ch >= L'a' && ch <= L'z')) {AddCh(); goto case_3;}
                                                                                ~~~^~~~~~~
... [snip]
cc1plus: all warnings being treated as errors
Makefile:112: recipe for target 'filter/Scanner.o' failed
make[2]: *** [filter/Scanner.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j1 prefix=/usr all returned exit code 2
debian/rules:15: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:12: recipe for target 'build-arch' failed
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2

Disecting this a bit, it looks like this is because -Wall turns on the sign-comparison check in C++ and -Werror makes it fatal. I'm not sure though why no one has reported it yet, or why it succeeds on Travis and when building locally -.-

Update:
Looking back these warnings also existed in previous non-amd64 build logs of newsbeuter, so this is most likely an architecture related issue. The build was successful previously because we hadn't added -Werror.

How do I fetch the sources used for the build? The version there says "2.10.1-1", I wonder what patches the "-1" brought it. Have you added the one that fixed #43?

It's 2.10.1, no added patches. The -1 just means that it's the first revision of the package.
I actually missed #43, oops. But I don't want to be randomly adding patches without passing them through you/getting them merged to reduce the probabilities of bugs later on.

I'll close this as a duplicate of #43 then.


automated installation

Can LE SSL for ISPConfig 3 control panel be issued immediately after its installation?

In my theory, this is possible by creating a post installation (php) script which involves the following:

Creating a new website directly into the database;
Resyncing the website and the database;
Enable SSL and LE again directly into the database;
Resyncing the website and the database again.

Resync should be be able to create the website folder at the first instance and request LE SSL certs for it in the second instance.
Otherwise, step #4 should be changed to run the available LE plugin or a newly created plugin.

Still pending development.

This will be closed since all server in ISPC can now request their own Let's Encrypt SSL certificates without any need to connect to database. The master is now ready and able to do that.


Add basic bitcoin signet support

Fixes https://github.com/lightningnetwork/lnd/issues/5018.
Depends on https://github.com/btcsuite/btcd/pull/1692.
Depends on https://github.com/btcsuite/btcwallet/pull/735.
Updates to the latest btcd version (which is why the diff is that large) and adds basic signet support.

I added the prefix as decide on in the spec PR (https://github.com/lightningnetwork/lightning-rfc/pull/844).
Turns out a change in btcwallet is also required so added that PR as well.

Rebased. @Roasbeef any particular reason for moving this to 0.14 or just because the dependencies weren't ready yet?

I'm using google translate so I'm sorry if it's strange English.
zpay32/decode.go
https://github.com/lightningnetwork/lnd/pull/5025/files#diff-da9268b6d458ca0e80aab05fe9e6a79fe7049567efd48d77895ac50c9996db82R66
var netPrefixLength = len(net.Bech32HRPSegwit) + 2
->
var netPrefixLength = len(expectedPrefix) + 2
At the time of decoding, if it is tbcs, the length will be calculated one less.
I get an error on amount, err := decodeAmount(hrp[netPrefixLength:])
exmaple
lntbs200u1psgl2a7pp5xuslr4k4g9n83w6j2mpeh3l84alwd68dh73rfgk9sfvlq9qtptyqdq2w3sk6ctddycqzpgsp5mk3cmhmmfgk2569khklxpg2gq6xfzj7ujv6ackw09cdfxm5g3vms9q8zqqyssqy8evtn0xt46t7xvvm3y4jf50n9zn7g7xs3uyuq6wj7zwpgulevhn5f45s0zevhgh0ssu2jncnepfpx2z7wus6zgk2usvqa5kp8d07qsp027kan
correct 200
bad s200

Thanks for the input @wakiyamap! Will fix that asap.

The new dependent btcd PR has been merged now as well.

We don't necessarily need to pull in the dependency as the fix was for running btcd on signet itself. But we can update the dependency in case we want to make sure we use the latest version for itests.
@wpaulino do you think we should update the dep?

Ah didn't realize the new one wasn't strictly dependent, it could be useful for those (if any) who choose to install btcd through make btcd. I wouldn't consider it a blocker though.

I added a commit to bump btcd to the most recent version so installing it through lnd's Makefile gives users a signet compatible version.
@Roasbeef, @cfromknecht any chance we can get this in for v0.13.0-beta.rcX?

Default rpc port seems to be incorrectly 38330.
works
bitcoind.rpchost=x.x.x.x:38332
fails, see log below
bitcoind.rpchost=x.x.x.x
2021-05-25 12:53:38.521 [INF] LNWL: Opened wallet
2021-05-25 12:53:38.619 [INF] CHRE: Primary chain is set to: bitcoin
2021-05-25 12:54:56.057 [ERR] LTND: unable to create chain control: Post "http://x.x.x.x:38330": dial tcp x.x.x.x:38330: connect: operation timed out
2021-05-25 12:54:56.058 [INF] LTND: Shutdown complete
unable to create chain control: Post "http://x.x.x.x:38330": dial tcp x.x.x.x:38330: connect: operation timed out

cc @guggero ^

Gonna merge as is, AFAICT the port information is correct here. Want to include this in the next rc, and can do another one if it turns out there's actually something afoot here.

I have nothing special to add here but to say I love that this came in at this time!!!
Timely and kudos to everyone involved!


Enable core dumps to /tmp if the system was booted without boot_mute

# Enable core dumps to /tmp if the system was booted without boot_mute
if [ "$(sysctl -q -n kern.consmute)" = "0" ] ; then
  sysctl savecore_enable="YES" # Kernel dumps
  sysctl kern.coredump=1
  sysctl kern.corefile="/tmp/%N.core"
fi

But where to run this? Put it into its own rc file?

While we are at it, we should probably replace other occurences of
if [ "$(kenv boot_mute 2>/dev/null)" = "YES" ] ; then

with
if [ "$(sysctl -q -n kern.consmute)" = "0" ] ; then

as well to make it more robust?

Maybe put it in /etc/rc.local?


mpg, manager/service client rename

xxManager Can be renamed by service-name in tspconfig.yaml.
title config seems not working for service client.

I guess we take title from here https://github.com/Azure/autorest.java/blob/main/typespec-tests/tsp/arm.tsp#L9
Not anything urgent to fix.


Questions: BBox detector and training

Great work!
Two questions related to BBox:

The author of yolact did comment several times (i.e. here), that one of way to improve yolact would be to improving the bbox detector.  Is your work based in YOLOv3 as Yolact ? I guess than using YOLOv5 could help, specialy the nano architectures
How feasable do you see to  implement training using incomplete annotations (i.e. some annotations with mask and bbox and some annotations only with bbox?). There is a bounch of data for object detection that could be used to improve bbox detection.

And about training:

Yolact is recomended to train above 80k iterations to get good results. Did you observe something similar when training yolact_edge?

And about CUDA and cuDNN:

When do you need them? pytorch 1.6 comes already with its own version of CUDA so at least for training I don't see the reason to need an addttional CUDA.
The version of cuDNN 8.0.0 is not available . Do you mean 8.0.1?

Thanks!

Also! A question related to yolact. Does yolact use supercategories? the original reposity of yolact have no questions about this.


Project:

Project name
Weather Dress Code- Test
Description
Praise the Lord, my to God!
I have finally figured out the problems:
First of all - I had chosen a multi-tenant settings, hence it enforces a need to verify.
Second - Since I was using the Ms365 toolkit, everything automated and set on rock (in the Azure Manifest)
Third - Ms Identity platform messed up my user accounts and uploaded the App using a different logging from the one (test) I had set up on Ms 365, the tenant was different and so, once I had tried a few times to log on, it seemed to locked out the account. Although, I can get in now, Azure is holding that App ransom and I cannot modify it.
Here is a test run with a new test app - working.
https://blazorapp320230316224804.azurewebsites.net
Please, kindly consider it that I had submitted my App on time, except for those issues that were not in my control.
Regards
Caroline
Repo URL
https://blazorapp320230316224804.azurewebsites.net
Team members
Caroline Manta

Duplicate of #193


initializing with default datasets

is this something we want to do within the plugin?
if so, do we want to call another script (like say an indexing script, or the start of an indexing tool), or do we want to leave it hard coded in there?
if we leave it hard coded in there, maybe we could move the default indexing stuffs along with the other setup params into a config yaml for easier accessibility?

we're breakign this function out into a new script


tests: Build failing due to dead link.

Traceback (most recent call last):
  File "/srv/zulip-venv-cache/2ecdda04b77b75ab6966327d3d0994a108d251d3/zulip-py3-venv/lib/python3.5/site-packages/twisted/internet/defer.py", line 653, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/home/circleci/zulip/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py", line 95, in error_callback
    raise Exception('Page not found: {}'.format(response))
Exception: Page not found: <404 https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX>

https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX has been moved from the wiki to the docs at https://khan.github.io/KaTeX/docs/supported.html in https://github.com/Khan/KaTeX/pull/1484.

@zulipbot claim


add support for models on any image normalization

For example, this transform converts an imagenet transformed image tensor to 0, 255, this can be generalized.
inv = transforms.Compose([ transforms.Normalize(mean = [ 0., 0., 0. ],
                                                     std = [ 1/0.229, 1/0.224, 1/0.225 ]),
                                transforms.Normalize(mean = [ -0.485, -0.456, -0.406 ],
                                                     std = [ 1., 1., 1. ]),
                               ])

class InverseTransform(nn.Module):
    def __init__(self, inverse_transform):
        super().__init__()
        self.inverse_transform = inverse_transform
        self.scale = 255

    def forward(self, x):
        x=  self.inverse_transform(x)
        x = x * self.scale
        # print(x.max(), x.min(), x.mean())
        return x

We can generalise this as:

dreamer.set_custom_normalization(
    mean = [0.5, 0.5, 0.5],
    std = [0.5, 0.5, 0.5]
)

and then inv would be like:
inv = transforms.Compose([ transforms.Normalize(mean = [ 0., 0., 0. ],
                                                     std = [ 1/std[0], 1/std[1], 1/std[2]),
                                transforms.Normalize(mean = [ -mean[0], -mean[1], -mean[2] ],
                                                     std = [ 1., 1., 1. ]),
                               ])


Reload doesn't detect change in proxy_url settings

What did you do?
Removed the proxy_url setting and reloaded via the API
What did you expect to see?
proxy_url settings to no longer be there.
What did you see instead? Under which circumstances?
No change in proxy_url existence.
Changing the config and hitting the /-/reload endpoint; it will detect a change to the details (IP or port) but if I comment the proxy_url line out - it will not detect that. Nor will it detect adding a proxy_url if there wasn't one there before.
A full restart changes the settings appropriately.
Environment

System information:

Darwin 17.7.0 x86_64
Linux 3.10.0-862.3.3.el7.x86_64 x86_64

Alertmanager version:

  alertmanager, version 0.15.2 (branch: HEAD, revision:d19fae3bae451940b8470abb680cfdd59bfa7cfa)
  build user:       root@3101e5b68a55
  build date:       20180814-10:55:04
  go version:       go1.10.3

Prometheus version:
Not relevant

Alertmanager configuration file:

---
global:
  http_config:
    proxy_url: http://<IP_ADDRESS>:5432

Prometheus configuration file:

Not relevent

Logs:
When reloading there are no errors in the logs:

level=info ts=2018-12-04T00:04:29.178120962Z caller=main.go:322 msg="Loading configuration file" file=alertmanager.yml

@simonpasquier i'd like to work on this as my first contribution. I am looking into https://github.com/prometheus/alertmanager/blob/master/cmd/alertmanager/main.go#L334 now.

@geekodour I've dug into the issue and the problem is here:
https://github.com/prometheus/alertmanager/blob/ac058957e7eeeeec0d88fed3090b1a01811ac3bf/config/config.go#L218-L223
DefaultGlobalConfig is defined here:
https://github.com/prometheus/alertmanager/blob/ac058957e7eeeeec0d88fed3090b1a01811ac3bf/config/config.go#L423-L434
Since it is a global variable, *DefaultGlobalConfig.HTTPConfig is overwritten when the YAML configuration is un-marshaled. If http_config: is empty or missing from the global configuration, the last non-empty value is kept.

@dwagon I am able to reproduce the first part about commenting but the following works for me.

Nor will it detect adding a proxy_url if there wasn't one there before.

---
templates:
.
.
other_configs:

start alertmanager, change configurations to:
---
global:
  http_config:
    proxy_url: http://<IP_ADDRESS>:5432
templates:
.
.
other_configs:

use api/SIGHUP to reload alertmanager, changes are reflected.
I tried this on master, will check on v0.15.2


dolphin: enable wayland

Motivation for this change
This probably ought to be systematically done for most (all?) qt/kde packages, but I only use and can test dolphin, so just doing this for now.
Tested under sway.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build dolphin

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: dolphin
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: dolphin
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/mhpi8ry5zv7iizylyd56axqxl4k4ba9a-dolphin-18.08.1/lib  /nix/store/mhpi8ry5zv7iizylyd56axqxl4k4ba9a-dolphin-18.08.1/bin
patching script interpreter paths in /nix/store/mhpi8ry5zv7iizylyd56axqxl4k4ba9a-dolphin-18.08.1
checking for references to /build in /nix/store/mhpi8ry5zv7iizylyd56axqxl4k4ba9a-dolphin-18.08.1...
shrinking RPATHs of ELF executables and libraries in /nix/store/kw7blq99rf6q6v1srjyhv9rqzhcbxd49-dolphin-18.08.1-dev
strip is /nix/store/n4hb93w6j076xcjw5pm09rdmc09s075b-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/kw7blq99rf6q6v1srjyhv9rqzhcbxd49-dolphin-18.08.1-dev/lib
patching script interpreter paths in /nix/store/kw7blq99rf6q6v1srjyhv9rqzhcbxd49-dolphin-18.08.1-dev
checking for references to /build in /nix/store/kw7blq99rf6q6v1srjyhv9rqzhcbxd49-dolphin-18.08.1-dev...
postPatchMkspecs
postPatchMkspecs

Success on aarch64-linux (full log)
Attempted: dolphin
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/s3h3cwkghlsf117nbvnnxrc1y6p4bh2p-dolphin-18.08.1/lib  /nix/store/s3h3cwkghlsf117nbvnnxrc1y6p4bh2p-dolphin-18.08.1/bin
patching script interpreter paths in /nix/store/s3h3cwkghlsf117nbvnnxrc1y6p4bh2p-dolphin-18.08.1
checking for references to /build in /nix/store/s3h3cwkghlsf117nbvnnxrc1y6p4bh2p-dolphin-18.08.1...
shrinking RPATHs of ELF executables and libraries in /nix/store/bsbdbbnjp2ldng24g1d32zkypzc955gd-dolphin-18.08.1-dev
strip is /nix/store/qjrnv0qw44bw1hc23zhfh26xd1c25dfs-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/bsbdbbnjp2ldng24g1d32zkypzc955gd-dolphin-18.08.1-dev/lib
patching script interpreter paths in /nix/store/bsbdbbnjp2ldng24g1d32zkypzc955gd-dolphin-18.08.1-dev
checking for references to /build in /nix/store/bsbdbbnjp2ldng24g1d32zkypzc955gd-dolphin-18.08.1-dev...
postPatchMkspecs
postPatchMkspecs

Thank you! I can also confirm that it still runs correctly after this change on a regular Xorg host :)
cc @ttuegel as package maintainer for posterity, I'm going to go ahead and merge this for now, as it looks harmless.


Azure powershell task v5 with powershell core causes misbehavior for variables named $endpoint

Note
Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo
For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
If you have an issue or request for the Azure Pipelines service, use developer community instead:
https://developercommunity.visualstudio.com/spaces/21/index.html )
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name: Azure Powershell
list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks
Environment

Server - Azure Pipelines or TFS on-premises? Azure Pipelines

If using TFS on-premises, provide the version:

If using Azure Pipelines, provide the account name, team project name, build definition name/build number:
skype, domoreexp, office, e.t.c

Agent - Hosted or Private:  Private

If using Hosted agent, provide agent queue name:

If using private agent, provide the OS of the machine running the agent and the agent version:  Windows 1809

Issue Description
[Include task name(s), screenshots and any other relevant details] Azure Powershell

Azure powershell 5 task with powershell core enabled seems to have a reserved variable named $endpoint. This made scripts that we were manipulating in Azure powershell 3 before migrating to Az start to fail as the $endpoint instead of representing a traffic manager  endpoint was being cast to a string, This made the properties unavailable for manipulation and so referencing name property in script fails

Script that generates the error(that worked before moving to powershell 5 with Az and powershell core  looks like)
$tm = Get-AzTrafficManagerProfile -Name $ProfileName -ResourceGroupName $ResourceGroupName
if (!$tm)
{
Write-Error "Could not find Traffic Manager $ProfileName"
exit 1
}
foreach ($endpoint in $tm.Endpoints)  # -> endpoint gets casted to type string here
{
if ($endpoint.Name -notlike "$DeploymentUnit-*")
{
Write-Output "Disabling $($endpoint.Name)"
Disable-AzTrafficManagerEndpoint -Name $endpoint.Name -Type ExternalEndpoints -ProfileName $ProfileName -ResourceGroupName $ResourceGroupName -Force # ->$endpoint.Name is blank
}
}
Script that works looks like
$tm = Get-AzTrafficManagerProfile -Name $ProfileName -ResourceGroupName $ResourceGroupName
if (!$tm)
{
Write-Error "Could not find Traffic Manager $ProfileName"
exit 1
}
foreach ($curEndpoint in $tm.Endpoints) # -> endpoint is correctly typed
{
if ($curEndpoint.Name -notlike "$DeploymentUnit-*")
{
Write-Output "Disabling $($curEndpoint.Name)"
Disable-AzTrafficManagerEndpoint -Name $curEndpoint.Name -Type ExternalEndpoints -ProfileName $ProfileName -ResourceGroupName $ResourceGroupName -Force #-> $curEndpoint.Name resolves properly
}
}
Task logs
[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]
Troubleshooting
Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting
Error logs
[Insert error from the logs here for a quick overview]

can you try to run the script directly form PS promt where Azure PS 5 is available
Can you share the detailed debug task logs

@microjay The variable endpoint is used internally so it causing an error ,we missed to mention it in our documentation .Please use an different variable name. We will update the documentation soon .


Servercrash with new Level.save

Hey, I'm using 5.3. Now the problem is that the server crashes immediately. I deleted some players. However, it keeps crashing permanently. What could be the problem?

need fix pleas :/

need to be have the file to chk

How can upload you are level.save?


[WIP] fix for RSpec deprecation warning, take III

Follow-up to https://github.com/guard/guard-rspec/pull/328, which didn't do the trick unfortunately. Still getting the same error as https://github.com/guard/guard-rspec/pull/327#issue-91145867, because metadata[:parent_example_group] is still being accessed.

Be sure to check out: https://github.com/rspec/rspec-core/blob/master/Changelog.md#300rc1--2014-05-18
quote:

Restructure example group metadata so that the computed keys are exposed directly off of the metadata hash rather than being on a nested :example_group subhash. In addition, the parent example group metadata is now available as [:parent_example_group] rather than [:example_group][:example_group]. Deprecated access via the old key structure is still provided. (Myron Marston)

Ideally, provide the metadata you have that's creating the deprecation.
It's one thing to avoid the deprecation, it's another to get the location properly regardless of the RSpec version - it's best to have an extra spec that demonstrates how to get the deprecation.
From what I understand, accessing :parent_example_group is fine (as opposed to using :example_group).
With this code, :parent_example_group should be used, which should not trigger the deprecation, as is here:
https://github.com/guard/guard-rspec/blob/0e345935e0cf56077b84d1bf9e764b29d14b6c26/lib/guard/rspec_formatter.rb#L36
Anyway, I'm a bit confused about the issue. Good specs would help.

If you can, extract the example with the deprecation into a repo, and I'll check it out - I don't like the way the implementation iterates to get the location, but I want to reproduce your exact scenario (example, nesting, file, whether you're using shared examples or not) before I change anything.

Maybe an update: if you're using RSpec 3.3.x, you shouldn't have the deprecations, because this line should always be true: https://github.com/guard/guard-rspec/blob/0e345935e0cf56077b84d1bf9e764b29d14b6c26/lib/guard/rspec_formatter.rb#L35
(This means, if you're getting the deprecations, then somehow strangely spec_path? is returning false - which seems wrong).
You can also config.raise_errors_for_deprecations! in your spec/spec_helper.rb to help stop as soon as the error occurs.

The deprecation error is likely because of this: #338


Open Graph tags - work in progress

At the time of the initial commit, I was working on the Open Graph met-tags and its localization. (Work in Progress)

Completed for Facebook, Twitter and Linkedin


[validator] Do not reuse signed tx from previous epoch

A validator can have transaction signed from previous epochs.
When the same transaction is asked again in a new epoch, we should not return the same old signed transaction, instead we should think that it doesn't exit.

I think there are quite a few tables with epoch-specific data, and it would be better to solve this issue comprehensively - perhaps by adding the epoch_id to keys. Or, we could do it more efficiently by splitting the db into epoch-specific and non-epoch-specific tables, and putting the epoch id in the pathname of the epoch-specific data.
I'm ok with merging this PR if we just need this fix now, but I definitely don't think we should continue approaching this in an ad-hoc fashion.

I agree. One thing we need to do first is to remove the type template on AuthorityStore (which is needed for fullnode/validator store compatibility), from there we can then have strong association between epoch and any authenticated data structure. I think we can start doing that after the gateway deprecation because we no longer need a type template after that.

Created https://github.com/MystenLabs/sui/issues/5064 to track it.

I don't understand what the type parameter has to do with this, but we can discuss that later.

Ah right, so the current transactions table could either store raw transactions, or signed transactions, depending on the type template. Having epoch as the key only makes sense in the case of signed transactions.


Feature idea

Maybe a feature to lock the polygon to grid, so you can just fill the hexagons/squares with the color

I'm not sure I get the full picture: could you explain this in a bit more detail?

Much in the same vein, I'd love to see grid snap for polygons, circles, and rectangles like implemented in The Furnace. With the exception of text outlines via Better Text Drawings, those features sadly never got picked up in another module.

Drawings are snapped though: so I assume you want a more aggressive snapping like with templates for example?

Yes, The Furnace  used that same half grid snapping templates use, it was a very handy QOL feature for quickly drawing some clean grid-aligned shapes.

I added the Force Snap To Grip toggle to the drawings layer controls in v1.1.0.


Prometheus couch exporter updates

Is this a new chart

NOTE: We're experiencing a high volume of PRs to this repo and reviews will be delayed. Please host your own chart repository and submit your repository to the Helm Hub instead of this repo to make them discoverable to the community. Here is how to submit new chart repositories to the Helm Hub.

What this PR does / why we need it:

Updated some removed apiVersion
Added prometheus scrape annotations to work with annotations
Added user/password via values or via secrets
Updated the underlying image to v27.2

Special notes for your reviewer:
I can't tell whether this or https://github.com/gkarthiks/helm-charts/tree/master/charts/prometheus-couchdb-exporter is the current version. I this version is obsolete, I'd prefer we delete it instead of merge this changes
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/assign @jlegrone


fix(translation_status): Fix list_qa_check_issues endpoint URL

This PR fixes the endpoint URL in the list_qa_check_issues() method.
I guess that the code was originally copy-pasted from the get_project_progress() method, but the URL wasn't updated.
The endpoint in the JS client library is here.

Hi @Martin005, thank you for the contribution! 🙂
The CI/CD pipeline has failed, could you please take a a look?

@andrii-bodnar I have fixed the test, thanks! 🙂

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.20%. Comparing base (99923d6) to head (bd1e52d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #181   +/-   ##
=======================================
  Coverage   99.20%   99.20%
=======================================
  Files         166      166
  Lines        6497     6497
  Branches      149      149
=======================================
  Hits         6445     6445
  Misses         36       36
  Partials       16       16

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests


Local resources (images) should trigger a console warning if not found

See #455

I think there should be issues for the individual platforms. There is nothing we can do in JS.


xlink:href property id not working properly

I use the babel plugin to solve the svg id problem, but there have some problem when i use it.
I have a svg, the structure like this below:
svg
  circle id="a"
  g
     use xlink:href="#a"

the svg:
ref:

use in:

and the dist .tsx:
ref:

use in:

After build, the id not change to someting like const _id = useUniqueInlineId(); use xlink:href={_id} and still is use xlink:href="#a" --- just a string,not a var.
I think maybe it's a bug? How should I solve to? thx!

I notice that you just deal with the url() iri, so, maybe I should submit a PR?
https://github.com/laleksiunas/inline-svg-unique-id/blob/af5d2f9e382cc0ab89f03f271f0fedc9d571875b/packages/babel-plugin-react-inline-svg-unique-id/src/plugin.js#L12

Thanks, this plugin doesn't handle such xlink:href values indeed. It would be great if you could submit a PR.

@Xheldon I published a new plugin version 1.3.0 which contains the fix for such xlink:href values. Please verify on your end.

Hello, the problem about xlink:href is still exists. It seems like isXlinkHrefAttribute function has bug
https://github.com/laleksiunas/inline-svg-unique-id/blob/17cff0f6b1d7e9daa5e5c372407a77a3f8918911/packages/babel-plugin-react-inline-svg-unique-id/src/plugin.js#L44

Hi @Gulululala, can you provide a SVG sample? I currently run a test on such icon and the xlink:href property is replaced correctly:
const Icon = () => (   <svg height="150" width="400">     <defs>       <linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%">         <stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" />         <stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" />       </linearGradient>     </defs>     <ellipse cx="200" cy="70" rx="85" ry="55" xlink:href="#grad1" />   </svg> );
Maybe I'm missing some case? Is the element referenced by xlink:href defined in the  block?

@laleksiunas Please help check this case, thx !
<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink">
    <defs>
        <linearGradient x1="19.617%" y1="8.88%" x2="83.953%" y2="93.968%" id="a" gradientUnits="userSpaceOnUse">
            <stop stop-color="#FFC174" offset="0%"/>
            <stop stop-color="#FFA200" offset="100%"/>
        </linearGradient>
        <path
            d="m6 9-2.15 1.13a.768.768 0 0 1-1.114-.81l.41-2.393-1.738-1.695a.768.768 0 0 1 .426-1.31l2.403-.35L5.31 1.396a.768.768 0 0 1 1.378 0l1.074 2.178 2.403.35a.768.768 0 0 1 .426 1.31L8.853 6.926l.41 2.393a.768.768 0 0 1-1.114.81L6 9Z"
            id="b"/>
    </defs>
    <g fill="none" fill-rule="evenodd">
        <use fill="url(#a)" xlink:href="#b"/>
        <path d="M0 0h12v12H0z"/>
    </g>
</svg>

@laleksiunas Hi, I'm not sure if it's because I use svgr. It seems the attribute xlink:href is transformed to xlinkHref. So it affects this logic
https://github.com/laleksiunas/inline-svg-unique-id/blob/17cff0f6b1d7e9daa5e5c372407a77a3f8918911/packages/babel-plugin-react-inline-svg-unique-id/src/plugin.js#L44

Thanks for your help @Gulululala, I published version 1.3.1 which includes a check for xlinkHref as well.

Closing because the fix is published. Feel free to reopen if the issue persists.

Latest version on npm is 1.2.3. How can I add version 1.3.1 to my project?


Migrate to py3

-> peewee support for py3
-> playhouse.sqlcipher_ext support for py3

fixed else where
https://github.com/nooballiance/password-manager-gone-wrong


Pyu/afp 257 dont nest sub examples in nav

Do not merge this for now. Waiting on Aparna's solution using tree structure in nav rather than just flattening all the directories in a path at the top level.


Tweak .NET engine to make it a bit more canonical

(Thanks for the nice set of benchmarks and write-ups.)
You mentioned in the README you'd be open to some changes, so just a few suggested tweaks...
Performance:

Upgrade to .NET 8 (a supported release candidate is available, https://dotnet.microsoft.com/download/dotnet/8.0)
Use EnumerateMatches instead of Matches when capture groups aren't needed.
Use Match w/ NextMatch instead of Matches when capture groups are needed.
Use EnumerateLines to avoid materializing strings for each line when not necessary

Stylistic:

Use switch statements/expressions instead of large cascading if/elses.
Use and slice spans instead of List<byte> manipulations
No need to explicitly use Stream.Read; it can instead copy the input stream to a memory stream and get a span to the memory stream's buffered data.
Change comments to be structured XML comments so that they show up for consumers in IntelliSense / docs / etc.
Use Elapsed.TotalNanoseconds instead of a custom helper
Use Func<..> instead of custom delegates
Use ++ instead of += 1
Use record structs for simple POCOs

Nice!
And yeah I do not run these on a machine with AVX-512. I run them on an Intel i9-12900K, which is consumer grade and Intel has been removing AVX-512 from their consumer line. I actually don't believe I have any hardware with AVX-512 support. (Oh, nope, that's a lie. My laptop with an i7-1165G7 does, funnily enough.)

@stephentoub @danmoseley Do either of y'all have any higher level feedback on the benchmark itself?

@stephentoub Just wanted to check in on this PR. I think there are a few outstanding change requests?

Apologies, @BurntSushi.... this slipped off my radar. I'll fix it up later today.

@BurntSushi now 8.0 is out I thought I'd try to throw in the update to that as well.
Here's what I did more or less (using Arch in WSL2 on Windows, which should not matter). Your BUILD.md was helpful.
Note I'm not familiar with Arch and it's package manager world but I see that pacman still only offers 7.0 (not sure when/if that is updated, as I don't believe Microsoft does it). So I could not use pacman -S. Instead I found 8.0 on "AUR" and followed these steps that seemed to get it succesfully.
sudo pacman -S git
git clone https://aur.archlinux.org/dotnet-core-bin.git
cd dotnet-core-bin/
makepkg -si
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh
source "$HOME/.cargo/env"
cargo install --path .
git clone https://github.com/danmoseley/rebar   # this PR + 8.0 changes
cd rebar
git checkout tweakdotnet8.0

at this point
[dan@danmose50 rebar]$ rebar version
0.1.0 (rev bea9f83d41)
[dan@danmose50 rebar]$ rebar build -e dotnet
dotnet: dependency command did not print expected output: could not find match for "(?m)^7\\." in output of "dotnet" "--list-sdks"
note: a dependency that is required to build 'dotnet' could not be found, either because it isn't installed or because it didn't behave as expected
note: run `RUST_LOG=debug rebar build -e '^dotnet$'` to see more details
dotnet/compiled: dependency command did not print expected output: could not find match for "(?m)^7\\." in output of "dotnet" "--list-sdks"
dotnet/nobacktrack: dependency command did not print expected output: could not find match for "(?m)^7\\." in output of "dotnet" "--list-sdks"

Obviously, I need to build and use the rebar out of my repo somehow. I am new to Rust. Could you give me a hint?

Doh - thanks. With that tweak it builds.
rebar measure -e '^(rust/regex|dotnet.*)$' -f '^test/' --test seems to be happy with 8.0, which seems good.
then I did rebar measure -e '^(rust/regex|dotnet.*)$' -f '^curated/04-ruff' | tee ruff.csv as a trial and got
[dan@danmose50 rebar]$ xsv select name,model,engine,iters,median,min ruff.csv | xsv table
name                               model          engine              iters  median    min
curated/04-ruff-noqa/real          grep-captures  dotnet/compiled     11     279.91ms  270.15ms
curated/04-ruff-noqa/real          grep-captures  dotnet/nobacktrack  21     149.39ms  143.52ms
curated/04-ruff-noqa/real          grep-captures  rust/regex          109    27.57ms   26.66ms
curated/04-ruff-noqa/tweaked       grep-captures  dotnet/compiled     62     49.07ms   46.62ms
curated/04-ruff-noqa/tweaked       grep-captures  dotnet/nobacktrack  46     65.17ms   62.91ms
curated/04-ruff-noqa/tweaked       grep-captures  rust/regex          105    28.69ms   27.53ms
curated/04-ruff-noqa/compile-real  compile        dotnet/compiled     882    53.20us   49.20us
curated/04-ruff-noqa/compile-real  compile        dotnet/nobacktrack  4061   490.30us  467.70us
curated/04-ruff-noqa/compile-real  compile        rust/regex          30348  89.00us   83.20us

Do you want to take this PR with the update to 8.0? I'm not sure how important it is that 8.0 be installable with pacman.

One other question -- perhaps this came up before. As you may know, .NET has another Regex option not tested here: it generates matcher code at compile time for statically known patterns. Would an approach like that be in scope for 'rebar'? Obviously, it wouldn't be fair to compare it directly with engines that parse the pattern at runtime, but it isn't always appropriate to use it, either.

I do indeed consider it in scope. And in particular, I'd love to include CTRE in this benchmark too. The main hang-up here is building out the infrastructure for it, because rebar is organized by building generic runner programs that accept patterns as input. It's not really feasible to do it another way. Therefore, the only real way to make rebar's framework work with compile time regexes is to have the runner program generate C# (or C++ in CTRE's case) programs, build them and then run them. Conceptually simple, but probably fairly tedious to actually do.

Do you want to take this PR with the update to 8.0? I'm not sure how important it is that 8.0 be installable with pacman.

I think that's probably fine. If I can get it from the AUR then I can live with that. The Archlinux folks are generally pretty fast with updating stuff. .NET 7.x has already been flagged as out-dated for example: https://archlinux.org/packages/?sort=&q=dotnet&maintainer=&flagged=

By the way, your docs for rebar and how you've organized everything here is really nice. I'm glad to have discovered xsv now as well.

Thanks. :D

Conceptually simple, but probably fairly tedious to actually do.

Yup, I figured, perhaps a future project for us or someone.

I think that's probably fine.

@stephentoub could you grab the changes  into this PR? I don't have power to do that.

oh and for fun Stephen here are our biggest gaps. Once this is merged and we have official numbers I could open an issue on our side in case community folks might want to have a look at any
[dan@danmose50 rebar]$ rebar measure -e '^(rust/regex|dotnet.*)$' -f '^curated/' | tee curated.csv
....
[dan@danmose50 rebar]$ rebar cmp curated.csv  -e '^(dotnet.*|rust/regex)$' -t 50
benchmark                                     dotnet/compiled        dotnet/nobacktrack    rust/regex
---------                                     ---------------        ------------------    ----------
curated/03-date/ascii                         835.3 KB/s (132.05x)   -                     107.7 MB/s (1.00x)
curated/03-date/unicode                       873.6 KB/s (125.20x)   -                     106.8 MB/s (1.00x)
curated/06-cloud-flare-redos/simplified-long  11.6 GB/s (4.00x)      176.3 MB/s (270.50x)  46.6 GB/s (1.00x)
curated/12-dictionary/single                  1023.8 KB/s (649.67x)  -                     649.6 MB/s (1.00x)

@stephentoub could you grab the changes into this PR? I don't have power to do that.

Done

Thank you! I've merged this PR with a few fixups to restore my rough 80 column limit.
If folks want to submit more PRs for more cleanups, that would be great. It would probably be best in the future to have separate PRs for upgrading .NET versions and stylistic/perf changes (unless they depend on a newer .NET version).

Great! Will this now change any of the timings in the tables in the README?

I have to run the benchmarks to do that. They take hours to run, so I do it overnight. I'll try to remember to do it tonight. I'll post about it here when that's done.

OK, I finally remembered to run the benchmarks before going to bed. .NET has moved up! Rankings from before:
$ rebar rank -f '^curated/' record/all/2023-10-11/*.csv -M compile
Engine              Version           Geometric mean of speed ratios  Benchmark count
------              -------           ------------------------------  ---------------
hyperscan           5.4.2 2023-04-22  2.05                            28
rust/regex          1.10.0            2.76                            38
pcre2/jit           10.42 2022-12-11  5.30                            34
dotnet/compiled     7.0.10            6.37                            34
rust/regexold       1.7.3             7.44                            35
re2                 2023-08-01        9.12                            31
dotnet/nobacktrack  7.0.10            10.15                           29
javascript/v8       20.5.1            12.17                           32
d/ldc/std-regex     2.104             19.43                           31
regress             0.7.1             27.48                           32
python/re           3.11.5            37.20                           33
python/regex        2023.10.3         37.31                           34
java/hotspot        20.0.2+9-78       37.58                           34
perl                5.38.0            37.63                           33
icu                 72.1.0            44.30                           34
go/regexp           1.21.0            67.13                           31
pcre2               10.42 2022-12-11  102.74                          33
rust/regex/lite     0.1.1             130.73                          28

Rankings from after:
$ rebar rank -f '^curated/' record/all/2023-12-30/*.csv -M compile
Engine              Version           Geometric mean of speed ratios  Benchmark count
------              -------           ------------------------------  ---------------
hyperscan           5.4.2 2023-04-22  2.40                            28
rust/regex          1.10.2            3.14                            38
dotnet/compiled     8.0.0             4.35                            34
pcre2/jit           10.42 2022-12-11  6.03                            34
rust/regexold       1.7.3             8.55                            35
dotnet/nobacktrack  8.0.0             8.75                            29
re2                 2023-11-01        10.45                           31
javascript/v8       21.4.0            13.80                           32
d/ldc/std-regex     2.105             22.24                           31
regress             0.7.1             32.44                           32
java/hotspot        21.0.1+12-LTS-29  42.08                           34
python/regex        2023.12.25        42.45                           34
perl                5.38.1            42.91                           33
python/re           3.11.6            43.23                           33
icu                 72.1.0            50.50                           34
go/regexp           1.21.5            76.38                           31
pcre2               10.42 2022-12-11  117.74                          33
rust/regex/lite     0.1.5             162.11                          28

For funsies, here's the individual benchmark breakdown comparison (curated only) between rust/regex and dotnet/compiled.  Just make sure you have an up-to-date checkout of this repo.
It looks like y'all have improvements across the board. I'm especially interested in the curated/06-cloud-flare-redos/simplified-short and curated/14-quadratic/* benchmarks.

Thanks for sharing, @BurntSushi.

Faster than pcre! (at least here).. that has been a long journey.
Cc @MihaZupan who did vectorization work that contributed.