mkpr

Applied mkpr on package.json
sed s/"@kronos-integration\/service": "^.*"/"@kronos-integration\/service": "^8.3.12"/

Codecov Report

Merging #551 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #551   +/-   ##
=======================================
  Coverage   97.82%   97.82%
=======================================
  Files           2        2
  Lines         184      184
  Branches       24       24
=======================================
  Hits          180      180
  Misses          3        3
  Partials        1        1

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 5cd967e...da1796b. Read the comment docs.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


randomize picture on Wednesday

For now we only have 3 pictures, but we can add to the array for more in the future #2

Love it


Feature GitHub config

Changelog

Added the necessary configuration for starting with the Github bot
Added encryption of secret files
Added helpful scripts for encrypting and decrypting secrets

/label enhancement

/label good first issue

/remove-label good first issue

/approve

/cat

/label merge


[Ask for help] How to modify the port used by the cxf server?

I have a webservice interface for external service calls to upload some real-time data. In addition, my project also contains some rest interfaces for web page use. The port used by my rest interface is 10010. When I configure the quarkus.http.port attribute, the soap server will also use this port. Is there any way to modify the soap service to bind to other ports? I checked the documentation quarkus-cxf, but there doesn't seem to be a suitable property
quarkus.http.host=<IP_ADDRESS>
quarkus.http.port=10010

@WebService(name = "RealTimeDataService", serviceName = "RealTimeDataService")
public interface RealTimeDataService {
	@WebMethod(operationName = "PutNewInspectResults")
	YCCommonRsp PutNewInspectResults(List<YCInspectHisResult> inspectResults);
}

@Features(features = {"org.apache.cxf.ext.logging.LoggingFeature"})
@WebService(serviceName = "RealTimeDataService", portName = "RealTimeDataServicePort")
public class RealTimeDataServiceImpl implements RealTimeDataService {

	@Inject
	RealTimeDataResource resource;

	@Inject
	RobotTaskHistoryInfoMapper historyInfoMapper;

	@Inject
	InspectTaskResultService taskResultService;

	@Override
	@WebMethod
	public YCCommonRsp PutNewInspectResults(@WebParam(name = "inspect-results", mode = WebParam.Mode.IN) List<YCInspectHisResult> inspectResults) {
		YCCommonRsp rsp = new YCCommonRsp();
		if ((null != inspectResults) && (!inspectResults.isEmpty())) {
			CompletableFuture.runAsync(() -> {
				taskResultService.saveInspectResult(inspectResults);
			}, Executors.newSingleThreadExecutor());
			inspectResults.forEach(e -> {
				RealTimeInspectTaskResultDTO realTimeResultDTO = historyInfoMapper.realTaskResult2DTO(e);
				resource.broadcast(JSONUtil.toJSON(new RealTimeDataDTO().setTaskResult(realTimeResultDTO)));
			});
		}
		rsp.setResult(0);
		rsp.setResultDesc("ok");
		return rsp;
	}
}

Is there any way to modify the soap service to bind to other ports?

No, there is no such way. We use the Quarkus HTTP layer for exposing the services. There is also no way to configure Quarkus to listen on two or more ports. Sorry.


Version bump in README

Thanks for the PR, my apologies I couldn't get to it.
I'm closing this PR as all the library code has been rewritten. It uses latest material 3 now. The readme is also entirely changed


Pressing F11 (fullscreen) produces tilde character (~) instead

[x] I am on the latest Hyper.app version
[x] I have searched the issues of this repo and believe that this is not a duplicate

OS version and name: Ubuntu 16.04
Hyper.app version: 1.1.0
Link of a Gist with the contents of your .hyper.js: settings
Relevent information from devtools: N/A
The issue is reproducible in vanilla Hyper.app: Is Vanilla

Issue

Pressing F11 to go full screen does not work. Instead, a tilde character is typed into the command prompt.

Same happens on OSX, expected keycode is CMD+enter, like iTerm does, but it does nothing, it is needed to use the mouse and press the (+) button of the window to get full screen. Is there any way to configure that keybinding?

Same on Windows. This is in the main menu so should have a Keyboard shortcut too and as it is common probably F11  (or/and maybe platform specific to Windows ALT+ENTER). A core functionality should be Keyboard accessible IMHO.

closed in #1876


Add support for application generated by @angular/cli.

What problem does this feature solve?
I use the @angular/cli tool to execute ng g application to generate an application. After that, when I run ng add<EMAIL_ADDRESS>the console throws an error:
Bootstrap call not found
It seems that applications without a 'src' directory are currently not supported.
What does the proposed API look like?
Select the project to be executed in the command-line interface prompts.

This will be fix with the release of 17.0.0 of the library!

This issues had been fixed in v17.0.1. Have a try with the latest version :)


json unmarshal error on AddVertex

json: cannot unmarshal number into Go struct field PropertyID.@value of type model.PropertyIDValue
using AddVertexByQuery() on 1.1.0
Occurs with client.AddVertexByQuery(g.AddV("person").Property("name", "damien"))
as well as client.AddVertex("person")

@nphase I'm unable to replicate the results you're running into.
What database are you using?

I'm using 3.4.2 of gremlin server based on this docker image: https://github.com/bricaud/gremlin-server on but I get the same error when interacting with AWS Neptune.
I will try to debug grammes tomorrow and see if I can find the source of the issue. Thanks for your help!

@nphase there is no immediate support for AWS Neptune in Grammes, unfortunately.
When Grammes was released I was pulled doing other projects. The support for Databases besides JanusGraph isn't officially supported. If you want to help out with support then by all means. For the time being, I have no immediate plans to support other platforms due to time restraints.
Most time with graph databases in my work revolves around Dgraph now due to its superiority in query speeds. I recommend checking out quirk if you want a nice client for it that I'm currently maintaining myself.

Dgraph has no spark connector

Closing due to age.

Hi.
I am expecting this very issue.
It seems to be related to the vertex ID when it is of a different type from an integer. This is easily reproducible, with TinkerPop Gremlin server, changing the file conf/tinkergraph-empty.properties and replacing:
gremlin.tinkergraph.vertexIdManager=LONG

with:
gremlin.tinkergraph.edgeIdManager=UUID
gremlin.tinkergraph.vertexIdManager=UUID
gremlin.tinkergraph.vertexPropertyIdManager=UUID

Then restart the local-server with cd bin && ./gremlin-server.sh stop && ./gremlin-server.sh start
The "incriminated" could be this, in where we are expecting the ID to be a int64. In order to support the UUID form, this should be changed. I'll happily help but any suggestion by the authors will be very appreciated :)
package model

// ID contains the data stores in the
// 'ID' data including the type and Value
type ID struct {
	Type  string `json:"@type"`
	Value int64  `json:"@value"`
}

Let me also thank you for this library.

2023-01-30T21:57:15.938+0800    debug   logging/debuglogger.go:46       [Grammes]       {"query": "g.addV(\"Node\").property(\"node_id\",\"staff:123456\").property(\"node_type\",\"staff\").property(\"name\",\"demo\").property(\"display_name\",\"demo\")"}
2023-01-30T21:57:15.941+0800    debug   logging/debuglogger.go:65       authenticate: Prepared authentication request
2023-01-30T21:57:15.974+0800    error   logging/debuglogger.go:51       vertices unmarshal      {"error": "{\"type\":\"UNMARSHAL_ERROR\"},{\"function\":\"AddVertexByString\"},{\"rawBytes\":\"{\"@type\":\"g:List\",\"@value\":[{\"@type\":\"g:List\",\"@value\":[{\"@type\":\"g:Vertex\",\"@value\":{\"id\":\"staff:123456\",\"label\":\"Node\",\"properties\":{\"display_name\":[{\"@type\":\"g:VertexProperty\",\"@value\":{\"id\":\"demo\",\"label\":\"display_name\",\"value\":\"demo\"}}],\"name\":[{\"@type\":\"g:VertexProperty\",\"@value\":{\"id\":\"demo\",\"label\":\"name\",\"value\":\"demo\"}}],\"node_type\":[{\"@type\":\"g:VertexProperty\",\"@value\":{\"id\":\"staff\",\"label\":\"node_type\",\"value\":\"staff\"}}]}}}]}]}\"},{\"error\":\"json: cannot unmarshal array into Go struct field Vertex.@value of type model.VertexValue\"}"}
github.com/northwesternmutual/grammes/logging.(*DebugLogger).Error
        /Users/gerrylon/workspace/gopath/pkg/mod/github.com/northwesternmutual/grammes@v1.2.0/logging/debuglogger.go:51
github.com/northwesternmutual/grammes/manager.(*addVertexQueryManager).AddVertexByString
        /Users/gerrylon/workspace/gopath/pkg/mod/github.com/northwesternmutual/grammes@v1.2.0/manager/addvertex.go:152
github.com/northwesternmutual/grammes/manager.(*addVertexQueryManager).AddVertex
        /Users/gerrylon/workspace/gopath/pkg/mod/github.com/northwesternmutual/grammes@v1.2.0/manager/addvertex.go:108
konis-cli/pkg/konis.(*KonisCli).AddVertex
        /Users/gerrylon/workspace/xxxxxxxxx/go/gerrylonwan/awesome-scripts/misc/konis-cil/pkg/konis/cli.go:101
konis-cli/cmd.importVertexFromFile
        /Users/gerrylon/workspace/xxxxxxxxx/go/gerrylonwan/awesome-scripts/misc/konis-cil/cmd/import.go:237
konis-cli/cmd.glob..func1
        /Users/gerrylon/workspace/xxxxxxxxx/go/gerrylonwan/awesome-scripts/misc/konis-cil/cmd/import.go:52
github.com/spf13/cobra.(*Command).execute
        /Users/gerrylon/workspace/gopath/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920
github.com/spf13/cobra.(*Command).ExecuteC
        /Users/gerrylon/workspace/gopath/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044
github.com/spf13/cobra.(*Command).Execute
        /Users/gerrylon/workspace/gopath/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
konis-cli/cmd.Execute
        /Users/gerrylon/workspace/xxxxxxxxx/go/gerrylonwan/awesome-scripts/misc/konis-cil/cmd/root.go:41
main.main
        /Users/gerrylon/workspace/xxxxxxxxx/go/gerrylonwan/awesome-scripts/misc/konis-cil/main.go:11
runtime.main
        /opt/soft/go/src/runtime/proc.go:250


make does not work on MacOS Sequoia 15.2

Is your feature request related to a problem? Please describe.
make cadence-server fails with the following output:
arch: posix_spawnp: uname: Bad CPU type in executable
arch: posix_spawnp: uname: Bad CPU type in executable

