V4 Inline forms with input-group, labels wrong positioning

Inline forms: Labels of input groups are placed above input fields

Html:
<form class="form-inline">

    Amount

$

      <input type="text" class="form-control" id="exampleInputAmount" placeholder="Amount">

    Amount
      <input type="text" class="form-control" id="exampleInputAmount2" placeholder="Amount">

https://jsbin.com/jimoli/edit?html,output

OS: win7 64, browsers Firfox/IE/Chrome

Not android

+1

Hello mihaistoie. Your only problem is that you are missing an end tag and one end div is in a bad position. Try this:
 <form class="form-inline">

                Amount

$

                    <input type="text" class="form-control" id="exampleInputAmount" placeholder="Amount">

                    Amount
                    <input type="text" class="form-control" id="exampleInputAmount2" placeholder="Amount">

          </form>

@Rosenny08 , I ran the code you posted on blank Bootply with Bootstrap 4.0-alpha and it is not working.  Is this something that has been corrected since the 4.0-alpha version that is used on Bootply was put in?

@cpeuterbaugh I ran the code in a blank file too and it's working for me.

I don't know if it's not compatible with the latest Bootstrap Cause I'm using the previews version.

@mihaistoie  your answer is right. Also you can give that parameter to the form-control. And add more:
.form-control {
  height: 10px;
  width: auto;
  display: inline;
  padding: 10px 12px;
}

@Rosenny08 : You are using bootstrap 3.x (bold labels). The issue is for bootstrap 4  alpha-4 not for 3.x.

Ahhhhh. Oh God. My excuses then.

@mihaistoie  Thank you so much!  And @Rosenny08, thanks for the help as well.

