coredns: update notes in administer-cluster/coredns.md

CoreDNS is installed by default in 1.11.
Add notes on how to install kube-dns instead.
Updates kubernetes/kubeadm#843
@kubernetes/sig-cluster-lifecycle-pr-reviews

@Bradamant3

I see that this is a WIP, but if you could make sure to break that list of file changes into a couple of smaller PRs, they'll be easier to review. Thank you!

in that case this one is no longer WIP.
we should probably wait on approval from both SIG-Clusterlifecycle and SIG-Docs on these.

Thanks for the smaller PR!

updated. :+1:

Thanks for the smaller PR!

this will complicate things for SIG-C.L. but we will try to handle it with the task list here:
https://github.com/kubernetes/kubeadm/issues/843

/approve for docs review

/assign

@johnbelamaric CoreDNS will be installed by default during the kubeadm upgrade regardless of whether the previous DNS is kube-dns or CoreDNS.
(Unless someone sets the feature-gate flag for CoreDNS to false during upgrade.)

Ok, and if they are running CoreDNS and they upgrade, will it overwrite their Corefile and upgrade their manifest to the new image? If I recall correctly, this is the normal behavior with kube-dns today. If so, then we still need to document it clearly (but get rid of that GA note).

Any upgrade from CoreDNS to CoreDNS retains the previous Corefile set by the user.
The image is updated to the latest available to the specific release of K8s.

i will take @rajansandeep 's word for it and update the note about overwriting the user file in case of CoreDNS->CoreDNS upgrades.

@rajansandeep can you point me towards the modification in the source code that does this:

Any upgrade from CoreDNS to CoreDNS retains the previous Corefile set by the user.
The image is updated to the latest available to the specific release of K8s.

i cannot find it. i don't think we retain, but rather still overwrite the Corefile.
i was also told this:
https://github.com/kubernetes/kubernetes/pull/63509#issuecomment-391447865
when asking if the CoreDNS->CoreDNS part needs changes.
if i'm correct, i suggest the following text change:
This process will be modified for the GA release of this feature, such that an existing
Corefile will not be overwritten.

This process will be modified after GA release of this feature, such that an existing
Corefile will not be overwritten.

for -> after.

@neolit123
This PR https://github.com/kubernetes/kubernetes/pull/63400 ensures that the Corefile will be retained after upgrade.

@rajansandeep

This PR kubernetes/kubernetes#63400 ensures that the Corefile will be retained after upgrade.

...and i even reviewed it and forgot...wow.
ok, updating the notes.

@Bradamant3 @johnbelamaric
updated!

updated.

I rebased this and it looks fine from a docs POV, but looks like there is some feedback that needs to be addressed and we need an LGTM from the SIG.
/approve

and we need an LGTM from the SIG.

the SIG folks haven't been active at website much, giving their +1...
i will ping them again tomorrow.

/lgtm

Oh, I see you wanted @kubernetes/sig-cluster-lifecycle-pr-reviews approval. Sorry about that! Please let me know if any updates are needed.


Find item in collection by tag

Hi,
I would like to get collection items by tag(s).
Here's what I've tried, but this isn't working because the tags are stored in an array.
What would be the best way to achieve this?
$item = collection('collection')->findOne(['tags'=>'tagname']);

Have you tried something like the following?  Not sure if this would work with the findOne method though.
$items = collection("collection")->find(function($item){
      return ( in_array( 'tagname', 'tags') );
    })->toArray();

Thanks, got it working in my route now. Thanks!
    $items = collection("collection")->find(function( $slug, $item ){
      return ( in_array( $slug, $item['tags']) );
    })->toArray();


Extremely SLOW transactions creation

