User not created when posting the code at jwt_pair endpoint

Hi!
from here: https://github.com/st4lk/django-rest-social-auth#oauth-20-workflow-with-rest-social-auth anybody can read that "Backend will either sign in the user, either signup, either return an error."
I always took it that it means 1) if user exists, sign in, 2) if not, sign up, 3), something goes wrong, return an error.
But with empty database user is not created for whatever reason. and instead the response is: {"detail":"User not found","code":"user_not_found"}

Why is it important to specify authenticators as [JWTAuthentication()] in SimpleJWTAuthMixin ? Why does the view, that returns token and refresh token pair need authentication anyway?
As far as I know, that's what stopping user being created during the request in backends pipeline. When I override this and return [] in this method, then everything seems to work fine (seems because I actually have not tested it fully)

in every request, it appear
{
"detail": "User not found",
"code": "user_not_found"
}

@ajaiau0 Have you got any solution?


pj_msgs: 0.1.0-1 in 'melodic/distribution.yaml' [bloom]

Increasing version of package(s) in repository pj_msgs to 0.1.0-1:

upstream repository: https://github.com/facontidavide/plotjuggler_msgs.git
release repository: https://github.com/facontidavide/plotjuggler_msgs-release.git
distro file: melodic/distribution.yaml
bloom version: 0.9.7
previous version for package: null

Same concern regarding naming: https://github.com/ros/rosdistro/pull/24832#issuecomment-627577985


Provide some additional xml_node functionalities: null_nodes, this_node

For member variables initialization and return values from functions it might be usefull to be able to have a functionality that gives access to an empty node.
For instance, sometimes I need if-else if-else  that deals with conditions if a variable containing nodes exist or not or have been correctly initialized. To have an empty xml_node element would be really helpful.
For some specific coding reasons it would also be helpful to have a functionality that allows an xml_node to explicitely return itself and not only childs, e.g. xml_node.this_node().

To have an empty xml_node element would be really helpful.

Does xml_node() not work?

functionality that allows an xml_node to explicitely return itself and not only childs

If you mean you want to get a copy of the node that has an empty child list then this is impossible due to the lifetime/ownership restrictions as all nodes with data must be attached somewhere in a document.


Search Results not working with multiple datasets

Steps to Reproduce

Ingest two datasets. For this test, that included the pre-ingested shiavo dataset and a SMTest pst ingest. These datasets spanned different time periods.

Select both datasets in the New Dataset dropdown menu.
Note: notice that there is a separate section for shiavo, SMTest, and the aggregate (SMTest, shiavo) with the top 5 email addresses listed in each section. Unfortunately, the SMTest records all have counts of 0 for the emails addresses sent, received, attachments, accounts associated and search matched.

Initiate a search for Scott (or any term that is in both datasets).

Result: Search results are returned for shiavo but none are returned for the second Dataset SMTest (i.e. all counts showed as 0).
Expected Result: Expected search results for both datasets.

Fixed in Newman v2.1.3. Search results are found across multiple datasets.


Webpack build issue

I am trying to add forest-themes-css/dist/bootswatch/semantic.yeti.min.css to my webpack build,
but it tells me that the flag.png and fonts are missing, because only the CSS files are in the package.
I have both semantic-ui-css and forest-themes-css installed, so how can I get it to look in semantic-ui-css for those files?

I believe the CSS should be changed to include the package where the image is, because this package does not have it.
Eg:
background: url("~semantic-ui-css/themes/default/assets/images/flags.png") ...;


fix: improved transitivity, handles HEq.trans

Transitivity handles heterogeneous cases and premutations of parameters. Fixes #1119

bors merge


zbxtg does not accept sending options from zabbix 4?

Yesterday I installed Zabbix4 on a new CentOs7 server. Sending notifications does not work. When trying to test

In the logs I see this
$ grep zbxtg.py /var/log/zabbix/zabbix_server.log
 10350:20190602:123118.770 In zbx_popen() command:'/usr/lib/zabbix/alertscripts/zbxtg.py'
 10350:20190602:123118.865 /usr/lib/zabbix/alertscripts/zbxtg.py output:
zbxtg.py [TO] [SUBJECT] [BODY]

Other alert options, such as email, work fine.
 10342:20190602:130124.814 trapper got '{"request":"alert.send","sid":"1560d43ee0cc","data":{"mediatypeid":"1","sendto":"mail@mail","subject":"Test subject","message":"This is the test message from Zabbix"}}'

My mistake


log prior called twice

Look prior is called twice here:
mu += self._lnprior(theta_test) in _gpll(self, theta) and
y_t = self._lnlike(theta_t, *args, **kwargs) + self._lnprior(theta_t) in the run method.  Pretty sure the former is overkill, but verify this.

Turns out I did that to ensure that theta_test was allowed by the prior.  Now, I just do the following to get the same effect:
# Reject point if prior forbids it     if not np.isfinite(self._lnprior(theta_test.reshape(-1,))):         return -np.inf


Remove the useless image

Signed-off-by: cwen0<EMAIL_ADDRESS>What problem does this PR solve?

Remove the useless image
What is changed and how does it work?
Check List

Tests

Unit test
E2E test
Manual test (add detailed scripts or steps below)
No code

Code changes

Has Go code change
Has CI related scripts change
Has Terraform scripts change

Side effects

Breaking backward compatibility

Related changes

Need to update the documentation

Does this PR introduce a user-facing change?

NONE

Codecov Report

Merging #624 into master will decrease coverage by 0.12%.
The diff coverage is 21.05%.

@@            Coverage Diff             @@
##           master     #624      +/-   ##
==========================================
- Coverage   55.78%   55.65%   -0.13%
==========================================
  Files          68       68
  Lines        4383     4393      +10
==========================================
  Hits         2445     2445
- Misses       1768     1778      +10
  Partials      170      170

Impacted Files
Coverage Δ

controllers/networkchaos/ipset/ipset.go
37.14% <0.00%> (ø)

pkg/store/experiment/experiment.go
32.20% <0.00%> (-6.58%)
:arrow_down:

pkg/utils/chaosdaemon.go
51.21% <0.00%> (ø)

pkg/utils/grpc.go
0.00% <0.00%> (ø)

controllers/networkchaos/netem/types.go
47.27% <50.00%> (ø)

controllers/podchaos/containerkill/types.go
64.38% <100.00%> (ø)

controllers/timechaos/types.go
61.44% <100.00%> (ø)

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 4fb903d...83bad57. Read the comment docs.

/merge


Failing test

Copy & pasted from Slack so I don't forget ;)
This test is failing. It's probably related to how Fable translate the custom function.
You can debug doing: ./build.sh DotnetBuild, in a terminal : yarn run test and in another yarn run mocha ./tests/bin/ or press F5 into VSCode to be able to set breakpoint.

The latest message of @inosik in this issue https://github.com/fable-compiler/Fable/issues/1199#issuecomment-347101093 about:

"thenAdd2 is not a function"

make me think of the error we are facing this project. Perhaps, I am using the point-free style without knowing it.

I just tried with Fable development version and the test passed 😸 I will release Fable 1.3.3 so you can give it a try.
I also got a warning message about this line so I recommend changing it to let decode x y = succeed x y 👌

@alfonsogarciacaro Awesome, so this was somehow related to the linked issue probably.
Yes, I was in the process to add explicit arguments in every function. Thanks you :)

@alfonsogarciacaro This line seems to be failing now :)
And what I found strange is that it don't execute the function I am expecting.
If you look at the optional decoder. You can see it's using internally the value decoder which is the most basic decoder. It is use to accept any type of data and transform the express into a valid decoder type.
Problem, is the variable value at this point is undefined. I don't understand why the value decoder is not called by the code. Is it related to how Fable translate the curriedfn ?

Hum, I think I know where the error is coming from.
The probably is coming from field. When called as in the failing test, the result of:
let fieldValue = value?(fieldName) is curriedFn because value is not an object but a function.
Here is the result of value.ToString():
(...args) => {
        // _this = _this || this;
        const actualArgsLength = Math.max(args.length, 1);
        expectedArgsLength = Math.max(expectedArgsLength || f.length, 1);
        if (actualArgsLength >= expectedArgsLength) {
            const restArgs = args.splice(expectedArgsLength);
            const res = f(...args);
            if (typeof res === "function") {
                const newLambda = CurriedLambda(res);
                return restArgs.length === 0 ? newLambda : newLambda(...restArgs);
            }
            else {
                return res;
            }
        }
        else {
            return CurriedLambda((...args2) => {
                return f(...args.concat(args2));
            }, expectedArgsLength - actualArgsLength);
        }
    }

And if I execute, the function manually in the debugger I understand that's it's containing the value function.
Example result: value() --> Result {tag: 0, data: undefined}
The right value for the value variable in this case is: { "id": 67, "email"<EMAIL_ADDRESS>}
Yes, I admit there a lot of time "value" in this report..

Ok finally I only forget to apply andThen instead of |> on the optionalDecoder :man_facepalming:


devserver crashing and simple-http-server not showing log_number on firefox

I am aware of your suggestion for fixing the devserver crashing but that didn't help me. So I installed simple-http-server but I am getting this error in firefox console:
Uncaught (in promise) RuntimeError: unreachable executed
<anonymous> http://<IP_ADDRESS>:8000/index.html:11
promise callback* http://0.0.0.:8000/index.html:10

I am on the Talking to JavaScript part.
Using Ubuntu 22.04 LTS. New to Rust and yours is literally the first code I have run. Kindly help me out.

Hi! Just to confirm if you download this repository and run
cargo build --example game --target wasm32-unknown-unknown
then simple-http-server and visit the page you get the above crash?
I just tried the above steps and it works for me, it's tricky to guess what might be going wrong on your end.
What OS and browser are you using?

Hi! Just to confirm if you download this repository and run
cargo build --example game --target wasm32-unknown-unknown then simple-http-server and visit the page you get the above crash?
I just tried the above steps and it works for me, it's tricky to guess what might be going wrong on your end.
What OS and browser are you using?

Yes I cloned this repository and got the same error (now at line 84 of index.html). I am on Ubuntu 22.04 using Firefox as a browser.


Resident Register Service

@leomcabral What would that be?!

This was a test issue to show @matheus.ruschel how github works


RFC: Include intended recipient name in SendError

Add test for SendError
We're going to touch it, the tests will demonstrate the changes.
Include intended recipient name in SendError
This aids with debugging send errors. Thanks to type decoupling made by
Recipient, senders may not even know the actual receiving actor, so
senders cannot replicate this behaviour fully on their own.
Should help with debugging downstream issues like tonarino/portal#1153.
Caveats:

