ValueError continuous memory view and 0-size numpy array

A ValueError is raised if one gives a numpy array with shape (2, 0, 1) to such Cython functions with a 3d memoryview as argument:
cimport numpy as np
import numpy as np
np.import_array()

cpdef myfunc3d(np.float64_t[:, :, ::1] arr):
    if arr.size > 0:
        print(arr[0, 0, 0])
    else:
        print('size == 0')

The code to get the error:
import numpy as np
arr = np.ones((2, 0, 1))
print(arr.flags)
myfunc3d(arr)

which gives:
C_CONTIGUOUS : True
  F_CONTIGUOUS : True
  OWNDATA : True
  WRITEABLE : True
  ALIGNED : True
  UPDATEIFCOPY : False
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-7-81a397764d36> in <module>()
      1 arr = np.ones((2, 0, 1))
      2 print(arr.flags)
----> 3 myfunc3d(arr)

_cython_magic_5dfab2d7f2a0e837d79c56566c9147b4.pyx in _cython_magic_5dfab2d7f2a0e837d79c56566c9147b4.myfunc3d()

ValueError: Buffer and memoryview are not contiguous in the same dimension.
In [ ]:

Strangely, no error is raised for a shape (1, 0, 1)!

Strangely enough, by changing the function definition as shown below does not raise any error.
from cython cimport view

def myfunc3d(np.float_t[:,:,::view.contiguous] arr):

Possible explanation from Cython docs

The difference between the contiguous flag and the ::1 specifier is that the former specifies contiguity for only one dimension, whereas the latter specifies contiguity for all following (Fortran) or preceding (C) dimensions:

However this is not a solution, the issue still persists, IMHO.

To add to the previous comment, although no error is raised the output size == 0 is unexpected!
>>> import numpy as np; arr = np.ascontiguousarray(np.ones((2, 0, 1))); print(arr.flags); myfunc3d(arr)

  C_CONTIGUOUS : True
  F_CONTIGUOUS : True
  OWNDATA : True
  WRITEABLE : True
  ALIGNED : True
  WRITEBACKIFCOPY : False
  UPDATEIFCOPY : False
size == 0

>>> arr.size

0

I ran into this too. Here's another minimal example to reproduce this:
cdef void foo(double[:, :, ::1] X):
    pass

import numpy as np
X = np.zeros((4,4,4))

# this works
foo(np.ascontiguousarray(X[:, 2:3, :]))

# this fails with 'ValueError: Buffer and memoryview are not contiguous in the
# same dimension.'
foo(np.ascontiguousarray(X[:, 2:2, :]))

The problem is that __Pyx_ValidateAndInit_memviewslice does not correctly realize that a 0-size array is always C-contiguous.
This crops up in the wild, too. A search for the error message reveals many instances where people inadvertently passed 0-size arrays to cython-implemented functions and got confusing error messages. E.g.: https://stackoverflow.com/questions/46470492/buffer-and-memoryview-are-not-contiguous-in-the-same-dimension-in-python

For reference, here is the corresponding check for contiguouity in numpy:
https://github.com/numpy/numpy/blob/3873ec46816f3fe0f705394242f83a764d4ce90e/numpy/core/src/multiarray/flagsobject.c#L123
Note that it is contingent on the NPY_RELAXED_STRIDES_CHECKING compile-time environment variable, however this seems to be always on by default.
The Cython function __Pyx_ValidateAndInit_memviewslice does not have the same check for 0-length dimensions.

Yes, that's a bug. It should behave like NumPy.
PR welcome. Tests can go into tests/memoryview/memslice.pyx, there are several contiguity tests already.


Add codes from Struktur Data

The code is okay, but try to remove whitespace and use all lowercase filenames.

Okay thanks, will updated soon


Fix for #40

Fix for #40
Guard against null _plugin within PluginHost::loadNativePluginPreset
Follow error convention in source code
Tested arch: arm64
Confirm no longer crash

Thanks!


Bug: settings dialog unusable with touchscreen

Settings dialog react strange to all touch events. Looks like, it decrements Y coordinate of event by ~200px, so wrong element reacts to event.

As of 2019 we have a new settings menu that should have less problems here 🎉 . Please re-open the issue if there are continued problems on the latest version of the extension.


s4702860 ADNI Siamese Classifier

Pull request for classification problem of ADNI dataset based upon a siamese network. Three input siamese neural network is created and trained on ADNI dataset, these embeddings are then being used in order to train the classifier.
Created 4 new .py format files:
modules.py - handles all neural networks (siamese, classification)
train.py - handles the training of the neural networks on new, unseen data, and accuracy curves
predict.py - outputs UMAP class plots and accuracy information
Updated README.md
includes overview of the problem space, example output, dependencies.

To the marker,
The model only predicts one class (couldnt get it working),
I have the current number of data loaded set to 1000 which takes about 10 minutes to LOAD the data, not even train it,
I figure there is no point in you wasting time loading the data that isn't even going go work,
So as to not to waste your time marking, in train.py, change the value in the load_dataset call in main to 100 and 25 for train and test respectively, just to not waste your time marking,
I have 1000 in the commit as it is the final model that I used to supply the data obtained in the readme,
Thanks and sorry for the hassle,
Reuben!

This is an initial inspection, no action is required at this point
Difficulty: Hard
Readme: Good

clear flow of information
sufficient details on algorith, training choices, and usage
relevant plots provided

Commit messages: Very poor
Code:

good design
sufficient comments
algorithm seem to be correctly implemented

Functionality/Performance:

no final average performance numbers provided for either the siamese or classifier
looking at the provided plots, both networks seem to be performing very poorly

General comments:

algorithm seems to solve the problem apporpriately, although performance is somewhat unknown

Hi Natasha,
Thanks for inspecting my code! Just wanted to clarify regarding your comment saying no performance accuracy is given:

task is to get 80% on testing accuracy using siamese
In predict.py, there is a print output for the test accuracy of the classifier.
is this not enough?

Regarding the low accuracy:

found my error, trained classifier on ADNI set instead of the embeddings of siamese

Thanks!

Hello,
No problem!
Regarding the test accuracy, it would have been best to include the test set performance in the readme as we might not run code at the initial inspection. And judging by the validation accuracy in the plot, I doubt that your test set achieves >80% classification accuracy. Does it?

found my error, trained classifier on ADNI set instead of the embeddings of siamese
Not sure what you mean by this. The correct algorithm would be to train the classifier on the embeddings generated by the trained siamese.

Ahh oh sorry about that,
Yea the test accuracy was only 50%, which it was only ever predicting the one class (I believe 1).
Also, regarding the training on the ADNI set, I know I was meant to train on the embeddings, however I trained oj the set by accident.
Reason was due to my just copy and pasting the train line from the siamese, changing the model name, but forgetting the data lol

Marking
Good Practice (Design/Commenting, TF/Torch Usage)
Adequate design and implementation
Good spacing and comments
Header blocks
Recognition Problem
Solves problem partially, no classifier -3
Driver Script present
File structure present
Shows Usage & Demo & Visualisation & Data usage, missing results for performance -2
Module present
Commenting minimal -1
No Data leakage
Difficulty: Hard
Commit Log
Meaningful commit messages
Progressive commits used
Documentation
ReadMe acceptable, no refs -1
Model/technical explanation
Good Description and Comments
Markdown used and PDF submitted
Pull Request
Successful Pull Request (Working Algorithm Delivered on Time in Correct Branch)
No Feedback required
Request Description good


Update sbt, sbt-dependency-tree to 1.10.4

About this PR
📦 Updates

org.scala-sbt:sbt
org.scala-sbt:sbt-dependency-tree

from 1.10.1 to 1.10.4
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scala-sbt" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scala-sbt" }
}]

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

Superseded by #112.


change message colors