downloading protoc 3.14.0: https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protoc-3.14.0-osx-.zip
[.bin/protoc.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of .bin/protoc.zip or
        .bin/protoc.zip.zip, and cannot find .bin/protoc.zip.ZIP, period.

I spent quite some time to understand the issue is coming from work-around of using arch -x86_64 on Apple silicon.
The above message (arch: posix_spawnp: uname: Bad CPU type in executable) happens because I didn't have rosetta installed. softwareupdate --install-rosetta solved the problem.
Proposed Solution
I really like the idea that nothing has to be installed and make cadence-server does all the magic.
Let's keep so and update protoc and buf to the the latest version which provide arm64 artifacts.

Working on this!
I'm not entirely sure how to verify it on both arm-without-rosetta (it's not really uninstallable) or osx-on-intel (I don't have one), but #6581 drops the arch ... prefix so I believe it'll work.
If anyone has an intel mac and this all breaks for you when it's merged, please leave a note!  I'll try to do something.


Error in calculating the shamsi date

The month it shows is different from the month it shows in the pop-up.


'PPOTFPolicy' object has no attribute 'sess'

Hi,
I've encountered the following problem when running python run_neurocuts.py --rules=acl5_1k --fast.
2019-07-11 10:41:34,029	ERROR trial_runner.py:487 -- Error processing event.
Traceback (most recent call last):
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/tune/trial_runner.py", line 436, in _process_trial
    result = self.trial_executor.fetch_result(trial)
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/tune/ray_trial_executor.py", line 323, in fetch_result
    result = ray.get(trial_future[0])
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/worker.py", line 2195, in get
    raise value
ray.exceptions.RayTaskError: ray_worker (pid=22136, host=ubuntu-gpu-server)
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/rllib/agents/trainer.py", line 367, in train
    raise e
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/rllib/agents/trainer.py", line 353, in train
    result = Trainable.train(self)
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/tune/trainable.py", line 150, in train
    result = self._train()
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/rllib/agents/trainer_template.py", line 126, in _train
    fetches = self.optimizer.step()
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/rllib/optimizers/multi_gpu_optimizer.py", line 141, in step
    samples.append(self.workers.local_worker().sample())
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/rllib/evaluation/rollout_worker.py", line 430, in sample
    batches = [self.input_reader.next()]
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/rllib/evaluation/sampler.py", line 60, in next
    batches = [self.get_data()]
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/rllib/evaluation/sampler.py", line 101, in get_data
    item = next(self.rollout_provider)
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/rllib/evaluation/sampler.py", line 338, in _env_runner
    base_env.send_actions(actions_to_send)
  File "/home/mengzl/miniconda3/envs/neurocuts/lib/python3.5/site-packages/ray/rllib/env/base_env.py", line 382, in send_actions
    obs, rewards, dones, infos = env.step(agent_dict)
  File "/home/mengzl/neurocuts/neurocuts_env.py", line 185, in step
    advantages, stats = self.compute_gae(self.depth_weight)
  File "/home/mengzl/neurocuts/neurocuts_env.py", line 280, in compute_gae
    vf = policy.sess.run(policy.value_function, feed_dict)
AttributeError: 'PPOTFPolicy' object has no attribute 'sess'

I'm running on Python 3.5, Ray 0.7.2. Thanks in advance!

hello,I also have this problem by using Python 3.6, Ray 0.7.2. Do you have the answer to this question now?

hello,I also have this problem by using Python 3.6, Ray 0.7.2. Do you have the answer to this question now?

Not yet... I guess maybe it's a compatibility issue caused by Ray? I went through several recent versions of Ray but didn't see the usage of PPOTFPolicy.sess. Do you have any idea?

unfortunately not. I tried all versions of ray 0.7.x but failed.

For run the neurocuts codes. tensorflow 1.13.1 and ray 0.7.6 can be used.

For run the neurocuts codes. tensorflow 1.13.1 and ray 0.7.6 can be used.


Cleanup mbgl/actor/mailbox* implementation for repetition in ensuring valid weakScheduler exists before usage

Ensure that valid weakScheduler exists before using it to schedule. Remove repetition of weakScheduler guarantee such that it is captured in a method.

Relates to Issue https://github.com/maplibre/maplibre-native/issues/2732

@mwilsnd: Could you please have a look at the changes for providing any review feedback. thanks

@louwers: The pipeline looks green. Is there any review feedback I can incorporate before the merge?

Nope, let's give @mwilsnd one more day to look at it since he reworked this code recently.
Otherwise I'll merge it later today!


Functions-dart repo is not public yet

I see that supabase-dart supports the new Supabase edge functions and the needed functions_client package is released on pub.dev, but the corresponding GitHub repository is not public currently.

@Vinzent03 Great call! Thanks for noticing and letting us know! I have made it public right now!


Calling computed field from event triggers recomputation.

Here is a simple reproduction:
@test = new ComputedField =>
  console.log "I'm being called."

$(document).keypress =>
  @test()

This will trigger recomputation (seen by the console.log) on every keypress.
A simple workaround (which is how I thought this would behave) is:
@test = new ReactiveField null

Tracker.autorun =>
  @test console.log "I'm being called."

$(document).keypress =>
  @test()

So is this by design or a bug? I'm only experiencing recomputation from events (or timeout/interval) and also only on the first call (if I call test() multiple times, it's recomputed only the first time).

Is @test defined inside an autorun? If not, I think computed field detects that and stops autorun to cleanup and prevent you from having a runaway autorun?

I did this test in onCreatedof a component … so I guess not? Is this bad? Maybe this should be in the constructor then.

No, onCreated should be good. The issue here is that it is cleaning up because you never used it inside reactive context. Probably this should be configurable.

I think I understand. It tries to help so you don't have to manually call stop() from onDestroyed, right? But then, since it's not running, it has to recompute itself to make sure it has the latest value.
Although if this is true, it means most of the time when I was using ComputedFields they were not really running reactively at all, but simply reevaluating each time.

Maybe inside a component, you could call @test = new @ComputedField … which uses template's autorun instead. ;)

See #5 for more information about better integration with templates.

With 35947c5382f241daab7743cad1f26fcc68e94251 you can also use second argument to prevent automatic stopping:
@test = new ComputedField =>
  console.log "I'm being called."
, true

With 0.5.0 version I made it so that computed field inside onCreated is still automatically stopped even when automatic stopping because of no dependency is disabled. The following will stop @test automatically after template is destroyed, but will not stop the computed field if you are using computed field only inside events.
@test = new ComputedField =>
  console.log "I'm being called."
,
  true


Update electron-beta to 1.7.3

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if updating a cask:

[ ] If the sha256 changed but the version didn’t,
provide public confirmation by the developer: {{link}}

Thank you for the contribution. It was merged directly as 9acbe19a0e69ff8cd6fe58f6d957ecc99146cf89. Your contribution is still credited to you.


异常不应该被吞掉

异常不应该被吞掉

Coverage remained the same at 42.402% when pulling e8db318834f309d7feb3759e3928cefae6aa2856 on haogrgr:dev into 5d4c6e844340121bef19760e64bd79c9ceabf59a on knightliao:dev.


Incorrect rendering with transform="translate..." option

Description
transfortm="translate..." option not clearing x, y values after exiting the group node
Steps to Reproduce
Create svg similar to this:
...
<g ... transform="translate(x, y)">
    ....
</g>
<g ... transform="translate(0, 2)">
   ...
</g>
...

And try to render it.
Expected Behavior
First group render everything taking x and y as zero points of coordinates.
Second group render everything taking 0 and 2 as zero points of coordinates.
Actual Behavior
First group will render everything taking x and y as zero points of coordinates.
Second group takes x+0 and y+2 as well
(not clearing old values).
As result, rendering is not correct.
Basic Information

Version with issue: <IP_ADDRESS>0 (FFImageLoading.Svg)
Last known good version: n/a
Platform: Android, iOS

Screenshots
Original look

iOS
Android

Could you attach an SVG file? I'll reopen it then. Cheers.


clients3.google.com

this site or group has been pestering for some time now. Can someone take ownership and advise them to stop

Don't understand the issue or request. Where do you want this removed?


Problems with inconsistencies between experimental results and articles

Your work is excellent, I have been learning from your work recently. However, I found that the experimental results in the articles are inconsistent with what I get when running it myself, using DepthTrack's training and testing as an example. I re-tested with the weights you provided on GitHub and got results of Pr, Re, F being 0.561, 0.571, 0.566 respectively; I re-trained and tested with the weights I got and the results were Pr, Re, F being 0.588, 0.586, 0.587 respectively; the results I analyzed according to the testing results you provided in the article were consistent with the article, which are Pr, Re, F being 0.592, 0.596, 0.594. Could you please let me know the reason for this inconsistency? Is it due to environmental reasons or some other reasons? If it's due to the environment, could you please provide the versions of the packages configured in your virtual environment? I'm looking forward to your response, thank you!

Hi~ I think the performance you get is unnormal (0.594 - 0.566).
If everything else is fine, I suggest you try the following versions of the packages:
pytorch==1.7.0 cudatoolkit=10.2

Great job, I will try it, thank you very much!

@hoqolo Is it valid? I got a result of 0.573 on my side.


skip audiobooks, fix get-all, add EPUB3FL type

fixes #1

@victorclaessen thanks for the PR!  I have a large effort on another branch to properly support audiobook download that this will conflict with. I should be finishing up tonight, and hopefully this won't be needed anymore.
I'm interested in your pypi packaging changes.  Could you tell me a bit more about the files you added?

I'm actually not sure where those files came from. Didn't even notice them, to be honest. Looking forward to seeing  audiobooks integrated!

@victorclaessen alright I think I've done it.  Could you pull latest (or install 0.3.1 from pypi) and give it a test on your own data?  I'd really appreciate a sanity check from someone else.
Thank you!

I pulled the latest and I can confirm that this works great (thanks)! I will close this pull request, since yours is actually a real fix and mine was just some workaround.


Pinned dependency that breaks things

Pinning dependency

Coverage remained the same at 68.288% when pulling b89991eae6b06334fa41dc736efb900db02a5815 on mikegrima:deppin into 5d22a1058b350fa7da364abc1bb8b25e1eb4c98d on Netflix:develop.


Add support recipient delimiters with aliases fixes #442

I finally got time to add a test case for this. If there is anything that keeps you from merging, please let me know.

The TravisCI integration seems to be broken. The automatic build got canceled because setting up the containers took more than 20 mins. Is there a way to re-run the tests other than a new commit?

Restarted.

Can it be that this undo the changes made by #305 and #360?

@flole, yep it will. - cc @00angus, @tyranron

@tomav @nwolber
Interesting... I don't think that getting rid of lmtp is best option.
I'll investigate the issue a lit bit further in few days and will look can be this considered with lmtp or not.

@tomav I've submitted a PR which adds integration test only provided by @nwolber in this PR. And, as we see, latest master passes it.
So, @nwolber, are you sure that this test reproduces your issue?
There is also an official Dovecot LMTP doc which refers us to lmtp_save_to_detail_mailbox = yes option. I've tried to enable it, and the only thing is changed that mail is delivered to appropriate folder (specified after delimiter), not to default as happens now.

@tyranron you're totally right. The test only tested the good case. Unfortunately the failure case also produces an e-mail (bounced) with the exact same log message. I added a new step in the test case, that checks for the status=bounced message. I also noticed that the failures seems to occur only if recipient_delimiter is set something other than the standard '+' sign. I also added that to the test case.
I ran the tests both with the lmtp configuration currently present in master and the lda configuration in this PR. The test now fails with lmtp and succeeds with lda.
If there is a solution that gets this working if lmtp I would be more than happy to do that. Unfortunately I don't see how. Any help would be greatly appreciated.