Increases the size of Recipient, Addr, SendError by ~one pointer~ two pointers (one &str).
Introduces API-breaking changes to SendError and SendResultExt::on_full().

Specifically, SendError, DisconnectedError can no longer be constructed
by downstream code. That feels correct now, but can be fixed in
non-API-breaking manner if needed.

Is it worth it?

Did you consider including the intended message instead, like crossbeam_channel does? Some pros and cons that I can think of:
Pros:

We can inspect the content of the message that is being dropped in case of error
Particularly useful for actors that take an enum message

Cons:

Messages need to implement Debug + Send?
There are cases multiple actors take the same message type e.g. MediaFrame.

That's a very valid remark. Agreed that seeing the message is even more useful than seeing the recipient.
The approach is made tricky by our ability to create Recipient<N> out of Addr<M> if N can be converted to M, introduced in #38.

SendError cannot simply contain M as Recipient<N> must have the M type erased.
If we also require that M is convertible back to N, then SendError can contain N. But such a requirement feels weird and may be impossible to satisfy.
SendError could contain Box<dyn Any> (Any being M), but Any doesn't unfortunately allow "try downcasting to Debug trait". It only allows trying downcasting to a particular type, M in this case. That would make the whole M -> N type erasure a second class citizen.
SendError could contain Box<dyn Debug>, which would indeed require adding the Debug bound to Actor::Message (it is already Send) - and possibly also Sync (see below).

The ideal API would probably be: provide Option<Box<dyn Debug>> in SendError which would be Some if M: Debug and None otherwise. Maybe specialization would allow this one day, but I see no way how to achieve that in current stable rust (it looks like one can "require" a bound, but cannot "detect optional bound being satisfied").
Anyways, option (4) looks viable, so I've submitted and alternate PR #60 but it suffers from its own problems.
It is possible that we've closed a lot of doors with #38 - it could be feasible to touch some of its core ideas. For example we may try to Box the messages and convert then only on the receiving side. That could allow option (1) above.

Thank you for all the considerations. The PR is still worth merging as is, but I would also love to hear other Rust experts thoughts @bschwind @mcginty @efyang @slightknack


added discription in diffferent courses

fixex #27
added relavent description in different courses
Type of PR

[x] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)

Checklist:

[x] I have performed a self-review of my code
[x] I have read and followed the Contribution Guidelines.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[x] I have commented my code, particularly in hard-to-understand areas.

@techmannih Please review, and letting me know if any changes are needed

@techmannih, could you please add levels?


Move container image used in springboot devfile to some odo owned image repository

The image we are using in java-springboot devfile is in @maysunfaisal 's personal image repository, it should be moved to some odo owned repository
https://github.com/odo-devfiles/registry/blob/master/devfiles/java-springboot/devfile.yaml#L12

Got image pull error whole day
  Normal   Started           5m26s                kubelet, crc-45nsk-master-0  Started container copy-supervisord
  Warning  Failed            118s                 kubelet, crc-45nsk-master-0  Failed to pull image "maysunfaisal/springbootbuild": rpc error: code = Unknown desc = Error writing blob: error storing blob to file "/var/tmp/storage760563944/4": read tcp <IP_ADDRESS>:46146-><IP_ADDRESS>:443: read: connection reset by peer
  Normal   Pulling           47s (x2 over 5m26s)  kubelet, crc-45nsk-master-0  Pulling image "maysunfaisal/springbootbuild"
  Warning  Failed            47s                  kubelet, crc-45nsk-master-0  Error: ErrImagePull
  Warning  Failed            47s                  kubelet, crc-45nsk-master-0  Failed to pull image "maysunfaisal/springbootruntime": rpc error: code = Unknown desc = Error writing blob: error storing blob to file "/var/tmp/storage1863

I agree that we need to move from personal image registries but the reason for that is so that we can productise them ( control changes to them ).
Not sure if being in mayson's personal registry would give you this image pull error?

I agree that we need to move from personal image registries but the reason for that is so that we can productise them ( control changes to them ).
Not sure if being in mayson's personal registry would give you this image pull error?

I thought maysun might restricted access to his repo :smile:, I just wanted to point here with personal repositories if you get any error you cannot check the reason behind it. I get image pull error from quay also but then you get the status it is down

AFAIK my dockerhub springboot image is not restricted.
I can give you the dockerfiles to build and push to a registry of your choosing, or you can just pull my image, tag and push to the registry of your choosing 🤔

I agree that we need to move from personal image registries but the reason for that is so that we can productise them ( control changes to them ).
Not sure if being in mayson's personal registry would give you this image pull error?

I thought maysun might restricted access to his repo , I just wanted to point here with personal repositories if you get any error you cannot check the reason behind it. I get image pull error from quay also but then you get the status it is down

said in sarcasm :), it might be some network problem at my end, this error just caught my attention to the issue.

we need to update the examples of springboot present in odo repo as well

Can we use images supported by runtimes team? @metacosm any suggestions ?

The image we are using in java-springboot devfile is in @maysunfaisal 's personal image repository,

@adisky Can you please link the image repository

as discussed with @maysunfaisal he used custom images to showcase devfile capability to have separate build and run containers.
@girishramnani  suggested to use image from che repository as we do not want to maintain our images. Devfile ability we can show in docs and demo.
I feel we need atleast one devfile with multiple containers for testing purpose to catch errors like these https://github.com/openshift/odo/issues/3711
@tkral @girishramnani Please suggest what needs to be done here.

I feel we need atleast one devfile with multiple containers for testing purpose to catch errors like these #3711

If it is just for testing purposes it doesn't have to be in odo devfile registry, we can just include devfile in our testing directory.

@girishramnani suggested to use image from che repository as we do not want to maintain our images. Devfile ability we can show in docs and demo.

Yes, ideally we should reuse existing images. But if for some reason we can't or don't want to we can build our own, that is ok. But we just need to be aware of the maintenance cost.
If we need a repo for examples it should be in odo-devfile Github organization https://github.com/odo-devfile.
If we need custom build images we should use odo-dev organization that we have on Quay  (https://quay.io/organization/odo-dev)  and have image repo linked to GitHub repo with auto build enabled. (If you need permission to push images there, send me you Quay user name I'll add you)

@kadel che used java maven image for spring boot devfile https://github.com/eclipse/che-devfile-registry/blob/master/devfiles/java-web-spring/devfile.yaml#L20, I am thinking to update our springboot devfile in registry with the same image  quay.io/eclipse/che-java11-maven:nightly.
For test purpose we can have a multiple containers devfile using the same image as build and run container?

For test purpose we can have a multiple containers devfile using the same image as build and run container?

Not sure how much that would make sense.
I don't think we need multi-container devfile in the registry just for sake of having it.
If wee need multi-container devfile for our test suite it should be a special devfile that is in odo repo together with other test fixtures.

For test purpose we can have a multiple containers devfile using the same image as build and run container?

Not sure how much that would make sense.
I don't think we need multi-container devfile in the registry just for sake of having it.
If wee need multi-container devfile for our test suite it should be a special devfile that is in odo repo together with other test fixtures.

sorry, i have not explained clearly.
I meant the same having a multicontainers devfile in our odo repo for test suite.


can you provide datasets?

hello, new to CpG,  I want to run dcpg_data.py to create the input data for DeepCpG, but I have no dataset like  ./cpg/cell[123].tsv and ./dna/mm10. so can you provide them or link?
thank you very much!!

Did you run setup.py as described here and did you try some of the example scripts or notebooks?

@cangermueller thank you, now I see the example. but I get some errors.
I get the index.sh of index.ipynb  by selecting File -> Download as -> Bash (.sh) for basics. When I run index.sh, it shows error:
 #################################
dcpg_data.py --cpg_profiles ../../data/cpg/BS27_1_SER.tsv ../../data/cpg/BS27_3_SER.tsv ../../data/cpg/BS27_5_SER.tsv ../../data/cpg/BS27_6_SER.tsv ../../data/cpg/BS27_8_SER.tsv --dna_files ../../data/dna/mm10 --out_dir ./data --cpg_wlen 50 --dna_wlen 1001 --chromo 1 13 --nb_sample_chromo 1000
#################################
Traceback (most recent call last):
  File "/home/ztgong/local/anaconda2/bin/dcpg_data.py", line 629, in <module>
    app.run(sys.argv)
  File "/home/ztgong/local/anaconda2/bin/dcpg_data.py", line 260, in run
    return self.main(name, opts)
  File "/home/ztgong/local/anaconda2/bin/dcpg_data.py", line 402, in main
    make_dir(opts.out_dir)
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/deepcpg/utils.py", line 31, in make_dir
    os.makedirs(dirname, exist_ok=True)
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'
ls: cannot access './data': No such file or directory

so, I firstly create a data dir under notebooks/basics, but it shows another error. its part is as follows:
#################################
dcpg_train.py ./data/c1_000000-001000.h5 --val_files ./data/c13_000000-001000.h5 --cpg_model RnnL1 --out_dir ./models/cpg --nb_epoch 1 --nb_train_sample 1000 --nb_val_sample 1000
#################################
Using TensorFlow backend.
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally
Traceback (most recent call last):
  File "/home/ztgong/local/anaconda2/bin/dcpg_train.py", line 828, in <module>
    app.run(sys.argv)
  File "/home/ztgong/local/anaconda2/bin/dcpg_train.py", line 192, in run
    return self.main(name, opts)
  File "/home/ztgong/local/anaconda2/bin/dcpg_train.py", line 696, in main
    make_dir(opts.out_dir)
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/deepcpg/utils.py", line 31, in make_dir
    os.makedirs(dirname, exist_ok=True)
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'

#################################
dcpg_train.py ./data/c1_000000-001000.h5 --val_files ./data/c13_000000-001000.h5 --dna_model CnnL2h128 --out_dir ./models/dna --nb_epoch 1 --nb_train_sample 1000 --nb_val_sample 1000
#################################
Using TensorFlow backend.
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally
Traceback (most recent call last):
  File "/home/ztgong/local/anaconda2/bin/dcpg_train.py", line 828, in <module>
    app.run(sys.argv)
  File "/home/ztgong/local/anaconda2/bin/dcpg_train.py", line 192, in run
    return self.main(name, opts)
  File "/home/ztgong/local/anaconda2/bin/dcpg_train.py", line 696, in main
    make_dir(opts.out_dir)
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/deepcpg/utils.py", line 31, in make_dir
    os.makedirs(dirname, exist_ok=True)
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'

#################################
dcpg_train.py ./data/c1_000000-001000.h5 --val_files ./data/c13_000000-001000.h5 --dna_model ./models/dna --cpg_model ./models/cpg --joint_model JointL2h512 --train_models joint --out_dir ./models/joint --nb_epoch 1 --nb_train_sample 1000 --nb_val_sample 1000
#################################
Using TensorFlow backend.
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally
Traceback (most recent call last):
  File "/home/ztgong/local/anaconda2/bin/dcpg_train.py", line 828, in <module>
    app.run(sys.argv)
  File "/home/ztgong/local/anaconda2/bin/dcpg_train.py", line 192, in run
    return self.main(name, opts)
  File "/home/ztgong/local/anaconda2/bin/dcpg_train.py", line 696, in main
    make_dir(opts.out_dir)
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/deepcpg/utils.py", line 31, in make_dir
    os.makedirs(dirname, exist_ok=True)
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'

#################################
dcpg_eval.py ./data/c1_000000-001000.h5 ./data/c13_000000-001000.h5 --model_files ./models/joint --out_data ./eval/data.h5 --out_report ./eval/report.tsv --nb_sample 10000
#################################
Using TensorFlow backend.
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcufft.so.8.0 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.8.0 locally
INFO (2017-05-27 16:59:07,128): Loading model ...
Traceback (most recent call last):
  File "/home/ztgong/local/anaconda2/bin/dcpg_eval.py", line 254, in <module>
    app.run(sys.argv)
  File "/home/ztgong/local/anaconda2/bin/dcpg_eval.py", line 96, in run
    return self.main(name, opts)
  File "/home/ztgong/local/anaconda2/bin/dcpg_eval.py", line 167, in main
    model = mod.load_model(opts.model_files)
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/deepcpg/models/utils.py", line 198, in load_model
    with open(model_files[0], 'r') as f:
IOError: [Errno 2] No such file or directory: './models/joint'
./eval/data.h5: unable to open file
cat: ./eval/report.tsv: No such file or directory
Traceback (most recent call last):
  File "/home/ztgong/local/anaconda2/bin/dcpg_eval_export.py", line 182, in <module>
    app.run(sys.argv)
  File "/home/ztgong/local/anaconda2/bin/dcpg_eval_export.py", line 75, in run
    return self.main(name, opts)
  File "/home/ztgong/local/anaconda2/bin/dcpg_eval_export.py", line 124, in main
    data_file = h5.File(opts.data_file, 'r')
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/h5py/_hl/files.py", line 272, in __init__
    fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/h5py/_hl/files.py", line 92, in make_fid
    fid = h5f.open(name, flags, fapl=fapl)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/tmp/pip-4rPeHA-build/h5py/_objects.c:2684)
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/tmp/pip-4rPeHA-build/h5py/_objects.c:2642)
  File "h5py/h5f.pyx", line 76, in h5py.h5f.open (/tmp/pip-4rPeHA-build/h5py/h5f.c:1930)