however these messages should be all mad fully configurable by user (#40) in near future


Update junit to 4.13.1

Signed-off-by: Ashish Agrawal<EMAIL_ADDRESS>Description
Force update junit to 4.13.1
Issues Resolved
N/A
Check List

[x] New functionality includes testing.

[x] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[x] Commits are signed 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.

Why is the force update? Shouldn't it be updated on OpenSearch and inherited here?

@lezzago do we still need this PR?


Firefox ignores the space after the asterisk in the ul li::marker rule

The issue appears to be with how Firefox handles UL/LI indentation compared to Chrome.
Originally posted by @mntn-xyz in https://github.com/joeroe/risotto/issues/3#issuecomment-887933920

I think this will fix it, but I haven't tested it yet.
/* Replace existing rule (strip space after asterisk) */
ul li::marker {
    content: '∗';
    color: var(--bright-bg);
}

/* Specify use of margin */
.page__body ul, .page__aside ul {
    margin-left: 0.75rem;
    padding-left: 0;
}

I noticed that this was fixed on sslarch.github.io, but without the .page_body and .page_aside selectors. This adds a space after the ./ in the header menu.

Fixed - confirmed


⚠ ClamAV has degraded performance

In fbd7276, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 443 ms

Resolved: ClamAV performance has improved in 7e4598c.


How to speed up the training?

I worked on a similar project at university and used Mask RCNN. I wanted to compare its performance with yolact.
I have followed the steps and have prepared the dataset accordingly and made changes to the config file. You can find my code on the fork here (https://github.com/PulkitMishra/yolact)
Also, right now, I just have 2 training and 1 validation image (batch size is 2)
I am trying to run it on colab. Any help/tips @dbolya on how I can speed up the time?
Would really be grateful!

If you have that few images, you can drastically reduce the number of iterations here:
https://github.com/PulkitMishra/yolact/blob/db81124874817895db69f2dc443f5c24e0e3f491/data/config.py#L667-L668
Divide all of those numbers by at least 1000. (Also I don't think you pushed your config changes to your fork).

@dbolya thanks a lot for the response. I actually have 500 images with 2 classes. Also extremely sorry, you are right, I forgot to push the changes. Can you please take a look at the config file if you find time.

From a cursory look, that looks fine to me. So yeah, just change these two lines:
https://github.com/PulkitMishra/yolact/blob/ca854db70b9641bb2e51e92d1a5bf099f3f78337/data/config.py#L682-L683
to
    'lr_steps': (280, 600, 700, 750),
    'max_iter': 800,

and it should train super fast. Not sure how good results you will get with that few images though. Perhaps you want to use the resnet50 version since it's shallower.

@dbolya I have around 600 images now but when I train it on colab it gives me
RuntimeError: CUDA out of memory. Tried to allocate 15.59 GiB (GPU 0; 15.90 GiB total capacity; 916.56 MiB already allocated; 5.29 GiB free; 9.90 GiB reserved in total by PyTorch)
Please note that I have not made any validation split.

@dbolya I tried the same on AWS wth a much higher memory. But still same thing happened.

it gives me this error when doing your changes:
Scaling parameters by 0.62 to account for a batch size of 5.
Per-GPU batch size is less than the recommended limit for batch norm. Disabling batch norm.
loading annotations into memory...
Done (t=0.09s)
creating index...
index created!
loading annotations into memory...
Done (t=0.01s)
creating index...
index created!
Resuming training, loading weights/yolact_plus_base_54_800000.pth...
cfg.max_iter:  1280.0
cfg.lr_steps [448.0, 960.0, 1120.0, 1200.0]
Begin training!

Computing validation mAP (this may take a while)...

Traceback (most recent call last):
  File "train.py", line 506, in <module>
    train()
  File "train.py", line 376, in train
    compute_validation_map(epoch, iteration, yolact_net, val_dataset, log if args.log else None)
  File "train.py", line 494, in compute_validation_map
    val_info = eval_script.evaluate(yolact_net, dataset, train_mode=True)
  File "/home/ubuntu/yolact/eval.py", line 956, in evaluate
    prep_metrics(ap_data, preds, img, gt, gt_masks, h, w, num_crowd, dataset.ids[image_idx], detections)
  File "/home/ubuntu/yolact/eval.py", line 468, in prep_metrics
    ap_obj = ap_data[iou_type][iouIdx][_class]
IndexError: list index out of range

Fixed this by creating a train-validation split.


Support Header First Initial Block Download

Currently, this library's implementation seems to be doing Block First IBD.
https://bitcoin.org/en/developer-guide#headers-first

@usatie funded this issue with $50. Visit this issue on Issuehunt

@usatie cancelled funding, $50, of this issue. Visit this issue on Issuehunt


Revert "[Issue #9]: added project fonts"

Reverts HackYourFuture-CPH/fp-class12#10

Hi Niels,
I guess we are not going to have the fonts in the repo?
I approved the PR.


fixed typo in README.md

fixed typos in the README.md the code examples are now appear correct.

Thank you very much.I have merged it.
I hope you could  merge commit from dev branch rather than master branch next time.It's helpful for the project.


module 'pandas_ta' has no attribute 'Strategy'

Hallo,
I had imported pandas_ta as ta
Was trying to test the pandas_ta module using the examples provided and I always get the below errors whenever I try using the ta.Strategy or the others as well
module 'pandas_ta' has no attribute 'Strategy'
module 'pandas_ta' has no attribute 'AllStrategy'
module 'pandas_ta' has no attribute 'CommonStrategy'
Kindly advice

Hello @jaymasimba,
Why did you close the issue? Did you figure it out? What code did you use specifically? Did you look at the Example Notebooks?
import pandas as pd
import pandas_ta as ta

data = pd.read_cs("path/to/your/symbol.csv")
print(ta.AllStrategy)
data.ta.strategy() # Automatically run ta.AllStrategy and appends to data DataFrame

# Or you can run the Common Strategy
print(ta.CommonStrategy)
data.ta.strategy(ta.CommonStrategy)

# Or create your own Strategy like the Examples in the Notebook
jays_ta = [
    {"kind": "sma", "length": 10},
    {"kind": "rsi"},
    {"kind": "macd"}
]
my_strategy = ta.Strategy(name="jay's strategy", ta=jays_ta)
data.ta.strategy(my_strategy)

Hope this helps!
Thanks,
KJ

Running into the same error using your code above and the example docs:
AttributeError: module 'pandas_ta' has no attribute 'AllStrategy'

Hello @andybrewer,
By default: data.ta.strategy() is equivalent to data.ta.strategy(ta.AllStrategy).
Let me know if that works.
Thanks,
KJ

This fails on Kaggle as well:
!pip install pandas_ta
import pandas as pd
import pandas_ta as ta

print(ta.AllStrategy)

Which version are you running? Latest? I just updated it today.
$ pip install -U git+https://github.com/twopirllc/pandas-ta
KJ

That worked! I installed it for the first time only a few minutes ago. Maybe right before you updated it? Regardless, it's working now. Thanks!

Thanks for using Pandas TA!
Drop a ⭐ if you find it useful.
Thanks,
KJ

The pip install pandas-ta install the version 0.1.66b that did not contain the strategy attributes. So I cloned and installed the latest version from github which worked.

@jaymasimba,
Thanks for getting back to me. Glad you were able to resolve the issue. Yes, pandas version 0.1.66b via pip was the last version before Strategy was implemented. The pip version contains the last most stable version while the Github version is the latest version. Hopefully soon, pip will get the current version should no further killer bugs creep up.
Drop a ⭐ if you find the library useful.
Thanks,
KJ


⚠ Orpheus has degraded performance

In 0805326, Orpheus ($OPS) experienced degraded performance:

HTTP code: 200
Response time: 4074 ms

Resolved: Orpheus performance has improved in 6ab7866.


Add URU

Add Uttaradit Rajabhat University

@beebrain I have to close this request without merging, because you requested to add a non-existent domain to this repository: ;; connection timed out; no servers could be reached Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with the correct information. Thank you for understanding!


New version: ART.ART version 1.21.1

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.5 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

/AzurePipelines run

@wingetbot waivers Add Policy-Test-2.3


Authorization

Description
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Change Status

[ ] Complete, tested, ready to review and merge
[ ] Complete, but not tested (may need new tests)
[ ] Incomplete/work-in-progress, PR is for discussion/feedback

How Has This Been Tested?

[ ] Test A
[ ] Test B

Checklist

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] My code has been reviewed by at least one peer
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] There are no merge conflicts

Good job ben

For the template: how has this been tested. Will you document what you tested and how?
And I see that all of the status changes are checked, but only one should checked.

Currently receiving this when I attempt to log in:

There is currently a merge conflic with the package.json
Once that has been sorted out I will look to move forward with the merge to master.


(PUP-10289) Allow caller to pass a URL string when they meant a path

The Connection class accepts a URL as the request path, and sends it in
"absolute-form" in the request line[1]:
GET https://puppet:8140/ HTTP/1.1\r\n

Client's are only supposed to send absolute-form when CONNECT-ing to a proxy so
that the proxy knows which upstream server to forward the request to. However,
HTTP 1.1 servers are required to accept absolute-form, so things happen to work.
This commit allows the ConnectionAdapter to accept a URL like the Connection
class does, and passes a new URL to the client consisting of the current scheme,
server, port and path from the URL argument. The resulting request will be
made using "origin-form" as it should have been all along:
GET / HTTP/1.1\r\n

There shouldn't be any compatibility issues as servers prefer "origin-form".
This commit also preserves the existing behavior of requiring the caller to URL
encode the string that is passed in, so "/foo%20bar" will work, but "/foo bar"
won't.
[1] https://httpwg.org/specs/rfc7230.html#absolute-form

jenkins please test this with servertests

CLA signed by all contributors.


[Regression?] inserted model property shows subsequent properties as dropped, added

There seems to have been a regression in the diffing of swaggers. A property inserted above others is showing all remaining properties as dropped, then added. This was fixed a while ago, IIRC. Order is right, though (which was part of the fix):

Here, only hsmPlatform was added.

Another example I saw today:

At least with one property it's easier, but like the original image, it's really hard to review this way. I recommend first always sorting properties if you don't already (JSON is supposed to be order-independent anyway) then use +/- detection of elements therein.

Another instance of this happened today in review https://apiview.dev/Assemblies/Review/224ad4b2fcd84615af973cc42c3c423a?revisionId=1c00fb0d910249ba8e07db8b61fdde97&diffOnly=False&doc=False&diffRevisionId=438b837f2a5946ddb16acee8966cb485
where a property was added and modified everything else:


30.java

Fixes #{Insert your issue number here}

My code sample is in :

[ ] CPP
[x] Java

Screenshot of working code sample  :

Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] My code sample is formatted and works correctly

30.Java

Please see other pr's for reference , and update your pr accordingly :)


sess = tf.Session() get stuck!