@nwolber thank you for update. I'll dig into and will try to investigate further.

@nwolber I reproduced your test case again in this PR. Just changed recipient_delimiter from - to ~ to not collide with other test cases.
The latest master passes it.
The problem was that recipient_delimiter was changed in Postfix configuration, but not in Dovecot configuration. This is mentioned in Dovecot documentation I referred earlier.

Yep, you are right. I already had that configuration, but for some other reason it didn't work as expected. I fixed that now and it works. I think this PR can be closed then and #528 should be merged instead. I will also close #442.
Thanks again for your help.


Enhancement in search in explore and internal

I worked on ... because ... Enhancement in search in explore and internal. more appropriate matching

Type of change:

[ x] Improvement

@07Himank are we merging this? why is it in draft mode?

@07Himank are we merging this? why is it in draft mode?

some things were remaining for testing .. thats why it was in draft mode


Improve process cancellation

Implement arcpy scripting module cancel monitoring

Done - use of dask callbacks improves cancellation responsiveness.


[nuxt] [runtimeConfig] You are trying to access a public runtime config value (algolia) directly from the top level. This currently works (for backward compatibility with Nuxt 2) but this compatibility layer will be removed in v3.5. Instead, you can update config['algolia'] to config.public['algolia'].

Version

Operating System: Linux
Node Version:     v18.15.0
Nuxt Version:     3.4.0
Nitro Version:    2.3.3
Package Manager<EMAIL_ADDRESS>Builder:          vite
User Config:      srcDir, modules, vite, i18n, nitro, schemaOrg, telemetry, head, auth, viewport, css, build, runtimeConfig
Runtime Modules<EMAIL_ADDRESS>genesis-design-system/nuxt<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Reproduction Link
https://stackblitz.com/edit/nuxt-starter-rtn6e3
Steps to reproduce
What is Expected?
When i upgrade to nuxt 3.4.0 the module of algolia throws
(node:15923) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1573)
warning:60
[nuxt] [runtimeConfig] You are trying to access a public runtime config value (algolia) directly from the top level. This currently works (for backward compatibility with Nuxt 2) but this compatibility layer will be removed in v3.5. Instead, you can update config['algolia'] to config.public['algolia'].
What is actually happening?

Reproduction LINK
https://stackblitz.com/edit/nuxt-starter-rtn6e3

Fail in stackblitz

Hey @agracia-foticos
Thanks for reporting this issue! I will take a look at it in the upcoming days :)

Facing the same issue

Works! i close the issue


Rename "cloud-run" directory to "run"

Addresses issue https://github.com/GoogleCloudPlatform/dotnet-docs-samples/issues/1018

Have you updated/frozen the links in the docs?

The docs pages only includes the file and doesn't contain a "View on Github" link
See the "cloud-run/.gcloudignore" code snippet in the docs page.
https://cloud.google.com/run/docs/quickstarts/build-and-deploy
I've got a CL ready to update and republish the doc as well once this change is merged.


operator project-quay (3.10.4)

Add 3.10.4 to community operators

/merge possible

/merge possible


chore: remove cruft, add a test

I ran yarn prettier --write "**/*.{ts,md}"
I consolidated the three base tsconfigs down into one, tsconfig.base.json
I removed the errant .editorconfig copy
I deleted tslint.json since the project uses eslint
I removed .npmignore in favour of a files entry in package.json containing just "dist"
I updated the engines entry in package.json to 7.5.0 to match the minimum node version that TypeScript’s output supports

Thanks for the great PR! I would love to merge this but the linting/formatting step appears to have changed the CHANGELOG.MD which is an automatically generated file (by standard-version) and I'm not sure how well that will work. Worst case scenario it could block the CI from doing an automated release, I guess. I think it would be okay to simply have this one ignored?

@baltedewit ah good to know. I’ll add CHANGELOG.md to .prettierignore

Even better: I just saw that standard-version has lifecycle scripts that let you hook into different phases of the version bumping. I added one for postchangelog that runs prettier on CHANGELOG.md.

Thanks for that and just as a heads up: your version of yarn appears to resolve some packages to "artifacts.twitter.biz" which does not appear to be publicly available.

@baltedewit ugh, sorry about that. Work machine 😩 Did the CI check actually pass, or is CI not running on PRs?

CI was not configured to run on PR's at first, future PR's should be ran though.
CI is currently failing on vulnerabilities check, that would require the resolutions like these: https://github.com/nrkno/tv-automation-state-timeline-resolver/blob/master/package.json#L153
I've not looked into it further but I do get some linting and compile errors in my local setup


Docs

My attempt to update the user docs.
My intentions:

Make it more accessible for beginners (like me) by
Keep all prior content (just rearranged some things)
Structure content more like the Xamarin.Forms documentations does

https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/
https://github.com/reigam/Fabulous/blob/docs/docs/Fabulous.XamarinForms/images/guide-organisation.jpg

Show which pages / topics are up to date

e.g.  topic last updated: v 0.61.0 - 31.03.2021 - 11:15am

This looks great!

Thanks for the pull request!
I've been trying to make it run locally, but I found a few issues:

Some md files include a reference to the deleted contents-views.md
Apparently, you can't use ../ to include files in parent folders (https://jekyllrb.com/docs/includes/#including-files-relative-to-another-file)

Ok, I checked and (hopefully) corrected all broken .md links.
I also moved all .md pages to the same folder, so that should be fixed.
Unfortunately I noticed your P.S. too late. I will comment again after I checked the docs locally myself.
Thanks for your feedback.

Ok, I have made some some corrections (changing links from .md to .html mainly), and now everything runs fine locally on my machine.


Alpine based base image

The debian:jessie base image is over 100MB's. Could you perhaps also support a alpine based image?

If you're willing to produce some dockerfiles for it along the same lines as the docker one, I am open to fielding a PR. All you'd need to do is provide a Dockerfile.alpine under releases/dev and I can take it from there. It's also possible to use a multi-stage build file now, to build netdata from source without having to resort to some of the tricks I used here to keep the size down.

I was just heading here to ask for the same!! Perfect timing @MaicoTimmerman 😉
@titpetric https://github.com/firehol/netdata/blob/master/Dockerfile.alpine
The reason I stick with your Netdata Docker Container vs Firehol's is because you parse the other container names perfectly from docker.sock on my unRAID host - so having Alpine in addition to your excellent Netdata checkout would be perfect 👌
Hope that the linked dockerfile helps 😁

you parse the other container names perfectly from docker.sock

Both dockerfiles have been created by @titpetric (which of course rocks!)
@titpetric could you please make a PR to fix it at the official repo too?

@nexusmaniac what do you mean by "parse the other container names"? ;).
The alpine image wasn't created by me, and it also seems that it's a bit un-optimal in the sense of how it's built, as it doesn't seem to do any cleanup of build resources which I see at first glance. When I get the time to stab around it and produce my own alpine fork, I'll make sure to PR the changes to the official repo as well. Alas, I don't know when that might be, so any help is appreciated, I'm more than happy to field some PRs.

@titpetric
Right hand side, the metrics from other Docker Containers 👍
Container resource utilization metrics. Netdata reads this information from cgroups (abbreviated from control groups), a Linux kernel feature that limits and accounts resource usage (CPU, memory, disk I/O, network, etc.) of a collection of processes. cgroups together with namespaces (that offer isolation between processes) provide what we usually call: containers.

I passthrough the docker.sock file to Netdata, /titpetric/netdata/ parses the container names correctly, /firehol/netdata/ gets the raw container name (i.e. f6453277aaed instead of duckdns 😄)