IOError: Unable to open file (Unable to open file: name = './eval/data.h5', errno = 2, error message = 'no such file or directory', flags = 0, o_flags = 0)
ls: cannot access './eval/hdf': No such file or directory
INFO (2017-05-27 16:59:07,809): Loading data ...
Traceback (most recent call last):
  File "/home/ztgong/local/anaconda2/bin/dcpg_eval_perf.py", line 306, in <module>
    app.run(sys.argv)
  File "/home/ztgong/local/anaconda2/bin/dcpg_eval_perf.py", line 121, in run
    return self.main(name, opts)
  File "/home/ztgong/local/anaconda2/bin/dcpg_eval_perf.py", line 221, in main
    nb_key=opts.nb_output)
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/deepcpg/data/utils.py", line 96, in get_output_names
    *args, **kwargs)
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/deepcpg/data/hdf.py", line 31, in ls
    h5_file = h5.File(filename, 'r')
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/h5py/_hl/files.py", line 272, in __init__
    fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
  File "/home/ztgong/local/anaconda2/lib/python2.7/site-packages/h5py/_hl/files.py", line 92, in make_fid
    fid = h5f.open(name, flags, fapl=fapl)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/tmp/pip-4rPeHA-build/h5py/_objects.c:2684)
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/tmp/pip-4rPeHA-build/h5py/_objects.c:2642)
  File "h5py/h5f.pyx", line 76, in h5py.h5f.open (/tmp/pip-4rPeHA-build/h5py/h5f.c:1930)
IOError: Unable to open file (Unable to open file: name = './eval/data.h5', errno = 2, error message = 'no such file or directory', flags = 0, o_flags = 0)
head: cannot open './eval/perf/metrics.tsv' for reading: No such file or directory
head: cannot open './eval/perf/curves.tsv' for reading: No such file or directory
Active_enhancers.bed  H3K27ac.bed	Introns.bed	    prom_2k05k_cgi.bed
CGI.bed		      H3K27me3.bed	LMRs.bed	    prom_2k05k_ncgi.bed
CGI_shelf.bed	      H3K4me1.bed	mESC_enhancers.bed  Tet2.bed
CGI_shore.bed	      H3K4me1_Tet1.bed	Oct4_2i.bed	    TSSs.bed
Exons.bed	      IAP.bed		p300.bed	    UW_DNase1.bed
Gene_body.bed	      Intergenic.bed	prom_2k05k.bed	    Wu_Tet1.bed
cp: cannot stat '../../../R/dcpg_eval_perf.Rmd': No such file or directory
index.sh: line 170: cd: ./eval/perf: No such file or directory
index.sh: line 171: Rscript: command not found

how to fix it?
looking forward to your reply.
thank you in advance!

@cangermueller did you see my question? I need your help.


Cleanup bibtex cite key

https://github.com/NYULibraries/citero-ruby/blob/feature/add_translators/lib/citero/outputs/bibtex.rb#L109
add 'an' as stop word and remove '+'s

also handle excess whitespace – /\s+/


feat: add ability to override the hard-coded default prompt

Manually tested this with:
export SHELLBOT_PROMPT='
You are to provide advice to an expert computer
programmer. Every sentence should end with the
suffix, "... not!".
'

I merged this in the most awful way

Closing this because ef73bd45e07dc9669b20d97aa4b06200e7ea11f3 added an alternative way to customize the prompt (via a command-line argument).


[WIP] PubChem molecules

This is a collection of molecules drawn from PubChem.  Here's what I did so far.
I downloaded SDF files for all substance records whose source was either BindingDB or ChemIDplus.  I had to split BindingDB into three files, since they limit each download to 500,000 structures.
processSDFFiles.py reads them in, applies a set of filters, and writes out the IDs and SMILES strings for all passing molecules to a text file.  It keeps substances that satisfy all of these requirements.

It's only a single molecule
At least 3 heavy atoms
No more than 50 atoms total, including hydrogen
Only these elements: B, Br, C, Ca, Cl, F, H, I, K, Li, Mg, N, Na, O, P, S, Si
No unpaired electrons
No isotope specifications
No sanitization errors

sortMolecules.py reads in those files, combines them, and sorts the molecules so that each one is maximally different from everything that has come before.  The idea is that we will start at the beginning of the list and include as many molecules as we have time for.  I expect that to be at least 10,000, hopefully more.
The sorted list of molecules is in sorted.txt.  Take a look and see whether it seems reasonable.  A consequence of this ordering is that small, exotic molecules tend to get put at the very start of the list.  Within a few hundred molecules, it starts to settle down into much more typical ones.

For the initial application, ligand simulations, for sure we need: H, C, N, O, F, P, S, Cl, Br, I. According to our med chem B is getting popular in drugs, so it should be good to have it.
Further, for the protein simulations, we need Se (to cover all the natural amino acids) and cations which make complexes with proteins. The easy ones are: Mg, Ca, Zn. The others (Mn, Fe, Co, Ni, Cu) may be a bit complicated to compute with DFT.
Li, Na, and K don't make any covalent compounds, at least at the biochemical conditions, so they will floating in water. Until we start modelling water with NNP, there is no necessity for them.
Finally, Si doesn't play any biochemical role as I know.

The challenge is how to generate conformations.  We do it with MD, so we need a force field that can model whatever molecules we want to include.  OpenFF doesn't include either B or Se.  I checked GAFF and it doesn't either.  It looks like CGenFF might, at least in some limited cases, but I don't think we have an easy way to use CGenFF in OpenMM.
This collection only includes single molecules, no complexes with ions.  The DES370K collection includes molecules interacting with these ions: Br-, Ca+2, Cl-, F-, I-, K+, Li+, Mg+2, Na+.

Here's a recent article about drugs containing Si.  A relevant quote:

Currently, there are only a small number of silicon-containing compounds under investigation for pharma-ceutical use. Silicones are the only silicon-based compounds widely used in medicine. These oligosiloxanes and polysiloxanes have no carbon analogues and they are widely used for plastics, implants, catheters and many other applications.
The limitations of novel organosilicon compounds are very often attributed to insufficient funding and poor evidence of demonstrated efficacy. There is also an on-going debate about the toxicity of silicon-based therapeutics. So far, no increased systematic toxicity of silicon-containing compounds in comparison to their carbon-analogous has been detected.
Nevertheless, several organosilicon compounds have made it to clinical trials. In the following sections, a couple of interesting examples ranging from steroids being used by bodybuilders to anticancer and antispastic drugs under development are presented.

It sounds like this is something we'll eventually want to support, but probably not important for version 1.

@jchodera it would be great to get your thoughts on this.

Here's what I decided to do.  First, I modified processSDFFiles.py to remove molecules containing Ca, Li, Na, K, and Mg.  They're sufficiently rare and obscure that we don't need to include them.
It looks like we'll eventually want to include molecules with B and Si, but including them in this collection probably wouldn't work well.  We would get so few molecules with each one, it likely wouldn't be enough to learn their chemistry very well.  Instead, we'll want to separately create sets of molecules containing those elements.  So I kept them in processSDFFiles.py, but filtered them out in sortMolecules.py.  So they aren't included here, but we still have lists of molecules from the original sources that we can use to build separate collections.  We'll need to figure out a different way of generating conformations for them.

I finished generating conformations for the first 5000 molecules.  It took about two days.  OpenFF was unable to parametrize some, though, so we ended up with 4804 actual molecules.
When I tried to push it to the repository, github that the file was too large.  I'll see if I can get Large File Storage set up.

Alternatively I could just split it into two files.  If we have one HDF5 file for every 2500 molecules, that will keep them well under the 100 MB limit.  Using LFS has strict bandwidth limits that I think we could exceed really quickly.

I split it into two files and pushed them.  That seems like the easiest solution.  These files are never going to change, so versioning of binary files isn't really an issue.  The individual files are large, but there won't be that many of them.  For v1, the total size of this repository is likely to be under 1 GB.
Let me know if they look ok and I'll do the next 5000.