@vrde @sbellem
Hi! I have a problem here. The documentation says it's possible to perform 1 000 000 transactions per second.
However, this primitive code provides 130 trs per sec only :(
transactions = []
for i in range(1000000):
    tx = db.create_transaction(db.me, testuser1_pub, None, 'CREATE', payload=None)
    tx = db.sign_transaction(tx, db.me_private)
    transactions.append(db.validate_transaction(tx))
block = db.create_block(transactions)
block = db.validate_block(block)
db.write_block(block)

What am I doing wrong?
Thanks!

Hi @cyberthrone3
On the whitepaper we showed that with datastore that we chose to work with, rethinkdb, it was possible to achieve 1 million writes per second in a 32 node cluster (1000 blocks of 1000 transactions per second).
The bigchaindb layer adds a lot of overhead, specifically verifying signatures is a cpu intensive task.
We are currently finishing the refactor of our multiprocessing code and we will be releasing benchmarks showing around 100K tx/s in a 32 node cluster with 32 cores per node. The benchmark tests will come with instructions to reproduce the results https://github.com/bigchaindb/bigchaindb/issues/246
Regarding your code you are trying to create a huge 1 million transactions block, validating it in a single core and writing the block.
A better way to test the speed would be first start bigchaindb in a console
$ bigchaindb start

And generate transactions
for i in range(1000000):
    tx = db.create_transaction(db.me, testuser1_pub, None, 'CREATE', payload=None)
    tx = db.sign_transaction(tx, db.me_private)
    db.write_transaction(tx)

You can get even better performance if you use multiple cores to generate and write transactions, and the value of tx/s should increase linearly with each node you add to the cluster.
For a more in-depth look at how bigchaindb has evolved since the whitepaper you can check our blog https://medium.com/the-bigchaindb-blog/bigchaindb-where-it-came-from-where-were-at-where-we-re-headed-5004a319e35f#.b0enqp9cj

@r-marques Thank you for the answer!
Actually, I planned to store data in huge blocks containing 50 000 000 transactions. As I can understand, creation of this kind of blocks depends on my CPU only and not on the amount of nodes.
Am I right?

RethinkDB's documentation says, "While there is no hard limit on the size of a single document, there is a recommended limit of 16MB for memory performance reasons." A BigchainDB block is stored as a RethinkDB document, so you probably can't put 50 million transactions in a block.
The normal operating mode of BigchainDB is that clients send transactions to the cluster, and those transactions get bundled into blocks, maxxing out at 1000 transactions per block. That's not something clients have control over.
Can you explain why you want to stuff so many transactions in one block? I'm having a hard time imaging a reason.

@ttmc
Thank you for the answer! Now I think it's better to create 50 000 blocks with 1000 transactions.
But the problem is that these blocks will be created in a few days because my CPU it too way slow :(
That's why I think it's not an option to use Bigchaindb for my purposes.
Thanks everybody!
"I'm having a hard time imaging a reason." - for example, for storage quantum states of a certain space.


Cleanup and fixes

I didn't clean up everything, but Palace kept working when I dropped in new builds on machines it previously worked on. There are todos marking things that I wouldn't expect to have worked at all, or questions I have, etc. but this should make it easier to maintain and also easier to port to non-windows platforms (lot of things weren't conditionally-compiling)
Also adds two optional, manual defines at the top of the main source file - turn those on, and it will dump out its log messages (and the stdout and stderr of render manager) to a log file.

Looks OK to me, but I'll let @JeroMiya comment on the p/invoke convention

Going to merge as this clears a path for some scene-switching fixes, and make a note to review p/invoke convention.


Not really a issue, but anyway to make music change based on game selected in playnite.

I want to make the music change based on game selected in playnite in fullscreen mode, not really sure if this is possible anyone know?

Also, is there any way to randomize music?

I want to make the music change based on game selected in playnite in fullscreen mode
#63
I have a version of this working with a custom theme I have, but I'm not satisfied with the hacky solution currently.
Once I have a preview of 6.0, I may get some feedback on a more proper implementation

is there any way to randomize music?
Should be an option the plugin settings some where; it shuffles per game.
If you want to shuffle for ALL game music across your library, that isn't currently supported.


Where is the code implementation for the search algorithms?

In the study config file, there are multiple search algorithms like:
ALGORITHM_UNSPECIFIED = study_pb2.StudySpec.Algorithm.ALGORITHM_UNSPECIFIED
GAUSSIAN_PROCESS_BANDIT = study_pb2.StudySpec.Algorithm.GAUSSIAN_PROCESS_BANDIT
GRID_SEARCH = study_pb2.StudySpec.Algorithm.GRID_SEARCH
RANDOM_SEARCH = study_pb2.StudySpec.Algorithm.RANDOM_SEARCH
NSGA2 = study_pb2.StudySpec.Algorithm.NSGA2
EMUKIT_GP_EI = study_pb2.StudySpec.Algorithm.EMUKIT_GP_EI
wondering where is the implementation of each algorithm? are they currently not open-sourced?

Hi Liu,
This repository is still work in progress (hence the reason we did not make public announcements about it yet).
We will open source algorithm implementations in the coming months, so stay tuned!
One of the advantages of Vizier is that it's possible to plug-in existing algorithms into it (e.g. https://emukit.github.io/), and use various open-source implementations through a unified client API.
We are also open sourcing our developer APIs, so users will be able to contribute algorithm implementations to Vizier by using our building blocks.
Best,
Sagi

To clarify: you can find implementations of random search, NSGA2 and Emukit as Vizier policies, if you follow the code in vizier_server.py.
Check the policy_creator() method, and you can follow the algorithm implementations from there.
The code is under vizier/_src/algorithms/ though this location may change in the future (it's under a private _src directory).
Best,
Sagi

Hi @grantlj, we're happy to announce that all of the algorithm enums are now available in version 0.1.0.


Print error if notification returns a value (#263)

Always nice to have greater transparency into error conditions, thanks!


Obtaining Ledger account addresses on incompatible networks is not allowed

Describe the task
Obtaining Ledger account addresses on incompatible networks is not allowed

Version test:
Extension: http://<IP_ADDRESS>:8900/s/QxqsxeAdYaqBxSk
Webapp: https://798c5fdf.subwallet-webapp.pages.dev/
Validation passed.


Update jQuery version to 3.5.1 in vendor

Even if the jQuery version got updated to 3.5.1 in the package.json, the version inside the vendor folder is still 3.4.1.
Please update it.
Here is the path to the said jquery file.
ui.apps/src/main/content/jcr_root/apps/asset-share-commons/clientlibs/vendor/jquery/js/jquery-3.4.1.min.js

@zhgeric  can you make a PR with this change please? Thanks


[Windows] Cleanup camera on app suspension

This prevents a crash on resume after suspending when preview was active.

OK, WinJS.Application.onerror is not needed, although it always makes sense to include it into the application code.


Metric plugin

Pull Request Description
What issue does this change request address? (Use "#" before the issue to link it, i.e., #42.)
Leads towards #1572
What are the significant changes in functionality due to this change request?
Converts Metrics to use the Entity/Interface structure, preparatory to becoming ready for plugins.

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[ ] 1. Review all computer code.
[ ] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[ ] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[ ] 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
[ ] 5. If significant functionality is added, there must  be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in  XML block, the node <internalParallel> to True.
[ ] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[ ] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[ ] 8. If an analytic test is changed/added is the the analytic documentation updated/added?
[ ] 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

Note one test is failing on my machine right now, raven/tests/framework/PostProcessors/Metrics/test_comparison_stats_metrics_grid.xml, for a diff I don't understand.
I don't see how the changes made here lead to the diff, but I believe the original gold files are probably accurate. I'm looking into what might have made the changes before this gets merged.

One more comment, the Metrics XSD need also be updated.

👍

Job Test qsubs on cb760db : invalidated by @wangcj05
Files not created: tests/cluster_tests/RavenRunsRaven/Rom/testPrintHistorySet_dump_14.csv (do not know the reason, rerun)

Checklist is satisfied, and PR can be merged.


TF2.0 - Multiple calls to Keras .fit and .evaluate makes RAM explode and is 25x slower

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS Mojave
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): pip
TensorFlow version (use command below): 2.0.0-dev20190909
Python version: 3.6.5
Bazel version (if compiling from source): -
GCC/Compiler version (if compiling from source): -
CUDA/cuDNN version: -
GPU model and memory: -

Describe the current behavior
(Everything is done on the CPU)
Consecutive calls to either .fit() or .evaluate() increase the RAM used, even if calling with the same data. The calls takes approximately 10 times longer than with TF1.x
Describe the expected behavior
I expect the RAM usage to remain constant just like in TF1.x
Code to reproduce the issue
from memory_profiler import profile
from time import time
import numpy as np
import tensorflow as tf

model = tf.keras.Sequential([tf.keras.layers.Dense(100, activation=tf.nn.softmax)])
model.compile(loss='mse', optimizer='sgd')

@profile
def eval(x, y):
    model.evaluate(x, y)

x = np.random.normal(size=(1,100))
y = np.random.normal(size=(1,100))

for i in range(100000):
    print('iteration', i)
    tic = time()
    eval(x, y)
    print('timeit', time() - tic)

Using TF2.0. 229MB RAM used and evaluate completed in 99ms
iteration 20
Train on 1 samples
1/1 [==============================] - 0s 10ms/sample - loss: 1.0597
Filename: reproduce_keras_oom.py

Line #    Mem usage    Increment   Line Contents
================================================
     9    228.8 MiB    228.8 MiB   @profile
    10                             def eval(x, y):
    11    229.1 MiB      0.2 MiB       model.evaluate(x, y)

timeit 0.09978580474853516

Using TF2.0 1508MB RAM used after calling .evaluate() 3312 times.
iteration 3312
1/1 [==============================] - 0s 4ms/sample - loss: 1.0205
Filename: reproduce_keras_oom.py

Line #    Mem usage    Increment   Line Contents
================================================
     9   1508.3 MiB   1508.3 MiB   @profile
    10                             def eval(x, y):
    11   1508.7 MiB      0.4 MiB       model.evaluate(x, y)

timeit 0.09004998207092285

Using TF1.x, the RAM used is not increasing over consecutive calls of .evaluate(). RAM stays at 176MB indefinitely (iteration 5100 below). Also note that it is 25 times faster!
iteration 5100
1/1 [==============================] - 0s 1ms/sample - loss: 1.2716
Filename: reproduce_keras_oom.py

Line #    Mem usage    Increment   Line Contents
================================================
     9    176.0 MiB    176.0 MiB   @profile
    10                             def eval(x, y):
    11    176.0 MiB      0.0 MiB       model.evaluate(x, y)

timeit 0.004405021667480469

I just discovered that wrapping (x, y) into a tf.data.Dataset does not have this issue!
Modified code:
from memory_profiler import profile
from time import time
import numpy as np
import tensorflow as tf

model = tf.keras.Sequential([tf.keras.layers.Dense(100, activation=tf.nn.softmax)])
model.compile(loss='mse', optimizer='sgd')

@profile
def eval(dataset):
    model.evaluate(dataset)

x = np.random.normal(size=(1,100))
y = np.random.normal(size=(1,100))

dataset = tf.data.Dataset.from_tensor_slices((x, y))
dataset = dataset.batch(1)

for i in range(100000):
    print('iteration', i)
    tic = time()
    eval(dataset)
    print('timeit', time() - tic)

Using tf.data.Dataset, there is no exploding RAM. 217 MB RAM used after calling .evaluate() 8154 times. It is also only 2.5 times slower than TF1.x
iteration 8154
1/1 [==============================] - 0s 3ms/step - loss: 0.9972
Filename: reproduce_keras_oom.py

Line #    Mem usage    Increment   Line Contents
================================================
     9    217.6 MiB    217.6 MiB   @profile
    10                             def eval(dataset):
    11    217.6 MiB      0.0 MiB       model.evaluate(dataset)

timeit 0.010456085205078125

From what I see in the notebook, using profile to measure the RAM consumption does not work in jupyter

@grananqvist Sorry for the delay in response. Can you please try tf-nightly and compare that with TF1.15.0rc3. I see similar runtime (~0.004) with tf-nightly and TF1.15.0rc3. Please let us know what you think. Thanks!

@grananqvist Did you had time to review my comments? Thanks!

Sorry I have not had the time to test this yet.

Automatically closing this out since I understand it to be resolved, but please let me know if I'm mistaken.Thanks!

Would using tf.function help in this situation?


[QUESTION] Why is Matrix put under P2P messaging?

Your Question
Matrix is (sort of, not in practice) federated, but definitely not P2P, so why is it categorized as such?
Please tick the boxes

[X] You have filled out this form accurately, and to the best of your knowledge
[X] A similar question has not already been asked for this software/ service
[X] You agree to the code of conduct

No response?

#155


build training tools failed

I meet a error while building training tools from source(4.0 master)
First, I build the tesseract-ocr which is successful.
1 yum install autoconf automake libtool libjpeg-devel libpng-devel libtiff-devel zlib-devel
2 build leptonica from source(leptonica-1.74.4)
3 build tesseract-ocr
./autogen.sh
./configure --prefix=/usr/local/tesseract --with-extra-libraries=/usr/local/leptonica/lib
make
make install
Then I try to build training tools
1 yum install libicu-devel
2 yum install pango-devel
3 yum install cairo-devel
make training
But it comes the following error
depbase=echo boxchar.lo | sed 's|[^/]*$|.deps/&|;s|.lo$||';\ /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..  -O2 -DNDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil  -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm    -g -O2 -std=c++11 -MT boxchar.lo -MD -MP -MF $depbase.Tpo -c -o boxchar.lo boxchar.cpp &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -O2 -DNDEBUG -DUSE_STD_NAMESPACE -DPANGO_ENABLE_ENGINE -I../ccmain -I../api -I../ccutil -I../ccstruct -I../lstm -I../arch -I../viewer -I../textord -I../dict -I../classify -I../display -I../wordrec -I../cutil -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/libdrm -g -O2 -std=c++11 -MT boxchar.lo -MD -MP -MF .deps/boxchar.Tpo -c boxchar.cpp  -fPIC -DPIC -o .libs/boxchar.o boxchar.cpp: In member function 'void tesseract::BoxChar::GetDirection(int*, int*) const': boxchar.cpp:67:42: error: 'U_RIGHT_TO_LEFT_ISOLATE' was not declared in this scope          dir == U_ARABIC_NUMBER || dir == U_RIGHT_TO_LEFT_ISOLATE) {                                           ^ make[1]: *** [boxchar.lo] Error 1 make[1]: Leaving directory /home/lixl/workspace/tesseract/tesseract-ocr/training'
make: *** [training] Error 2`
What's wrong with my work, any advice?
My OS is centos 7

Did you check the output of configure?

I change the OS to Ubuntu and it seems OK.
Thanks for the reply and please close the issues

I've already installed tesseract by make && sudo make install.
But I got the same error when using command make training.
OS: Centos 7
Tesseract: 4.00 master
Any advice?

I tryed and got the same error.
Still thanks for your reply.

-o .libs/boxchar.o boxchar.cpp: In member function 'void tesseract::BoxChar::GetDirection(int*, int*) const': boxchar.cpp:67:42: error: 'U_RIGHT_TO_LEFT_ISOLATE' was not declared in this scope

The training tools need icu version 52 and up. The icu version in RHEL & CentOS 7 is 50.

Thank you so much for your answer!
Finally setup my training tool!

Thank you so much for your answer!
Finally setup my training tool!

Can you tell me how did you upgrade the ICU version because I did locate uchar.h which gives me /usr/include/uchar.h  and /usr/include/unicode/uchar.h
I dont know if this seems a totally stupid question.


Switch to sass instead of node-sass

Use sass instead of node-sass for faster install/build

Just noting that:

According to https://www.npmjs.com/package/node-sass, node-sass is deprecated. Another reason to move off it besides improving the build.
On macOS, brew install node currently results in Node v15.12.0. According to https://www.npmjs.com/package/node-sass, Node v15 requires node-sass v5.0+. But the version of node-sass that is currently pinned is to v4. And indeed, the npm install step (required by e.g. lektor server -f webpack) didn't work with Node v15 when I tested. Bumping the node-sass pin to ^5.0.0 caused the npm install to succeed, fwiw.


SuperTabs error and some problems in ionic3.5

In webstorm ,I use Alt+Enter modify the super-tabs.d.ts , the error change,in Chrome console:
ERROR Error: Uncaught (in promise): Error: No provider for SuperTabsController! Error: No provider for SuperTabsController!     at injectionError (core.es5.js:1231)     at noProviderError (core.es5.js:1269)     at ReflectiveInjector_._throwOrNull (core.es5.js:2770)     at ReflectiveInjector_._getByKeyDefault (core.es5.js:2809)     at ReflectiveInjector_._getByKey (core.es5.js:2741)     at ReflectiveInjector_.get (core.es5.js:2610)     at AppModuleInjector.NgModuleInjector.get (core.es5.js:3578)     at resolveDep (core.es5.js:11039)     at createClass (core.es5.js:10903)     at createDirectiveInstance (core.es5.js:10723)     at injectionError (core.es5.js:1231)     at noProviderError (core.es5.js:1269)     at ReflectiveInjector_._throwOrNull (core.es5.js:2770)     at ReflectiveInjector_._getByKeyDefault (core.es5.js:2809)     at ReflectiveInjector_._getByKey (core.es5.js:2741)     at ReflectiveInjector_.get (core.es5.js:2610)     at AppModuleInjector.NgModuleInjector.get (core.es5.js:3578)     at resolveDep (core.es5.js:11039)     at createClass (core.es5.js:10903)     at createDirectiveInstance (core.es5.js:10723)     at c (polyfills.js:3)     at Object.reject (polyfills.js:3)     at Tab.NavControllerBase._fireError (nav-controller-base.js:321)     at Tab.NavControllerBase._failed (nav-controller-base.js:309)     at nav-controller-base.js:364     at t.invoke (polyfills.js:3)     at Object.onInvoke (core.es5.js:4149)     at t.invoke (polyfills.js:3)     at r.run (polyfills.js:3)     at polyfills.js:3

Same as:
#117

Closing in favour of #117


fixed createIndex

a row was lost every time the index size was exceeded

Hi @AlexanderSaydakov! Thanks for the contrib. Can you elaborate more on which tests this was causing issues in?

This is a test code. I used it in my tests and discovered this issue.

Cool. Would you mind filling out the CLA? http://druid.io/community/cla.html
We should be able to get this merged pretty fast (assuming automated testing passes)

:+1:
Alex will be covered under the Yahoo Corporate CLA.  I'll get a copy sent with his name on it.

ok cool
:+1: after travis


Create CONTRIBUTING.md file

And explain how contribute with this project.

@pedroparra @diego-pascual Added CONTRIBUTING file. Let me know if you miss something.

@oscarotero Perfect. Thanks!


Proposal: use all available cpus for scancode as default, or make processes configurable

The hardcoded non-configurable nr of processes for scancode is
(in ScanCode.kt):
private val DEFAULT_NON_CONFIGURATION_OPTIONS = listOf(
"--processes", max(1, Runtime.getRuntime().availableProcessors() - 1).toString()
)
which means on 4 cpu machine it will use 3 processes and so on, as availableProcessors() is not 0-based.
A proposal is to by default use all available cpu:s i.e to remove the "-1".
It would make per default scancode utilize all processors. I guess most people would not run much more critical applications on an ORT machine during scan anyway, and Instead would like as much utilzation they can for the scancode work.
However, if that seems like a not so good idea for reasons - another suggestion would be that,  --processes would be moved to the configurable options ( like timeout and os on is alread), with the existing  Runtime.getRuntime().availableProcessors()-1 as a default.
This would allow to let the user to decide to configre to use all cpu's if wished, but keep the current implemented behaviour as default.

Please note that these hard-coded values are just the defaults. They can be overridden by setting the ScanCode-specific commandLineNonConfig option, similar to the commandLine option as shown here.


incompatibilty of dilate parameter and convolutionBackwardData

This issue is inspired from stackoverflow
As mentioned in #3874, dilate parameter > 1 is incompatible with deterministic version of  cudnn convolutionBackwardData().
The problem is resolved by #3875, but the problem still remains in functions/connection/deconvolution_nd.py.
The similar patch should be applied.

Replication code is given below.

chainer==v5.0.0b3
cupy==v5.0.0b3

import chainer
from chainer import functions as F
import numpy, cupy

xp = cupy
dtype = numpy.float32

n = 2
c_in = 3
c_out = 2
size_in = (4, 3)
ksize = (3, 3)
x_shape = (n, c_in) + size_in
W_shape = (c_out, c_in) + ksize
b_shape = (c_out,)
dilate = 2
pad = ((ksize[0] // 2) * dilate, (ksize[1] // 2) * dilate)

x = chainer.Variable(xp.random.randn(*x_shape).astype(dtype))
W = chainer.Variable(xp.random.randn(*W_shape).astype(dtype))

y = F.convolution_nd(x, W, dilate=dilate, pad=pad)
y.grad = xp.ones(y.shape, dtype=y.dtype)

with chainer.using_config('use_cudnn', 'always'), \
     chainer.using_config('cudnn_deterministic', True):
    y.backward()

Traceback (most recent call last):
  File "replica.py", line 27, in <module>
    y.backward()
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "~/.chainer-latest/lib/python3.5/site-packages/chainer/configuration.py", line 127, in using_config
    yield
  File "replica.py", line 27, in <module>
    y.backward()
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "~/.chainer-latest/lib/python3.5/site-packages/chainer/configuration.py", line 127, in using_config
    yield
  File "replica.py", line 27, in <module>
    y.backward()
  File "~/.chainer-latest/lib/python3.5/site-packages/chainer/variable.py", line 956, in backward
    self._backward_main(retain_grad, loss_scale)
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "~/.chainer-latest/lib/python3.5/site-packages/chainer/configuration.py", line 127, in using_config
    yield
  File "~/.chainer-latest/lib/python3.5/site-packages/chainer/variable.py", line 956, in backward
    self._backward_main(retain_grad, loss_scale)
  File "~/.chainer-latest/lib/python3.5/site-packages/chainer/variable.py", line 1085, in _backward_main
    target_input_indexes, out_grad, in_grad)
  File "~/.chainer-latest/lib/python3.5/site-packages/chainer/function_node.py", line 545, in backward_accumulate
    gxs = self.backward(target_input_indexes, grad_outputs)
  File "~/.chainer-latest/lib/python3.5/site-packages/chainer/functions/connection/convolution_nd.py", line 172, in backward
    dilate=self.dilate, groups=self.groups)
  File "~/.chainer-latest/lib/python3.5/site-packages/chainer/functions/connection/deconvolution_nd.py", line 371, in deconvolution_nd
    y, = func.apply(args)
  File "~/.chainer-latest/lib/python3.5/site-packages/chainer/function_node.py", line 257, in apply
    outputs = self.forward(in_data)
  File "~/.chainer-latest/lib/python3.5/site-packages/chainer/functions/connection/deconvolution_nd.py", line 181, in forward
    return self._forward_cudnn(x, W, b)
  File "~/.chainer-latest/lib/python3.5/site-packages/chainer/functions/connection/deconvolution_nd.py", line 155, in _forward_cudnn
    tensor_core=tensor_core)
  File "cupy/cudnn.pyx", line 973, in cupy.cudnn.convolution_backward_data
  File "cupy/cuda/cudnn.pyx", line 1303, in cupy.cuda.cudnn.getConvolutionBackwardDataWorkspaceSize
  File "cupy/cuda/cudnn.pyx", line 573, in cupy.cuda.cudnn.check_status
cupy.cuda.cudnn.CuDNNError: CUDNN_STATUS_NOT_SUPPORTED

Fixed via https://github.com/chainer/chainer/pull/5129


Youtube Music Integration Issue Gives Error while Saving

What version of Music Assistant has the issue?
2024.11.4
What version of the Home Assistant Integration have you got installed?
2024.11.4
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

[X] Yes

The problem
Under Music Assistant -->Add Music Provider-->You Tube Music-->Authenticate on Youtube Music we select the Linkage happens and code gets populated but while SAVE it shows error "ERROR: [youtube+yt_access_token]               : Unable to download API page: HTTP Error 400: Bad Request (caused by <HTTPError 400: Bad Request>)
How to reproduce
Under Music Assistant -->Add Music Provider-->You Tube Music-->Authenticate on Youtube Music we select the Linkage happens and code gets populated but while SAVE it shows error "ERROR: [youtube+yt_access_token]               : Unable to download API page: HTTP Error 400: Bad Request (caused by <HTTPError 400: Bad Request>)
Music Providers
Youtube Music
Player Providers
Home Assistant MediaPlayers
Full log output
d5369777_music_assistant_2024-11-15T12-14-23.369Z.log
home-assistant_2024-11-15T12-15-03.357Z.log
Additional information
Core
2024.11.1
Supervisor
2024.11.3
Operating System
13.2
Frontend
20241106.2
What version of Home Assistant Core are your running
2024.11.1
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Raspberry Pi

I see you ticked the box saying you reviewed the open issues but somehow you missed https://github.com/music-assistant/hass-music-assistant/issues/3138


Avoid function name overloading (sync/async) in generated client code

Can we use different names for the sync/async versions of the functions in generated client code? Because they are overloaded, it is a little more complex than desired to use functions like std::bind in state machines.

Put this into the async qps test pull request, #856

Closed with merge of #856


Issue with configuring - missing  "Similar Records Suggestions Settings" nav option

I have followed the documentation and configured everything up to accessing Similar Records Suggestions Settings. I cannot get to this because it does not exist. Can I get the site map entry so I can add it manually? Or is this a sign that something is mis-configured? Thanks!

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 63a279d5-0422-b285-ab46-c0c2f868c56c
Version Independent ID: ddf8af4a-e69f-3339-8422-91378ed64ba6
Content: Preview feature: Microsoft Cognitive Services integration with Dynamics 365 for Customer Engagement
Content Source: ce/admin/public-preview-microsoft-cognitive-services-integration.md
Service: crm-online
GitHub Login: @Mattp123
Microsoft Alias: matp

@clarusdevops The article you sent you feedback from covers setting up the text analytics connection and not similar records. Additionally, the similar cases and topic analysis features have been deprecated. Let me know if you question has to do with either the knowledge article suggestion or document suggestion features.
Closing issue.


Added rosdep entry for libnewmat10-dev

Modified rosdep/base.yaml file to add ubuntu and debian entries for libnewmat10-dev.

The library is Available only on Debian and Ubuntu

Alpine: Not found
Arch: Not found
Debian: https://packages.debian.org/sid/libnewmat10-dev
Fedora: Not found
Gentoo: Not found
Ubuntu: https://packages.ubuntu.com/bionic/libnewmat10-dev


Runelite resets all plugin preferences, notes and timers whenever launched

When I launched RuneLite today, all of my plugin preferences, farming timers, and notes were completely gone.
To test it, I activated a few plugins again, wrote something in my notes, logged out, restarted RuneLite, and they were all gone once again. This has never been a problem in the past.

Have you made any radical changes somewhere on your computer or with the client recently?

Nope, no changes of any sort.

Are you playing on multiple clients by chance? I'm pretty sure RL will save the last client closed, so if you made changes on client A, closed A, then closed client B, it would save the settings of client B (this has happened to me having alt/main clients open). If not, I don't know what's causing your issue

Sadly no, I’ve only ever played on one RuneLite client at a time. This problem has also yet to happen again since the day after the original post.

This is now extremely stale, and was a better fit for Discord support either way


Update Credit Card Upon Detection of Duplicate Credit Card

Resolve https://github.com/opencollective/opencollective/issues/6189
payment-update.webm

Passing review and asking @Betree to jump in.

SQL transaction is not set properly.
Can we add a test that mocks PaymentMethod.create to make it fail, and makes sure the old payment method is not deleted and the order is not updated if that's the case?

@Betree : I've added some tests here to make sure that we are properly accounting for the updates. Let me know if there's any further suggestions. 😸

@Betree : Realized I made a small mistake in one of the tests. I've corrected that as well.


Add Autoquant Cache

Summary
Today whenever a user runs autoquant, the AutoQuantCache gets populated with dtype + information for Linears seen within an arbitrary torch.nn.Module. This cache is not persistent. We should add a way to persist the benchmarking information across runs.
Details

We likely want a similar paradigm to inductor: store cache to /tmp/torchaoautoquant_{user}.
Provide a mechanism for overriding save location + whether it should be used

There's some code for that within the autotuning setup: https://github.com/pytorch/ao/tree/e1039abac7f429a8d7f489d047d9b34d6ac6afe2/torchao/kernel


Prevent moving screen up/down while moving slider on touch event

Moving finger up/down during moving slider on touch device moves screen. Because of that it is impossible to move finger away to see the value being selected (the screen moves with the finger).
Properly created preventDefault should do the trick. Or this solution could be applied somehow: https://stackoverflow.com/a/40598268

Done, overflow: hidden on html did the job


Datepicker has a rather large delay on click (even on example page)

I couldn't find this being brought up before and it's hugely significant.  I just scaffolded a brand new app using Yeoman angular and placed a <uib-datepicker> directive on the page and clicking a date causes about a half second (or more) delay.  Even the example page has a long delay when clicking a date.  Has this been discussed?

@stephengardner, if you think you've found a bug, please follow these instructions.

As this is not an issue on our demo page, I'm going to close this until we hear back from you.  Thanks.

That's wild.  I checked from Chrome, Firefox, and IE and they're both showing a large delay.  I checked from my phone (Galaxy s6 edge) and it's showing the same delay.  When I click a date, the time between when it I clicked it and when it becomes highlighted is about half a second or more.  I'll see if I can set a plunkr up, but if you're not seeing this and I'm seeing it on two different devices I'm stumped too.

@stephengardner, are you seeing this on our demo page from all those browsers/devices or are you testing your web application from those devices?

On your demo page from all those browsers/devices.  I just did a reboot, same issue.

I don't know what to say - without a reproduction there's not really anything we can do.

I have the same problem, I tested with version 1.3.1 and still gives the same problem


Add copy to explain potential reasons for nominations not working

Warning: You can only nominate a validator with VEGA tokens that have been associated in the previous epoch. This is spam protection feature. Also, your nomination must be greater than 1.0 VEGA. If you attempt to nominate in the same epoch or with less than the minimum it will fail.

I thought I could do this but it is more complicated than I thought due to the add and remove form just being the same with different actions "propped in" (?).


imagebuildah/build.go: write to reportwriter

when calling build through backends like varlink, writing to stdout or
stderr is not really option.  therefore, we should always write to the
provided reportwriter unless otherwise overriden.  this allows the build output
to be returned through the backend API and prevents it from landing in
journald.
Signed-off-by: baude<EMAIL_ADDRESS>

Changes LGTM, but I want to run a few sanity tests.

@nalind @umohnani8 PTAL

LGTM

@baude unhappy tests.
I'm heading to the home office, will pick up testing after I arrive.
not ok 139 run-user
(in test file ./run.bats, line 266)
`[ "$output" = 0 ]' failed
/root/gopath/src/github.com/projectatomic/buildah/runc
CGO_ENABLED=1

@baude Could you look at the latest changes from @nalind patch to see if this fixes your issue?

@baude I think @nalind fixed your issue, closing. Reopen if I am wrong.


Argument 1 passed to Asm89\Stack\CorsService looks not support laravel 6.x

Argument 1 passed to Asm89\Stack\CorsService::__construct() must be of the type array, null given, called in C:\web\atop\lshop\vendor\barryvdh\laravel-cors\src\ServiceProvider.php on line 37

What is the issue?


Lack of RFC3339 support

RFC3339 is a widely supported format for machine and human readable, ISO8601 compliant timestamps. However, moment.js offers neither premade functions nor premade pattern strings for encoding/decoding RFC3339.
Please fix this, so that moment.js can interoperate with this common format. Otherwise, users are tempted to roll their own code and introduce bugs.

Thanks for opening this request.
Duplicate of #5045


anyone can help me：error：ImportError:  C_ROIPooling.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe26detail36_typeMetaDataInstance_preallocated_7E

when i run  the code， the error occures：

@jingquanliang Could you please provide your version of gcc, nvcc, python and pytorch?

thank u，i changed the cuda version， it works now


Fixed panic in SubscribeOnTransactions method

In some cases first transaction in the result is fulfils this condition
https://github.com/xssnick/tonutils-go/blob/a7f4ad3fdb53556b4d9084216e408c05ffaf0bed/ton/transactions.go#L243
Therefore transactions variable contains empty slice which leads to panic in this line
https://github.com/xssnick/tonutils-go/blob/a7f4ad3fdb53556b4d9084216e408c05ffaf0bed/ton/transactions.go#L253

Good catch, thank you! Will merge it tomorrow and make a new fixup tag


Replace old Token Issuing contract with new issuing contract(module)

Closing this after Ethereum<>Darwinia bridge get upgraded, see https://github.com/darwinia-network/darwinia/issues/714

new issuing contract address on ethereum 0xFBAD806Bdf9cEC2943be281FB355Da05068DE925


Implementations of some Portuguese (BR) translations

Congratulations, Volto is amazing!
I am working on the translations to Portuguese - Brazilian.
As the content is extensive and there was not a reference base for these translations yet, I will send some PR as you translate.
Regards,
Léu Almeida

@LeuAlmeida thank you for your contribution! Have a look at the Japanese translation we started if you need a starting point:
https://github.com/plone/volto/pull/951
We would like to write some documentation about how to add a new translation to Volto. Maybe you would like to contribute to that as well once you finished the Portuguese translation. Maybe @rodfersou  wants to help with that as well.

@LeuAlmeida Could you please re-base your branch to resolve the merge conflicts?

@tisto and @macagua I did what you advised. I must continue with the translations as time goes by, ok?

@LeuAlmeida thank you for your contribution! Have a look at the Japanese translation we started if you need a starting point:
#951
We would like to write some documentation about how to add a new translation to Volto. Maybe you would like to contribute to that as well once you finished the Portuguese translation. Maybe @rodfersou wants to help with that as well.

@tisto with the bda6727 commit, I wrote documentation about how to add a new translation to Volto.


Field type conflict when indicating retention policy in query

I created successfully a new DB with a retention policy by doing:
CREATE DATABASE serverload
CREATE RETENTION POLICY fivedays ON serverload DURATION 5d REPLICATION 1 DEFAULT
When doing the following curl:
curl -i -XPOST 'http://mymachine:8086/write?consistency=&db=serverload&rp=default' --data-binary "load,env=production value=0.04"
I get a 400 Bad Request with error message write failed: field type conflict: input field "value" on measurement "load" is type float64, already exists as type string
When removing from the query string the element (and only this one) rp=default to get the following curl:
curl -i -XPOST 'http://mymachine:8086/write?consistency=&db=serverload' --data-binary "load,env=production value=0.04"
... it works and goes through responding with a HTTP/1.1 204 No Content. I can then see it was persisted doing in my browser the request http://mymachine:8086/query?q=select+value+from+load&db=serverload. I get the response:
{"results":[{"series":[{"name":"load","columns":["time","value"],"values":[["2015-08-17T13:51:19.94391978Z",0.04]]}]}]}

I am only using curl to debug as I had this issue with the official Go client

@simcap this curl statement: curl -i -XPOST 'http://mymachine:8086/write?consistency=&db=serverload&rp=default'... says "please write this point to the default retention policy", meaning the original RP created with the database that is named default.
To write to the fivedays RP, your query string should be: curl -i -XPOST 'http://mymachine:8086/write?consistency=&db=serverload&rp=fivedays'...

When you remove the explicit RP declaration from they query string, it writes to the retention policy that is set to be the default, which is fivedays.

Ok. Thanks a lot for the explanation.
But why would it fails if for the default retention policy? It is actually set in the request - by the official Go influxDB client - when no retention is given. Shouldn't the write work with any retention policy?

Sorry @beckettsean, I misunderstood what you meant. It is all clear now. Thanks.


Train 118

Train includes the following PRs (some still need their :rocket: s)
#1107 bump navstar for minuteman config
#1100 bump Mesos
#1108 journald+logrotate container logging
#1130 Explicit JAVA_HOME for exhibitor gradle build
#1119 Fix test_if_marathon_app_can_be_deployed_with_mesos_containerizer in EE
#1084 bump dcos-ui
#1000 Logsink anonymous module for Mesos master/agent logs
#1121 LIBPROCESS_PORT for Marathon/Metronome

@adam-mesos please add https://github.com/dcos/dcos/pull/882

@alberts @mellenburg #882 is not quite ready, but sounds like it is very very close. @mellenburg can you address @cmaloney's remaining feedback and let's get it in this train if possible.

@adam-mesos would like to also request that we include #1115 (you promised me a review ;-) as well as #1120 (ready to go).

lgtm 🚢


current update is saved when new log is created

Description
When a user creates a log without saving and then tries to create a new log, the first log will be cleared. This update fixes that issue by bringing back the stored values in updates. If a user cancels their update the changes will not be committed.
Fixes # (issue)
Type of Change

[x] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
Tested locally in Figma.

Quite a few updates to finish out this PR. Four sets of changes:

Adding error tracking for Date, Time, Link Label, and URL fields
New Input Field component to handle all log-based inputs with optional error messaging
Added focus indicator (darker avatar line) for the log currently being edited
Fit and finish, adjusting styles and tokens cleanup, removing older unused assets


Allow users to be removed from organisation

In the user list, allow users to be removed using mutations added in impactasaurus/server#237

 User Management

I can take this up.

Thanks for the offer @abhishek71994, there is user demand for this, so I will be pushing forward with it. I would appreciate your help elsewhere tho, lets chat about things you could work on.


Using query builder or eloquent where adding statements with conditions

Laravel Version: 5.4.15
PHP Version: 7.0.15
Database Driver & Version: Ver 14.14 Distrib 5.5.44, for Win32 (x86)
Running Zend Server 9.0.2 (Apache, Mysql)

Description:
I have a very weird issue when adding where conditions to a query based on a switch.
Apartment is just a Eloquent class. Have also tried this with DB::table(...) too. Same issue.
$query = Apartment::query()->select('item_id');
		foreach($searchParams as $key => $value) {
			switch($key) {
				case 'searchable':
					$query->where($key, $value);
					break;
				case 'type':
					$query->where($key, $value);
					break;
				case 'max_rent':
					$query->where('rent', '<=', $value);
					break;
				case 'min_area':
					$query->where('area', '>=', $value);
					break;
				case 'min_room':
					$query->where('room', '>=', $value);
					break;
				default:
					throw new Exception('Illegal option:'.$key);
			}
		}
                print_r($searchParams);
		print_r($query->getBindings());
		echo $query->toSql();
		print_r($query->get()->toArray()); die;

Steps To Reproduce:
This code prints out:
# SearchParams variable
Array
(
    [searchable] => 1
    [type] => 2
    [max_rent] => 11000
    [min_room] => 1
    [min_area] => 20
    [item_type] => Array
        (
            [0] => 1-1
            [1] => 1-2
        )

    [item_id__not] => 60
    [user_id__not] => 44
    [region] => Array
        (
            [0] => 124
            [1] => 128
            [2] => 760
        )

)
# Bindings
Array
(
    [0] => 1
    [1] => 2
    [2] => 11000
    [3] => 1
    [4] => 20
)

toSql query
select item_idfromapartmentwheresearchable= ? andtype= ? andrent<= ? androom>= ? andarea >= ?
This produces the query below: (Checked both with DB::getQueryLog() and zray in Zend Server (which list all queries for a request)
select item_idfromapartmentwheresearchable= 1 andtype= 20 andrent<= 11000 androom>= 1 andarea >= 2
Check the order of the binding array values (1,2,11000,1,20)
When they are added to the query they come in the order (1,20,11000,1,2) ???!!!
It is very strange since the getBindings are in the correct order. Then when it produces the query they come in the wrong order. If I comment out one more condition in the switch it works. As soon as they are more than four it seems to get corrupt.

can you please dd(Appartment::getAttributes()) ?

I want to reproduce this issue can you tell me how your appartment table looks like? a copy of your migration file will be good.

remove the exception and see if it binds correctly.
I've tested it and I got the following query:
select item_id from apartments where searchable = 1 and type = 2 and rent <= 11000 and room >= 1 and area >= 20

CREATE TABLE IF NOT EXISTS apartment(  idint(10) unsigned NOT NULL AUTO_INCREMENT,  searchabletinyint(1) NOT NULL DEFAULT '1',  typetinyint(2) unsigned NOT NULL,  created_atdatetime NOT NULL,  updated_atdatetime NOT NULL,  roomfloat NOT NULL,  rentfloat NOT NULL,  areafloat NOT NULL,  floor_levelfloat DEFAULT NULL,  descriptiontext,  streetvarchar(100) DEFAULT NULL,  postal_codevarchar(6) DEFAULT NULL,  postal_placevarchar(100) DEFAULT NULL,  landlordvarchar(100) DEFAULT NULL,  item_id int(10) unsigned DEFAULT NULL,   PRIMARY KEY (id),   KEY ite_id (item_id),   CONSTRAINT apartment_item_id FOREIGN KEY (item_id) REFERENCES item (id) ) ENGINE=InnoDB AUTO_INCREMENT=259 DEFAULT CHARSET=utf8;
I also tried to remove the Exception but since it doesn't end up there it didn't make a difference.

I have 15+ years working with php so I don't understand why it is behaving like this. Really strange that the params get randomly sorted. I can't see any errors in the code either. Was looking for a missing break or something but don't find anything that explains the behavior.
I will do some more testing now to see if I can find any solution.

Did some more testing without the switch.
This code works correctly
$query = DB::table('apartment')->select('item_id')
			->where('searchable', 1)
			->where('type', 2)
			//->where('rent', '<=', 11000)
			->where('room', '>=', 1)
			//->where('area', '>=', 20)
			->get();

But when I un-comment any of the two lines that are a comment the order becomes corrupt.

Any updates on this or suggestions on how I find the error?
I had to switch to using DB::select instead to make this work.

I can't reproduce your issue:
DB::enableQueryLog();

\DB::table('apartment')->select('item_id')
    ->where('searchable', 1)
    ->where('type', 2)
    ->where('rent', '<=', 11000)
    ->where('room', '>=', 1)
    ->where('area', '>=', 20)
    ->get();

dd(DB::getQueryLog());

The log has:
array:1 [▼
  0 => array:3 [▼
    "query" => "select `item_id` from `apartment` where `searchable` = ? and `type` = ? and `rent` <= ? and `room` >= ? and `area` >= ?"
    "bindings" => array:5 [▼
      0 => 1
      1 => 2
      2 => 11000
      3 => 1
      4 => 20
    ]
    "time" => 2.8
  ]
]

Which is the correct order of bindings and parameters.

Thanks for the update. I also get the correct order when calling getBindings() so maybe this is outside of Laravel or what do you think?
When the actual query occurs I get the wrong order in both Zend Server z-ray and in the dd(DB::getQueryLog()); command.
I run several Laravel projects on my computer and haven't had any issues like this before.
Any ideas how to debug this? I mean if getBindings() is correct, what's next to check?

What i'm sharing is actually the result of dd(DB::getQueryLog());, not what might mess with the bindings order like that, can't see anything in the code that might re-order.
Can you try to run the same query on a fresh laravel installation? If everything went well then maybe something in your code caused this behaviour.

Closing for lack of activity and also for being unable to replicate.

I seem to have missed your last update on this but will try this query on a fresh install just to debug and see if the same thing happens.


Allow Suppression of Non-Essential Output ("Silent Mode")

Add CLI argument for suppression mode ("silent") to improve automation with other CLI-based tools.  Only output should be single-line string of comma-separated timecodes indicating where the video should be split.

Fixed by 99bb80b97cd9a21608b1e47b15dc3d97649b3f2c.


Sub-navigation pattern

Are there any plans to release guidance/styling for secondary navigation (AKA sub-navigation or app-subnav)?
I couldn't find anything in the current system and/or issues list. Thanks!

Closing as I've just been made aware of https://github.com/alphagov/govuk-design-system-backlog.


Write a C++ program to check palindrome number

Description
Write a C++ program to check palindrome number
Palindrome numbers are the numbers for which reverse is exactly same as the original number. For example, 121 is palindrome, but 123 is not palindrome.
Input  : 121
Output : Palindrome Number

How to contribute

Save the solution in CheckPalindromeNumber.cpp file
Add CheckPalindromeNumber.cpp file in check-palindrome-number folder

!assign

Can I work upon this ??

Hey @AshishSharma1203
Sorry, but this issue has already been assigned
Please contribute to another issue 👍🏻
You can comment !assign on any good first issue you want to contribute to, to be auto assigned
!assign


FAB-18035 Ch.Part.API: consenter JoinChain creates a follower.Chain

Implement the JoinChain() method in the consenter, and create a skeleton implementation of a follower.Chain.
Create a cluster.BlockPuller that is initiated from the join-block.
Create a SelfMembershipPredicate for the follower.Chain.
The JoinChain method tries to be strict and check the inputs before chain creation, in order to minimize the risk of errors after the chain is started.
Signed-off-by: Yoav Tock<EMAIL_ADDRESS>Change-Id: I94043a66c73488e32ac2a49606886e1f94be5cf0
Type of change

New feature

Related issues
Task: FAB-18035
Story: FAB-15711
Epic: FAB-17712

@guoger A Join request will continue to the consenter's JoinChain()  only if the ledger is empty and the channel does not exist. If the channel already exists the request is rejected by the Registrar prior to calling this method.

@tock-ibm thx for reply! according to rfc, when a node is deleted from a channel, the deletion of resource storage (i assume ledger?) is optional and controlled by options.removeStorage. Is this channel still being tracked by node's Registrar? If not, then we might have the case where a join block used is behind the tip, no? (equivalent to resubmission of the join block)

@guoger Currently, the "Remove" story concentrates on the complete deletion of resources (i.e. removeStorage=true). So a removal of a channel removes the ledger and its entry in the Registrar, so there is no issue there. The "archiving" option in the remove story is currently low priority, so its implementation will come later. In the archiving option, storage is moved to a location away from the ledger and the entry in the registrar is removed. The issue really is how to restore from archive. Just using a "join" will be equivalent to re-pulling the entire ledger from scratch (note that it is even possible to create a different channel altogether by the same name). Currently the RFC does not specify an explicit restore technique. The way I am currently thinking about it, it is a kind of an emergency manual restore operation done by the admin. If the admin moves the storage back into place and restarts the orderer, then either a follower.Chain or an etcdraft.Chain will be created on top of the old ledger. The chain will then pull the rest of the ledger as normal.
That might present a problem only if the config of the channel changed so much such that the restored node no longer has the ability to pull... The simple, but possibly costly solution, is to join from scratch with a recent config block. However, a better solution is to supply the chain with a more recent config block to the channel in order to allow it to catch-up. (This can also happen when a node is down for a long time). That is a point that is indeed currently missing in the RFC and the epic stories. So - a great question because it uncovers a hole in our design. This would probably have to be implemented with another REST verb like a PUT (vs POST for Join) to perform an Update.
More specifically - if by any chance a follower chain finds a join block lower than the ledger height, it discards the join block and recreates the chain (via the CreateChain callback). This will spawn either an etcdraft.Chain or a follower.Chain, depending on the last config. This can happen only after a crash. You'll see that in the next PR.


Update to netcore 2.0?

Hi!
I've just discovered this starter kit while I was searching something to kick start with asp.net core + react. I haven't dug deep but the first thing I encountered is that a created project is based on the old stack of netcore1.0 and dnx. Is there any plans to update the template to netcore2.0?
Anyway a generated project fails to build:
Configuring...
-------------------
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 100% 7216 ms
Expanding 100% 16302 ms
Failed to create prime the NuGet cache. new failed with: -2147352571
MSBUILD : error MSB1008: Only one project can be specified.
Switch: server.test

For switch syntax, type "MSBuild /help"
npm ERR! code ELIFECYCLE

I have netcore2.0 sdk installed obviously.

@evil-shrike - did you try running the dotnet migrate command? (more here)
I successfully converted it to .csproj files using that command.
Then, I modified the global.json to refer to my 2.1.3 version of the SDK tooling:
  {
    "projects": [
      "server",
      "server.test"
    ],
    "sdk": {
      "old_version": "1.0.0-preview2-003121",
      "version":"2.1.3"
    }
  }

Now I'm getting an error like this:
><EMAIL_ADDRESS>postinstall G:\Users\Brian\DEV\AspCoreApps\AspnetStarterKit
> dotnet restore server server.test

MSBUILD : error MSB1008: Only one project can be specified.
Switch: server.test

For switch syntax, type "MSBuild /help"
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>postinstall: `dotnet restore server server.test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!  C:\Users\...\npm-cache\_logs\2017-12-30T06_51_59_536Z-    debug.log


Check if device exists before removing it "resin device rm "

The command doesn't check if the device actually exists before removing it.

@mkorakakis Can you link this issue to the SDK PR that fixes it?

Fixed in the referenced PR.


Back to top button

Is your feature request related to a problem? Please describe.
Adding a back to top button.
Describe the solution you'd like
A button to return to the top of the page allows the user to quickly return to the top of the page without making too much effort.
Additional context
NA

@Abhishek-kumar09 can I work on this issue?

Can i Work on this @Abhishek-kumar09

@KeenWarrior ig we supposed to get issue assigned first, then work on it?

Yes @Harshal0902 sorry if you had already started working on it and the issue is merged. Yes, issue need to be assigned first but maybe due to this volume of PR we missed your comment and merged it. Sorry for that.


updates to CI java http server tutorial

more yaml-based
use include for docker hub connector
Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[x] Feature
[ ] Maintenance/Chore

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

Issue(s)

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

[x] Tested Locally
[ ] Optional Screen Shoot.

Was able to merge in 181.

Preview environment: https://ci.pr.harness.io/pr-182

Ping for @KimberlyFields if this is ready to merge 🙏🏻

LGTM. @ravilach you didn't approve the PR. Do you want to give it one more review before merging?


Better URL Pattern Matching

I have setup a handful of routes such as:
 api.configureTransformer("/products/filters") { returns Filter }
 api.configureTransformer("/products/*") { returns Product }
 api.configureTransformer("/products/*/market") { returns Market }

When the '/products/filters' resource is loaded it handles it then passes 'Filter' objects into the 'products/*' handler which expects a JSON (SwiftyJSON) object. So of course the 'WrongTypeInTranformerPipeline' error pops up.
It would be nice to either allow a ResponseTransformer to say "no more transforming, we are done" or allow for better pattern matching in the URLs such as specifying the wildcard item should be an INT.

1

Yes, this is a bit of a headache with the current configuration approach.
For right now, you can use the configuration flavor that takes an arbitrary predicate to make more fine-grained matches. For example (just a sketch, untested):
api.configureTransformer({ $0.path?.rangeOfString("/products/\\d+$", options: .RegularExpressionSearch) != nil }) { … }
api.configureTransformer("/products/filters") { … }
api.configureTransformer("/products/*/market") { … }

(Ugh, that Foundation regex API. Hmm, Siesta could — should — make NSRegularExpression implement ConfigurationPatternConvertible.)

The most obvious better solution is a “first match wins” policy in the manner of a routing engine, but that doesn’t work because configuration blocks aren’t mutually exclusive: you may want to have several independent config passes match the same resource.
The “no more transforming, we’re done” approach would solve this immediate problem, but feels like it won’t generalize well, and will lead to more special cases.
A slightly more generic version of it I’ve considered would allow you to give configuration blocks a key, where a new config block replaces one with the same key if it exists:
api.configureTransformer("/products/*", inSlot: .ModelTransform) { … }
api.configureTransformer("/products/filters", inSlot: .ModelTransform) { … }  // replaces first one
api.configureTransformer("/products/**", inSlot: .FastTimeout) { … }  // does not override first one

This would help #32 play out right. The implementation details get messy, though, and I’m not sure it’s all that easy to understand.
Another approach would be to create configuration groups, within which the first match wins:
api.configurationGroup { group in
  group.configureTransformer("/products/filters") { … }
  group.configureTransformer("/products/*") { … }
}

Again, though, messy details and maybe hard to follow.

I'm running in a simpler problem that maybe has already a solution that I can't see.
I have two endpoints:

products/
products/[id]

Configuring them like:
service.configureTransformer("products/") {
...
}
service.configureTransformer("products/*") {
...
}

Siesta catches the latter also on "products/" call (and it's correct, I think).
Changing the endpoint "products/" to "products" brings an OAuth 401 because Authorization header isn't added to request and I don't really know why (maybe it's a bug?)*
So the only solution that came to my mind was:
service.configureTransformer(ProductIntPattern()) { ... }

struct ProductIntPattern: ConfigurationPatternConvertible
{
  func configurationPattern(service: Service) -> NSURL -> Bool {
    return {
      if let components = $0.pathComponents where components.count > 1 {
        return (components[components.count - 2] == "products" && Int(components.last!) != nil)
      }
      return false
    }
  }
  var configurationPatternDescription: String {
    return ""
  }
}

That really isn't so good as something like:
service.configureTransformer("products/:id")

* authorization is configured in this way
service.configure {
  $0.config.headers["Authorization"] = self.authHeader
}

Hi, first great work ; this lib is really changing the way we do networks in iOS apps !
Any updates on this issue ?
i.e. I will have to use urls like /users/* /users/1 and /users/1/comments and I don't want to have to handle comments in /users/* resource. Should I use your proposal with reg ex (will it work) ?

This should now work if you pull the bleeding edge from master:
api.configureTransformer("/products/*") { returns Product }
api.configureTransformer("/products/filters") { returns Filter }  // overrides previous
api.configureTransformer("/products/*/market") { returns Market }  // not matched by either of previous 2 rules


Cannot be used after installation, issues specific to China

After the installation

Click the install now button

I don’t know if this is a problem with my computer

Hi @perfycheng
Your computer needs to access this file : https://raw.githubusercontent.com/glouel/AerialUpdater/main/manifest.json
For it to work. Can you check if your computer can access it ?

Hi @perfycheng
Your computer needs to access this file : https://raw.githubusercontent.com/glouel/AerialUpdater/main/manifest.json
For it to work. Can you check if your computer can access it ?

same problem. Can not access to https://raw.githubusercontent.com/glouel/AerialUpdater/main/manifest.json

@beyondskyway you are in China too ?
I know at least some of GitHub isn't blocked by the firewall, can you test these 3 urls in a browser, and tell me which ones works and which ones don't, so maybe I can find a solution:

https://raw.githubusercontent.com/glouel/AerialUpdater/main/manifest.json <- This one you told me doesn't load in a web browser, correct ?
what about this one, does that load : https://aerialscreensaver.github.io
and that one : https://github.com/glouel/AerialCommunity/releases/download/mw1-1080p-sdr/LICENSE.txt ?

Based on that maybe I can find a workaround. Thanks

@beyondskyway you are in China too ?
I know at least some of GitHub isn't blocked by the firewall, can you test these 3 urls in a browser, and tell me which ones works and which ones don't, so maybe I can find a solution:

https://raw.githubusercontent.com/glouel/AerialUpdater/main/manifest.json <- This one you told me doesn't load in a web browser, correct ?
what about this one, does that load : https://aerialscreensaver.github.io
and that one : https://github.com/glouel/AerialCommunity/releases/download/mw1-1080p-sdr/LICENSE.txt ?

Based on that maybe I can find a workaround. Thanks

Hello,I can access the other two url except the first URL， and I'm in China.

@zengsl thanks a whole lot ! I'll try to make a fix tonight and will let you know here.
Thanks a lot for your quick response !

@zengsl thanks a whole lot ! I'll try to make a fix tonight and will let you know here.
Thanks a lot for your quick response !

U r welcome, expect you find a workaround soon

To @zengsl @beyondskyway and @perfycheng
Please try the latest installer from here : https://github.com/glouel/AerialCompanion/releases/latest/download/AerialInstaller.dmg
This version uses https://aerialscreensaver.github.io/manifest.json which should work.
I also released version 2.0.8 of Aerial which should let you download the community videos. Please note that Apple video servers are banned by the firewall and for those there's nothing I can do for you, you will need to find another connexion if you want these. Please let me know if that fixes your issues.

I also released version 2.0.8 of Aerial which should let you download the community videos. Please note that Apple video servers are banned by the firewall and for those there's nothing I can do for you, you will need to find another connexion if you want these. Please let me know if that fixes your issues.

OK，thx. I will try it now

https://aerialscreensaver.github.io

To @zengsl @beyondskyway and @perfycheng
Please try the latest installer from here : https://github.com/glouel/AerialCompanion/releases/latest/download/AerialInstaller.dmg
This version uses https://aerialscreensaver.github.io/manifest.json which should work.
I also released version 2.0.8 of Aerial which should let you download the community videos. Please note that Apple video servers are banned by the firewall and for those there's nothing I can do for you, you will need to find another connexion if you want these. Please let me know if that fixes your issues.

There are no errors when downloading Plugin-in,but it's too slow to download it.Maybe there's something wrong with my network

Do you mean the screensaver download is slow, or the video downloads afterwards ?

Do you mean the screensaver download is slow, or the video downloads afterwards ?

I mean the screensaver download is slow

When you clicked install now ? Did it work in the end ?

When you clicked install now ? Did it work in the end ?

Prompt timeout

So the installer does try to download this file which as far as I know works on the firewall : https://github.com/JohnCoates/Aerial/releases/download/v2.0.8/Aerial.saver.zip
If you can load it from your browser, open the zip, double click the .saver and it will finish the install

So the installer does try to download this file which as far as I know works on the firewall : https://github.com/JohnCoates/Aerial/releases/download/v2.0.8/Aerial.saver.zip
If you can load it from your browser, open the zip, double click the .saver and it will finish the install

The installation was successful,thank you so much!


Redis peer configuration option to use FQDN instead of Hostname?

In GKE, pods can be resolved using their FQDN (if a headless service is set up) but unless I'm missing something I think the self-reported hostnames don't resolve?
I've forked the project to use FQDN in my own deployment and everything works perfectly. Is it was worth introducing this as a configurable option?

Will close this in favor of https://github.com/honeycombio/refinery/issues/858, as this is a different mechanism, but allows Refinery to work in GCP.


How to assign permissions to app roles from Azure Ad Portal instead of hardcoding it on application level?

Issue
Azure AD provides us with a nice mechanism of assigning users to a app role defined in the Azure AD portal. However there is no mechanism which defines the permissions each app role has. For example what if we want to control the CRUD operations on a role called TaskUser (as defined in the docs). What if we only want to allow POST and GET for that role.
How can we do this without hardcoding the correlation between an app role and it's permissions. Currently this is hardcoded in the following example created by Microsoft: https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/5-AccessControl

Please provide us with the following information:

This issue is for the sample
https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/5-AccessControl

    - [ ] 1-1) Sign-in with Azure AD
    - [ ] 1-2) Sign-in with Azure AD B2C
    - [ ] 2-1) Acquire a Token and call Microsoft Graph
    - [x] 3-1) Protect and call a web API on Azure AD
    - [ ] 3-2) Protect and call a web API on Azure AD B2C
    - [ ] 4-1) Deploy to Azure Storage and App Service
    - [ ] 4-2) Deploy to Azure Static App Service
    - [x ] 5-1) Call a web API using App Roles
    - [ ] 5-2) Call a web API using Security Groups
    - [ ] 6-1) Call Microsoft Graph using on-behalf-of flow
    - [ ] 6-3) Call a web API using Conditional Access Auth Context
    - [ ] 6-4) Sign-in with Hybrid SPA flow

This issue is for a

    - [ ] bug report -> please search issues before submitting
    - [x ] question
    - [ ] feature request
    - [ ] documentation issue or request

Minimal steps to reproduce

Follow the steps as stated in the example tutorial

Any log messages given by the failure

Expected/desired behavior
No hardcoding permissions like (PUT, POST, UPDATE, DELETE) but manageable in the Azure Portal.
Otherwise we have to maintain this on application level, which is not desired.
Also the possibility for Deviating settings per role per api pathname.
App Role: TaskUser
API Path: /api/todolist
Allowed Operations: POST, GET
App Role: TaskAdmin
API path: /api/todolist
Allowed Operations: POST, GET, UPDATE, DELETE

Library version
"@azure/msal-browser": "^2.31.0",
"@azure/msal-react": "^1.4.10",

Browser and version
Chrome Versie 108.0.5359.94 (Officiële build) (arm64)

Chrome, Edge, Firefox, Safari?

Mention any other details that might be useful
In my opinion the app roles are not a true RBAC system for our applications. We are missing control from the Azure portal for granularly control over permissions for each app role. We simply can't apply permissions to roles from the Azure portal. What is the point of having app roles if a role without a specific set of permissions assigned to them?
Take this example screenshot from the opensource headless CMS called Strapi.
This is something I have no clue of if this even possible with Azure Add app roles. Hopefully someone has the answer to it!

Lastly, in term of security, we can just change the app roles in sessions storage or local storage in the front-end, so what's the point anyway of having a RouteGuard which is useless in terms of security?
In terms of security we have to add this on API level of course. (as described per docs)
However, right now I don't feel comfortable hard coding this like shown in the example below. What if we want to give TaskAdmin GET and POST permission and TaskUser only PUT permission?
Sample code from: https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/blob/main/5-AccessControl/1-call-api-roles/API/authConfig.js
 accessMatrix: {
        todolist: {
            path: '/todolist',
            methods: ['GET', 'POST', 'PUT', 'DELETE'],
            roles: ['TaskUser', 'TaskAdmin'],
        },
        dashboard: {
            path: '/dashboard',
            methods: ['GET'],
            roles: ['TaskAdmin'],
        },
    },

Thanks! We'll be in touch soon.

Hi @kevinvugts , Thanks for reaching out. If you're implementing app roles for your own apps (API, SPA, WebApp...), you will need to code the permissions your users can access in your apps as shown in the sample. The app roles' purpose is to give the application developer power to customize authorization as they see fit.
If it's an Azure resource, you can utilize Azure AD roles for the recourses, and you can use a UI that can specify the permission based on the operation (GET, POST, DELETE, PUT).
Regarding the RouteGuards. If you don't want the roles hardcoded, you can keep them on a server and have the backend app fetch them for you. Unfortunately, there's no way around coding the logic you need to implement in the apps.

Hi @salman90
Thanks for your clarification and excuse me for my delayed response.
Luckily we still have a bot the reminded me, haha.
I am going to try to integrate this as specified and closing this issue for now.
Thanks again for your help and time.
Best Regards,

@salman90
Regarding my query above, this is part of a bigger whole.
I am building a platform a customer who wants to have the following flow.
In short the user navigates from a website to a subdomain called sso.customer.com which handles the authentication for the platform. It's basically the gateway to all. When the user navigates to the subdomain MSAL or another library (if you advice) will redirect to the login.

When logged in the user will go through a couple of steps before it's granted access.
When it's granted, it will have a screen with 3 options to navigate to: LMS, Community and tool
Based on the selection it will be redirect to another subdomain where these subsystems are hosted
It should share the same session like the one which was made in the sso.customer.com

Do you have any advice in how we can share the authentication session from sso.customername.com with the sub systems involved in the whole platform? Is this possible with MSAL / Azure AD? And is it even advisable?
I am looking forward to your response. Thanks in advance!

@salman90 I see you haven't got back to my query above. If by any chance you got some spare time, could you please elaborate more on the above?
Thanks in advance!


⚠ Bofrost.lu has degraded performance

In a8d2f82, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1202 ms

Resolved: Bofrost.lu performance has improved in 5a616bd after 6 minutes.


Mapbox not working

TNS Version: 2.1.1
When I run "tns livesync ios --emulator --watch" I get the following error messages:
Aug  5 14:51:44 Shivas-Air cngMobileApp[70894]: 1   0x45b82c -[TNSRuntime executeModule:]
Aug  5 14:51:44 Shivas-Air cngMobileApp[70894]: 2   0x8c60b main
Aug  5 14:51:44 Shivas-Air cngMobileApp[70894]: 3   0x3cc5a25 start
Aug  5 14:51:44 Shivas-Air cngMobileApp[70894]: file:///app/tns_modules/nativescript-mapbox/mapbox.js:7:20: JS ERROR ReferenceError: Can't find variable: MGLOfflineStorage
Aug  5 14:51:44 Shivas-Air com.apple.CoreSimulator.SimDevice.20124C04-21CD-486F-9DFE-439512DD31BD.launchd_sim[65148] (UIKitApplication:org.nativescript.cngMobileApp[0xc842][70894]): Service exited due to signal: Segmentation fault: 11
I installed nativescript-mapbox using "tns plugin add nativescript-mapbox". Can you assist me as to what could be causing the issue? Thanks.

Perhaps you're trying to show a map before the app has started?
Please show me the code reproducing this issue as I can't get it to break..

Got it to work. I'm using the angular version of Typescript so I confused some of the code and this may have caused the issue.
Thanks for the reply all the same.

I had the same issue. How did you fix it?
JS: Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
JS: ReferenceError: Can't find variable: MGLOfflineStorage


Swap projectId parsing order

Codecov Report

Merging #360 into master will not change coverage.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master     #360   +/-   ##
=========================================
  Coverage     81.62%   81.62%
  Complexity      447      447
=========================================
  Files            64       64
  Lines          1480     1480
  Branches        209      209
=========================================
  Hits           1208     1208
  Misses          155      155
  Partials        117      117


Feature/visibility

Implemented visibility proper, still need to monitor the private url sharing things as the frontend input method changes and the user URL as ID's are modified. As noted in helpers.py.

@FordMcLeod can you fix the conflicts?
Will close #63

Yeah yeah I can, I'm just fixing the url bidness now.
On Tue, Mar 26, 2019, 7:10 PM Michael Paradis<EMAIL_ADDRESS>wrote:

@FordMcLeod https://github.com/FordMcLeod can you fix the conflicts?
Will close #63
https://github.com/dispersal/CMPUT404-project-socialdistribution/issues/63
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dispersal/CMPUT404-project-socialdistribution/pull/84#issuecomment-476920123,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AY3eM2QjWu-UxxKhg3-ltBWgm5FuC6X2ks5vasUAgaJpZM4cMmz1
.

Let me rephrase, I already fixed conflicts, just fixing a small url thing
almost done
On Tue, Mar 26, 2019, 7:13 PM Owen McLeod<EMAIL_ADDRESS>wrote:

Yeah yeah I can, I'm just fixing the url bidness now.
On Tue, Mar 26, 2019, 7:10 PM Michael Paradis<EMAIL_ADDRESS>wrote:

@FordMcLeod https://github.com/FordMcLeod can you fix the conflicts?
Will close #63
https://github.com/dispersal/CMPUT404-project-socialdistribution/issues/63
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dispersal/CMPUT404-project-socialdistribution/pull/84#issuecomment-476920123,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AY3eM2QjWu-UxxKhg3-ltBWgm5FuC6X2ks5vasUAgaJpZM4cMmz1
.

Done. just fixed the url BS i was having


Simplify ArgumentFormat serialized form

Apply the same optimization to ArgumentFormat that was used for NameFormat.

This conflicts with main now, could you rebase please?


VC-36444: Add a health check and liveness probe

Ref: VC-36444
Why? Customers don’t like the fact that OpenShift shows warnings whenever they install Venafi Kubernetes Agent. These warnings say that this pod doesn’t have a liveness and a readiness configuration in the Pod specification, and that the best practice is to have one for each pod.
What? The idea isn’t to define what “ready” means in the agent. The agent doesn’t receive traffic, so it wouldn’t make sense to configure a readiness probe (readiness probes are used by Kubernetes to know when to start routing traffic to that pod). And regarding the liveness probe, although it could be useful to indicate that the agent isn’t able to push data to the API, defining a “real” liveness probe is out of scope for this ticket. Instead, the idea is to implement a “ping pong” liveness and readiness probe so that OpenShift customers stop seeing warnings.
Note to the reviewer: I've chosen to combine the metrics endpoint (/metrics) with the readiness and liveness probes because I don't think there will be problems with combining the three.
Testing
I've used the tenant https://ven-tlspk.venafi.cloud/. To access the API key, use the user<EMAIL_ADDRESS>and the password is visible in the page Production Accounts (private to Venafi). Then go to the settings and find the API key.
export APIKEY=...

Then, run:
venctl iam service-account agent create --name "$USER temp" \
  --vcp-region US \
  --output json \
  --owning-team $(curl -sS https://api.venafi.cloud/v1/teams -H "tppl-api-key: $APIKEY" | jq '.teams[0].id') \
  --output-file /tmp/agent-credentials.json \
  --api-key $APIKEY
make oci-push-preflight oci_preflight_image_name=ttl.sh/mael/venafi-agent oci_preflight_image_tag=v0.0.0-dev oci_platforms=linux/arm64
make helm-chart oci_preflight_image_tag=v0.0.0-dev helm_chart_version=0.0.0-dev oci_preflight_image_name=ttl.sh/mael/venafi-agent
helm push _bin/scratch/image/venafi-kubernetes-agent-0.0.0-dev.tgz oci://ttl.sh/mael/charts
helm upgrade -i -n venafi --create-namespace venafi-kubernetes-agent oci://ttl.sh/mael/charts/venafi-kubernetes-agent --version 0.0.0-dev \
  --set config.clusterName="$USER temp" --set config.clientId="$(jq -r .private_key /tmp/agent-credentials.json)"
kubectl create secret generic -n venafi agent-credentials --from-literal=privatekey.pem="$(jq -r .private_key /tmp/agent-credentials.json)" \
  --dry-run=client -o yaml | kubectl apply -f -

You should see that the pod now has a liveness and readiness probe:
$ k get -n venafi pod -l app.kubernetes.io/name=venafi-kubernetes-agent -oyaml | yq '.items[].spec.containers[] | with_entries(select(.key | test(".*Probe.*")))'
livenessProbe:
  failureThreshold: 3
  httpGet:
    path: /healthz
    port: 8081
    scheme: HTTP
  initialDelaySeconds: 15
  periodSeconds: 20
  successThreshold: 1
  timeoutSeconds: 1
readinessProbe:
  failureThreshold: 3
  httpGet:
    path: /readyz
    port: 8081
    scheme: HTTP
  initialDelaySeconds: 5
  periodSeconds: 10
  successThreshold: 1
  timeoutSeconds: 1

To check that the server works, I used telepresence (can't rely on k proxy since it doesn't have a service, can't reach the pod IP since I'm on macOS)
curl -fL https://app.getambassador.io/download/tel2oss/releases/download/v2.19.1/telepresence-darwin-arm64 -o ~/bin/telepresence
telepresence helm install
telepresence connect -n venafi

Then:
$ IP=$(k get -n venafi pod -l app.kubernetes.io/name=venafi-kubernetes-agent -oyaml | yq '.items[].status.podIP')

$ curl -D/dev/stderr http://$IP:8081/healthz
HTTP/1.1 200 OK
Date: Tue, 01 Oct 2024 14:17:50 GMT
Content-Length: 0

$ curl -D/dev/stderr http://$IP:8081/readyz
HTTP/1.1 200 OK
Date: Tue, 01 Oct 2024 14:18:13 GMT
Content-Length: 0

The pod should be ready:
$ k get -n venafi pod -l app.kubernetes.io/name=venafi-kubernetes-agent
NAME                                       READY   STATUS    RESTARTS        AGE
venafi-kubernetes-agent-669d9bc4d4-cmtlh   1/1     Running   19 (9m8s ago)   4h2m

@maelvls do we also need the readiness probe?
The error message that we were seeing in OpenShift complains about missing health checks. I think that the liveness probe alone might be enough.

@maelvls do we also need the readiness probe? The error message that we were seeing in OpenShift complains about missing health checks. I think that the liveness probe alone might be enough.

You are right, we both need the readiness and liveness probe. I've already added both to the deployment, so we should be good to go.

By the way, how did you get this screenshot? Do you have an OpenShift cluster around? I'd be interested to test this new feature with a real OpenShift cluster.

@maelvls do we also need the readiness probe? The error message that we were seeing in OpenShift complains about missing health checks. I think that the liveness probe alone might be enough.

You are right, we both need the readiness and liveness probe. I've already added both to the deployment, so we should be good to go.

Surely you were talking across purposes here. Tim said "I think that the liveness probe alone might be enough."
I do not think a readiness probe was required.

https://github.com/jetstack/jetstack-secure/issues/439#issuecomment-2489013789


[Low] Unary operator ~ not working

Hello,
The unary ~ operator gives error is_signed unimplemented (<class 'vsc.model.expr_unary_model.ExprUnaryModel'>)
I request you to look into this aspect.
Thank you
import vsc
import random
# random.seed(0)

@vsc.randobj
class Test:
    def __init__(self):
        self.a = vsc.rand_bit_t(8)
        self.b = vsc.rand_bit_t(8)

    @vsc.constraint
    def test_c(self):
        self.a == ~self.b

inst = Test()
inst.randomize()
print("a =", inst.a, "b =", inst.b)
print("Binary representation of a:", f"{inst.a:b}")
print("Binary representation of b:", f"{inst.b:b}")

Output is:
Failed with expression: (a == !(b))
is_signed unimplemented (<class 'vsc.model.expr_unary_model.ExprUnaryModel'>)

Corrected in 0.4.4. This bug was a side-effect from the improved expression-width tracking implemented for #81.


[TASK] Improved tooltip copy and hover state

Overview
The current tooltips do not provide enough context and information about certain components / actions. We want to experiment with more rich hover states that describe specific components or operations more clearly.
Task Checklist

[ ] Experiment with expressive hover states for each transact flow components

Tooltip copies will be addressed upon the completion of V2.


[docs] Update docs on new certified location

Certified operators are submitted via connect.redhat.com
Remove reference to certified-operators directory

/cc @aravindhp


Include .track in file names for cached dill files for builds with --track-widget-creation

This avoids the farm of bugs where a mixture of transformed and untransformed dill files are present.
After running tests both with and without the flag you now see dill files
build/testfile.dill
build/testfile.track.dill

After running an app and hot reloading both with and without --track-widget-creation you end up with
./build/app.track.dill
./build/app.dill.incremental.dill
./build/app.dill
./build/app.track.dill.incremental.dill

PTAL. Switched to make the change less invasive.


docs: Add how to setup project on local machine

Hey @saimanoharhm hope you are doing well, just a friendly tip, you can also link issues by just typing fixes/resolves and then the issue number you solved with # as a prefix
for example for your pr you can write something like resolves #2
this practice will help the reviewer in long run as when there are too many issues the reviewer will have to look for which issue to close manually after merging the pr.

Hey @saimanoharhm hope you are doing well, just a friendly tip, you can also link issues by just typing fixes/resolves and then the issue number you solved with # as a prefix
for example you can write something like resolves #2
this practice will help the reviewer in long run as when there are too many issues the reviewer will have to look for which issue to close manually after merging the pr.

@VishvamPorwal Sure dude. Since there are no issue and Pull request templates for this project that's the reason I didn't mention that.

Lol I didn't check if there was an issue or not 😅


Scale GKE nodes in addition to pods

Currently we scale on pods, but it would be nice to scale on nodes as well.

FYI @wajihyassine

Briefely tested this while I was building out the Celery/Redis k8s scripts and it seemed fine ,just need to run a few tests to confirm but changes should hopefully be minor. Will assign to add this in sometime when the Celery/Redis k8s deployment is merged.

GKE autoscaling docs: https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-autoscaler
Would just need to add in --enable-autoscaling --min-nodes=1 --max-nodes=MAX then adjust .clusterconfig accepting a minimum node and maximum node assuming no other problems


ModuleNotFoundError: No module named 'project'

Does this issue occur when all extensions are disabled?: YES

VS Code Version: 1.70.0 on x64
OS Version: Windows 10 Pro 21H2

Steps to Reproduce:

Move to project folder cd project_folder
Open VSCode code .
Click on F1 and select interpreter
Run the code poetry run python .\examples\divide_numbers.py
Error occur : ModuleNotFoundError: No module named 'module_name'

I've tested same code in same path with other competitor of VSCode and it's worked. For e.g PyCharm
NOTE : The module is default user defined module.
Repository structure as follows.
python-template-repository
├─ .github
│  ├─ ISSUE_TEMPLATE
│  │  ├─ bug_report.md
│  │  └─ feature_request.md
│  ├─ pull_request_template.md
│  └─ workflows
│     └─ build.yml
├─ .gitignore
├─ .pre-commit-config.yaml
├─ .style.yapf
├─ CODE_OF_CONDUCT.md
├─ CONTRIBUTING.md
├─ docs
├─ examples
│  └─ divide_numbers.py
├─ LICENSE
├─ poetry.lock
├─ project
│  ├─ divider.py
│  └─ init.py
├─ pyproject.toml
├─ README.md
└─ tests

/extPython

It looks like this is caused by the Python extension. Please file the issue to the Python extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.
Happy Coding!


KNOX-1971 - Upgrade Hashicorp Vault test to vault:1.2.1

What changes were proposed in this pull request?
vaultVersion in TestHashicorpVaultAliasService has been upgraded to 1.2.1.
How was this patch tested?
Ran Junit tests

@risdenk Please review this one! Thanks!

Merged this after pulling locally and rebasing.


Adding a video after the mixer has been playing causes video to fast-forward

This has something to do with the internal clock. The video tries to catch up to the internal clock, which causes it to fast-forward. We don't want this to happen.

https://gstreamer.freedesktop.org/documentation/gstreamer/gstpad.html?gi-language=c#gst_pad_set_offset
sink_pad.get_parent_element().get_current_running_time();
src_pad.set_offset() in Rust. Set this based on current running time of pipeline.


Beta branch: wave circle mode behaves incorrectly with "drawing area margin" > 0

The drawing area margin setting when used with the wave circle seems to create a large off-center circle that looks a bit like a partial eclipse.

https://github.com/NickvisionApps/Cavalier/releases/tag/2023.8.1-rc1


error when trying to add email, profile API permission to app

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az ad app permission add
Errors:
The command failed with an unexpected error. Here is the traceback:
not enough values to unpack (expected 2, got 1)
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.37.0/libexec/lib/python3.10/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/Cellar/azure-cli/2.37.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
    raise ex
  File "/usr/local/Cellar/azure-cli/2.37.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/usr/local/Cellar/azure-cli/2.37.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 718, in _run_job
    return cmd_copy.exception_handler(ex)
  File "/usr/local/Cellar/azure-cli/2.37.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/role/commands.py", line 54, in graph_err_handler
    raise ex
  File "/usr/local/Cellar/azure-cli/2.37.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 697, in _run_job
    result = cmd_copy(params)
  File "/usr/local/Cellar/azure-cli/2.37.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 333, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/local/Cellar/azure-cli/2.37.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/usr/local/Cellar/azure-cli/2.37.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/role/custom.py", line 859, in add_permission
    access_id, access_type = e.split('=')
ValueError: not enough values to unpack (expected 2, got 1)

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az ad app permission add --api {} --id {} --api-permissions {}

Expected Behavior
Environment Summary
macOS-12.4-x86_64-i386-64bit, Darwin 21.5.0
Python 3.10.5
Installer: HOMEBREW

azure-cli 2.37.0

Extensions:
azure-iot 0.11.0
azure-devops 0.22.0
fzf 1.0.2

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Additional Context

@jiasli for awareness

Kindly see https://github.com/Azure/azure-cli/pull/22848.


Making it clearer when Assert suspends execution

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

File
Status
Preview URL
Details

Language/Reference/User-Interface-Help/assert-method.md
:bulb:Suggestion
View
Details

Language/Reference/User-Interface-Help/assert-method.md

Line 2, Column 1: [Suggestion-description-missing] Missing required attribute: 'description'.

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 in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


enable ESM

Link to

https://github.com/Chatie/tsconfig/issues/16

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Post release automated changes for synapse releases

Post release automated changes for azure-synapse-artifacts

API change check
API changes are not detected in this pull request.


Handling EC2 Health Scheduled Events

Add cw-events-substack, which contains the resources needed to handle scheduled events. New resources include: CW rule to match scheduled events, sqs health queue to receive message sent by CW rule, and additional SQS queue policy to enable rule sending message to health queue
Add integration test to test end-to-end behavior of the system by sending a fake scheduled event
This feature can be turned off by specifying disable_health_check = True in /etc/sqswatcher.cfg and restarting sqswatcher

Signed-off-by: Rex<EMAIL_ADDRESS>By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #1739 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #1739   +/-   ##
========================================
  Coverage    52.61%   52.61%
========================================
  Files           24       24
  Lines         3959     3959
========================================
  Hits          2083     2083
  Misses        1876     1876

Continue to review full report at Codecov.

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

Codecov Report

Merging #1739 into develop will decrease coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1739      +/-   ##
===========================================
- Coverage    53.01%   52.97%   -0.04%
===========================================
  Files           24       24
  Lines         3984     3981       -3
===========================================
- Hits          2112     2109       -3
  Misses        1872     1872

Impacted Files
Coverage Δ

cli/pcluster/config/validators.py
82.18% <0.00%> (-0.12%)
:arrow_down:

cli/pcluster/config/mappings.py
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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