Feature: Secondary OpenTSDB instance that is tried on error connecting primary

At Stack we have a secondary cluster that is replicated to via tsdbrelay. We used to have an issue where data would not be replicated if our primary was down, but we have worked around that with HAProxy.
In theory, if we tried the secondary cluster when we get error responses from our new york one, this would increase the reliability of Bosun's checks.

Some things that would need deciding:

Should this be a global thing, where it starts trying the primary less frequently with a backoff, or just a dumb retry on each request.
How do we best report that the secondary has been used? The bosun errors (the thing you can see on the dashboard, a metric, the logs, or some combination?)

Could do this either where we currently do retries (In expr/tsdb.go):
	tries := 1
	for {
		T.StepCustomTiming("tsdb", "query", string(b), func() {
			getFn := func() (interface{}, error) {
				return e.TSDBContext.Query(req)
			}
			var val interface{}
			val, err = e.Cache.Get(string(b), getFn)
			s = val.(opentsdb.ResponseSet).Copy()

		})
		if err == nil || tries == tsdbMaxTries {
			break
		}
		slog.Errorf("Error on tsdb query %d: %s", tries, err.Error())
		tries++
	}
	return
}

But maybe better to remove this from bosun/expr and put it in the /opentsdb library itself. Not sure yet.

But we are also using a transport. This gets set in main's init() in Bosun, and then the package has a Default Client that Transport with MaxTries. Not sure how these work together yet.

The timeout needs to be considered as well. If I have something that runs every minute, with a timeout of a minute (default) I'm not sure what happens right now. But if I actually want to prevent unknowns, will need to actually try the secondary server before it is too late. Maybe better to query both at once, and first healthy response wins?
It seems there are two levels of errors I need to consider: Network errors and application (tsdb errors).

With HTTP Control there are 3 levels it seems:
    // DialKeepAlive specifies the keep-alive period for an active
    // network connection.
    // If zero, keep-alives are not enabled. Network protocols
    // that do not support keep-alives ignore this field.
    DialKeepAlive time.Duration

    // ResponseHeaderTimeout, if non-zero, specifies the amount of
    // time to wait for a server's response headers after fully
    // writing the request (including its body, if any). This
    // time does not include the time to read the response body.
    ResponseHeaderTimeout time.Duration

    // RequestTimeout, if non-zero, specifies the amount of time for the entire
    // request. This includes dialing (if necessary), the response header as well
    // as the entire body.
    RequestTimeout time.Duration

It seems like I would want to try the secondary relatively quickly on a DialTimeout. I am unsure about a ResponseHeaderTimeout, but the body timeout needs to be long for large requests.

Sample errors in the err log:
opentsdb: {"start":1487588650,"end":1487588950,"queries":[....]}: Call queue is full on /<IP_ADDRESS>:60020, too many items queued ? Caused by RPC: GetNextRowsRequest(scanner_id=0x0000000000027EA4, max_num_rows=128, region=null, attempt=0) - 1 times From 2017/02/20-11:10:29 (1d03h25m38s ago) To 2017/02/20-11:10:29 (1d03h25m38s ago) - Rule Page

Post http://localhost:80/api/query: net/http: request canceled - 1 times From 2017/02/20-11:08:00 (1d03h28m07s ago) To 2017/02/20-11:08:00 (1d03h28m07s ago) - Rule Page

So it looks like I have cancellation due to timeouts? As well as errors returned from the TSDB server. When we get those Region errors, or Call Queue Full errors I'm not sure long those errors take to come back.

In case of the call queue, it seems the errors come back instantly:
2017/02/21 00:06:58 info: check.go:529: check alert sites.readonly.mode start with now set
to 2017-02-21 00:05:59.965024956
2017/02/21 00:06:58 error: tsdb.go:92: Error on tsdb query 1: opentsdb: {"start":1487635439,"end":1487635559,"queries":[{"aggregator":"sum","metric":"web.readonly.redis","rateOptions":{},"filters":[{"type":"wildcard","tagk":"host","filter":"*","groupBy":true},{"type":"wildcard","tagk":"role","filter":"*","groupBy":true},{"type":"iwildcard","tagk":"host","filter":"ny-*","groupBy":false}]}]}: Call queue is full on /<IP_ADDRESS>:60020, too many items queued ?
2017/02/21 00:06:58 error: tsdb.go:92: Error on tsdb query 2: opentsdb: {"start":1487635439,"end":1487635559,"queries":[{"aggregator":"sum","metric":"web.readonly.redis","rateOptions":{},"filters":[{"type":"wildcard","tagk":"host","filter":"*","groupBy":true},{"type":"wildcard","tagk":"role","filter":"*","groupBy":true},{"type":"iwildcard","tagk":"host","filter":"ny-*","groupBy":false}]}]}: Call queue is full on /<IP_ADDRESS>:60020, too many items queued ?
2017/02/21 00:06:58 error: check.go:652: opentsdb: {"start":1487635439,"end":1487635559,"queries":[{"aggregator":"sum","metric":"web.readonly.redis","rateOptions":{},"filters":[{"type":"wildcard","tagk":"host","filter":"*","groupBy":true},{"type":"wildcard","tagk":"role","filter":"*","groupBy":true},{"type":"iwildcard","tagk":"host","filter":"ny-*","groupBy":false}]}]}: Call queue is full on /<IP_ADDRESS>:60020, too many items queued ?
2017/02/21 00:06:58 error: check.go:570: Error checking alert sites.readonly.mode: opentsdb: {"start":1487635439,"end":1487635559,"queries":[{"aggregator":"sum","metric":"web.readonly.redis","rateOptions":{},"filters":[{"type":"wildcard","tagk":"host","filter":"*","groupBy":true},{"type":"wildcard","tagk":"role","filter":"*","groupBy":true},{"type":"iwildcard","tagk":"host","filter":"ny-*","groupBy":false}]}]}: Call queue is full on /<IP_ADDRESS>:60020, too many items queued ?


Fail to install in kubuntu 20.04

After cloning the repo, I get the following error:
install.sh: 3: set: Illegal option -o pipefail
Any suggestions?

Try to use just
./install.sh

instead of sh ./install.sh

It worked using ./install.sh instead of sh install.sh. My default shell is bash, and I was not looking but the first line of install.sh is:
#!/bin/bash

The doc should be modified accordingly as sh is not the same shell as bash

Yeah, the wiki is pretty outdated on many pages.
@oskarsh If you feel like you could need some help there, you can add me as a contributor and I can update the wiki. Or alternatively, I think you can also give everyone write access for the wiki.
However, glad that it worked! If your problem is now resolved, feel free to close this issue.

I think the issue should be closed when the readme is fixed. It can help others while it is not done.

@l0drex added you as a collab feel free to do any modifications and update the wiki if you like

Yes, thank you! I will start by copying the documentation from the pull requests into the contributing section.


[vcpkg baseline][rapidjson] Refix hash value

2022-07-03T21:15:44.5630830Z Installing 115/249 rapidjson:x64-osx...
2022-07-03T21:15:44.5633200Z Building rapidjson[core]:x64-osx...
2022-07-03T21:15:44.6139470Z CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:14 (message):
2022-07-03T21:15:44.6140630Z
2022-07-03T21:15:44.6141080Z
2022-07-03T21:15:44.6141700Z   File does not have expected hash:
2022-07-03T21:15:44.6142530Z
2022-07-03T21:15:44.6144010Z           File path: [ /Users/vagrant/Data/downloads/Tencent-rapidjson-232389d4f1012dddec4ef84861face2d2ba85709.tar.gz ]
2022-07-03T21:15:44.6145120Z       Expected hash: [ 0d7d751179abdaa6ebf6167d522651a2d13bc024d20c7e3f775c7397a8aab4cd866a6c91a55521ad7847e910822fcf982625c7308c74f5df663e6fd81336c9fc ]
2022-07-03T21:15:44.6146240Z         Actual hash: [ 60bfbfe4884122aa9ae8755531da18ce4a793bb217c06474dd8c5afe0f2f5df280c40be2f303c1740f5af14c7ad5cc2a57f08de5205cc7ab27d6166b0f49130d ]
2022-07-03T21:15:44.6147110Z
2022-07-03T21:15:44.6147950Z   The cached file SHA512 doesn't match.  The file may have been corrupted.
2022-07-03T21:15:44.6148990Z   To re-download this file please delete cached file at path
2022-07-03T21:15:44.6150290Z   /Users/vagrant/Data/downloads/Tencent-rapidjson-232389d4f1012dddec4ef84861face2d2ba85709.tar.gz
2022-07-03T21:15:44.6151170Z   and retry.
2022-07-03T21:15:44.6151360Z
2022-07-03T21:15:44.6151840Z Call Stack (most recent call first):
2022-07-03T21:15:44.6152560Z   scripts/cmake/vcpkg_download_distfile.cmake:171 (z_vcpkg_download_distfile_test_hash)
2022-07-03T21:15:44.6153380Z   scripts/cmake/vcpkg_from_github.cmake:106 (vcpkg_download_distfile)
2022-07-03T21:15:44.6154100Z   ports/rapidjson/portfile.cmake:2 (vcpkg_from_github)
2022-07-03T21:15:44.6154720Z   scripts/ports.cmake:146 (include)
2022-07-03T21:15:44.6155250Z
2022-07-03T21:15:44.6155550Z
2022-07-03T21:15:44.6185620Z error: building rapidjson:x64-osx failed with: BUILD_FAILED

Update PR: https://github.com/microsoft/vcpkg/pull/25509
Related: https://github.com/microsoft/vcpkg/pull/24843 https://github.com/microsoft/vcpkg/pull/25239 https://dev.azure.com/vcpkg/public/_build/results?buildId=74527&view=results

Last time I downloaded the hash was 0d7d751179abdaa6ebf6167d522651a2d13bc024d20c7e3f775c7397a8aab4cd866a6c91a55521ad7847e910822fcf982625c7308c74f5df663e6fd81336c9fc...

Last time I downloaded the hash was 0d7d751179abdaa6ebf6167d522651a2d13bc024d20c7e3f775c7397a8aab4cd866a6c91a55521ad7847e910822fcf982625c7308c74f5df663e6fd81336c9fc...

Same for me. I think the root cause of this issue is that the binary caching feature has a bug.

Last time I downloaded the hash was 0d7d751179abdaa6ebf6167d522651a2d13bc024d20c7e3f775c7397a8aab4cd866a6c91a55521ad7847e910822fcf982625c7308c74f5df663e6fd81336c9fc...

Same for me. I think the root cause of this issue is that the binary caching feature has a bug.

But our pipeline re-downloaded the package and matched the changed hash.

@Thomas1664 Yeah it should be binary cache issue.


Validate that downloaded TUF metadata files exist and are not empty

Based on TUF Spec §5.4.1, we should validate that downloaded TUF metadata files exist and are not empty.
We don't currently validate this in our implementation of RepoFileFetcherInterface->fetchMetadata(). This may be due to a false-y response being cast to an empty string. An empty string is technically valid JSON, and so passes later validation.

I'm not sure this is relevant since #208 and #290, which between them implement strong checks around downloading new metadata, and loading trusted, saved metadata. Leaving this open for @ergonlogic to confirm, but I'm pretty sure we can close this.


sender_of's execution environment parameter doesn't work as written and should be removed

I think the introduction of the notion of an execution environment for senders has inadvertently made the sender_of concept far less user friendly:
Before it was:
  template<class S, class... Ts>
    concept sender_of = see below;

Now it is:
  template<class S, class E = no_env, class... Ts>
    concept sender_of = see below;