In _input-group.scss, lines 5-7 read:
.input-group {
    position: relative;
    width: 100%;

Then in _forms.scss we have lines 322ff (within the rules for .form-inline):
.input-group {
    display: inline-table;
    vertical-align: middle;

    .input-group-addon,
    .input-group-btn,
    .form-control {
        width: auto;
    }
}

So as @mihaistoie said, the problem could be fixed by adding width: auto; to the .form-inline  .input-group properties at line 325.
In Bootstrap 3 this apparently wasn´t needed because .input-group did not have a default width: 100%; property - but I don´t know Bootstrap well enough to  understand why that has changed in v4.


fix(ffe-context-message-react): Do not set aria-labelledby when referenced header is not rendered

With the current implementation, the aria-labelledby attribute on the <div/> wrapping the message is set when no header was passed as a prop. This will lead to a broken aria reference. This commit changes the implementation to only set the aria-labelledby when a header prop exists.

Coverage increased (+0.02%) to 81.943% when pulling 3da2550cf571e0d04bed8428fd6c17b693cff2eb on Snikanes:do-not-set-aria-labelledby-without-header into 1015b95d3023bac68dd66c0c58fd3e3e966a0802 on SpareBank1:develop.


Vol only shows most recent trades

The market section for VOL only shows the most recent trade is the total volume and not 24 hours of it. Any suggestions on fixing this? I have gone through all the closed and open issues and attempted the different suggestions but none of them work and cause a websocket error.
Thanks!

did you fix this ? which version are you using the Earlier one with one main.js or the last one with three main.js command to run?
I am using the earlier version. My trade pair does not register.


Added a python implementation

I second this, I myself have written many of these programs in python. For example, here is agar.io in prossesing.py (Not online, but I could add that if I wanted) Gist here I have also created The wandering salesman, snake, and a couple others. So, at least 1 video with prossesing.py would be AMAZING :D

Although, not sure what the this repo benefits from the file change suggested


Custom pages for syntax highlighter

It would be awesome if there was an option to list additional wiki paths that the syntax highlighter should work on. I'm planning to put some script/bot configuration in there, and being able to make certain pages be opened with the syntax highlighting editor would be super neat.
For bonus points, ability to select type (yaml, json, css, etc) for each path, and maybe having wildcard paths.

Not a bad idea. you should be aware though that for now we are not tackling that sort of stuff since we are waiting on the reddit redesign.


Upgrade to temurin17

While trying to build an example android application from https://github.com/rgl/hello-world-kotlin-android, the build failed in cirrus due to the jdk version, it requires 17 but 11 is installed.
Here's the relevant log:
Welcome to Gradle 8.0!
For more details see https://docs.gradle.org/8.0/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* Where:
Build file '/private/var/folders/dc/nt69f7cn7r5bgp90zkhs00000000gn/T/cirrus-ci-build/app/build.gradle' line: 2
* What went wrong:
An exception occurred applying plugin request [id: 'com.android.application']
> Failed to apply plugin 'com.android.internal.application'.
   > Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
      Your current JDK is located in /Library/Java/JavaVirtualMachines/temurin-11.jdk/Contents/Home
      You can try some of the following options:
       - changing the IDE settings.
       - changing the JAVA_HOME environment variable.
       - changing `org.gradle.java.home` in `gradle.properties`.

JDK 17 is included starting with ghcr.io/cirruslabs/macos-ventura-xcode:15-beta image to minimize breaking things for people on Xcode 14.x.


RestClient always raising timeout

I got codes roughly like this:
require 'vcr'
require 'webmock/rspec'

VCR.configure do |config|
  config.hook_into :webmock
  config.configure_rspec_metadata!
end

describe Test do
  it 'always timeout', :vcr do
    response = RestClient.post(url, req_body, req_headers)
  end
end

And I always got Timeout error:
[Cassette: 'Car/#save_change_car_no/works'] Initialized with options: {:record=>:once, :match_requests_on=>[:method, :ignore_query_param_ordering], :allow_unused_http_interactions=>true, :serialize_with=>:yaml, :persist_with=>:file_system}
[webmock] Handling request: [post http://rs.qiniu.com/delete/c2tpby1ib3NzOua1mUEwMDAwMQ==] (disabled: false)
  [Cassette: 'Car/#save_change_car_no/works'] Initialized HTTPInteractionList with request matchers [:method, :ignore_query_param_ordering] and 0 interaction(s): {  }
[webmock] Identified request type (recordable) for [post http://rs.qiniu.com/delete/c2tpby1ib3NzOua1mUEwMDAwMQ==]

RestClient::RequestTimeout: Request Timeout
./spec/models/test_spec.rb:219:in `block (3 levels) in <top (required)>'
./spec/rails_helper.rb:50:in `block (3 levels) in <top (required)>'
./spec/rails_helper.rb:50:in `block (2 levels) in <top (required)>'
-e:1:in `load'
-e:1:in `<main>'
------------------
--- Caused by: ---
Net::OpenTimeout:
  execution expired

PS: The code run perfectly in rails console, so the network is fine.
By the way, thanks your work~ . @bblimke

I'd need a complete example to reproduce the issue. I believe one should
either use vcr or webmock/rspec,  not both though. Perhaps that causes the
issue?
On Tue, 13 Dec 2016 at 05:01, Yunzheng<EMAIL_ADDRESS>wrote:

I got codes roughly like this:
require 'vcr'
require 'webmock/rspec'
VCR.configure do |config|
config.hook_into :webmock
config.configure_rspec_metadata!
end
describe Test do
it 'always timeout', :vcr do
response = RestClient.post(url, req_body, req_headers)

end
end
And I always got Timeout error:
[Cassette: 'Car/#save_change_car_no/works'] Initialized with options: {:record=>:once, :match_requests_on=>[:method, :ignore_query_param_ordering], :allow_unused_http_interactions=>true, :serialize_with=>:yaml, :persist_with=>:file_system}
[webmock] Handling request: [post http://rs.qiniu.com/delete/c2tpby1ib3NzOua1mUEwMDAwMQ==] (disabled: false)
[Cassette: 'Car/#save_change_car_no/works'] Initialized HTTPInteractionList with request matchers [:method, :ignore_query_param_ordering] and 0 interaction(s): {  }
[webmock] Identified request type (recordable) for [post http://rs.qiniu.com/delete/c2tpby1ib3NzOua1mUEwMDAwMQ==]
RestClient::RequestTimeout: Request Timeout
./spec/models/test_spec.rb:219:in `block (3 levels) in <top (required)>'
./spec/rails_helper.rb:50:in `block (3 levels) in <top (required)>'
./spec/rails_helper.rb:50:in `block (2 levels) in <top (required)>'
-e:1:in `load'
-e:1:in `'

--- Caused by: ---
Net::OpenTimeout:
execution expired
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bblimke/webmock/issues/672, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAA8u-t7Th4Oi0dmU1aRkCSlwpsKmAwDks5rHhiTgaJpZM4LLUOX
.

I follow this example to set up: https://github.com/eliotsykes/rspec-rails-examples/blob/master/spec/support/vcr.rb
It seems webhook can be hooked into vcr.
By the way, I try lots of ruby http client, and most of them has this issue except faraday with typhoeus

This example doesn't require webmock/rspec
On Tue, 13 Dec 2016 at 05:18, Yunzheng<EMAIL_ADDRESS>wrote:

I follow this example to set up:
https://github.com/eliotsykes/rspec-rails-examples/blob/master/spec/support/vcr.rb
It seems webhook can be hooked into vcr.
By the way, I try lots of ruby http client, and most of them has this
issue except faraday with typhoeus
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/bblimke/webmock/issues/672#issuecomment-266646096,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAA8u1-o3VfmptrMP36-Rox9YSjWc29jks5rHiqygaJpZM4LLUOX
.

I'm getting the same issue with Faraday.
Did you find a solution @42thcoder?


TypeError when using destructuring assignment syntax

A code example
let b;
[, b] = [4, 5]

The Syntax is valid, and Babylon parses it correctly.
However, running it through the inspector, I get the following error:

TypeError: Cannot read property 'type' of null
at Function.getChildren (/Users//node_modules/jsinspect/lib/nodeUtils.js:98:24)
at dfs (/Users//node_modules/jsinspect/lib/nodeUtils.js:47:17)
at Array.forEach (native)

Other than that, the new version looks great!

Fixed in https://github.com/danielstjules/jsinspect/commit/34613c8d5f18fb0c5157ca7cae1d8262f24f2c3b and about to publish a patch release, thanks! :)


Change tags of parallel_for.

I would argue that the names of Kokkos views and parallel regions should not have any spaces and parentheses in them, only [a-z], [A-Z], [0-9] and _. This would make later parsing easier.

Codecov Report

Merging #227 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #227      +/-   ##
==========================================
+ Coverage   97.53%   97.53%   +<.01%
==========================================
  Files          40       40
  Lines        1948     1949       +1
==========================================
+ Hits         1900     1901       +1
  Misses         48       48

Impacted Files
Coverage Δ

packages/Search/src/DTK_LinearBVH_decl.hpp
100% <100%> (ø)
:arrow_up:

...ch/src/details/DTK_DetailsTreeConstruction_def.hpp
98.18% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

ready for review @aprokop

Neat! Thanks, @Rombur. Couple minor nitpicks:

Can we change it from REGISTER_PARALLEL (what do we register?) to something like KOKKOS_NAME or REGION_NAME?
I assume that if we ever want to run on Windows (and if Kokkos ever does) we'll need to add an #ifdef clause
Have you checked whether CUDA produces meaningful names?

Don't know if we should, but could also write whitespace stripping/replacing on __func__. Really, would need to see what output looks like.

I have changed the name of the macro. The names produced with CUDA are the same as without CUDA.

So, first of all, we need to do something like __func__ + ": " + std::string(x). Second, it seems that __func__ does not actually include the class name so it is not sufficient.

Should we have a macro for this then?

With
#define REGION_NAME(x) __PRETTY_FUNCTION__+std::string(": ")+std::string(x)

the output has what we need
                                                                     calculate_bouding_of_the_scene         0.08116                    1         0.08116  53.422   3.185
static void DataTransferKit::Details::TreeConstruction<DeviceType>::calculateBoundingBoxes(Kokkos::View<DataTransferKit::Node*, DeviceType>, Kokkos::View<Data
TransferKit::Node*, DeviceType>) [with DeviceType = Kokkos::Device<Kokkos::Cuda, Kokkos::CudaUVMSpace>]: calculate_bounding_boxes         0.02649                    1         0.02649  17.441   1.040
     N6Kokkos7BinSortINS_4ViewIPjJNS_6DeviceINS_4CudaENS_12CudaUVMSpaceEEEEEENS_7BinOp1DIS7_EES6_jEE         0.01949                    4         0.00487  12.
832   0.765
DataTransferKit::BVH<DeviceType>::BVH(Kokkos::View<const DataTransferKit::Box*, DeviceType>) [with DeviceType = Kokkos::Device<Kokkos::Cuda, Kokkos::CudaUVMSpace>]: set_bounding_boxes         0.00824                    1         0.00824   5.423   0.323
static DataTransferKit::Node* DataTransferKit::Details::TreeConstruction<DeviceType>::generateHierarchy(Kokkos::View<unsigned int*, Device>, Kokkos::View<DataTransferKit::Node*, DeviceType>, Kokkos::View<DataTransferKit::Node*, DeviceType>) [with DeviceType = Kokkos::Device<Kokkos::Cuda, Kokkos::CudaUVMSpace>]: gen
erate_hierarchy         0.00764                    1         0.00764   5.029   0.300
static void DataTransferKit::Details::TreeConstruction<DeviceType>::assignMortonCodes(Kokkos::View<const DataTransferKit::Box*, DeviceType>, Kokkos::View<unsigned int*, Device>, const DataTransferKit::Box&) [with DeviceType = Kokkos::Device<Kokkos::Cuda, Kokkos::CudaUVMSpace>]: assign_morton_codes         0.00446
                  1         0.00446   2.937   0.175
N6Kokkos7BinSortINS_4ViewIPjJNS_6DeviceINS_4CudaENS_12CudaUVMSpaceEEEEEENS_7BinOp1DIS7_EES6_jE20copy_permute_functorINS1_IPiJNS_10LayoutLeftES6_EEES7_NS1_ISC_
JS6_EEEEE         0.00077                    1         0.00077   0.504   0.030
N6Kokkos7BinSortINS_4ViewIPjJNS_6DeviceINS_4CudaENS_12CudaUVMSpaceEEEEEENS_7BinOp1DIS7_EES6_jE20copy_permute_functorINS1_IS2_JNS_10LayoutLeftES6_EEES7_S7_EE
       0.00075                    1         0.00075   0.491   0.029
N6Kokkos7BinSortINS_4ViewIPjJNS_6DeviceINS_4CudaENS_12CudaUVMSpaceEEEEEENS_7BinOp1DIS7_EES6_jE12copy_functorINS1_IPiJS6_EEENS1_ISC_JNS_10LayoutLeftES6_EEEEE
       0.00051                    1         0.00051   0.335   0.020
N6Kokkos7BinSortINS_4ViewIPjJNS_6DeviceINS_4CudaENS_12CudaUVMSpaceEEEEEENS_7BinOp1DIS7_EES6_jE12copy_functorIS7_NS1_IS2_JNS_10LayoutLeftES6_EEEEE         0.00
050                    1         0.00050   0.331   0.020
            N6Kokkos4Impl15min_max_functorINS_4ViewIPjJNS_6DeviceINS_4CudaENS_12CudaUVMSpaceEEEEEEEE         0.00040                    1         0.00040   0.
265   0.016
void DataTransferKit::BVH<DeviceType>::query(Kokkos::View<Query*, DeviceType>, Kokkos::View<int*, DeviceType>&, Kokkos::View<int*, DeviceType>&) const
...

But this is quite verbose, and I am no longer certain this is good.

Cool - we should put that in utils or something

Some discussions on stackoverflow and cplusplus about portability. It seems like people agree that the most portable way is to use BOOST_CURRENT_FUNCTION.
Just tried out with the following patch:
diff --git a/packages/Utils/src/DTK_ConfigDefs.hpp b/packages/Utils/src/DTK_ConfigDefs.hpp
index 5bf7248..9318977 100644
--- a/packages/Utils/src/DTK_ConfigDefs.hpp
+++ b/packages/Utils/src/DTK_ConfigDefs.hpp
@@ -19,6 +19,7 @@

 #include <cstdint>
 #include <string>
+#include <boost/current_function.hpp>

 namespace DataTransferKit
 {
@@ -34,7 +35,7 @@ using LocalOrdinal = unsigned int;
 using GlobalOrdinal = uint64_t;

 // clang-format off
-#define REGION_NAME(x) __func__+std::string(x)
+#define REGION_NAME(x) BOOST_CURRENT_FUNCTION+std::string(":")+std::string(x)
 // clang-format on

 //---------------------------------------------------------------------------//

Works fine with both CUDA and OpenMP. Would be nice to try it out using intel compiler. @Rombur should we try it out on Titan?

I'd like to have an informal poll here. We have few options here:

Use @Rombur's original approach with hand-written names
Use pretty function-like macros for wrapping names up

One is short, one is a lot longer. One is more automatic than the other. I'd like to see everybody's preferences. My original thinking was pretty function but the full output is really long.

Let's just use boost, it makes the tag shorter to type. Not sure how you want to test that on Titan. Do you have an account?

@Rombur I do, but never really used it. Actually, nevermind titan, I have access to some easier machines to use to try to compile DTK on.

I would prefer to be more verbose if it is clean and gives us the information we need

Was trying to compile using Intel <IP_ADDRESS>, but got hit with this:
In file included from ../../DataTransferKit/packages/Search/src/DTK_LinearBVH_decl.hpp(20),
                 from DataTransferKit/packages/Search/src/DTK_LinearBVH_SERIAL.cpp(34):
../../DataTransferKit/packages/Search/src/details/DTK_DetailsPredicate.hpp(37): error: braces cannot be omitted for this subobject initializer
          : _query_point( {0., 0., 0.} )
                           ^

@aprokop what's the gcc version you are using?

gcc-4.7.2. This is the default at Sandia (though they are planning to update it to 4.9). 4.7.2 has been an officially supported version of Trilinos for a while.

gcc-4.7.2 does not support all of C++11 you need gcc 4.8

Unfortunately, 4.7.2 is what Trilinos has been stuck for a while. Maybe we should actually indicate the minimum version of compilers required for DTK. Could you or @dalg24 come up with a list? Or at least, indicate what is the minimum version of gcc that could be used?

https://gcc.gnu.org/projects/cxx-status.html#cxx11

OK, I don't think I have an easy access to Intel with newer gcc. I'm going to trust boost portability.


Help

Can you tell me where is my trained video.I just cannot fint it on the same directory.Is it means that it replaced by the new trined viedo.Hower,it is the same quality as before.Could you give me some tips?

@pip2go you should read readme and code by yourself, not always ask.


train on multiple gpu

Have you tried to train it  on multiple gpu?How?

Hi, no we didn't try since we only had one GPU available. If you want, I suggest reading about it in the TensorFlow documentation, but be sure to read the docs about the version we used, 1.3.
Also, if you want to work on a similar project I really suggest rewriting the architecture and the training code with a newer version of TensorFlow, a lot has changed and many things are much better/easier now. Good luck!


underscore.string upgraded to latest version

Retire.js shows a warning that a vulnerable version of jquery is used in grunt-legacy-log dependencies. It probably isn't a problem in production but the warning is useless.
$ retire
Loading from cache: https://raw.github.com/bekk/retire.js/master/repository/jsrepository.json
Loading from cache: https://raw.github.com/bekk/retire.js/master/repository/npmrepository.json
/some/path/grunt-legacy-log/node_modules/underscore.string/test/test_underscore/vendor/jquery.js
↳ jquery 1.7.2 has known vulnerabilities: http://bugs.jquery.com/ticket/11290 http://research.insecurelabs.org/jquery/test/

Dependencies have been updated and published. Thanks!


Update styled-components

Hey @LucianBuzzo. Appreciate the PR. Can you please make styled-components one of the peer dependencies. Since, this library is fairly popular now and many target projects would already have it as a dependency, makes sense that way not to freeze the version.
You can refer to examples in package.json for peer dependencies we already have...

@rcdexta Good idea, I'll update the PR now

@rcdexta I imagine this will be a major version bump, as it could potentially break some installations

Thanks. bumped major version...


Feature request: named buttons

Is it possible to make folded buttons display specified text? e.g.
 ```blindfold "See proof"
 long proof... or something... ```

will look like button titled "See proof" when folded.

Actually a good idea and might not be hard to implement. But I am not available at the moment. If anyone would PR, it will be great.

something

should work now in version 1.0.2


Ideas for v2.0

Hey All. Thanks for all the feedback recently. It feels good to finally get some inertia on this crate  after so long!
I'd like to get v2.0 released by the end of the year, if that's possible. Here's what I'm thinking for it:

Get all the outstanding issues and PR's done:

@j4r0u53k is working on #16 to bring in CAN FD support.
@nnarain 's PR  #24 would solve some of the API and the ExtendedID issues.
@marcelbuesing 's #21 would restore CI to the repo

Make better use of the upstream crates.

Some of the low-level types, constants, and other definitions have since been added to the upstream crates, like nix. So give a quick review and remove whatever possible from this one.

[Maybe] Consolidate the error types or make a wrapping Error type with a Result

Lately I've been finding it tough to use a lot of libraries in an application when each has a dozen error types.
It's nice when a library has a single, top-level error to say, for example, "Was this a CAN error?"

Timestamps

The whole reason I wanted to update this crate in the first place was because I needed hardware timestamps!  Now I can't even remember if I did anything about that.

After that is finished and released,  I would like to start putting together v2.1 to add full NetLink support for the CAN interfaces.

Sorry for the noise, but were there any updates for the 2.0 release? If something isn't finished yet, I still think it's better to craft the new release, so users (us) could use it already, while other improvements can land in next versions.

There was some work on the Netlink portions of this crate around December with a lot left to do, but I also agree that stuff like CAN-FD should be made available as fast as possible (I also need it for other projects).

I'd agree we should get a 2.0 released soon. I'm currently still using a fork for tokio-socketcan and would like to put a PR up for that.

Yes, apologies, I got caught up on several other projects, but I need this soon, too! I had a few experiments started in January on how to clean up and finish some refactoring, but I started wondering recently if I should mostly push out what's been sitting in the repo as v2.0, and then do the further work as v3.0 if it breaks the API again.
But either way, I'll be starting back on this project this week or next at the latest...

Getting 2.0 out sooner will probably also get more people using this crate again, which will help get more people contributing to a cleanup.

After browsing every RUST/CANBUS implementations I found on github, I ended up restarting a new can-rustlib from scratch. My only target is Linux and I want to avoid any non critical dependencies. We do LTS support and when running a code for 10/15years you should think twice before adding any new dependency. My is to limit this lib to low-level Can interface, leaving tooling, async,... outside of the library.
I already had a legacy C++ Can service(doc@[1] source@[2]) that supports RawCan+BMC+J1939+OBD2+NMEA2000+... My goal is to renew this service in RUST. This new version should integrate with our new micro-service architecture[3] and VSS/kuksa_databroker[4].
From a functional point of view, Rust/new version should support:

every previously supported functionalities

RawCan+BMC+J1939+OBD2+NMEA2000+...
Microservice per message/signal Security model (Rest,Websocket,Ram/Ram,...)

New features

faster/less resource

better memory heap usage
lazy synchronization with less json serialization

message parsing: move from statics OpenXC generating static C++ code to dynamic DBC format interpretation
hopefully Rust code will be simpler/cheaper to maintain that C++ version
After two days of work, I already get promising result:
DBC parsing works (thanks to can-dbc [5]).
Message binary parsing done with bitvec
SocketCan interface done at 80%

Raw CAN and CANFD done
Filter done
Message parsing done
BMC in progress (hopefully only an other 1/2day of work)
I still have to integrate higher level CAN protocol (J1939, NMEA2000, ...) and finalize the API to get a clean separation in between the low-level and higher level.

Hopefully I will be able to publish something by the end of the week. But the code should under "work in progress" status until end of April.
[1] https://docs.redpesk.bzh/docs/en/master/redpesk-core/canbus/1-Architecture.html
[2] https://github.com/redpesk-common/canbus-binding
[3] https://github.com/redpesk-common/afb-librust
[4] https://github.com/eclipse/kuksa.val/tree/master/kuksa_databroker
[5] https://github.com/marcelbuesing/can-dbc.git

That's awesome, @fulup-bzh!
As for this crate, the final cleanup of the frame and error types is underway for v2.0, and should be done and released in the next week or two. That work is mostly up in the develop branch and should be merged into master this week.
Comments welcome.

I will close this now. If there are any specific problems with the code pertaining to the v2.0 release, please open specific tickets.

I'd agree we should get a 2.0 released soon. I'm currently still using a fork for tokio-socketcan and would like to put a PR up for that.

Agreed, what is the best way for moving forward with such a feature flag integration?

v2.0 is out. If you want to discuss additional features, feel free to open more tickets with ideas. I'd personally like to integrate async/await capabilities into this library, but in a way that is agnostic to the executor framework. Obviously tokio is the most popular, but I have several customers that use others.


Feature/set locale

Proposed Changes
Currently the locale parameter is sent along when calling start(), but there is no way to override it.
This PR introduces setLocale API which can be called after start().
Similar approach has been done in https://github.com/Leanplum/Leanplum-JavaScript-SDK/pull/140

Hi @nzagorchev, thanks for the collaboration.
Do you maybe know when will be the release with this change? It will mean a lot to us to organise some things in this sprint.
Thanks!

Hi @batadamnjanovic,
We plan a release in early January.
Can you update the PR, so I can merge it into master after that?
Thanks

Hi @nzagorchev the PR has been updated (proposed changes) also the branch has been updated with master
Can you check if there is anything more to update/change so the PR can be merged?
Thanks!


Update fabric-sdk-java to 2.2.21

Updates org.hyperledger.fabric-sdk-java:fabric-sdk-java from 2.2.5 to 2.2.21.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.hyperledger.fabric-sdk-java", artifactId = "fabric-sdk-java" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.hyperledger.fabric-sdk-java", artifactId = "fabric-sdk-java" }
}]

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

Superseded by #272.


Update to Serde 0.8

Closes #16

Coverage increased (+0.1%) to 91.946% when pulling dec5df43725b0eeaa349c866ccd06dcc7a419813 on sfackler:serde0.8 into cf1696a9e0d5610581834027df9d733c985fac3c on pyfisch:master.

Thanks and merged.


MQTT Error after upgrading HA Core

Hi,
I'm getting an error in the add-on logs:
 [May 12 19:41:19][mqtt] mosquitto_loop returned 5. trying reconnect
I'm not quite sure how to fix this.

fixed it by updating the credentials, copying those of the mqtt integration configuration.


FocusZone: Use custom focusInStrategy to initialize tabIndex

Context
Slack conversation
Problem
The first focusable element in a focus zone always has tabIndex=0 even if a custom focusInStrategy function is defined. This sometimes causes NVDA to focus the wrong initial element (see https://github.com/github/primer/issues/1114#issuecomment-1421275869)
Solution
If a custom focusInStrategy is defined, use it to initialize the tab indexes.

Looks like this breaks TabNav behavior in Primer React: https://github.com/primer/react/actions/runs/4119409358/jobs/7113036917#step:8:54

I asked James to review in https://github.slack.com/archives/C0FSWLQ0Y/p1675861384658939?thread_ts=1675799238.444799&cid=C0FSWLQ0Y (only accessible to Hubbers).


[twitter] Error(s) while querying API: Could not authenticate you

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
Czech republic
Provide a description that is worded well enough to be understood
Trying download video from X (Twitter) as usual. Checked with cookies from Vivaldi and from Chrome (--cookies-from-browser), but not worked now.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
$ yt-dlp -vU --cookies-from-browser chrome https://x.com/Beaver_63/status/1849381239284797838
[debug] Command-line config: ['-vU', '--cookies-from-browser', 'chrome', 'https://x.com/Beaver_63/status/1849381239284797838']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp [67adeb7ba] (zip)
[debug] Python 3.11.2 (CPython x86_64 64bit) - Linux-6.1.0-26-amd64-x86_64-with-glibc2.36 (OpenSSL 3.0.14 4 Jun 2024, glibc 2.36)
[debug] exe versions: ffmpeg 6.1.2 (fdk,setts), ffprobe 6.1.2, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.11.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.46.0, pyxattr-0.8.1, requests-2.28.1, secretstorage-3.3.3, sqlite3-3.40.1, urllib3-1.26.12, websockets-10.4
[debug] Proxy map: {}
Extracting cookies from chrome
[debug] Extracting cookies from: "/home/jarda/.config/google-chrome/Profile 1/Cookies"
[Cookies] Loading cookie      0/  3065[debug] detected desktop environment: KDE5
[debug] Chosen keyring: KWALLET5
[debug] using kwallet-query to obtain password from KWALLET5
[debug] NetworkWallet = "kdewallet"
[debug] password found
[Cookies] Loading cookie      1/  3065WARNING: failed to decrypt cookie (AES-CBC) because UTF-8 decoding failed. Possibly the key is wrong?
Extracted 1883 cookies from chrome (1174 could not be decrypted)
[debug] cookie version breakdown: {'v10': 0, 'v11': 3065, 'other': 0, 'unencrypted': 0}
[debug] Request Handlers: urllib
[debug] Loaded 1839 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp)
[twitter] Extracting URL: https://x.com/Beaver_63/status/1849381239284797838
[twitter]<PHONE_NUMBER>284797838: Downloading GraphQL JSON
ERROR: [twitter]<PHONE_NUMBER>284797838: Error(s) while querying API: Could not authenticate you; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "/usr/bin/yt-dlp/yt_dlp/extractor/common.py", line 741, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/yt-dlp/yt_dlp/extractor/twitter.py", line 1430, in _real_extract
    status = self._extract_status(twid)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/yt-dlp/yt_dlp/extractor/twitter.py", line 1408, in _extract_status
    status = self._graphql_to_legacy(self._call_graphql_api(self._GRAPHQL_ENDPOINT, twid), twid)
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/yt-dlp/yt_dlp/extractor/twitter.py", line 339, in _call_graphql_api
    return traverse_obj(self._call_api(endpoint, media_id, query=query, graphql=True), 'data')
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/yt-dlp/yt_dlp/extractor/twitter.py", line 329, in _call_api
    raise ExtractorError(f'Error(s) while querying API: {errors or "Unknown error"}')

--cookies-from-browser is currently broken for chromium-based browsers. Use firefox instead of chrome/vivaldi/brave/chromium/etc, or else export your cookies to a text file and use --cookies.
This is the same issue that's being discussed towards the end of #6564, but I agree with mbway's comment that it is not the same issue as the OP of that thread; it is just the same symptom, and it deserves its own issue.

I can't reproduce the error with a successful --cookies-from-browser run, so I'm pretty sure that's the issue here.
If I had to guess what's happening, it's that you have twitter.com and x.com cookies in your browser's cookie storage, and --cookies-from-browser chrome is failing to decrypt the recent (new version) x.com cookies, and succeeding at loading the old/invalidated twitter.cookies. This is causing the yt-dlp extractor's twitter=>x cookie workaround code path to be hit:
https://github.com/yt-dlp/yt-dlp/blob/ec9b25043f399de6a591d8370d32bf0e66c117f2/yt_dlp/extractor/twitter.py#L153-L159
so the extractor proceeds with the assumption that you are logged-in, but twitter rejects the auth token.
We should probably remove this workaround now

OP, can you confirm that it works with firefox or by manually exporting x.com cookies?

OP, can you confirm that it works with firefox or by manually exporting x.com cookies?

Export cookies to .txt file by extension works.


Symlinks to OrbStack's docker CLI tools are not created on restart

Describe the bug
Per the documentation, restarting OrbStack when there are no docker CLI tools installed should result in OrbStack creating symlinks to them in /usr/local/bin and adding ~/.orbstack/bin to my $PATH. Neither of these things occurs.
To Reproduce

Uninstall Docker Desktop.
Quit and restart OrbStack.

Expected behavior
Symlinks to docker, docker-compose, and docker-credential-osx-keychain should be created in /usr/local/bin and/or $HOME/.orbstack/bin should be appended to my $PATH.
Running, e.g., docker info in a fresh shell should work.
Diagnostic report (REQUIRED)
OrbStack info:
Version: 1.5.1
Commit: 4cfac15e1080617c70eb163966e1cb2009dac1c2 (v1.5.1)
System info:
macOS: 14.4.1 (23E224)
CPU: arm64, 8 cores
CPU model: Apple M2
Model: Mac14,2
Memory: 24 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-04-26T06-15-36.276568Z.zip

Screenshots and additional context (optional)
If it's relevant, my shell is fish and OrbStack was installed via homebrew.

If you uninstall Docker Desktop & completely remove OrbStack, the /usr/local/bin symlinks to (OrbStack) Docker are not created when OrbStack is installed again.  Same behavior as described above.
OrbStack 1.5.1
macOS Sonoma 14.4.1 23E224

Not using the dmg but installed with brew but i also followed the docs and removed the docker* files and they are not recreated.
Orbstack Version 1.6.3 (17138)
MacOS 14.5 (23F79)

I've deleted orbstack, 've executed docker context use desktop-linux, links in ~/.docker/bin are not created. Where should they point?

Symlinking behavior has been revamped to be less confusing: ~/.orbstack/bin is always preferred and added to PATH, and optionally /usr/local/bin is also used (necessary to improve compatibility with some apps) if you grant admin privileges.

Released in v1.9.0.


add delimiters for Jinja

ref: http://jinja.pocoo.org/docs/dev/templates/#comments

Fork notice: With the upstream project sitting stale after nearly 8 months since the last activity, 71 outstanding pull requests, no comments from the original developer, and dozens of developers duplicating efforts while scratching their own itches, I've decided to step in and run a fork for a while. Hopefully the original developer will eventually consider picking this plugin up again or adding more maintainers so that the user base doesn't end up fragmented, but for now I would invite anyone interested in the latest updates to consider installing from and contributing pull requests to my fork.
About this PR: I have merged this PR as is. Please consider installing the plugin from alerque/nerdcommenter for this and (so far) over two dozen other updates.

Change of plans. Thanks to scrooloose who has added me as a maintainer to this repo, I'll be going through and taking care of business here instead of in a fork.
It turns out this PR is actually a duplicate of #189 (at least the part of it I cherry picked). That PR had a different comment syntax than you proposed here, with this being an alternate. Can you review and let me know if the current state of affairs is okay? If not please open a PR based against master with the correct syntax and some reasoning why and I'll give it a gander. Thanks for taking the time to contribute @georgexsh.


User Input

Would be nice to get new challenges from the users, so a "formular" where they could leave their ideas... and maybe an e-mail account where we all have access and can recheck the idea.

maybe Users could contribute Content via a Form that creates the task and a moderator must review it before it gets published

we cant really do that with the technology we use right now, but we can give them an email address

or Google-Form


Scaffolded db context's OnModelCreating doesn't call base class

When scaffolding an existing database into an mvc project, I noticed the OnModelCreating function doesn't contain the line base.OnModelCreating(modelBuilder) to call the base function. It seems to create confusions such as this: https://stackoverflow.com/q/53657924/991609

@neville-nazerane This is by-design. OnModelCreating is a "pure" template method, so there is no need to call the DbContext implementation of it. If you derive from another type that may have code there, then calling it on that type usually makes sense, but that's a different scenario.


Cannot change role

I cannot change the role of a given user from 'guest' to 'member'. It seems to be related to 'member' role in particular since I can make it 'moderator' and back to 'guest'.
Here is the traceback when trying to apply changes using CLI:
su zulip -c '/home/zulip/deployments/current/manage.py change_user_role -r "" ******** member'
Traceback (most recent call last):
  File "/srv/zulip-venv-cache/a4e7b645b4c17d42a3bdf95617ff04503a56b6fc/zulip-py3-venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)
  File "/home/zulip/deployments/2024-05-21-11-11-07/zerver/lib/db.py", line 38, in execute
    wrapper_execute(self, super().execute, query, vars)
  File "/home/zulip/deployments/2024-05-21-11-11-07/zerver/lib/db.py", line 21, in wrapper_execute
    action(sql, params)
psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "zerver_usergroupmembersh_user_group_id_user_profi_5b32ea4b_uniq"
DETAIL:  Key (user_group_id, user_profile_id)=(12, 17) already exists.

To give some context, I imported a slack database after creating the realm a few months ago. It is very likely that have deleted some old users that became irrelevant after migration. I don't know if it is related.
Zulip Server and web app version:

[x] Zulip Server 8.0+

@zulipbot claim

@zulipbot It is no consistent with the procedure described here. I'm not a contributor and I'm not planning to become one. I'm just reporting what looks like to be a bug for me, without the intention of fixing it.

The bot was replying to @amenu4aie2, not you, who appears to be a confused potential new contributor.
The exception suggests that the user in question might already have that role? The user group name for the system user group with ID 12 would be quite helpful for debugging this. Might be best for you to stop by chat.zulip.org so we debug in a better convenient place.

@duburcqa are you able to provide the input requested above so we can help you debug this?
I expect this issue is the result of some sort of database corruption for your system, but I'd like to investigate, since we might be able to make Zulip more robust to whatever root problem occurred here.
@sahil839 FYI, since you might have ideas on how a system could have gotten into this situation.

I checked the code and cannot find any reason for it to happen unless the database was not modified manually. But I might be missing something. Knowing the group name might give some idea.

Closing as I don't think we have a way to reproduce this and it seems impossible from the algorithms without manual changes.


[Task] Send database synchronisable idempotent payment

Task
Contributors are able to complete this task and earn thenewboston coins.  Check out the labels to learn how much you can earn for contributing by completing this task.  Please make sure to be honest if you wish to contribute by saying you can't finish this and we can just un-assign you with no harm done!  There is no point in delaying tasks from being completed for miscommunication!

Overview
The PaymentHandler allows us to easily send TNBC. What if we need to synchronise with a database?
Possible approaches with the existing PaymentHandler:

First update the database. Then send the money. Oh no, the database was updated but then sending failed because the code crashed or the bank went offline. Now the database thinks money was sent but it wasn't!
First send the money. Then update the database. Oh no, we sent the money but the database went offline so now it thinks that we didn't send the money.

Solution:

Create the transaction (and this API has to expose the transaction before it's sent)
Store the transaction in the database, marked as not sent
Broadcast the transaction. If the database goes down or the code fails before the transaction is broadcast, that's fine- we'll just try broadcasting again
Now we're 100% sure that step 3 is complete, mark the transaction as complete in the database. If this step fails, we're back at step 3 but that won't ever result in double payment- because the same transaction can't execute twice. Eventually the payment will succeed (or the database will show that the payment wasn't successful)

With this solution, the database state is correct at all points in time- no matter what goes wrong.
Behavior
The PaymentHandler API should expose the abilities to create a transaction and expose the transaction. It should also expose a method to send a transaction (that the PaymentHandler created) to the bank.
const {bank, transaction} = PaymentHandler.createTransaction(account, targetAddress, amount);

// First store transaction and mark payment as sent all in one database transaction (atomically)
// If the next line fails, no payment is recorded as having been sent
await database.storeTransaction(transaction);

// Now we can try to broadcast it
// If the next line fails, that's ok because we can try again later and it won't result in double or missed payments
PaymentHandler.broadcastTransaction(bank, transaction);

// Now we're 100% sure that the transaction was sent
// If the next line fails, we'll end up trying to broadcast again but that's fine, it's the same transaction with each attempt
await database.markTransactionAsSent(transaction);

Please ask for this task to be assigned to you and earn and its sweet reward 😉
Remember to include your account number in your PR description for us to pay you 💰

So instead of having one method, sendCoins we need to split that up into two methods, createTransaction and broadcastTransaction ?

@AbhayAysola yep, this would make it so much easier for users of this library to achieve full database/blockchain consistency

Yup, sounds pretty straightforward. Can I work on this? @Kycermann

Yup, sounds pretty straightforward. Can I work on this? @Kycermann

Sure

IMO you should have a Transaction class that contains the information on a single transaction (sender account key pairs, receiver account number + amount) that can be held locally, used within PaymentHandler.sendCoins(), and still implement the PaymentHandler.dispatchTransaction of such.  It matches the OOP vibe, and although it may require another import field, it makes more sense in my eyes to allow transactions without having to deal with the PaymentHandler.createTransaction method for account managers, websites, ect.

IMO you should have a Transaction class that contains the information on a single transaction (sender account key pairs, receiver account number + amount) that can be held locally, used within PaymentHandler.sendCoins(), and still implement the PaymentHandler.dispatchTransaction of such. It matches the OOP vibe, and although it may require another import field, it makes more sense in my eyes to allow transactions without having to deal with the PaymentHandler.createTransaction method for account managers, websites, ect.

That makes a lot of sense, I'll work on that now.

Should I make a new file for the Transaction class or do it inside the same one? @sno2

I'm not on the team anymore, so I dunno who's actually leading the project...

I'm not on the team anymore, so I dunno who's actually leading the project...

Hmm okay, I'll just wing it then 😅

I added that, let me know if it looks good to you. I'll ask around on Slack to see who is the lead now.

Looks good to me.


Debug broken after fixing (115818)

VSCode Version: 1.53.0 (user setup)
OS Version: W10 Pro 20H2 build 19042.804

Steps to Reproduce:

Encounter and fix the Failed to connect to the remote extension host server issue
Try to debug a PHP application
In some cases, the container won't be able to resolve the vsCode host IP address, and when it does, debug would be broken, plenty of "error evaluating code", and breakpoints not reached.
xdebug.log and the debug console look normal.
Stopping the containers, pruning networks, rebuilding, and restarting the container would fix the debug most of the time.
Also restarting the WSL engine would fix the issue, but after a couple of debugs, or container restarts, debugging will get broken again.

Does this issue occur when all extensions are disabled?:
Lol, No, if the debug extension isn't installed, the extension won't fail
This was working flawlessly 24 hours ago, debug would get connected every time, and I could even get inside third party libraries without a problem, today I have luck if I can f11 into a method.
More details on this stack overflow post

@camicase82 you said

"This was working flawlessly 24 hours ago"

Since you are using VS Code stable, nothing could have changed on our side.
Did you update the php extension?

Hi @weinand, thanks for your response, it was working before installing a vsCode update, the first issue I encountered was related to this one, and after following the steps described in that thread, I got vsCode with the issues described on this post

And the problem still reproduces in the latest VS Code 1.53.2 (released a few hours ago).

Hi there, I just updated and tested, and now it would connect out of the box, but debug doesn't do much, it just stops into the first breakpoint and breaks from there, weird thing is that when it gets me to the first breakpoint, and I try to f11 into the method, it takes me to a totally unrelated class, and later to a null pointer exception

Please file this issue against the php extension.


Force the response type to number when Scalar is selected

This addresses BONNIE-879.

Who is authoring the test for this? Is it manual or automated?


Cannot edit content

I’m not sure if I miss something obvious, but I’m unable to actually add/edit content on Nuxt 3: contenteditable stays always false.
I followed your example in the docs and also had a look at https://github.com/wobsoriano/lexical-vue/issues/4, but I can’t seem to get it work neither in my project nor in a sandbox (https://stackblitz.com/edit/nuxt-starter-bk7zmb). Any idea? Is lexical-vue compatible with lexical 0.8.1?

Also happened to me in vue 3

as @toniengelhardt , you have to add editable: true. Thanks!


CHEF-4381 Chef::Provider::Service::Invokercd does not work at all

I've rewritten invoke provider, it passes all tests. However I'm not sure what to do with determine_current_status! method. I've had to change one line there, any suggestions are welcome.
$ bundle exec rspec spec/unit/provider/service/invokercd_service_spec.rb
ProductName:	Mac OS X
ProductVersion:	10.9.1
BuildVersion:	13B42
Run options:
  include {:focus=>true}
  exclude {:provider=>#, :arch=>#, :requires_root_or_running_windows=>true, :requires_root=>true, :ruby_gte_20_only=>true, :ruby_20_only=>true, :ruby_18_only=>true, :selinux_only=>true, :system_windows_service_gem_only=>true, :solaris_only=>true, :windows_domain_joined_only=>true, :windows32_only=>true, :windows64_only=>true, :win2k3_only=>true, :windows_only=>true, :volatile=>true, :external=>true}

All examples were filtered out; ignoring {:focus=>true}

Chef::Provider::Service::Invokercd load_current_resource
  should create a current resource with the name of the new resource
  should set the current resources service name to the new resources service name
  should return the current resource
  when the service supports status
    should run '/usr/sbin/invoke-rc.d service_name status'
    should set running to true if the status command returns 0
    should set running to false if the status command returns anything except 0
    should set running to false if the status command raises
  when a status command has been specified
    should run the services status command if one has been specified
  when the node has not specified a ps command
    should raise error if the node has a nil ps attribute and no other means to get status
    should raise error if the node has an empty ps attribute and no other means to get status
  when we have a 'ps' attribute
    should shell_out! the node's ps command
    should set running to true if the regex matches the output
    should set running to false if the regex doesn't match
    should raise an exception if ps fails
  when starting the service
    should call the start command if one is specified
    should call '/usr/sbin/invoke-rc.d service_name start' if no start command is specified
  Chef::Provider::Service::Invokercd stop_service
    should call the stop command if one is specified
    should call '/usr/sbin/invoke-rc.d service_name stop' if no stop command is specified
  when restarting a service
    should call 'restart' on the service_name if the resource supports it
    should call the restart_command if one has been specified
    should just call stop, then start when the resource doesn't support restart and no restart_command is specified
  when reloading a service
    should call 'reload' on the service if it supports it
    should should run the user specified reload command if one is specified and the service doesn't support reload

Finished in 0.04888 seconds
23 examples, 0 failures

Easier way to do this would be to only duplicate the define_resource_requirements method from the init command (including the call to shared_resource_requirements) and then modify it for invoke-rc.d and not call super -- just override it completely.  Copy/paste would be fine here, it'd be much less duplication that what is in this PR.

Hi. Your friendly Curry bot here. Just letting you know that all commit authors have become authorized to contribute. I have added the "Signed CLA" label to this issue so it can easily be found in the future.

closing due to inactivity.


Quote filename

Instead of cleaning up characters in the filename, quote it.
This solves the case where you have a filename with an ampersand in it,
which previously caused the incorrect file to attempt to be edited, and
then backgrounded that, since the shell captured the symbol.

LGTM

Thanks!


Optimize taxonomy queries.

Description
Writing this here to check if this is wanted behaviour or not. The issue is was facing is that on a project whit 100+ tags i saw the total amount of page queries reflecting that amount. Diving deeper into where these queries where coming from i traced it back to the TermQueryBuilder. In the method applyCollectionAndTaxonomyWheres that is used when retrieving page taxonomies, a map is run over all taxonomies to check when they are used on the page. This creates, in my case, 134 count queries being fired on every page request. The result is only cached in the blink request cache.
The current query:
$query = TermModel::where('taxonomy', $taxonomy)
    ->select('slug')
    ->get()
    ->map(function ($term) use ($taxonomy) {
        return Entry::query()
            ->whereIn('collection', $this->collections)
            ->whereJsonContains('data->'.$taxonomy, [$term->slug])
            ->count() > 0 ? $term->slug : null;
    })
    ->filter()
    ->values();

The reason is, probably, that someone can configure the Entries to be stored with the file driver.
My suggestion would be to check what entry driver is configured and based on that opt for a join to come to the result reducing the 133 queries to 1.
Suggestion:
if (config('statamic.eloquent-driver.entries.driver', 'file') == 'eloquent') {
    $query = TermModel::where('taxonomy', $taxonomy)
        ->join('entries', function (JoinClause $join) use ($taxonomy) {
            $join->on('entries.collection', '=', 'entries.collection')
                ->where('entries.collection', $this->collections)
                ->whereRaw("json_contains(`entries`.`data`, concat('[\"',`taxonomy_terms`.`slug`,'\"]'), '$.\"$taxonomy\"')");
        })
        ->select('taxonomy_terms.slug')
        ->get();
} else {
    $query = TermModel::where('taxonomy', $taxonomy)
        ->select('slug')
        ->get()
        ->map(function ($term) use ($taxonomy) {
            return Entry::query()
                ->whereIn('collection', $this->collections)
                ->whereJsonContains('data->'.$taxonomy, [$term->slug])
                ->count() > 0 ? $term->slug : null;
        })
        ->filter()
        ->values();
}

I must admit that this join is a bit funky, especially the on statement 'entries.collection', '=', 'entries.collection' but it gets the job done. Definitely open to suggestions to optimize or replace it with something better.
But in the end the N+1 query issue could definitely be solved.

I agree the query could be improved but I'm not sure this is the right approach, as it's too opinionated. For example, what if someone has their own repository they are using thats not files or eloquent, or if they have bound their own models.
I would like to see pivot table between terms and entries - that would be the right way to fix this I feel.

Your current code only works for your specific taxonomy names, it would need to be made generic. It's possible to do, but as I said it's not the right approach here.

Yes sorry I meant table names. If you want to open a PR with the changes and some tests then I can review it properly.

I have a draft PR in the works see #376 .
$enrtiesTable = (new EntryModel)->getTable();
$termsTable = (new TermModel)->getTable();
$query = TermModel::where('taxonomy', $taxonomy)
    ->join($enrtiesTable, function (JoinClause $join) use ($taxonomy, $enrtiesTable, $termsTable) {
        // TODO: make Expression db driver independent
        $columnExpression = new Expression("JSON_QUOTE({$termsTable}.slug)");
        $join->on("{$enrtiesTable}.collection", '=', "{$enrtiesTable}.collection")
            ->where("{$enrtiesTable}.collection", $this->collections)
            ->whereJsonContains("{$enrtiesTable}.data->{$taxonomy}", $columnExpression);
    })
    ->select('taxonomy_terms.slug')
    ->pluck('slug');

The query now uses the dynamic table names. Problem is in the Expression that is now using JSON_QUOTE. First i was using CONCAT to get the joined slug value in a manner that it could be parsed by JsonContains. But using JSON_QUOTE felt a bit cleaner. However using either JSON_QUOTE or CONCAT is assuming the DB driver is MySQL. And the implementation should be able to support, at least, the drivers used by Laravel.
I'll come back to it when i have some more time to put into finding an alternative to the current Expession.

You can get the engines grammar and wrap the column- see: https://github.com/statamic/eloquent-driver/blob/01b187ddb984b95d4ae3f7abfea7108edcd1999f/src/Entries/EntryQueryBuilder.php#L60

The wrapping was not the issue, but it is still good to do of course, the issue is with the JSON_QUOTE method, that seems to behave differently in sqlite. Might also be the difference in the resulting queries.
MySQL
select `taxonomy_terms`.`slug` from `taxonomy_terms`
inner join `entries` on `entries`.`collection` = `entries`.`collection`
and `entries`.`collection` in (?)
and json_contains(`entries`.`data`, JSON_QUOTE(`taxonomy_terms`.`slug`), '$."tags"')
where `taxonomy` = ?

SQLite
select "taxonomy_terms"."slug" from "taxonomy_terms"
inner join "entries" on "entries"."collection" = "entries"."collection"
and "entries"."collection" in (?)
and exists (select 1 from json_each("entries"."data", '$."tags"') where "json_each"."value" is JSON_QUOTE("taxonomy_terms"."slug"))
where "taxonomy" = ?

With json_quote works in MySQL.
$columnExpression = new Expression("json_quote({$wrappedColumn})");

Without json_quote passes the tests using SQLite.
$columnExpression = new Expression("{$wrappedColumn}");

I could conditionally add the json_quote when the driver is mysql, but I don't prefer that approach.

With conditionally checking for the driver and making the required adjustments the query now looks likt this:
$entriesTable = (new EntryModel)->getTable();
$termsTable = (new TermModel)->getTable();
$query = TermModel::where('taxonomy', $taxonomy)
    ->join($entriesTable, function (JoinClause $join) use ($taxonomy, $entriesTable, $termsTable) {
        $wrappedColumn = $join->getGrammar()->wrap("{$termsTable}.slug");
        $column = match (DB::getDriverName()) {
            'mysql' => "json_quote({$wrappedColumn})",
            'pgsql' => "to_jsonb({$wrappedColumn}::text)",
            default => $wrappedColumn,
        };
        $columnExpression = new Expression($column);
        $join->on("{$entriesTable}.collection", '=', "{$entriesTable}.collection")
            ->whereIn("{$entriesTable}.collection", $this->collections)
            ->whereJsonContains("{$entriesTable}.data->{$taxonomy}", $columnExpression);
    })
    ->select('taxonomy_terms.slug')
    ->pluck('slug');

mariadb supports the same syntax as mysql so i can combine those. The one missing in this setup is sqlsrv.
Other point to note is that the current testing setup only tests in sqlite so currently all checks pass. But this setup would probably break with an sqlsrv driver.
Still need to test and implement the required changes for that driver, but am curious to your views regarding this approach. As a setup using a driver that is not in the match list would break. Because of that i'm not sure if this would be something that would be merged in the module.

I appreciate the work but I think we need to find a way without the match statement.
We do some conditional checking elsewhere but it’s on a standard sql function that SQLite doesn’t support.
there will be a way of doing this using laravel methods. We just need to find it.

The other bigger issue is whereJsonContains() does an exact match, not an any match. So the current approach will actually not contain the correct results.
for example an entry has terms one, two, three, then whereJsonContains('term_field', ['one', 'two']) would not return that entry.
the SQL would need to get the individual slugs then do a orWhereJsonContains() on each of them.
As you can see its not as simple as it first looks.

Gave it a spin with SQLite, but got the same execption that i had with the join + concat :
Illuminate\Database\QueryException: SQLSTATE[HY000]: General error: 1 no such function: CONCAT (Connection: testing, SQL:

select "slug" from "taxonomy_terms" where "taxonomy" = tags and exists (select 1 from "entries" where exists (select 1 from json_each("data", '$."tags"') where "json_each"."value" is CONCAT('"', taxonomy_terms.slug, '"'))))

I do like the whereExists approach tho, it mimics the behaviour of the generated sqlite query.
The problem with laravels whereJsonContains method is that it not "natively" accepts dynamic values. So it's build with static values in mind. This can be circumvented by using an expression. But then we run into the issue of having the value be "json parsable" 🤔

True, I also used it on the initial suggestion, but noticed the exception being thrown while running the tests. I looked at it with a colleague of mine and we think it might be due to the version of sqlite that is used by the tests. I also tried the upper and lower case formatting.


[CLI]: wandb.Api().runs() is not synchronous?

Describe the bug

Hi,
I'm trying to download some data on my runs using the wandb API and am getting 0 results. Normally I'd assume this is a typo somewhere, but when I re-run the same code using a debugger (pydev) and set a breakpoint on the print(...), I get the expected results. From my understanding the API is synchronous, so this is a bit surprising. Below is the code snippet I used:

import wandb
wandb_entity = '<redacted>'
wandb_project = '<redacted>'

api = wandb.Api()
query_response = api.runs(f'{wandb_entity}/{wandb_project}')
runs = query_response.objects
print(f'Fetched run data from wandb. Found {len(runs)} matching runs.')

This query should match 407 runs and due to pagination, return the first 50. With the debugger + breakpoint I get the expected outcome:
Connected to pydev debugger (build 231.8109.197)
Fetched run data from wandb. Found 50 matching runs.

Process finished with exit code 0

Without it, I get no results:
Fetched run data from wandb. Found 0 matching runs.

Process finished with exit code 0

If it's any help, below is the output of print(vars) for the case with no results:

{'entity': '<redacted>', 'project': '<redacted>', 'filters': {}, 'order': '-created_at', '_sweeps': {}, '_include_sweeps': True, 'client': <wandb.apis.public.RetryingClient object at 0x7fafc3f6a610>, 'variables': {'project':'<redacted>' 'entity': '<redacted>', 'order': '-created_at', 'filters': '{}'}, 'per_page': 50, 'objects': [], 'index': -1, 'last_response': None}

Additional Files
No response
Environment
WandB version: 0.15.1
OS: Ubuntu 20.04.6 LTS
Python version:  3.9.6
Versions of relevant libraries: N/A
Additional Context
No response

Maybe also worth mentioning is that I have 4 active runs that push data maybe once per minute, but this should be well below the rate limit.

Ah, so it was lazy evaluation. Thanks @thanos-wandb!
Adding the line does fix the issue for me.
dummy_var = query_response[0]

Thanks @NiklasZ for the confirmation and closing this one. Please feel free to reach out again if you had any other questions or issues. Have a great day!


Clear temporary canvas on JpegDecode handler

Configuration:

Web browser and its version: Safari desktop 12.0 / iOS 12
Operating system and its version: macOS Mojave / iOS 12
PDF.js version: 2.0.943
Is a browser extension: no

Steps to reproduce the problem:

Display several bas64 pdf with many pictures
Total canvas memory use exceeds the maximum limit (224 MB). error appear.

What is the expected behavior? (add screenshot)
What went wrong? (add screenshot)
On JpegDecode handler, temporary canvas is created to get the data on loaded picture. Canvas was not clear after and stay in memory. We can fix it by doing a ClearRect on this canvas. (line 9273)

Nice find!


When editor is editable with big code the edition turn slow

Hi, Great job with that editor. I'm using with liquid templates and json data.
I'm working in inline template liquid render, but with big json content edit in line is very slow.
You can see it in
https://codesandbox.io/s/00rxvx91yv
or
https://00rxvx91yv.codesandbox.io/
test delete some few chars or write some news
I think an option to update every n keydowns... or update in demand with an action.. I let you consider best.
Thank you.

Hi, thanks! glad you liked it :)
As I mention in the README. This editor is not intended to use with big chunks of input. At least with the current implementation.
Few things came to my mind:

Use/make something like react-prism-renderer, so we won't have to re-render everything when the code is changed. But I'm thinking that won't solve the issue either because your input generates huge output. Rendering that much output should take time ^^.

use web workers? but I'm not sure if the slow part is when prism highlights or when Vue renders the output.

I guess rendering only the parts which are in the viewport would help 🤔

Update:
Tried debouncing, it works better.

You are right, in this moment the editor is good for normal size contents, the big contents is a goal in the future, ideal if you get render only the parts wich are in edition. I'm following you in your advance.  :)

Hi, I just published the new version so you should be able to debounce:

use new version<EMAIL_ADDRESS>
// import debounce from lodash
import debounce from "lodash/debounce"

// your current `changeJson` method
methods:{
	changeJson: function(plain) {
		this.currentJsondata = plain;
    }
}
// change it like below:
methods:{
	changeJson: debounce(function(plain){
		this.currentJsondata = plain;
	}, 2000)
}

It's not going to make a huge difference but should be noticeable ^^.
Good luck :)


Support FormData polyfill

There are many common scenarios for raising issues against the polyfill service.  Is your issue one of these?

Please add polyfill FormData

https://github.com/jimmywarting/FormData
Depend on Blob's
To support IE9 and lower you need eligrays newly updated blob.js

Only possible if someone is willing to create a PR. #1205


Setting material to each Face3 using Resources

Hi, I'm trying to render a list o meshes, that come in triangular 3D-faces.
This faces can have different materials in each one.
For now, I'm getting first face's material's id and applying it to the whole group (object3d) through material resource (previously defined).
<object3D>
 {
  meshList ?
   meshList.map(obj => {
    let arrVertices = [];
    let arrFaces = [];
    obj.meshList.forEach(mesh => {
     arrVertices.push(new THREE.Vector3(mesh.v1.x, mesh.v1.y, mesh.v1.z));
     arrVertices.push(new THREE.Vector3(mesh.v2.x, mesh.v2.y, mesh.v2.z));
     arrVertices.push(new THREE.Vector3(mesh.v3.x, mesh.v3.y, mesh.v3.z));
     let normal = new THREE.Vector3(mesh.n.x, mesh.n.y, mesh.n.z);
     const lenArrVer = arrVertices.length;
     let face = new THREE.Face3(lenArrVer - 3, lenArrVer - 2, lenArrVer - 1, normal);
     arrFaces.push(face)
    });
    return (
     <mesh key={obj.id}>
      <geometry faces={arrFaces} vertices={arrVertices}/>
      <materialResource resourceId={obj.meshList[0].materialId}/>
     </mesh>
     )
   })
  })
 :
  null
 }
</object3D>

Is there a way of setting those individual materials to each face?
Maybe the right question would be: Is it possible to go lower (into Face3 level) and still use materialResource?
Thanks!
(I'm boarding just now here.... hope I can contribute somehow soon...)

Closing this.
Ended generating each mesh w/ only 1 face and its corresponding vertices, normal and material. Then, I grouped the related faces under a <group> element.
Tks,


Issue170

What changes does this PR introduce?
Adding changes needed to compile seaice_grwoth_adjointable
What is the current behaviour?
seaice_grwoth_adjointable can not be compiled
What is the new behaviour
Further test is going to be needed to examine the adjoint output but compilation should not be an issue.
Does this PR introduce a breaking change?
Should not break anything.
Other information:
Suggested addition to tag-index
(To avoid unnecessary merge conflicts, please don't update tag-index. One of the admins will do that when merging your pull request.)

Should follow #223

I thought the improve code would be tested first in experiment "lab_sea". Why do we have an other
new experiment here instead of an update of lab_sea/code_ad/ and lab_sea/input_ad/ files ? This make it
less obvious to see what has changed.

@ArashBigdeli  I talked to Ian, and now that the adjointable version of thermodynamics seaice has been
merge in (PR #242), it might be easier (and cleaner) to re-start a new PR for the update of Adjoint lab_sea experiment. I think if we don't create a new experiment but instead update lab_sea  the number of changes might not be too large. What is your opinion ? I also see little changes in ecco_cost_init_barfiles.F ; these have not be added yet in PR #242, so would need to be added if necessary.

@jm-c I will update the lab_sea experiment.But before I do that, I think there is a problem in my lab_sea experiment. The sensitivities do not make sense to me. I am trying to find what causes the faulty sensitivities going from 1D to lab_sea.
ps. I think there is a bug in ecco_cost_init_barfiles.F, that is separate from this experiment.

@ifenty I opened a separate issue #253 and made a PR for that. The problem with sensitivities in lab sea is not related to that issue.

@ArashBigdeli can you be more specific about the 'problem with sensitivies in lab sea' that you are finding?  do you find the problem with the seaice_ice_growth_adx.F routines now merged?

closing this

Code changes have been merged elsewhere.


Friend and Outfit Request Text Wrapping

When in desktop mode, the text on friend and outfit requests wrap mid-word. When in mobile mode, the text on friend and outfit requests wrap according to the width of the box, which changes according to the width of the window. This may also cause the text to wrap mid-word.

Applies to all confirmation boxes.


can not log in oscm-app-vmware

I have installed OSCM.  I logged in oscm-app, but it is not possible to log in oscm-app-vmware. It constantly asks for username and password.

Hi @Ivaylo68Ma
Please check the section "controller settings" in your var.env, file which credentials you have given there.
Example:
CONTROLLER_ORG_ID=PLATFORM_OPERATOR
# Numerical user key of the controller administrator
# Please set to 1000 if you do not use the sample data
# Please set to 10000 if you  use the sample data (-e SAMPLE_DATA=true at oscm-d                                                                                eployer call)
CONTROLLER_USER_KEY=1000
# User name of the controller administrator
# Please set to administrator
CONTROLLER_USER_NAME=administrator
# Password of the controller administrator
# Please set to admin123
CONTROLLER_USER_PASS=admin123

In case you use 'administrator' you need to enable the organization and user roles. See here.

Hi Lorenz,
Thank you for the responce! these are the setting in the var.env file:
#######################
Controller settings
#######################
Organization ID for controller authentication
Please set to PLATFORM_OPERATOR if you do not use the sample data
Please set to 959c9bf7 if you use the sample data (-e SAMPLE_DATA=true at oscm                                                          -deployer call)
CONTROLLER_ORG_ID=959c9bf7
Numerical user key of the controller administrator
Please set to 1000 if you do not use the sample data
Please set to 10000 if you  use the sample data (-e SAMPLE_DATA=true at oscm-d                                                          eployer call)
CONTROLLER_USER_KEY=10000
User name of the controller administrator
Please set to administrator
CONTROLLER_USER_NAME=administrator
Password of the controller administrator
Please set to admin123
CONTROLLER_USER_PASS=admin123
Just to clarify - I can log in https://X.X.X.X:8081/oscm-app but it doesn't allow me to log-in https://X.X.X.X:8081/oscm-app-vmware. Repeatedly asks me for username and password.

Hi @Ivaylo68Ma
Please fix the value of CONTROLLER_USER_KEY in your var.env. This should be set 1000 in your case.

Hi Lorenz,
Yes, it is fine now.
Thank you!


Improve Crystal highlight

Add some missing keywords
Add attribute syntax (like @[Link("m")])
Fix some bugs

Can you please add some markup tests for Crystal?

I added markup tests.

Thanks!


Doesn't support scaleY

Hi, I tried to animate the scaleY using Animator API but I get the following error:
W/PropertyValuesHolder: Method set() with type float not found on target class class me.zhanghai.android.materialprogressbar.IndeterminateHorizontalProgressDrawable$RectTransformX
Code is:
PropertyValuesHolder scaleY = PropertyValuesHolder.ofFloat(View.SCALE_Y, from, to);         ValueAnimator valueAnimator = ObjectAnimator.ofPropertyValuesHolder(progressBar, scaleY); valueAnimator.start();

Closing as it does support scaleY, just that I was triggering the animation code too often.


[STORM-1521] When using Kerberos login from keytab with multiple bolts/executors ticket is not renewed

When using a topology that has multiple executors in same process or multiple HBase bolts the tickets do not get renewed. After the ticket expiration the bolts are no longer able to write/read from HBase. That is caused by a login from keytab for every thread, this fixe ensures that there will only be one login per process.

@dbahir patch looks good to me. Can you squash multiple commits into single commit. Thanks

@dbahir I think this issue will be in storm-hdfs as well https://github.com/apache/storm/blob/master/external/storm-hdfs/src/main/java/org/apache/storm/hdfs/common/security/HdfsSecurityUtil.java . Can you add changes there as well.

Squashed the commits.
Took a look at the HDFS bolt code path there is a somewhat different and requires additional testing. Created https://issues.apache.org/jira/browse/STORM-1535 to handle it, will create a separate pull request

+1. @Parth-Brahmbhatt can you review this as well.

@dbahir Does the legacy provider take care of logging in only once internally?

Not sure how i missed that you were creating a singleton :-). +1.


[Request] Compatablity with BetterTweetDeck

This extension is amazing, but it doesn't work with BetterTweetDeck, which I used a LOT of features from.
Just a simple request, that is all.

See #2 - "You have to ask these extension developers to add support for this, I can't add it myself"

@eramdam Could this be a possibility?

Posting my reply here for visibility.

Maybe someone could port it themselves.
I don't expect the legacy endpoints to last long, but BetterTW was so involved in my usual workflow that it's so strange without it.
Like, did you know Deck didn't support pasting images natively???

Maybe someone could port it themselves.

I was planning on taking a look at myself if these endpoints aren't removed in the next day or two.

Would love it! I'm on this trainwreck till the very end! 😭

I've made BetterTweetDeck fork that works with this extension, see https://github.com/dimdenGD/BetterTweetDeck/


missing export of MultiFactorSession

missing export of MultiFactorSession

It was added in yesterday's release https://pub.dev/packages/firebase_auth/changelog


Fix invalid folding

I had the (bad)luck to get "\r\n" cut into two lines.
So it came with strange result (invalid VCF):
\r
\r
\n
\n

""

Thanks a lot


Code completion error

I press the shortcut for code completion (by the way, why isn't it something simpler like Tab?) and TextMate freezes up for about 60 seconds, then gives me the following error message:
Failure running “Complete”.
/usr/local/bin/multirust: fork: Resource temporarily unavailable
multirust: assert_nz multirust_dir
Complete:31: undefined method `exit_show_tool_tip' for TextMate:Module (NoMethodError)

What's going on here?
NB: my environment consists of a simple script /usr/local/bin/racer which contains:
#!/bin/bash

multirust run override racer "$@"

This runs fine from the command line.

I press the shortcut for code completion (by the way, why isn't it something simpler like Tab?)

I'm not sure, you'll have to ask the Textmate developers that -- all Textmate bundles use esc for completion.
Have you set the RUST_SRC_PATH variable in your textmate preferences?
I've been meaning to set up multirust anyway, I'll see if I can reproduce.

Fair enough. It seems to be Alt+Esc on my system.
Yeah, do please let me know how it works for you, with multirust.

On 29 Dec 2015, at 01:34, Carol (Nichols || Goulding<EMAIL_ADDRESS>wrote:
I press the shortcut for code completion (by the way, why isn't it something simpler like Tab?)
I'm not sure, you'll have to ask the Textmate developers that -- all Textmate bundles use esc for completion http://manual.macromates.com/en/working_with_text#completion.
Have you set the RUST_SRC_PATH variable in your textmate preferences?
I've been meaning to set up multirust anyway, I'll see if I can reproduce.
—
Reply to this email directly or view it on GitHub https://github.com/carols10cents/rust.tmbundle/issues/16#issuecomment-167691001.

@alexreg The tab key can't be used for completion because it triggers snippets and of course inserting a tab character. Escape was chosen as the next best for completion, and option-escape is the secondary if two completion commands need to exist simultaneously.

That’s fair enough, I suppose. Other editors (e.g. Visual Studio) manage to differentiation indentation tabs from tab-completion tabs, but the snippets feature does complicate things.

On 29 Dec 2015, at 04:08, Michael Sheets<EMAIL_ADDRESS>wrote:
@alexreg https://github.com/alexreg The tab key can't be used for completion because it triggers snippets and of course inserting a tab character. Escape was chosen as the next best for completion, and option-escape is the secondary if two completion commands need to exist simultaneously.
—
Reply to this email directly or view it on GitHub https://github.com/carols10cents/rust.tmbundle/issues/16#issuecomment-167715312.

Hi @alexreg, I'm sorry I've taken so long to dig into this. I'm able to get the hanging behavior you describe using only the command line, without textmate... could you take a look at what I'm doing and let me know if you can reproduce what I'm seeing, and if not, what is different between your environment and mine?
I have this multirust installed:
$ multirust --version
multirust 0.7.0 (f3974f2b9 2015-12-14 14:49:29 +0000)

I have the rust source in /Users/carolnichols/rust/rust/src and RUST_SRC_PATH set in my terminal env:
$ echo $RUST_SRC_PATH
/Users/carolnichols/rust/rust/src

I used cargo install in multirust beta to install racer:
$ multirust run beta cargo install racer
...
$ which racer
/Users/carolnichols/.multirust/toolchains/beta/cargo/bin/racer

I can get some completions from racer on the command line directly using multirust run override at this point:
$ multirust run override racer complete std::io::B
MATCH BufReader,47,11,/Users/carolnichols/rust/rust/src/libstd/io/buffered.rs,Struct,pub struct BufReader<R> {
MATCH BufWriter,299,11,/Users/carolnichols/rust/rust/src/libstd/io/buffered.rs,Struct,pub struct BufWriter<W: Write> {
MATCH BufRead,1252,10,/Users/carolnichols/rust/rust/src/libstd/io/mod.rs,Trait,pub trait BufRead: Read {
MATCH Broadcast,1479,11,/Users/carolnichols/rust/rust/src/libstd/io/mod.rs,Struct,pub struct Broadcast<T, U> {
MATCH Bytes,1612,11,/Users/carolnichols/rust/rust/src/libstd/io/mod.rs,Struct,pub struct Bytes<R> {

Then I put your script on my path, with the name script-racer for the moment:
$ which script-racer
/Users/carolnichols/bin/script-racer
$ cat /Users/carolnichols/bin/script-racer
#!/bin/bash

multirust run override racer "$@"

And I can run that and get completions:
$ script-racer complete std::io::B
MATCH BufReader,47,11,/Users/carolnichols/rust/rust/src/libstd/io/buffered.rs,Struct,pub struct BufReader<R> {
MATCH BufWriter,299,11,/Users/carolnichols/rust/rust/src/libstd/io/buffered.rs,Struct,pub struct BufWriter<W: Write> {
MATCH BufRead,1252,10,/Users/carolnichols/rust/rust/src/libstd/io/mod.rs,Trait,pub trait BufRead: Read {
MATCH Broadcast,1479,11,/Users/carolnichols/rust/rust/src/libstd/io/mod.rs,Struct,pub struct Broadcast<T, U> {
MATCH Bytes,1612,11,/Users/carolnichols/rust/rust/src/libstd/io/mod.rs,Struct,pub struct Bytes<R> {

As soon as I move your script from script-racer to just racer, however, running racer from the command line hangs for me:
$ mv ~/bin/script-racer ~/bin/racer
$ which racer
/Users/carolnichols/bin/racer
$ racer complete std::io::B
[hangs forever]

Perhaps the script is calling itself?

Hmm, I just tried this again and completion seems to work fine when I press Esc, but freezes when I press Alt+Esc (I then have to press Ctrl+C to unfreeze, i.e. cancel the shell script).

Hi @carols10cents. Any update on this? Has the project been abandoned, perhaps?

Nope, it's not abandoned, I just haven't had time to spend on this lately. Feel free to fork and improve if you want though!

No worries. I don't have the time either, I'm afraid. But I'd be happy to test updates. 😊


[Bitcoin] Inscription burn

Bitseed's split and merge operations rely on the inscription burn mechanism
Related Issues and PR:
https://github.com/ordinals/ord/issues/1333
https://github.com/ordinals/ord/pull/3437

Bitseed protocol operation document:
https://bitseed.pro/protocol_operation

   struct InscriptionCharm has store, copy, drop {         value: u32     }


Fix center state for arrow in collapse fix

Hello!
Looks like CSS attributes were mistakenly applied to another element.
The arrow was especially noticeable off-center at 125% and 175% zoom.
Showcase:
https://user-images.githubusercontent.com/2076748/227840869-03d82806-7957-41f6-934e-9e77be905529.mp4

wen?

At the moment, when using 125% and 175% zoom in the browser, it can be observed that the chevron is not centered:

wen merge?


Exception Handling

I aim to create content on exception handling to provide a comprehensive understanding of the topic.

@david20030  go ahead

I have added content to provide a comprehensive understanding of Exceptions in Java. I have also raised a pull request #106  for review.


AKS Backup scenario in Terraform

This scenario shows how to create a backup of an existing AKS cluster and then use it to restore to a new cluster.
Steps to follow

Deploy the AKS Landing Zone by following the steps in folder Scenarios/AKS-Landing-Zone.
Provide the required input parameters in the Scenarios/AKS-Backup/terraform.tfvars file.
Run the current Terraform templates to create a backup of the AKS cluster and a new cluster for restore:

cd Scenarios/AKS-Backup
terraform init
terraform apply

Deploy a kubernetes deployment and persistent volumes to the original AKS cluster.

kubectl apply -f ./kubernetes/deploy_disk_lrs.yaml
kubectl apply -f ./kubernetes/deploy_disk_zrs_sc.yaml

Trigger the backup of the AKS cluster on the azure portal through Vault backup.

You might need to click on the 'fix errors' button to resolve the backup misconfigurations.

Watch for the resources created in the backup resource group (disk snapshots and blobs in the backup storage account).
Trigger the restore operation to the new AKS cluster using the backup created in the previous step.

Would be good to see a sample test run or completion of a run.


Bridge request for the New-Apostolic Church South Germany Media Library

Bridge request

General information

Host URI for the bridge (i.e. https://github.com):
https://www.nak-sued.de/mediathek/

Which information would you like to see?
All audio tracks that have been broadcasted by radio on the radio programs Bayern 2 and SWR 1 and their associative information.

How should the information be displayed/formatted?
Every track should have its title and description (content) as seen on the website, for example (https://www.nak-sued.de/mediathek/rundfunksendungen-auf-bayern-2/aktuelle-sendungen/):

Which of the following parameters do you expect?

[X] Title
[ ] URI (link to the original article)
[ ] Author
[X] Timestamp
[X] Content (the content of the article)
[X] Enclosures (pictures, videos, etc...)
[ ] Categories (categories, tags, etc...)

Options

[ ] Limit number of returned items

Default limit: 5

[ ] Load full articles

Cache articles (articles are stored in a local cache on first request): yes
Cache timeout (max = 24 hours): 24 hours

[ ] Balance requests (RSS-Bridge uses cached versions to reduce bandwith usage)

Timeout (default = 5 minutes, max = 24 hours): 5 minutes

found by guessing: https://www.nak-sued.de/feed.rss

found by guessing: https://www.nak-sued.de/feed.rss

This rss feed is the feed of all articles that are published on this website. Indeed, for every radio broadcast, there also exists an article, but the feed items of these articles do not contain links to the audio files. Since my use case for the rss feed is to be accessed by a podcast player, the feed that is already available is not suitable.


dolt: 1.24.0 -> 1.29.7

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/dolthub/dolt/releases.
meta.description for dolt is: Relational database with version control and CLI a-la Git
meta.homepage for dolt is: https://github.com/dolthub/dolt
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.29.5 with grep in /nix/store/9n0pik0zcb8c6bws50bw1z843mlvpvkb-dolt-1.29.5
found 1.29.5 in filename of file in /nix/store/9n0pik0zcb8c6bws50bw1z843mlvpvkb-dolt-1.29.5

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

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
dolt

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/551f896bffe7a794bab033e583032deba9ede7fd#dolt

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/9n0pik0zcb8c6bws50bw1z843mlvpvkb-dolt-1.29.5
ls -la /nix/store/9n0pik0zcb8c6bws50bw1z843mlvpvkb-dolt-1.29.5/bin

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

1 package built:

dolt

Maintainer pings
cc @danbst for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/dolt/versions.
meta.description for dolt is: Relational database with version control and CLI a-la Git
meta.homepage for dolt is: https://github.com/dolthub/dolt
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.29.7 with grep in /nix/store/rc20xn2zxlsw0vsqrx22vljz7ry7vr9s-dolt-1.29.7
found 1.29.7 in filename of file in /nix/store/rc20xn2zxlsw0vsqrx22vljz7ry7vr9s-dolt-1.29.7

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

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
dolt

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/56d595152181f41690337d6d648debea7cb52ca8#dolt

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

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

1 package built:

dolt

Maintainer pings
cc @danbst for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/project/dolt/versions.
meta.description for dolt is: Relational database with version control and CLI a-la Git
meta.homepage for dolt is: https://github.com/dolthub/dolt
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.30.4 with grep in /nix/store/qm7m6160bx4ffqmzicyd8xllgpl9h7f8-dolt-1.30.4
found 1.30.4 in filename of file in /nix/store/qm7m6160bx4ffqmzicyd8xllgpl9h7f8-dolt-1.30.4

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

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
dolt

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/f7307a3b6aa4a706f6ec9fb3dd51eaa78349b354#dolt

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

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

1 package built:

dolt

Maintainer pings
cc @danbst for testing.


[DO NOT MERGE] Auto PR to update dependencies of pilot

This PR will be merged automatically once checks are successful.

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/pilot-presubmit.sh
94fbb3994a165b923e1f378c3975837377f1b4eb
link
/test pilot-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Lime Test Windows doesn't work

Describe your problem here.
Does somebody know how to fix it?

Most people will just say tha i need to get visual studio 2019 and i do have it i got whatever the page said and doesn't work

I have three because the first one din't work so i got just all 3 but i still get the error.
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No

Try unistall everything and reinstall here
https://github.com/ShadowMario/FNF-PsychEngine/blob/experimental/setup/setup-msvc-win.bat

Same here. I also try the setup-msvc-win.bat but it's still.


handling decimals

For now we're going to disallow decimals. We need to query denom precision so to proper handle each token.

SpAmountInput is copy/paste from Emeris

@mihailmarcu please, review.

A nice improvement from a users' point of view 👍

Hey @marinhoarthur,
The functionality is working properly and I can use decimals for amount input. Correct me if I'm wrong, but in the future this may be included in a separate composable.

We need to have a solid API for handling amounts. Composables could def help us achieve that!


Cannot perform an add operation at the desired path

NodeJS: 12.16.3
npm: 6.14.4
OS: ubuntu
I'm trying to read the initial patch record with help of rollback but it is throwing an error like,
Cannot perform an `add` operation at the desired path
name: OPERATION_PATH_CANNOT_ADD

 doc = await doc.rollback(patches[0]._id.toString(), {}, false);
How do I read read the initial (operation: { op: 'add', ...) record?

@vinerich any ideas?

I have three patch records with the same reference Id, to get the first and/or second patch version, it is not working with the rollback.

@codepunkt shouldn't be something with the newest version. (I hope)
@intermx-reddysai can you show us the three patch records and the document you try to rollback?
Thanks!

Hey @intermx-reddysai any news on this? Did you fix your error?
Let us know!

That was because of ObjectId, it is not working properly on ObjectId.
I had a model field with array of mongoose object Ids. If I update any of the object id, it is not working as expected.

Thanks for your response!
Could you share a few more details with us so we can look into it?

Are you updating the array through push/pop operations or with save?
Which plugin config are you using?
What exactly is not working as expected? I mean what is happening that is different?

Thanks!


Locked tooltip not showing on servers

locked tooltip shows on single player.
but not on servers.. unless you go into a single player session and then go to a server.

I have no clue how this mod ever worked for me in testing given how lackluster the S2C syncing code is, but I'm pretty sure I ironed out most of these problems with the next release. Let me know if you run into any more problems (and feel free to reach out on Discord if you want, I'll respond much faster there) :)


Remove commas from param. Closes #40

Purpose
When a viewer copies a theme from the list, it will sometime include the trailing comma. This fix allows for the param to ignore commas in a theme change request.
Changed files
Themer.ts

Added command on param to replace ',' with an empty string

themer.test.ts

Add positive test which will remove trailing comma.