Treat transducers as iterator transforms at surface syntax

close #67
Commit Message
Treat transducers as iterator transforms at surface syntax (#319)
This patch implements the idea discussed in #67.  That is to say,
collect(Map(f) |> Filter(g), xs)
foldl(+, Map(f) |> Filter(g), xs)

is now written as
xs |> Map(f) |> Filter(g) |> collect
foldl(+, xs |> Map(f) |> Filter(g))

or
collect(opcompose(Map(f), Filter(g)), xs)
foldl(+, opcompose(Map(f), Filter(g)), xs)

collect(Map(f) ⨟ Filter(g), xs)
foldl(+, Map(f) ⨟ Filter(g), xs)

or even (not recommended)
collect(Filter(g)((Map(f)(xs))))  # Julia >= 1.3

collect(Filter(g) ∘ Map(f), xs)
foldl(+, Filter(g) ∘ Map(f), xs)

collect((Filter(g)' ⨟ Map(f)')', xs)
foldl(+, (Filter(g)' ⨟ Map(f)')', xs)

collect((Map(f)' ∘ Filter(g)')', xs)
foldl(+, (Map(f)' ∘ Filter(g)')', xs)

Above syntax are all compatible with the view that xf(itr) is an
iterator transformation.  OTOH, xf' (adjoint(::Transducer)) is now
the "classic" transducer; i.e., reducing function transformation.
This makes it easy to use transducers with other "reducing function
combinators" like TeeRF:
rf = TeeRF(Filter(iseven)'(min), Filter(isodd)'(max))
reduce(rf, Map(identity), xs)  # => (even minimum, odd maximum)

This PR only deprecates ::Transducer |> ::Transducer to help
migration from the old syntax.

Thanks!

Thanks a lot!  I've been agonising over the pros and cons of different approaches.  It really helps to have your input!
For example, initially, I thought to defer defining xf(itr) to the next breaking release as it makes a |> xf ambiguous because it's a composition if a isa Transducers while otherwise xf(a).  But after using that version just a few minutes, I realized that it'd be very painful to type \bbsemi and opcompose all the time.  So, I just convinced myself that this "ambiguity" is OK since it's kind of like how * works with matrices and vectors.  I'm still planning to remove ::Transducer |> ::Transducer but let's see how annoying the deprecation will be.

While mathematically equivalent transforming reduction functions seems more confusing then transforming iterators for the human brain. Especially if you don't know/care about the implementation.

Exactly my thought!  I'm convinced more and more that hiding transducers from the high-level API is the way to go.  It would also make "lowering" something like Partition(n)(xs::Vector) to Iterators.partition(xs, n) #7 more consistent with the idea.  That is to say, transform reducing function by default but switch to the iterator transform interpretation if it's faster.

While trying to use this branch in various downstreams, I realized that the default deprecation message unhelpful because it recommends opcompose instead of the iterator transformation style.  So, I tweaked depwarn so that it links to the upgrade guide in the documentation.  I also added a long detailed "depwarn" that is printed only once in a Julia session:
julia> using Transducers

julia> foldl(+, Filter(isodd) |> Map(inv), 1:5)
┌ Warning: `f::Transducer |> g::Transducer` is deprecated. Use `xs |> f |> g |> collect` instead of `collect(f |> g, xs)`. For more information, see https://juliafolds.github.io/Transducers.jl/dev/howto/upgrade-to-ixf/
│   caller = top-level scope at REPL[2]:1
└ @ Core REPL[2]:1
┌ Warning: `f::Transducer |> g::Transducer` is deprecated.  Instead of
│
│     collect(Filter(f) |> Map(g), xs)
│     foldl(+, Filter(f) |> Map(g), xs)
│
│ it's now recommended to use `|>` with input collection
│
│     xs |> Filter(f) |> Map(g) |> collect
│     foldl(+, xs |> Filter(f) |> Map(g))
│
│ If there is no input collection; e.g.,
│
│     foldl(right, GroupBy(key, Filter(f) |> Map(g), push!!), xs)
│
│ use `opcompose` instead:
│
│     foldl(right, GroupBy(key, opcompose(Map(f), Filter(g)), push!!), xs)
│
│ For more information, see:
│ https://juliafolds.github.io/Transducers.jl/dev/howto/upgrade-to-ixf/
└ @ Transducers ~/.julia/dev/Transducers/src/deprecated.jl:12
1.5333333333333332

julia> foldl(+, Filter(isodd) |> Map(inv), 1:5)  # no long depwarn for the second time
┌ Warning: `f::Transducer |> g::Transducer` is deprecated. Use `xs |> f |> g |> collect` instead of `collect(f |> g, xs)`. For more information, see https://juliafolds.github.io/Transducers.jl/dev/howto/upgrade-to-ixf/
│   caller = top-level scope at REPL[2]:1
└ @ Core REPL[2]:1
1.5333333333333332


added write sampled genes function

Here I added a new function to sample_genes.py. The function of the function is simple: write sampled gene list and sequences to external files. In this PR a few test data files are added, but the code that actually needs to be reviewed is merely sample_genes.py and test_sample_genes.py.

Coverage increased (+0.2%) to 94.251% when pulling cb0a5cd5b25e914342b21ac1f5f3db7fba3112ff on qiyunzhu:tree into 6145e630761aae9aa14113f7c16707cd85592998 on biocore:master.

Just as a general comment it may be worthwhile to take a look at python generators.  It could drastically simplify your code by eliminating complex data-structures.  In addition, it would allow for large memory objects to be shuffled around, since lines in a file are retrieved only when they need to be.  Less memory use = faster code.
Of course this is optional for this PR, but it is something to keep in mind for future refactors.

Hi @mortonjt Thank you! Let me read about Python generators!

Coverage increased (+0.2%) to 94.251% when pulling ad04e4e43850aa3c72014db90ac764d2a62743d8 on qiyunzhu:tree into 6145e630761aae9aa14113f7c16707cd85592998 on biocore:master.


WPE Browser support & CDM unification

Added support for WPE browser & changes for CDM unification.

@petegriffin Review comments are closed. Please look into b071f988d12d140766299ced8aa985c1ddbea998 commit

BTW I just noticed this pull request is against master.
The default branch on this repository is chromium-53.0.2785.143. Please can you rebase and re-submit it against that branch?

@petegriffin  @andrey-konovalov  All these review comments are addressed & created a PR https://github.com/linaro-home/open-content-decryption-module/pull/4 against chromium-53.0.2785.143 as required. @kalyan-nagabhirava


Move social buttons to less obnoxious positions

Move buttons into <Tabs /> on <ContentLayout />.
Figure out other pages.

theyve been completely removed.


Spelling

This PR corrects misspellings identified by the check-spelling action.
The misspellings have been reported at https://github.com/jsoref/graphql-voyager/commit/498fd1738b53c4ce246bb2461506f8a26ff06e0b#commitcomment-55984892
The action reports that the changes in this PR would make it happy: https://github.com/jsoref/graphql-voyager/commit/3f3eb502e557c7b9dc2d895c8fb872734d77cf7b
Note: this PR does not include the action. If you're interested in running a spell check on every PR and push, that can be offered separately.

That's good to me. Should be merge 👍🏻


WITHCOORD WITHDIST WITHHASH in geoSearch

No way to use [WITHCOORD] [WITHDIST] [WITHHASH] in geoSearch ?

fixed with using geoSearchWith here a example
const result = await client.geoSearchWith('test',{latitude:lat,longitude:lng},{radius: 50, unit: 'km'},['WITHDIST','WITHHASH','WITHCOORD'],{SORT:'ASC',COUNT:5})


Feat: SSO group sync

Implementation of the feature discussed in https://github.com/inventree/InvenTree/discussions/7200
I was unable to test the new platform UI, I hope the modifications to SystemSettings.tsx are sufficient. Currently missing translations for the new settings. For some reason python3 manage.py makemessages -a doesn't seem to work inside the dev container?

@wolflu05 thanks, I updated the code accordingly. Are there also plans towards integrating the frontend into the docker-compose setup?

The dev container comes with yarn support, the docker-compose file is not meant to be a full dev environment as that enlargens the attack surface a lot. We are shipping the compile frontend with the docker container.

We are shipping the compile frontend with the docker container

@matmair are you referring to the dev or prod container? I cannot see the compiled frontend code being added to the dev container.
I guess I will play around with manual yarn dev as devcontainers do not work for me. Maybe if there is some possibility to launch them without using VSCode :smile:

@p-fruck prod. The compiled frontend is in /src/backend/InvenTree/web/static/web. We are very much vscode oriented, most members of the core team use it so there is not much consideration given for other editors.

Hey all, I rebased to master (nice shortcut for global settings :wink:) and fixed the links to the django allauth docs in 7dca6a6
Is there anything left holding back this PR?

It would nice to be able to add unit tests for this but I'm not sure how we would achieve that. This looks good from my end. Any thoughts @matmair ?

Thanks for your suggestions! I've added a bunch of unit tests and made some changes to the docs

@p-fruck thanks muchly for the contribution :)


Refactors zookeeper dependencies and Kafka span receiver test

Zookeeper dependencies conflicted in most contexts. I set the minimum
version to coincide with the minimum used at Twitter internally, which
matches what Kakfa and Curator use.
Next, this ports the existing Kafka span receiver test to use a JUnit
rule, as opposed to manually orchestrating kafka and zookeeper. This
requires at least JUnit 4.11 for scala interop.

rebased over latest decoupled build

@jamescway PTAL

You can use @Rule in Scala if you use JUnitSuite:
http://doc.scalatest.org/1.7/org/scalatest/junit/JUnitSuite.html
Then you won't need the painful $.MODULE$ stuff that comes from bad Java-Scala-interop... (I'm working on making Span more Java-friendly!)

Thx will change it!

@eirslett ok.. was a little tricky, but yeah better than interop on the Span type for sure. PTAL!

an timid :+1:
I think @eirslett should sign off and merge this if he's good with it

:+1: :+1:  (u get 2)  super awesome!

@eirslett forgive me for merging :) I think I addressed your concern and happy to revise further in a latter change as necessary!

Great work! I love that you could delete all that code!
kafkaRule could maybe be a lazy val, but whatever.
Cheers! :beers:


I want to add NEWS API python project

Please do not contribute in this repository as it's excluded from Hacktoberfest 2022


Alternative recomendation?

As this library is not mantained anymore, could you guys recommend other librarys as replacement?
Thanks

Look at https://burningwave.github.io/core/


Add Cordial Event Docs

Amplitude Developer Docs PR
Adds Cordial Event import docs.
Deadline
ASAP
Change type

[X] New documentation.

PR checklist:

[X] My documentation follows the style guidelines of this project.
[X] I previewed my documentation on a local server using mkdocs serve.
[X] Running mkdocs serve didn't generate any failures.
[X] I have performed a self-review of my own documentation.

Waiting on one clarification from PM before shipping. Not ready to merge.

@Brandoncharleskhoo1 it's ready for your review. Please approve and I can merge when the tile goes live.


HandleCapture Not Saving Images

the HandleCapture does not save images to the provided path. here is what i tried, it only returns a handle.
#include <Array.au3>
#include ".\HandleImgSearch.au3"

Local $handle = WinGetHandle(0x001A0AEA)

Local $x = 0
Local $y = 0
Local $width = 800
Local $height = 600
Local $isBMP = False
Local $savePath = @ScriptDir & "\captured_image.bmp"

Local $result = _HandleCapture($handle, $x, $y, $width, $height, $isBMP, $savePath, False)

If @error Then
    MsgBox(16, "Error", "Capture failed. Error code: " & @error)
Else
    MsgBox(64, "Success", "Capture successful. " & $result)
EndIf```

@redscorpionx Hi,
To save the captured image, you have to set the debug flag to True first:
$_HandleImgSearch_IsDebug = True

Thank you! worked by setting this to true
$_HandleImgSearch_IsDebug = True


error. just went to update it and this happened

It looks like the program points to the wrong file for download. Looking at the specific file mentioned in the error message, you want "ASP.NET Core Runtime 7.0.14" which can be found at https://dotnet.microsoft.com/en-us/download/dotnet/7.0


Data Converter

i think that should be created the component responsible by convert formatted data into stored data format.
Example:
In view i need to show formated data:
 <?= Html::textInput('posted', Yii::$app->formater->asDate($model->posted, 'd/m/Y') ) ?>

but, to save i need to convert this date:
$date = DateTime::createFromFormat('d/m/Y', $value);
$model->posted =  $date->format('Y-m-d');

generally, the format is the same for the all application.
Currently is possible to configure the data format to display.
Should be possible to configure the data format to store.
thus, this component would convert, display data format into stored data format
bellow is a idea of implementation:
class DatetimeBehavior extends  Behavior {

    /**
     * @var array list of attributes that will receive automatically the parsing result.
     */
    public $attributes = [];

    /**
     * @var string the current date format value.
     */
    public $format = 'd/m/Y';

    /**
     * @var string the date format that the value should be parsed to be stored.
     * The named attribute will receive the parsing result.
     */
    public $storeFormat = 'Y-m-d';

    /**
     * @inheritdoc
     */
    public function events()
    {
        return [
            ActiveRecord::EVENT_BEFORE_INSERT => 'beforeSave',
            ActiveRecord::EVENT_BEFORE_UPDATE => 'beforeSave'
        ];
    }

    public function beforeSave($event)
    {
        foreach ($this->attributes as $attribute) {
            $value = $this->owner->$attribute;
            if (!empty($value)){
                $this->owner->$attribute = Yii::$app->converter->asDate($value);
            }
        }
    }
}

class DataConverter extends Component {

    /**
     * @var string the current date format value.
     */
    public $dateFormat;

    /**
     * @var string the date format that the value should be parsed to be stored.
     * The named attribute will receive the parsing result.
     */
    public $storedDateFormat = 'Y-m-d';

    /**
     * Formats the value as a date.
     * @param \DateTime|int|string $value the value to be formatted
     * @return string the formatted result
     */
    public function asDate($value)
    {
        $date = DateTime::createFromFormat($this->dateFormat, $value);
        return $date->format($this->storedDateFormat);
    }

}

Really, I've read a lot about this, and core yii2 should be able to offer a solution for the conversion of data types date, time, datetime in mysql, I have read many comments about whether to or not to implement, we think that any system could handle different date and time formats, and only yii provides full support rates unix timestamp date which seems very good, I hope you can provide this support in the best way and to have a cleaner code without many events and conversions because if many approaches and models are handled becomes cumbersome.

This should get solved by #5053


RuntimeError: set_storage is not allowed on Tensor created from .data or .detach()

Hi, I met a problem when I am running the train.py. My command is python train.py --conf_path=myconfig.json. However, I met this error. Do you know the possible reasons ? Thanks!
File "train.py", line 275, in
main(params)
File "train.py", line 227, in main
lm.train(optimizer, loss_fn)
File "/code2/LearningMachine.py", line 279, in train
model_save_path=self.conf.model_save_path, phase="valid", epoch=epoch)
File "/code2/LearningMachine.py", line 404, in evaluate
logits_softmax = self.model(inputs_desc, length_desc, *param_list)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/parallel/data_parallel.py", line 152, in forward
outputs = self.parallel_apply(replicas, inputs, kwargs)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/parallel/data_parallel.py", line 162, in parallel_apply
return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
File "/usr/local/lib/python3.6/dist-packages/torch/nn/parallel/parallel_apply.py", line 83, in parallel_apply
raise output
File "/usr/local/lib/python3.6/dist-packages/torch/nn/parallel/parallel_apply.py", line 59, in _worker
output = module(*input, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/code2/Model.py", line 378, in forward
representation[layer_id], repre_lengths[layer_id] = self.layerslayer_id
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/code2/block_zoo/BiLSTM.py", line 84, in forward
self.lstm.flatten_parameters()
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/rnn.py", line 123, in flatten_parameters
self.batch_first, bool(self.bidirectional))
RuntimeError: set_storage is not allowed on Tensor created from .data or .detach()

Please use PyTorch 0.4.1

Please use PyTorch 0.4.1
Thanks a lot. It works now.

PyTorch 1.1.0 will cause this problem. Pytorch 0.4.1 can work.


Syntax error when parameterized refinement occurs in subscript

(We recently added better support for parameterized refinement in TLC: https://github.com/tlaplus/tlaplus/issues/687)
----- MODULE Foo -----
EXTENDS Naturals

CONSTANT C

VARIABLE v
vars == v

Init == v = 0

Next == v' \in C

Spec == Init /\ [][Next]_v
=====

We may check that module Bar refines Foo with:
----- MODULE Bar ------
EXTENDS Naturals

VARIABLE v

S == {0, 42}

Spec == v = 0 /\ [][v' \in S]_v

F1 == INSTANCE Foo WITH C <- S
THEOREM A == Spec => F1!Spec
THEOREM B == Spec => F1!Init /\ [][F1!Next]_F1!vars

F2(c) == INSTANCE Foo WITH C <- c
THEOREM C == Spec => F2(S)!Spec
THEOREM D == Spec => F2(S)!Init /\ [][F2(S)!Next]_F2(S)!vars \*  TLAPS doesn't like  F2(S)!vars
=====

SANY accept A, B, C, and D just fine, but TLAPS' parser reports a syntax error for D:
-> % ~/.opam/5.1.0/bin/tlapm --version
6acb3cb
-> % ~/.opam/5.1.0/bin/tlapm Bar.tla
File "./Bar.tla", line 16, character 53
Unexpected (
File "<unknown>":
Error: Could not parse "./Bar.tla" successfully.
 tlapm ending abnormally with Failure("Module.Parser.parse_file")
Raised at Stdlib.failwith in file "stdlib.ml", line 29, characters 17-33
Called from Tlapm_lib__M_save.clocking in file "src/module/m_save.ml", line 24, characters 18-22
Called from Tlapm_lib.read_new_modules.(fun) in file "src/tlapm_lib.ml", line 503, characters 8-57
Called from Stdlib__List.fold_left in file "list.ml", line 123, characters 24-34
Called from Tlapm_lib.main in file "src/tlapm_lib.ml", line 561, characters 20-43
Called from Tlapm_lib.init in file "src/tlapm_lib.ml", line 589, characters 8-33

-> % tlapm --version
1.5.0
-> % tlapm Bar.tla
File "./Bar.tla", line 16, character 53
Unexpected (
File "<unknown>":
Error: Could not parse "./Bar.tla" successfully.
 tlapm ending abnormally with Failure("Module.Parser.parse_file")
Raised at Stdlib.failwith in file "stdlib.ml", line 29, characters 17-33
Called from M_save.clocking in file "m_save.ml", line 25, characters 16-20
Called from Tlapm.read_new_modules.(fun) in file "tlapm.ml", line 455, characters 8-112
Called from Stdlib__list.fold_left in file "list.ml", line 121, characters 24-34
Called from Tlapm.main in file "tlapm.ml", line 490, characters 20-43
Called from Tlapm.init in file "tlapm.ml", line 518, characters 8-33

This failure occurs at the syntax parser level; minimized example:
---- MODULE Test ----
op == [A]_M(S)!vars
====


Change snapcast client name to more friendly name

Returns name property:
Previous behaviour:
snapcast_client_dd1a21df-787a-e400-0a2c
New behaviour:
snapcast_client_myserver
Name is now taken from "config" or (as fallback) "host" cfg section.
Description:
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for configuration.yaml (if applicable):

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Tests have been added to verify that the new code works.

Hi @jedi7,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!

Hi,
I understand your pain, but think the best way is to add support for entity registry

ah ok :(


fixing pathway

https://github.com/allora-network
allora-inference-base

Thanks. Path is correct (see docker hub repo). Closing PR.


VoIP - CPU and RAM restriction

Where I can find information about CPU and RAM restrictions VoIP application which is run in background? I've done some tests and results are following: any CPU restriction, 200 MB RAM in foreground and additionally +20 MB in background (1GB RAM phone, for 512 MB RAM phone: 120 MB in foreground and +20 MB in background). Have somebody some official information about it ?

This isn't a problem with a broken sample. You can open a support case with our Developer Support team. Please use these steps below for further help:

Visit http://aka.ms/storesupport and sign-in with your Microsoft account
Under the “App Development” section choose "Windows 10 universal app development", then choose the appropriate problem type and category to get engaged through a formal support channel.


Default value for active record models for postgresql

Is there a way to set default value for enum in a active record models. I am using Postgresql database.

Yes, simply set the default: in your Rails migrations. This is automatically propagated to ActiveRecord and simple_enum


fix(ci): codecov

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.89%. Comparing base (75c4a4f) to head (bacab12).
Report is 8 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #870      +/-   ##
==========================================
+ Coverage   91.87%   91.89%   +0.01%
==========================================
  Files          46       46
  Lines        3926     4009      +83
==========================================
+ Hits         3607     3684      +77
- Misses        226      230       +4
- Partials       93       95       +2

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


Can't import preact/devtools

I tried to import the preact developer-tools but unfortunately I get following error at runtime:
http://localhost:4444/preact/devtools 404 (Not Found)
preact/devtools not found on request

I can create a sample project if you want but it's really simple: just try to do import 'preact/devtools';. If you import it without devtools import 'preact'; everything works.

if you are using typescript with fuse, does it work if u do it like this import 'preact/devtools.js'

Sorry, my fault. I deleted the fuse-box cache, did a completely reinstall of my node_modules and now it's working 🙄


Hide CMD window on Windows

Hi,
Thank you for the wonderful library.
I'm currently writing a tool on Windows that spawns commands through CMD and then gets the output. Using the standard std::process API, the prompt window flashes for a short while before disappearing, which is kind of annoying.
It seems like the way to solve the problem would be to set the CREATE_NO_WINDOW flag and I saw there was a PR #7 for that reason.
Is there a way to specify that flag with the current library API?

There is currently no support for CREATE_NO_WINDOW. #7 had issues and was apparently abandoned by the reporter.
The way to avoid the console window is to fix the command that requests it. It is my understanding that the console window is requested by the process you're starting, not by subprocess or equivalent API. If you were to start a GUI program, the console wouldn't flash.
Having said that, it definitely sounds useful to be able to optionally suppress the console window when starting executables you can't modify. A PR that does that correctly would be accepted, it's just not trivial because the APIs to do so are poorly documented.

@hniksic Thank you for the reply and the explanation.
I'll experiment a bit and see if I can get it to work. If successful, I'll open a PR as you suggested.
Thanks again

Closing due to lack of activity. @federico-terzi please reopen (or create a PR) if you find a way to do this.

Thank you @hniksic. Sorry for the lack of response! In the end, the problem was indeed in my program as you suggested and I was able to solve it with these steps: https://github.com/federico-terzi/espanso/issues/249#issuecomment-662900587
Hope this will help anyone suffering from the same issue :)


isoDep transceive exception

I try to get Visa Cardholder name, so I must call transceive a couple of times, transmitting control codes, and in startTagSession I do:
var n = IsoDep.fromTag(tag);
Uint8List res1 = await n.transceive(SELECT);
print('res1: ' + res1.toString());
Uint8List res2 = await n.transceive(GETGPO);
print('res1: ' + res2.toString());
first transceive completes ok, but on second transceive I get:
Unhandled Exception: PlatformException(not_found, Tag is not found., null)
What am I doing wrong?

@adminant
Thank you for reporting an issue. I think this is a bug.
We probably need to await _onTagDiscovered on L116 (and also to change typedef on L12)

@adminant  Fixed this bug and published v1.2.0 to pub.dev.

@adminant
Fixed this bug and published v1.2.0 to pub.dev.
Please let me know if the issue still exists.

Yes, I tested, now it works, thank you!


Support properties in command component

Description
After this change, user can specify "properties" in command component YAML like this
properties:
  azureml.pipelines.dynamic: true

Note:

Only supported in command component
All fields inside properties will by pass to component service in format of dict, service side will pick known fields and drop unknown fields

Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-ai-ml


Language Injection?

What do you think about adding language injection for string and `indented_string to get syntax highlighting for embedded scripts? Here's what it looks like for a bash string:

That's with [ (string) (indented_string) ] @bash in injections.scm. I'm not sure how to auto-detect the language however. Looking at the docs that's what @language is for, but unlike e.g. Markdown there's no node with the language name. Is it possible to match based off of something like a shebang in the string?

A couple years ago I started using a comment prefix on indented/multiline strings, which borrows an idea from Markdown where you tag the language being used.  I've been meaning to try and start a discussion about it to hopefully standardize on something.
This is what it looks like:

You can take a look at the PR at LnL7/vim-nix#28

For anyone interested, I implemented bash injections for mkDerivation's phase scripts and hooks in my fork for nvim-treesitter, which would automatically just work in most of packages.
Since I also updated many grammar, if you want to try it, you need to recompile the parser from my fork and copy queries/nvim-* to nvim runtime path queries/nix/* to override nvim-treesitter's packaged queries.

@oxalica Could I pull in your injections under this project's license (MIT)? That looks pretty slick.

@oxalica Could I pull in your injections under this project's license (MIT)? That looks pretty slick.

Sure, thanks. But I did some changes on grammar rules in my fork and I'm not sure the injection scm is fully compatible. Maybe some manual tests should be done.

FWIW, I tried to use @oxalica's injections without recompiling from his branch and got a runtime error in the Helix, so it'll most likely be necessary to pull his grammar changes as well.

Is it possible in tree-sitter to simply try to parse a string as a given language and fallback if it fails? We could then just add a segment to parse '' '' style strings as a series of languages until one suceeds (say bash, python, perl, etc) , falling back to just highlighting as a string if none do.

Tree-sitter itself doesn't have a built-in way to do that. It would be up to the consumer (editor/linter/etc) to implement it.

Gave a go of this in helix-editor/helix#3594; not sure if it's generic enough to work elsewhere, but on the face of it, it seems so. Maybe not the nicest way to do it though

Can you tell me how do you use this feature? I have tree-sitter-nix at 1b69cf1fa92366eefbe6863c184e5d2ece5f187d and nvim +checkhealth shows nix supports injections, but I don't see any difference.

@rnhmjoj, I haven't used neovim for a number of years, but the queries themselves would actually have to be used by it to be useful. Not sure how that is handled there, but in Helix (what I use now), they maintain their own in-tree queries and don't use upstream, so perhaps something like that is going on?

they maintain their own in-tree queries and don't use upstream, so perhaps something like that is going on?

Indeed, they maintain their own queries at nvim-treesitter. The injections for Nix have only been recently added as are not in NixOS 22.11, yet. See https://github.com/nvim-treesitter/nvim-treesitter/pull/3842
Anyway, I looked into this and I noticed two problems:

I think the injection for runCommand is wrong, or at least it's not matching anything. I fixed it with this change:
  (apply_expression
   (apply_expression
     function: (apply_expression function: (_) @_func))
   argument: [
     (string_expression (string_fragment) @bash)
     (indented_string_expression (string_fragment) @bash)
   ]
   (#match? @_func "(^|\\.)runCommand(((No)?CC)?(Local)?)?$"))

Neovim seems to be using a different syntax for setting the language based on a match:
@injection.language → @language, @injection.content → @content. Also injection.combined is not supported.
I tried this below, but it's not working either, too bad.
  (((comment) @language)
   (indented_string_expression
     (string_fragment) @content))

Can/should this also have something supporting a single-line comment:
# lua
''
... some lua code
``

rather than only /* lua */ block-style comment?

Can/should this also have something supporting a single-line comment:

It works that way in helix. FWIW, I also wrote as many intelligent queries as I could to catch as many cases as possible without having to manually comment anything. For example, in:
pkgs.writeText "foo.py" ''
  # some python
  ''

would detect the filetype based on the filename extension in the first argument and correctly highlight as python. I even extended the tree-sitter protocol implemented in helix somewhat to allow for highlight strings based on shebangs, which is not an upstream feature.
I'm not sure about other editors though, probably not as thorough.


remark-gemoji or remark-emoji: which is it?

Both are used throughout this project, pick one :wink: (I prefer -gemoji)

I thought I have changed all words to -gemoji already.
I also prefer -gemoji because the emoji have lots of branches.
And this project now use gemoji which is a github version.

Ah okay, though, the readme still mentioned -emoji :)

Oh, it's my mistake.
You're awesome.
Closed by cb1f6a49e92acba5d4ea2e938a93b21728b04088


Document what the pipe module writes to the file

Mention that the pipe module writes one byte of garbage, so that the reader knows what to expect.

Rebasing onto master should fix CI in your branch now.

@datto-aparrill Are you looking into that ↑, or should I just take it over?


fix(material/sort): inconsistency of text alignment in column header

When text breaks onto multiple lines in a mat-table column header, the text-align:centerstyle
creates an inconsistency in the way the text is aligned vs other column headers. This issue
only occurs on sortable columns. It appears left aligned in all other scenarios because of how
the containers are nested.
A sample screenshot of the inconsistency:

Live example of the inconsistency:
https://stackblitz.com/edit/cdpzsf?file=src%2Fexample%2Ftable-basic-example.html

This was merged with https://github.com/angular/components/pull/30198


dockerfied it

We should first open the PR in manifest-tool-internal repo and then copy it here.
All the development/changes should be done in the internal repo


Update screen sharing end button UI

The end button for screen sharing is out of date. This PR replaces the icon for that button, changes the padding in the stackView and adjusts the size of the engagement Endbutton according to the design
MOB 1708

!squash

!merge


Is it possible to add zip_extract method ?

extern ZIP_EXPORT int zip_extract(const char *zipname, const char *dir,
it is in zip.h.
thank you.

zip_extract() is directly operating on the file system paths which probably is only of limited use on Android and iOS due to the sandboxed file system. Could you please briefly outline a typical use case? This would help in designing an appropriate API.

I am now using the extractFileToDisk method in this package archive to decompress the epub file to the specified directory.
But its performance and compatibility are far behind this c library.
So I was expecting to do the same with zip_extract.

I have published version 0.1.0 of this package. It contains two new functions extractZipArchiveSync and extractZipArchive which allow extracting an entire Zip archive to a folder. An optional callback can be specified in order to receive information about the extraction progress.

I have published version 0.1.0 of this package. It contains two new functions extractZipArchiveSync and extractZipArchive which allow extracting an entire Zip archive to a folder. An optional callback can be specified in order to receive information about the extraction progress.

Awesome
I'm going to try it today

I gave it a try, and it worked really well.
Thank you so much! However, I noticed one thing: the extractZipArchive method didn't return the int value returned by the c method, which indicates whether the extraction was successful.

Returning a negative value from the callback will cause abort and return an error.
https://github.com/perron2/async-zip/blob/f17ee33a38bf970429a835ed1d237912b1a3a9bd/ios/Classes/zip.h#LL420C4-L421C10

Yes, that's true. I am currently using the C function only in the case where extractZipArchive is used without a callback function. In case a callback function is specified, the unpacking of the archive is done with Dart code (based on other C library function of course). This is because native C callbacks currently do not work properly across Dart isolates, which are used to provide the asynchronous functionality.
For my own implementation of the ZIP archive extraction I could not yet decide on a reasonable return value. There are various possibilities:

Return the first error detected
Return the last error detected
Return a list of all errors

There is also the question of what should happen in the event of an error:

Should the extraction process abort?
Or should the extraction continue and try to extract as many files as possible?

The answers to the aforementioned questions are likely use case specific. Therefore at least the behavior in the event of an error (abort or continue) should probably be configurable. What are your thoughts about all of this?

I think all of these options are viable, but I lean towards the first one.

Return the first error detected
Should the extraction process abort?


Atom: doesn't recognize "~" as home on path

Atom doesn't recognize "~" as home on paths, even on CLI if it is provided as string.
You could replicate with:

api

atom.open "~/some/folder/on/your/home"

bash:

atom "~/some/folder/on/your/home"

Running Atom on MacOS X 10.10 Yosemite.

I'm having the same problem.
I have two different computers, both having the Atom folder synched via symlinks over dropbox. With absolute paths to a Rubocop installation, everything works fine. For one computer, the other one is spawning a lot of read warning boxes.
Long story short, ~/.rvm/gems/ruby-2.2.0/bin/rubocop doens't seem to work.

@kevinnathan @postcasio
Is this a bug on atom itself or node core? Fortunately at the time we aren't depending on this, but i guess this may be a major bug for some plugins.
Can't we workaround it by replacing ~ by process.env.HOME?

I'm not part of the atom team but I would have reservations about doing expansions like this - what happens if you do want to open a file named ~? How can Atom differentiate between a ~ you want to expand and one you don't?

This code is required to find the user's ~ directory ...
home =
  if process.platform is 'win32' then process.env.USERPROFILE
  else process.env.HOME

@postcasio you have a point, there are a lot of files with ~ char, specially when it comes to tmp files.
I think we could workarround with a simple regexp replacement like this:

var home = process.platform == 'win32' && process.env.USERPROFILE || process.env.HOME || '~';

function getFullPath ( path ) {
  return path.replace( /^~(?:\/)/, home + '/' );
}

/^~(?:\/)/ regexp would select the first ~ char only if it has a slash after it.
I've also created some path scenarios to check if it covers all them.
@mark-hahn thanks for your suggestion

I checked @kevinsawicki commits about ATOM_HOME, won't fs.absolute fix this?

fs.absolute does handle ~/

@kevinsawicki so, would the add of fs.absolute into atom-application.coffee fix this issue?
-      pathToOpenStat = fs.statSyncNoException(pathToOpen)
+      pathToOpenStat = fs.statSyncNoException fs.absolute pathToOpen

Opened paths via the atom.open API and atom command line will now be normalized which resolves ~, ., .., and converts to proper platform separators.

Nice! Thanks @kevinsawicki


How to get the IMU Noise Value

When I run ORB SLAM3 with RealSense D455, I input Monocular + IMU data to extract the feature points. I am curious how to get the value of the IMU noise item in the yaml file.
Also, please tell me what the Tbc mean value.
I upload my yaml file.
%YAML:1.0
#--------------------------------------------------------------------------------------------
Camera Parameters. Adjust them!
#--------------------------------------------------------------------------------------------
Camera.type: "PinHole"
Camera calibration and distortion parameters (OpenCV)
Camera.fx: 635.759338
Camera.fy: 635.412842
Camera.cx: 630.737305
Camera.cy: 363.161835
Camera.k1: 0.0
Camera.k2: 0.0
Camera.p1: 0.0
Camera.p2: 0.0
Camera.k3: 0.0
Camera.width: 1280
Camera.height: 720
Camera frames per second
Camera.fps: 30.0
IR projector baseline times fx (aprox.)
Camera.bf: 40.0
Color order of the images (0: BGR, 1: RGB. It is ignored if images are grayscale)
Camera.RGB: 1
Close/Far threshold. Baseline times.
ThDepth: 40.0
Deptmap values factor
DepthMapFactor: 1000.0
Transformation from camera 0 to body-frame (imu)
Tbc: !!opencv-matrix
rows: 4
cols: 4
dt: f
data: [0.99996271, -0.00181009, 0.00844446, 0.02651246,
0.00171691, 0.9999377, 0.01102943, 0.00830124,
-0.0084639, -0.01101452, 0.99990352, -0.01286511,
0.0, 0.0, 0.0, 1.0]
IMU noise
IMU.NoiseGyro: 0.01
IMU.NoiseAcc: 0.1
IMU.GyroWalk: 0.0001
IMU.AccWalk: 0.001
IMU.Frequency: 9.805 #200
#--------------------------------------------------------------------------------------------
ORB Parameters
#--------------------------------------------------------------------------------------------
ORB Extractor: Number of features per image
ORBextractor.nFeatures: 1000
ORB Extractor: Scale factor between levels in the scale pyramid
ORBextractor.scaleFactor: 1.2
ORB Extractor: Number of levels in the scale pyramid
ORBextractor.nLevels: 8
ORB Extractor: Fast threshold
Image is divided in a grid. At each cell FAST are extracted imposing a minimum response.
Firstly we impose iniThFAST. If no corners are detected we impose a lower value minThFAST
You can lower these values if your images have low contrast
ORBextractor.iniThFAST: 20
ORBextractor.minThFAST: 7
#--------------------------------------------------------------------------------------------
Viewer Parameters
#--------------------------------------------------------------------------------------------
Viewer.KeyFrameSize: 0.05
Viewer.KeyFrameLineWidth: 1
Viewer.GraphLineWidth: 0.9
Viewer.PointSize:2
Viewer.CameraSize: 0.08
Viewer.CameraLineWidth: 3
Viewer.ViewpointX: 0
Viewer.ViewpointY: -0.7
Viewer.ViewpointZ: -1.8
Viewer.ViewpointF: 500
PointCloudMapping.Resolution: 0.01
meank: 50
thresh: 2.0
Map.mapfile: map.bin

Hi @seungsunkim   Some people take the approach of accessing the IMU noise variances directly from the camera using the command rs-enumerate-devices -c to list the camera's calibration information.  This command to launch the 'rs-enumerate-devices' SDK tool in calibration information mode can be input into a Linux terminal or the Command Prompt terminal of Windows.
After the command is input, a long list of calibration information is generated.  Scroll upward from the botto of the listing until the Motion Intrinsic Parameters section is found.  The noise and bias variances for the IMU gyro and accel of the particular camera attached to the computer are listed here.
The information below was generated by a D435i.

This next chart is from a D455.

As can be observed in the above charts, the bias and noise variances are typically always represented as all zeroes when read directly from the camera no matter how many times the information is checked.
In regard to the meaning of tbc, the best explanation that I could find was "the extrinsic transition matrix from body of IMU to camera from IMU-camera calibration".

@MartyG-RealSense
Thank you for answer.
Do you know why this is happening?

In my experience it is normal for the noise and biases to all be zero when reading them with rs-enumerate-devices.
Having said that, RealSense users do tend to obtain different results when reading the raw, noisy IMU data with non-official calibration tools such as Kalibr.  An example of noise readings from Kalibr is provided at the bottom of the comment lonked to below.
https://github.com/IntelRealSense/librealsense/issues/7103#issuecomment-675284211

Note though that the above values have e- on the end of them, indicating that they are actually very tiny numbers that may as well be stated as being zero.

@MartyG-RealSense
To find the IMU Noise value, which of the following is it possible?
https://www.programmersought.com/article/92054092003/            No. 1
https://github.com/IntelRealSense/realsense-ros                              No.2

You could obtain the IMU noise values with Kalibr, like a RealSense user in case https://github.com/IntelRealSense/librealsense/issues/7103 did.  Like the chart above and in link No. 1 though, the results are tiny e- values.  In my opinion it would therefore be simpler just to hard-code all the noise values to have a fixed value of '0' instead of retrieving them in real-time from the IMU.

Hi @seungsunkim  Do you require further assistance with this case, please?  Thanks!

@MartyG-RealSense
What should I do to run Kalibr with Real Sense D455?

I have not used Kalibr myself.
https://github.com/ethz-asl/kalibr/
Someone did post a Kalibr setup guide for RealSense D435i that should be adaptable for D455 though, as they are both IMU-equipped 400 Series cameras.
https://www.programmersought.com/article/29581858144/

@MartyG-RealSense
Thank you for answer.
If I have any questions, I will ask again.

Hi @seungsunkim  Do you require further assistance with this case, please?  Thanks!

Case closed due to no further comments received.


Add contrib list to site

Love the idea, however I think it pulls contributors from forks or something. Many of these folks aren't/dependencies really a contributors?
You pull them from the main repo or the organization?
I like the idea of celebrating contributors and featuring them, perhaps @dennisreimann or @dstrukt have a better way to visually present them.

Love the idea, however I think it pulls contributors from forks or something. Many of these folks aren't/dependencies really a contributors? You pull them from the main repo or the organization? I like the idea of celebrating contributors and featuring them, perhaps @dennisreimann or @dstrukt have a better way to visually present them.

It goes through all repos under btcpayserver and takes their "contributors" and sorts by contribution count

Can we exclude certain repos? For example old and stale repos, forks that we no longer use?

Just did that now

@dennisreimann feel free to do a final review and if all good let's merge it, to me it looks good.


[CANNOLI-265] Update Spark dependency version to 3.0.1

Fixes #265

Coverage decreased (-12.0%) to 0.0% when pulling 1d84ec6f0164596447d43fd98d3031327bc53c92 on heuermh:spark-3.0.1 into 017a1d9e26374edc1f2beeb59fd580e4cbeb00d1 on bigdatagenomics:master.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/cannoli-prb/245/
Test PASSed.


Sync non-SNAPSHOT releases to Maven Central

:+1:

Whoah.. Is this for real?! :)

Real, absolutely. We don't yet know if it'll work, but it's most definitely real!


FAQ creation for Certs

Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

@ravilach

@KMarquart89 here is the build output, can check the link of the IMGs. Also, can we rename to "faqs"? Thanks!
Image Links: Can see https://raw.githubusercontent.com/harness/developer-hub/main/certifications/instructions.md
(./static/instruqt-screen.png)

Error: Image certifications/certifications/static/loading-error.png used in certifications/faq.md not found.

    at async Promise.all (index 0)

@ravilach Fixed- try now.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app

Hmm don't see the page show up on: https://64ee264f25b5bb02586c61c3--harness-developer.netlify.app/certifications/
Getting close, can add a link in sidebar-certificaitons.js on the root of the directory?

         // FAQs
         {
          type: "doc",
          label: "FAQs",
          id: "faqs",
        },


Make TransactionManager a singleton

Fixes https://github.com/Maatwebsite/Laravel-Excel/issues/3267.

Can you also update the changelog please? Can you also try to add a tests for this? Something a long the lines of: if a custom transaction handler is bound, it should be able to be fetched by the transaction manager.

@patrickbrouwers Done!

Thanks 👍


1.4.0 breaks module resolution for linked modules

What version of Remix are you using?
1.4.0
Steps to Reproduce

Create a new remix project using Remix 1.4.0
Create a new npm package locally. I'm calling it my-module for purposes of documentation in this ticket, but the name doesn't matter.
Import your new local package (my-module) somewhere in the new remix project (I put it in the index route).
run npm link in your new module directory
run npm link my-module in your remix project.
Build the Remix project with npm run dev, and the dev build should fail.

Expected Behavior
Local packages installed with npm link or from a local file path should both be resolved correctly. Instead, the module resolution fails.
Actual Behavior
NPM packages installed with npm link or from a local file path are not resolved correctly. Attempting to build a remix project with linked modules produces the following error:
 ✘ [ERROR] [plugin server-bare-modules] Couldn't resolve the base path of "my-module". Searched inside the resolved main file path "/Users/.../my-module/index.js" using "node_modules/my-module"

Additional notes:

I've tracked down the source of the issue to a few recent changes to packages/remix-dev/compiler/plugins/serverBareModulesPlugin.ts. These are listed in the "Related PRs" section.

in resolveModuleBasePath(), the plugin compares the output of require.resolve('my-module') with a search string that includes node_modules, and throws an error if they don't match.
When installing a package with npm link, require.resolve('some-linked-module') returns the absolute path to the linked module, rather than the path to the symlink, so the path we're comparing doesn't contain node_modules and improperly triggers the error.

Replacing "searchForPathSection = node_modules${path.sep}${mod};" with "searchForPathSection = ${path.sep}${mod}" solves this particular issue, but I don't know if that change will create issues when resolving other non-standard imports.
I'd submit a PR with a failing test as recommended, but I'm not sure how generate a text fixture with a symlinked npm package to reproduce this, and haven't had too much time to dig into that yet.

Related PRs

#2694
#2767

#Related Issues

https://github.com/remix-run/remix/issues/2836 (looks like it's describing the same problem, or at least something similar)

Hey @deimyts, is this still a problem with latest remix version?

I am on the latest version of remix (1.11.1) and can confirm I am experiencing this issue currently.


[BUG] Very High CPU Utilization on Chrome

What happened?
Even if my chrome extension is Idle, my CPU utilization is very high.
System:
MacBook M3 Air 24GB 512GB
MacOS 15.0.1 (24A348)
Browsers:
Chrome Version 129.0.6668.90 (Official Build) (arm64)
and
Arc Version 1.63.0 (54427)

Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
(OPTIONAL) Contribution

[ ] I would like to fix this BUG via a PR

Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.

Ignore this issue, my bad.


Not Working Ubuntu 20.04

Issue

System versions:
Ubuntu 20.04

Check your error logs for the issue.

use sudo to build
install the build libraries for libudev.h


Python support please?

Can we add python support to u3d?We can use python as the script of u3d rather than AngelScript because AS is really difficult to learn.I think that could be more convenient to noobs and popularize u3d.
Besides,python should be easier when we want to implement something need multi-thread(like DirectX11,it can implement multi-thread rendering at a high level,of course the efficiency can not compare with Vulkan,but it can also provide us more convenience if u3d support Vulkan in the future)
I think we should keep pace with the times since we separated from urho3d.Maybe we should just abandon AngelScript because the difficulty of AS just like C++,but the performance of it just like lua and the coding efficiency of it is too low to compare with lua.

I am definitely in favor of adding support for Python, and have started some work on it in the past.
That said, I do think a few of the benefits may not quite live up to your expectations:

Besides,python should be easier when we want to implement something need multi-thread

I may be mistaken, but I believe even the most recent versions of CPython use a Global Interpreter Lock that reduce the utility of using python for multi-threaded code.

To reiterate, I do support adding Python. But it also requires a few questions to be answered:

are we embedding a Python interpreter in U3D?

Does this interpreter allow using external modules, and how?
Which interpreter (CPython, MicroPython, something else)?

or are we making U3D into a Python module?

What would a game look like then? Does the U3D user pack a Python interpreter and the necessary modules into an installer?

With Panda out there, does it make sense to have U3D as a module?
pybind could help with making Python an additional, optional, scripting option: https://pybind11.readthedocs.io/en/stable/advanced/embedding.html

I think it might make sense as a module in that even if the interpreter was embedded, the cleanest way to interact with the bound code is probably as a module. Similar to blender's bpy. Though I'm not convinced that "download U3D module and use from python after installing with pip" would be an ideal way to interact with the engine...
Agreed, pybind11 is pretty great, it's what I used when I was working on my attempt at the bindings:
https://github.com/SirNate0/PYrho3D

Well,I think it won't be so complicated.
We just need to make the editor of u3d supports python and be able to give us code completion according to u3d's API.We just press "F5" then the programs will run.It is in the same way as godot supports gdscript.

are we embedding a Python interpreter in U3D?

No,I think we u3d should be light-weighted and easy to use like godot.
Users of u3d shoud install python by themselves.It is not something difficult.

I may be mistaken, but I believe even the most recent versions of CPython use a Global Interpreter Lock that reduce the utility of using python for multi-threaded code.

Yes,it is a problem for now.
But we can have a look at this:https://peps.python.org/pep-0703/
(PEP 703 - Making the Global Interpreter Lock Optional in CPython)
I keep optimistic for this.😄Besides,python can be accelerated by many ways(numpy,numba or other something).

Which interpreter (CPython, MicroPython, something else)?

Maybe CPython?MicroPython...I don't know it very well.
One thing I am worrying about is that whether android will be supported when we use python as the script of u3d?Maybe we need an "export template" like godot？
Anyway,I am glad to see that this suggestion can be accepted.Maybe this is the embodiment of u3d's creed:"Do not reinvent the wheel. Engine should reduce development time. Less yak shaving, more game making."

Users of u3d shoud install python by themselves.It is not something difficult.

That's fine for direct users of u3d, i.e. developers. But I don't think that's an acceptable solution for the end-users, i.e. the gamers. While many of them are certainly capable of installing Python themselves, no one really enjoys having to manually install dependencies for software on their own. It's a slightly different scenario if the goal is to ship some sort of software using U3D for simulations/visualizations (maybe for some scientific or robotics code or something) as a python module - then the end-users having to install python would make sense, but the software is probably not a game in that case and it's probably installed through PIP (and not Steam).

We just need to make the editor of u3d supports python and be able to give us code completion according to u3d's API

"Do not reinvent the wheel. Engine should reduce development time. Less yak shaving, more game making."

U3D's editor doesn't really support editing code directly (at least as far as I am aware), it's more for the scene layout. Supporting Python in the editor would basically be the same as is for Lua/AngelScript - add a PythonScript component and add support in Urho3DPlayer.
In the interest of not re-inventing an IDE, I don't think the editor should ever really become a code editor. Since the developer uses their editor of choice to edit and run the code, it's really more on the developer's choice of IDE in providing support for code completion and such.

MicroPython...I don't know it very well.

Here's the documentation, but basically it "aims to put an implementation of Python 3.x on microcontrollers and small embedded systems" (with ports for desktop OSes as well). So it should, in theory, be more lightweight than CPython, though at the cost of not supporting the vast network of libraries available for CPython. I favor CPython for that reason, and perhaps more significantly, because pybind11 exists. The only reason I even think about things like MicroPython is that in my own project I have a lot of things where I basically want to be able to write a line or two of code/math and have that interpreted with a specific limited set of variables available, and multiple lightweight script interpreters would be one way to accomplish what I want.
https://docs.micropython.org/en/latest/develop/gettingstarted.html#building-the-unix-port-of-micropython


Expose b2MakeShapeDistanceProxy for ease of use with b2TimeOfImpact

I am trying to get a time of impact by calling, b2TimeOfImpact. I need for this a b2DistanceProxy. I would very much prefer to reuse the function: b2MakeShapeDistanceProxy.
However this is in the src. What it does is not complicated, however I see it's using the b2Shape* directly. For this I need yet more stuff from internal API(eg. get a shape and a world).
So I either use the internal API, or I store the same data myself(About the shape) or I just query for them using box2d API(eg. getShapeType, etc).

Have you considered using functions like b2World_CapsuleCast? What is your use case?
I'm not opposed to adding something like b2Shape_MakeDistanceProxy.

Havent checked that. I need to do shape cast with all shapes pretty much(polygon, circle, capsule, etc). Does it work with all shape types?

Yes, you implement this callback and it receives the fraction along the cast where the hit occurs:
b2CastResultFcn(b2ShapeId shapeId, b2Vec2 point, b2Vec2 normal, float fraction, void* context);

This sample shows all the details:
https://github.com/erincatto/box2c/blob/412d501a8855a75ec2edddad8d08f684d75e83c6/samples/sample_collision.cpp#L1384

I'm going to close this for now. Feel free to re-open if those world cast functions don't meet your needs.


allow to pass multiple documents to explain_prediction

Currently we allow to pass a single document to explain_prediction. I think we should allow to pass multiple documents as well.
There are two ways to handle multiple documents; both of them look useful.

just show explanations for all instances - something similar to https://github.com/TeamHG-Memex/eli5/issues/205.

aggregate resulting explanations in some way. For example, https://github.com/andosa/treeinterpreter has this feature - you can check which features are important for predicting labels for a part of dataset. I'm not sure we should show all individual documents in this case; probably there should be an option to turn it off (or maybe there is already an option - can we turn it off using show argument?).

It may also help with https://github.com/TeamHG-Memex/eli5/issues/213#issuecomment-308677391.

I wrote a PoC for (2) outside of eli5, targeting only XGBoost. It worked much faster than calling explain_prediction multiple times and then aggregating the results. The only caveat is that I needed to do special handling of missing values: xgboost might use some positive feature and if it's missing, will make the score lower. The weight for this missing positive feature would be negative in this case - so I excluded them from aggregation and the feature weights started to make sense. But it might be that this handling is not always desired. This approach also requires custom code in each classifier we want to support, although it's not a huge change and one document can be seen as a special case of multiple documents here.


Restart scenario working correctly

-Fix first failed node scenario (restart)
-Simplify and clean up reconciliation logic
-Formatting

@adam-mesos , @nicgrayson, @rubbish, please take a look at your earliest convenience thx!

I tested this and read it over. :+1:


As a busy tutor, I can use shorter commands

... so that I can simplify the commands by using aliases.

Propose alternative alias for the command keyword, e.g. a in place of add, e in place of edit, and bring up in the group for review;
Incorporate agreed alternative alias into the code base
Add relevant test cases for the new alternative keywords (which will be replicating the code base of command parsers part)

Due to evolving requirements, the story is no longer considered suitable for the project.


First pass at putting a client builder into GAX

This is mostly like the previous prototypes, but with slightly fewer
virtual methods:

Build and BuildAsync are now simply abstract
There's no BuildImpl/BuildImplAsync
The concrete class is responsible for validating (but we provide simple validation of the properties in this base class)

We should also consider whether we want this to be ClientBuilder or ClientBuilderBase. I don't have strong opinions either way.
(I'm happy to add a unit test that uses a simple example builder - will do that once we're comfortable with the shape, but as part of this PR.)

Starting to write tests, but it strikes me that new FooClientBuilder().Build() should probably use the channel pool for FooClient, which isn't covered by this. Hmm. Will need some more work.

Added a commit for channel pool support - would welcome a review on that part too, please :)
(Now I need to work out how to test the thing. Hmm.)