GitHub issues are for bugs / installation problems / feature requests.
For general support from the community, see StackOverflow.
To make bugs and feature requests more easy to find and organize, we close issues that are deemed
out of scope for GitHub Issues and point people to StackOverflow.
For bugs or installation issues, please provide the following information.
The more information you provide, the more easily we will be able to offer
help and advice.
Environment info
Operating System: Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-85-generic x86_64)
Installed version of CUDA and cuDNN:
-rw-r--r-- 1 root root   322936 Apr 22 10:12 /usr/local/cuda-7.5/lib64/libcudadevrt.a
lrwxrwxrwx 1 root root       16 Apr 22 10:12 /usr/local/cuda-7.5/lib64/libcudart.so -> libcudart.so.7.5
lrwxrwxrwx 1 root root       19 Apr 22 10:12 /usr/local/cuda-7.5/lib64/libcudart.so.7.5 -> libcudart.so.7.5.18
-rwxr-xr-x 1 root root   383336 Apr 22 10:12 /usr/local/cuda-7.5/lib64/libcudart.so.7.5.18
-rw-r--r-- 1 root root   720192 Apr 22 10:12 /usr/local/cuda-7.5/lib64/libcudart_static.a
-rwxr-xr-x 1 root root 61453024 Apr 22 10:57 /usr/local/cuda-7.5/lib64/libcudnn.so
-rwxr-xr-x 1 root root 61453024 Apr 22 10:57 /usr/local/cuda-7.5/lib64/libcudnn.so.4
-rwxr-xr-x 1 root root 61453024 Apr 22 10:57 /usr/local/cuda-7.5/lib64/libcudnn.so.4.0.7
-rw-r--r-- 1 root root 62025862 Apr 22 10:57 /usr/local/cuda-7.5/lib64/libcudnn_static.a
My cudnn package: cudnn-7.0-linux-x64-v4.0-prod
If installed from binary pip package, provide:

Which pip package you installed.
sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
The output from python -c "import tensorflow; print(tensorflow.version)".
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcurand.so locally
0.8.0rc0

What have you tried?
1.I ran 'python -m tensorflow.models.image.mnist.convolutional', and for the first time the model can print 'initialization' and train, but got stuck at the end. The second time I want to run it, it got stuck at the beginning after extracting from data. When I debug it, I find it's tf.Session() that making it get stuck.  When I tried '>>> hello = tf.constant('Hello, TensorFlow!')  >>> sess = tf.Session()', it got stuck here.
2.I have run the NVIDIA_CUDA-7.5_Samples/1_Utilities/deviceQuery, and the result is PASS. I have even reinstall the cuda, but the result remain the same.
3.I have tried the CPU model, and it went just fine.
4.I tried to install from the source, the result remain the same.
Where is wrong? It seemed that the cuda and cudnn went wrong, but how to fix it?
Please help me!
Logs or other output that would be helpful
(If logs are large, please upload as attachment).