I processed the next 5000 molecules.  I can keep going, but I don't know how many of these molecules we will want.  It depends on whether we can get permission to include Enamine molecules.  Possibly we should merge this now.  Then I can create a separate PR for additional PubChem molecules if we decide we want them.

I went ahead and processed another 5000 molecules.  That's 15,000 total, of which it successfully generated conformation for 14,644.  I think that's plenty for now, so I'll merge this.  We can always do more later if we decide it would be useful.


Add method to add items to recent items

Looks great, made some slight code documentation changes and removed 'specification' due to it not being needed by the API.
Good job!


[Bug]: Paper link error

Before Reporting 报告之前

[X] I have pulled the latest code of main branch to run again and the bug still existed. 我已经拉取了主分支上最新的代码，重新运行之后，问题仍不能解决。

[X] I have read the README carefully and no error occurred during the installation process. (Otherwise, we recommend that you can ask a question using the Question template) 我已经仔细阅读了 README 上的操作指引，并且在安装过程中没有错误发生。（否则，我们建议您使用Question模板向我们进行提问）

Search before reporting 先搜索，再报告

[X] I have searched the Data-Juicer issues and found no similar bugs. 我已经在 issue列表 中搜索但是没有发现类似的bug报告。

OS 系统
Mac
Installation Method 安装方式
pip
Data-Juicer Version Data-Juicer版本
No response
Python Version Python版本
3.10
Describe the bug 描述这个bug
paper link error at
更多Data-Juicer团队相关论文:
Data Mixing Made Efficient: A Bivariate Scaling Law for Language Model Pretraining
now is Federated Fine-tuning of Large Language Models under Heterogeneous Tasks and Client Resources
To Reproduce 如何复现
just error in readme
Configs 配置信息
No response
Logs 报错日志
No response
Screenshots 截图
No response
Additional 额外信息
No response

Thanks! Fixed.


Documentation for lab set-up needed

It would be good to explain how the labs can be modified. How they can be rendered locally ? Or online ?

How can they be modified? That's a broad question, but https://labs.usegalaxy.org.au docs page covers a lot of it. There are a few minor features that I haven't had time to doc on there yet.
How can they render online? If you could review this PR that would be easy: https://github.com/galaxyproject/galaxy_codex/pull/201
How can they be rendered locally? I haven't figured out a user-friendly way to do this yet - I have tried a GitPod but even that is difficult because you need to copy or git-clone your content into the GitPod instance

I've added that link to the Readme in a separate PR

@paulzierep FYI this fixes the error that your microgalaxy lab has been throwing: https://github.com/usegalaxy-au/galaxy-labs-engine/pull/17
'float' object has no attribute 'strip'


How can I capture mouse event out of the component?

In my component, I did some works on onmousemove event.
However, if I move mouse out of component, it messed up.
Maybe I think I need to do capture mouse event of body or document element.
Can I do this using js interop?

Thanks for contacting us, @thainbreese.
Here is a similar example you can look at: https://github.com/danroth27/RazorComponentDemos/blob/master/RazorComponentDemos.App/Pages/EventsAndBinding.cshtml#L5-L11


feat: add support for at management events

Description
Provider has added support for management_events for atracker. Support for this has been added to cos.tf
Issue: https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone/issues/820
Release required?

[ ] No release
[ ] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[ ] Major release (X.x.x)

Release notes content

Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

/run pipeline

@ocofaigh we have not bumped the version of the ibm provider in the examples and patterns. should I do that?

/run pipeline

/run pipeline

Will merge https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone/pull/848# first and then rebase this and merge

/run pipeline

/run pipeline

/run pipeline

Pipeline is hitting a few intermittent issue, so going to retry..

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

/run pipeline

@kierramarie can you resolve conflicts and lets see how tests get on

/run pipeline

:tada: This issue has been resolved in version 5.30.0 :tada:
The release is available on:

GitHub release
v5.30.0

Your semantic-release bot :package::rocket:


ScheduledTask resource Credential parameter with Domain\ prefix

I have a job as following, but it reports the state as incorrect because of the credential. It appears I am setting it as 'username' but then the scheduled task is taking that and just setting it as DOMAIN\username, leading to a mismatch.  I think I can probably hack it to work somehow, but ideally the scheduledtask resource should probably evaluate DOMAIN\username the same as username.
ScheduledTask 'DRBackup' {
TaskName = 'DRBackup'
TaskPath = '\8203Jobs'
ActionExecutable = 'C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
ActionArguments = "-Command $BackupJob_Cmd1 $BackupJob_Cmd2"
ScheduleType = 'Daily'
StartTime = Get-Date '3am'
ExecuteAsCredential = $DomainAdminCred
RunLevel = 'Highest'
DependsOn = '[cPowerShellModuleManagement]EventLogTools','[xEventLog]CustomLog','[cPowerShellModuleManagement]DRBackupTools'
}
Verbose Output from Test
VERBOSE: [NOAA8203-MGMT1]: LCM:  [ Start  Resource ]  [[ScheduledTask]DRBackup]
VERBOSE: [NOAA8203-MGMT1]: LCM:  [ Start  Test     ]  [[ScheduledTask]DRBackup]
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] Testing scheduled task 'DRBackup' in '\8203Jobs'.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] Getting current scheduled task values for task 'DRBackup' in '\8203Jobs'.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] Task 'DRBackup' found in '\8203Jobs'. Retrieving settings, first action, first trigger and repetition
settings.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] Detected schedule type 'Daily' for first trigger.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] Current scheduled task values for task 'DRBackup' in '\8203Jobs' retrieved.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] Testing DSC parameter state.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] MATCH: Value (type 'System.String') for property 'StartTime' does match. Current state is
'2019-12-02T03:00:00' and desired state is '2019-12-02T03:00:00'.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] MATCH: Value (type 'System.String') for property 'ActionExecutable' does match. Current state is
'C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe' and desired state is 'C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] MATCH: Value (type 'System.String') for property 'ActionArguments' does match. Current state is '-Command
Start-DRBackup -DPMProtectionGroupName DisasterRecovery -Destination \noaa8203-ds1817\DRBackup -Verbose *>&1 | % {$i++;Write-StreamToEventLog -ID $i -Stream $_ -Logname Application
-Source DRBackupTools}' and desired state is '-Command Start-DRBackup -DPMProtectionGroupName DisasterRecovery -Destination \noaa8203-ds1817\DRBackup -Verbose *>&1 | %
{$i++;Write-StreamToEventLog -ID $i -Stream $_ -Logname Application -Source DRBackupTools}'.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] NOTMATCH: Value (type 'System.String') for property 'ExecuteAsCredential' does not match. Current state is
'NOAA8203\powershelljobs_svc' and desired state is 'powershelljobs_svc'.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] MATCH: Value (type 'System.String') for property 'TaskPath' does match. Current state is '\8203Jobs' and
desired state is '\8203Jobs'.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] MATCH: Value (type 'System.String') for property 'ScheduleType' does match. Current state is 'Daily' and
desired state is 'Daily'.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] MATCH: Value (type 'System.String') for property 'TaskName' does match. Current state is 'DRBackup' and
desired state is 'DRBackup'.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] MATCH: Value (type 'System.String') for property 'RunLevel' does match. Current state is 'Highest' and
desired state is 'Highest'.
VERBOSE: [NOAA8203-MGMT1]:                            [[ScheduledTask]DRBackup] Test-DscParameter result is 'False'.
VERBOSE: [NOAA8203-MGMT1]: LCM:  [ End    Test     ]  [[ScheduledTask]DRBackup] False in 0.5940 seconds.

Details of the scenario you tried and the problem that is occurring
Verbose logs showing the problem
Suggested solution to the issue
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here

The operating system the target node is running

Version and build of PowerShell the target node is running

Version of the DSC module that was used ('dev' if using current dev branch)

I flipped it around, I provided 'DOMAIN\username' and now the state is reporting as false, indicating it is looking for just 'username'.
VERBOSE: [NOAA8203-HV3]:                            [[ScheduledTask]SnapshotCleanup] NOTMATCH: Value (type 'System.String') for property 'ExecuteAsCredential' does not match. Current state is 'powershelljobs_svc' and desired state is 'NOAA8203\powershelljobs_svc'.

I think I may have solved this - solution was to run OS updates.  perhaps something was changed in Task Scheduler, but now the username is lining up when I specify it as DOMAIN\username. will continue to monitor this.

now seeing the following
ScheduledTask "MarineForecastDownload_pm" {
TaskName = "MarineForecastDownload_pm"
TaskPath = '\8203Jobs'
ActionExecutable = 'C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'
ActionArguments = "-Command $MarineForecast_Cmd1 $MarineForecast_Cmd2"
ScheduleType = 'Daily'
StartTime = $StartTime
SynchronizeAcrossTimeZone = $true
ExecuteAsCredential = $DomainAdminCred
RunLevel = 'Highest'
DependsOn = '[cPowerShellModuleManagement]EventLogTools','[xEventLog]CustomLog','[cPowerShellModuleManagement]DownloadTools'
}
VERBOSE: [NOAA8203-APPPR1]:                            [[ScheduledTask]MarineForecastDownload_pm] Testing DSC parameter state.
VERBOSE: [NOAA8203-APPPR1]:                            [[ScheduledTask]MarineForecastDownload_pm] NOTMATCH: Value (type 'System.String') for property 'StartTime' does not match. Current
state is '2019-12-04T07:15:00' and desired state is '2019-12-04T07:15:00-05:00'.
VERBOSE: [NOAA8203-APPPR1]:                            [[ScheduledTask]MarineForecastDownload_pm] MATCH: Value (type 'System.String') for property 'ActionExecutable' does match. Current
state is 'C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe' and desired state is 'C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe'.
VERBOSE: [NOAA8203-APPPR1]:                            [[ScheduledTask]MarineForecastDownload_pm] MATCH: Value (type 'System.String') for property 'ActionArguments' does match. Current
state is '-Command Start-DownloadTools -Product MarineForecast -Verbose *>&1 | % {$i++;Write-StreamToEventLog -Stream $_ -ID $i -LogName Application -Source DownloadTools}' and desired
state is '-Command Start-DownloadTools -Product MarineForecast -Verbose *>&1 | % {$i++;Write-StreamToEventLog -Stream $_ -ID $i -LogName Application -Source DownloadTools}'.
VERBOSE: [NOAA8203-APPPR1]:                            [[ScheduledTask]MarineForecastDownload_pm] MATCH: Value (type 'System.String') for property 'ExecuteAsCredential' does match. Current
state is 'NOAA8203\powershelljobs_svc' and desired state is 'NOAA8203\powershelljobs_svc'.
VERBOSE: [NOAA8203-APPPR1]:                            [[ScheduledTask]MarineForecastDownload_pm] MATCH: Value (type 'System.String') for property 'TaskPath' does match. Current state is
'\8203Jobs' and desired state is '\8203Jobs'.
VERBOSE: [NOAA8203-APPPR1]:                            [[ScheduledTask]MarineForecastDownload_pm] NOTMATCH: Value (type 'System.Boolean') for property 'SynchronizeAcrossTimeZone' does not
match. Current state is 'False' and desired state is 'True'.
VERBOSE: [NOAA8203-APPPR1]:                            [[ScheduledTask]MarineForecastDownload_pm] MATCH: Value (type 'System.String') for property 'ScheduleType' does match. Current state
is 'Daily' and desired state is 'Daily'.
VERBOSE: [NOAA8203-APPPR1]:                            [[ScheduledTask]MarineForecastDownload_pm] MATCH: Value (type 'System.String') for property 'TaskName' does match. Current state is
'MarineForecastDownload_pm' and desired state is 'MarineForecastDownload_pm'.
VERBOSE: [NOAA8203-APPPR1]:                            [[ScheduledTask]MarineForecastDownload_pm] MATCH: Value (type 'System.String') for property 'RunLevel' does match. Current state is
'Highest' and desired state is 'Highest'.
VERBOSE: [NOAA8203-APPPR1]:                            [[ScheduledTask]MarineForecastDownload_pm] Test-DscParameter result is 'False'.
VERBOSE: [NOAA8203-APPPR1]: LCM:  [ End    Test     ]  [[ScheduledTask]MarineForecastDownload_pm] False in 0.5310 seconds.