Now with tests! PTAL, and let me know anything else you'd like to see added.


Don't fire phantomjs on codecept build

It seems like the script is trying to fire up phantomjs while doing codecept build which looks like an issue.

Thanks for the report! I think this issue will be addressed by #3 where I'll need to set it up so that PhantomJS only starts/stops for the suites it's enabled for. I'll add a note to that issue to ensure that codecept build is addressed as well.


Blockquote with proper cite attribution.

> Constant apprentissage, agrandissement vers les limites. Temps qui gagne lentement sur soi. Écoute de l'impalpable. Combien il faut d'abandon au silence pour que s'ouvre écrire.
> — Les fragments du dedans - François Bon, urn:isbn:978-2-246-80690-5

is converted as

Constant apprentissage, agrandissement vers les limites.
Temps qui gagne lentement sur soi. Écoute de l'impalpable.
Combien il faut d'abandon au silence pour que s'ouvre écrire.

— Les fragments du dedans - François Bon, urn:isbn:978-2-246-80690-5

while I probably want

Constant apprentissage, agrandissement vers les limites.
Temps qui gagne lentement sur soi. Écoute de l'impalpable.
Combien il faut d'abandon au silence pour que s'ouvre écrire.

  Les fragments du dedans -
  François Bon

or something close.

Feeling the pain here.
I have to hard-code the cite part for all my blockquotes and it's still not ideal…
https://git.larlet.fr/davidbgk/larlet-fr-david/raw/branch/master/david/2020/fragments/Ambivalence.md