I am unable to reproduce this on my installation...
Could you please provide more information. e.g. did you have a previous version of TensorFlow installed, and if so did you remove it before installing 0.8?   (see note on https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#pip-installation)
What is your LD_LIBRARY_PATH?
Thanks, Paul

I installed the tensorflow 0.8 on a brand new ubuntu server, and I'm sure I was following the steps on the tensorflow website.
LD_LIBRARY_PATH = /usr/local/cuda-7.5/lib64
CUDA_HOME = /usr/local/cuda-7.5
I'm thinking if the cuda test can pass, and the CPU model went well. Can it be cuDNN that caused the bug?

Are you still having a problem?  When you say it "gets stuck", what do you mean?  What are the symptoms?  Have you identified exactly where it gets stuck?

The most obvious symptom is whenever I want to use tf.Session() in GPU model, it would show nothing including the command prompt and I can't input anything. Like this in IPYTHON,
_In [1]: import tensorflow as tf
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcurand.so locally
In [2]: hello =  tf.constant('Hello')
In [3]: sess = tf.Session()_
It stuck here and stop showing anything, but it went just well in CPU model.
What should I do? Thank you very much!!
@poxvoculi

I ran into the same issue trying to setup an EC2 machine. Although deviceQuery ran fine, nvidia-smi would run halfway then crash the first time then hang on subsequent tries. I also tried running the Theano test which hung the same way as TensorFlow.
Ultimately I stumbled on https://devtalk.nvidia.com/default/topic/880246/cuda-7-5-unstable-on-ec2-/ which points to CUDA 7.5 as the issue. When I switched to CUDA 7.0 at least Theano would work. That nvidia forum thread has some directions at the end that might get 7.5 working.

WOW! It works with CUDA 7.0!
I've been trying to solve this problem for one week. You save me! Thanks! @ktrnka

You're welcome. Yesterday I followed the script on the nvidia forum thread
and got 7.5 working so now I can use pip tensor flow without problems.
On Apr 29, 2016 1:31 AM, "wangbm"<EMAIL_ADDRESS>wrote:
WOW! It works with CUDA 7.0!
I've been trying to solve this problem for one week. You save me! Thanks!
@ktrnka https://github.com/ktrnka
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/tensorflow/tensorflow/issues/2064#issuecomment-215657771


Add this Website: Medieval cat meme generator

URL: https://michael-klein.github.io/medieval-cat-meme-generator/
__Author's Mastodon Handle<EMAIL_ADDRESS>I built this site quite a while ago when a certain twitter bot that posted silly cats in medieval pictures gave me a few good chuckles.
It's just a silly little thing to generate memes with funny old-timey cats in it.

thanks, added it to the club! 🎉


Fabric API problems

I have an error: Could not find required mod: lightoverlay requires {fabric-api @ [>=0.29.1]}
I have tested with lower than 0.29.1, the 0.29.1 version, and higher than 0.29.1.
None of the versions work. it always shows that error message.

Why is that closed? I have the same issue and I tested many different fabric-api versions.

Why is that closed? I have the same issue and I tested many different fabric-api versions.

you need to update your version of light overlay

you need to update your version of light overlay

also it was already tracked at #72

also it was already tracked at #72

Its overlaying with another mod. I think that's why it didn't work for me. As I realized that it was my issue - I closed it.


New translation into Portuguese

Hello, I can do the translation into Portuguese (Brazilian).
I wonder if you would accept it.

He probably would... he is known to accept community materials. I know a guy who retextured the infusion matrix to match the new arcane stone, and Az accepted the change.

He probably would... he is known to accept community materials. I know a guy who retextured the infusion matrix to match the new arcane stone, and Az accepted the change.

Thank you for your return!!


Team update - Nov 24, 2021

This is a  @Quansight-Labs/czi-a11y-grant team sync 🎉🎉🎉! This is a way for the Team Members to provide status reports on what they've been up to this week and request help and attention for things they are working on. This issue will be closed at the end of the day.
Copy and paste the template below, and answer questions as you wish!

Response Template
**Thanks I'd like to give 🙌**
- So-and-so helped me out a lot with XXX...
- Thanks for Jo's work on the XXX repo...

**Updates from last week :heavy_check_mark:**
- I worked towards deliverable: <link-to-deliverable>
- I had a meeting with ABC

**Challenges I faced and things I'd like assistance with 🙏**
- I had a hard time figuring out ...
- Could somebody take a look at ...

**My availability for next week**
- I'll be off on XXX day...
- I've got several meetings this week...

:mag: Needs Triage:
The Needs Triage issues require an initial assessment and labeling.

Investigate accessibility statements

:dart: Project boards
Please make sure the boards reflect the current status of the project.
Jupyter a11y grant project

Thanks I'd like to give 🙌

Isabela and Tony for their impromptu show and tell at our team check-in. Loved getting teasers about the Paris commune, design work in union organizing, and such.
Also, thanks to Isabela and Tony for following up with me after the JupyterLab calls on Wednesday

Updates from last week :heavy_check_mark:

Since our check-in, I switched gears to work on Qhub stuff, so I don't have a lot for this update. I'll be spending the remaining two work days this week on https://github.com/Quansight-Labs/jupyter-a11y-mgmt/issues/4 and https://github.com/Quansight-Labs/jupyter-a11y-mgmt/issues/51
I will have a meeting with Frédéric Collonval on Friday to discuss testing

Challenges I faced and things I'd like assistance with 🙏

The amount of stuff all at the same time in Jupyter land is hard to wrap one's mind around. Isabela and Tony are doing a great job helping to orient me to this vast and complex landscape. I will need to continue to rely on them for this for a while.

My availability for next week

I'll be available all next week, but switching time zones! I'll be in Eastern Standard Time (UTC-5), visiting with friends for two weeks in Durham and working out of the American Underground coworking space Monday-Friday, roughly 9 to 5 Eastern!

There are no notes for this team update because we decided to cancel this week's call and instead make next week's call a bit longer


Ledge live does not show the OUSD countervalue

The ledge live app does not show the "countervalue" (the value in the preferred currency of the user, for ex. USD).
Here is a screenshot from one of my ledger live account on mainnet

The root cause is most likely that Ledger Live does not have a price feed for OUSD.

Relevant ledger support page: https://support.ledger.com/hc/en-us/articles/4402577950225-Wrong-portfolio-or-asset-value-in-Ledger-Live?support=true
Though does not offer any solution or ways to request a price feed to get added...


Split 'nom' and 'bom' into separate commands

Would allow users to clear just npm or just bower, giving them more fidelity. Thoughts?

That's a great idea.

Cool, I'll make a PR

:heart_eyes_cat:


shelly 1 mini (device support)

Hi!
I'm using a shelly 1 mini (gen2), but it seems that it is not supported with shellyteacher.
---ERROR: GEN2 device shelly1mini-xxxxxx shelly1mini-xxxxxxx template not found
Do we expect this device will be supported in the future?
Thank you.

Gen2 Shelly1 Mini support added at 2023.11.01
Please download latest template file to you ShellyTeacher directory.
https://raw.githubusercontent.com/enesbcs/shellyteacher4domo/main/mqtt_templates_gen2.txt

I updated the template file and the shelly is added to domoticz.
However the "output" switch is not listed under switches and devices.
only:  Online, relay, input, event
None of these can toggle the output on or off.
Any idea?

nevermind. Just forgot to generic status update setting.
thanks!


Allow opening a namespace multiple times and with multiple aliases

This diff got much bigger than I intended. I think reviewing it commit-by-commit would help. The commits are, respectively, and in increasing order of diff size:

The heart of it: allow opening namespaces multiple times, including with different aliases
Change code to use "" to represent no alias instead of null. This diff ended up being bigger than (1), largely because I traced back the null's birth to the "root of all evil" aka the definition of an OpenDirective fragment
Surprisingly, when I removed a ton of error diagnostics definitions in (1), that didn't break any unit tests. In fact, I couldn't find any unit tests at all referencing those namespace error diagnostics, so I tried to add some. In the process, I had to cook up some little infrastructure for compiler unit tests that aren't testing code written in a Q# callable

Note: this does not do the alias merging we discussed, Sarah. That is, it does not allow opening two namespaces with the same alias. My only reason is lack of time.
Testing

Ran unit tests, including new tests
Did manual testing in VSCode
Fantomas is happy

/azp run

/azp run


GORM Count(*) returns 0

What version of Go are you using (go version)?
1.12.4
Which database and its version are you using?
MySQL 5.7.24
Please provide a complete runnable program to reproduce your issue. IMPORTANT
package main

import (
	"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/mssql"
	_ "github.com/jinzhu/gorm/dialects/mysql"
	_ "github.com/jinzhu/gorm/dialects/postgres"
	_ "github.com/jinzhu/gorm/dialects/sqlite"
)

var db *gorm.DB

func init() {
	var err error

	db, err = gorm.Open("mysql", "gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True")

	if err != nil {
		panic(err)
	}
	db.LogMode(true)
}

func main() {
      err := db.Table(db+"."+tb).Where("? >= ?", columnname, date+" 00:01:00").Count(&cnt)
	if err != nil {
		Error.Println(err.Error.Error())
	}
	fmt.Println("The Count is \n", cnt)
}

Problem Statement

Problem 1

I am getting a 0 when trying to retrieve the count.
The query expression is perfect, by which I assume that the query being built is correct.
However, the result is 0 irrespective of the query.

Problem 2

I am required to specify the db name in the Table clause as  Table(dbname.tbname)
This isn't required in the any other queries and is required only when using Count()
What might I be missing?
Update 1
The following works.
But this is as per my understanding using the result as *sql.Row and then retrieving  the result using scan.
But I don't understand,why  ...Count(&count) is giving a run time error?

+1

+1


docs/files: remove  example

Based on https://github.com/nalgeon/codapi-js/issues/22#issuecomment-2067655248

Hmm, but "don't use pre" I meant "don't use pre in Docusaurus". But yeah, it's probably better to remove it altogether.

Thank you!


Stereochemistry doesn't retain in the output structures after the generation of conformers

Hello,
I' m trying to run a conformer generation starting from a Smile string.
Some atoms in the input file have got a specific stereochemistry but this is not retain in all the output structure.
There is a way to retain the stereochemistry ?
Can someone help me?
Thank you
This is the script I'm using:
import sys
from rdkit import Chem
from rdkit.Chem import AllChem, TorsionFingerprints, RWMol, rdmolfiles
from rdkit.ML.Cluster import Butina

smilesstructure="C1(=CC(=CC2=C1C([C@]3([C@@H](C2(C)C)CC4=C(C3=O)C(=CC(=C4Cl)OC)C5=C(C=C(C(=C5C)Cl)OC)O[H])O[H])=O)O[H])O[H]"

print "INPUT:",smilesstructure
print ""

####get molecule from the smniles

m = Chem.MolFromSmiles(smilesstructure)
print Chem.MolToMolBlock(m)

###generate 3d cordinate in the molecule

AllChem.EmbedMolecule(m,AllChem.ETKDG())
print(Chem.MolToMolBlock(m))

new = Chem.MolFromMolBlock(Chem.MolToMolBlock(m, includeStereo=True))

print "\nFrom Smile\n--------"
for atom in m.GetAtoms():
    print atom.GetChiralTag()

print "\nFrom SDF\n--------"
for atom in new.GetAtoms():
    print atom.GetChiralTag()

print "Input > mol > SMILES:",AllChem.MolToSmiles(m,isomericSmiles=True)
print ""

#Add H

m = Chem.AddHs(m)

print "\nAfter Hs\n--------"
for atom in m.GetAtoms():
    print atom.GetChiralTag()

#AllChem.AssignStereochemistry(m)
#print "After AssignStereochemistry:"
#print AllChem.MolToSmiles(m,isomericSmiles=True)
#quit()

AllChem.EmbedMolecule(m)
AllChem.MMFFOptimizeMolecule(m)
AllChem.MMFFOptimizeMoleculeConfs(m)

conformerIds = AllChem.EmbedMultipleConfs(m, numConfs=100, maxAttempts=1000, pruneRmsThresh=0.1, useExpTorsionAnglePrefs=True , useBasicKnowledge=True, enforceChirality=False, numThreads=0)

def calc_energy(mol, conformerId, minimizeIts):
        ff = AllChem.MMFFGetMoleculeForceField(mol, AllChem.MMFFGetMoleculeProperties(mol), confId=conformerId)
        ff.Initialize()
        ff.CalcEnergy()
        results = {}
        if minimizeIts > 0:
                results["converged"] = ff.Minimize(maxIts=minimizeIts)
        results["energy_abs"] = ff.CalcEnergy()
        return results

def cluster_conformers(mol, mode="RMSD", threshold=2.0):
        if mode == "TFD":
                dmat = TorsionFingerprints.GetTFDMatrix(mol)
        else:
                dmat = AllChem.GetConformerRMSMatrix(mol, prealigned=False)
        rms_clusters = Butina.ClusterData(dmat, mol.GetNumConformers(), threshold, isDistData=True, reordering=True)
        return rms_clusters

def align_conformers(mol, clust_ids):
        rmslist = []
        AllChem.AlignMolConformers(mol, confIds=clust_ids, RMSlist=rmslist)
        return rmslist

def write_conformers_to_sdf(mol, filename, rmsClusters, conformerPropsDict, minEnergy):
        w = Chem.SDWriter(filename)
        for cluster in rmsClusters:
                for confId in cluster:
                        for name in mol.GetPropNames():
                                mol.ClearProp(name)
                        conformerProps = conformerPropsDict[confId]
                        mol.SetIntProp("conformer_id", confId + 1)
                        for key in conformerProps.keys():
                                mol.SetProp(key, str(conformerProps[key]))
                        e = conformerProps["energy_abs"]
                        if e:
                                mol.SetDoubleProp("energy_delta", e - minEnergy)
                        w.write(mol, confId=confId)

                        #print AllChem.MolToSmiles(mol,isomericSmiles=True)
                        print "\nConformers\n--------"
			for atom in mol.GetAtoms():
    		            print atom.GetChiralTag()

        w.flush()

        w.close()

minimizeIterations = 0
clusterMethod = "RMSD"
clusterThreshold = 2.0

conformerPropsDict = {}
for conformerId in conformerIds:
    # energy minimise (optional) and energy calculation
    props = calc_energy(m, conformerId, minimizeIterations)
    conformerPropsDict[conformerId] = props
    # cluster the conformers
    rmsClusters = cluster_conformers(m, clusterMethod, clusterThreshold)
print ": generated", len(conformerIds), "conformers and", len(rmsClusters), "clusters"
rmsClustersPerCluster = []
clusterNumber = 0
minEnergy =<PHONE_NUMBER>999
for cluster in rmsClusters:
    clusterNumber = clusterNumber+1
    rmsWithinCluster = align_conformers(m, cluster)
    for conformerId in cluster:
        e = props["energy_abs"]
        if e < minEnergy:
            minEnergy = e
            props = conformerPropsDict[conformerId]
            props["cluster_no"] = clusterNumber
            props["cluster_centroid"] = cluster[0] + 1
            idx = cluster.index(conformerId)
            if idx > 0:
                props["rms_to_centroid"] = rmsWithinCluster[idx-1]
            else:
                props["rms_to_centroid"] = 0.0

write_conformers_to_sdf(m,  "testsmile.sdf", rmsClusters, conformerPropsDict, minEnergy)

Hi, I'm not sure if this is causing the problem or not, but the conformations will be a lot better if you add hydrogens to the molecule:
m = Chem.AddHs(Chem.MolFromSmiles(smilesstructure))

Hi,
I'm not sure if it is the same but in the script I have added the hydrogen in the 3D structure.

Nope, it's not the same.
You need to add the Hs before you generate coordinates. The software is "stupid" and does what you tell it to do. So if you as for coordinates for a structure without Hs, it will give you coordinates.

@greglandrum
All right thank you! I have changed it but unfortunately the problem is still present.
I have also print out the stereochemisty of the atoms for all the conformers using the command:
print  mol.GetAtomWithIdx(7).GetProp('_CIPCode')
and the strange thing is that the output is correct! That mean that all my conformers have got the right stereochemistry but then if i display the single conformations using an other software, a couple of them present the wrong configuration.
Do you know what could be the problem?
Thank you

Going to close this because it looks like the question has been answered. Please re-open if that's not correct. The possible wrong stereochemistry on output is in a different ticket now.


Strat Sections on web

From David Martin: Stratigraphic sections are not displaying on the web version, although I’m able to add intervals and they are being recorded as spots. This was an important component that I wanted to show to my GSWA colleagues as this is the component of our current GSWA system that is not fit for purpose. The mobile app is fine.

I am able to recreate this bug when selecting "View Stratigraphic Section" from the Notebook. It seems to display fine when selecting the strat section from the Settings & Preferences main menu. We'll look at this bug but at least there is a work around so a strat section can be viewed in the time being.

Fixed with commit a8bf40a805d3e5ef940a43c6808349246e86741c


[Feature] Add wavefunction normalization check

Certain numerical operations like the Hamiltonian Evolution with RK4 method do not conserve the wavefunction normalization. We should either:

Add a normalization check at certain steps in the computation and raise an error when above certain threshold.
Add a renormalization step to any non-norm-conserving operations (the danger being that the results will diverge without raising any errors).

Implement both of the above solutions with a flag for choosing which one to use when building the quantum circuit.

Hello @jpmoutinho, is this issue still open?

Hi @ducthanh1991, actually for now I would say this issue is not relevant since the code it related to is not there anymore. It will possibly become relevant again soon since we are in the process of adding a some new methods for solving the Schrodinger equation.


updated sorting of shapefiles

We had an issue where the timestamps for observations were not in date order, this fixes that bug.

Hydrocron update made all previous branches obsolete, however, st_2024 was used to process the data for the 2024 ST meeting.


During the analysis output the intermediate data to text so you don't have to run the whole thing every time

[ ] Save A
[ ] Save B
[ ] Save isf as single `.csv' with header with: dq, dtau, and data file
[ ] Save plots

I have added functionality to export the ddmMatrix as netcdf (default for xarray) and csv. This will also allow the iterative calculation of the lag times as long as they are monotonically increasing.
Example:

Calculate matrix for taus=np.arrange(1,100)
Export matrix
Calculate matrix for taus=np.arrange(100,200)
Update exported matrix


haskell-language-server: allow specifying a set of formatters that should be included

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

I am fine with the changes to HLS. I am just a bit wary about adding new functions to lib, because that’s not really my department. I will look around for another review for that.

This lib change looks fine to me :)

I am fine with the changes to HLS. I am just a bit wary about adding new functions to lib, because that’s not really my department.

Don’t worry, the original asserts.nix is by yours truly :)

Okay, should be ready for merge.

Unless anybody finds more problems, I’m gonna merge in a few hours.

Unless anybody finds more problems, I’m gonna merge in a few hours.

I think "empty list means "all"" is suboptimal. Disabling all formatters is a very reasonable use case. Can we maybe set the default to null and say null = all? Any other solution is also fine with me, but fixing this later will probably be a breaking change.

Not really, because we have to keep this in sync with upstream. Thus we can never guarantee that “disable all formatters” really disables them all. Thus there is no sense in making empty list mean disabling every formatter.

Plus, there is no real use-case for disabling all formatters in my opinion. In the case where somebody wants to really strip down hls (for example to just use it to generate cross-linked sourcecode as is possible in sourcegraph), we need a different interface for that anyway.

I was just the other day in the position, that I wanted to disable all formatters. (And exactly only the formatters.) Needing to copy the wrapper for that is not very reasonable. And it is the obvious semantic of the empty list. In my opinion the need of justification is on the inband coding of giving the empty list a different meaning.
I don’t see how 0 instead of 4 formatters is that much a different use case than 1 instead of 4 formatters. (Okay, there is obviously a 100% difference in the number of formatters.) Many projects don’t use a formatter or don’t want to or cannot use it via HLS.
And if you say "we can’t guarantee that we disable all formatters" then you also have to say that we can’t guarantee that we disable all but one formatter. But I don’t think this is a strong argument. Keeping the list of supported formatters up-to-date will be no problem.
I am also not a big fan of using "null" for this. We could also just set the list to all known formatters as default.

We could also just set the list to all known formatters as default.

okay, but I feel like that is even more confusing. The semantics is “remove everything that we know about that was not specified”, but if the top lists all formatters and a new one is added, that one is gonna be there as well, so “I don’t want any formatter” is not a guarantee we can give.
In Haskell I’d solve that semantic issue with an enum, since this is a Haskell thing maybe you’d be open to the two possibilities:
{ allFormatters = {} }
{ theseFormatters = [ "ormolu", "stylish-haskell" ] }
These kinds of discussions is why I try to avoid designing any kind of public API. There’s never a good general solution that isn’t either too complicated, or plain wrong, or even worse, misleading.

(Sorry, was out-of-order for health reasons.)
I feel like we are having a big misunderstanding. I mean this is all not super important, but I don’t understand your point. I don’t want to discuss this ad nauseam, but I don’t think we are at a "let’s agree to disagree" point here, I feel like there is a confusion to clear here.
First, my argument is "I don’t want any formatter" is realistically a guarantee I can give. I spend hours working on every new hls release. I read all the changelogs, new plugins very rarely build without my intervention. The probability that a new formatter slips into our release without me noticing is next to nothing. (otoh, I don’t think it would be very bad.)
Second, even if we accept the point, that our list of formatters can go stale. I don’t see at all how this affects the defaults we are discussing. Can you explain to me why "install no known formatters" is affected worse than "only install ormolu" by the "we cannot guarantee that we have listed all formatters" problem?
My point is this: When we have 4 known formatters and we offer an option to control which one to install, then there are 16 different combinations, that we can offer. I believe a) the default has to be: enable all, b) all 16 possibilities should be offered to the user. Using a simple list which is populated by default seems like the obvious solution for that and I fail to see how that is confusing.
I don’t think an enum like you are suggesting will ease usability.

My 2 cents here is that we should go with a default of
, supportedFormatters ? [ "fourmolu" "ormolu" "stylish-haskell" "floskell" ]

And have [] mean "disable all formatters".
If specifying the full list doesn't work for some reason, then I agree that null should mean "enable all formatters".
I agree that it is confusing to use [] to mean "enable all formatters".

Adjusted based on the discussion, PTAL (last commit)

Thank you for bearing with us. This excellent!


Fix image layout iOS [#312 #313]

Fixes the issue with image translation on iOS, as brought up in issues #312 and #313
This fix has worked so far on examples I've tested it with, though I'm unclear as to what was the original intention for the CGContextClipToRect(context, rect); on line 136 in RNSVGImage.m. I removed it because it's causing the image to be clipped to its starting coordinate and size (so if the image is translated or scaled it will end up being cropped). But as I'm not sure why it was there originally, this change might cause some other issue? If it was there to handle some case, please let me know and I can fix that up.

Actually found another issue with the translation, it isn't translated by the same amount relative to other content.
e.g.
<G x="100" y="50">
    <Rect x="0" y="0" width="50" height="50" fill="#fff"/>
    <Image
        x="0"
        y="0"
        width="50"
        height="50"
        href={image}
    />
</G>

The image will be on the correct y-axis but double the x-axis. I'll fix this other issue first.

Added the other changes. The align operations weren't updated to the current svg2 spec, so changed those. I also was unsure about what to do with the none meetOrSlice branch, since it's using the old equation (which is susceptible to divide by 0 errors), but I couldn't find any reference to it in the spec? So I left that unchanged.
Lastly the parent view bounds are already applied to the current context matrix, but the +getTransform:eRect:align:meetOrSlice:fromSymbol: method doesn't account for this and applies it again. So I just reverted that x-axis in the context matrix to avoid this issue.

Looks great, I've made similar fixes to android inspired by your pull request. And some more fixes to viewbox and image translation / scaling / transformation. https://github.com/react-native-community/react-native-svg/pull/406/commits/8ffa2f3373e2fd9c9227459733a28b2b4ea1ae59

Forgot to commit some of the additional needed changes, but now everything should work.
@msand Cool, I'll have a read through and see if there's anything else I can update on this one.

Great. I have a test suite in https://github.com/msand/RNSvgTextBug for comparing chrome and android, haven't started work on porting anything to ios yet. Just read my first objective-c syntax summary today and will start looking at that part soon. Meanwhile, if you're interested, you could adapt it to ios; to have more reference material.

@ScrimpyCat I've now ported almost all the changes from android to ios and we're tracking it here: https://github.com/react-native-community/react-native-svg/pull/430
https://github.com/msand/react-native-svg/tree/6.0.0
Would you like to review it? So we get it good enough for merging into master and published to npm asap.

This has been fixed in 6.0.0.
I'm closing this PR, thanks for this PR anyway.

@michaelgobbers Can you try with the latest version? Or did you resolve the issue?

This issue is still happening on iOS with version 6.3.1


WIP: 11 add tests update readme

Adding unit and integ test using volttron-testing.
The integ tests require that I enter my Github account creds in order to install the Platform Driver agent.

Closing this PR because I will resubmit it from my fork instead.


Update Start-SPOSiteContentMove.md

tiny typo

Docs Build status updates of commit b2fcdd3:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-online/Start-SPOSiteContentMove.md
:white_check_mark:Succeeded
View (sharepoint-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@tiburd Please merge this PR. Thansk

Docs Build status updates of commit b2fcdd3:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-online/Start-SPOSiteContentMove.md
:white_check_mark:Succeeded
View (sharepoint-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

close > reopen

Docs Build status updates of commit d652191:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-online/Start-SPOSiteContentMove.md
:white_check_mark:Succeeded
View (sharepoint-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Tighten permissions granted to secrets.GITHUB_TOKEN used in GitHub Workflows across the 2i2c-org

Description
The 2i2c-org GitHub org provides read & write permissions to the automatically provided GITHUB_TOKEN that can be used to read/write the content of a repo.
As discussed in https://github.com/jupyterhub/team-compass/issues/404, I think we should also tighten the permissions given to this to be read only by default across the org. We should then explicitly set each of our GitHub Actions to have this permission where we want it so.
Benefit
Since it can be used in GitHub workflows to write content to branches, update comments, make PRs etc, the suggestion is to provide specific permissions to the token on a GitHub Job level (workflows has many jobs, jobs has many steps).
Tasks to complete

[x] Agree to reduce default permissions to read only. Decision prompt here: https://github.com/2i2c-org/pilot-hubs/issues/359#issuecomment-919500130
[x] Explicitly add the required permissions where GITHUB_TOKEN is referenced in the 2i2c-org's GitHub workflows across various repos. See https://github.com/jupyterhub/team-compass/issues/404 for instructions on how to do this.
[x] Make the 2i2c-org's default permissions read only at: https://github.com/organizations/2i2c-org/settings/actions

Meta questions:

is this too big to be a task, or is it more of a deliverable?
would it made more sense for this to be posted in the meta git repository?

Let's add this to the deliverables board since it's important and requires a bit of thinking. I imagine that a clear "do X then Y" task will emerge from that discussion, which we can use to close out the deliverable. Does that makes sense?

@consideRatio to your other meta question, perhaps this issue can tackle both the "what do we do in this repository" and the "what is our team policy moving forward" question at the same time. So another task associated with this deliverable would be a change to the team compass to define the policy

Let's add this to the deliverables board [...]

Yes!

[...], perhaps this issue can tackle both the "what do we do in this repository" and the "what is our team policy moving forward" question at the same time.

Do you mean that we could define a set of "what we do in repository X" policies in the team-compass, and track that as tasks part of this deliverable?

@consideRatio I didn't imagine it needed to be repository-specific, just general team guidelines for this. But ya, in the team compass somewhere

@consideRatio I cleaned up the top comment a little bit, but I'm not quite sure that I understand the major implications here. It seems like the main problem is that an action would be compromised and do bad stuff, so we want to remove the "write" ability. That makes sense, but if we remove the ability by default but then manually add it to everything as well, doesn't this still retain the same vulnerability?

Many workflow jobs will only require the permission to clone the repo (read), not to push back an update, create PRs, modify a wiki, etc. The idea is to only expose the permissions when needed.
For example, something updating the gh-pages branch when the docs has changed would need write "contents: write" permissions, by but not a pre-commit test job

Ahh I see, so you mean only add the write permissions when needed, not add it to everything. That makes sense

Ping @2i2c-org/tech-team, let's make our workflow files declare permissions required by our GITHUB_TOKEN's so that we can tighten down the permissions granted by default.
As an example, see https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/9e63e3df4a65084410603098100b53ee19f6d4e6/.github/workflows/vuln-scan.yaml#L21-L25 where I both define the permissions needed for a Job within a workflow, and also add a comment as to why it is needed so it can be revised later with ease if something changes in the Job over time.
jobs:
  trivy_image_scan:
    if: github.repository == 'jupyterhub/zero-to-jupyterhub-k8s'
    runs-on: ubuntu-20.04
    # Write permissions granted for the peter-evans/create-pull-request action
    # to push to a branch and create/update a PR
    permissions:
      contents: write
      pull-requests: write

    # ...

OK let's just explicitly see if any team members object and we can move forward with this if not:
@2i2c-org/tech-team - Does anybody object to us implementing this issue so that we must explicitly specify the permissions given to actions? I'll leave this open for 48 hours to see if anybody objects.
I don't object, this sounds like a reasonable decision to me.

OK - I see many 👍 and no objections so let's go forward with this! I'll update the top comment accordingly and we can tackle it in a future sprint.

I went through all workflows, and it seems like they all define the permissions of relevance explicitly already. So, I tightened the permissions to read by default.


Abide Pattern HTML5 issue

As in docs http://foundation.zurb.com/docs/components/abide.html , this could be a problem:
You can use the following shortcut for named patterns that aren't valid input types:
<input type="text" pattern="integer">

if i use
<input type="text" pattern="email" required>

without abide validation the html5 validator returns invalid only the word "email" turns to valid
what about users turned of javascript?
maybe this is a goog solution
var pattern = el.getAttribute('pattern') || el.getAttribute('data-pattern') || '';

in foundation.abide.js
so we can use pattern for real patterns regex and data-pattern for abide patterns
Greet J

This is an interesting idea, but to maintain current backwards compatibility we're going to hold off until Foundation 6 for this. I added it to our feedback thread and Trello board.


added requirements.txt

Had errors running the test cases
Following the repo from Cuda Mode -  ring attention channel

thank you for the pr. I'm not sure if we need such a high flash_attn version (I had successfully run on 2.4.2).

sure, understood. We can ignore this PR


Fix broken indy-sdk CD on Jenkins

The latest master builds cannot be completed due to the problem with building packages for iOS.
Problem reason: Apple reduced support for 32-bit platforms, so Rust reduced it too, it can be fixed by removing 32-bit builds from Indy SDK CD. Quickest and most straightforward way to solve this is to remove packages for the following architectures:

armv7-apple-ios
armv7s-apple-ios
i386-apple-ios

https://blog.rust-lang.org/2020/01/03/reducing-support-for-32-bit-apple-targets.html

PR: https://github.com/hyperledger/indy-sdk/pull/2276

PR: #2280
Work in progress


2048 Alphabet Edition

This is an alphabet edition of the original game 2048 by Gabrielle Cirulli. Here you need to join common alphabets to get a higher alphabet. If you reach, "k", you win. I am personally a huge fan of 2048 so I created this modified version of it for sprig. I hope you like it !

There are two games like this, and I feel like it would be worthy of submission if you added some other feature, maybe make it longer/harder, like maybe making "L" the last letter.

Will do. I will make "L" the last letter.

I made "L" the last letter. I don't think increasing more will be good idea because it is already really hard to reach that level. I can't even reach "F" haha.

I can't get far either. Some people are really good. If you used code from this game please add credit to linkai101.

hmm, I did modify his/her code. I have given the credits.

hmm, I did modify his/her code. I have given the credits.

credits must be at the top of the code

I have done the necessary changes. Thank you.

Thanks a lot !!


Generic model items

APIs for adding tags, and removing tags to & from various items. Also fetching items based on tag types, tags and items

Multiple reviews were approved 2 commits ago, and the changes in the two latest commits seems to enhance our validation. Merging this.


Pol 414

Description
Adds support for Google on superseded_instances.pt and Google/AzureMCA on cheaper_regions.pt
Issues Resolved
https://jira.flexera.com/browse/POL-414
Contribution Check List

[ ] All tests pass.
[ ] New functionality includes testing.
[ ] New functionality has been documented in the README if applicable
[ ] New functionality has been documented in CHANGELOG.MD

          2 Errors

:no_entry_sign:
Please add a CHANGELOG.md file

:no_entry_sign:
Please add labels to this Pull Request

          1 Warning

:warning:
Should this include readme changes

  Generated by :no_entry_sign: Danger


feat: case : t => tac to run tactic with first goal unifying with t

This also overrides show t to do what its docstring claims it does, which is to find the first goal that unifies with t. Closes #3305.

@digama0 I think having this case : patt => tac tactic would be useful, but I'm not so sure about overriding show, even if it makes it do what it claims to do. Rather than show, it seems like it would be better to have the complimentary case' : patt => tac that doesn't require that the goal be solved since that would be more structured. Do you have any thoughts? Should this be a std4 PR?

I think that's a good plan. For sure, the goal switching behavior of show was used approximately never, and I would not mind having a different name for that tactic.
One other thing to consider for these case tactics is to support _ / ?_ in place of the tactic block, to turn them into a goal selecting tactic instead of a scoping tactic. Compare with cases with / induction with / match with which all support using ?_ instead of a tactic block and take this as a suggestion to post the goals after the tactic instead of in the block.

@digama0 There's now an expanded version of the cases tactic at https://github.com/leanprover/std4/pull/160
I'm not sure I follow what you're saying about _/?_ in place of a tactic block. I added a no-tactic-block version for bringing goals up to being the first goal(s), but if this isn't doing what you're suggesting then let's move this discussion over to that PR.

Shall we close this in favour of https://github.com/leanprover/std4/pull/160?

@semorrison There was still one line in this PR I wanted to keep, so I've cut everything else out.

bors merge


Browser back/forward button broken in 1.x

I updated from 0.0.27 yesterday and ever since I did, clicking back/forward on the browser is broken.
When I click back first time, the metadata gets updated to the previous page's metadata (title, description, etc.) but the browser is still showing the page before I clicked back. I have to click back again for the browser to render the previous page. The further back I go, the more times I have to click. For example, the first time I go back, I have to click twice. Then I have to click 3 times. Then 4 times, etc.
Clicking forward is basically broken. When I click back the first time, the forward button enables, but when I click back again, it's disabled. If I click on forward when it's enabled, it does nothing except disable.
It looks like something is broken with the routing.
I'll try to make a simple repository example.
Is anyone else experiencing issues?

I rolled back to 0.0.27 and got the same behavior. It looks like this issue is not related to this library.


Integration Test - Release - 2018/05/29 09:31:03

Auto create for integration test. AnotherAuthorUpdatedArticleFlow

@PRMergerTest3 : Thanks for your contribution! The author, @ v-caxian, has been notified to review your proposed change.


node-kstat doesn't currently support node 0.10.x

Looks like it needs to make use of the NODE_MODULE macro as per http://nodejs.org/docs/latest/api/addons.html

This has been resolved by #11, and node-kstat now works on any version of node (0.8 or later).


add GA4

Pull Request Template
⚠ Before Submitting a PR, read the Contributing Docs in full!
Summary
Please provide a brief summary of your changes and the related issue. Include any motivation and context that is relevant to your changes. If there are any dependencies necessary for your changes, please list them here.
Change Type
Please delete any irrelevant options.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Documentation update

Testing
Please describe your test process and include instructions so that we can reproduce your test. If there are any important variables for your testing configuration, list them here.
Test Configuration:
Checklist

[ ] My code adheres to this project's style guidelines
[ ] I have performed a self-review of my own code
[ ] I have commented in any complex areas of my code
[ ] I have made pertinent documentation changes
[ ] My changes do not introduce new warnings
[ ] I have written tests demonstrating that my changes are effective or that my feature works
[ ] Local unit tests pass with my changes
[ ] Any changes dependent on mine have been merged and published in downstream modules.

LGTM


emacs.pkgs.jinx: build .so file

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

jinx is added to nixpkgs in #224382.  CI should work once #224382 is merged.

FYI, jinx is in both elpaPackages and melpaPackages, and by default emacs.pkgs.jinx is from melpaPackages.

I took all your feedback into account and left one question.
I can't make nixpkgs-review to check my PR as I'm getting unrelated errors:
error: attribute 'mysql-client' missing

       at /home/cassou/.cache/nixpkgs-review/pr-224238-3/nixpkgs/pkgs/development/lisp-modules/ql.nix:59:22:

           58|     cl-mysql = super.cl-mysql.overrideLispAttrs (o: {
           59|       nativeLibs = [ pkgs.mysql-client ];
             |                      ^
           60|     });

       … while evaluating the attribute 'nativeLibs' of the derivation 'cl-mysql-20200610-git'

       at /home/cassou/.cache/nixpkgs-review/pr-224238-3/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:302:7:

          301|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
          302|       name =
             |       ^
          303|         let

       … while querying the derivation named 'cl-mysql-20200610-git'
https://github.com/NixOS/nixpkgs/pull/224238 failed to build

FYI, jinx is in both elpaPackages and melpaPackages, and by default emacs.pkgs.jinx is from melpaPackages.

I added a similar recipe for melpa.

Is it ok now?

LGTM.
I also test it in Emacs and it works well.

how did you so? because in mine there is no jinx-mod.so
ls /nix/store/a540b8fnvz1dvxri6nx9cmjhrbzzm5nw-emacs-jinx-20230406.1603/share/emacs/site-lisp/elpa/jinx-20230406.1603
emacs-module.h	jinx-autoloads.el  jinx.el  jinx.elc  jinx-mod.c  jinx-pkg.el

ls /nix/store/acvhq5mf297iwap8wiknbw9r2bj2dihg-emacs-packages-deps/share/emacs/site-lisp/elpa/jinx-20230406.1603
emacs-module.h	jinx-autoloads.el  jinx.el  jinx.elc  jinx-mod.c  jinx-pkg.el

so when I try to jinx-mode on Emacs
cc -I. -O2 -Wall -Wextra -fPIC -shared -o jinx-mod.so jinx-mod.c -I/usr/include/enchant-2 -lenchant-2
jinx-mod.c:19:10: fatal error: 'enchant.h' file not found
#include <enchant.h>
         ^~~~~~~~~~~
1 error generated.
Jinx: Compilation of jinx-mod.so failed

@yuuyins

cc -I. -O2 -Wall -Wextra -fPIC -shared -o jinx-mod.so jinx-mod.c -I/usr/include/enchant-2 -lenchant-2

I have no idea where you get this, not from this PR apparently.

I have no idea where you get this, not from this PR apparently.

This comes from the package itself: if it doesn't detect the .so file, it compiles it.
@yuuyins: can you please open an issue and give details about the version of nixpkgs you are using as well as how you installed Emacs and jinx? This will help us help you.

@jian-lin @DamienCassou Sorry, I thought I was using a recent enough commit revision, but I was wrong. Thanks for the support!

I can't get it to install at all.  I'm using home manager (on Arch not NixOS) to install emacs-overlay's emacsGit (with some slight modifications in attributes/configure flags).  If I add emacs.pkgs.jinx to the packages or ((emacsPackagesFor emacsNoctuid).emacsWithPackages (epkgs: [ epkgs.jinx ])) I get an error:
error:
       … while calling the 'derivationStrict' builtin

         at //builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'home-manager-generation'
         whose name attribute is located at /nix/store/ycwxxfi2yv4nd8y66bxdc8pww9mhjwgj-source/pkgs/stdenv/generic/make-derivation.nix:302:7

       … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'

         at /nix/store/ycwxxfi2yv4nd8y66bxdc8pww9mhjwgj-source/pkgs/build-support/trivial-builders.nix:87:14:

           86|       enableParallelBuilding = true;
           87|       inherit buildCommand name;
             |              ^
           88|       passAsFile = [ "buildCommand" ]

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'jinx' missing

       at /nix/store/ycwxxfi2yv4nd8y66bxdc8pww9mhjwgj-source/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix:109:14:

          108|
          109|       jinx = super.jinx.overrideAttrs (old: let
             |              ^
          110|         libExt = pkgs.stdenv.targetPlatform.extensions.sharedLibrary;
       Did you mean one of lin or tiny?

Any idea what I am doing wrong?

Please file an issue with a minimal reproducible example if you want some help.
I guess you are using an old nixpkgs without jinx in it.

I guess you are using an old nixpkgs without jinx in it.

That gives a different error.  Nixpkgs was up-to-date, but it looks like I had to update emacs-overlay too for whatever reason though.


Class redirectors don't work

Class redirectors currently depend on the concrete type UClass to be used in order for redirectors to work (see FCoreRedirects:GetFlagsForTypeName). As USharp uses USharpClass, none of the C# defined classes can use redirectors. Structs are also impacted as USharp uses a custom type USharpStruct.
Redirectors are pretty important for creating template projects in the same format that C++ template projects are made (redirectors are used to rename classes based on the project name). They are also generally important for renaming types.
The only real way of fixing this is engine source modifications.

Engine PR https://github.com/EpicGames/UnrealEngine/pull/5929.
For now I will create template projects without using class redirectors. This will mean the template projects will be slightly different from the C++ counterparts but I think it would be best to create the templates now rather than wait for the PR to be processed.


Mention call depth limit in EOFCREATE spec

As agreed on EOF implementers call, call depth check should be part of creation opcodes and EXT*CALL (the latter to be mentioned in EIP-7069)

For reference: in EIP-7069 it is included in ethereum/EIPs#8287, but we need to tweak EIP-7620 to match with the recent clarifications. I'll handle this once you've merged here

I updated EIP-7620 in https://github.com/ethereum/EIPs/pull/8323


plymouth: fix breeze-plymouth (and other themes)

Motivation for this change
Plymouth puts commands into the initrd, which has strict restrictions on output references. So we need to be careful to get rid of those. One common case (which appears in breeze-plymouth) is to set ImageDir or ScriptFile to be the store path of the package (it needs to be absolute). This leads to a reference on that store path, which is banned.
The most robust solution to this that I could come up with was to just look through all the files in the included themes and replace anything that looked like a reference to plymouth or the theme's share/plymouth/themes directory to the one in $out. This works pretty well for the things I've tried.
With this patch the breeze theme works. breeze-text still doesn't work - it uses breeze-text.so, which has some rpath references that would need to be patched. As it is, they get nuked by nukeReferences and so just fail to work. I'm not really sure of a good way to do this patching robustly. In general it seems tough to get plymouth things with arbitrary dependencies working nicely in the initrd with reference restrictions.
Given that the theme now works, I set it as the default if you're using plasma5, similarly to how it sets a theme for sddm.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Thank you!


Remove NFS instructions for TM

Related to https://github.com/wso2/carbon-apimgt/pull/9340
The updated image in the distributed deployment
Previous image

New image

please check in active-active deployment as well

please check in active-active deployment as well

Nothing to be changed related to the execution plans

@ChamodDamitha , please resolve the merge conflict.


Project : Using DCGAN To Generate Celebs Faces.

I'd Like to add Generating Face Project.
I would be using This Data set to generate faces of celebrities using DCGAN.( will be following the total pipeline)
Describe the solution you'd like
In this project, I'll define and train a DCGAN on a dataset of faces. the goal is to get a generator network to generate new images of faces that look as realistic as possible!
1.I'll use, CelebFaces Attributes Dataset (CelebA) to train the adversarial networks.
2.The project will be broken down into a series of tasks from loading in data to defining and training adversarial networks.
3.At the end of the notebook, We'll be able to visualize the results of the trained Generator to see how it performs.
4.I'll add Model pkl File and Images as well.
I'd like to work on this issue as part of GSSOC-21.
Thanks

@NEERAJAP2001, go ahead.


Add Deco M9 pro to router list (with a disclaimer)

I have just tested my Deco M9 pro and the integration can find them.
All the sensors work, example:
CPU used				8,0%
Memory used			37,0%
Total clients			26
Total guest wifi clients	0
Total IoT clients		Unavailable
Total main wifi clients	22
Total wired clients		4
The switches however do not work, except for [Reboot]. The switches in the integration show an on/off button. Also they show the correct state, but when pressed the following error is displayed:
Failed to call service switch/turn_off. HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /cgi-bin/luci/;stok=/login?form=login (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f090646cfe0>: Failed to establish a new connection: [Errno 113] Host is unreachable'))
That can be easily explained because the Deco M9 pro local website doesn't have the option to turn WIFI on/off.
So no action is needed for troubleshooting.
I only ask to add Deco M9 pro to router list (with above disclaimer).

⭐ Starred !
I have two types in my house:
Model		Firmware Version
M9Plus(2.2)	1.6.3 Build 20231225 Rel. 60770
M4R(2.0)		1.6.1 Build 20231227 Rel. 80438

@Verguldebarman Thank you!
Could you test this integration with M4R(2.0) to turn on/off wifi?

M4R(2.0) turn on/off wifi works. No errors in HA. I cannot test if the WiFi is actually turned on/off on the device as I don't know how to test or check it. Any suggestions?

@Verguldebarman To check if the WiFi is actually turned on/off you may use Deco App on your phone. After turning off the wifi via integration you may check the wifi status in the app.


how can i copy the text.

can i copy the tracked text?
i use for 3.3.5 wlk.
thanks.

What is 3.3.5 wlk?
Copying text in WoW is not straightforward and this mod does not support it now.
This is intended to look at events' names and spell ids and use them in other addons.
What's exactly that you want to copy?

3.3.5 == Wrath of the Lich King.
The dbm is not work. some words are different.
so i want to copy the message.

I cannot test your case since I am on retail version 9.0.2
As I said, copying text in WoW UI requires creating a new text frame and then adding the text to that so that user can select and use Ctrl+C.
This is something I do not have time to do at the moment.


newsflash: 2.1.2 -> 2.2.2

Description of changes

update
https://gitlab.com/news-flash/news_flash_gtk/-/blob/master/data/com.gitlab.newsflash.appdata.xml.in.in
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 202032 run on x86_64-linux 1

1 package built:

newsflash


Revert deletion of divide by zero error

I asked #1997 issue and got the answer which explained that divide-by-zero check was deleted by 25829b0395164533782d608399096803321225a7. But I cannot agree with the commit message:

I've never heard of this catching any real bug. It seems like if
you explicitly typed "1 / 0", you meant to do that.

As far as I know, closure compiler can handle some static operations, for instance, closure compiler produces JSC_INDEX_OUT_OF_BOUNDS_ERROR for next source code:
let x = 0;
let y = 4;
let array = [1, 2, 3];
alert(array[x + y]);

Static divide-by-zero error occurs in the same manner. No one would write such a code 1 / 0 because people would use NaN for not a number and Infinity for infinite number.
Instead, I expect that closure compiler checks for me such code:
let x = 1;
...
let y = 1 / (x >> 1); // maybe it would be corrected to (x << 1) or ((x >> 1) + 1)
...

And, in fact, I've done such try and error before which put me to shame.
I think this feature is totally valid and useful, so please revert the commit 25829b0395164533782d608399096803321225a7.

It's true that every once in a while this may find an issue, but that should happen very rarely, which is why the code was deleted. To avoid bloating our code base, we have to pick and choose what we warn about.


ResourceManagerWithCultureStringLocalizer class and WithCulture interface member marked Obsolete and will be removed

ResourceManagerWithCultureStringLocalizer class and WithCulture interface member marked Obsolete and will be removed
The ResourceManagerWithCultureStringLocalizer class and WithCulture interface member are often sources of confusion for users of Localization, especially if they want to create their own IStringLocalizer implementation. These items give the user the impression that we expect an IStringLocalizer instance to be "per-language, per-resource", when actually they should only be "per-resource", with the language searched for determined by the CultureInfo.CurrentUICulture at execution time. To remove this source of confusion and to avoid APIs which we don't want users to use we will be obsoleting these in 3.0.0-preview3, and they will be removed in a future release (4.0 or above).
For context, see here.
See aspnet/AspNetCore#7756 for discussion.
Version introduced
3.0
Old behavior
Methods were not Obsolete.
New behavior
Methods are marked Obsolete.
Reason for change
API represented a use case which is not recommended, and leads to confusion about the design of Localization.
Recommended action
If you are using this we recommend that you use ResourceManagerStringLocalizer instead, and let the culture be set by the CurrentCulture. If that is not an option You may create a copy of ResourceManagerWithCultureStringLocalizer in your own repo and use that.
Category

ASP.NET Core

Affected APIs

ResourceManagerWithCultureStringLocalizer
ResourceManagerStringLocalizer.WithCulture

Issue metadata

Issue type: breaking-change

After upgrading to .net core 3.0 IStringLocalizer.WithCulture no longer works at all. I always get english strings returned now.
I've tried using CultureInfo.CurrentUICulture as suggested, but this doesn't work either.

Oh, it's because SharedResource stuff is broken since 3.0 https://github.com/dotnet/sdk/issues/4033


How to merge a part of a layer and other layers

Can keras realize the following model?
Thanks!

How about using the merge layer with mode='concat'?

I tried this before using the following code. But it did not work. There were some errors.
model = Sequential()
model.add(Convolution2D(32, 3, 3, border_mode='same',
                        input_shape=X_train.shape[1:]))
model.add(Activation('relu'))
model.add(Convolution2D(32, 3, 3))
model.add(Activation('relu'))
model.add(MaxPooling2D(pool_size=(2, 2)))
model.layers[3].output=model.layers[0].input

conv1=model.layers[3].output
pool1=model.layers[5].output
crop_11=conv1[:, :, 15-7:15+8]

merged_vector = merge([crop_11, pool1], mode='concat', concat_axis=1)

or
input_img = Input(shape=X_train.shape[1:])
conv_11 = Convolution2D(32, 3, 3, border_mode='same')(input_img)
relu_11 = Activation('relu')(conv_11)
conv_12 = Convolution2D(32, 3, 3)(relu_11)
relu_12 = Activation('relu')(conv_12)
pool_11 = MaxPooling2D(pool_size=(2, 2))(relu_12)

crop_11=relu_12[:, :, 15-7:15+8]
merged_vector = merge([crop_11, pool_11], mode='concat', concat_axis=1)

Hi @anewlearner,
The first solution doesn't work because the model is not Sequential, you should use the functional API instead. The second one looks fine, only the crop part I am not sure about. What is the error you are getting? Do you still get the same error if you use only the merge and not the crop?

Hello @dieuwkehupkes ,
input_img = Input(shape= (3, 32, 32))
conv_1 = Convolution2D(32, 3, 3, border_mode='same')(input_img) # ouput: batchsize*32*32*32
relu_1 = Activation('relu')(conv_1) # ouput: batchsize*32*32*32
pool_1 = MaxPooling2D(pool_size=(2, 2))(relu_1) # ouput: batchsize*32*16*16

I tried
crop_1=relu_1[:, :, 0: 16, 0: 16] # make the output of this layer equal to layer pool_1,  ouput: batchsize*32*16*16
merge1 = merge([crop_1, pool_1], mode='concat', concat_axis=1)
conv_2 = Convolution2D(32, 3, 3, border_mode='same')(merge1)

then I got the following error message

Exception: You tried to call layer "convolution2d_28". This layer has no information about its expected input shape, and thus cannot be built. You can build it manually via: layer.build(batch_input_shape)

I don't know how to

build it manually via: 'layer.build(batch_input_shape)`

I also tried
merge1 = merge([relu_1, pool_1], mode='concat', concat_axis=1)
conv_2 = Convolution2D(32, 3, 3, border_mode='same')(merge1)

I got

Exception: "concat" mode can only merge layers with matching output shapes except for the concat axis. Layer shapes: [(None, 32, 32, 32), (None, 32, 16, 16)]

But when I tried
crop_2=relu_1[:, :, 0: 5, 0: 5] batchsize*32*5*5
merge2 = merge([crop_2, pool_1], mode='concat', concat_axis=1)

There were no error message in the merge layer, but in the conv_2 layer.
I can't merge relu_1 and pool_1, because the shape is different. But I can merge crop_2 and pool_1, the shape is also different.

I still suspect the problem is with the cropping. Could you try cropping it not with the indices but with a fixed weight matrix setting some values to 0? I am fairly sure that could work. If you can't figure out how let me know.
Good luck!

@anewlearner  Do you solve it ? , you can try the Reshape

@alyato Can this also be used to reduce the number of values? I thought Reshape was just for changing the shape of a layer (e.g. go from 54 to 52*2). Otherwise, where do you say which elements of the original layer you want to keep?

@dieuwkehupkes
The fixed  weight matrix can be set to 0. But If I do this, the shape of the this crop layer( some weights are set to 0) is different from that of the pool layer, the shape of which is reduced. So merge can not be used.

@dieuwkehupkes yeah ,i think so. I see the Reshape is used to the Lstm. When i merge two different layer,like this situation.
c1: (none,100,40,40)
c2:(none,100,20,20)
i change the shape of C1 to Reshape(none,100*40*40/20*20,20,20),then merge them


Versus!

Hello,
The acorn variation of this much needed Gulp task is the "correct" one since it doesn't throw false positives, right?
[Note: I'm comparing it to gulp-ddescribe-iit.]

yes. caveat is that it contains more dependencies, and the false positives it corrects may be unlikely

Aha, so you kept both active because you don't trust the deps introduced by acorn enough.
OK, thank you.


Split impl.dart into client and server libraries to be able to include them selectively

From @izaera on January 16, 2014 7:17
Copied from original issue: izaera/cipher#42

From @izaera on January 16, 2014 7:19
duplicate of #41


#error in step 6

No previous checkpoints of None exist
Exiting..
This problem is showing up in step 6. I have 4 files created in the checkpoint folder named model_file.meta, model_file.index, model_file.data-00000-of-00001 and checkpoint after running rnn_train.py. But when executing rnn_eval, why cant it find the model file?

i have the same problem, do you find any solution ?

Any solution, please?


Fix format

[Edit by @rick-anderson]
added:
Note: Linux has a case-sensitive file system. Setting ASPNETCORE_ENVIRONMENT to "Production" results in searching for the configuration file appsettings.Production.json, not appsettings.production.json.

That shouldn't be the case. What version are you observing this in? Are you using CreateDefaultBuilder()?
cc @Tratcher

@shirhatti to be clear, look ad the diff, I simply added two spaces to separate the notes, my comment above seems to be an autogenerated message, I wasn't even aware of it.


Deserialize decimal inputs on BlockNumber

This is a bit self-serving, but still adds value overall in being quite flexible in what it will accept.
Generally the polkadot-js API will serialize bitLength <= 32 into decimal (a number of palettes will only use decimal values for these, not allowing hex), so this allows the eth_* RPCs to play along.
For both BlockNumber and Index we add a u64 visitor, which handles decimal values. Additionally BlockNumber also aligns with Index in accepting "1234" decimal format string values.

Is this error related to this PR?

This PR serailizes the blockNumber inputs as received via jsonrpc, i.e. is allows the API to pass the blockNumber value as a decimal (which currently the node doesn't accept, hence none of the RPCs with like in blockNumber, currently return any values to the polkadot-js API)