i solved this by removing SynchronizeAcrossTimeZone = $true
i remember from previous experience that ScheduledTasks by default have the 'Sync across timezone' checkbox checked by default.
Powershell jobs, do not sync across timezones by default.

I think I may have solved this - solution was to run OS updates. perhaps something was changed in Task Scheduler, but now the username is lining up when I specify it as DOMAIN\username. will continue to monitor this.

Just to share here as well, I also noticed a difference between scheduledtask behaviour on W2016 after recent updates (I think November 2019). On W2016 before November 2019 UserId would be returned as 'USER' after updates, it is returned as 'DOMAIN\User'.
I was unable to find any references in Microsoft changelogs to this bugfix (what I believe it is, as on W2012 it always returned the proper 'DOMAIN\User'), so if anyone has any reference / contact at Microsoft who can confirm this fix, that would be great!

I've not been able to track this down, but there are many strange behaviors around how UserIds are stored in the Task Scheduler principal object that is returned.
For example, setting the ExecuteAsCredential to 'BUILTIN\Users' (through code or the UI) and it will always return 'Users' in the principal. This occurs in the UI too. However, setting 'DOMAIN\Users' returns the correct value.
I'm not going to try and spend too much time picking this behavior apart because unfortunately ScheduledTask behaves differently in every OS. Instead I'm going to add some information to the Known Issues section with some guidance.


OpenSSL requirement from reqwest

0.21.0-pre.2
Reqwest has an optional feature to switch to "rustls-tls".  This allows much easier cross compilation.  Elastic uses reqwest, but just uses it as is, so it is pulling in hyper-tls, which requires openssl.
I do not beleive(though I could be wrong).  That this is something that can be externally changed in cargo.  So, the question is, is it possible to enable a passthrough feature that would allow the use of elastic with rustls-tls, or to default for compatibility.

Hi @jatsrt :wave:
If you add reqwest as a dependency in your Cargo.toml alongside elastic with the rustls-tls feature then it should all work, but I'd also be happy to add a rustls-tls feature to elastic that enabled the same feature in its own reqwest dependency.

Tried that, as I already use reqwest for other purposes, didn't work.
`
[dependencies]
serde = "1.0"
serde_json = { version = "1.0", features = ["arbitrary_precision"] }
serde_derive = "1.0"
elastic = "0.21.0-pre.2"
elastic_derive = "0.21.0-pre.2"
reqwest = {version = "0.9", default_features = false, features=["rustls-tls"]}
`

unless I need to match the version exactly with "~0.9"

That's it, needs to be a precise match on the version.

That's it, needs to be a precise match on the version.

OK, no that did not do the trick
serde = "1.0"
serde_json = { version = "1.0", features = ["arbitrary_precision"] }
serde_derive = "1.0"
elastic = "0.21.0-pre.2"
elastic_derive = "0.21.0-pre.2"

reqwest = {version = "~0.9", default_features = false, features=["rustls-tls"]}

Ah right, so reqwest uses a default-tls feature that we have to disable before it'll stop compiling openssl, in which case just adding a dependency on reqwest yourself won't be enough.

Ah right, so reqwest uses a default-tls feature that we have to disable before it'll stop compiling openssl, in which case just adding a dependency on reqwest yourself won't be enough.


Could we have a page number in the reference?

If a page number could be generated then it would allow more general references from one part of the text to another e.g. "see page 3". Great work on this add-on, thanks!

Page numbers are very tricky in Google script because pages are not an element as far as the code is concerned. Pages are determined when a document is rendered for viewing; scripts only have access to the document as a collection of paragraphs, tables etc.
I hope this makes sense!

Yes that makes sense. I see an issue raised for this in the App Script API. MS Word has the concept of a page cross-reference, something similar in Google Doc would be nice. If we had a user script that updated a table in the document mapping links to pages, would you extend your App Script to use this?

Are you familiar with user scripts ? For example scripts installed via Tampermonkey in the Google Chrome browser.


Octave keys on right keyboard confused

Version
TallFescue.6.5999
What is the issue?
When switching root note/scales etc. the octave keys on the right keyboard will be arranged horizontally. Using "octave up" the arrangement will flip to vertically. The initial "octave down" key is dead further on, even if it is lit with a chord note or in a chromatic layout.

Addition: with Live Mode on, switching octaves will disable the rightmost two columns of chord note keys.


Port "fix-text-differ" #8215 to 17.6 P1

The issue exists in the release/dev17.6 branch, so the fix should too

I think one of these is a dupe: https://github.com/dotnet/razor/pull/8231.

Dustin can take the win on this one


Set exception details when using WAI and Yesod instrumentation together

Address warnings and HLint
23743a3
Extract isInternalError
0d9cc2e
Set exception details when using WAI and Yesod instrumentation together
9610e0f
When the WAI instrumentation is used (so there is a span on the
request), this instrumentation only sets the shared attributes. Since
exceptions never reach WAI when used with Yesod (since they're caught to
error pages), this means that error traces don't include any details. By
calling recordException and setStatus here, we can address that.
Fixes https://github.com/iand675/hs-opentelemetry/issues/102

Regarding the pre-commit hook... When I run foumolu I get a configuration error:
% stack install --copy-compiler-tool fourmolu
Copying from
/home/patrick/.stack/snapshots/x86_64-linux-tinfo6/a76d5db647918a4cbcac406bf469be85d6333b9d6435f4dc08f2e0708720d750/9.2.7/bin/fourmolu
to /home/patrick/.stack/compiler-tools/x86_64-linux-tinfo6/ghc-9.2.7/bin/fourmolu.
Copied executables to /home/patrick/.stack/compiler-tools/x86_64-linux-tinfo6/ghc-9.2.7/bin/:
* fourmolu
% stack exec -- fourmolu --version
fourmolu <IP_ADDRESS> UNKNOWN UNKNOWN
using ghc-lib-parser <IP_ADDRESS>30228
% stack exec -- fourmolu -i .
Failed to load /home/patrick/code/freckle/hs-opentelemetry/fourmolu.yaml:
Aeson exception:
Error in $['in-style']: unknown value: "no-space"
Valid values are: "left-align" or "right-align"

% 255

Thanks!


How to add multipart/form-data to useFetch body?

Raycast version: 1.45.2
Description
I just wanna know how to upload file with multipart/form-data content-type
Steps To Reproduce
The current behavior
The expected behavior

You probably don't want to use useFetch to upload a file: it would upload a new file every time the extension is run. You probably want to use fetch (from node-fetch for example).


Roadmap: MinGW build support (32/64-bit)

There has been a report (e.g. #2958) reporting compilation failure with MinGW. This issue is intended to keep track of progress with regards to MinGW build support.
Currently, Windows CI tests (on AppVeyor) build XGBoost with MSYS-MinGW. Feel free to report any variant of MinGW that fails to build XGBoost.

[x] MSYS-MinGW (part of CI)
[x] RTools (part of CI)
[ ] m2w64-toolchain
[ ] MinGW upstream

Relevant section of AppVeyor build tests for MinGW:
https://github.com/dmlc/xgboost/blob/master/appveyor.yml#L36
https://github.com/dmlc/xgboost/blob/master/appveyor.yml#L67

@KOLANICH Thanks a lot. Sorry again for massively closing issues. From now on, we'll try to keep the number of open issues small. All MinGW-related issues and works will be posted in this thread, so as to keep track of overall progress in MinGW support.

It is impossible to find out whichncompiler is used solely withnpreprocessor. So I have implemented a CMake solution and have thrown away old duct tape. Now if the definition is needed is determined by presence of the function.
https://github.com/dmlc/dmlc-core/pull/432
If you dislike my solution, fill free to add commits above it.

Closing this for now since dmlc/dmlc-core#432 has been merged.


fix:added go routine to the function

Added go routine to the EventCallback function
Issue-https://github.com/panapol-p/go-slice-struct-diff/issues/14

Thanks @arshad-k7  for you contribution ;)

@panapol-p please add hacktoberfest accepted label

@arshad-k7 sure. I will add soon. Dont worry about that, this repo is under hacktoberfest label. all pull request is accept.


Fixed #34264 -- Moved release note about session cookies into error reporting section.

@SebCorbin Thanks :+1: Welcome aboard :boat:


Enum does not scope correctly

Env: Rails 4.2.0, acts_as_list (0.9.5), postgresql.
Problem
Scope not working with enum resulting to enum being set to 0.
Solution
Change assignments within #check_scope to send to the setter.
def check_scope
  if internal_scope_changed?
    cached_changes = changes

    cached_changes.each { |attribute, values| send("#{attribute}=", values[0]) }
    send('decrement_positions_on_lower_items') if lower_item
    cached_changes.each { |attribute, values| send("#{attribute}=", values[1]) }

    send("add_to_list_#{add_new_at}") if add_new_at.present?
  end
end