Yup with the benefit probably for me, that I don't use the markdown after. I use the markdown only for writing, but I don't reuse it in the future. I probably could, but I don't until now.
but yes it's not very practical and at the same time I often wonder if we want to do too much with something which was not made for it.

So should i handle this in the parser section or the renderer.
Renderer section is easier but requires to regex some html. :(
The parser section is a bigger modification for coding.

I guess the difficult step is to find the appopriate syntax:

what if it's a link
what if there is no author
etc

Or is that just for books’ quotes?

Pardon the intrusion, but I couldn't find a more appropriate place to put this to send a notificatio. :) But since block quotes are potentially relevant with respect to https://www.otsukare.info/2021/02/12/bookmarks-selection

Bookmark This Selection
What I would like from the bookmark feature in the browser is the ability to not only bookmark the full page but be able to select a piece of the page that is reflected in the bookmark, be through the normal menu as we have seen above or through the contextual menu of the browser. ❧

Sounds kind of like they're wishing for Hypothes.is?

And yes, some add-ons exist, but I just wish the feature was native to the browser. And I do not want to rely on a third party service. My quotes are mine only and should not necessary be shared with a server on someone's else machine. ❧

Ownership of the data is important. One could certainly set up their own Hypothes.is server if they liked.
I personally take the data from my own Hypothes.is account and dump it into my local Obsidian.md vault for saving, crosslinking, and further thought. Other portions go to my personal website for archiving and public display/consumption as well.
(originally posted at https://boffosocko.com/2021/02/19/55787358/)

@chrisaldrich no issue. I wonder if I should open a bug tracker for otsukare 😆

@chrisaldrich ok let's see https://github.com/karlcow/otsukare.info/issues/2


luci-app-olsr: updates to new version of jsoninfo plugin

The OLSR jsoninfo plugin has a new version.  The many things have changed which make the luci-app-olsr status pages no longer work properly.  For example echo /status | nc <IP_ADDRESS> 9090 no longer works as /status is no longer available.  Also, the field names have changed in almost all request types.
I have spent a few hours trying to figure out how luci and everything works.  After all my efforts, I have gotten nowhere.
@jow-, could you help us solve this issue?  It would be great to have the next freifunk-berlin firmware finished and this is one of the things blocking us.  If you can/will help, let me know how I can support you.  For example, I could set up a couple routers with the old and new versions of the jsoninfo plugin to help with development.
Here is the issue at freifunk-berlin: https://github.com/freifunk-berlin/firmware/issues/612
(As a side note, the columns of the table headers and the data below do not align any more).

I have some preliminary commits at https://github.com/pmelange/luci/tree/luci-app-olsr-new-json-lib
I managed to get all the status pages working again.  I also added some functionality to network.lua in luci-base.  I have not modified the Makefile yet.  I would like to have an opinion on the version number.
Also, I still don't have the table header and columns lining up.  I could really use some help here.

@pmelange - if you arrange for access I can take a look during the bext few days.

@jow, I have sent you a private message about setting up access.  I assume you want to see a router with these changes in a functioning environment.
I have also made PR #2259 with these changes.

merged in commit https://github.com/openwrt/luci/commit/ceb342dc8de0235686bfceae7cd3948cb3c2f527


teuthology-lock usability

http://tracker.ceph.com/issues/11812
http://tracker.ceph.com/issues/11813

Refer to this link for build results (access rights to CI server needed):
http://jenkins.ceph.com//job/teuthology-pull-requests/1481/
Tests failed for this pull request.

Jenkins error was:     EnvironmentError: mysql_config not found
Will get that fixed - but, why do we really need it to run tests?

@alfredodeza It's because we require MySQL in requirements.txt. Why do we do that? Because of the old teuthology-coverage utility that to my knowledge isn't even used :-/


Fixing source recipe for Ubuntu 12.04, Debian 7, and Centos 7.

Description
Travis builds exposed issues with source recipe.
https://travis-ci.org/chef-cookbooks/vim/jobs/111136468
Chef Version
1.81s$ /opt/chefdk/embedded/bin/chef --version
Chef Development Kit Version: 0.11.2
chef-client version: 12.7.2
berks version: 4.2.0
kitchen version: 1.5.0
Platform Version
Ubuntu 12.04
Debian 7
Centos 7
Replication Case
kitchen converge source-ubuntu-1204
kitchen converge source-debian-7
kitchen converge source-centos-7
Client Output
   Running handlers:
   [2016-02-23T05:35:17+00:00] ERROR: Running exception handlers
   Running handlers complete
   [2016-02-23T05:35:17+00:00] ERROR: Exception handlers complete
   Chef Client failed. 2 resources updated in 44 seconds
   [2016-02-23T05:35:17+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
   [2016-02-23T05:35:17+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
   [2016-02-23T05:35:17+00:00] ERROR: bash[install_vim] (vim::source line 38) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
   ---- Begin output of "bash"  "/tmp/chef-script20160223-159-1uw9100" ----
   STDOUT:
   STDERR: tar (child): bzip2: Cannot exec: No such file or directory
   tar (child): Error is not recoverable: exiting now
   tar: Child returned status 2
   tar: Error is not recoverable: exiting now
   make: *** No rule to make target `clean'.  Stop.
   ---- End output of "bash"  "/tmp/chef-script20160223-159-1uw9100" ----
   Ran "bash"  "/tmp/chef-script20160223-159-1uw9100" returned 2
   [2016-02-23T05:35:18+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Converge failed on instance .
Please see .kitchen/logs/source-ubuntu-1204.log for more details
------Exception-------
Class: Kitchen::ActionFailed
Message: SSH exited (1) for command: [sh -c '

NOTE:
This issue tracker is for the vim cookbook.

Looks like the box you're testing on lacks bzip2 package.  That should probably get added to the source recipe for debian like systems.

Yeah, I just was testing out the solution and wrote up the issue while I was at it :)

resolved in 2.0.1. Made it default package, as the problem existed for newer rhel and older debian, and doesn't cause conflicts on newer versions.


build: fix build issues

:white_check_mark: Build TheIdServer 2.1.1-user-ole1-0017 completed (commit https://github.com/Aguafrommars/TheIdServer/commit/1c10fe452e by @)


[feature request] show listen host/port when clean compiled

upgrade 0.10
nuxt.js will clean the console when Compiled
 DONE  Compiled successfully in 3695ms

and some one can't scroll top to find listen port ( like before 0.10 )
if can keep listen host/port , will be easy understanding for new guys who run npm run dev
or ...  change start port to others ( like me change to 9000 , because 3000 is running my api server  )

If can automatic open browser will be best , I think .
but maybe have a option to disable :D

It will be available in the upcoming release (0.10.3), it should be today.

it looks easier let some one open box and use it  😸

You can upgrade to the 0.10.3 @ausir0726

@Atinux  if I setting custom port
it will show http://9000:<IP_ADDRESS>

🤣
I will fix it, my bad!

It's now fixed in https://github.com/nuxt/nuxt.js/releases/tag/v0.10.4 👍

thanks !
it's working great  !!
👍


Season Improvements

Resolves #71

[x] When the season changes, the bot should change the server icon.

[x] Instead of storing the icons in this repo, we should be getting them out of the branding repo.

[x] When the season changes, the bot should make an announcement in #announcements declaring that a new season has started, that the server icon has changed, and that the following bot commands are now made available. Then a list of the commands that have been made available, ideally with a description (taken from docstring first line, for example). Changed to showing loaded season cogs and their docstrings, along with instruction to use .help Category to see commands. This announcement should tag the @Announcements role.

[x] Ensure that we make use of the DEBUGMODE implemented by Scragly so that neither avatar changes, server icon changes nor public announcements will happen when we're just testing the bot.

Additionally:

Season announcements won't be sent if username is not changed on season load, to prevent announcements on bot restart, season reloads and to ensure everyone isn't pinged before things are working.

Added an .announce command to manually send an announcement to the announcement channel. The announcement channel ID can be changed in testing with the environmental variable CHANNEL_ANNOUNCEMENTS. The announcement role does not need to be changed, as it will build the mention string manually, avoiding the need for more IDs to be set in testing.

Added a .seasons command to show the available season extensions. Bolded time periods are those that are recognised as matching the current date. The currently active season is underlined.

Added a .refresh command group. Let's you individually set or re-set the currently loaded season's avatar (.refresh avatar), server icon (.refresh icon) or username (.refresh username). These are fully actioned, even if in debug mode. The response will say if it changed successfully, or if something wasn't successful, or if only nickname was set with the username one.

OK, I squashed the smaller edits together for the last few things I've done and the previous review recommendations. This should be ready for re-review.


MqttClient::Network implementation

Is there an example for the implementation of the MqttClient::Network class for a SIM chip with AT commands (any SIM7600, or SIM800)?
What exactly does the functions read and write have to do?

I found a better(?) solution for my application. Actually, I am using the SIM7600e chip. I found out, that it has a MQTT-Stack already built in. So it is not needed to implement the TCP/MQTT on arduino for yourself. You can easily use AT-Commands for connecting, publishing and subscribing to a MQTT server.
This: https://simcom.ee/documents/SIM7X00/SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual_V1.00.pdf
and that:
https://github.com/elementzonline/Arduino-Sample-Codes/blob/master/SIM7600/Sim7600_MQTT/Sim7600_MQTT.ino
did help me a lot

Hi @svebert, I do not have experience with SIM chips.
The network class should provide the read/write implementation to receive/send MQTT packets (wo TCP layer) from/to the broker. I have a few implementation examples in the project, see extras/examples and examples/PubSub.


Resources: Reverse filter logic

Description
For demonstration reasons this PR reverses the checkbox filter logic on the Resources page.
SPECIAL PREVIEW LINK 👇
👉  https://preview-cms.vercel.app/resources

Closing as the decision went for the current status


Auth rework

Please merge #41 to auth-rework before merging this branch to main (once checks pass)

Please merge #41 to auth-rework before merging this branch to main (once checks pass)

Done

I am merging


Implement object spawning (primitives)

For cube, it is added in https://github.com/AndrejOrsula/drl_grasping/pull/25 as part of https://github.com/AndrejOrsula/drl_grasping/pull/25/commits/179b445420fe805e683fb016f88bf6b44b575dca and allow addition and configuration of the model programatically.
This can be used as template for other primitives if needed (very simple to add).

For cube, it is added in https://github.com/AndrejOrsula/drl_grasping/pull/25 as part of https://github.com/AndrejOrsula/drl_grasping/pull/25/commits/179b445420fe805e683fb016f88bf6b44b575dca and allow addition and configuration of the model programatically.
This can be used as template for other primitives if needed (very simple to add).


Bug linking web site of companies

issue being observed under /companies
Companies without a website link show an external link button that redirects to a broken link or gives a 404.
Example:
The company "M2D Tecrrehnologies" redirects to "http://www.isamuni.it/www.m2dtech.com" and "Bonsai Studio" redirects to "http://www.isamuni.it/companies".

@giupardeb it looks like "M2D Tech" has a link, which is www.md2tech.com
We need to look into this. It should be easy to solve. Feel free to address this bug yourself after you make the pull request for the issue you are already working on.

fixed by adding validation (and manually editing existing pages on isamuni) https://github.com/sic2/isamuni/commit/6ff0a576a0e8e3507c9eca39950e035313900c7a


Forcing a Password Reset Doesn't Work

pwpolicy -a $USER -u usertoforcechange -setpolicy "newPasswordRequired=1"

This command mentions that it can't find the user. We need to find the proper way to reference the current logged in user.

Fixed


skipping supersonic quiz[BUG]

Error Log
Paste the error log here.
No error item is skips
Screenshot of the page
Add a screenshot of the page where the error apeared.

Source code of dashboard
Copy the source code of the Microsoft Rewards Dashboard Page and paste it on Gist. Then share me the link of the gist here.
here is the xpath for the missed item //*[@id="daily-sets"]/mee-card-group[1]/div/mee-card[2]/div/card-content/mee-rewards-daily-set-item-content/div/div[3]/a/span/ng-transclude
here is the full source
https://gist.github.com/njhughesSAS/0e4ac57d3b24fb520ebfb6ac21ba8445

Okay, so edit line 735 : change True to False
So this will disable the headless mode, could you run it again and check if it is really skipped, or if the bot go on and fail inside the quiz ?

Okay, so edit line 735 : change True to False
So this will disable the headless mode, could you run it again and check if it is really skipped, or if the bot go on and fail inside the quiz ?

I deployed a fix, try it !


Home App crashing IOS 11

If you use the plugin with IOS 11 beta the Home app crashes if you try to open the cam.

With the new beta, home app doesn't crash

is the live feed working as well?

With my c2 cam I can see live feed only on wifi, not in 3G

now with IOS 11 again no live feed


Type popups take several seconds to appear when ghc-modi is enabled

I am running:
Atom 1.0.2
haskell-ghc-mod 0.8.3
ide-haskell 0.6.2
ghc-mod version <IP_ADDRESS> compiled by GHC 7.8.4
GHC 7.8.4
Ubuntu 14.04
When ghc-modi is enabled in the haskell-ghc-mod Atom settings, it takes several seconds for the type to popup after hovering over some text. During this time the hourglass appears in the Haskell IDE panel. When the type finally appears, the hourglass turns back into a check-mark. Disabling ghc-modi fixes this; type popups appear promptly with the hourglass appearing for less than a second.

I don't see how that would be possible. You sure you didn't confuse "enabled" with "disabled"? 'cause expected behavior is entirely backwards. FYI, ghc-modi is enabled by default.
If this really happens the way you describe, an isolated test case would help. Thanks

It is definitely only slow when ghc-modi is enabled. Yes, gch-modi was enabled by default, so it was slow until I found the setting to disable it. I tried to duplicate this issue with a single standalone file (no Cabal), but type popups appeared promptly regardless of whether ghc-modi was enabled or disabled.

Sorry about disappointing lack of activity, I was very busy lately. Would you mind providing at least some test case for this? Because for me, on big projects (e.g. ghc-mod or pandoc) type popups are unbearably slow with ghc-modi disabled (and that's expected).

After reinstalling everything today, I do not have this issue.


⚠ Bofrost.de has degraded performance

In 2bc21b2, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 2451 ms

Resolved: Bofrost.de performance has improved in 483f988 after 9 minutes.


Enable Comments on Blog Posts via Utterances

Summary of changes:

Utilizing Utterances an open-source project that uses GitHub issues to store comments on your blog post.  It is ad-free, you own your data, and its free.
Updated /_layouts/post.html to allow for comments
Updated README
Updated notebook to turn this option on for demo purposes

/preview

Looks super cool!

I know I’m soo excited by this!!! Maybe irrationally so!!


Allow testing without going through a relay

I understand why this is not the default, but it would be nice to be able to specify a STUN url explicitly in the user interface.

Have you tried entering STUN address in the TURN section in the settings?

I have. This is where the STUN url appears to be getting stripped out:
https://github.com/webrtc/testrtc/blob/8cd64c6fb5664519e9c0ec97f708aae02caa139b/src/js/conntest.js#L49

Right, I guess this is because if we use STUN the tests will not be very realistic as it would loopback just outside the router and back in again while connecting to a turn server simulates a real scenario where the user is located somewhere else.

But sure, if there is a need, PR's are welcome, also I can take a look and see if it works.

Ok thanks, I'll take a look

fixed by #127


Error - Docker daemon

Hello Reuter,
Firstly, thanks for this installation guide.
I have executed the instructions and in the end got that known error:  Cannot connect to the Docker daemon. Is the docker daemon running on this host?
My steps were:
./install-arm64-devtools.sh
./compile-docker.sh 1.11.2
$cd /src/docker/bundles/1.11.2/dynbinary/
$sudo cp docker-1.11.2 /usr/sbin/
$sudo cp /etc/init.d/skeleton /etc/init.d/docker-1.11.2
edited the following line on file /etc/init.d/docker-1.11.2:
DAEMON=/usr/sbin/docker-1.11.2
$sudo chmod 755 /etc/init.d/docker-1.11.2
$sudo update-rc.d docker-1.11.2 defaults 97 03
*** Reboot the system ***
$sudo groupadd docker
$sudo gpasswd -a ${USER} docker
$sudo usermod -aG docker ${USER}

Please, find below the output for each command:
$docker-1.11.2
(...)
update    Update configuration of one or more containers
version   Show the Docker version information
volume    Manage Docker volumes
wait      Block until a container stops, then print its exit code
Run 'docker COMMAND --help' for more information on a command.

$docker-1.11.2 pull mysql
Using default tag: latest
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon. Is the docker daemon running on this host?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

$service docker-1.11.2 status
service docker-1.11.2 status
● docker-1.11.2.service - LSB: Example initscript
Loaded: loaded (/etc/init.d/docker-1.11.2; bad; vendor preset: enabled)
Active: active (exited) since Thu 2016-02-11 12:28:03 AMT; 5 months 15 days ago
Docs: man:systemd-sysv-generator(8)
Process: 1298 ExecStart=/etc/init.d/docker-1.11.2 start (code=exited, status=0/SUCCESS)
Feb 11 12:28:03 odroid64 docker-1.11.2[1298]:     stop      Stop a running container
Feb 11 12:28:03 odroid64 docker-1.11.2[1298]:     tag       Tag an image into a repository
Feb 11 12:28:03 odroid64 docker-1.11.2[1298]:     top       Display the running processes of a container
Feb 11 12:28:03 odroid64 docker-1.11.2[1298]:     unpause   Unpause all processes within a container
Feb 11 12:28:03 odroid64 docker-1.11.2[1298]:     update    Update configuration of one or more containers
Feb 11 12:28:03 odroid64 docker-1.11.2[1298]:     version   Show the Docker version information
Feb 11 12:28:03 odroid64 docker-1.11.2[1298]:     volume    Manage Docker volumes
Feb 11 12:28:03 odroid64 docker-1.11.2[1298]:     wait      Block until a container stops, then print its exit code
Feb 11 12:28:03 odroid64 docker-1.11.2[1298]: Run 'docker COMMAND --help' for more information on a command.
Feb 11 12:28:03 odroid64 systemd[1]: Started LSB: Example initscript.

Any thoughts on that??
Many thanks.

Maybe try to start the docker daemon in your shell, then you should get all logs directly. Add the flag "-D" to get more detailled debug logs.


Fixed BigDecimal readers/writers to properly serialize values, registered missing writers/readers, added integration test

Breaks BigDecimal persistence, but looks like it wasn't working before anyway

looks good

Coverage increased (+0.04%) to 31.12% when pulling 8c1b847d7335cc83cfa1776ae9e8d02ec1103759 on GEOWAVE-79 into 43ac4e87a05c730a994a51dd0ac384fdabcbd843 on master.


Supervised systemd option not working with keydb 6

Describe the bug
After updating my keydb installation to 6.0.13 (running on Debian), systemd keeps rebooting my keydb instances. After some investigation, systemd seems not to receive notification events anymore. Please note, I am running keydb with Type=notify in systemd and supervised systemd.
It may be "simply" due to the issue described here https://github.com/redis/redis/issues/7217 (see also https://github.com/redis/redis/commit/129d14e1431e913426485526663e1a9aac67838c). Which would be resolved by installing pkg-config and libsystemd-dev package on the build server.
Log Files
The log is just fine and keeps doing this endlessly because of systemd keeps rebooting
5674:5674:M 14 Aug 2020 01:43:01.713 * RDB age 0 seconds
5674:5674:M 14 Aug 2020 01:43:01.713 * RDB memory usage when created 8.66 Mb
5674:5674:M 14 Aug 2020 01:43:01.713 * DB loaded from disk: 0.000 seconds
5674:5679:M 14 Aug 2020 01:43:01.714   Thread 0 alive.
5674:signal-handler<PHONE_NUMBER>) Received SIGTERM scheduling shutdown...
5674:5679:M 14 Aug 2020 01:46:01.833 # User requested shutdown...
5674:5679:M 14 Aug 2020 01:46:01.833 * Saving the final RDB snapshot before exiting.
5674:5679:M 14 Aug 2020 01:46:01.845 * DB saved on disk
5674:5679:M 14 Aug 2020 01:46:01.845 * Removing the pid file.
5674:5679:M 14 Aug 2020 01:46:01.845 # KeyDB is now ready to exit, bye bye...
5715:5715:C 14 Aug 2020 01:46:02.198 # oO0OoO0OoO0Oo KeyDB is starting oO0OoO0OoO0Oo
5715:5715:C 14 Aug 2020 01:46:02.198 # KeyDB version=6.0.13, bits=64, commit=00000000, modified=0, pid=5715, just started
5715:5715:C 14 Aug 2020 01:46:02.198 # Configuration loaded
5715:5715:C 14 Aug 2020 01:46:02.198 # WARNING: server-threads is greater than this machine's core count.  Truncating to 1 threads
5715:5715:C 14 Aug 2020 01:46:02.199 # WARNING supervised by systemd - you MUST set appropriate values for TimeoutStartSec and TimeoutStopSec in your service unit.

                                        KeyDB 6.0.13 (00000000/0) 64 bit

                                        Running in standalone mode
                                        Port: 6380
                                        PID: 5715

                     Join the KeyDB community! https://community.keydb.dev/

5715:5715:M 14 Aug 2020 01:46:02.205 # Server initialized
5715:5715:M 14 Aug 2020 01:46:02.205 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with KeyDB. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. KeyDB must be restarted after THP is disabled.
5715:5715:M 14 Aug 2020 01:46:02.206 * Loading RDB produced by version 6.0.13
5715:5715:M 14 Aug 2020 01:46:02.206 * RDB age 1 seconds
5715:5715:M 14 Aug 2020 01:46:02.206 * RDB memory usage when created 8.66 Mb
5715:5715:M 14 Aug 2020 01:46:02.206 * DB loaded from disk: 0.000 seconds
5715:5720:M 14 Aug 2020 01:46:02.206   Thread 0 alive.

To Reproduce
Running on
Linux mail01 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux
KeyDB server v=6.0.13 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=5055ac929b8ff5fb

Systemd unit file
[Unit]
Description=Advanced key-value store
After=network.target
Documentation=http://keydb.io/documentation, man:keydb-server(1)

[Service]
Type=notify
ExecStart=/usr/bin/keydb-server /etc/keydb/keydb-test.conf --supervised systemd --daemonize no
ExecStop=/bin/kill -s TERM $MAINPID
PIDFile=/run/keydb/keydb-test.pid
TimeoutStartSec=180
TimeoutStopSec=30
Restart=always
User=keydb
Group=keydb
RuntimeDirectory=keydb
RuntimeDirectoryMode=2755

UMask=007
PrivateTmp=yes
LimitNOFILE=65535
PrivateDevices=yes
ProtectHome=yes
ReadOnlyDirectories=/
ReadWriteDirectories=-/var/lib/keydb/keydb-test
ReadWriteDirectories=-/var/log/keydb
ReadWriteDirectories=-/var/run/keydb

NoNewPrivileges=true
CapabilityBoundingSet=CAP_SETGID CAP_SETUID CAP_SYS_RESOURCE
#MemoryDenyWriteExecute=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectControlGroups=true
RestrictRealtime=true
RestrictNamespaces=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX

# keydb-server can write to its own config file when in cluster mode so we
# permit writing there by default. If you are not using this feature, it is
# recommended that you replace the following lines with "ProtectSystem=full".
ProtectSystem=true
ReadWriteDirectories=-/etc/keydb

[Install]
WantedBy=multi-user.target
Alias=keydb-test.service

/etc/keydb/keydb-test.conf
include /etc/keydb/keydb.conf

## Network
port 6380
# unixsocket /var/run/keydb/keydb-test.sock
# unixsocketperm 700

## Database settings
dbfilename test.rdb
maxmemory 209715200
dir /var/lib/keydb/keydb-test

## Daemon
daemonize no
supervised systemd
loglevel notice
pidfile /run/keydb/keydb-test.pid
logfile /var/log/keydb/keydb-server-test.log

After running service keydb-test start, the command hangs and finally times out. The keydb-test server is actually  during his time running, but systemd is not aware and will restart it after the default timeout.
● keydb-test.service - Advanced key-value store
   Loaded: loaded (/lib/systemd/system/keydb-test.service; enabled; vendor preset: enabled)
   Active: activating (start) since Fri 2020-08-14 01:43:01 CEST; 1min 19s ago
     Docs: http://keydb.io/documentation,
           man:keydb-server(1)
 Main PID: 5674 (keydb-server)
    Tasks: 6 (limit: 1148)
   Memory: 13.5M
   CGroup: /system.slice/keydb-test.service
           └─5674 /usr/bin/keydb-server <IP_ADDRESS>:6380

Aug 14 01:43:01 mail01 systemd[1]: Starting Advanced key-value store...

Please note that all is well with the exact same configuration, system, etc when using forking mode without supervised.
Type=forking
ExecStart=/usr/bin/keydb-server /etc/keydb/keydb-test.conf --supervised no --daemonize yes

Hence I am really thinking the issue is related to redis issue https://github.com/redis/redis/issues/7217

Did you compile KeyDB yourself or use a docker image? I think its that we're not building with systemd as part of our docker images.

Assigned to ben to compile with USE_SYSTEMD=yes

Did you compile KeyDB yourself or use a docker image? I think its that we're not building with systemd as part of our docker images.

I am using the "official" PPA from https://docs.keydb.dev/docs/ppa-deb/ for Debian buster

Having the same issue here with KeyDB server v=6.0.16 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=fa6f9f5195421066 from the official PPA on Ubuntu 20.04.
Tried the steps listed in https://github.com/redis/redis/issues/7217 but doesn't fix it unfortunately.
It's strange because I'm running the exact same config setting and systemd service file with Redis server v=6.0.10 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=48afb8ef69256162 and it runs perfectly.
Here's my /etc/systemd/system/keydb_7000.service file:
[Unit]
Description=Advanced key-value store
After=network.target
Documentation=https://docs.keydb.dev/, man:keydb-server(1)

[Service]
Type=notify
ExecStart=/usr/bin/keydb-server /etc/keydb/cluster/7000/keydb_7000.conf --supervised systemd --daemonize no
ExecStop=/usr/bin/keydb-cli -h <IP_ADDRESS> -p 7000 shutdown
PIDFile=/run/keydb/keydb-server_7000.pid
TimeoutStartSec=180
TimeoutStopSec=30
Restart=always
User=keydb
Group=keydb
RuntimeDirectory=keydb
RuntimeDirectoryMode=2755

UMask=007
PrivateTmp=yes
LimitNOFILE=65535
PrivateDevices=yes
ProtectHome=yes
ReadOnlyDirectories=/
ReadWriteDirectories=-/var/lib/keydb
ReadWriteDirectories=-/var/log/keydb
ReadWriteDirectories=-/var/run/keydb

NoNewPrivileges=true
CapabilityBoundingSet=CAP_SETGID CAP_SETUID CAP_SYS_RESOURCE
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
#MemoryDenyWriteExecute=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectControlGroups=true
RestrictRealtime=true
RestrictNamespaces=true

# keydb-server can write to its own config file when in cluster mode so we
# permit writing there by default. If you are not using this feature, it is
# recommended that you replace the following lines with "ProtectSystem=full".
ProtectSystem=true
ReadWriteDirectories=-/etc/keydb

[Install]
WantedBy=multi-user.target
Alias=keydb_7000.service

It just times out when trying to run sudo systemctl start keydb_7000.service.
Was looking at migrating to KeyDB after reading the blog post on TLS performance.

Changing the Type to simple gets it running as expected so it must be an issue with the $NOTIFY_SOCKET.
[Service]
Type=simple

Hi all,
We weren't passing in the right flags for SYSTEMD support, the fix is coming in the next release.


Have a --verbose flag

This is a great product and infact the only way to delete a bucket which has 1M+ objects.
Would it be possible to do a --verbose flag or something that prints progress? Right now when I run the command it goes into a prolonged period of silence (multi minutes) so it is not clear what % is done. Perhaps it can print the object count or bucket size or some such thing after every delete so a user gets an idea of how long to wait?
Is this doable?

Hi, @renedescartes
I'm glad, and thanks for the request!
Perhaps some method is possible. Please give me some time and I will see if there is a better way to do this.

Thank you. I tested this and works like a charm!


The duration of waiting for each resource should be variable

When the help chart contains a large number of resources and the network is bad, an error often occurs: timed out waiting for the condition
I think we should improve the timeout settings , For example, in the following code
// waitForResources polls to get the current status of all pods, PVCs, Services and
// Jobs(optional) until all are ready or a timeout is reached
func (w *waiter) waitForResources(created ResourceList) error {
	w.log("beginning wait for %d resources with timeout of %v", len(created), w.timeout)

	ctx, cancel := context.WithTimeout(context.Background(), w.timeout)
	defer cancel()

	return wait.PollImmediateUntil(2*time.Second, func() (bool, error) {  // fixed 2*time.Second
		for _, v := range created {
			ready, err := w.c.IsReady(ctx, v)
			if !ready || err != nil {
				return false, err
			}
		}
		return true, nil
	}, ctx.Done())
}

If you adjust here, there will be no error
Output of helm version: v3.5.2
Output of kubectl version: v1.19.16
Cloud Provider/Platform (AKS, GKE, Minikube etc.): kubesphere

The 2*time.Second passed to PollImmediateUntil is the polling interval, the timeout is passed to the context.WithTimeout method and it is already configurable with the --timeout flag.
Do you really need the polling interval to be configurable or will the timeout work for you?

There are so many things that can go wrong if you try to use a packaging tool with unstable infrastructure I think it's just a bad idea. If it were me and I had such a bad connection that I couldn't trust it to stay up long enough to install a helm chart over an h2 connection, I'd just spin up a cloud instance and operate from there. Heck, you could even run from a pod inside the cluster.

https://github.com/helm/helm/pull/11348 looks to begin to changing the wait mechanism to use watches. This might be a better approach overall, as I think watching would allow resuming during the timeout period (if there was intermittent network issues)


Select Phases in EVCC

Describe the bug
Until recently I could select "3 phases" or "1 Phase" with two bullet point buttons. This was neccessary, as one vehicle of ours can only charge with 3 phases. The other one can not.
Now I wanted to start charging on the car that supports both (1 phase and 3 phases). I got >3.8 kW excess power from the solar panels) however the car does only start in 3 phases (I checked on the config : Wallbox is connected with 3 phases from 2A to 16A). How is that? The Car only starts charging in 3 phases?? This seems new....
Thanks
Steps to reproduce
1.Select "Ladestrom" 3 phasig -> set in to 2A and max current to 16A
2. Conenct vehicle, select PV Mode and have energy below 4 kW (for 1 Phase only)
3. Vehicle will not start charging until there is more energy available to go for the 3 phases
...
Configuration details
-

Log details
-

What type of operating system are you running?
HomeAssistant Add-on
Version
0.126.2

Es gibt phases auch für das vehicle: https://docs.evcc.io/docs/reference/configuration/vehicles#phases
Aktuell noch yaml only.


Sunstone Cloud View VNC button is not showing in other languages.

Description
When setting a different language other than English, the VNC button in the cloud view is not showing.
To Reproduce

Create a VM.
Change language.
Try to connect through VNC in the cloud view.

Expected behavior
Can connect to VM with VNC.
Details

Affected Component: Sunstone
Hypervisor: [e.g. KVM]
Version: 6.0 & master

Additional context
Can consult additional information here

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

@tinova PRs to be approved:

code
docs


Fix RunContext.get_params for ignore and select linter params

For ignore and select linter params RunContext.get_params
transforms parameter value which is comma separated string to set of
values by splitting that string. Subsequent calls to get_params (in
case of cache miss or if another instance of RunContext is used) tries
to perform this transformation again and fails because set doesn't
have split method.
This commit adds additional check before converting CSV string into a
set -- if the value is already a set, we skip this transformation.

@ilyalabun Thank you for the PR!