The default doesn't seem correct - as written, the default will always be used, and any argument you pass after the second will be a part of Ts.
If we removed the default, then the interface would be worse:
Before:
sender_of<std::size_t> auto async_read(
    sender_of<std::span<std::byte>> auto buffer,
    auto handle);

After:
sender_of<std::size_t, no_env> auto async_read(
    sender_of<std::span<std::byte>, no_env> auto buffer,
    auto handle);

Given that one of the main reasons we added sender_of was because I wanted it for these examples, I'd rather not make them more complicated.
I suggest we just hard wire sender_of to always use `no_env.

How do you feel about:
sender_of< S, set_value_t(Values...), [env]? >

... where the trailing env is optional and defaults to no_env?
Or even:
using completions_t = completion_signatures< all-signatures...>;
sender_of< S, completions_t, [env]? >

That seems fine to me.

Which one? I'm leaning toward the simpler sender_of< S, set_value_t(Vals...) > rather than the completion_signature one. And maybe limit it to just set_value_t so it has the exact same semantics as the current sender_of concept.

Both seem fine. I'm okay with the environment being a final, default parameter. I don't think I have a strong opinion on the difference between those two options.


Swiper causes Vue hydration issue

Simply adding the swiper to a page like this:
<swiper ref="mySwiper" :options="swiperOptions"></swiper>
causes the virtual DOM tree not matching server side rendered content.
[Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside
, or missing
. Bailing hydration and performing full client-side render.
The generated HTML in the browser then looks like this:

What exactly is causing the error and how can it be solved?

Are you using nuxt?

I wrapped swiper component inside  tag and it fixed it

I wrapped swiper component inside the client-only nuxt component tag and it fixed it
 <client-only> <swiper ref="mySwiper" > ... </swiper> </client-only>

but if you did this wrap with code client-only,  the html code will lose these seo related info. so Does anyone can fix this issue or can you give us any advice?


Update on Duplicate Key

Hi there, does Speedment support update on duplicate key syntax?

No. You can write code in a transaction that emulate this behavior though. Within the transaction, you check if the key is present and, depending on existence,  either insert values or update values. Sorry for the inconvenience.

Thanks @minborg


Inspecting object types

In robot example, __class__.__name__ is used to discriminate between InitialCommand and MoveCommand. However, using this technique doesn't work when the objects being inspected are of abstract type, because __class__.__name__ returns only the most derived type.
Is there a better way to check types of objects in the model?
On the related note, I'am considering to monkey-patch the objects in the model, specifically to add a method which will polymorphically do something different depending on the object type.
Is it a good idea?

The problem with scoping.tools is how does one gets a grip on a text
class in the first place?
On Thu, Nov 22, 2018, 17:27 Igor Dejanović<EMAIL_ADDRESS>wrote:

Hm, there is textx_isinstance in the scoping.tools
https://github.com/igordejanovic/textX/blob/master/textx/scoping/tools.py#L35
done by @goto40 https://github.com/goto40. Haven't tested is it working
in this case. It looks like it should.
On the related note, I'am considering to monkey-patch the objects in the
model, specifically to add a method which will polymorphically do something
different depending on the object type.
Is it a good idea?
Well, monkey-patching is almost never a good idea but sometimes it is the
most pragmatic solution. In this case custom classes
http://www.igordejanovic.net/textX/latest/metamodel/#custom-classes
might solve your problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/igordejanovic/textX/issues/123#issuecomment-441062828,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAfGBKU2KBSiCQOEJ89L1pf8tmUVdLqhks5uxsJ_gaJpZM4YvgVM
.

You can get a class from the meta-model. That part is not covered by the docs but meta-model object acts as a dict which you can query by class/rule name and get that object.

@goto40 BTW, textx_isinstance and some others generally usable function should probably be moved out of scoping module and exported/documented as a public API.

There is a (very simple) unittest. The first test in https://github.com/igordejanovic/textX/blob/master/tests/functional/test_scoping/test_scoping_tools.py
If you have problems I can enhance the test...

On the related note, I'am considering to monkey-patch the objects in the model, specifically to add a method which will polymorphically do something different depending on the object type.
Is it a good idea?

Well, monkey-patching is almost never a good idea but sometimes it is the most pragmatic solution. In this case custom classes might solve your problem.

I have looked at the expression examples in the repository. There, you have defined custom classes for all (or almost all) elements of the grammar so that you can have value or op properties defined for various elements.
The problem with this approach is that it negates the convenience for having textx to define model classes for you.
I thought maybe I can have classes defined by textx, then add to them value property at run-time, for example:
meta_model['Operand'].value = property(lambda self: .....)


Any performance issues?

Hey all,
Are there any performance issues using this amazing gem? It is working perfectly fine giving us the count on the number of views of our models but just concerned if it is making our database grow too much?
Any insight will be helpful.
Thanks!

it will slow

i have problem when integrate the is_impressionable model to active_admin, because every time we want to load the all model list, it will execute
Impression Load (104.2ms)  SELECT impressions.*  Adding a record for every view of a model will get you a large database but in my experience it will not slow you app.
@bondanherumurti yes I had the same issue. I solved it by using remove_filter :impressions


#663 documentation seems outdated

These small doc changes should make it a little easier for first time users to use mui-treasury.

@all-contributors please add @pacurtin as doc


Use mirrored git repository for faster results

The problem: big repositories takes too long to copy, even with the --reference. This solution will not copy, fetch any git object, but uses only one mirror, updates it and then creating an archive to the release path.
The original idea is coming from Capistrano:
https://github.com/capistrano/capistrano/blob/ad61d9288a2567faa5ae37e7fa74b1c1947e592d/lib/capistrano/git.rb

:+1:  Good ideal!
Please create new PR for magento recipe.

Done.

@deployphp/maintainer what you thinks about this PR? Can anybody test it?

One issue: https://scrutinizer-ci.com/g/deployphp/deployer/inspections/e0dc283a-1aac-48e5-b007-68b349f9bdb1/issues/files/recipe/common.php?status=new&orderField=path&order=asc

Sorry about the unused variable, it was fixed on the next commit which I removed accidentally when took out the Magento recipe

Testing would be much welcomed as it's a core part of Deployer. I tested it with a few of our repositories, but maybe other users have different configurations. I'm trying to switch from Capistrano and a slow deployment with lots of io is a no go for us. This one reduced the original deployment time of a big repository from 10 minutes to 23s.
On the big repository, we have an 1G sql file, updated a few times since the initial commit, which slowed down the clone a lot. With a mirror, we don't even have to get any .git objects.

Imo it's great thing to have, but implementation is too invasive. In capistrano strategy is configurable. When I created git cache pr, the whole thing was configurable with use-if-possible by default. To some this might be problematic depending on repository configuration, plus You'd have to actually keep additional dir on deployment target (and I got clients bitching about additional dirs and unneded versions since forever). And that dir would have to be there etc etc...
My position: make it configurable, just like I did with git cache. That way anybody would be able to choose strategy, be it shallow clone, reference or mirrored repo.

It would be possible to make it configurable. However, it's more thing to maintain. Also, the previous behaviour didn't hide the .git directory, so I discovered I can access /.git/config and /.git/index from the web so in theory I could download every git objects if I'm patient enough. With directory listing enabled, it would be much easier.
In my case, the change uses much less disk space because the releases does not have the .git folder (5 folders less with the default keep-releases). It's a design change and I can't see it could practically live together with the old behaviour, but it's the maintainer's task to decide. Worst case, I have to use a private fork.

You don't have to use fork if it's so hard to maintain. If maintainer decides against it, then there's always deployphp/recipes repo in which You can add Your own recipes and in which recipe that changes 2 tasks can live happily :smiling_imp:
With .git present - I guess it depends on what person wants. If using shallow clones, it would actually do no harm to simply cleanup that dir post clone. In case of git cache with reference - it's simpy needed (aand securing access from outside to that is excercise to the admin/depops). With Your way - it's simply gone :)
But no need to listen to me - I am all for freedom of choice at expense of simplicity and maintainability. :joy_cat:

Ok if this does not get to the next version, I shall move it to deployphp/recipes, much better to not have to maintain a private fork. I'm also open for improvements.

In capistrano strategy is configurable.

I hope I can configure strategy.

It's a design change and I can't see it could practically live together with the old behaviour,

Yes, it can't live together. So users select one.
Speaking of .git, I think the directory structure is not secure. It seems you put too much files in Web document root.
I mean, for example,
project/        <-- not here
project/.git/
project/src/
project/public/ <-- this should be doc root.
project/public/index.php

I didn't expect so much resistance (well, 2 so far) so could you guys tell me why you need git objects in each release? Is it the case you are modifying files on the production server and committing to git from there?
Some of my repositories are 1GB big, this means 5GB additional disk space when I keep only 5 releases. Also, using bare mirror in this PR is speeding up the deployment significantly without any side effects.
Moving everything to a public folder except the files needed for development is not a solution, but perhaps I'm just too convenient after a few years RoR development. IDE's are not behaving like this by default, composer requires it's files and the vendor folder in the document root, and then there's the problem how the framework can support this. You have to add far more files anyway.

I'm NOT oposing this, quite to the contrary. I just say that some CAN and
WILL object. And those that will object are users... And if You leave them
no choice they WILL leave. That's what We're trying to avoid here.
I advise that You do same thing as I did: make it configurable. Then those
like You will enable it and those who need it other way will disable it and
use shalow clondes/referencee/local copy/whatever.
2015-06-27 12:04 GMT+02:00 Sándor Czettner<EMAIL_ADDRESS>
I didn't expect so much resistance (well, 2 so far) so could you guys tell
me why you need git objects in each release? Is it the case you are
modifying files on the production server and committing to git from there?
Some of my repositories are 1GB big, this means 5GB additional disk space
when I keep only 5 releases. Also, using bare mirror in this PR is speeding
up the deployment significantly without any side effects.
Moving everything to a public folder except the files needed for
development is not a solution, but perhaps I'm just too convenient after a
few years RoR development. IDE's are not behaving like this by default,
composer requires it's files and the vendor folder in the document root,
and then there's the problem how the framework can support this. You have
to add far more files anyway.
—
Reply to this email directly or view it on GitHub
https://github.com/deployphp/deployer/pull/379#issuecomment-116000760.

--
Pozdrawiam,
Hubert Kowalski

could you guys tell me why you need git objects in each release?

Just I like it. I can see git log and status on production server.
But if I had 1GB git repository, I would reconsider using git repository.
So I also do not oppose it, I may use it. But Capistrano has some strategy, so why does Deployer do also?
I think it is better Deployer has functionality to have some strategies for a task.

Is it the case you are modifying files on the production server and committing to git from there?

Of course not.

Already implemented with git clone references.


Standardize nomenclature in public API not covered by PEP8

We should standardize the way we name arguments and methods that are exposed in the public API when these are not covered by PEP8.
Here are is a short proposal covering the cases I've noticed:

I'd use file_name (with the underscore because of PEP8) to indicate protein.pdb and file_path for path/to/protein.pdb.
Number of elements: n_elements.
Words with a hyphen without an underscore (e.g., setup when used as noun).

In any case, I'm ok with any convention as long as we are more or less consistent when we expose it in the API.

This has been fixed in #276.


Lumina User Menu (Panel Plugin) crash

Testing the "User Menu" panel plugin - clicking the Home Directory tab on the left sidebar, then clicking on any directory in the center panel results in an immediate crash back to the login screen.

This was already fixed previously.
Please rebuild with the latest Lumina sources (1.0.0-Beta2)


Add task to ./gradlew test to verify server certificate has been saved correctly

Fixed by: https://github.com/snowch/biginsight-examples/commit/9899e2e0603826d366bfd770ff4381a73d6b5170


Fix Sphinx warning in OperatorConfig

Description
In OperatorConfig method from_json the docstring had wrong indentation for a closing brace. This commit fixes this.
I'm sorry to bother you with this tiny minor fix. Since presidio itself doesn't generate docs for OperatorConfig - it's not affected. The change is only useful when somebody else builds on top of persidio and references the OperatorConfig
Checklist

[x] I have reviewed the contribution guidelines
[ ] I have signed the CLA (if required)
[ ] My code includes unit tests
[x] All unit tests and lint checks pass locally
[ ] My PR contains documentation updates / additions if required

Thanks @eicca! Not a bother at all.


add role app to set controller's role

Coverage decreased (-0.2%) to 62.002% when pulling dab2daee6e4c0abbdf63fc5d0ad46cfc09d7ab71 on tungyueh:master into f86499373a44972c77aa8ccc7b5f10f2fab024e1 on osrg:master.

Hi @tungyueh
How about merging this features to ofctl_rest.py?
It might be convenient for Ryu users.
And, according to CONTRIBUTING.rst, Ryu project does not use Pull Request on GitHub.
How about sending your patches to<EMAIL_ADDRESS>

Coverage increased (+1.3%) to 65.821% when pulling 6833f1b7af34da7aac77b3f0c93cf2d569b5e745 on tungyueh:master into 59ea6a5231b443bfb1ef8e46eb0eed41622e7bd5 on osrg:master.


BeamX DAO. Better layout and info for Deposit dialog.

Add Max button
Add Available field
Add separator line and move Fee field below it
Make Fee amount in white color

Current dialog

New design https://zpl.io/VOLzGYj

Сhecked


Uniform vscode-extensions naming convention

Describe the bug
According to https://github.com/NixOS/nixpkgs/pull/127174#discussion_r653221472, we are trying to uniformize the case on vscode-extensions. However there are extensions that do not have all small-case characters.
Should I open a PR changing it and documenting as a breaking change?
Steps To Reproduce
https://github.com/NixOS/nixpkgs/blob/5a3bffb7058af8aa89c9c3292e7e25a573739268/pkgs/misc/vscode-extensions/default.nix#L146
https://github.com/NixOS/nixpkgs/blob/5a3bffb7058af8aa89c9c3292e7e25a573739268/pkgs/misc/vscode-extensions/default.nix#L218
https://github.com/NixOS/nixpkgs/blob/5a3bffb7058af8aa89c9c3292e7e25a573739268/pkgs/misc/vscode-extensions/default.nix#L565
Expected behavior
Extensions having all small-case characters.

Fixed: https://github.com/NixOS/nixpkgs/pull/131589


impl Serializer for &mut fmt::Formatter

Allow using &mut fmt::Formatter as a serializer for primitive types.
One use-case I have in mind in particular is implementing Display for enums that also implement Serialize.
If you believe this impl should exist, due to coherence, this crate is the only place it could exist.

Thanks! Could you give an example of how this could be used?

#[derive(Serialize)]
#[serde(rename_all="kebab-case")]
enum MessageType {
    StartRequest,
    EndRequest,
}

impl fmt::Display for MessageType {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        self.serialize(f)
    }
}

This is actually a nice idea. I frequently end up with a dev dependency on serde_json, just to do a string comparison with a serialised value. This could be very convenient.
It doesn't actually need to implement Serializer for Formatter though; a new struct could delegate for the purpose, and live in a separate crate. It could also be implemented as a macro that generates a Display or Debug impl, without the need for an extra type.

Published in 1.0.108.


add host failed

I input correct ssh user/password to add host, but get error as below:
REQUEST
{
"org.zstack.kvm.APIAddKVMHostMsg": {
"username": "root",
"password": "kelimeng",
"name": "host-tw7v",
"description": null,
"clusterUuid": "0f486da62f764c589515c5f6a8ce40a1",
"managementIp": "<IP_ADDRESS>",
"session": {
"uuid": "5b5752638fad4d20b813615c69621a9c"
}
}
}
RESPONSE
{
"org.zstack.header.host.APIAddHostEvent": {
"success": false,
"apiId": "fcd4767ae4914b9abe65edcb3e666a09",
"headers": {
"schema": {}
},
"error": {
"code": "HOST.1000",
"cause": {
"code": "SYS.1000",
"description": "An internal error happened in system",
"details": "unhandled exception happened when calling private void org.zstack.core.ansible.AnsibleFacadeImpl.1.run(org.zstack.header.core.Completion), \nshell command[sudo ansible-playbook /usr/local/zstack/ansible/kvm.yaml -i /usr/local/zstack/ansible/hosts --private-key /usr/local/zstack/apache-tomcat-7.0.35/webapps/zstack/WEB-INF/classes/ansible/rsaKeys/id_rsa -e '{"host":"<IP_ADDRESS>","zstack_root":"/var/lib/zstack/","init":"true","hostname":"9-5-127-191.zstack.org","pkg_zstacklib":"zstacklib-0.6.tar.gz","pkg_kvmagent":"kvmagent-0.6.tar.gz"}'] failed\nret code: 3\nstderr: \nstdout: \nPLAY [<IP_ADDRESS>] ************************************************************ \n\nGATHERING FACTS *************************************************************** \nfatal: [<IP_ADDRESS>] => SSH Error: Permission denied (password,hostbased).\n    while connecting to <IP_ADDRESS>:22\nIt is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.\n\nTASK: [install dependency packages for RedHat based OS] *********************** \nFATAL: no hosts matched or all hosts have already failed -- aborting\n\n\nPLAY RECAP ******************************************************************** \n           to retry, use: --limit @/home/ubuntu/kvm.yaml.retry\n\n<IP_ADDRESS>                : ok=0    changed=0    unreachable=1    failed=0   \n\n"
},
"description": "Unable to add host",
"details": "unhandled exception happened when calling private void org.zstack.core.ansible.AnsibleFacadeImpl.1.run(org.zstack.header.core.Completion), \nshell command[sudo ansible-playbook /usr/local/zstack/ansible/kvm.yaml -i /usr/local/zstack/ansible/hosts --private-key /usr/local/zstack/apache-tomcat-7.0.35/webapps/zstack/WEB-INF/classes/ansible/rsaKeys/id_rsa -e '{"host":"<IP_ADDRESS>","zstack_root":"/var/lib/zstack/","init":"true","hostname":"9-5-127-191.zstack.org","pkg_zstacklib":"zstacklib-0.6.tar.gz","pkg_kvmagent":"kvmagent-0.6.tar.gz"}'] failed\nret code: 3\nstderr: \nstdout: \nPLAY [<IP_ADDRESS>] ************************************************************ \n\nGATHERING FACTS *************************************************************** \nfatal: [<IP_ADDRESS>] => SSH Error: Permission denied (password,hostbased).\n    while connecting to <IP_ADDRESS>:22\nIt is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.\n\nTASK: [install dependency packages for RedHat based OS] *********************** \nFATAL: no hosts matched or all hosts have already failed -- aborting\n\n\nPLAY RECAP ******************************************************************** \n           to retry, use: --limit @/home/ubuntu/kvm.yaml.retry\n\n<IP_ADDRESS>                : ok=0    changed=0    unreachable=1    failed=0   \n\n"
},
"id": "31334fa1e0f34f34afdefa6540d034a6",
"creatingTime":<PHONE_NUMBER>289
}
}

On Mon, Jun 8, 2015 at 8:06 PM, Haomeng<EMAIL_ADDRESS>wrote:

<IP_ADDRESS>

Hi,
Is this machine allowed ssh by "root"?
Could you help to manually rerun following command and check if there is
any valuable information:
/usr/local/zstack/ansible/kvm.yaml -vvv -i /usr/local/zstack/ansible/hosts
--private-key /usr/local/zstack/apache-tomcat-7.0.35/webapps/zstack/
WEB-INF/classes/ansible/rsaKeys/id_rsa -e '{"host":"<IP_ADDRESS>","
zstack_root":"/var/lib/zstack/","init":"true","hostname":"
9-5-127-191.zstack.org","pkg_zstacklib":"zstacklib-0.6.tar.gz","
pkg_kvmagent":"kvmagent-0.6.tar.gz"}'
--
Yongkang You

Thanks YongKang for your response, yes, the machine can ssh by root.
I try to run the commands with root permision:
ubuntu@ubuntu-14:~$ su - root
Password:
root@ubuntu-14:~# /usr/local/zstack/ansible/kvm.yaml -vvv -i /usr/local/zstack/ansible/hosts --private-key /usr/local/zstack/apache-tomcat-7.0.35/webapps/zstack/WEB-INF/classes/ansible/rsaKeys/id_rsa -e '{"host":"<IP_ADDRESS>","zstack_root":"/var/lib/zstack/","init":"true","hostname":"9-5-127-191.zstack.org","pkg_zstacklib":"zstacklib-0.6.tar.gz","pkg_kvmagent":"kvmagent-0.6.tar.gz"}'
-su: /usr/local/zstack/ansible/kvm.yaml: Permission denied
root@ubuntu-14:~# ls -l /usr/local/zstack/ansible/kvm.yaml
lrwxrwxrwx 1 zstack zstack 44 Jun  8 06:45 /usr/local/zstack/ansible/kvm.yaml -> /usr/local/zstack/ansible/files/kvm/kvm.yaml
root@ubuntu-14:~# ls -l /usr/local/zstack/ansible/files/kvm/kvm.yaml
-rw-r--r-- 1 zstack zstack 6530 Apr 29 16:12 /usr/local/zstack/ansible/files/kvm/kvm.yaml
root@ubuntu-14:~#
Not sure why it is "Permission denied"?

It doesn't appear in the current mainline


Supporting distributed (repo contained) issues and pull requests

Why
I think repo hosted issues and pull requests are absolutely the way to go, as it allows for really distributed and self-contained repos/projects, that can be fully backed up or migrated to a different host with a git clone. One can also work on them fully offline.
What
There are already some projects supporting in-repo issues. They use different storage models, for example:

each issue is a file in the branch it concerns
each issue is metadata in a commit
all issues are in a separate branch
each issue is a branch
...

The user usually interacts with it in one of two ways:

using a cmd-line (native) client
using a web-based GUI (either remote or locally hosted)

Conclusion
If Gitea supported storing issues and pull requests directly in the repo itsself, with the same web-interface it uses for its current issues and pull requests, that would be a game changer for this self-contained meta-info, as it would suddenly become very practically viable. I would also consider it a huge advantage of gitea over github and gitlab.
This is a feature request, and I can not even give a suggestion for which model/software to use for it in the background, or whether to support multiple back-ends, or whether to evne develop a new model. I would just like to have a discussion about it.

Just found this https://github.com/MichaelMure/git-bug/tree/master/bug

good idea.

yes  a offline usage would be nice

+1


apply_kernel - what to do with the borders pixels?

In the API it's specified that the returned array/datacube has the same x and y dimension, but it doesn't specify what to do with pixels on the border. Possibilities:

Keep border pixels untouched
Pad the data with zeros before applying convolution
Replicate border pixels (padding with same values) before applying convolution

There may be other solutions, let me know what do you think.

What is common ground in other software or research papers?

Have a look here
https://docs.opencv.org/4.3.0/d2/de8/group__core__array.html#ga209f2f4869e304c82d07739337eae7c5
or here
http://image.dask.org/en/latest/dask_image.ndfilters.html

It seems like an additional parameter would make sense?!

I agree in an ideal case that should be user defined behavior, with maybe a documented default handling in the back-end implementation e.g. repeating last known value or fill with zeros

@claxn @jdries @soxofaan What's the default behavior you've implemented?

I'm not that familiar with current implementation (so for @jdries to confirm)  but as far as I understand:  we pad with NaN or 0 (which are practically equivalent here) before calculating the convolution.

Make PR with either 0 or reflect as default or set values that don't have a full window to null.
Also: Clarify how nulls are handled. Users may need to pre-process, but we should mention that in the docs.
Discuss again in Dev Telco.

@m-mohr : I haven't implemented this process yet, but when applying a kernel I would use convolution, where the following boundary cases are common (fill, wrap, and symm): https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.convolve2d.html

I'm now comparing the tools mentioned above (scypi, dask, opencv + R EBImage filter2; astropy seems to use scypi?) regarding possible border types and their defaults:

user-defined constant value iiiiii\|abcdefgh\|iiiiiii (scypi: fill 0, dask: constant, opencv: constant, r: pass number) -> openEO pass numeric value
repeat border value aaaaaa|abcdefgh|hhhhhhh (scypi: -, dask: nearest, opencv: replicate, r: replicate) -> openEO replicate
mirror from the border fedcba|abcdefgh|hgfedcb (scypi: symm, dask: reflect, opencv: reflect, r: -) -> openEO reflect?
mirror from the center of the last pixel gfedcb|abcdefgh|gfedcba (scypi: -, dask: mirror, opencv: reflect101, r: -) -> openEO reflect_pixel?
repeat image cdefgh|abcdefgh|abcdefg (scypi: wrap, dask: wrap, opencv: wrap, r: circular) -> openEO wrap

opencv additionally has: isolated (don't look outside of the data) and transparent (not sure, sounds like setting NAs?)
Defaults (nice how they all use something different):

scypi: 1
dask: 3
opencv: 4
r: 5

Two minor comments:

I would prefer mirror over reflect as a naming scheme
I have not so much experience with EO data convolution, but I would favour fill with 0 as a default behaviour

I would prefer mirror over reflect as a naming scheme

Why? reflect seems more commonly used in software.
I'm currently drafting the parameter and the description is as follows:

Determines how the data is extended when the filter overlaps the borders. Defaults to fill the border with zeroes.
The following options are available:

fill with a user-defined constant number n: nnnnnn|abcdefgh|nnnnnn (default with n = 0)
repeat the value from the pixel at the border: aaaaaa|abcdefgh|hhhhhh
mirror/reflect from the border: fedcba|abcdefgh|hgfedc
mirror/reflect from the center of the pixel at the border: gfedcb|abcdefgh|gfedcb
repeat/wrap the image: cdefgh|abcdefgh|abcdef

That was only a suggestion from my language point of view. But I agree, we should try to align with the major naming scheme of existing software.
Looks good, thanks!

Has been merged.


Fix PDClient tests not closing ScheduledExecutionService

which results in dirty error logs in console.

/run-all-tests


Add span prop as span generator config

Intention
The intention of this change is simple: letting
the user of the library configure the span
creation. This would be interesting, because
it'd let the user change the field names
and even add more fields without disrupting
the lib.
Easy of use consideration
The Default trait allows for people that do not
care about this customization to leverage the sane
defaults as it were before, so I think it's win win.
Concerns
This change is kind of intense in complexity because it
adds the requirement of static function definition. I wanted to
avoid this "power requirement" passing some configs, but
reading the tracing and tracing core libraries I got the impression
that trace macros are kind of hard to call with dynamic args.
Am I missing something in this subject?
Features
Of course with this level o customization power, this PR takes
some weights from this libraries back. For example, #5 #6 and #11
could all be solved by creating a custom span function.
Further, I want to have a "enduser.id" field on the span for my
current application and I would be able to add it as well, which
means users could add custom fields for example.
Thanks

Concerns
This change is kind of intense in complexity because it
adds the requirement of static function definition. I wanted to
avoid this "power requirement" passing some configs, but
reading the tracing and tracing core libraries I got the impression
that trace macros are kind of hard to call with dynamic args.
Am I missing something in this subject?

That's unfortunately the case - macros no do compose particularly well.
The issue I see, with this change, is that you are only allowing the user of the library to customize span creation - you are not giving them a chance to register fields after the request has completed.
E.g. there is a call to span.record with a hard-coded status_code as field name. As a user, I have no way to actually capture the status code in another field if I want to.

 I went over my head. It really makes this option difficult without more changes, like adding also an update_span function. Do you have any ideas on how to make this more simply? If you think the new_span/update_span configuration functions make sense I can take a crack at it, but I'm worried it might not align with the purposes of this lib.

 I went over my head. It really makes this option difficult without more changes, like adding also an update_span function. Do you have any ideas on how to make this more simply? If you think the new_span/update_span configuration functions make sense I can take a crack at it, but I'm worried it might not align with the purposes of this lib.

I think it's worth exploring the space - it would be great to land on a solution that allows people to inject the right level of customisation without having to copy-paste the code from this library in their own projects just to add/rename/tweak a few minor details.
If you ask for my opinion, we probably want some kind of trait with two methods attached - one to create the span, one to record fields on the span when the request completes. We can then provide a vanilla implementation while allowing customisation.

@LukeMathWalker Awesome, you have the same opinion as me. (: I pushed a new commit adding the 'update_span' function that would give the user the power to create and update the span. I'll try to add them to a trait so they user can pass an object instead of bare functions, but I already works as is I think. What do you think?

We are getting closer 😁
I still think we want a trait though, ideally with asynchronous methods - using free functions there is no way to persist any state between the creation of the span and its population later on.
This makes it impossible, for example, to use a timer - where do you stash it?
What issue did you encounter when trying with a trait?

I have included a mechanism for users to customise the root span in 0.4.0-beta.1 - please check it out and let me know what do you think @lsunsi!


0.3.5 release date estimate

Any idea when a 0.3.5 can be tagged?

+1. It would be nice to have a release that can be built via CMake

Absolutely, a patch release would be great. 😄

I agree, it would be extremely helpful to have a release that can be built with CMake.  It's been quite a while since the last release.  Can you provide an estimate of when the next release might happen?
👍

Really any release would be good at this point. Any ideas when that might happen?


Bug_Select> Multi> Error message is appearing on preview screen as compared with other components.

Describe the bug
'Cannot read properties of undefined (reading 'filter')' error message is appearing for 'Multi'. However, text 'Example' with the dropdown box is appearing for other components of Select.
To Reproduce
Steps to reproduce the behavior:

Go to 'https://storybook-preview-290--upbeat-sinoussi-f675aa.netlify.app/?path=/story/select--multi'
Verify that error message is appearing on preview screen instead of text 'example' with the dropdown box

Expected behavior
Text 'Example' with the dropdown box should appear for 'Multi' as compared with other components.
Screenshots
https://somup.com/c3nbheTfSI
Desktop:
OS: [Win 10]
Browser [chrome]
Version [Version 98.0.4758.82 (Official Build) (64-bit)]
Additional context
Due to this error message, we are unable to verify the 'labelPosition' control prop.

Storybook link: https://storybook-preview-626--upbeat-sinoussi-f675aa.netlify.app/?path=/story/accordion--default

The issue is fixed.
See Screen-cast : https://www.screenpresso.com/=eqwtd
Hence, Closing the ticket.
Thanks!


Is it possible to use joins with has_one_of_many associations?

Hello,
I was wondering if it is difficult to make associations defined with has_one_of_many usable with joins. It would be helpful in cases like the example below:
User.where(active: true).joins(:last_post).merge(Post.where(xx: true))

Is this feasible, or are there limitations that prevent this from being implemented?
Thank you for your time and assistance!

I did some explorational testing and the answer is: No, it's not possible to use joins, or joins-like methods, like includes(...).references(...), or where.association(...)/where.missing(...) with this library's associations.
That's probably ok, though not ideal.
The underlying intent of this Active Record extension is to offer a solution when an association specifically would benefit from applying an order and limit to the query. Neither of those are necessary when querying via a join... probably...most of the time? 🤷🏻
Tell me what use-cases I'm missing, but I imagine that one would still have has_many associations, in addition to this library's methods, and do the joins/etc. through those associatons:
class Post < ApplicationRecord
  has_many :comments
  has_many :published_comments, -> { where(published: true) }
  has_one_of_many :last_published_comment, -> { where(published: true).order(created_at: :desc) }
  has_some_of_many :last_two_published_comments { where(published: true).order(created_at: :desc) }
end

# All posts with published comments
Post.where.associated(:published_comments)
# Or
Post.includes(:comments).references(:comments).where(comments: { published: true }).distinct

Thank you for your response.
I asked because it would be great if we could, for example, achieve something like retrieving only the posts where the latest comment is published, similar to the sample code case:
Post.joins(:last_comment).merge(Comment.where(published: true))


ci(stale): add scheduled workflow

On weekdays, this workflow will run once in the morning*. If an issue of priority/low or priority/wontfix has been inactive for 90 days, it will be marked as stale (by adding the stale label), and a comment will be left. If it remains inactive for another 30 days, it will be closed (but can be re-opened if needed, i.e. not locked).

Updated to only target issues, after 90 days.


Add Partial listing of files in listStatus

What changes are proposed in this pull request?
This allows calling the listing of files in multiple calls (partial listing) vs in a single call using the new RPC call ListStatusPartial.
The idea is that at the beginning of each partial listing following the initial one, the call will include either the Inode ID or the path of the last file returned in the previous call to start the next listing from. Like the current implementation of listStatus, the listing is not atomic. Furthermore, if the Inode id is removed or moved to a different path the listing may throw an error, thus using the path is recommended when possible. Partial listing is preferred to normal listing when performing long running calls over the results at the client when listing large directories.
This PR also adds the option to only list items with a given prefix, and to list items starting after a given path (given that the items are sorted in lexicographical order). This will be faster than manually filtering prefixes or items as it will use the properties of the underlying data structures (rocksDB/skip list) to do this efficiently.
Note that the implementation currently needs entries of directories to be ordered so that the traversal can be continued. If rocksDB is used the elements are already sorted, so it just iterates normally. Previously, if the inodes were stored in the heap then they were in a concurrent hash table, iteration without sorting would not be valid because if the hash table is resized then the iteration is changed as the elements are put in new buckets. This PR changes the in memory children data structure from a hash table to a skip list.
This pull request only adds the functionality, none of the client APIs to access this (described below) have been implemented. This and further functionality such as filtering and refining as in https://github.com/Alluxio/alluxio/issues/10038 or filter HDFS will be added in following pull requests.
Note:
This PR makes a small change to the way a directory is listed. Currently if the owner of a directory does not have read permission of a contained directory, the contained directory will not be added to the results. After this PR, the contained directory will be included (the contents of the contained directory still will not be visible). This is more consistent with POSIX behavior.
Why are the changes needed?
These changes can be used to add compatibility with other partial listing operations in file systems:

Using S3 ListObjectsV2 continuation token. https://github.com/Alluxio/alluxio/blob/9f51b06a3986ccf030f8d416e70dfd23fab344c9/core/server/proxy/src/main/java/alluxio/proxy/s3/S3RestServiceHandler.java#L207
Using fuse readdir offset.
https://github.com/Alluxio/alluxio/blob/47cfde7c0e26d9063c0ca31673bb58b474e7ac95/integration/fuse/src/main/java/alluxio/fuse/AlluxioJniFuseFileSystem.java#L323
HDFS listStatusBatch using token.

It should also be used in the web ui which lists files one page at a time.
Does this PR introduce any user facing changes?
A new Protobuf type is added ListStatusPRequest for partial listing that includes the following fields:

One of the following offset choices

startAfter (string): Start listing after the given path (given that the items are sorted in lexicographical order).
offsetId (int64): The InodeId from which to start listing.
offsetCount: Start listing only after offsetCount items have been passed in the listing

batchSize (int32): the maximum number of items to include in the returned batch
prefix (string): Only list items that match the prefix

Each of the 3 offset choices has different advantages.

startAfter - this is generally the preferred option. In case modifications in between listing calls, items won't be listing twice, and concurrently added items may or may not be listed (i.e. this should be POSIX compatible and is similar to the S3 start after option).
offsetId - this is similar to startAfter, but has the disadvantage of if the Inode Id of the offset is deleted or moved (renamed) then the results may not ensure the above properties. It can be used when offset must only be a long and not a string.
offsetCount - this is generally more suited for applications that are concerned with the most recent offset index and not the contents in case of concurrent modifications. For example a page based UI may use this to show the most up to date items at a page offset. Of course across calls there is no guarantee of items being listed multiple time or not at all, so it is probably least suited for POSIX type usages. Furthermore it is the mostly costly as instead of directly traversing the Skiplist to the offset (O log n), it must count the elements (O n)until the offset is found.

A new Protobuf type is added ListStatusPResponse for the return of partial listing calls with the following fields:

IsTruncated (boolean) - true if the listing was truncated due to more results remaining than the batch size.
fileCount (int64) - the total number of files in the directory being listed (or -1 for recursive listings)

A new RPC is added for partial listings as follows:
rpc ListStatusPartial(ListStatusPartialPRequest) returns (ListStatusPartialPResponse);

@jiacheliu3 @rongrong could you take a first look at this PR? I imagine you two have the most context and requirement for partial listing of files.

@tcrain could we clean up the PR and close this out? I will merge this after conflict is resolved

How large is the extra state mapping?

Fuse by itself will keep a long as an offset. This will the the inode ID. The problem with this is that it is not POSIX compatible as Alluxio will return an error if the inode ID is deleted between calls. The alternative is to keep a mapping from a long to a full path in the Alluxio fuse client. Actually the partial listing call supports both types of offsets, so it is just up to the Alluxio fuse implementation to decide which to use.

Do you have use cases which require for example files 1000-1200 or the 100th page?

I added an option OffsetCount to use as the offset for counting from where to start listing. It is described in the description.

@rongrong any other comments? otherwise merging it today.

@tcrain anything blocking this from merged?

It should be fine, I just had to fix the conflicts with master.

alluxio-bot, merge this please


Add links to old support forums

See https://forum.image.sc/t/migration-of-ome-phpbb-forums-and-mailing-lists/25817/5?u=manics

Asked @lunson whether or not there was a style for a footnote, but there's not one at the moment. I'd say let's get this in ASAP, and if it looks like we're going to have to keep the old resources around for a while, we'll look into updating the formatting.
@manics : you ok to deploy?

Can do, once https://github.com/ome/www.openmicroscopy.org/pull/269 is agreed

Agreed as far as I'm concerned. Leave you to get further sign-offs.

Now deployed live at https://www.openmicroscopy.org/support/


Make default documentation link point to the stable version

I have changed the default link point to the stable version via readthedocs therefore I am closing this.


First record empty and data not synced

I have a bug when i import the data, the first record is always empty. Then when i lunch the daemon i have this log:
1 Feb 10:02:51 - Replace a record in statistics (_id=undefined)
1 Feb 10:02:51 - Replace a record in statistics (_id=undefined)
1 Feb 10:02:51 - Replace a record in statistics (_id=undefined)
1 Feb 10:02:51 - Replace a record in statistics (_id=undefined)
1 Feb 10:02:51 - Replace a record in statistics (_id=undefined)
1 Feb 10:02:51 - Replace a record in statistics (_id=undefined)
...
If i update some data in Mongo, nothing is happening in Mysql.
Where this issue can come from?

I have similar issue, did you resolve it?

If you were using MongoDB 5.x, this issue was fixed in momy v0.8.1 related to #35 .


FV - Intro screen: when clicking "learn more" button it shows an empty screen

The issue here is that the medium.com doesn't allow to open their posts from other domains and iframes - that's why we see a blank page.
I discuss it with @serdiukov-o-nordwhale and we propose to open this page in a new tab as we doing with 'learn more' button on the claim page.
@LiavGut @sirpy what do you think?

The "Learn more" page is opened
https://medium.com/gooddollar/gooddollar-identity-pillar-balancing-identity-and-privacy-part-i-face-matching-d6864bcebf54
Checked on DEV V0.22.1-1
LG V30+ // Android 8.0 // Google Chrome 81.0.4044.138
Desktop: Windows 10 // Google Chrome 83.0.4103.61

The "Learn more" page is opened in a new tab
https://medium.com/gooddollar/gooddollar-identity-pillar-balancing-identity-and-privacy-part-i-face-matching-d6864bcebf54
Checked on QA V0.22.1-2
LG V30+ // Android 8.0 // Google Chrome 81.0.4044.138
Desktop: Windows 10 // Google Chrome 83.0.4103.61


Added no buttons support for ui-select

Added no buttons support for ui-select
Fixed documentation for ui-date
Fixes #572

Thanks for the PR


Add a new method to similar

Something to create a similar layer but with a different type (e.g. same as a worldclime layer but with Bool values)
similar(layer::ST, T) where {ST <: SimpleSDMLayer}

or something to that effect.

Something like this works:
function Base.similar(layer::LT, ::Type{T}) where {LT <: SimpleSDMLayer, T<:Any}
    newgrid = fill(nothing, size(layer))
    newgrid = convert(Matrix{Union{T,Nothing}}, newgrid)
    for i in eachindex(layer)
        if !isnothing(layer[i])
            newgrid[i] = zero(T)
        end
    end
    return SimpleSDMPredictor(newgrid, layer.left, layer.right, layer.bottom, layer.top)
end


Backspace is not working frequently

When I type something and press backspace , nothing happens (happens very often, but not always). I have to press backspace 10 times or more to make it start working again.

I installed Engram layout using keyman keyboards software on linux (Pop!_os)

Same -- I had the same problem with backspace on ubuntu for certain applications but not others. I installed Engram as per the instructions in the repo rather than use Keyman for Linux.

Thanks @binarybottle @Tristen-Sinanju for the info 👍


Ability to select an icon from one of my custom packs from a scrolling view of them rather than searching by name.

Is your feature request related to a problem? Please describe.
Often I want to be inspired by the icons that I have collected rather than typing in an idea; eg "learning" and hoping something comes up. For instance I have a folder called Ephemera and I have an icon of a manilla folder which is called (inexplicably) "3eadc65f Ec45 4fd2 B32A 300250f68962" So it's never going to come up even if i type in folder. Besides, if I typed in collection it wouldn't come up.
I have an 8bit cherry icon but I'm never going to be inspired to use this for "Gaming" unless I see it when I go to change the icon.
Describe the solution you'd like
I'd like to be able to browse custom icon packs in a window and select from them rather than searching using a file name.
Describe alternatives you've considered
Going through my icons and giving them long names with everything they could be associated with but, well, you know.
Additional context
Add any other context or screenshots about the feature request here.
Just a display which I can scroll down of my own icons. I don't need to search the regular icon packs.

Interesting thought and enhancement. I'll definitely consider that in a future version.

Thanks! :)


Minor cleanup

Remove GC safepoint call (not in Julia 0.4). Fix for timing output. Other minor cleanups.

@kpamnany  Would you register Dtree, so we can add it to the REQUIRE file? After the recent PRs Celeste no longer works because it needs Dtree.

I'll register it, but was hoping to put it off till post-deadline. You just need to pull the latest version of Dtree and I think everything works. Travis is passing...

OK, that's fine. Unfortunately the libraries Dtree (MPI?) needs aren't
installed correctly on my development workstation. In the meantime, I'm
going change Celeste so that it only uses Dtree if an environment named
"USE_DTREE" is set.
On Tue, Apr 5, 2016 at 1:47 PM kpamnany<EMAIL_ADDRESS>wrote:

I'll register it, but was hoping to put it off till post-deadline. You
just need to pull the latest version of Dtree and I think everything works.
Travis is passing...
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/jeff-regier/Celeste.jl/pull/214#issuecomment-205981062


invalid manifest

I tried cloning & deploying this repo per instructions and received an Invalid skill manifest error.

Hi @nealrs - I tried using the same steps and could not reproduce this.  I've seen this sometimes happen when you use an profile other than 'default' and usually traces back to a configuration or other error.  A few things you might try:

recreate the configuration using ask init
recreate the default profile to be the one you want to use
verify you have the latest version of the CLI (ask --version, update it: npm install -g ask-cli)


Parse old UCAN versions

We should be able to parse old UCAN versions and transform them into a canonical inner representation.
For example, this is an old-version UCAN we should be able to parse:
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsInVhdiI6IjEuMC4wIn0.eyJhdWQiOiJkaWQ6a2V5OnoxM1YzU29nMllhVUtoZEdDbWd4OVVadVcxbzFTaEZKWWM2RHZHWWU3TlR0Njg5Tm9MM05NTTQyblBuWFJWUnZnNW9TU1BldjNSNmJpQURTYnZ6WVNnNFBibWZWQ2I0YU56YjdHb2FUS2V4Vjl5SGNGcFN0NlEzSjNtVFNhdTNLajNqUFVkdmZWMXF4a2tYQU00cHM1RFJFRXptY2ZjQkZ0aHp5WmlnNmpBdlpKVERvVkwyTllwMnh4VHF0aExuVXpaN01mdGRHV2p4b1JtVkszdFI0b2FQcENUUVZEZXFBNWt6YVpGTEdHRTdWaDluUnh6eTFTZzJTYWNiNE5TTHN4NzFQWTgyUUtBM2RIVFBXYktMakZ5THdob0NuWUpYSGd2eVBnenF5QkJoelVvM2U1NXF4b29LYVF5ZFBuUUdBbUFXblNndnNKbk5QZGlIV2h1VE1FS1k4TDRXUVlUQTJMQzFvWFpKdXVIRGhhRGJCaHdlY2l6a1BTU0xTZUxKTHhKUG1KRHlaODY5cHpKOFF4ZG5ONWpOIiwiZXhwIjozMjc0MjI2NTcxNiwiZmN0IjpbXSwiaXNzIjoiZGlkOmtleTp6MTNWM1NvZzJZYVVLaGRHQ21neDlVWnVXMW8xU2hGSlljNkR2R1llN05UdDY4OU5vTDNXa0IxcHkxUXd1ZGJINVdqbkZFa1hnN25kRkMyMVJjRnNheTNrN0V0Z3J0NlgzVjUxajhFV2JOQVFDR1h2WHpqMnZCZkYzdkdvMWRoWU5yWmJiblJLZVFqMzVlaWtZOXBTWWhNb3BONmZxTUNrd2RDcnJmVmd6UFNxUndZdXczV0ZaOFphQWIzRDdGNjQ0WVhFaURpb3g0bjhaSEtxeXc2WGtta1htcXlDWmE4eGdpYUVETDdVeW90OWlZMVN4Zkp3ZlZ3UVhDdzU3d1EyZkRReHVrVndOVGVFaXdlRDNMbXpveWVQd3pMTmVKUEsyUWd1ZlI0MW1BVXdDbjR3RldKOVJjamdjMlc1cFdOWWFpY3RWakNRWko0S1FpYVF5Z1B6bjRQenMxZlRQcnZmTGY1Z3NaRW5BRDhhcm5aOXRkaVhrNG9Sb1F0bXRuOVk0eFVORlZNNE1CMkFwcHJId1B1ZHdRTCIsIm5iZiI6MTYzODI2NTY1NiwicHRjIjoiU1VQRVJfVVNFUiIsInJzYyI6IioifQ.ijri5HjjJme0izpz0OILS-6KbDamiXbSLllsTPfhEnyWj_xRw1aKU-O8Al0oc8BPE5N8hY-RivqD893eNer39YBqOiyv2W1NoypBL94AQZb4OtShq6b0N8qJ6fA8nKqzLWSed2II2jCsTCy12mqYQtyShE7E9OliF_p-IswnauxQQYhKSNGNJgINVLAMCrhQzeSuLjTocPPbRpsoo8ra1UwYXh34XM2nupBDwtQp8DdUMShIsFBKFk4Gcy3vRQP0E2BWaNTZ5oMYzo0u54VcLwMMlV5Sh7-VDk_vJFOlHmGEev022s06lejWPv3YuP5itoIi6CdejZdZGjLH8jL1dA

With the ucan library in webnative, it decodes into this:
{
  "header": {
    "alg": "RS256",
    "typ": "JWT",
    "uav": "1.0.0"
  },
  "payload": {
    "aud": "did:key:z13V3Sog2YaUKhdGCmgx9UZuW1o1ShFJYc6DvGYe7NTt689NoL3NMM42nPnXRVRvg5oSSPev3R6biADSbvzYSg4PbmfVCb4aNzb7GoaTKexV9yHcFpSt6Q3J3mTSau3Kj3jPUdvfV1qxkkXAM4ps5DREEzmcfcBFthzyZig6jAvZJTDoVL2NYp2xxTqthLnUzZ7MftdGWjxoRmVK3tR4oaPpCTQVDeqA5kzaZFLGGE7Vh9nRxzy1Sg2Sacb4NSLsx71PY82QKA3dHTPWbKLjFyLwhoCnYJXHgvyPgzqyBBhzUo3e55qxooKaQydPnQGAmAWnSgvsJnNPdiHWhuTMEKY8L4WQYTA2LC1oXZJuuHDhaDbBhwecizkPSSLSeLJLxJPmJDyZ869pzJ8QxdnN5jN",
    "exp":<PHONE_NUMBER>6,
    "fct": [],
    "iss": "did:key:z13V3Sog2YaUKhdGCmgx9UZuW1o1ShFJYc6DvGYe7NTt689NoL3WkB1py1QwudbH5WjnFEkXg7ndFC21RcFsay3k7Etgrt6X3V51j8EWbNAQCGXvXzj2vBfF3vGo1dhYNrZbbnRKeQj35eikY9pSYhMopN6fqMCkwdCrrfVgzPSqRwYuw3WFZ8ZaAb3D7F644YXEiDiox4n8ZHKqyw6XkmkXmqyCZa8xgiaEDL7Uyot9iY1SxfJwfVwQXCw57wQ2fDQxukVwNTeEiweD3LmzoyePwzLNeJPK2QgufR41mAUwCn4wFWJ9Rcjgc2W5pWNYaictVjCQZJ4KQiaQygPzn4Pzs1fTPrvfLf5gsZEnAD8arnZ9tdiXk4oRoQtmtn9Y4xUNFVM4MB2ApprHwPudwQL",
    "nbf":<PHONE_NUMBER>,
    "ptc": "SUPER_USER",
    "rsc": "*"
  },
  "signature": "ijri5HjjJme0izpz0OILS-6KbDamiXbSLllsTPfhEnyWj_xRw1aKU-O8Al0oc8BPE5N8hY-RivqD893eNer39YBqOiyv2W1NoypBL94AQZb4OtShq6b0N8qJ6fA8nKqzLWSed2II2jCsTCy12mqYQtyShE7E9OliF_p-IswnauxQQYhKSNGNJgINVLAMCrhQzeSuLjTocPPbRpsoo8ra1UwYXh34XM2nupBDwtQp8DdUMShIsFBKFk4Gcy3vRQP0E2BWaNTZ5oMYzo0u54VcLwMMlV5Sh7-VDk_vJFOlHmGEev022s06lejWPv3YuP5itoIi6CdejZdZGjLH8jL1dA"
}

We can detect these old versions by looking for the uav field in the header (instead of the ucv field, as you'd expect from the spec).
It's open for discussion what ucv version we map uav: 1.0.0 to. For that it'd be useful to know what version strings we've used for ucv so far. I've seen 0.5.0 in some comments and 0.7.0 in the spec so far. Is there a history of version strings @expede ?
I'd propose just mapping uav: 1.0.0 to ucv: 0.0.1 for now.

Was just looking at this. Much more important issue: How do we handle the rsc key?
I think the most correct translation of this old UCAN into version 0.7.0 would be:
{
  "iss": "did:key:...",
  "aud": "did:key:...",
  "nbf":<PHONE_NUMBER>,
  "exp":<PHONE_NUMBER>6,
  "fct": [],
  "att": [
    { wnfs: "*", cap: "SUPER_USER" },
    { app: "*", cap: "SUPER_USER" },
  ]
  "ptc": "SUPER_USER",
  "rsc": "*"
}

But that seems weirdly fission-specific. Of course that's just what it is now that we've been the only users for UCANs so far.
Should we perhaps have this logic somewhere different than within ts-ucan? Thoughts @expede?

Another idea of how to translate this would be by just translating it into a single capability { rsc: "*", cap: "SUPER_USER" }.
And then it's in the hands of the capability semantics definition to interpret correctly.


Warning Task type ... declares property that is not annotated even if property is annotated

Expected Behavior
There is no warning about not annotated properties if they are annotated.
Current Behavior
If annotated property (eg. having @Internal) is declared in base class then it is detected as not annotated in subclasses by task validateTaskProperties from java-gradle-plugin.
Eg. for example project linked below:
:buildSrc:validateTaskProperties
Task property validation finished with warnings:
  - Warning: Task type 'com.example.FooTask' declares property that is not annotated: 'foo$buildSrc_main'.

Steps to Reproduce (for bugs)
Run any task (eg. projects) on this example project: https://github.com/koral--/gradle-java-plugin-internal-property-bogus-warning
Your Environment
Build scan output does not contain messages from buildSrc project is it intended?

On Gradle 6.5 warning message is a little bit different but issue seems to be still valid:
   > Warning: Type 'BaseTask': field 'foo' without corresponding getter has been annotated with @Internal.
   > Warning: Type 'BaseTask': property 'foo$buildSrc' is not annotated with an input or output annotation.
   > Warning: Type 'FooTask': property 'foo$buildSrc' is not annotated with an input or output annotation.

tl;dr - the workaround available now is to either use public properties or explicitly annotate only the getter with @get: syntax.
This is an interesting corner case. The internal visibility seems to be the culprit there. If the property is public or if it is annotated as @get:Internal then everything works fine. By default, Kotlin generates a backing private field named foo and a getter for it and applies annotation to the field. The exact JVM name of the getter depends on visibility though - the name for the getter of the internal field is mangled and becomes getFoo$buildSrc. Gradle is unable to determine the connection between field and getter and considers them separate "properties" causing all three warnings. We could try to do a better job there by examining Kotlin metadata - looks like it contains all the information needed to make the connection.

There is no plan to fix this automatically since putting this annotation on the getter works fine.


Undefined behavior in mbedtls_ssl_read

Description

Type: Bug
Priority: Blocker

Bug
OS
linux
mbed TLS build:
Version: 2.21.0
OS version: Ubuntu 1
Configuration: please attach config.h file where possible
Compiler and options (if you used a pre-built binary, please indicate how you obtained it):
Additional environment information:
GCC 9
Expected behavior
Calling mbedtls_ssl_read(socketInfo->SSLContext, NULL, 0); should decrypt and readable socket data to its internal buffer without actually reading anything to user buffer.  This is useful in order to do before a call to mbedtls_ssl_get_bytes_avail to make sure it is accurate.
Actual behavior
in mbedtls_ssl_read( mbedtls_ssl_context *ssl, unsigned char *buf, size_t len ), buf is unchecked and eventually passed to memcpy at line 5378.  Passing a NULL pointer to memcpy is undefiened behavior (AFAIK, refer HERE), even if the size parameter is 0.  In practice, this is not likely to cause an issue as most memcpy implementations will probably not read from src if size is 0, but GCC 9 debug build caused an abort if memcpy is called with buf == NULL.
Suggested fix:
Surround these lines with an if that tests buf for NULL
Line 5378:    memcpy( buf, ssl->in_offt, n );
Line 5379:    ssl->in_msglen -= n;
if (buf)
{
memcpy( buf, ssl->in_offt, n );
ssl->in_msglen -= n;
}
Also it may help to add an assertion at the start of the function to check that if buf is NULL, len must also be NULL, but I dont know if this adds any real value.
Steps to reproduce
Can be seen just by looking at the code

Even with older GCC versions, UBSan detects calls to memcpy and friends with a null pointer and a size of 0, and we test with UBSan on our CI. I guess that we don't happen to have a test case with mbedtls_ssl_read(ssl, NULL, 0). @Patater Can this be added as part of the SSL unit tests that your team is working on?

I just got caught by this issue again a few years on!  I checked in the current master and the same issue is still present.  Last time I found the issue by chance.  This time I found it due to asan error message.  It would be great if this could be fixed given that it is the addition of one line of code that has no negative consequences.

@ashesman Unfortunately we have a huge backlog. Many of the 863 open issues are one-line fixes. Our pull request backlog is also bad but we are generally keeping up with small stuff, would you mind making a pull request with the bug fix and a unit test?

I thought from in the past I was not able to submit a PR without being approved by Mbed?  I seem to remember in the past my work would not be accepted as I was not approved?  Maybe this has changed.

In the past you had to agree to a copyright assignment, maybe that's what you're thinking of? Not an approval per se, but there was this formality before we could merge code. This no longer exists: contributors now retain copyright, and only need to accept the developer contributor agreement (basically, you allow the code to be licensed under Apache and GPL, and you affirm that you have the right to do so), which you do by including a signoff line in git commit messages (git commit -s).

PR is here.  I would have liked to add a unit test but dont understand the test framework and most likely would do more harm than good.  Even without a test, this is still an important fix to this function.


keep CamelCase for classes

probably an error from myself...
Here and Here you have defined function in CamelCase. It should be under_score.
def error_response():
  pass

ok done

You should close your issue from your commit message .
Just type : #fix issueNumber


Fix writing to custom rundir

The previous code wasn't actually writing to the expected files, it was
just creating the writer!
:facepalm:
Closes https://github.com/informalsystems/apalache-tests/issues/76

[x] Ran make fmt-fix (or had formatting run automatically on all files edited)
[x] Entry added to UNRELEASED.md for any new functionality

Sorry for the error here.
I think my slight refactor helps make a future error of this sort less likely?

Gonna force this through, cause it's a trivial fix, and will unblock the benchmark fix that's pending.


Vim mode - Insert mode next line with right key

Describe the bug
While on Vim insert mode, we are able to go to the next line by going to the end of the current one.
Real Vim doesn't let that happen.
To Reproduce
Steps to reproduce the behavior:

Go to a random Kata
Select VIM in the top right corner
Click on the text area to start writing
Press down i to go into Vim's insert mode
Press the right arrow key to go to the end of the current line and notice it changing to the next line.

Expected Behavior
It should stay in the same line, when pressing the right arrow in the end of the current line.

Closing because this is not Codewars issue or CodeMirror's.
CodeMirror's Vim keybindings behaves exactly like base CodeMirror when in insert mode. See this mentioned in https://codemirror.net/demo/vim.html


how to submit tranaction to send token to other address in nodejs backend code by using lucid-cardano?

I have researched a lot to transfer token by using lucid-cardano, then didn't find reasonable answer yet, please help me how to transfer token by using lucid-cardano package, now in example folder, there is no code for that.
Thanks

Talk to Onsite Control on the [Live help website] (https://onsitecontrol.online/) so that your problem can be investigated. To get a quicker response, kindly use the live chat icon on the lower right side to start a chat with a member of our service.

To send assets you concatenate the policy id with the asset name:
const policyId = "abc....";
const name = "TestToken";
const unit = policyId + fromText(name);

const tx = await lucid
    .newTx()
    .payToAddress("addr...", { [unit]: 1n })
    .complete();


List operations/facilities that the user has access to

Description:
In order for an external user to file a report, they need to be able to tell us which operation they will be filing for, and we will need the list of facilities associated with the operations. Operations can consist of 1 (SFO) or more (LFO) facilities. We must only fetch the operations & facilities that the user has permission to see, which at least for now means they belong to the users operator. This information is entered in registration and we need to fetch it.
Blocked
Blocked by #108
Acceptance Criteria:
Given I am logged in as an external user,
When I start to file a report,
Then I am presented with a list of my operations and their associated facilities
Development Checklist:

[ ] Create a placeholder page to show the list
[ ] Add a link from the "Reporting logged-in homepage" to the new placeholder page
[ ] Create an endpoint that queries the database for the operations that the current users operator owns and their corresponding facilities
[ ] Display basic information on the placeholder page so that we can view the results
[ ] Meets the DOD

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

[ ] User story is included
[ ] User role and type are identified
[ ] Acceptance criteria are included
[ ] Wireframes are included (if required)
[ ] Design / Solution is accepted by Product Owner
[ ] Dependencies are identified (technical, business, regulatory/policy)
[ ] Story has been estimated (under 13 pts)

Definition of Done (Note: If any of these points are not applicable, mark N/A)

[ ] Acceptance criteria are tested by the CI pipeline
[ ] UI meets accessibility requirements
[ ] Configuration changes are documented, documentation and designs are updated
[ ] Passes code peer-review
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Ticket is ready to be merged to main branch
[ ] Can be demoed in Sprint Review
[ ] Bugs or future work cards are identified and created
[ ] Reviewed and approved by Product Owner

Notes:

I've left the visual representation quite vague for now. I interpreted the main goal of the card to be fetching the relevant data.

I'll remove the blocking tag, this can live in a public space for now and be brought behind the login at a later point

@BallardRobinett how close are we to having this ticket complete. I see that it's blocking 217 so would be good to get this done quickly.


Create pull request to add crewai to official comfyui manager

how to
Description
ComfyUI-Manager is an extension designed to enhance the usability of ComfyUI. It offers management functions to install, remove, disable, and enable various custom nodes of ComfyUI. Furthermore, this extension provides a hub feature and convenience functions to access a wide range of information within ComfyUI.
we want to add this project to comfyui manager registry

https://github.com/luandev/ComfyUI-CrewAI/pull/11#issue-2378731889


Azure WebApp Deployment Failure

I have a webapp that has been deployed successfully before (currently still on .NET Core beta8) but deployments today are failing with the output:
Lock file Microsoft.DotNet.ProjectModel.Graph.LockFile contains msbuild projects but there is no export file Published 0/1 projects successfully
I can provide the entire output if needed.
Has there been a change in the Azure/Kudu config that might cause this to fail? The last successful deployment was Monday 5/16.

Please see http://stackoverflow.com/questions/37381377/azure-asp-net-rc1-deployment-failure/37381832#37381832 for workaround.

@davidebbo the deployment "succeeded" but the site is returning a 503. I've tried stopping and starting the Web App and get the same result.

Can you share your web app name, either directly or indirectly? This will help us investigate. Thanks!

It's 'prorata-qa'. Thanks!

I turned on logging in your web.config, and got this error in d:\home\logfiles:
System.InvalidOperationException: No service for type 'Microsoft.Dnx.Runtime.IApplicationEnvironment' has been registered.
   at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Framework.DependencyInjection.ServiceProviderExtensions.GetRequiredService[T](IServiceProvider provider)
   at Microsoft.AspNet.Hosting.Program.Main(String[] args)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider)
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

https://github.com/aspnet/Home/issues/1198 might offer clues. Maybe related to being on beta8, which is even older than rc1. The deploy.cmd I shared was for rc1. Maybe try adjusting it?

I changed the line to
set DNX_RUNTIME="%USERPROFILE%\.dnx\runtimes\dnx-CLR-win-x<IP_ADDRESS>-beta8"
and redeployed and got the following output:
Command: deploy.cmd
Handling ASP.NET 5 Web Application deployment.
'dnx-clr-win-x<IP_ADDRESS>-rc1-update1' is already installed in D:\local\UserProfile\.dnx\runtimes\dnx-clr-win-x<IP_ADDRESS>-rc1-update1.
Adding D:\local\UserProfile\.dnx\runtimes\dnx-clr-win-x<IP_ADDRESS>-rc1-update1\bin to process PATH
The system cannot find the path specified.
An error has occurred during web site deployment.
The system cannot find the path specified.\r\nC:\Program Files (x86)\SiteExtensions\Kudu\55.50526.2249\bin\Scripts\starter.cmd deploy.cmd

There is another line that refers to rc1 in the script. Probably needs to be changes as well.

Also, might be healthy to hit Restart in portal to get rid of various temp files and start clean after the various experiments.

Ok, that worked! Thanks so much for your help again @davidebbo! Now to prioritize migration to RC2!

Awesome! I added a line clarifying that in the SO answer.


support forms of push notification from dotmesh

increasingly much stuff is polling dotmesh's API

dotscience-committer, which does a List every second
dothub's frontend JS, which polls for dots on your account
dotscience experiment tracker, polling for provenance graph and run data (involves looking at every commit of every dot)

it would be great to support one or more forms of push notification, so that these things can stop polling

I think this is done? We have webhooks now right


Example link in lesson text opens to FCC website in same tab

Challenge Name
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph
Issue Description
In the lesson text opens to freecodecamp.org website in the same tab. My suggestion is to have it open to a new tab so the camper does not lose lesson they are on.
Browser Information
Browser Name, Version:
Firefox Quantum 60.0.1 (64-bit)
Chrome: Version 66.0.3359.117 (64-bit)
Operating System: Windows 10 Pro 64-bit
Mobile, Desktop, or Tablet: Dell Latitude Laptop (15")

Normally I agree that links should open in a different tab but in this case I don't think it should open to a new tab. This is an example of the type of link that does not open into a new tab. If it opened into a new tab, it would be using HTML that is different than the HTML that the lesson text says it is an example of.

@beaucarnes Agreed, although if a camper though decides to click on that link as it is an active link, it will bring them to the freecodecamp.org website in the same tab they are viewing the lesson.

We could change the example to use a _blank. Ideally, we don't want to take users away from their lesson. I don't think there will be many queries over the target attribute.
Notes to contributors, this should be fixed in the freecodecamp/curriculum repository, the code is not held in learn.

I agree with both of you now. I noticed that target="_blank" is introduced in the previous lesson so hopefully people will understand when it is used in this lesson.

Issue moved to freeCodeCamp/curriculum #18 via ZenHub


Use Trusty (default Linux dist) for Travis-CI

Codecov Report

Merging #2714 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2714      +/-   ##
==========================================
- Coverage   69.37%   69.36%   -0.02%
==========================================
  Files         871      871
  Lines       42123    42123
  Branches     5716     5716
==========================================
- Hits        29224    29218       -6
- Misses      11029    11032       +3
- Partials     1870     1873       +3

Impacted Files
Coverage Δ

...in/pinot/core/query/pruner/ValidSegmentPruner.java
57.14% <0%> (-28.58%)
:arrow_down:

.../impl/dictionary/LongOffHeapMutableDictionary.java
81.81% <0%> (-10.91%)
:arrow_down:

...ore/query/scheduler/resources/ResourceManager.java
87.09% <0%> (-9.68%)
:arrow_down:

...e/operator/dociditerators/BitmapDocIdIterator.java
60.71% <0%> (-3.58%)
:arrow_down:

...not/broker/broker/helix/ClusterChangeMediator.java
62.71% <0%> (-3.39%)
:arrow_down:

.../impl/dictionary/BaseOffHeapMutableDictionary.java
81.14% <0%> (-2.86%)
:arrow_down:

.../pinot/core/query/scheduler/PriorityScheduler.java
78.08% <0%> (-2.74%)
:arrow_down:

...inot/transport/netty/NettyTCPClientConnection.java
82.99% <0%> (-2.73%)
:arrow_down:

...lix/core/realtime/PinotRealtimeSegmentManager.java
73.54% <0%> (-1.06%)
:arrow_down:

...ebalance/ReplicaGroupRebalanceSegmentStrategy.java
82.62% <0%> (-0.85%)
:arrow_down:

... and 7 more

Continue to review full report at Codecov.

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


IGNITE-17097: Add ServicesResourceTransformer to shade-plugin

https://issues.apache.org/jira/browse/IGNITE-17097
There is a bug introduced in micronaut 3.4.0.
The workaround described here https://github.com/micronaut-projects/micronaut-core/issues/7144

Works for me.


calling only --with-xcover still breaks at can't use both flags

Actual:
Tried using only "--with-xcover" or "--with-xcoverage" but it keeps stopping at error

its weird, because as per lines 44-46 this shouldn't have been a problem.
Is there any possibility of "options.enable_plugin_coverage" returning true by default?

Noticed a pattern
it happens when I try to run nosetets on complete directory like
nosetests ./tests/ --withxcover
but when I run on particular file nosetests ./tests/common/apis/test_homepage.py --withxcover
it works without complain
But I need to run on the whole directory instead of single file, any suggestions?

it not an issue so closing https://github.com/cmheisel/nose-xcover/issues/11#issuecomment-244949227
@cmheisel : i'm thinking to raise PR with change of error message & log little more convenient & self understood, should I go ahead?

@p00j4 -- Sure thing, I'd gladly welcome a PR like that!

@cmheisel : could you please review & take in: https://github.com/cmheisel/nose-xcover/pull/29


[Addition]:

Hotspot b58 Addresses
112g4pSi6sXApUfZEPrnQh9xyfPeNAMXx1p4fGwdmNA6roLfbe8W
11YBwDzf11ts775yZKY6StFDwnJMDbChuWvbaFNovXHnWgqcYyG
11FZw51CdK7YjNCiWX5mGe2KjqCvRz5rdeZVguFqjp8SXPDYTps
11ZBtHh1cBavTD2dX8RBgdakmYQ1M7J1gN2WFo9w3jkLrpzoH6n
11LP2NzYSsV8jJUUZvzW9c3ThM1JJt7VoBegSPoz7xbjCgaAXP2
112VXVhbqJrkq8BBD3stCKexSDQsQ2ozyVxLLL1mCHpCyhjGXaD3
112bc3NGGB5qnfSTuAyBCWUGravA8ZDMnTpoDSNHW3xZX5vbVhGX
11mBjtDq4ugCuSkgkrpagQPeAwp7tatn2hMYq88sDu2kwEA2HSr
Discord Handle
No response
Reason(s)
This cluster all have the same unlikely setup (COTx, 15dB, 0m)
All belong to the same wallet: 14MF64NpiST8zJTUxxzunMpM4Z9bq5pSGAFiCdaGUBiy7T1wMmM
Only witness each other, and with very strong signals.
Seem to be blind to other clusters close by to them.
Several hotspots are in forested unpopulated areas.
Neighbouring clusters all have similar characteristics.

Good work adding to the next PR.


Support detecting print/console.log

Overview
Hardhat supports the console.log feature, which works the same as the print feature that Vyper added in v0.3.3
It would be great to support this keyword (perhaps as an INFO log?)
Specification
According to Vyper's docs: https://vyper.readthedocs.io/en/latest/built-in-functions.html#print
If a static call is detected to a specialized address, interpret that call as a printout statement. This requires transactions traces. It might be better off partially implemented in evm-trace
Dependencies
#347

note there are currently two formats floating around: https://github.com/NomicFoundation/hardhat/issues/2666#issuecomment-1185134777
nomic folks seem open to the idea of switching to the generic version of console.log, but they might be a bit backlogged

This requires transactions traces. It might be better off partially implemented in evm-trace.

We're thinking that this will support live networks?  My initial thought was that this would be leveraged via eth-tester or anvil or some kind of local testnet.  Generally speaking, I'd never want console.log calls in a live contract.
Though I suppose that would be fairly limiting on which nodes/backends you could use.
So to fill out the spec, we're looking to basically just use the ape logger to output this calldata if it's seen on any transaction?

This requires transactions traces. It might be better off partially implemented in evm-trace.

We're thinking that this will support live networks? My initial thought was that this would be leveraged via eth-tester or anvil or some kind of local testnet. Generally speaking, I'd never want console.log calls in a live contract.

Yes, although I have seen people accidentally deploy to a public network. But maybe turn it off by default in that scenario.

Though I suppose that would be fairly limiting on which nodes/backends you could use.

Yes, it should basically opt in if it is essentially "cheap/free" to get the data via trace for display. May be also a good idea to disable it by default in ape test unless -s is provided that prints those out to the console during runtime?

So to fill out the spec, we're looking to basically just use the ape logger to output this calldata if it's seen on any transaction?

And decode it, yes

Don't know if there's any "official" docs anywhere (other than the brief API docs for print()), but there's some existing implementations like @charles-cooper's titanoboa implementation and some discussion in some GH issues.  Enough to get something working.
Vyper's default print() encoding is pretty straight forward and nicely dynamic. Proof of concept:  https://gist.github.com/mikeshultz/a254eac9c6e2c84ce362ff11b16f0122
Will figure out Hardhat's Solidity contract (and the Vyper compat) next.

Hardhat proof of concept: https://gist.github.com/mikeshultz/7c2847c2d0b4f48940ba809e61513daf
A much more rigid ABI.  We could probably auto-generate the selectors/abi by just mixing and matching the base types but this was pretty straight forward to generate by just compiling the contact.  And as @antazoey pointed out, we may have use for the ContractType for enriched traces.


Sampler for this object is not defined

Hi,
I am trying to run the current repo for example in pedestrians crosswalk. After installing all the packages, I am getting this error.

The issue has been raised before but is closed now. Any help would be appreciated
Thanks.

This seems to be an issue with Scene not being sampleable, where initialstate(mdp) returns a Scene and the history recorder will try to sample an initial state.
A quick fix would be to add the following to the top of the "ped_crosswalk_with_blindspot.jl" file:
using Random
Base.rand(rng::AbstractRNG, s::Scene) = rand(rng, x.entities)

But @ancorso should comment on whether this is a fix that should live in AdversarialDriving.jl or AutomotiveSimulator.jl.

using Random
Base.rand(rng::AbstractRNG, s::Scene) = s

This was only working in one of the fixes you have mentioned above. The output is now:

I wanted to ask if there is any other script to run for visualization of the crosswalk scenario.

I think running that file creates a "blindspot.gif" file, no?

Yes, it does (my bad).
Thanks a lot for the help. Looking forward to contributing to this great work :)

No worries! Happy to help :)

I'll leave it open so we can resolve it for everyone else

Thanks for tracking the issue down @mossr.
It looks like this new requirement stems from a POMDPs.jl v0.9, where initialstate(mdp) should return a distribution. I'll make the needed change.

Fixed by #6


Able to create separate semesters with sets of classes and calculate overall average

Semesters have been done, only semester averages are left


Add new options to toggle conversion for font smileys and emojis

Update filter code
Update readme

thanks. will make a release soon.

You are welcome :+1:


Add emoji replacement case insensitive

Recently we find a problem with how our actions where declared. Some Subjects have the {{OK}} in capital letters, others like {{Ok}} and the emoji substitution didn't work.
With this patch any combination makes the substitution works.

What is stopping you from creating actions in the right way with capital letters? :)

Oh sh**t, checking both wiki articles:
https://github.com/ableev/Zabbix-in-Telegram/wiki/Emoji-in-messages
https://github.com/ableev/Zabbix-in-Telegram/wiki/Trigger-severity-as-Emoji
I realize that the emoji_maps are different!
I have the version on the first article with the keys in lowercase
My bad, sorry.


Unable to install "libgtkmm-3.0-dev" on ubuntu 22.04 LTS

Please describe the bug
When installing the dependencies on ubuntu 22.04 LTS detailed in the readme:
sudo apt install libgtkmm-3.0-dev
returns:
libdbus-1-dev : Depends: libdbus-1-3 (= 1.12.20-2ubuntu4) but 1.12.20-3~devacom is to be installed
Then, attempting to fix it with:
sudo apt install libdbus-1-3=1.12.20-2ubuntu4
returns:
The following packages will be REMOVED:
  accountsservice apport at-spi2-core avahi-daemon blueman bluez
  brltty colord dbus dbus-bin dbus-daemon dbus-x11 exo-utils
  file-roller fprintd gcp gcr gir1.2-ayatanaappindicator3-0.1
  gir1.2-gtk-3.0 gir1.2-webkit2-4.0 glib-networking:i386
  gnome-keyring gsettings-ubuntu-schemas
  gstreamer1.0-plugins-good:i386 gvfs gvfs-backends gvfs-daemons
  gvfs-fuse gvfs-libs ipp-usb language-selector-common
  libasound2-plugins:i386 libavahi-client3:i386 libcups2:i386
  libdbus-1-3:i386 libdecor-0-plugin-1-cairo:i386 libfaudio0:i386
  libgamemode0:i386 libgtk-3-bin libpam-fprintd libpcap0.8:i386
  libproxy1-plugin-gsettings libpulse0:i386 libsdl2-2.0-0:i386
  libsoup2.4-1:i386 libthunarx-3-0 libwine:i386 libxfce4ui-2-0
  libxfconf-0-3 lutris modemmanager network-manager
  network-manager-config-connectivity-ubuntu network-manager-pptp
  networkd-dispatcher nvidia-settings packagekit packagekit-tools
  pinentry-gnome3 pkexec policykit-1 policykit-1-gnome polkitd
  pulseaudio-module-bluetooth python3-apport python3-keyring
  python3-launchpadlib python3-secretstorage
  python3-software-properties rtkit screen-resolution-extra
  software-properties-common thunar thunar-volman tlp-rdw
  ubuntu-standard udisks2 upower wine32:i386 xdg-desktop-portal
  xdg-desktop-portal-gtk xfconf xorg xserver-xorg yelp

which would remove xorg, pulseaudio, grahphics drivers and many other essential packages.
Steps to reproduce:
On ubuntu 22.04 run:
sudo apt install libgtkmm-3.0-dev
read the terminal output and try to fix it with
sudo apt install libdbus-1-3=1.12.20-2ubuntu4
read the terminal output indicating essential system packages to be removed.
Expected behavior
The dependencies indicated by the readme for "ubuntu" being properly installed by apt on the latest stable release 22.04 LTS.
Anything else?
make clear && make release
Fails with:
No package 'gtkmm-3.0' found
Attempting to remove or change the library version in the source code results in gtk not being found by C++, failing at:
#include <gtk/gtk.h>

As you can see by the CI status, everything builds properly on ubuntu. Idk what your issue is, but it's likely it's an issue with your system rather than ubuntu.
Install gtkmm then in your preferred way, and if you can't using any way, it's a problem with your system, and not Hypr.

I already have libgtkmm-3.0-1v5 installed but Hypr asks specifically for libgtkmm-3.0-dev which I cannot get installed as shown above on Ubuntu 22.04
As for the info you have on Hypr being buildable on ubuntu. Is that for 22.04? What is the libgtkmm specific version installed?
I am going to try to replicate my issue on a clean 22.04 iso with the dependencies as they appear in the Hypr documentation and will get back to you if It doesn't build.

Confirmed it builds on a clean ubuntu 22.04 iso and the issue is a problem of my system.

Closed


04/24/2018 21:32 : Create Pull Request for branch master -> prTesting1_2018042421

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon1.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Added docker-compose documentation

#6
Added docker-compose example file in repository.
Updated the README giving the instruction to use docker-compose.
I also included sh notation for code block.

Thanks!


Parse terraform variables present in included .tfvars files

It seems only the terragrunt section is actually parsed in included .tfvars files. It'd be nice to be able to store environment wide configuration here as well.

Duplicate of #132. Let's consolidate the discussion to that issue, since it was filed first.


Added up-to-date stubs based on official documentation

Exchanged the stubs by Joseph Fergusson (PhonicCanine) with up-to- date stubs. This time I used the official microbit documentation (https://microbit-micropython.readthedocs.io/en/v2-docs/) to write the stubs. Therefore GNU GPL V3 doesn't apply anymore. Instead it's now licensed MIT.

Nice! Thank you. I will test them this afternoon and integrate them if I find no issues. Just for clarification, the GPLv3 LICENSE and the README are still there - is it intended or is it a simple mistake? In the latter case, if you did not intended them to be there, I can remove them for you when I merge. Thanks

Seems like I forgot to push the new code yesterday. Sorry for that. Just pushed it an it should be fine now.
You can remove the LICENSE and README file (they are updated now to MIT) if you don't want them to be in there.
If you run into any errors/issues let me know and I'll fix the code.

Thank you. FYI, here few things I am going to do now before pushing an update:

update README with you as contributor
I will remove the README from the microbit folder. I will leave the license though
I will bump the version of the extension

Thanks again for your contribution

Thanks a lot! Happy I could contribute. I recently added Neopixel, Speech an Radio module. Do you want me to open another pull request for that?

Sure. Let's do on another PR. Also,  I have published the updated extension (0.1.23) so it should be online in a few minutes.
FYI I am out of office tomorrow, so I can only get back to your PR on Monday.

Hi again. I probably should have checked better before, but I do not seem to get intellisense for things like the display or the accelerometer, unless I open the corresponding files. I think in my former stubs, all these classes were inside a single init.py file, while now we have them on separate files. Is it only for me or do you also have the same issue? I am happy to bring this issue offline (e.g., email) if you prefer.

Just opened a new pull request. Should work fine now. I would appreciate talking via mail as I ran into another issue. Think you might be able to help.

If you want to reach out via mail, the best way is to use this form on my website (https://makinteract.kaist.ac.kr/contact) so that I can avoid typing my email here. The message would arrive directly to me anyway and I can reply from there. I will check the new PR


Duration: Fix API per RFC 1040

@mneumann Thanks. staticfile is currently broken is the latest Rust nightly because of this api change. Hope it gets merged soon.

@mneumann Thanks for this; there are some uses of Duration in the tests too - do you mind updating those as well, so this fully fixes the build?