The existing enum test in test_list.rb doesn't catch the issue because the assignment using self[attribute] = values[0] always assigns as 0 since the enum value of "active" or "archived" doesn't exist (active/archived are the enum keys).  Assignment as 0 results in the position always being set to the first position.
I ran into this because I declared an enum as enum status: { inbox: 1, published: 2, archived: 3, deleted: 4 } with the values starting at 1, but the existing test can be improved by just adding a second EnumArrayScopeListMixin to one of those scopes.

Hi @scottmalone, that sounds interesting! Would you be interested in writing a Pull Request for us with a test? Doesn't sound like it'll be too hard :)

No prob @brendon, I'll do that.
I ran into a separate issue that's really confounding me w/ model specs not updating correctly but request specs doing fine (yes, using test_after_commit).  Would you prefer I open another issue or go straight to a separate PR?

Thanks @scottmalone, yes open another issue then if you do a PR just mention that it closes that issue in the description and that should handle linking things together.

Has this been released in an official gem release yet?


Slides Issues

Documentation could be better for the slides component in Ionic 1.x

Fade should be in quotes in the documentation
ion-content scroll must be set to false for the slides to work at all so we should document this

Which Ionic Version? 1.x or 2.x
1.x

Need events documentation too.


Repeated code?

In https://github.com/zephyrproject-rtos/zephyr/blob/master/kernel/device.c
Line 84 to 92 seems to be a repeat of line 77 to 82?
`struct device *_impl_device_get_binding(const char *name)
{
struct device *info;
/* Split the search into two loops: in the common scenario, where
 * device names are stored in ROM (and are referenced by the user
 * with CONFIG_* macros), only cheap pointer comparisons will be
 * performed.  Reserve string comparisons for a fallback.
 */
for (info = __device_init_start; info != __device_init_end; info++) {
	if ((info->driver_api != NULL) &&
	    (info->config->name == name)) {
		return info;
	}
}

for (info = __device_init_start; info != __device_init_end; info++) {
	if (info->driver_api == NULL) {
		continue;
	}

	if (strcmp(name, info->config->name) == 0) {
		return info;
	}
}

return NULL;

}`

It's not, the first pass does a direct pointer comparison and the second pass uses strcmp.
The comment (which you quoted) explains this..

The 2 ways looks same to me.

I think they looks same to most people.


deployment of kubernetes cluster fails on mainnet.