Can you exec into the running container and issue a ps aux or similar which will print the user under which netdata is running. Also please issue ls -la /var/run/docker.sock (or whereever it is, I don't remember the location by heart).
Likely: netdata is running as non-root. You'd have to add the ID of the netdata user into the docker group. Usually docker.sock is chmod 660, chown root.docker, meaning the only access is possible as the root user, or as an user who is a member of the docker group. No global access is permitted by default.
Second option, you can expose a more permissive docker.sock using docker-proxy-acl. It's a bit of a pain, but better wide open access.

From host:
root@Raptor:~# ls -lah /var/run/docker.sock
srw-rw---- 1 root docker 0 May 19 09:32 /var/run/docker.sock=

Inside container:
# ls -lah var/run/docker.sock
srw-rw---- 1 root 281 0 May 19 09:32 var/run/docker.sock

# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.8  0.2  98548 37860 ?        Ssl  04:05   4:55 /usr/sbin/netdata -D -u root -s /host -p 19999
root        35  1.3  0.1<PHONE_NUMBER>0 ?        Sl   04:05   7:49 /usr/bin/python /usr/libexec/netdata/plugins.d/python.d.plugiroot      9545  0.1  0.0  20252  3104 ?        S    13:06   0:03 bash /usr/libexec/netdata/plugins.d/tc-qos-helper.sh 1
root     10425  0.0  0.0   4340   768 pts/0    Ss   13:59   0:00 sh
root     10496  0.0  0.0  17504  2080 pts/0    R+   14:02   0:00 ps aux

The Netdata container runs as non-root, for some reason the Firehol Netdata container doesn't read the container names from docker.sock without me chmod'ing it to something like 660, as you suggested.
Should I get both the Titpetric & Firehol containers up and running in order to figure out what's up here? 😄
I don't believe I can alter groups on unRAID (and have them persist) I'll have to look into that for the long run.

It's the issue of the upstream CMD:

The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.

The upstream provides both the executable and arguments in CMD, unlike this image which takes a number of custom parameters in addition to the default ones. The good news is, that you can get around it for your case quite easy, something like this:
docker run -it -d [... usual args ...] firehol/netdata /usr/sbin/netdata -D -u root -s /host -p 19999

So, you at least have a work around.

I've tried to figure out what you're suggesting... Turns out I'm unable to do this on my Docker host (unRAID)
If I could use the dockerfile to create a container on unRAID, this would be possible.
But CMD /usr/sbin/netdata -D -s /host -p ${NETDATA_PORT} that's the line I'd need to change in the Firehol dockerfile (https://hub.docker.com/r/firehol/netdata/~/dockerfile/)
unRAID is very GUI heavy and doesn't allow for a massive amount of tinkering, unfortunately.
For others this may be a workaround but I'll have to live without 😛 Unless I post an 'issue' on the Firehol git repo and request that -u root is added to the alpine dockerfile? 😄

Why are you unable to do it? Can you not pass custom arguments to the dockerfile you're trying to run?

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='netdata_firehol' --net='host' -e TZ="Europe/London" -e HOST_OS="unRAID" -v '/mnt/user/appdata/netdata_f/':'/etc/netdata':'rw' -v '/proc':'/host/proc':'ro' -v '/sys':'/host/sys':'ro' -v '/var/run/docker.sock':'/var/run/docker.sock':'ro' --cap-add SYS_PTRACE --log-opt max-size=50m --log-opt max-file=1 'firehol/netdata:alpine' /usr/sbin/netdata -D -u root -s /host -p 19999
a376c7ece072ee00b8dbb95a4fbea45220cea8e6109d4c62a44d26eaa87800a3

The command finished successfully!

But upon adding that to the Post Arguments: in unRAID I get this:
Access to file is not permitted: /usr/share/netdata/web//index.html
When I go to the Netdata 'site' 😢

But if I take a look inside the container again...
/ # ls -lah /var/run/docker.sock
srw-rw----    1 root     281            0 Jun 13 07:33 /var/run/docker.sock
/ # ps aux
PID   USER     TIME   COMMAND
    1 root       0:01 /usr/sbin/netdata -D -u root -s /host -p 19999
   31 root       0:01 /usr/bin/python /usr/libexec/netdata/plugins.d/python.d.plugin 1
  465 root       0:00 sh
  472 root       0:00 ps aux
/ #

It's definitely worked 😛 (I just can't access the webUI side of things 🤔

@titpetric Any logs I can obtain to help us diagnose this weird lack of WebUI access once running the 'custom' args at the end? (docker run -it -d [... usual args ...] firehol/netdata /usr/sbin/netdata -D -u root -s /host -p 19999)
Give us a shout and I'll help out 😄

I believe it's a security consideration from @ktsaou, that the files under /usr/share/netdata/web must match the owner that netdata is running as. The restriction is a bit silly, given that it should validate against user OR group, or even neither and just honor what is most likely a global readable file (a+r).
I understand that it's somewhat of a hack just to keep things more secure. Would it be possible not to match the running user, but a set of ["root", "netdata"], which are the two common users (I asume also the files are owned by either root.netdata or netdata.netdata, so they are both readable).

@titpetric
I've just gone inside the container again:
chown -R root:root /usr/share/netdata/web/ ! It works 👍 😄 The WebUI is reachable again and the Docker Container (Cnames) are all properly decoded 😉
Just need to work out a way to make that chown command run automatically 😛 In its current form, I'll need to run it manually every time there's an update to this Netdata container 🤔

try with bash -c:
docker run -it -d [... usual args ...] firehol/netdata bash -c 'chown -R root:root /usr/share/netdata/web/ ;  /usr/sbin/netdata -D -u root -s /host -p 19999'

Ugly as heck, bit it should work.

Perfect 👌 Thanks @titpetric
I had to alter it slightly (bash -c 'chown -R root:root /usr/share/netdata/web/ &&  /usr/sbin/netdata -D -u root -s /host -p 19999') for && instead of ; but other than that it's perfect! 👍
Cheers 😄 I'm up and running with Firehol's Alpine Docker Container!

one more thing, try adding exec before /usr/sbin/netdata (ie, && exec /usr/sbin/netdata...). You want netdata running as PID 1 in the container, so it will shutdown / receive signals gracefully. Give another ps` check when you do, to verify.

bash-4.4# ps aux
PID   USER     TIME   COMMAND
    1 root       0:00 /usr/sbin/netdata -D -u root -s /host -p 19999
   35 root       0:01 /usr/bin/python /usr/libexec/netdata/plugins.d/python.d.plugin 1
  477 root       0:00 bash
  483 root       0:00 ps aux
bash-4.4#

Seems it was already running as PID 1 - but I've added exec now and it's all still working 😁

The actual issue is that in the alpine image, the netdata user is not in the docker group.
image: titpetric/netdata:latest
or
image: firehol/netdata
=> container names OK
# ps aufx
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root       607  0.0  0.1  18188  2928 pts/0    Ss   18:59   0:00 /bin/bash
root      1814  0.0  0.1  36640  2828 pts/0    R+   19:01   0:00  \_ ps aufx
netdata      1  1.2  2.0<PHONE_NUMBER>6 ?        Ssl  18:58   0:02 /usr/sbin/netdata -D -s /host -p 19999 -i <IP_ADDRESS>
netdata     18  0.3  0.1  18164  2244 ?        S    18:58   0:00 bash /usr/libexec/netdata/plugins.d/tc-qos-helper.sh 1
root        29  1.7  0.1  19540  2636 ?        S    18:58   0:02 /usr/libexec/netdata/plugins.d/apps.plugin 1

# ls -lha /var/run/docker.sock
srw-rw---- 1 root netdata 0 Jun 17 14:45 /var/run/docker.sock

# id netdata
uid=999(netdata) gid=999(netdata) groups=999(netdata),4(adm),13(proxy)

image: firehol/netdata:alpine
-> container names MISSING
# ps aufx
PID   USER     TIME  COMMAND
    1 netdata   0:01 /usr/sbin/netdata -D -s /host -p 19999 -i <IP_ADDRESS>
   26 root      0:01 /usr/libexec/netdata/plugins.d/apps.plugin 1
  534 root      0:00 /bin/bash
  540 root      0:00 ps aufx
# ls -lha /var/run/docker.sock
srw-rw----    1 root     ping           0 Jun 17 14:45 /var/run/docker.sock

# id netdata
uid=101(netdata) gid=101(netdata) groups=101(netdata),101(netdata)

# tail /etc/group
ntp:x:123:
nofiles:x:200:
smmsp:x:209:smmsp
locate:x:245:
abuild:x:300:
utmp:x:406:
ping:x:999:
nogroup:x:65533:
nobody:x:65534:
netdata:x:101:netdata

the correct fix is to add netdata to the ping group which has gid 999 in alpine:
addgroup netdata ping
should be added to https://github.com/firehol/netdata/blob/master/Dockerfile.alpine#L44
or quickfix:
command: bash -c 'addgroup netdata ping && exec /usr/sbin/netdata -D -s /host -p 19999

I use the following docker-compose.yml file to run netdata without fakenet.sh
for use with letsencrypt-nginx-proxy-companion by Evert Ramos
https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion
docker-compose.yml
# docker-compose.yml
# netdata in docker container with access to host network (for network metrics).
# for use with letsencrypt-nginx-proxy-companion by Evert Ramos
# https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion
# uses socat to proxy netdata to reverse proxy
# a separate network is defined to bind netdata to a fix ip address
# this ip address is used for the socat target
#
version: '3'
services:
  netdata:
    image: firehol/netdata:alpine
    hostname: example.com # set to fqdn of host
    cap_add:
      - SYS_PTRACE
    volumes:
      - /proc:/host/proc:ro
      - /sys:/host/sys:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
      #- ./netdata.conf:/etc/netdata.conf:ro
    environment:
      - NETDATA_PORT=19999
      - NETDATA_IP=<IP_ADDRESS>
    network_mode: host
    # add netdata to ping group (gid 999) for access to docker.sock
    command:  bash -c 'addgroup netdata ping && exec /usr/sbin/netdata -D -s /host -p 19999 -i <IP_ADDRESS>'

  socat:
    image: alpine/socat:latest
    environment:
      - VIRTUAL_HOST=netdata.example.com
      - LETSENCRYPT_HOST=netdata.example.com
      -<EMAIL_ADDRESS>      - VIRTUAL_PORT=19999
    entrypoint: socat TCP-LISTEN:19999,nodelay,fork,reuseaddr TCP:<IP_ADDRESS>:19999
    expose:
      - 19999
    networks:
      - webproxy
      - netdata

networks:
  webproxy:
    external:
      name: webproxy
  netdata:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: <IP_ADDRESS>/24

This issue went offtopic fast, but just to clarify, titpetric/netdata won't support an alpine base image any time soon. Check the netdata/netdata image if they suit your cases better.


where is the pay module

A user role person buy the products, where is the place to pay for the order???

That module is not built right now.. We are working hard to have ready soon.


Scraping artwork too slow on Retroid Flip

I've probably used Daijisho on 15 different systems but having bought a retroid flip it's running super slow. I do a system sync it and it's taking like a million years just to scrape artwork on a system. Is this a flip problem or a new update causing this it was scraping art for a game then 2 hours later it's still on the same game.

Libretro thumbnail server seems to be having connection issues the past few days which might explain the slow scraping.
Here's some things you can do:

Use SkraperUI and import the media/xml files
Remove Libretro as a source (warning as it might lead to undesirable results)

To remove Libretro as a source:

Highlight Platform > 🖊 > click x on Libretro:SystemName > Save

Is there a way to use screenscraper.fr as the source?

It's working perfectly now
On Tue, 5 Sept 2023, 15:12 31337-4554551n, @.***> wrote:

Is there a way to use screenscraper.fr as the source?
—
Reply to this email directly, view it on GitHub
https://github.com/TapiocaFox/Daijishou/issues/522#issuecomment-1706703466,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCKKLYBI6N76VBF6FHOK5VTXY4XLXANCNFSM6AAAAAA4JOSYLQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

It's working perfectly now
…
On Tue, 5 Sept 2023, 15:12 31337-4554551n, @.> wrote: Is there a way to use screenscraper.fr as the source? — Reply to this email directly, view it on GitHub <#522 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCKKLYBI6N76VBF6FHOK5VTXY4XLXANCNFSM6AAAAAA4JOSYLQ . You are receiving this because you authored the thread.Message ID: @.>

screenscraper.fr is working?..
It's not even an option.

@31337-4554551n check the message I posted above. You can't use the website screenscraper.fr as a source itself but you can use the files SkraperUI or Emulationstation generates (which scrapes from screenscraper.fr).
Closing issue as Libretro source was updated in previous app update

@31337-4554551n check the message I posted above. You can't use the website screenscraper.fr as a source itself but you can use the files SkraperUI or Emulationstation generates (which scrapes from screenscraper.fr).
Closing issue as Libretro source was updated in previous app update

So to confirm workflow, I need to put the roms onto my desktop, run scraperui, then copy the images and xml it generates to the device, and run the import?
Then if I get a new game, same process? Load onto the desktop, run the scrape, move everything over and import?-which shouldn't overwrite the old xml import?
Are there any plans to introduce being able to just use screenscraper.fr credentials to sync from there directly?


testing and fixing outdated atlas generation scripts

Description
We would like to test if the atlas validation functions pass after regenerating atlases (see: #201).
At the moment, the atlas generation scripts are outdated, so to regenerate the atlases, first, we need to fix and tidy the scripts.
What is this PR

[x] Bug fix
[x] Addition of a new feature
[ ] Other

Why is this PR needed?
We need an up-to-date version of the atlas generation scripts and the atlases
What does this PR do?
Fixes syntax errors, removes outdated packages
References
#201
How has this PR been tested?
It's just a draft pr so far
Is this a breaking change?
It might due to changes in vedo syntax and functions
Does this PR require an update to the documentation?
Yes
Checklist:

[ ] The code has been tested locally
[ ] Tests have been added to cover all new functionality (unit & integration)
[ ] The documentation has been updated to reflect any changes
[ ] The code has been formatted with pre-commit

Script errors:

Script
Error
Note

admba_3d_dev_mouse.py
na
na

allen_cord.py
BadZipFile: File is not a zip file
na

allen_mouse.py
no error
na

azba_zfish.py
AttributeError: 'Mesh' object has no attribute 'smoothLaplacian'
na

example_mouse.py
na
na

humanatlas.py
na
na

kim_developmental_ccf_mouse.py
na
na

kim_mouse.py
na
na

mpin_zfish.py
na
na

osten_mouse.py
na
na

perens_lsfm_mouse.py
na
na

princeton_mouse.py
na
na

whs_sd_rat.py
na
na

Steps to test changes on the HPC:
module load mamba
mamba init
mamba create -n bg-atlasapi python=3.11
mamba activate bg-atlasapi
git clone https://github.com/brainglobe/brainglobe-atlasapi.git
cd brainglobe-atlasapi/
git checkout fixing_atlas_scripts
pip install -e ".[allenmouse, dev]"
pip install scikit-image
pip install imio
pip install brainio
cd brainglobe_atlasapi/atlas_generation/atlas_scripts


Unable to find a new block in a fastq file

Hi @thackl,
I use SeqChunker to chunk pb.fq. Below is the command line:
SeqChunker -s 20M -o ecoli-pb-%03d.fq /homec/liweilong/data/Ecoli/e-coli-PacBio.fq
However, I can only get the ecoli-pb-001.fq, and an error occured:
···Unable to find a new block in a fastq file···
How can I solve this problem?
Best
Weilong

This seems to be related to #22, see #22 for answer


Fixed typo in the documentation account: 3972dfcfb9fd488cf90644b599558d3e265bdb883686933f62e8450aaee974b1

@odetolataiwo @Rajputusman, please pay this one 500.
Hi @alexkimeu0 , thank you for your contribution. The rules require that every PR should be connected to an issue, we'll make an exception for this one because it's a very minor change, but in the feature please only create PRs connected to an issue. If there is no issue for the changes you want to do, create one first.

Hi @Hristijan95 . Thank you very much. I will adhere to the rules in the future. Best Regards.


Missing change to permissions of paths/files in V3 development branch

@jeffadair committed a change 8th of Dec 2021 to created a project path and associated files with 750 permissions. It was checked into main branch but should have gone (also) gone to V3 branch.

Small merge to include 750 permissions fix that was only in main and needed to be in V3 build to.


Movement rate is static?

Apologies if this is my failure to understand or see something - the move rates seem to be fixed at 40, 120, 24. I'm not sure if they're tied to another editable field somewhere (I tested encumbrance - no change reflected), but being able to customize them at will would be ideal (As many things can affect move rates round to round).
Also sorry if I'm bad at GitHub and overlooked an existing open or closed issue :-D

@frankie-break-bone They aren't static, it's just that the overland and encounter movement rates are derived from the exploration movement rate. You only need to change the exploration movement rate.


⚠ WG 🇸🇬 Singapore SGC 1 has degraded performance

In 4b37885, WG 🇸🇬 Singapore SGC 1 (http://wg-sg-2.optnl.com/) experienced degraded performance:

HTTP code: 200
Response time: 20799 ms

Resolved: WG 🇸🇬 Singapore SGC 1 performance has improved in 5508eb2.


Implement a 'remember' method

Hi,
Any chance of a 'remember' convenience method that takes a key and callable similar to?:
https://github.com/cakephp/cache/blob/master/Cache.php#L505

Something like this on Stash\Pool;
    public function remember($name, callable $func, $expires)
    {
        $data = $this->getItem($name)->get();
        if ( ! is_null($data) )
        {
            return $data;
        }
        $data = $func->__invoke();
        try
        {
            if ( ! $this->getItem($name)->set($value, $expires) )
            {
                throw new \Exception("Could not save data to cache");
            }
            return $data;
        }
        catch (\Exception $e)
        {
            $this->logException($e->getMessage(), $e);
            return false;
        }
    }

As far as I understand it correctly you want to refresh the cache if it has expired. Stash has something like Stampede Protection, you can also lock the item, so other processes won't regenerate it.
Won't that suffice to your needs?

Hi Nakard,
No, the idea would be that if the item is in the cache it is returned otherwise the callable is executed and it's output is pushed in the the cache and returned.  It makes this possible:
$fnExpensiveFunc = function(){
    return aWholeBunchOfDataFromDb();
};
$myData = $myCachePool->remember('myCacheKey', $fnExpensiveFunc, $expiresSecs);

Closing this as a dupe of #128


Enable cloud-based Kubernetes versions

The minimum version of Kubernetes required for the drogue-cloud-core chart is is incompatible with GKE/EKS versions of Kubernetes due to semver rules.
kubernetes/kubernetes#89404
This should resolve an issue I am current having:
Error: chart requires kubeVersion: >= 1.19.0 which is incompatible with Kubernetes v1.21.5-gke.1302
Note: I have not tested this on all the supported platforms.

Just checked on minikube, and it seems to not break anything :-)
The issue still seems weird. As to my understanding, Google reports the GKE version as a pre-release to Kubernetes. If they would use a + instead, if would be kind of a "post release" version.
Like done in OpenShift: Kubernetes Version: v1.21.6+b4b4813
Still, I think it is ok to include pre-releases in this version requirement too.


es6 classes with mixin - meantime solution

There were few discussions regarding React's new approach of using es6 classes.
So at the future Reflux will be separated from React, but we need a solution today.
Here is a first proposal for one! (example with ListenerMixin, could be copied to other mixins) :
import React from 'react';
import Reflux from 'reflux';

function ListenerMixin(ComposedComponent) {
    return React.createClass({
        mixins: [Reflux.ListenerMixin],

        render() {
            return <ComposedComponent {...this.props} listenTo={this.listenTo}/>;
        }

    });
}

export default ListenerMixin;

now in the component (using es7 decorators - supported by babel)
import Store from '../../stores/Store.js'
import ListenerMixin from './ListenerMixin.js';

@ListenerMixin
class SomeComp extends Component {
  componentDidMount() {
    this.props.listenTo(Store, msg=>{console.log(msg)});  //listenTo is a prop now
  }
  render()...
}

Reflux's stores are the same (Reflux.createStore({...}))
Please send feedback

FYI: Reflux is seperated from react already by the reflux-core project.
I think ListenerMixin to be used as es7 decorator would be nice to have.

:+1:
Do you have some actual real solution waiting for reflux class support and alternative to mixin ?
I also have the same problem trying to use ListenerMixin in a Component ...

So I've been thinking about adding a RefluxComponent to the mix instead of having mixins. It would work like this:
var { RefluxComponent } from "reflux";
var { myStore } from "./stores";
/* ... */
render: () {
  return (
    <RefluxComponent connect={
      (connector) => {
        connector(myStore, "myVar");
        // connect any number of stores to any variable
      }
    }>
      { /* use whatever from this.state.myVar */ }
    </RefluxComponent>
  );
}

Using ES6 shorthand for the fat arrow you can do less boilerplate-y:
<RefluxComponent connect={ (c) => c(myStore, "myVar") }>
  { /* use whatever from this.state.myVar */ }
</RefluxComponent>

I was originally thinking about using React's contextType to trinkle down the store to anyone that wants to bind with them, however the context feature has some issues as in making the app a bit harder to manage (and in the end be more tightly coupled to flux stores than what my taste would allow).

Why not simply use the following approach?
...
    componentDidMount: function() {
        this.unsubscribe = fooStore.listen(this.onChange);
    },
    componentWillUnmount: function() {
        this.unsubscribe();
    },
...

For ES6 support, I have simple set of classes in Influx that should do the trick

Finally it's out - an es7 decorator to connect to a store -
https://github.com/yonatanmn/reflux-state-mixin/blob/master/connectDecorator.js
it's part of my reflux-state-mixin, so It's not exactly the same as Reflux.connect, but close enough, and with few adjustments it'll work for normal Reflux.
(it can be used as is already for Reflux - just add getinitialState to the store - setting state for any trigger, try it out!)
The important thing - it controls state, not props!

@yonatanmn  I have this error; Uncaught TypeError: (0 , h.default) is not a function

hey @juandav - what are you running exactly? (reflux-state-mixin, its decorator, or the demo above) if it's related to mixin, you can add issue in the relevant repo, and add some more details

Well now I'm using dependency: reflux-state-mixing, but I get the following error on the console: "Uncaught Invariant Violation: Objects are not valid as to React child (found: object with keys {_id, title, __v, date }). If you meant to render a collection of children, use an array or wrap Instead createFragment using the object (object) from the React add-ons. Check the render method of t.".
This is my store
import Reflux from 'reflux';
import MenuActions from '../actions/MenuActions.jsx';
import StateMixin from 'reflux-state-mixin';
import $ from 'jquery';

let MenuStore = Reflux.createStore({
  mixins         : [ StateMixin.store ],
  listenables    : [ MenuActions ],
  url            : 'http://localhost:7000/menu',
  menuList       : [],
  getInitialState: function() {
    return {
      menu: null
    };
  },
  init           : function() {
    this.fetchMenu();
  },
  fetchMenu      : function() {
    $.ajax({
      type   : 'GET',
      url    : this.url,
      context: this
    })
    .done(function(data) {
      // console.log(data.payload);
      // this.menuList = data.payload;
      // this.trigger(this.menuList);
      this.setState({ menu: data.payload });
    })
    .fail(function(err) {
      console.log('Error al cargar data');
    });
  }
});

export default MenuStore;

and this is my component
'use strict';
/*
* Module dependencies
*/
import React, { Component } from 'react';
import DataTable from '../components/datatable/datatable.jsx';

import MenuStore from '../stores/MenuStore.jsx';
import {connector} from 'reflux-state-mixin';

@connector(MenuStore, 'menu')
export default class MenuContainer extends Component {

  render() {
    let { menu } = this.state;
    return (
      <h1> Test Menu { menu } </h1>
    )
  }

}

It seems the data you fetch is an Object, and you should render is correctly - choosing the right property of this object, or somehow mapping it.
It is totally react problem, and the answer depends on the data you get from server. Try console.log(menu) in render (before return) to see how the data looks like.

yeah my problem is react. thank you

@yonatanmn
As soon as I try to use the decorator like so:
@connector(store, 'dogs')
export default class Home extends React.Component {

I get
Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).

hey @juandav , first - please report issues in reflux-state-mixin repo,
secondly - The problem is duplicate copies of react. Check your react dependencies, and Reflux's dependencies, to see if you got two copies.

But I don't get that problem until I import your plugin and try to use it...

maybe your problem is due to the use of decorators to make sure you use it on your webpack have something.
module: {
  loaders: [
    {
      test: /\.jsx$/,
      exclude: /node_modules\/(?!(stardust))/,
      loader: ['babel'],
      query: {
        cacheDirectory: true,
        plugins: [
          'transform-runtime',
          'add-module-exports',
          'transform-decorators-legacy',
        ],
        presets: ['react', 'es2015', 'stage-1']
      }
    }
  ]
}

What other changes do you guys think Reflux should have in order to push in to a final 0.5.x version? I'm up for helping on this!
Is there a roadmap with changes? If not, maybe we should make one?

We have ES6 now, so closing this.

We have ES6 now, so closing this.

Can I use mixins in Reflux with ES6 now?
Here is my code :
mixins: [Reflux.connect(PopularStore, 'popularstore')],
popularStore: null,
and I get : Parsing error: Unexpected token, expected ","
unless I use this, then it works :
const JSONViewerReflux = createReactClass({
mixins: [Reflux.connect(PopularStore, 'popularstore')],
popularStore: null,
But with normal react classes, it doesn't work.
Any suggestions where to put mixins and to use them with ES6? I don't wanna conver all my components code to ES5.


OSX Service: can't copy to LaunchAgents

I've been running the 0.7 release successfully (not as a service) on a mac for a month or so.  Yesterday I upgraded to v2.100.0, and while I'm able to run it the way I was before (not as a service), if I try to configure it to run as a service I get this result:
Enter work folder (press enter for _work) >
Enter run agent as service? (Y/N) (press enter for N) > Y
Creating launch agent in /Users/prose/Library/LaunchAgents/vsts.agent.msdata.prose-mac-test-2.plist
creating /Users/prose/Library/Logs/vsts.agent.msdata.prose-mac-test-2
cp: /Users/prose/Library/LaunchAgents/vsts.agent.msdata.prose-mac-test-2.plist: No such file or directory
svc.sh: line 40: failed to copy plist: command not found
Cannot start the service. Check the logs for more details.
An error occured.  Exit code 127 returned from process: file name '/bin/bash', arguments 'svc.sh install'.
Here's the log file from the _diag folder:
Agent_20160510-165044-utc.log.txt
Suggestions?

That might mean ~/Library/LaunchAgents doesn't exist.  That's a core built in core OSX directory.  I've seen osx reports of some installs having it missing.

So the first user I logged onto the machine with when I received the new machine does have that directory, but I later decided I wanted to interact with the machine under a different, standardized user name.  So I created a new user and made it admin and have since been logging on with that user name.  It does not have that directory.
I just now created the directory and reran and everything seems to be working fine as a service.
Thanks!
Might be worthwhile to handle this in the configuration script or add to troubleshooting docs or something.

Now I'm having a different issue trying to run as a service on my second mac.  On this machine I did already have a ~/Library/LaunchAgents directory, and when I deleted the .Agent file and reran run.sh so that I could reconfigure to run as a service, it gets a little farther.  The agent is setup in the queue, but I get this error message:
Enter run agent as service? (Y/N) (press enter for N) > Y
Creating launch agent in /Users/prose/Library/LaunchAgents/vsts.agent.msdata.prose-mac-test-1.plist
creating /Users/prose/Library/Logs/vsts.agent.msdata.prose-mac-test-1
Service vsts.agent.msdata.prose-mac-test-1 successfully configured
Could not find domain for
svc.sh: line 45: failed to load /Users/prose/Library/LaunchAgents/vsts.agent.msdata.prose-mac-test-1.plist: No such file or directory
/Users/prose/Library/LaunchAgents/vsts.agent.msdata.prose-mac-test-1.plist
Stopped
Agent is configured to run as service vsts.agent.msdata.prose-mac-test-1

Here's the diag log file.
Agent_20160510-175052-utc.log.txt
I can't seem to figure out what's different in the configuration between the two machines.  The other one is working fine as a service, but this one only works when I run it not as a service.

Deleting .Agent isn't enough (we are adding an unconfigure command).
Does it work if you go to another directory, create a new agent, and choose a different agent name?

I changed the scripts to detect that directory is missing (the original issue).
I just releases 2.100.1 @ https://github.com/Microsoft/vsts-agent/releases
Other service fixes and features added.  Follow docs: https://github.com/Microsoft/vsts-agent/blob/master/README.md
Configure a completely new agent via docs since it's generating different scripts now

Hi,
I have this problem too,
yesterday I installed vsts-agent-osx.10.11-x64-2.102.0
when i tried to install as service i got this error:
mc-110:myagentTfs2015 tfsservice$ sudo ./svc.sh install
Password:
Creating launch agent in /Users/tfsservice/Library/LaunchAgents/vsts.agent.alm.D3alm.mc-110.InternationalMarkets.TFS2015.OSX.Agent1.plist
Failed: /Users/tfsservice/Library/LaunchAgents does not exist.  OSX system dir expected

so i created the LaunchAgents folder
then i was able to install as service
mc-110:myagentTfs2015 tfsservice$ sudo ./svc.sh install
Password:
Creating launch agent in /Users/tfsservice/Library/LaunchAgents/vsts.agent.alm.D3alm.mc-110.InternationalMarkets.TFS2015.OSX.Agent1.plist
Creating /Users/tfsservice/Library/Logs/vsts.agent.alm.D3alm.mc-110.InternationalMarkets.TFS2015.OSX.Agent1
Creating /Users/tfsservice/Library/LaunchAgents/vsts.agent.alm.D3alm.mc-110.InternationalMarkets.TFS2015.OSX.Agent1.plist
Creating runsvc.sh
Creating .service
svc install complete

then i started
mc-110:myagentTfs2015 tfsservice$ sudo ./svc.sh start
starting vsts.agent.alm.D3alm.mc-110.InternationalMarkets.TFS2015.OSX.Agent1
status vsts.agent.alm.D3alm.mc-110.InternationalMarkets.TFS2015.OSX.Agent1:

/Users/tfsservice/Library/LaunchAgents/vsts.agent.alm.D3alm.mc-110.InternationalMarkets.TFS2015.OSX.Agent1.plist

Started:
1973 0 vsts.agent.alm.D3alm.mc-110.InternationalMarkets.TFS2015.OSX.Agent1

but it seems the is not starting anything
mc-110:myagentTfs2015 tfsservice$ ps aux | grep Agent.Listener
tfsservice        2015   0.0  0.0  2444056    796 s000  S+    9:17AM   0:00.00 grep Agent.Listener

If i uninstall the service and start it as normal task it works perfectly:
mc-110:myagentTfs2015 tfsservice$ ./run.sh
Scanning for tool capabilities.
Connecting to the server.
2016-06-23 07:33:31Z: Listening for Jobs
2016-06-23 07:44:09Z: Running job: Build

so seems that i'm affected from this issue and also this one

I've already tried to reconfigure, reinstall , change agent name ...but nothing changes, any ideas ?
thank you
PS:
System Version:	OS X 10.11.5 (15F34)
Kernel Version:	Darwin 15.5.0

@mrmojo666 see https://github.com/Microsoft/vsts-agent/issues/317

sorry, maybe i didn't get correctly, but here if i start service without sudo, it gives same results as with sudo. are you meaning that I have to wait for RC2 release to get this service working ?
Thank you

No, it works without sudo per #317 - that customer, many others and our services are running per sudo.
Start again and after configure, run this sequence of commands and paste output here:
(no sudo)
./svc.sh install
./svc.sh start
./svc.sh status

#317 is a doc bug to remove sudo from docs

WOW, thank you it worked.

Being a non Mac user, can someone tell me the proper way to create the LaunchAgents folder?  The error message seems to state that its a System Directory, so is MKDIR good enough or is there an official way to do this?

@simmdan I've got the same issue with the Could not find domain for message - did you ever figure out how to get the Agent to start?

@cocowalla.  Sorry, honestly I gave up trying to run as a service quite some time ago.  I don't have many mac machines and the ones I do have are used for nothing but build agents, and they are rarely rebooted.  When they do get rebooted I just log into them and manually start the agent under screen so that I can detach from the console and leave the agent running.  Someday I'll try to get them running as a service again, but this has been stable enough that I just haven't bothered.

Anybody find a way to fix the Could not find domain for issue? Running as a service is essentially broken on mac.

@lavahot can you share a full log of what you are seeing?

macmini01:agents builder$ ./svc.sh start
starting vsts.agent.mytfs.macmini01
Could not find domain for
Failed: failed to load /Users/Builder/Library/LaunchAgents/vsts.agent.mytfs.macmini01.plist

Running 10.12.5 and connected via SSH. I've done a little bit of research and it seems like there's some sort of permissions issue with running launchctl (which is what svc.sh is doing) over SSH if the plist is owned by a non-root user or something. Not really sure how to solve it. builder owns all of the agent files at /usr/local/bin/agents (inclusive) and ~/Library/LaunchAgents/vsts.agent.mytfs.macmini01.plist. I'm also trying to run ./svc.sh start as builder. Any thoughts?

So it's launchctl that is emitting the Could not find domain for. The error code returned is 112. launchctl error 112 reveals 112: Could not find specified domain. I have no idea what this means. AFAIK, the plist generated by ./svc.sh install doesn't specify a domain, but this might just be my ignorance of how launchd works. I went through and verified that all permissions were correct. I had an issue where the user was incorrect, but that's fixed now and I'm still getting the error. I suspect that it has something to do with the user not being logged in on the desktop, but I'm not certain. I'm going to dig into the docs and see if that helps.


Bug: Swipes displayed on Discord differ from those on C.AI

Reproduction steps: Have a conversation with a bot, swiping responses. Open conversation in browser. Selected swipes on C.AI are different from those on Discord (perhaps all first swipes?).
Not sure if this is a bug with C.AI or with the bot. I know C.AI has ongoing issues with swipes.

@drizzle-mizzle Please give me a chance to explain more clearly what the issue is by using an example.
Here's what we see on Discord. The user thinks they are responding to the second swipe (the bot choosing "yellow"), but in truth the user is responding to the first swipe (the bot choosing "blue").

Confirmed on the CAI conversation:

hmm

Maybe you responded before character response was updated on discord?

I've checked right now, it performs swipe correctly

I'm reproducing this bug consistently, even when waiting after swiping.

Here's the config I'm using:
{
    "discord_bot_token": "[redacted]",
    "char_ai_user_token": "[redacted]",

    "discord_bot_role": "Manage Character",
    "discord_bot_prefixes": [ ".ai5 "],
    "discord_private_category_name": "CAI PRIVATE CHANNELS",

    "default_audience_mode": 1,
    "audience_mode_quote_format": "((In response to: [{quote}]))\n",
    "audience_mode_username_format": "User [{username}] says: ",
    "default_no_permission_file": "nopower.gif",

    "private_chat_role_required": false,
    "use_character_avatar": true,
    "use_character_name": true,
    "description_in_playing_status": true,
    "allow_dm": true,

    "rate_limit": 10,
    "replies_delay": 1,
    "enable_swipe_buttons": true,
    "enable_stop_button": true,
    "buttons_remove_delay": 120,

    "auto_setup": true,
    "auto_char_id": "9QXQHXobHey-eZwvlMn4SftcVDqCtA_UKfek9QQ8zyE",

    "custom_chrome_directory": null,
    "custom_chrome_executable_full_path": null
}

Checked again. It just works. Can't reproduce your problem...
1: Reset + send message = Response A

2: Swipe Response A to Reseponse B and responding on it = Response B is displayed as a chosen one in cAI chat:

@malfoyslastname to begin with, try to simply update your bot version for the last one. I don't rembember changing anything that would affect this behavior, but just to make sure, download it and check if problem goes away.

I'll update to the latest version and report back.

This seems fixed on the latest version. Thank you and sorry for not doing that first.


Energy Management integration test

Implementing an integration test that tests multiple currently developed features related to EM at once

May we split this one in separate ones?

Thermal IT uncontrolled with Hp + ThermalGrid with House + ThermalStorage
Thermal IT Em controlled with Hp + ThermalGrid with House + ThermalStorage
PV + Evcs uncontrolled
PV + Evcs + Storage Em controlled


k3d image produces unschedulable nodes (DiskPressure)

When trying to follow the quickstart to test spin-operator locally, the k3d image vended from this repo would not allow pods to be scheduled due to DiskPressure on the vended nodes. I don't often use k3d or k3s, so I'm not really aware of the default debugging process here.
Setup:
k3d cluster create wasm-cluster --image ghcr.io/spinkube/containerd-shim-spin/k3d:v0.13.0 --port "8081:80@loadbalancer" --agents 2
cd path/to/spin-operator
make install
make run (and install runtime-class/executor)
kubectl apply -f config/samples/simple.yaml # I was actually trying a different sample app - but the same applies to simple

kubectl describe pod my-spin-app-podName:                sentiment-analysis-spin-84b78cf96d-l84vl
Namespace:           default
Priority:            0
Runtime Class Name:  wasmtime-spin-v2
Service Account:     default
Node:                <none>
Labels:              core.spinoperator.dev/app-name=sentiment-analysis-spin
                     core.spinoperator.dev/app.sentiment-analysis-spin.status=ready
                     pod-template-hash=84b78cf96d
Annotations:         <none>
Status:              Pending
IP:
IPs:                 <none>
Controlled By:       ReplicaSet/sentiment-analysis-spin-84b78cf96d
Containers:
  sentiment-analysis-spin:
    Image:      ttl.sh/sentiment-analysis:24h
    Port:       80/TCP
    Host Port:  0/TCP
    Command:
      /
    Environment:  <none>
    Mounts:
      /runtime-config.toml from spin-runtime-config (ro,path="runtime-config.toml")
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-wlqjr (ro)
Conditions:
  Type           Status
  PodScheduled   False
Volumes:
  spin-runtime-config:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  sentiment-analysis-spin-15d3c3e
    Optional:    true
  kube-api-access-wlqjr:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason            Age   From               Message
  ----     ------            ----  ----               -------
  Warning  FailedScheduling  6m2s  default-scheduler  0/3 nodes are available: 3 node(s) had untolerated taint {node.kubernetes.io/disk-pressure: }. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling..
  Warning  FailedScheduling  42s   default-scheduler  0/3 nodes are available: 3 node(s) had untolerated taint {node.kubernetes.io/disk-pressure: }. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling..

kubectl describe node k3d-wasm-cluster-agent-0
Name:               k3d-wasm-cluster-agent-0
Roles:              <none>
Labels:             beta.kubernetes.io/arch=arm64
                    beta.kubernetes.io/instance-type=k3s
                    beta.kubernetes.io/os=linux
                    kubernetes.io/arch=arm64
                    kubernetes.io/hostname=k3d-wasm-cluster-agent-0
                    kubernetes.io/os=linux
                    node.kubernetes.io/instance-type=k3s
Annotations:        alpha.kubernetes.io/provided-node-ip: <IP_ADDRESS>
                    flannel.alpha.coreos.com/backend-data: {"VNI":1,"VtepMAC":"72:24:04:b0:95:d2"}
                    flannel.alpha.coreos.com/backend-type: vxlan
                    flannel.alpha.coreos.com/kube-subnet-manager: true
                    flannel.alpha.coreos.com/public-ip: <IP_ADDRESS>
                    k3s.io/hostname: k3d-wasm-cluster-agent-0
                    k3s.io/internal-ip: <IP_ADDRESS>
                    k3s.io/node-args: ["agent"]
                    k3s.io/node-config-hash: 7HHKR4NB7X5APB6LOSCTEPYCOLYPHBDSKVGJCJ5UB3JDR7LIC4UQ====
                    k3s.io/node-env:
                      {"K3S_KUBECONFIG_OUTPUT":"/output/kubeconfig.yaml","K3S_TOKEN":"********","K3S_URL":"https://k3d-wasm-cluster-server-0:6443"}
                    node.alpha.kubernetes.io/ttl: 0
                    volumes.kubernetes.io/controller-managed-attach-detach: true
CreationTimestamp:  Fri, 15 Mar 2024 09:59:09 +0100
Taints:             node.kubernetes.io/disk-pressure:NoSchedule
Unschedulable:      false
Lease:
  HolderIdentity:  k3d-wasm-cluster-agent-0
  AcquireTime:     <unset>
  RenewTime:       Fri, 15 Mar 2024 10:07:19 +0100
Conditions:
  Type             Status  LastHeartbeatTime                 LastTransitionTime                Reason                       Message
  ----             ------  -----------------                 ------------------                ------                       -------
  MemoryPressure   False   Fri, 15 Mar 2024 10:04:25 +0100   Fri, 15 Mar 2024 09:59:09 +0100   KubeletHasSufficientMemory   kubelet has sufficient memory available
  DiskPressure     True    Fri, 15 Mar 2024 10:04:25 +0100   Fri, 15 Mar 2024 09:59:19 +0100   KubeletHasDiskPressure       kubelet has disk pressure
  PIDPressure      False   Fri, 15 Mar 2024 10:04:25 +0100   Fri, 15 Mar 2024 09:59:09 +0100   KubeletHasSufficientPID      kubelet has sufficient PID available
  Ready            True    Fri, 15 Mar 2024 10:04:25 +0100   Fri, 15 Mar 2024 09:59:09 +0100   KubeletReady                 kubelet is posting ready status
Addresses:
  InternalIP:  <IP_ADDRESS>
  Hostname:    k3d-wasm-cluster-agent-0
Capacity:
  cpu:                5
  ephemeral-storage:  61202244Ki
  hugepages-1Gi:      0
  hugepages-2Mi:      0
  hugepages-32Mi:     0
  hugepages-64Ki:     0
  memory:             8039864Ki
  pods:               110
Allocatable:
  cpu:                5
  ephemeral-storage:<PHONE_NUMBER>7
  hugepages-1Gi:      0
  hugepages-2Mi:      0
  hugepages-32Mi:     0
  hugepages-64Ki:     0
  memory:             8039864Ki
  pods:               110
System Info:
  Machine ID:
  System UUID:
  Boot ID:                    0cf118bc-beff-4598-9800-8e29273eff15
  Kernel Version:             5.15.49-linuxkit-pr
  OS Image:                   K3s dev
  Operating System:           linux
  Architecture:               arm64
  Container Runtime Version:  containerd://1.7.7-k3s1.27
  Kubelet Version:            v1.27.8+k3s2
  Kube-Proxy Version:         v1.27.8+k3s2
PodCIDR:                      <IP_ADDRESS>/24
PodCIDRs:                     <IP_ADDRESS>/24
ProviderID:                   k3s://k3d-wasm-cluster-agent-0
Non-terminated Pods:          (0 in total)
  Namespace                   Name    CPU Requests  CPU Limits  Memory Requests  Memory Limits  Age
  ---------                   ----    ------------  ----------  ---------------  -------------  ---
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  Resource           Requests  Limits
  --------           --------  ------
  cpu                0 (0%)    0 (0%)
  memory             0 (0%)    0 (0%)
  ephemeral-storage  0 (0%)    0 (0%)
  hugepages-1Gi      0 (0%)    0 (0%)
  hugepages-2Mi      0 (0%)    0 (0%)
  hugepages-32Mi     0 (0%)    0 (0%)
  hugepages-64Ki     0 (0%)    0 (0%)
Events:
  Type     Reason                   Age                    From                   Message
  ----     ------                   ----                   ----                   -------
  Normal   Starting                 8m19s                  kube-proxy
  Normal   NodeHasNoDiskPressure    8m19s (x2 over 8m19s)  kubelet                Node k3d-wasm-cluster-agent-0 status is now: NodeHasNoDiskPressure
  Normal   Starting                 8m19s                  kubelet                Starting kubelet.
   Attempted to free<PHONE_NUMBER>1 bytes, but only found 0 bytes eligible to free.

cc @vdice

I don't see this, but I also ususally run K3d with 0 agents, as I've found performance to be far better (3 containers vs. 5).

I'm also not able to repro after trying a few different apps.  (Tested on Mac, copy/pasted steps above.)  Possible to relay more details on your system setup?

this is also on a Mac (M1 Pro) with plenty (~2tb) of free space, Docker Desktop also seems to have plenty of free space (other things I've been using it for work fine):

+1 I am seeing the same thing on a Mac (M1).

After purging a bunch of stuff from docker desktop it started working for me too - I wonder if they have some disk reporting issues because it never warned me about it.
Closing this bc it's ostensibly not SpinKube related, but it is a very unfortunate experience :(


Add MonthDay type

@alexander-yevsyukov commented on Thu Jul 27 2017
... similar to MonthDay from Java 8.

Duplicates #12.


Super simple redux

Hi guys,
I've created a proposal/suggestion regarding flux API, suitable for redux too. I'd love to hear what people from redux community think about that, and maybe even someone will present a redux implementation.
https://github.com/yonatanmn/Super-Simple-Flux
Thanks !

Redux was built based on experience and frustration with class/singleton-based Flux implementations with many Stores. This is the model you're suggesting. We don't find it compelling.
See also https://medium.com/@dan_abramov/the-evolution-of-flux-frameworks-6c16ad26bb31


Make sure that the bundle is optimized

.5kb isn't "big" in absolute terms, but it seems big for what this component does.
My prediction is that some part of the prop-types lib is sticking around in the bundle.

Seems fine to me.


Add zoom

What about adding a zoom function for implicitly and explicitly tagged transformers?

How do you imagine it would work? Currently you can use zoom from lens, see this comment.

I see. That comment covers the case where the callee function has a mtl MonadState constraint. As far as I know, it does not help with:
The simplest use case is when the callee function uses 1 Ether state transformer. I could use mtl state transformer instead, but I prefer uniformity in my code over a mix of Ether and mtl state transformers.
My example use case is a caller function that uses 2 (implicitly or explicitly) tagged Ether state transformers, and a callee that uses one of the states untouched, and a lens applied to the other state.
import           Control.Lens.Type                (Lens')
import qualified Control.Monad.Ether.State.Strict as EtherE
import qualified Control.Monad.Ether.Implicit.State.Strict as EtherI

caller :: (EtherI.MonadState (Sum Int) m, EtherI.MonadState Text m)
      => m Int
caller = zoomE (Proxy:: Proxy (Sum Int)) (Proxy:: Proxy Int) _Wrapped' callee

callee :: (EtherI.MonadState (Int) m, EtherI.MonadState Text m)
      => m Int
callee = EtherI.get

Here's what I came up with:
zoomE :: EtherE.MonadState tagBig stateBig m
      => proxy tagBig
      -> proxy tagSmall
      -> Lens' stateBig stateSmall
      -> EtherE.StateT tagSmall stateSmall m b
      -> m b
zoomE tagBig_ tagSmall_ lens st = do
  sBig0 <- EtherE.get tagBig_
  let sSmall0 = view lens sBig0
  (a, sSmall1) <- EtherE.runStateT tagSmall_ st sSmall0
  let sBig1 = set lens sSmall1 sBig0
  EtherE.put tagBig_ sBig1
  pure a

zoomI :: EtherI.MonadState stateBig m
      => Lens' stateBig stateSmall
      -> EtherI.StateT stateSmall m b
      -> m b
zoomI lens st = do
  sBig0 <- EtherI.get
  let sSmall0 = view lens sBig0
  (a, sSmall1) <- EtherI.runStateT st sSmall0
  let sBig1 = set lens sSmall1 sBig0
  EtherI.put sBig1
  pure a

Let me know what you think. If this looks reasonable to you I can make a PR and do edits.

Your solution is specific to StateT. I need to explore the design space. I definitely don't want to incur a dependency on lens for this package, but I'm afraid a good zoom implementation would require it.
I have a couple of ideas, though.

I've developed a solution that works nicely using reflection. I have no intention to include it in ether but it surely can go into a separate package ether-zoom.

I am interested, @int-index. Did you ever make ether-zoom?

No, but here's the general idea:
You can redirect instance search using DispatchT in the style of tagAttach and tagReplace. Declare a type like data K_TagZoom t z = TagZoom t z and use the z parameter to reify a lens: Reifies z (Lens' stateOuter stateInner). Use this lens to define the appropriate MonadState instance:
instance ( MonadState tag stateOuter m
         , Reifies z (Lens' stateOuter stateInner)
         ) => MonadState tag stateInner (DispatchTagZoomT tag z m) where
  get = ... -- use the lens here
  put = ... -- use the lens here
  modify = ... -- use the lens here

I'll probably package this up when I'm done with ether-flatten, but no promises. PRs welcome.

I realized that there are some non-trivial pitfalls and implement it myself, see #26. Tell me what you think.


Various optimizations

Description

Use io.ReadFull instead of ioutil.ReadAll when reading Sensu API responses
Add advanced configuration settings for Sensu APIs HTTP clients

Related Issue
N/A
Motivation and Context
Prevent EOF errors
How Has This Been Tested?
Manual testing!
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Codecov Report

Merging #719 into master will increase coverage by 0.32%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #719      +/-   ##
==========================================
+ Coverage    21.2%   21.53%   +0.32%
==========================================
  Files          27       27
  Lines        2862     2874      +12
==========================================
+ Hits          607      619      +12
  Misses       2196     2196
  Partials       59       59

Impacted Files
Coverage Δ

uchiwa/main.go
39.72% <100%> (+11.85%)
:arrow_up:

Continue to review full report at Codecov.

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


Sidepane does not close

Summary:
In the draft view, when you open the sidepane (the one with the SEO optimisations, the image selection, and socials), it sometimes does not close.
This happens pretty sporadically, though I do not use ghost enough to document how often this occurs
Technical Details
Ghost Version: 3.13.3
Node Version: 12.10.x
Browser: Safari on MacOS 10.15 Catalina
OS: Ubuntu 18.04 on amazon EC2
Database: sqlite3
I've been working around this by exiting out of the drafts view and re-entering it, but just thought it would be good to document it here.
(PS: I run two ghost sites, two separate instances, on a t2.micro . I believe it is 1 gig of RAM, and the recommended RAM is 600 mb per site, but all other aspects work flawlessly with the current setup, as the number of visitors are a bare minimum, so I did not think this is a RAM issue.)

Closing as duplicate of https://github.com/TryGhost/Ghost/issues/9925

@kevinansfield  Extremely sorry if I'm missing something, but wasn't that post closed as it was stale?
Also, it looks like the issue referenced was with relation to the scroll of the PSM, does it apply to the closing of the PSM as well?
I also did read  that this is an issue particularly with safari, is there a fix in the works?


How to support \everymath?

Comparing with MathJax, KaTex formula by default does not show the multiple lines style. It tries to show each formula in a single line, thus causing some symbols very small to read.
The hard solution is to add \displaystyle at the beginning of each formula.
This is too tedious to work. In LaTeX there is a line:
\everymath{\displaystyle}
But it seems that KaTeX does not support this? Anything I might missed? Thanks...

Closing in preference of https://github.com/Khan/KaTeX/issues/450.  \everymath doesn't make sense if you want it to affect other math strings rendered by KaTeX.


Different values for affinity in vina1.2.3 and vina1.2.5 depending on the use of --rigid_macrocycles foe some molecules

Dear all,
I've docked 126 molecules with vina-1.2.3 and vina-1.2.5
to the same receptor,docking box,seed and other parameters
in the config file.
Each of the ligands has been mk_prepared with and without
the --rigid_macrocycles option.
All the returned values are the same, for both the vina versions and
ligand preparation methods, except for ten ligands for which there are
different values depending on the vina version and the presence
of the --rigid_macrocycles option in the call of mk_prepare_ligand.py.
The following tables report the different values and behaviours
for the best Affinity or mode 1.
Legenda:
no rm --> mk_prepare_ligand.py without --rigid_macrocycles
rm    --> mk_prepare_ligand.py with --rigid_macrocycles
vina-1.2.5
lig_id                           no rm    rm       diff
ZINC000170910319  -4.238   -5.21    0.972
ZINC000096249626  -5.078   -6.396  1.318
ZINC000019015189  -4.25     -6.764   2.514
ZINC000019015192  -4.228   -6.908  2.68
ZINC000170910317  -4.321   -5.884  1.563
ZINC000096249625  -4.919   -6.168  1.249
ZINC000096249575  -5.077   -6.24    1.163
ZINC000096196827  -4.353   -6.235  1.882
ZINC000096196855  -4.682   -6.389  1.707
ZINC000096196884  -4.955   -6.612  1.657
ZINC000096196843  -5.025   -6.052  1.027
The reported values are always lower when the
--rigid_macrocycles option is used.
vina-1 .2.3
lig_id                             no rm   rm      diff
ZINC000170910319   -9.094  -5.203  3.891
ZINC000096249626   -10.56  -6.374  4.186
ZINC000019015189   -14.12  -6.782  7.338
ZINC000019015192   -14.54  -6.674  7.866
ZINC000170910317   -9.43    -5.822  3.608
ZINC000096249625   -10.21  -6.66    3.55
ZINC000096249575   -10.32  -6.142  4.178
ZINC000096196827   -9.521  -6.614  2.907
ZINC000096196855   -10.44  -6.585  3.855
ZINC000096196884   -10.67  -6.623  4.047
ZINC000096196843   -10.05  -5.904  4.146
The reported values are always lower when the
--rigid_macrocycles option is not used.
The molecules for which there are no difference
in the values do not have atom types in the set G* or CG*
whereas the ligands presenting two different values all
have atom types in the previous set.
Also the processing times are different.
I have reported some specific tests only for ZINC000019015192
in the file make_test_verb_2.sh_complete.log.
Where I'm wrong?
Thanks.
Saverio
make_test_verb_2.sh_complete.log

Differences are expected because v1.2.4 fixed a bug that systematically gave macrocycles a lower but incorrect energy. See https://github.com/ccsb-scripps/AutoDock-Vina/issues/200#issuecomment-1590327079

Ok.
Now I'm using vina 1.2.5 ,as you can see, but there are differences with this version too.
For example for the molecule ZINC000019015192  vina-1.2.5 returns -4.228  when
--rigid_macrocycles option is not used whereas -6.908  when the previous option is used
with a difference of  2.68 Kcal/mol.
Which of the two ligand preparation methods, with or without --rigid_macrocycles option,
it needs to use if they return different values for some molecules.
I should choose a method for present the docking results.
Thanks again.
Saverio.

The entropy loss upon binding is estimated based on the number of rotatable bonds. For ZINC000019015192 the number of rotatable bonds goes up from 2 to 13, and the penalty associated with entropy loss increases by about 2 kcal/mol. Such penalty is unreasonably large for ZINC000019015192 as it is fairly rigid. So the scores can't really be trusted much when macrocycles are made flexible, but the poses are potentially much better. To be fair, docking scores shouldn't be trusted much in general, anyway, but here it's a fairly systematic error.
I think this is not as much of a problem in autodock-gpu because it reads the TORSDOF field (if I'm not mistaken) while vina counts the number of BRANCH keywords. TORSDOF is still 2 even if this macrocycle is made flexible. Perhaps we should have Vina read the TORSDOF field as well... @atillack @sforli what about a third release in a week?!

@diogomart I am not the biggest fan of reading the TORSDOF field as this just moves the problem to preparation - and in this case in a way only works accidentally as it wasn't adjusted upon making the macrocycles flexible. I think a better, slightly more general approach would be to exclude the macrocycle torsions automatically (or only count them fractionally as some DOFs will remain upon closure).

The fractional TORSDOF is probably a good idea. It's not by accident that TORSDOF is still 2, this was a deliberate decision in meeko to avoid overpenalizing macrocycles. Having preparation set TORSDOF allow us to keep TORSDOF constant independently of the number of bonds that are made rotatable.

Sorry, I know Meeko does "the right thing" - I am just not liking the dependence on a field in an ancient format that may also come from other sources. At the same time, PDBQT is the correct input format for Vina and so we may as well use it's features. Maybe we can go a little bit more general for future things of course 😉

@xavgit we decided to not fix this. The number of rotatable bonds is a very crude model for the entropy loss upon binding, and our assessment is that there are no good options. As it is, macrocycles are over-penalized because each rotatable bond contributes to the entropy loss. If Vina reads the TORSDOF from Meeko, which excludes rotatable bonds within macrocyclic rings, then they would be under penalized. The fractional TORSDOF that Andreas suggested is a good compromise but would require some work to figure out the magnitudes of fractional TORSDOF contributions. Instead of fixing anything, we will just document this limitation #219.
Thank you @xavgit for reporting this so thoroughly.


Add support for patch method git_patch_line_stats + test for it

I've just added support for the git_patch_line_stats method.
The only caveat is that the returned values are size_t being cast to a js number.
This is convenient to quickly gather stats about the patches without having to go down to the line level.
Added a simple test for the function as well

Awesome work. I'm assuming just from the unusual data type that the changes to descriptor were required, that you cant just remove the ignore:true, correct? Otherwise, nice work!

HI,
if you're asking whether I had to add the parameter in addition to remove the ignore:true part, I think I do. Otherwise, the output from the method won't be returned by the wrapper. At least, that's how I understand it.

This looks good to me. Thanks @jfremy!


Add validation callbacks

This doesn't make much sense anymore given the way the library is set up, so I'll close for now.


Table Reset After Catchment Selection.

The Selected TableDefinitions are being reset after selecting a New Catchment, which triggers a Zoom Extent.

That is the expected behavior.
Tables are shown by default when their display property is true.
Creating a catchment will update the view. Hence the display property of each table is set to it;s default. Having display on all tables will recreate all table. Having display property on just a few tables will only recreate these table.

Changed to documentation to remember to explain the behavior in documentation.


Wire up override config for restore

Add the ability to pass a patch config to the restore process. The provided config will be layered on top of the config that is in the backup. This is useful for migrating from the internal data services to external and for restoring into a new data services cluster

Rebased against master.  I think we potentially need this for some external PG backup use cases.