Have a funded account on mainnet
selected master and worker nodes on mainnet that had plenty of resources
deployment failed with the following error:
Error: Failed to deploy on node 304 due to Error: Failed to send request to 393 with command: zos.deployment.deploy,
payload: {"version":0,"metadata":"","description":"","twin_id":64,"expiration":1626394539,"workloads":
[{"version":0,"name":"WR6e1a58cb_disk","type":"zmount","data":{"size":107374182400},"metadata":"","description":""},
{"version":0,"name":"NW5d6f068e","type":"network","data":
{"subnet":"<IP_ADDRESS>/24","ip_range":"<IP_ADDRESS>/16","wireguard_private_key":"nJVOkckoqiDBKpdrHtLonFhZJKVxn8ZN58rg2HY3
uoM=","wireguard_listen_port":2667,"node_id":304,"peers":
[{"subnet":"<IP_ADDRESS>/24","wireguard_public_key":"TbW/zbw2BfcOq/M/Onj9DmaFI3mHURURo8jBhOUjgWM=","allowed_ips":
["<IP_ADDRESS>/24","<IP_ADDRESS>/32","<IP_ADDRESS>/24","<IP_ADDRESS>/32","<IP_ADDRESS>/24","<IP_ADDRESS>/32","<IP_ADDRESS>/24","<IP_ADDRESS>/3
2"],"endpoint":"[2a02:1802:5e:12:ae1f:6bff:fe27:23a0]:6235"}]},"metadata":"","description":""},
{"version":0,"name":"WR6e1a58cb","type":"zmachine","data":{"flist":"https://hub.grid.tf/tf-official-apps/threefoldtech-k3s-
latest.flist","network":{"planetary":true,"interfaces":
[{"network":"NW5d6f068e","ip":"<IP_ADDRESS>"}],"public_ip":""},"size":2147483648,"mounts":
[{"name":"WR6e1a58cb_disk","mountpoint":"/mnt/data"}],"entrypoint":"/sbin/zinit init","compute_capacity":
{"cpu":2,"memory":4294967296},"env":{"SSH_KEY":"ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDAOP0h6VImNcxnIBRMoMfbMfb0xwGHDlaPxZ+nu0CL8ATJekVDHDLMGEPdvA
CfHBe0sqIw/l6jqoEMR4Dzhjgm4bVEUBVEnG1FvkeNB59sT2DOxDCZuqJvjx2M1bJlH8AR/JQXxUQ+zvfTbavc4/zfCuJm4PYN
UsmEt/IQmRwLznGOkoJbwYLhKCC3ykZd0EGpmCWgUUYn0ihaaYkyrliQi5Ny00x0s6jOIJg0CG2Xh5xcrkhOfCZMxZAB+/LGQ
pZ3tu+Cy5jRf8V/JZ8XQmtYM2GmBUZ1KGcMcsGzrtuudn13JeYLtWJBw6A7Q3Fb7dQSCMLC9UA0uMSZk67M6DFV
john@RescuedMac","K3S_TOKEN":"76109a32","K3S_DATA_DIR":"/mnt/data","K3S_FLANNEL_IFACE":"eth0","K3S_NODE_N
AME":"WR6e1a58cb","K3S_URL":"https://<IP_ADDRESS>:6443"},"corex":false},"metadata":"","description":""}],"signature_requiremen
t":{"requests":[{"twin_id":64,"weight":1,"required":false}],"signatures":
[{"twin_id":64,"signature":"e48c66a398edf159fa90124838f8fcd1885e745a5b08be4c25ba6e59ae288b1c231a87d777ef39c65aa
ecf42176c50c916e5795cf690c0f7d656bf639719e589","signature_type":"sr25519"}],"weight_required":1},"contract_id":297}
after 3 retries due to TypeError: Cannot read properties of undefined (reading 'err')

screen shot:

Second try - just deploy a simple VM:
Error: Failed to deploy on node 330 due to Error: Failed to send request to 417 with command: zos.deployment.deploy,
payload: {"version":0,"metadata":"","description":"","twin_id":64,"expiration":1626394539,"workloads":
[{"version":0,"name":"NW74329958","type":"network","data":
{"subnet":"<IP_ADDRESS>/24","ip_range":"<IP_ADDRESS>/16","wireguard_private_key":"wFxmIeu4T7KjcYp+W7A3m1HubuzZ5QF327+N/U
yL4WM=","wireguard_listen_port":6838,"node_id":330,"peers":
[{"subnet":"<IP_ADDRESS>/24","wireguard_public_key":"uFAmD9TJ1xXKPVVJCLoIU6bM+DfwNVQFnZZWCLIN7Uk=","allowed_ips":
["<IP_ADDRESS>/24","<IP_ADDRESS>/32","<IP_ADDRESS>/24","<IP_ADDRESS>/32","<IP_ADDRESS>/24","<IP_ADDRESS>/32"],"endpoint":"
[2a02:1802:5e:12:ae1f:6bff:fe27:2260]:6527"}]},"metadata":"","description":""},
{"version":0,"name":"VM01adedf8","type":"zmachine","data":{"flist":"https://hub.grid.tf/tf-official-apps/threefoldtech-ubuntu-
20.04.flist","network":{"planetary":true,"interfaces":
[{"network":"NW74329958","ip":"<IP_ADDRESS>"}],"public_ip":""},"size":2147483648,"mounts":
[],"entrypoint":"/init.sh","compute_capacity":{"cpu":4,"memory":8589934592},"env":{"SSH_KEY":"ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDAOP0h6VImNcxnIBRMoMfbMfb0xwGHDlaPxZ+nu0CL8ATJekVDHDLMGEPdvA
CfHBe0sqIw/l6jqoEMR4Dzhjgm4bVEUBVEnG1FvkeNB59sT2DOxDCZuqJvjx2M1bJlH8AR/JQXxUQ+zvfTbavc4/zfCuJm4PYN
UsmEt/IQmRwLznGOkoJbwYLhKCC3ykZd0EGpmCWgUUYn0ihaaYkyrliQi5Ny00x0s6jOIJg0CG2Xh5xcrkhOfCZMxZAB+/LGQ
pZ3tu+Cy5jRf8V/JZ8XQmtYM2GmBUZ1KGcMcsGzrtuudn13JeYLtWJBw6A7Q3Fb7dQSCMLC9UA0uMSZk67M6DFV
john@RescuedMac"},"corex":false},"metadata":"","description":""}],"signature_requirement":{"requests":
[{"twin_id":64,"weight":1,"required":false}],"signatures":
[{"twin_id":64,"signature":"888b54be0eae362de1a3f2d561c0a63d88e70e922584d1f74e66537fd6bb5b20ced5d89768d1621516
369a065f762195dbd9c7f11c7b2e6d8f66fce52c44ce8f","signature_type":"sr25519"}],"weight_required":1},"contract_id":299}
after 3 retries due to TypeError: Cannot read properties of undefined (reading 'err')

the second time when you deploy it works.  It almost looks like the 3node (zero-OS)  is not listening (or responding that it is listening the first time and has to "wake up")

Also the kubernetes deployment and error - when I tried it for a second time it worked. seems that there is nothing not right the right time you do it with a new node.  I'll try some more deployments and see if I can replicated.

Will try on testnet now.

Tested on testnet:

Node 5 being an example is in freefarm and does accept deployments (success).
Node 64 not being freefarm also deploys successful

So the issue is NOT on testnet.

Issue tracked here.  Closing this issue.


Server header is not overridden

I am using the following in a FastAPI project
server = secure.Server().set("Secure")

But the result is:
server: uvicorn
server: Secure

ie. it does not override the server header but simply adds another one.

I just got the same problem. Turns out it is uvicorn that injects the server header unconditionally.
You can run uvicorn with the --no-server-header option to disable this header.
Ref: https://www.uvicorn.org/settings/#http

In my case I fixed it now using
    uvicorn.run(
        app,
        host="<IP_ADDRESS>",
        port=8000,
        server_header=False,
    )

Thanks @lsmith77  and @nashyeung! I'll add this to the documentation.

I'll just point out in this issue that if you use Uvicorn VIA Gunicorn (eg: as a Uvicorn-Worker), this setting is not passed so it's impossible to override, unless subclassing the worker itself.
This is not a problem with Secure.py but with Uvicorn/Gunicorn combo.
Refer here -> https://github.com/encode/uvicorn/issues/1436 | https://github.com/encode/uvicorn/discussions/1435

Hi everyone,
Thanks for raising this issue! As @nashyeung and @lsmith77 mentioned, Uvicorn injects the Server header by default. If you're using Secure.py and want to override the Server header, you’ll need to disable Uvicorn's default behavior.
You can do this by using the --no-server-header option when running Uvicorn or setting server_header=False in the uvicorn.run() method:
uvicorn.run(
    app,
    host="<IP_ADDRESS>",
    port=8000,
    server_header=False,  # Disable the default Uvicorn Server header
)

Additionally, as @alexmaurizio pointed out, if you're using Uvicorn via Gunicorn, this setting is not passed through unless you subclass the worker. This is a limitation of the Uvicorn-Gunicorn combo, not of Secure.py.
This information has been added to the documentation for the upcoming v1.0.0 release. Thanks again for your contributions!


Relative images links stop working

The first time I used Marp and created a file I could put images in the same directory as the .md and reference them without a path.
Unfortunately, after I moved the directory the images stopped working and now need a full path to load.
I even logged into my machine with a different user account and still couldn't load relative images anymore. Does record the current-working-directory once, save it globally, and never update it again? That sounds bizzarre but it that's how Mark is behaving on my machine.

you can check from example.md how to load from relative image
# ![](images/marp.png)

@dhanifudin I don't think you really read my issue description properly.

You have put image to same directory of marp binary. And the other .md file on different directory couldn't load it, right?
I enhanced relative path support in #49. But I had not consider commonly used image. You must use absolute path if you use it.
Atom, the typical Electron app, resolved this issue by defining custom URI scheme: atom:// (redirect to ~/.atom/). If Marp were implemented redirect path from marp://image.png to $MARP_INSTALLED_FOLDER/image.png, would it help you? (It's just an idea...)

You have put image to same directory of marp binary. And the other .md file on different directory couldn't load it, right?

No, I always put image and .md in the same directory. I never use the Marp binary directory.
Maybe this is clearer:
Step 1: Create for first time
# Files
~/first-time/example.md
~/first-time/example.png

Open example.md in Marp. Image displays correctly.
Step 2: Move directory
mv ~/first-time ~/renamed

# Files
~/renamed/example.md
~/renamed/example.png

Open example.md in Marp. Image does not display correctly.


Add support for callback function

I've got a use case where I don't want these entries going to a file or STDOUT. I've already got a logging class, I'd highly prefer to send these messages to that class. To solve that, being able to provide a callback function would be ideal. Something like this:
function cb(message) {
logClass.info(message); //or whatever custom logic to handle the string
}
app.use(morgan('combined', { callback: cb }))

This is already supported, as this module provides the most generic interface: a stream. Just direct the output of that steam however you like. Here is an example writing with logClass.info:
var split = require('split')

var stream = split().on('data', (log) => logClass.info(log))

app.use(morgan('combined', { stream: stream }))


useSend

Just a wrapper for useEffect to subscribe an external property to a signal

cancel because of #113


introduce julia syntax

I was looking at using kiro as secondary lightweight editor, it would be great to have Julia syntax for that :)
I wasn't sure where to put the limit on introducing built-in types, they don't have the same first-class nature compared to custom types, as it would be the case for native types in many languages

A decent highlight is present in micro:
https://github.com/zyedidia/micro/blob/master/runtime/syntax/julia.yaml#L9

A decent highlight is present in micro:
https://github.com/zyedidia/micro/blob/master/runtime/syntax/julia.yaml#L9


Update Install or Defer profile manifest in ProfileManifestsMirror

The Install of Defer profile manifest in ProfileManifestsMirror needs to be updated to add support for the new configuration profile keys.

Thanks for the reminder! I've submitted a PR with all the new configuration profile keys to ProfileManifests: https://github.com/ProfileCreator/ProfileManifests/pull/551
Once that's merged, ProfileManifestsMirror will update automatically.


Add VERSION tuple to wagtail.wagtailcore

This allows people developing plugins for Wagtail to test the Wagtail version more easily, using code like:
from wagtail.wagtailcore import VERSION
if VERSION >= (1, 5):
    # Do something
else:
    # Do the old thing

I also used the new version tuple in the docs to generate version numbers like 1.5 for all the 1.5.x releases, which is how those version numbers are supposed to work. This means that http://docs.wagtail.io/en/1.5/ will always point to the latest 1.5 release, regardless of the patch level of the 1.5 series. This will likely require some changes to the configuration on RTD though, so this change can come as a separate PR if you want to discuss it separately.

Thanks @timheap! The readthedocs version handling is a long-standing bugbear of mine, so it'll be good to get that fixed...
Please can you add a comment to init.py describing the valid formats for VERSION? (For example, is the final number omitted for a final release?) It seems straightforward enough, but packaging up a release is the worst possible time for making slip-ups, so it's worth making it as idiot-proof as possible.

Interesting, is a tuple the typical way to handle this? See how I'm checking the version number in Wagtail Font Awesome.

@alexgleason parse_version is the more correct way of doing this, but is quite a lot more verbose. Django uses a version tuple much like this, so there is precedent.
@gasman I'll add a comment documenting the correct formats

Any particular reason the version is not on the wagtail module but on the wagtail.wagtailcore module. Isn't wagtail.__version__ more intuitive ?
I was hoping for something like this
import wagtail
print(wagtail.VERSION)
print(wagtail.__version__)

I've added some info about the format of VERSION in __init__.py, and rebased on top of master.

I think it's a good idea to make the version number available under the main wagtail module, as per @mevinbabuc's suggestion. @alexgleason previously raised this in #2557, and my reluctance to change it then was mainly down to the fact that it would be breaking existing code for no benefit other than neatness.
There's a weird paradox here where any improvement to the version handling logic - no matter how well-considered and backwards-compatible it may be - is partly self-defeating, because that improvement won't exist on some of the versions you're testing against. For example, if we make this change in 1.7, then any third-party code that cares about Wagtail <1.7 compatibility will have to do something like:
try:
    from wagtail import VERSION
except ImportError:
    from wagtail.wagtailcore import __version__
    from pkg_resources import parse_version
    VERSION = parse_version(__version__)

...which is basically the worst of both worlds. :-) But in fact, that's all the more reason to make the string-to-tuple and wagtailcore-to-wagtail changes at the same time - because if we make those changes separately, we'll need a three-way try/except block instead. And, of course, once Wagtail 1.6 is ancient history, the code will simply become from wagtail import VERSION.

I've moved the version info to wagtail as suggested. I've imported the version info in to wagtail.wagtailcore as well, for backwards compatibility. I've not added a deprecation warning, as keeping those imports around for ever is not hard.
I hear where you're coming from @gasman, but the sooner this change is made, the less packages will depend on the old location. Any new packages can use the new location and version tuple, and any old packages can continue to use the old string version at the old location indefinitely - or at least till they drop support for Wagtail 1.6.

Merged in 7c9dc029c7339fe180fdba53dc1911852d6872db + parents, thanks!


db.create does not throw an error if a string contains '\n', it just hangs

I'm trying to import 17652 rows from SQL Server to SurrealDB to make some tests.
I wrote a small nodejs script that connects to SQL Server, reads the contents of a table and then calls db.create for each row (maybe a bulk insert method in the future? :D)
After exactly 9360 rows, every time I tested it, the script just hangs on a db.create and never returns.
I'm using the standard docker container version of SurrealDB running on Docker Desktop.
import sql from "mssql";
import Surreal from "surrealdb.js";
import _ from "lodash";

async function main() {
    const db = new Surreal("http://localhost:8000/rpc");

    const config = {
        server: "###",
        user: "###",
        password: "###",
        database: "###",
        options: {
            encrypt: false,
        },
    };

    console.log("Connecting to SQL Server...");
    await sql.connect(config);

    console.log("Connecting to SurrealDB...");
    await db.signin({
        user: "###",
        pass: "###",
    });
    await db.use("test", "test");

    console.log("Reading rows from the Table...");
    const result = await sql.query`SELECT * FROM <tableName>`;

    for (const row of result.recordset) {
        await db.create(
            "item:" + row.Id,
            row
        );
    }
    await sql.close();
    db.close();

    console.log("DONE!");
}

main();

The script is pretty simple as shown above.
After it hangs, selecting from SurrealDB shows that exactly 9360 rows where created, on a total of 17652 to be created.
SELECT count() FROM task GROUP BY ALL;

[
	{
		"time": "107.4225ms",
		"status": "OK",
		"result": [
			{
				"count": 9360
			}
		]
	}
]

Am I doing something wrong?
Thanks!

Ok, looks like I have an update.
It turns out the problem was a \n in a string. Looks like I cannot use \n as an escape sequence in a string and the server returns an error, but the client library does not handle nor throws the error and just hangs there.
BTW, anyone knows how to encode a newline in a string? 😄

This issue is also in surrealdb/surrealdb https://github.com/surrealdb/surrealdb/issues/90

I think the library should at least throw an error in this case instead of just hanging indefinitely, even if the error is due to a bug in the server parser.
The REST API correctly returns an error (not really useful to "debug" the problem but at least you get an error).

Hi @LeoDog896 , @Balrog994 , there is a fix coming to the database for this, and a new beta release coming this weekend!
It will support escaped characters like in JSON strings (\b, \n, \f, \r, \t) and unicode characters \u1234.

@tobiemh That's exciting to hear! am I correct in assuming the new release would that also fix the problem of not being able to insert objects that have been JSON.stringify'd more than twice? (ex : '{"foo":"{\\"bar\\":\\"baz\\"}"}')

Absolutely @abdoufma 👍

@Balrog994 fixed with surreal 1.0.0-beta.8.
@tobiemh close this.


Port authentication and logging related code

Move (and adapt) authentication and logging related code to the core repository, where both new (https://github.com/UN-OCHA/hpc-api) and old (https://github.com/UN-OCHA/hpc_service) APIs can use it.

Have you got an associated PR for hpc_service in the works? Rather than reviewing this in isolation, i'd like to test it with the old API to make sure that everything still works?

@Pl217 Have you got an associated PR for hpc_service in the works? Rather than reviewing this in isolation, i'd like to test it with the old API to make sure that everything still works

I'm still working on that one. Since it requires much more changes and diligence, I pushed this PR and hpc-api related PR, which were already done -  https://github.com/UN-OCHA/hpc-api/pull/21

Let's still keep the useful bits of this PR. There are some maintenance commits which I would like to keep and also define createBrandedValue which is needed for https://github.com/UN-OCHA/hpc_service/pull/2356.


Organize Events Package

Follow-up from https://github.com/containerd/containerd/pull/956#issuecomment-309853298

This was done when the event types were moved into the service


Filter and pagination for search

This is a subtask of https://github.com/OpenSRP/fhircore/issues/50

We can adopt the Jetpack paging library for this issue here to create a continuous scrollable list that takes advantage of Room LiveData observables or use the old pagination technique of manually scrolling to the next page.
NB currently the SDC does not support directly observing Live Data on a Room database but it should be possible to implement this functionality using a custom data source

@rkodev I don't know if the infinitely scrollable view is the most UX-friendly. The current mock-ups use the pagination style where we have a fixed number of patients per page.
I think a hybrid would be to support getting a specific number of entries per query to the DB and using the results to populate each page. Thoughts?

@vincent-karuri Yes, we have defaulted to adding the default patient pagination with a next and previous button at the bottom of the page

There is an implementation of this on worth check-in out https://github.com/google/android-fhir/pull/497 cc @vincent-karuri @rkodev


Allow user to configure repo name with save and push commands

- What I did
Added a --repo flag to save and push subcommands.
This includes a change to packager.extractImage to allow app images to forgo the .dockerapp suffix.
Fixes #320
- How I did it
Added new flag definition and slightly modified relevant internal/packager/registry methods.
- How to verify it
See e2e test update
- Description for the changelog
Added the ability to configure target repository in save and push commands with the --repo flag.
- A picture of a cute animal (not mandatory but encouraged)

It seems the pull cases for this are a little messy. I pushed the hello world example to ccrone/hellodapp. Trying to run a render I get:
$ docker-app render ccrone/hellodapp:0.1.0
Error response from daemon: reference does not exist
Error response from daemon: manifest for ccrone/hellodapp.dockerapp:0.1.0 not found
Error response from daemon: reference does not exist
0.1.0: Pulling from ccrone/hellodapp
927f68b07974: Already exists
Digest: sha256:dc13814577fed88b64dde9e0e5868fb87b247383b4630cf9ac7004bcb5b54380
Status: Downloaded newer image for ccrone/hellodapp:0.1.0
version: "3.6"
services:
  hello:
    command:
    - -text
    - Hello, World!
    image: hashicorp/http-echo
    ports:
    - mode: ingress
      target: 5678
      published: 8080
      protocol: tcp

We should convert those errors to debug logs or something that's not always visible.

Since we'll be using resto for this, we should fix the errors as part of that.

@chris-crone I think that's basically issue #337 but exploding since we're attempting multiple pulls. I'll look at how we can mute them for the time being.

Rebased.


Update 2.4.0 Release Notes

Signed-off-by: Naveen Tatikonda<EMAIL_ADDRESS>Description
Include https://github.com/opensearch-project/k-NN/pull/618 in the Release Notes
Check List

[x] Commits are signed as per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #620 (0e61222) into 2.4 (0b7c923) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##                2.4     #620   +/-   ##
=========================================
  Coverage     84.51%   84.51%
  Complexity     1054     1054
=========================================
  Files           149      149
  Lines          4301     4301
  Branches        382      382
=========================================
  Hits           3635     3635
  Misses          489      489
  Partials        177      177

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


New version: ArcadeLearningEnvironment v0.2.0

Registering package: ArcadeLearningEnvironment
Repository: https://github.com/JuliaReinforcementLearning/ArcadeLearningEnvironment.jl
Created by: @jbrea
Version: v0.2.0
Commit: 142a00e912281ba0e9cb229d26a8c431a7482c18
Reviewed by: @jbrea
Reference: https://github.com/JuliaReinforcementLearning/ArcadeLearningEnvironment.jl/commit/142a00e912281ba0e9cb229d26a8c431a7482c18#commitcomment-34045002
Release notes:

Breaking changes: rename getScreenRGB -> getScreenRBG!, getScreenGrayscale -> getScreenGrayscale!
New functions: getScreenRGB, getScreenGrayscale, setLoggerMode!, getROMList
Adding docstrings

Consider using
[compat]
julia = "1"

instead in the future.


Make glyph a struct

Make Glyph a struct
This is probably the most egregious example of a struct masking as a class. The reason being the coding standard wants to use classes over structs, but do we want to keep following this rule? It's fine if we want to stick to what we are currently doing, but we could at least talk about this coding standard. If anything, we can reference back to here why we don't want to use raw structs for data types.

SFMLBuildMaster: Build this please.

Nitpick: I don't think this qualifies as bug. In other projects I've made really good experience with a qol or quality-of-life label, which includes all sorts of refactorings and chores.

Nitpick: I don't think this qualifies as bug. In other projects I've made really good experience with a qol or quality-of-life label, which includes all sorts of refactorings and chores.

As you can see from the history, we had different views on this categorization. 😄
IMHO we don't really need an additional label, as it won't exactly solve the "categorization" problem, but just spread it across three instead of two options - when does something count as "qol" and when as "feature".
I recommend to mark every "change" as feature and reserve bug really just for broken behavior or unintended effects.
So for the given example, using struct instead of class is an intentional decision and a change from how it has been, thus it's a feature.

I wasn't thinking very hard when I added the "bug" label ¯\_(ツ)_/¯

I recommend to mark every "change" as feature and reserve bug really just for broken behavior or unintended effects.

That sounds like a good rule 👍


Fix assert class of retransform - backport 2.2.2

Prevents errors that may occur due to lambda classes when executing retransform.
Java 8 bug - https://bugs.openjdk.java.net/browse/JDK-8145964

#7681


Relative shader includes not working / shader-include example fails to compile on Windows

Version of vulkano: 9a08414054fadfc534abfb63102da04b6446f877
Version of rustc: 1.31.0 (abe02cefd 2018-12-04)
OS: Windows 10 Version 1803
GPU (the selected PhysicalDevice): NVIDIA GeForce GTX 960
GPU Driver: 397.31

Issue
    Checking examples v0.1.0 (C:\Users\flaradr_ljos\Development\vulkano\examples)
error: proc macro panicked
  --> examples\src\bin\shader-include\main.rs:37:13
   |
37 | /             vulkano_shaders::shader!{
38 | |                 ty: "compute",
39 | |                 // We declare what directories to search for when using the `#include <...>`
40 | |                 // syntax. Specified directories have descending priorities based on their order.
...  |
60 | | }"
61 | |             }
   | |_____________^
   |
   = help: message: called `Result::unwrap()` on an `Err` value: "4 compilation error(s): shader.glsl: error: \\\\?\\C:\\Users\\flaradr_ljos\\Development\\vulkano\\examples\\src\\bin\\shader-include\\standard-shaders\\common.glsl:6: \'#include\' : Invalid inclusion path `\\\\?\\C:\\Users\\flaradr_ljos\\Development\\vulkano\\examples\\src\\bin\\shader-include\\standard-shaders\\../relative-shaders/relative-include.glsl`. for header name: ../relative-shaders/relative-include.glsl\nshader.glsl: error: \\\\?\\C:\\Users\\flaradr_ljos\\Development\\vulkano\\examples\\src\\bin\\shader-include\\standard-shaders\\common.glsl:9: \'multiply_by_2\' : no matching overloaded function found\nshader.glsl: error: \\\\?\\C:\\Users\\flaradr_ljos\\Development\\vulkano\\examples\\src\\bin\\shader-include\\standard-shaders\\common.glsl:9: \'multiply_by_3\' : no matching overloaded function found\nshader.glsl: error: \\\\?\\C:\\Users\\flaradr_ljos\\Development\\vulkano\\examples\\src\\bin\\shader-include\\standard-shaders\\common.glsl:9: \'return\' : type does not match, or is not convertible to, the function\'s return type\n"

error: aborting due to previous error

error: Could not compile `examples`.

It looks like std::fs::canonicalize errors on Windows with "the filename, directory name, or volume label syntax is incorrect" if the path contains a relative component or forward slashes instead of backslashes.

I have the same issue and managed to find a temporary workaround.
As a workaround on Windows you could change couple includes to make it build.
From examples\src\bin\shader-include\main.rs
change
include: [ "examples/src/bin/shader-include/standard-shaders" ],
to
include: [ "examples/src/bin/shader-include" ],
And
From examples\src\bin\shader-include\standard-shaders\common.glsl
change
#include <standard-include.glsl>
to
#include <standard-shaders\standard-include.glsl>
and
#include "../relative-shaders/relative-include.glsl"
to
#include "relative-shaders\relative-include.glsl"
Let's hope it can be fixed otherwise.

@Limeth Are you interested in fixing this?

Yes, I'll look into it

So I'm currently stuck on trying to get the rust compiler to work on Windows.


Fix PNG rendering on macOS and Linux

System.Drawing.Common uses libgdiplus on macOS and Linux and does not properly render text when using GraphicsUnit.Point. Using GraphicsUnit.Pixel and manually scaling the font size works on all platforms.

This pull requests brings 100% tests passing on all platforms! 🥳


Flow description not being populated from docstring

Given a flow and deployment:
@flow
def surf():
    """
    This flow surfs.

    :return: `None` if the job was submitted succesfully
    """
    response = requests.post(
        url=batch_endpoint,
        params={"job_id": job_id},
        json=build_job_definition(snapshot_name)
    )

    if not response.ok:
        return response.raise_for_status()

    return None

deployment = Deployment.build_from_flow(
    flow=surf,
    name="surf",
    work_queue_name="test"
)

if __name__ == "__main__":
    deployment.apply()

The description from the docstring appears under the Deployments > surf/surf tab but not in Flow > surf.

Thanks for the issue @kasteph - this is actually as designed but the presence of the ui flow description field was confusing. i've removed that in https://github.com/PrefectHQ/prefect-ui-library/pull/1221.


Unable to upgrade to latest due to incompatibility with dagster_databricks package

I started looking at upgrading to latest version of this due to the security issue posted in #457 but when the new release has been made, the requirement databricks-sdk jumped from 0.1.7 to 0.9.0 and that clash with our dagster requirements that is <0.9 (in the latest version, see https://github.com/dagster-io/dagster/blob/791ee08c4d4e173b3d861c3410070783453ba435/python_modules/libraries/dagster-databricks/setup.py#L41C70-L41C70) and we are not even using the latest but we could upgrade.
@benc-db thank you so much for fixing #457 and #466 but I still can't upgrade due to the incompatibilities with dagster-databricks. This happend for both dbt-databricks 1.6.6 as well as 1.5.6.
Would it possible to do an intermediate release to enable compatibilities with other packages?
Thank you!

I wish but no unfortunately! I meant our pinned version of Dagster (1.4.12). I am working towards upgrading to the latest (>1.5) but still the dagster-databricks requirements clash with dbt-databricks requirements on the databricks-sdk package...

I recommend filing a ticket with them to remove the dependency block.  I don't like the idea of releasing a newer version of dbt-databricks in order to downgrade requirements.