adding tags for the repo

Hello,
Adding tags for repo could specify points in history and mark release points.
It's helpful for user to know the version and status of repository, and would enable wider distribution of the library, for example it could be hosted by cdnjs (website)
Would you please consider on using tags?
Thanks for your great work!

amroamroamro, thanks for doing all that.
I'm horribly ignorant of git internals, but I think commit identifiers and tags are based on hashes of branch state.
If so, the hashes in amroamroamro/code-prettify/tags
should line up with the hashes in google/code-prettify making it fairly simple to reproduce your work.
Do you know if that's the case?

yes, a tag in git is simply a pointer to a specific commit.
The way git internally manages lightweight tags is that it stores SHA-1 checksums of commits in a text file (either one-file-per-ref under .git/refs/tags/, or all combined in one file .git/packed-refs for efficiency).
One the other hand, annotated tags are much like regular commit objects stored in the git database (they carry more information like author and date and can be cryptographically signed and verified).
Here are the tags I created:
$ git show-ref --tags -d
ca84bd1fe27748a93ffb65791e062b590517e6ed refs/tags/release-2-Apr-2007
81a8ec22194b44ff37e066b04b22c0967d0bba06 refs/tags/release-22-May-2007
565f704c417dff497294ec82f2e05499e9900a95 refs/tags/release-31-Aug-2007
fb8183660a522c49a0b4c5684b821bdf674b97b9 refs/tags/release-4-Jul-2008
6f4a2d6701f2b94c00ac704d4dace0634475dccb refs/tags/release-5-Jul-2008
60cf2e0e165b8269fb4b2a1a2dafa969e4bd6f71 refs/tags/release-14-Jul-2008
6c989238dbb40cbf6d09fee42044c148496ca301 refs/tags/release-8-Jan-2009
bb9db834e4e90152de473c186416ff58711637a0 refs/tags/release-21-May-2009
2af3a2ed4a985d1f24ea3afedf9885e658004eed refs/tags/release-3-Dec-2009
ed2bf56c00ff71b18e7581b47cd2c5fbcd1b00bf refs/tags/release-21-Jul-2010
f1d86b2ba8457e7702881d0fae2d98598303ac7f refs/tags/release-1-Jun-2011
7819105327a51a4b72618b86926a13636c4186a4 refs/tags/release-10-Feb-2013
f5972ab29d1920f42b9d62bf0727fcfb27a6e62e refs/tags/release-23-Feb-2013
4f16682c53ea98ea02f7454b6320df8a9f492438 refs/tags/release-25-Feb-2013
12a278337b7710ddba374cf41b410d1bdedbdd3e refs/tags/release-4-Mar-2013
22815944f9a5b6b7f5529ce27718103eb5c1ad7d refs/tags/release-21-Jun-2013

@mikesamuel
I recently picked up prettify-matlab again to give it some updates (I changed the build system to Node.js/Grunt among other things).
A bit late now but since I have access here, if it's alright with you, I'm willing to help with the above issue creating the tags and adding the releases ?
I also have some other fixes, for which I'll create a pull-request for review.

I've since replicated the above in this repo. Tags were created and named as yyyy-mm-dd. I also added releases using the downloads from the old SVN repo.


List readings command

🚀 Feature Request
Description
Since event can have multiple readings, it would be easier to list the readings in a separate command like: edgex reading list.
In the future, we could list readings for:

A specific event
A specific device
Any other possible filter allowed by the API

This can be done either through this route: http://localhost:48080/api/v1/reading
Or by iterating over each reading in each event object in this route:  http://localhost:48080/api/v1/event
Want to work on this @nkstanchev? No worries if you have other things on your plate.

It's fine. I'll take it


Website SSL

You guys are all about auth and security.
Not having an SSL on your website is a bad look and takes 5min to rectify.
Not here to throw stones - I'm equally guilty of not giving our website any love or attention and few min ago just rectified same ssl issue for us. For you I see it as more important...

And this is still not fixed?

The website is now available with TLS at https://www.passportjs.org.


Public Structs with Private Fields

I've searched all over the docs and the issues page here and haven't found an answer to a question which I think would have been asked by now. Please forgive me if I've missed it.
How can I generate bindings for a struct with private fields?
pub struct Calc {
    db: SqlitePool,
}

I do not want to make db public because there is no need for it on the Dart side and generating mirror bindings for SqlitePool was creating all sorts of difficulties (all of it's fields are private).
Whenever I try to generate bindings for this struct, I get many of these errors in frb_generated.rs:
// Codec=Dco (DartCObject based), see doc to use other codecs
impl flutter_rust_bridge::IntoDart for crate::api::calc::Calc {
    fn into_dart(self) -> flutter_rust_bridge::for_generated::DartAbi {
        [self.db.into_into_dart().into_dart()].into_dart()
    }
}

field `db` of `Calc` is private [E0616]

And furthermore, I'm getting errors that SqlitePool isn't in scope even though there should be no need for frb to generate code for it:
error[E0412]: cannot find type `SqlitePool` in this scope
  --> src/frb_generated.io.rs:20:69
   |
20 | ...enerated::rust_async::RwLock<SqlitePool>>::increment_strong_count(ptr as _);
   |                                 ^^^^^^^^^^ not found in this scope
   |
help: consider importing this type alias
   |
6  + use sqlx::SqlitePool;

I feel like I'm missing something obvious but I can't figure it out. Any help would be greatly appreciated.

What about adding #[frb(opaque)] to your struct definition - then everything inside it will be opaque.

Thank you! That did the trick.
Question, where is this found in the documentation? I looked for this but even in the opaque section, I don't see anything about the frb(opaque) derive macro.
docs.rs doesn't have anything about this either.

Doc: https://cjycode.com/flutter_rust_bridge/guides/types/arbitrary/rust-auto-opaque#force-a-non-opaque-type-to-be-opaque I agree it is not trivial to find it, since frb has so many features. But no worries, if you (or anyone else) cannot find something, just create an issue, and I usually reply quickly ;)


Can I put executor function on an async method?

title

The executor function helper is designed to allow 'heavy' (blocking) synchronous functions to be easily wrapped to be callable from an async context. This is supposed to be a shortcut for the traditional route of using run_in_executor yourself, since that requires some more long-form setup, especially if you need special things like kwargs.
Since the entire point of using an executor is to take things out of the event loop, I'm not sure why you'd want to be able to use the wrapper on an async function. If the function is async, you should just await it directly unless you have a really good reason not to do so.


Add logs section

What does this PR do?
Adds logs section to readme and example yaml file.
Adds the log collection category to the manifest file
Most of this info came from here - http://www.postfix.org/BASIC_CONFIGURATION_README.html#syslog_howto
Motivation
We now have an OOTB logs pipeline for postfix so update the docs and yaml to reflect that.
Review checklist

[ ] PR has a meaningful title or PR has the no-changelog label attached
[ ] Feature or bugfix has tests
[ ] Git history is clean
[ ] If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo
[ ] If PR adds a configuration option, it has been added to the configuration file.

Additional Notes
Anything else we should know when reviewing?

Thanks @l0k0ms and @phrawzty ! I've addressed the reviews above. I'll keep this PR scoped to just the postfix integration, but we can work on fixing the other integration's configs/readme-s for clarity in a future PR.

Thanks for the suggestions/review. I think I've addressed everything @phrawzty Could you take another look?


Set table height/width from data

Should be fieldHeight * number of subjects (height) and fieldWidth * number of columns (width).

Closed by #68


Add --single-instance switch

This PR adds a --single-instance option that prevents application from being run multiple times. If such a situation occurs, the already running instance is brought to front.
Fixes #322.

When will this be merged? I definitely want this!

Ditto.

Thanks @zbicin! 👍 💯

Success!


Add unit tests to CI

We have a set of unit tests that should be run prior to merging a PR to main. Let's add a GitHub action to run the tests and make it a required check before merging.
At lease one unit test is failing, so they may need some attention before we start requiring them.

Can you assign this task for the community? I can help with the implementation

Can you assign this task for the community? I can help with the implementation

Assigned to community! Thanks for taking it on, much appreciated. ❤


Missing export on commonjs

main.mjs:
import { answer } from './file.cjs'

console.log(answer)

file.cjs:
module.exports = require('./answer.cjs')

answer.cjs:
exports.answer = 42

Logs undefined.
There was an attempt to fix that in https://github.com/jsenv/jsenv-core/pull/196 but it seems to be on rollup side.
I will use this issue to track what's hapenning on the rollup issue and eventually find alternatives or workaround.

Promising but only command line https://github.com/azu/commonjs-to-es-module-codemod

I will go with
https://github.com/snowpackjs/snowpack/blob/d004e827e0781144cc84c5d935c64996e4723116/esinstall/src/rollup-plugins/rollup-plugin-wrap-install-targets.ts#L62
and
https://github.com/snowpackjs/snowpack/blob/d004e827e0781144cc84c5d935c64996e4723116/esinstall/src/index.ts#L337-L344


I was running the code on google Colab and I got this error

I was running the code on Colab and I got this error
Using cuda for inference.
Reading video frames...
Number of frames available for inference: 211
/content/EmoGen/audio.py:100: FutureWarning: Pass sr=16000, n_fft=800 as keyword args. From version 0.10 passing these as positional arguments will result in an error
return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels,
(80, 2372)
Length of mel chunks: 885
0% 0/4 [00:00<?, ?it/s]
0% 0/14 [00:00<?, ?it/s]
7% 1/14 [00:12<02:41, 12.42s/it]
14% 2/14 [00:13<01:09,  5.82s/it]
21% 3/14 [00:15<00:42,  3.83s/it]
29% 4/14 [00:16<00:27,  2.79s/it]
36% 5/14 [00:18<00:21,  2.44s/it]
43% 6/14 [00:19<00:16,  2.11s/it]
50% 7/14 [00:20<00:12,  1.81s/it]
57% 8/14 [00:21<00:09,  1.62s/it]
64% 9/14 [00:23<00:07,  1.49s/it]
71% 10/14 [00:24<00:05,  1.40s/it]
79% 11/14 [00:25<00:03,  1.33s/it]
86% 12/14 [00:26<00:02,  1.29s/it]
93% 13/14 [00:27<00:01,  1.26s/it]
100% 14/14 [00:30<00:00,  2.18s/it]
Load checkpoint from: /content/EmoGen/checkpoint/pre.pth
0% 0/4 [00:31<?, ?it/s]
Traceback (most recent call last):
File "/content/EmoGen/inference.py", line 298, in
main()
File "/content/EmoGen/inference.py", line 265, in main
model = load_model(args.checkpoint_path)
File "/content/EmoGen/inference.py", line 180, in load_model
s = checkpoint["state_dict"]
KeyError: 'state_dict'

Hi @sagarbangade, try PL+DA checkpoint once and see if its working?

I was running the code on Colab and I got this error
Using cuda for inference. Reading video frames... Number of frames available for inference: 211 /content/EmoGen/audio.py:100: FutureWarning: Pass sr=16000, n_fft=800 as keyword args. From version 0.10 passing these as positional arguments will result in an error return librosa.filters.mel(hp.sample_rate, hp.n_fft, n_mels=hp.num_mels, (80, 2372) Length of mel chunks: 885 0% 0/4 [00:00<?, ?it/s] 0% 0/14 [00:00<?, ?it/s] 7% 1/14 [00:12<02:41, 12.42s/it] 14% 2/14 [00:13<01:09, 5.82s/it] 21% 3/14 [00:15<00:42, 3.83s/it] 29% 4/14 [00:16<00:27, 2.79s/it] 36% 5/14 [00:18<00:21, 2.44s/it] 43% 6/14 [00:19<00:16, 2.11s/it] 50% 7/14 [00:20<00:12, 1.81s/it] 57% 8/14 [00:21<00:09, 1.62s/it] 64% 9/14 [00:23<00:07, 1.49s/it] 71% 10/14 [00:24<00:05, 1.40s/it] 79% 11/14 [00:25<00:03, 1.33s/it] 86% 12/14 [00:26<00:02, 1.29s/it] 93% 13/14 [00:27<00:01, 1.26s/it] 100% 14/14 [00:30<00:00, 2.18s/it] Load checkpoint from: /content/EmoGen/checkpoint/pre.pth 0% 0/4 [00:31<?, ?it/s] Traceback (most recent call last): File "/content/EmoGen/inference.py", line 298, in main() File "/content/EmoGen/inference.py", line 265, in main model = load_model(args.checkpoint_path) File "/content/EmoGen/inference.py", line 180, in load_model s = checkpoint["state_dict"] KeyError: 'state_dict'

I've encountered similar issues. just same error came  like the one you mentioned, can you please help me to solve this problem?

Hi @sagarbangade @subhajyotirkmveri, Please check these comments and see if any works in your case
https://github.com/sahilg06/EmoGen/issues/22#issuecomment-2005693584
https://github.com/sahilg06/EmoGen/issues/13#issuecomment-1703728717


How to change the font size of body text？

@etigerstudio
Hello，
The font size of the title is fine. I want to adjust the font size of the body text and want to make it bigger. What do I have to change in the code please?

Thanks.

Sry for my late response!
It's quite easy to change the font size of the body text. You may just open the CSS file and adjust the font size to whatever you like in Line 12 (below the html selector). Restart Typora and it's done！🎉

Thank you for trying out this theme! Hope you are happy with it!


Improve spec speed

Removes large fixture file, even for non 1.9.3  …

The test is to make sure that json is used
The size of the json is irrelevant really, just that the right library is used and the json is parsed.
Speeds up test suite a gobsmacking amount with parallel tests (~10 mins -> 1 minute)

Adds parallel tests rake task  …
Comparison on an 8 core Mac:
$ bundle exec rake parallel_spec
746 examples, 0 failures, 10 pendings

Took 93 seconds (1:33)

Vs Vanilla spec:
$ bundle exec rake spec
Finished in 3 minutes 4.8 seconds (files took 2.14 seconds to load)
746 examples, 0 failures, 10 pending

Changes travis to use parallel specs
Lets speed up that CI!

Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests.

Note: Repeated running on a dev machine make this faster: ParallelTests::RSpec::RuntimeLogger sorts tests into profiled chunks, decreasing running time :+1:

Consistant 2 mins ~ specs in Travis :fireworks:

Travis doesn't like you @petems
Please use --help for a listing of valid options
invalid option: --random (defined in ENV['SPEC_OPTS'])

Whoops, should be fixed now! :sweat:

WHOOO


[Feature][Trainingtest][1899065]

Created new feature for default hide app. Please review.

Closing the PR, Test PR.


cant "import tensorflow-rocm 2.0 beta1" after installing rocm 2.6

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): no
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): tensorflow-rocm 2.0beta1 installed from source (worked fine with rocm 2.5)
TensorFlow version (use command below):
Python version: 3.6
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
ROCm/MIOpen version: 2.6
GPU model and memory: radeon vii x 2

Describe the current behavior
Error while trying to import:
ImportError                               Traceback (most recent call last)
/mnt/big_fast/CELLS/tf20cells/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py in
57
---> 58   from tensorflow.python.pywrap_tensorflow_internal import *
59   from tensorflow.python.pywrap_tensorflow_internal import version
/mnt/big_fast/CELLS/tf20cells/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py in
27             return _mod
---> 28     _pywrap_tensorflow_internal = swig_import_helper()
29     del swig_import_helper
/mnt/big_fast/CELLS/tf20cells/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py in swig_import_helper()
23             try:
---> 24                 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
25             finally:
/usr/lib/python3.6/imp.py in load_module(name, file, filename, details)
242         else:
--> 243             return load_dynamic(name, filename, file)
244     elif type_ == PKG_DIRECTORY:
/usr/lib/python3.6/imp.py in load_dynamic(name, path, file)
342             name=name, loader=loader, origin=path)
--> 343         return _load(spec)
344
ImportError: /mnt/big_fast/CELLS/tf20cells/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZN8hip_impl13program_state11executablesE11hsa_agent_s
During handling of the above exception, another exception occurred:
ImportError                               Traceback (most recent call last)
 in
----> 1 import tensorflow as tf
2 AUTOTUNE = tf.data.experimental.AUTOTUNE
3 import sys
4 sys.path.append('rxrx1-utils')
5 from tqdm import tqdm
/mnt/big_fast/CELLS/tf20cells/lib/python3.6/site-packages/tensorflow/init.py in
38 import sys as _sys
39
---> 40 from tensorflow.python.tools import module_util as _module_util
41
42 from tensorflow._api.v2 import audio
/mnt/big_fast/CELLS/tf20cells/lib/python3.6/site-packages/tensorflow/python/init.py in
47 import numpy as np
48
---> 49 from tensorflow.python import pywrap_tensorflow
50
51 # Protocol buffers
/mnt/big_fast/CELLS/tf20cells/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py in
72 for some common reasons and solutions.  Include the entire stack trace
73 above this error message when asking for help.""" % traceback.format_exc()
---> 74   raise ImportError(msg)
75
76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long
ImportError: Traceback (most recent call last):
File "/mnt/big_fast/CELLS/tf20cells/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/mnt/big_fast/CELLS/tf20cells/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/mnt/big_fast/CELLS/tf20cells/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/usr/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/usr/lib/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: /mnt/big_fast/CELLS/tf20cells/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: undefined symbol: _ZN8hip_impl13program_state11executablesE11hsa_agent_s
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
Describe the expected behavior no error
Code to reproduce the issue
import tensorflow as tf
Other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

Hi @witeko , it looks like your HIP version was not upgraded to ROCm2.6.
Could you try to purge all the ROCm user-bit components on your bare metal system and install ROCm2.6 from clean?
sudo apt autoremove -y rocm_bandwidth_test rocminfo hsakmt-roct hsa-rocr-dev rocm-cmake hsa-ext-rocr-dev rocm-device-libs hip_base hip_samples
sudo apt update && sudo apt install rocm-libs miopen-hip cxlactivitylogger

@sunway513 ive purged rocm components 2 times, and i also purged tensorflow. The issue persists.

@witeko , does it work with the latest public docker container? Can you try with that:
rocm/tensorflow:rocm2.6-tf1.14-python3

@sunway513 Ive tried sth else - I used pip install tensorflow-rocm==2.0.0b1 this time instead of my "build from source" version, and this time it works. :)

@sunway513 thanks for your help. :)

Great, thank you @witeko  for the update :-)


Travis needs updating

It’s still looking for the old repo name.

Travis has … now figured out the new repo name. https://travis-ci.org/StoDevX/stograde


chore: eslint - use parserOptions.project in order to use more eslint rules

 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.

no-unsafe-member-access example:

I expended on this PR in #110
Thanks @TomHermanSAP 👍


Improving JS semantic a little bit, and AST macros

Thinking about possible alterations of JS semantics, disabled by default and enabled with flag.
Customizable operators, on any object, a bit dirty, with types.
Following transformation required.
a in b # => b.contains(a)
a + b  # => a.plus(b)
a == b # => a.equals(b)
a < b  # => a.lessThan(b)

a[k]     # => a.get(k)
a[k] = v # => a.set(k, v)
etc.

And so it would be possible math support Vec(1, 2) + Vec(2, 4), Vec(1, 2)[1] sorting for arbitrary
objects if it defined compare, proper equality check, properly working in like 'a' in ['a', 'b'] # => true if contains defined, etc.
A bit dirty, as it would require to define Number/String/Etc.prototype.contains/plus/equals/etc but it shouldn't be that bad. Also it should work with TypeScript.
Extend Array and Object, clean, with types.
[1, 2]  # => _array([1, 2])
{ a: 1} # => _record({ a: 1 })

So it would be possible intercept object/array creation and alter it or return other implementation. So finally we don't need Object.keys(o) noncense, and it's going to be o.keys(). Maybe add more methods like o.merge(other), o.size() etc.
Same with Array, fix sort|reverse|etc mutable versions and replace it with immutable functions, implement sort properly with comparators. Improve Array interface.
Clean, changes isolated, no built-in or library code affected, and it also should work with TypeScript.
Method call interceptor, almost clean, not sure if types would work.
Relatively safely extend built in types, only one property extensions will be added to pototype, and some other use cases.
o.fn(x, y) => _call(o, "fn", [x, y])

With something like
function _call (o, fn, args) {
  (o.extensions[fn] || o.fn).call(o, args)
}
Object.prototype.extensions = {
  keys: function () { return Object.keys(this) }
  isEmpty: function () { for (let _ in this) return false; return true  }
}
String.prototype.extensions = {
  isEmpty: function () { return this.length == 0 }
}

Implementation
Could be done as plugins, if Civet would accept custom transform(ast): ast function, same way as babel does.
I created these transformations for babel for example the code for object and array wrappers done as. But it can't be done on the Civet output code, transformation needs to be done on the Civet AST.
...
if (path.type == 'ArrayExpression' && !wrapped.includes(path.node)) {
  wrapped.push(path.node)
  path.replaceWith(
    t.callExpression(t.identifier('_array'), [
      t.toExpression(path.node),
    ])
  )
}

if (path.type == 'ObjectExpression' && !wrapped.includes(path.node)) {
  wrapped.push(path.node)
  path.replaceWith(
    t.callExpression(t.identifier('_object'), [
      t.toExpression(path.node),
    ])
  )
}
...

Yes, it's more like experiment, maybe the easiest way could be a config option to supply transform(ast): ast like in babel, unstable, but easy to experiment and don't add too much burden to the core team.


Standard Material GGX specular highlight issue

The engine (at least 1.50.0) fails to compile shader for a standard material that has GGX specular highlight option enabled.
Repro:
https://playcanvas.com/editor/scene/1285178

It seems in repro project the shader compiles fine at runtime, but in our project it also fails (both in Editor and in Launcher).

The Editor update to 1.50.0 hasn't been released yet so the Editor page is still using 1.49.4.
Looks like the error only happens in the Editor when the cube or material is selected.

In the live project it crashes when a template that has that entity gets instantiated at runtime.

Does it happen in 1.49.4? Or just 1.50.0?


vendor problem

I have used libnetwork, it contains netlink package in vendor, I also use netlink package in my vendor directory, it conflicts with libnetwork's vendor, how to deal with it？

when you vendor libnetwork in your project you won't bring the vendor folder of libnetwork with it, this is what is happening already in https://github.com/moby/moby, if you navigate the folders where libnetwork is vendored you will find only the libnetwork files not its dependencies: https://github.com/moby/moby/tree/master/vendor/github.com/docker/libnetwork

(Closing for now, let me know if you have further questions)


Mapping execution order should be deterministic

I was thinking through the implications of having multiple contracts as data sources, and I think I found some situations where, due to concurrency, the order in which mappings get executed is not deterministic, implying that the entities in the store are not produced deterministically.
In the current implementation, each RuntimeHost gets its own stream of events from the EthereumAdapter, consuming events as fast or as slow as it wants. I think we need to force each RuntimeHost within a subgraph to process events in a particular order and at particular times so that the mappings are executed in a consistent order.
Fixing this would require reworking a number of components. I'm thinking we should aim for something like this:

Information about blocks (and the events they contain) flows to the different subgraphs (SubgraphProviders?).
Every time a block (or block rollback) is received, each subgraph provider is responsible for ensuring its store is updated in a single atomic transaction
To do this, the subgraph provider iterates through the events in the block once, passing events off to the appropriate RuntimeHost as appropriate
Importantly, if multiple RuntimeHosts are interested in the same event, we need a deterministic answer to the question of who sees the event first.

@yanivtal
@Jannis

The Subgraph Provider serves a different purpose—it's the component that manages registered subgraphs and notifies the system of when they change.
For each subgraph, we currently spin up multiple Runtime Hosts, one for each mapping. The spinning up and lifecycle management of these is done via a single Runtime Manager.
We should improve this a little and incorporate the above requirement for deterministic execution.
Proposed architecture
Note: I'd love to simplify the vocabulary it bit, align it more closely with the terminology used in manifest specs (e.g. Runtime Host => Mapping Host or Mapping Runtime Host) and get rid of "manager", "provider" wherever we can think of something more specific.
I'd turn the Runtime Manager into a Subgraph Manager and make it manage several _Subgraph Instance_s, one for each subgraph. Each of these manages multiple _Mapping Runtime Host_s, one for each mapping.
Event streaming / processing
We have each Mapping Runtime Host request an event stream for the event/transaction signatures it wants to monitor from the Subgraph Instance.
The Subgraph Instance in turn requests a single stateful blockchain event stream based on these from e.g. the Ethereum Adapter.
Upon receiving a block's events via this stream, the Subgraph Instance opens a "transaction", processes all events in deterministic order, collects the created entities and, upon success, submits the transaction to the store.


Generate Unit Tests command never works the 1st time

Version v0.17.1701788840 on VS Code
Repro:

Select an entire code file
Right click -> Cody -> Generate Unit Tests
See error
Repeat steps 1 and 2, and it works the 2nd time (I can repro this consistently)

@sqs are you still able to repro on the latest Cody? I cannot: https://www.loom.com/share/bdffab817941451b9ef37d1acc2414d1?sid=6a5112b7-eada-4759-920f-40193a0c6f81
I suspect some of the recent changes to address race conditions on command startup may have fixed this?


Clear DB at start of each i-test, and reseed DB at the end of all i-tests.

 Integration testing strategy


Running ember serve from Intellij IDE through Run (^R) throws errors - existing with code 127

Description
/Users/workspace/web_ui/node_modules/.bin/ember serve
env: node: No such file or directory
Process finished with exit code 127
Steps to Reproduce

at times, after newly opening IntelliJ IDE
when i restart the IDE it works fine

Expected behavior: Start ember server
Actual behavior: Throws error in Run tool window
Reproduces how often: Alternate number of times.
Versions

IntelliJ:

IntelliJ IDEA 2018.2.5 (Ultimate Edition)
Build #IU-182.4892.20, built on October 16, 2018

The version of intellij-emberjs:

2018.2.4-0

it sounds like IntelliJ can't find your Node.js executable

why does it happen at alternate number of time? However i specified node path under
preference -> languages & frameworks -> node.js and npm

why does it happen at alternate number of time?

I don't know...

However i specified node path under
preference -> languages & frameworks -> node.js and npm

I think we might not use that path but instead look for a global node binary. @makepanic might know this?

Yes we execute the node_modules/.bin/ember executable directly.
I guess on your system #!/usr/bin/env node returns nothing.
Maybe it's a good idea to also check if we can access the global node binary.


No output from Avatarify Camera

The app itself functions fine, with a visible working preview, but the output from Avatarify Camera is just a gray screen. Makes it pointless to use unless I use some sort of screen streaming software which was one of the biggest annoyances of the command line version.
I'm running it on a GTX 1070 Ti with an  Intel i7 2600 and 20 GB of RAM, Windows 10 Build 19041.867

Where are you looking at the output of Avatarify? Both the desktop and the python version should create a virtual camera device that is usable in the same way as a real camera in most apps

I've tested it in both zoom (desktop) and discord (chrome). In both cases it's just a gray screen. I have plenty of other virtual cameras that work fine (like OBS, ManyCam, Xsplit to name a few), but the one from avatarify has no output. Also, I wasn't aware the command line version made a virtual camera, but perhaps I was using an earlier version.

Did you start those programs after you ran Avatarify? I know there have been some issues with starting Avatarify after the program you want to use it in, but perhaps in those cases the virtual camera wasn't found at all..
Do you have all those other virtual cams installed right now? Perhaps there's some conflict..


As a user, I would like to have the possibility to select the current time stamp when manually tracking a ticket.

Expected Behavior
As a user, I would like to have the possibility to select the current time stamp when manually tracking a ticket.
Actual Behavior
Currently, the date is taken where chronos was started. Under MacOs, however, the programs are permanently open. This means that after two days, the date of 2 days ago is also displayed there when you manually track.
Steps to Reproduce the Problem

Open the program and leave it open
1 day later, manually tracking a worklog
Old date is included as standard date

Specifications

Chronos-timetracker version: 2.4.6
OS: MacOS

Fixed, THX!


Xcode 14.3 doesn't use credentials (from netrc or keychain) for auth to spm registry

Description
I'd tried to use this solution (self hosted spm registry )
The main thing is - after success auth, utility append new credentials to ~/.netrc file or mac os keychain
In my case all credential was appended, but credential getting from netrc or keychain only when i use command line utility
If i try to use Xcode, i got auth error status response that means credentials didn't send.
I've checked request headers, and exactly as i thought, credential didn't send
In my case file content seems like that:
.swiftpm/configuration/registries.json
{
  "authentication": {
    "spm-registry.net": {
      "type": "token"
    },
  },
  "registries" : {
    "scope" : {
      "url" : "https://spm-registry.net/api/spm-registry/"
    }
  },
  "version" : 1
}

~/.netrc
machine spm-registry.net
login token
password <TOKEN>

Expected behavior
Xcode use credentials from netrc or keychain
Actual behavior
Credential was used only when i run cmd utility
Steps to reproduce

Install Xcode 14.3
Setup registries url by command line
Setup registries auth by command line
Run your self-hosted spm registry
Try to resolve dependencies by Xcode application

Swift Package Manager version/commit hash
No response
Swift & OS version (output of swift --version && uname -a)
###############################

$ swift --version
swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-<IP_ADDRESS>.2 clang-14<IP_ADDRESS>.100)
Target: arm64-apple-macosx13.0

###############################

$ swift package  --version
Swift Package Manager - Swift 5.8.0

###############################

$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 13.1 (22C65)
      Kernel Version: Darwin 22.2.0
      ...

###############################

$ system_profiler SPDeveloperToolsDataType
Developer:

    Developer Tools:

      Version: 14.3 (14E222b)
      Location: /Applications/Xcode.app
      Applications:
          Xcode: 14.3 (21812)
          Instruments: 14.3 (64559.163)
      ...

rdar://107679395

cc @abertelrud

Hi @yim-lee, @abertelrud
Do you have any updates?

@yim-lee Can you confirm this will be available in a Xcode 14.x.x update or is it more likely this will be available only in the upcoming Xcode 15 beta?

@lukepistrol We will let you know the version when it's available.

Seems to be included in the Xcode 15 Beta!

@lukepistrol Yep!

Hello, I'm using XCode Version 15.0 beta 4 (15A5195m)

Xcode can't accept the credentials but in the server the authentication is valid.

@felipeska That's for npm?

Hello @yim-lee, No. I'm using https://jfrog.com/help/r/jfrog-artifactory-documentation/swift-registry.
Swift registry works fine using CLI, but when I add a dependency from Xcode (File -> Add package dependency) the error mentioned error is what I get.
It's possible to use private and authenticated repository from XCode?
It's possible to use authentication similar to the one used via .netrc? basic token.
I am aware that XCode offers some authentication for most used platforms (Github, GitLab. Sourcetree), but it seems that handling Swift packages from JFrog is not possible.
Thanks!

@felipeska Xcode only supports registry credentials saved in Keychain. Is there an internet password entry for the registry you use in Keychain?
https://github.com/apple/swift-evolution/blob/main/proposals/0378-package-registry-auth.md#macos-keychain

Xcode15 should make use of registry credentials from keychain, so closing this. Please create new issue if you still experience problem.

Hello, I'm using XCode Version 15.0 beta 4 (15A5195m)
...
Xcode can't accept the credentials but in the server the authentication is valid.

Same issue, doesn't work with Xcode 15.0.1

@saschpe I'm also having a hard time getting this working in Xcode. Have you gotten anywhere with this since?

Package registry credentials need to be added to Keychain via the swift package-registry login command or manually (by creating an item under "Internet Passwords").
At the end you should have an entry like this in Keychain:

Note that this is different from source control account. Registry operations do not use source control credentials.
If it still doesn't work after ensuring the registry credentials are in Keychain, one thing you might check is if there is more than one entry for the same registry in Keychain. In this case, delete all the entries for the registry and create a new entry again. We don't know what causes multiple entries to be saved for the same registry, for we can't reproduce it consistently, so it would be great to get more information if that's what's happening for you.

The proposal included using netrc, which would work for a CI environment, but that doesn't seem to work anymore.

What problem do you run into with netrc? netrc should still work, it's just that it's no longer the default if Keychain is available, but one can still override that using the --netrc option:
  --netrc                 Use netrc file even in cases where other credential stores are preferred

@yim-lee Yes the command correctly adds the credentials to netrc, however xcodebuild refuses to utilize them. xcodebuild fails on Resolve Package Graph saying missing or invalid authentication credential.  xcodebuild doesn't seem to utilize netrc as a valid source of credentials for package auth. If we instead authorize without --netrc, xcodebuild prompts the user for access to keychain and correctly resolves the package, but we can't do that on CI

xcodebuild doesn't seem to utilize netrc as a valid source of credentials for package auth. If we instead authorize without --netrc, xcodebuild prompts the user for access to keychain and correctly resolves the package, but we can't do that on CI

@justin-doordash I see. I will check with the team to see if we can fix/workaround this. In the meantime maybe there is some way to disable the Keychain prompt in CI?

@yim-lee There doesn't seem to be a way to disable the keychain prompt, but even if we did the package resolution would still fail because it's not using the netrc for auth. Should I open a new issue and describe the issue in depth?

but even if we did the package resolution would still fail because it's not using the netrc for auth

I was thinking you could use Keychain to store credentials if that's available in your CI environment.

Should I open a new issue and describe the issue in depth?

Yes, that would be great. Thanks @justin-doordash.

Package registry credentials need to be added to Keychain via the swift package-registry login command or manually (by creating an item under "Internet Passwords").
At the end you should have an entry like this in Keychain:
Note that this is different from source control account. Registry operations do not use source control credentials.
If it still doesn't work after ensuring the registry credentials are in Keychain, one thing you might check is if there is more than one entry for the same registry in Keychain. In this case, delete all the entries for the registry and create a new entry again. We don't know what causes multiple entries to be saved for the same registry, for we can't reproduce it consistently, so it would be great to get more information if that's what's happening for you.

@yim-lee The multiple credentials issue repeatedly happened to me.  I also was unable to connect to an authenticated repo with Xcode 15.  I've found that this problem seems to be due to upgrading from Xcode 14 to Xcode 15.  I've installed Xcode through the App Store and was constantly having these problems.  Once I deleted Xcode, and also deleted Xcode settings files like com.apple.dt.Xcode in locations like ~/Library/Application Scripts , ~/Library/Preferences , ~/Library/Containers, ~/Library/Developer, and ~/Library/Saved Application State followed by a reinstall of Xcode directly from the App Store, both of my problems disappeared.

@jeremybarr Yeah we were unable to reproduce the multiple credentials issue ourselves, so we didn't know what caused it or how to fix/workaround it. I am sorry for not able to offer solutions or alternatives when you ran into that problem. Glad to hear you figured that out and I am sure your notes will help others as well!

I see there's been a variety of questions here regarding authentication, but I still can't get past the adding the package as a local repository to an Xcode Project. We're trying it similar to @felipeska with Atrifactory, but can't get past the File -> Add package dependency step. Am I missing something?
We have .netrc file with the token credentials at the user level, there's a keychain (internet password type) item looking the same as @yim-lee posted above, but I still constantly get a dialog saying "authentication failed". 😞
Any help or pointers appreciated.

I see there's been a variety of questions here regarding authentication, but I still can't get past the adding the package as a local repository to an Xcode Project. We're trying it similar to @felipeska with Atrifactory, but can't get past the File -> Add package dependency step. Am I missing something?
We have .netrc file with the token credentials at the user level, there's a keychain (internet password type) item looking the same as @yim-lee posted above, but I still constantly get a dialog saying "authentication failed". 😞
Any help or pointers appreciated.

Yes, I am experiencing the same issue. Trying to add package dependency from the protected Artifactory Swift registry and failing at the Xcode Authentication screen. Keychain has credentials to connect to Artifactory. When I open "Add Package Dependency" window - Xcode prompts me to get access to keychain, which I grant. Then when I enter Artifactory URL to locate the package, Xcode displays Authentication window with error: "Authentication failed because the credentials were rejected". Once I manually enter User name/password - authentication still fails.
Registry URL and credentials are correct, I can confirm via running "swift package-registry login" and then "swift package resolve". I tried both types of authentication - basic and token -- both fail.
What am I missing? Why I cannot simply add protected Artifactory package dependency to Xcode app project via keychain creds or via manually entering credentials? Any missing steps here?

Registry package dependency is specified with package id in Package.swift rather than a URL. For example:
dependencies: [
    .package(id: "mona.LinkedList", .upToNextMajor(from: "1.0.0")),
],

I suggest that you try editing Package.swift to use id for packages that are supposed to be downloaded from Artifactory Swift registry, make sure the credentials are in Keychain, then see if Xcode and/or swift package resolve works.
Note that the corresponding Artifactory repo must have the "Swift" package type.

Registry package dependency is specified with package id in Package.swift rather than a URL. For example:
dependencies: [
    .package(id: "mona.LinkedList", .upToNextMajor(from: "1.0.0")),
],

I suggest that you try editing Package.swift to use id for packages that are supposed to be downloaded from Artifactory Swift registry, make sure the credentials are in Keychain, then see if Xcode and/or swift package resolve works.
Note that the corresponding Artifactory repo must have the "Swift" package type.

Xcode resolves private Artifactory dependencies listed in Package.swift just fine. This is not the issues.
The issue is only with adding private packages to application xcproject directly from the Xcode UI:

Application project does not contain Package.swift. It is not a package, it is a simple application project.

Xcode resolves private Artifactory dependencies listed in Package.swift just fine. This is not the issues.
The issue is only with adding private packages to application xcproject directly from the Xcode UI:

@ncharniauski Can you create a new issue detailing the steps it takes to reproduce the issue? Please include example of values you enter in the UI. e.g., do you type in Artifactory URL or package identifier?

Xcode resolves private Artifactory dependencies listed in Package.swift just fine. This is not the issues.
The issue is only with adding private packages to application xcproject directly from the Xcode UI:

@ncharniauski Can you create a new issue detailing the steps it takes to reproduce the issue? Please include example of values you enter in the UI. e.g., do you type in Artifactory URL or package identifier?

new issue is created: https://github.com/apple/swift-package-manager/issues/7237

Why is this issue closed? The netrc issue is still open. Or how can i resolve it? I have no access to the keychain on our CI, but I can add a token to the .netrc, but then it fails as described above.

@yim-lee @felipeska  I am facing the same issue of authentication failure while adding the swift package hosted in JFROG artifact using the url.
The same is working while trying to run "swift package-registry login" using the same credentials and following message occurs - "Login successful."
Can you please help me to resolve this issue?


Improved Side Navbar Interaction

Enhanced: #30
as per expected behaviour:
https://github.com/PranabKumarSahoo/sql-dev-tools/assets/38005544/3240eda0-bc51-4849-8946-a532843e994a

Good job @Girishbari, ⭐
Perfectly work. Now I'm merging the PR.
Thanks for your contribution.

Feel free to create another issues, if you've found something.
#Good Luck! ✌


add more function in JS

add the missing functions in c sharp

close it temporarily, because these functions are just used by trigger tree library.


Istio Integration 1.5.4 - could not get a 'istio' check instance with the new api

Output of the info page (if this is a bug)
===============
Agent (v7.19.0)
Status date: 2020-05-24 17:55:56.625100 UTC
Agent start: 2020-05-24 17:49:52.802714 UTC
Pid: 32234
Go Version: go1.13.8
Python Version: 3.8.1
Build arch: amd64
Check Runners: 4
Log Level: INFO
Paths
Config File: /etc/datadog-agent/datadog.yaml
conf.d: /etc/datadog-agent/conf.d
checks.d: /etc/datadog-agent/checks.d

Clocks
NTP offset: 728µs
System UTC time: 2020-05-24 17:55:56.625100 UTC

Host Info
bootTime: 2020-05-21 19:40:01.000000 UTC
kernelVersion: 4.14.177-139.253.amzn2.x86_64
os: linux
platform: debian
platformFamily: debian
platformVersion: bullseye/sid
procs: 259
uptime: 70h9m56s

Hostnames
ec2-hostname: ip-10-30-0-17.us-west-2.compute.internal
host_aliases: [ip-10-30-0-17.us-west-2.compute.internal-app-eks-dev-us-west-2]
hostname: i-066770fa01a4f99df
instance-id: i-066770fa01a4f99df
socket-fqdn: datadog-4jbt4
socket-hostname: datadog-4jbt4
host tags:
  cluster_name:app-eks-dev-us-west-2
hostname provider: aws
unused hostname providers:
  configuration/environment: hostname is empty
  gce: unable to retrieve hostname from GCE: status code 404 trying to GET http://<IP_ADDRESS>/computeMetadata/v1/instance/hostname

Metadata
cloud_provider: AWS
hostname_source: aws

=========
Collector
Running Checks
cpu
---
  Instance ID: cpu [OK]
  Configuration Source: file:/etc/datadog-agent/conf.d/cpu.d/conf.yaml.default
  Total Runs: 24
  Metric Samples: Last Run: 6, Total: 138
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 0, Total: 0
  Average Execution Time : 0s
  Last Execution Date : 2020-05-24 17:55:49.000000 UTC
  Last Successful Execution Date : 2020-05-24 17:55:49.000000 UTC

disk (2.8.0)
------------
  Instance ID: disk:e5dffb8bef24336f [OK]
  Configuration Source: file:/etc/datadog-agent/conf.d/disk.d/conf.yaml.default
  Total Runs: 23
  Metric Samples: Last Run: 310, Total: 7,130
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 0, Total: 0
  Average Execution Time : 23ms
  Last Execution Date : 2020-05-24 17:55:41.000000 UTC
  Last Successful Execution Date : 2020-05-24 17:55:41.000000 UTC

docker
------
  Instance ID: docker [OK]
  Configuration Source: file:/etc/datadog-agent/conf.d/docker.d/conf.yaml.default
  Total Runs: 24
  Metric Samples: Last Run: 528, Total: 12,672
  Events: Last Run: 0, Total: 1
  Service Checks: Last Run: 1, Total: 24
  Average Execution Time : 52ms
  Last Execution Date : 2020-05-24 17:55:48.000000 UTC
  Last Successful Execution Date : 2020-05-24 17:55:48.000000 UTC

file_handle
-----------
  Instance ID: file_handle [OK]
  Configuration Source: file:/etc/datadog-agent/conf.d/file_handle.d/conf.yaml.default
  Total Runs: 24
  Metric Samples: Last Run: 5, Total: 120
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 0, Total: 0
  Average Execution Time : 0s
  Last Execution Date : 2020-05-24 17:55:55.000000 UTC
  Last Successful Execution Date : 2020-05-24 17:55:55.000000 UTC

io
--
  Instance ID: io [OK]
  Configuration Source: file:/etc/datadog-agent/conf.d/io.d/conf.yaml.default
  Total Runs: 24
  Metric Samples: Last Run: 39, Total: 909
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 0, Total: 0
  Average Execution Time : 0s
  Last Execution Date : 2020-05-24 17:55:47.000000 UTC
  Last Successful Execution Date : 2020-05-24 17:55:47.000000 UTC

istio (3.0.0)
-------------
  Instance ID: istio:d59b9b7e31c0f7a3 [ERROR]
  Configuration Source: file:/etc/datadog-agent/conf.d/istio.yaml
  Total Runs: 24
  Metric Samples: Last Run: 0, Total: 0
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 0, Total: 0
  Average Execution Time : 0s
  Last Execution Date : 2020-05-24 17:55:42.000000 UTC
  Last Successful Execution Date : Never
  Error: list index out of range
  Traceback (most recent call last):
    File "/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py", line 800, in run
      instance = copy.deepcopy(self.instances[0])
  IndexError: list index out of range

kubelet (4.0.0)
---------------
  Instance ID: kubelet:d884b5186b651429 [OK]
  Configuration Source: file:/etc/datadog-agent/conf.d/kubelet.d/conf.yaml.default
  Total Runs: 24
  Metric Samples: Last Run: 624, Total: 14,952
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 4, Total: 96
  Average Execution Time : 181ms
  Last Execution Date : 2020-05-24 17:55:54.000000 UTC
  Last Successful Execution Date : 2020-05-24 17:55:54.000000 UTC

load
----
  Instance ID: load [OK]
  Configuration Source: file:/etc/datadog-agent/conf.d/load.d/conf.yaml.default
  Total Runs: 24
  Metric Samples: Last Run: 6, Total: 144
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 0, Total: 0
  Average Execution Time : 0s
  Last Execution Date : 2020-05-24 17:55:46.000000 UTC
  Last Successful Execution Date : 2020-05-24 17:55:46.000000 UTC

memory
------
  Instance ID: memory [OK]
  Configuration Source: file:/etc/datadog-agent/conf.d/memory.d/conf.yaml.default
  Total Runs: 24
  Metric Samples: Last Run: 17, Total: 408
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 0, Total: 0
  Average Execution Time : 0s
  Last Execution Date : 2020-05-24 17:55:53.000000 UTC
  Last Successful Execution Date : 2020-05-24 17:55:53.000000 UTC

network (1.15.1)
----------------
  Instance ID: network:e0204ad63d43c949 [OK]
  Configuration Source: file:/etc/datadog-agent/conf.d/network.d/conf.yaml.default
  Total Runs: 24
  Metric Samples: Last Run: 31, Total: 744
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 0, Total: 0
  Average Execution Time : 1ms
  Last Execution Date : 2020-05-24 17:55:45.000000 UTC
  Last Successful Execution Date : 2020-05-24 17:55:45.000000 UTC

ntp
---
  Instance ID: ntp:d884b5186b651429 [OK]
  Configuration Source: file:/etc/datadog-agent/conf.d/ntp.d/conf.yaml.default
  Total Runs: 1
  Metric Samples: Last Run: 1, Total: 1
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 1, Total: 1
  Average Execution Time : 294ms
  Last Execution Date : 2020-05-24 17:49:58.000000 UTC
  Last Successful Execution Date : 2020-05-24 17:49:58.000000 UTC

prometheus (3.2.1)
------------------
  Instance ID: prometheus:datadog.cluster_agent:f5472fa8014028f0 [OK]
  Configuration Source: kubelet:docker://8cf8e0f012a8e55e6a677e745423fd0f42968c70576e3a859ee014e951fd5abc
  Total Runs: 24
  Metric Samples: Last Run: 38, Total: 912
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 1, Total: 24
  Average Execution Time : 8ms
  Last Execution Date : 2020-05-24 17:55:44.000000 UTC
  Last Successful Execution Date : 2020-05-24 17:55:44.000000 UTC

uptime
------
  Instance ID: uptime [OK]
  Configuration Source: file:/etc/datadog-agent/conf.d/uptime.d/conf.yaml.default
  Total Runs: 24
  Metric Samples: Last Run: 1, Total: 24
  Events: Last Run: 0, Total: 0
  Service Checks: Last Run: 0, Total: 0
  Average Execution Time : 0s
  Last Execution Date : 2020-05-24 17:55:52.000000 UTC
  Last Successful Execution Date : 2020-05-24 17:55:52.000000 UTC

========
JMXFetch
Initialized checks
no checks

Failed checks
no checks

=========
Forwarder
Transactions
CheckRunsV1: 24
Connections: 0
Containers: 0
Dropped: 0
DroppedOnInput: 0
Events: 0
HostMetadata: 0
IntakeV1: 4
Metadata: 0
Pods: 0
Processes: 0
RTContainers: 0
RTProcesses: 0
Requeued: 0
Retried: 0
RetryQueueSize: 0
Series: 0
ServiceChecks: 0
SketchSeries: 0
Success: 52
TimeseriesV1: 24

API Keys status
API key ending with cb7fe: API Key valid

==========
Endpoints
https://app.datadoghq.com - API Key ending with:
- cb7fe
==========
Logs Agent
Sending compressed logs in HTTPS to agent-http-intake.logs.datadoghq.com on port 443
BytesSent: 894896
EncodedBytesSent: 163663
LogsProcessed: 923
LogsSent: 921

default/datadog-4jbt4/trace-agent
Type: file
Path: /var/log/pods/default_datadog-4jbt4_61bf3c0e-1841-4775-b81a-0dbb16744b1d/trace-agent/*.log
Status: Pending
  1 files tailed out of 1 files matching

container_collect_all
Type: docker
Status: Pending

default/datadog-cluster-agent-5784cbb9c6-g9726/cluster-agent
Type: file
Path: /var/log/pods/default_datadog-cluster-agent-5784cbb9c6-g9726_fe714a06-77de-48ce-9fd4-019fe0fbce72/cluster-agent/*.log
Status: OK
  1 files tailed out of 1 files matching
Inputs: /var/log/pods/default_datadog-cluster-agent-5784cbb9c6-g9726_fe714a06-77de-48ce-9fd4-019fe0fbce72/cluster-agent/0.log

default/datadog-4jbt4/agent
Type: file
Path: /var/log/pods/default_datadog-4jbt4_61bf3c0e-1841-4775-b81a-0dbb16744b1d/agent/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/api3-dev-5dcb875948-cmqbb/istio-proxy
Type: file
Path: /var/log/pods/dev_api3-dev-5dcb875948-cmqbb_fee2bd40-7356-460b-bfe3-1e6e7f6ad6ab/istio-proxy/*.log
Status: Pending
  1 files tailed out of 1 files matching

default/datadog-4jbt4/process-agent
Type: file
Path: /var/log/pods/default_datadog-4jbt4_61bf3c0e-1841-4775-b81a-0dbb16744b1d/process-agent/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/webappworker-dev-7fcfb88b6d-l4bgk/istio-init
Type: file
Path: /var/log/pods/dev_webappworker-dev-7fcfb88b6d-l4bgk_68ec6b86-6988-4ff4-8f40-d7f689b3e19e/istio-init/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/web3-dev-5bf67bc557-ddztq/web3
Type: file
Path: /var/log/pods/dev_web3-dev-5bf67bc557-ddztq_2da3d111-f296-4234-b3e0-4298cdb5115a/web3/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/webappapi-dev-6ddd66df57-z8xq9/istio-init
Type: file
Path: /var/log/pods/dev_webappapi-dev-6ddd66df57-z8xq9_2bf6e73a-5c3a-4e60-804b-eae6d7df3e14/istio-init/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/web3-dev-5bf67bc557-ddztq/istio-init
Type: file
Path: /var/log/pods/dev_web3-dev-5bf67bc557-ddztq_2da3d111-f296-4234-b3e0-4298cdb5115a/istio-init/*.log
Status: Pending
  1 files tailed out of 1 files matching

kube-system/aws-node-bpjnv/aws-node
Type: file
Path: /var/log/pods/kube-system_aws-node-bpjnv_f42792a6-a080-4463-babc-cacdf374a495/aws-node/*.log
Status: Pending
  1 files tailed out of 1 files matching

default/datadog-4jbt4/seccomp-setup
Type: file
Path: /var/log/pods/default_datadog-4jbt4_61bf3c0e-1841-4775-b81a-0dbb16744b1d/seccomp-setup/*.log
Status: Pending
  1 files tailed out of 1 files matching

default/datadog-4jbt4/init-volume
Type: file
Path: /var/log/pods/default_datadog-4jbt4_61bf3c0e-1841-4775-b81a-0dbb16744b1d/init-volume/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/api3-dev-5dcb875948-cmqbb/istio-init
Type: file
Path: /var/log/pods/dev_api3-dev-5dcb875948-cmqbb_fee2bd40-7356-460b-bfe3-1e6e7f6ad6ab/istio-init/*.log
Status: Pending
  1 files tailed out of 1 files matching

kube-system/kube-proxy-292z4/kube-proxy
Type: file
Path: /var/log/pods/kube-system_kube-proxy-292z4_cb76cb8f-e3ac-4f22-9b82-bdf49699174d/kube-proxy/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/nodeapi-dev-7c7f895f46-tpkdb/istio-proxy
Type: file
Path: /var/log/pods/dev_nodeapi-dev-7c7f895f46-tpkdb_302f2709-0e13-4b9b-978b-e3082678be1f/istio-proxy/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/web3-dev-5bf67bc557-ddztq/istio-proxy
Type: file
Path: /var/log/pods/dev_web3-dev-5bf67bc557-ddztq_2da3d111-f296-4234-b3e0-4298cdb5115a/istio-proxy/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/webappworker-dev-7fcfb88b6d-l4bgk/istio-proxy
Type: file
Path: /var/log/pods/dev_webappworker-dev-7fcfb88b6d-l4bgk_68ec6b86-6988-4ff4-8f40-d7f689b3e19e/istio-proxy/*.log
Status: Pending
  1 files tailed out of 1 files matching

istio-system/istio-ingressgateway-f57db965c-ws7d9/istio-proxy
Type: file
Path: /var/log/pods/istio-system_istio-ingressgateway-f57db965c-ws7d9_9141d964-f553-4945-ad2a-878a8b7b6be9/istio-proxy/*.log
Status: Pending
  1 files tailed out of 1 files matching

default/datadog-clusterchecks-58b868495b-h7zb4/agent
Type: file
Path: /var/log/pods/default_datadog-clusterchecks-58b868495b-h7zb4_9c70bed7-030e-4c94-8892-5860ebb4f735/agent/*.log
Status: Pending
  1 files tailed out of 1 files matching

kube-system/fluentd-logzio-8xcb5/fluentd
Type: file
Path: /var/log/pods/kube-system_fluentd-logzio-8xcb5_8ce646d0-83f4-42a3-b511-129abe8ce219/fluentd/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/api3-dev-5dcb875948-cmqbb/api3
Type: file
Path: /var/log/pods/dev_api3-dev-5dcb875948-cmqbb_fee2bd40-7356-460b-bfe3-1e6e7f6ad6ab/api3/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/webappworker-dev-7fcfb88b6d-l4bgk/webappworker
Type: file
Path: /var/log/pods/dev_webappworker-dev-7fcfb88b6d-l4bgk_68ec6b86-6988-4ff4-8f40-d7f689b3e19e/webappworker/*.log
Status: Pending
  2 files tailed out of 2 files matching

dev/nodeapi-dev-7c7f895f46-tpkdb/nodeapi
Type: file
Path: /var/log/pods/dev_nodeapi-dev-7c7f895f46-tpkdb_302f2709-0e13-4b9b-978b-e3082678be1f/nodeapi/*.log
Status: Pending
  2 files tailed out of 2 files matching

default/datadog-4jbt4/system-probe
Type: file
Path: /var/log/pods/default_datadog-4jbt4_61bf3c0e-1841-4775-b81a-0dbb16744b1d/system-probe/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/webappapi-dev-6ddd66df57-z8xq9/istio-proxy
Type: file
Path: /var/log/pods/dev_webappapi-dev-6ddd66df57-z8xq9_2bf6e73a-5c3a-4e60-804b-eae6d7df3e14/istio-proxy/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/nodeapi-dev-7c7f895f46-tpkdb/istio-init
Type: file
Path: /var/log/pods/dev_nodeapi-dev-7c7f895f46-tpkdb_302f2709-0e13-4b9b-978b-e3082678be1f/istio-init/*.log
Status: Pending
  1 files tailed out of 1 files matching

dev/webappapi-dev-6ddd66df57-z8xq9/webappapi
Type: file
Path: /var/log/pods/dev_webappapi-dev-6ddd66df57-z8xq9_2bf6e73a-5c3a-4e60-804b-eae6d7df3e14/webappapi/*.log
Status: Pending
  1 files tailed out of 1 files matching

default/datadog-4jbt4/init-config
Type: file
Path: /var/log/pods/default_datadog-4jbt4_61bf3c0e-1841-4775-b81a-0dbb16744b1d/init-config/*.log
Status: Pending
  1 files tailed out of 1 files matching

============
System Probe
System Probe is not running:
Errors
======
error setting up remote system probe util, socket path does not exist: stat /opt/datadog-agent/run/sysprobe.sock: no such file or directory

=========
Aggregator
Checks Metric Sample: 38,729
Dogstatsd Metric Sample: 3,768
Event: 2
Events Flushed: 2
Number Of Flushes: 24
Series Flushed: 33,282
Service Check: 433
Service Checks Flushed: 456
=========
DogStatsD
Event Packets: 0
Event Parse Errors: 0
Metric Packets: 3,767
Metric Parse Errors: 0
Service Check Packets: 0
Service Check Parse Errors: 0
Udp Bytes: 356,284
Udp Packet Reading Errors: 0
Udp Packets: 3,768
Uds Bytes: 0
Uds Origin Detection Errors: 0
Uds Packet Reading Errors: 0
Uds Packets: 0
=====================
Datadog Cluster Agent

Could not detect the Datadog Cluster Agent's endpoint: temporary failure in clusterAgentClient, will retry later: try delay not elapsed yet

Could not retrieve the version of the Datadog Cluster Agent.

Describe what happened:
2020-05-24 17:49:56 UTC | CORE | WARN | (pkg/collector/python/check.go:237 in Configure) | could not get a 'istio' check instance with the new api: __init__() missing 1 required positional argument: 'agentConfig' 2020-05-24 17:49:56 UTC | CORE | WARN | (pkg/collector/python/check.go:256 in Configure) | passing agentConfigto the constructor is deprecated, please use theget_configfunction from the 'datadog_agent' package (istio). 2020-05-24 17:49:56 UTC | CORE | INFO | (pkg/collector/scheduler/scheduler.go:83 in Enter) | Scheduling check istio with an interval of 15s 2020-05-24 17:49:57 UTC | CORE | INFO | (pkg/collector/runner/runner.go:261 in work) | Running check istio 2020-05-24 17:49:57 UTC | CORE | WARN | (pkg/collector/python/datadog_agent.go:118 in LogMessage) | istio:d59b9b7e31c0f7a3 | (core.py:45) | Unable to transformconfigmetadata valueNone: 'NoneType' object has no attribute 'get' 2020-05-24 17:49:57 UTC | CORE | ERROR | (pkg/collector/runner/runner.go:292 in work) | Error running check istio: [{"message": "list index out of range", "traceback": "Traceback (most recent call last):\n  File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py\", line 800, in run\n    instance = copy.deepcopy(self.instances[0])\nIndexError: list index out of range\n"}] 2020-05-24 17:49:57 UTC | CORE | INFO | (pkg/collector/runner/runner.go:327 in work) | Done running check istio 2020-05-24 17:50:12 UTC | CORE | INFO | (pkg/collector/runner/runner.go:261 in work) | Running check istio 2020-05-24 17:50:12 UTC | CORE | ERROR | (pkg/collector/runner/runner.go:292 in work) | Error running check istio: [{"message": "list index out of range", "traceback": "Traceback (most recent call last):\n  File \"/opt/datadog-agent/embedded/lib/python3.8/site-packages/datadog_checks/base/checks/base.py\", line 800, in run\n    instance = copy.deepcopy(self.instances[0])\nIndexError: list index out of range\n"}]
Describe what you expected:
Istio agent to work.
Steps to reproduce the issue:
Enable Istio integration with Istio 1.5.4.
Additional environment details (Operating System, Cloud provider, etc):
AWS EKS 1.16

Thanks! Mind showing your istio config?

@ofek Let me know if you need anything else.
kubectl get  pod/istiod-74c6d9ccdb-fj4ts -n istio-system -o yaml
`apiVersion: v1
kind: Pod
metadata:
annotations:
kubernetes.io/psp: eks.privileged
sidecar.istio.io/inject: "false"
creationTimestamp: "2020-05-21T19:58:21Z"
generateName: istiod-74c6d9ccdb-
labels:
app: istiod
istio: pilot
pod-template-hash: 74c6d9ccdb
name: istiod-74c6d9ccdb-fj4ts
namespace: istio-system
ownerReferences:

apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: istiod-74c6d9ccdb
uid: 037ddf15-5625-4da9-9a46-29cbb0d15c10
resourceVersion: "30364629"
selfLink: /api/v1/namespaces/istio-system/pods/istiod-74c6d9ccdb-fj4ts
uid: e6151b64-1d8b-44eb-878f-5317cbeb112e
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:

preference:
matchExpressions:

key: beta.kubernetes.io/arch
operator: In
values:

amd64
weight: 2

preference:
matchExpressions:

key: beta.kubernetes.io/arch
operator: In
values:

ppc64le
weight: 2

preference:
matchExpressions:

key: beta.kubernetes.io/arch
operator: In
values:

s390x
weight: 2
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:

matchExpressions:

key: beta.kubernetes.io/arch
operator: In
values:

amd64
ppc64le
s390x
containers:

args:

discovery
--monitoringAddr=:15014
--log_output_level=default:info
--domain
cluster.local
--secureGrpcAddr=:15011
--trust-domain=cluster.local
--keepaliveMaxServerConnectionAge
30m
--disable-install-crds=true
env:
name: JWT_POLICY
value: third-party-jwt
name: PILOT_CERT_PROVIDER
value: istiod
name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
name: SERVICE_ACCOUNT
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.serviceAccountName
name: PILOT_TRACE_SAMPLING
value: "1"
name: CONFIG_NAMESPACE
value: istio-config
name: PILOT_ENABLE_PROTOCOL_SNIFFING_FOR_OUTBOUND
value: "true"
name: PILOT_ENABLE_PROTOCOL_SNIFFING_FOR_INBOUND
value: "false"
name: INJECTION_WEBHOOK_CONFIG_NAME
value: istio-sidecar-injector
name: ISTIOD_ADDR
value: istiod.istio-system.svc:15012
name: PILOT_EXTERNAL_GALLEY
value: "false"
name: CLUSTER_ID
value: Kubernetes
envFrom:
configMapRef:
name: istiod
optional: true
image: docker.io/istio/pilot:1.5.4
imagePullPolicy: IfNotPresent
name: discovery
ports:
containerPort: 8080
protocol: TCP
containerPort: 15010
protocol: TCP
containerPort: 15017
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /ready
port: 8080
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 5
resources:
requests:
cpu: 500m
memory: 2Gi
securityContext:
capabilities:
drop:

ALL
runAsGroup: 1337
runAsNonRoot: true
runAsUser: 1337
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:

mountPath: /etc/istio/config
name: config-volume
mountPath: /var/run/secrets/tokens
name: istio-token
readOnly: true
mountPath: /var/run/secrets/istio-dns
name: local-certs
mountPath: /etc/cacerts
name: cacerts
readOnly: true
mountPath: /var/lib/istio/inject
name: inject
readOnly: true
mountPath: /var/lib/istio/local
name: istiod
readOnly: true
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: istio-pilot-service-account-token-8nfb7
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: ip-10-30-0-82.us-west-2.compute.internal
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 1337
serviceAccount: istio-pilot-service-account
serviceAccountName: istio-pilot-service-account
terminationGracePeriodSeconds: 30
tolerations:

effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
emptyDir:
medium: Memory
name: local-certs
name: istio-token
projected:
defaultMode: 420
sources:

serviceAccountToken:
audience: istio-ca
expirationSeconds: 43200
path: istio-token

configMap:
defaultMode: 420
name: istiod
optional: true
name: istiod
name: cacerts
secret:
defaultMode: 420
optional: true
secretName: cacerts
configMap:
defaultMode: 420
name: istio-sidecar-injector
optional: true
name: inject
configMap:
defaultMode: 420
name: istio
name: config-volume
configMap:
defaultMode: 420
name: pilot-envoy-config
name: pilot-envoy-config
name: istio-pilot-service-account-token-8nfb7
secret:
defaultMode: 420
secretName: istio-pilot-service-account-token-8nfb7
status:
conditions:
lastProbeTime: null
lastTransitionTime: "2020-05-21T19:58:21Z"
status: "True"
type: Initialized
lastProbeTime: null
lastTransitionTime: "2020-05-21T19:58:31Z"
status: "True"
type: Ready
lastProbeTime: null
lastTransitionTime: "2020-05-21T19:58:31Z"
status: "True"
type: ContainersReady
lastProbeTime: null
lastTransitionTime: "2020-05-21T19:58:21Z"
status: "True"
type: PodScheduled
containerStatuses:
containerID: docker://d154b198eb4beeb589fe776987eba770ef436fb431d1a88e18d1462da362c886
image: istio/pilot:1.5.4
imageID: docker-pullable://istio/pilot@sha256:264585198773ded066b1cb3cd0e2fefeb36c799438ca97169686971801553664
lastState: {}
name: discovery
ready: true
restartCount: 0
started: true
state:
running:
startedAt: "2020-05-21T19:58:23Z"
hostIP: <IP_ADDRESS>
phase: Running
podIP: <IP_ADDRESS>
podIPs:
ip: <IP_ADDRESS>
qosClass: Burstable
startTime: "2020-05-21T19:58:21Z"`

Hi @rbgran! I think @ofek meant was the Istio integration config. Specifically, the annotation set for the cluster agent which may be annotated in the istio-pilot service?
One thing to note is that Istio v1.5 had some major architectural changes (e.g moving to the Istiod mono deployment) and we've addressed monitoring v.1.5+ in the newer integration version. It will be available in the next release 7.20.0 or upgrading the istio integration to 3.1.0.

I redeployed using  datadog/agent:7.20.0-rc.7 and Istio is updating now.


[Spanner] Query occasionally returns nothing when there should be data

I've been trying to debug this since December last year and haven't had much luck so I'd like to ask for some help.
Environment details

OS: Debian
PHP version: 7.2.11
Package name and version: google/cloud-spanner v1.11.5

When we execute the following query and try to get its rows, sometimes we would get nothing back when it should be returning data.
SELECT * FROM `User` WHERE `userId` = @userId LIMIT 1

We checked GCP Console -> Spanner ->query stats to see if there was some useful info and we found the following. (see arrow)
Total CPU (sec)          1.13
Execution count          8371
Avg latency (sec)	0.001
Avg CPU (sec)           0.000
Avg rows scanned         1.00 <--
Avg rows returned        1.00 <--
Avg bytes returned        382

If there was something wrong with the data/query this should show a number lower than 1.00 so I'm thinking this is a bug on the client side.
Since we know the data exists, we added some code that will retry the query if it returns nothing.
After retrying the query, we get data back.
This is really hard for me to debug since it only happens once in a while (like once or twice a day with around 5000 executions) but I'm guessing it has something to do with the retry mechanism.
Specifically, I think the code below might have something to do with it.
https://github.com/googleapis/google-cloud-php/blob/master/Spanner/src/Result.php#L175
Please let me know what you think. Thanks.

Hi, thank you for looking into the issue with priority.
Please let me know if you need any additional information.

Hi @taka-oyama, sorry for the quiet. We're working on this (it's my top priority task) and hopefully will have an answer quite soon.

Hi @taka-oyama, I just opened #1674 to fix this issue. I'm sorry it's taken a while, the simplicity of the fix does not reflect the difficulties in figuring out the problem. :)
Please take a look and let me know what you think!

I understand. Thank you for the fix!
I will patch the code with this fix and try it out today.

We ran the patched version for a whole day and didn't encounter any errors.
I think we'll run it for another day and if nothing happens, we'll close this issue.

I haven't seen any errors for 2 days now.
I think it's good to go!
Thank you!

Oops, should I not close this until it's merged?

@taka-oyama You're good! Thank you for confirming the change. We should be able to get a release out early next week.


Add Arif Maulana to Contributors List

@maulanaahmadarif, I'm quite elated about your PR. I wanna evolve this project to addresses various problems faced by first-time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a PR and learned that I merged it?

@Roshanjossey, this is awesome tutorial!!. i made contribution before on lighthouse project in google chrome developer just because i reported a bug and i send it through email, that was my very first contribution on github, but i do not know exactly how to contribute on open source project, and this tutorial help me, thanks.

@maulanaahmadarif, I’d urge you to continue contributing to other open source projects.
We also have a slack team to help/mentor people trying to contribute to open source projects.
You can join the team by going to https://firstcontributions.herokuapp.com


Browser Link in .NET Core 3 and later?

The start of the page talks about .NET Core 2.0 and 2.1, and the referenced package (Microsoft.VisualStudio.Web.BrowserLink) hasn't been updated since March 2018. Is this still a thing in .NET Core 3 and later?

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

ID: 1fcc1fa9-004b-0be3-6148-e8c075e5b2bc
Version Independent ID: 78a1947e-dea7-65b4-2376-05c7795e4bf9
Content: Browser Link in ASP.NET Core
Content Source: aspnetcore/client-side/using-browserlink.md
Product: aspnet-core
Technology: aspnetcore-clientside
GitHub Login: @ncarandini
Microsoft Alias: riande

@mkArtakMSFT can we retire this browser link article?

@jodavis What's the current state of BrowserLink?

Why no answer ... hard question ?

Answer here: https://stackoverflow.com/questions/59140127/browserlink-in-net-core-3-0

@scottaddie Browser Link still works in .NET Core 3.
The package hasn't been updated because it only contains the hooks that Visual Studio uses to interact with the server. All the functional updates and bug fixes that have been needed are in Visual Studio itself.
Please don't remove the article. Visual Studio has fwlinks to it.

I confirm that it works fine.
You must add the NuGet package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation
and a call to services.AddMvc().AddRazorRuntimeCompilation(); and app.UseBrowserLink();

@softlion That makes sense because Razor runtime compilation is an opt-in feature as of ASP.NET Core 3.0. It was removed from the shared framework because of the dependency on Roslyn, which was also removed from the shared framework. See https://docs.microsoft.com/aspnet/core/migration/22-to-30?view=aspnetcore-3.1&tabs=visual-studio#opt-in-to-runtime-compilation for more info.
I'll apply the necessary 3.0 updates to the doc.

@jodavis FYI, BrowserLink isn't working for me at all. See the issue I've logged at https://github.com/aspnet/BrowserLink/issues/104.

@scottaddie I'll follow up on your issue in aspnet/BrowserLink#104.


Dying after retrieving Secure Folder 0013 for Cargo X - Part 2 causes item not to spawn in future raids

SPT Version
3.10-BE
Project Type
Server
Expected Result
Item to be retrievable on next raid
Actual Result
Secure Folder 0013 does not spawn in location
Steps To Reproduce

Accept Cargo X - Part 2
Load into Shoreline and retrieve the item
Die
Load into Shoreline again and go to the item spawn location

Server Log
Click and attach file. ↓
BepinEx Log
Click and attach file. ↓
Client Log
Click and attach file. ↓
Player Profile
No response
Screenshots
No response

Attachments

cargo-x-pt2-quest.JPG (301 KiB)
cargo-x-pt2-item.JPG (408 KiB)
server-2024-11-24.log (458 KiB)
LogOutput.log (43 KiB)
2024.11.24_10-39-30_<IP_ADDRESS>.33420 traces.log (556 KiB)
672857f800016d3cabedb4e8.json (1555 KiB)

Originally written by TheNightHawk

Not sure if this issue is related to https://dev.sp-tarkov.com/SPT/Issues/issues/847

Originally written by TheNightHawk

Secure Folder 0013 is not visible in my task item stash

Originally written by TheNightHawk

Findings:
It is a bug
Once you pick the item up and die the profiles quest data contains the key 5a2819c886f77460ba564f38 (this is the FindItem objective)

The client does not remove this condition when it sends the updated profile to server to be saved.
This condition is what makes the quest item spawn in raid or not. Having it = no spawn.
Manually removing the condition makes the quest item appear again in the next raid.
A solution would be to:

Get all quest items lost in raid
figure out the related quest they're associated with
Figure out if they have a quest condition (FindItem) in db, get the condition id
Find related quest in profile and remove the condition id

This would all need to occur on death

Attachments

image.png (31 KiB)

Originally written by chomp

I would suggest handling this in the client as I think the code required will be simpler. Below method could be patched.

Attachments

image.png (40 KiB)

Originally written by Ghost

Looks like commit 7ba772d fixes this issue. Was able to locate the quest item after dying with it during the previous raid.

Originally written by TheNightHawk


[bisected] logging.log_msg_no_overflow is failing on qemu_riscv64

To reproduce:
./scripts/twister -p qemu_riscv64 -T tests/subsys/logging/log_msg

the problem:
START - test_saturate

    Assertion failed at WEST_TOPDIR/zephyr/tests/subsys/logging/log_msg/src/main.c:571: log_msg_test_saturate: (z_log_dropped_read_and_clear() not equal to 3)
No dropped messages.
 FAIL - test_saturate in 0.003 seconds

bisected to:
235ee632333164adf4d2342fe5258c9439d9dc75 is the first bad commit
commit 235ee632333164adf4d2342fe5258c9439d9dc75
Author: Krzysztof Chruscinski<EMAIL_ADDRESS>
Date:   Thu Sep 16 07:27:57 2021 +0200

    lib: os: mpsc_pbuf: Use flag for buffer full indication

    Use flag instead of word in the buffer. Using this method allows
    to dedicate full buffer capacity for data.

    Signed-off-by: Krzysztof Chruscinski<EMAIL_ADDRESS>

 include/zephyr/sys/mpsc_pbuf.h          |  3 ++
 lib/os/mpsc_pbuf.c                      | 95 +++++++++++++++++++++++----------
 tests/subsys/logging/log_api/src/main.c | 15 +++---
 3 files changed, 75 insertions(+), 38 deletions(-)

Fixed now.


Normalize file names

History.markdown has an inconsistent file name extension, another markdown file in the project has .md as an extension, so I have taken the liberty of renaming it.

Hold on, let me remake the branch because I was careless in forking.


Move modules from app dir to cardano-node dir: Part 1

Moving all the the modules (except Main.hs) from app to cardano-node resulted in a Nix failure so this is being done in parts.
Modules moved in this PR:

app/CLI.hs
app/Topology.hs
app/Tracers.hs
app/TxSubmission.hs

bors r+


Fix reduce type definition in prelude

The type definition for reduce() in @typed/prelude does not match the type definition for reduce() in @typed/list.
@typed/list:
export declare type Reducer<A, B> = (seed: B, value: A, index: number) => B;
export declare type ReduceArity3 = {
    <A, B>(f: Reducer<A, B>, seed: B, list: List<A>): B;
    <A, B>(f: Reducer<A, B>, seed: B): ReduceArity1<A, B>;
    <A, B>(f: Reducer<A, B>): ReduceArity2<A, B>;
};
export declare type ReduceArity2<A, B> = {
    (seed: B, list: List<A>): B;
    (seed: B): ReduceArity1<A, B>;
};
export declare type ReduceArity1<A, B> = {
    (list: List<A>): B;
};

@typed/prelude:
export function reduce<A, B>(f: (acc: A, val: B) => A, seed: A, arr: B[]): A

The “prelude”-reduce doesn’t allow ReadonlyArrays as lists, for example.
In addition, it seems incorrect to call the first parameter of the Reducer for seed. To my knowledge, it is common to call it accumulator or just acc. It is, however, correct to call it seed in the reduce.

It may not be obvious that it supports ReadonlyArray, also Array and ArrayLike, because they are valid implementations of List.
Beyond that, it seems you'd like to have the name of the first parameter to Reducer<A, B> be renamed to accumulator? I'd be happy to see that change 👍

The prelude export is not List<A> but B[]. Thus, you can not use a ReadonlyArray nor ArrayLike if you operate with the prelude version. In addition, prelude’s reduce specifies the first template type A as the seed and return type, whereas the list version has the template types reversed.

Not to dismiss the issue you're running into, but I've been unable to recreate your issue.

You’re right, you’re right. The code I was looking at was importing reduce from @most/prelude. Must have been tired. My bad.
I still would like to introduce the parameter name change, though.


Renaming a few metrics

Hi everyone,
In the Common WG, we have been considering renaming a few of the time-based metrics. This wouldn't require a review or anything, just a rename:
https://github.com/chaoss/wg-common/issues/176

Closing this, as I think this has all been completed.


Configure Travis CI to only build master branch

Pull requests are always built by Travis, but since we create
pull requests from local branches, the local branches also
get built, with no additional benefits.
Fixes #21

The built-in editor in GitHub is wonderful for these kinds of changes! :smile:


Feature] update detector details component

Description
Update the Detectro details component (Create and review detector page) per mocks
Issues Resolved
Resolves #502
Screenshots

Check List

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

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

Codecov Report

Merging #504 (0abac6b) into main (bb277ae) will increase coverage by 0.04%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main     #504      +/-   ##
==========================================
+ Coverage   35.21%   35.26%   +0.04%
==========================================
  Files         120      120
  Lines        3348     3352       +4
  Branches      541      577      +36
==========================================
+ Hits         1179     1182       +3
  Misses       2041     2041
- Partials      128      129       +1

see 1 file with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Github publish flow fixes.

I realised the actual github publishing code was broken. Minor tweaks needed to get the same behavior with the "test" releases when I first wrote the code.

Changes Unknown when pulling cecfdd8580c9366bc68245d51549e7c0d0708923 on github-publish-tweaks into ** on v3**.


[windows] hope full screen can hide title bar

hope windows full screen can hide title bar, and there is a gap beside the full screen,  Or full screen mode can be set.

flutter_native_view  and  dart_vlc
fullscreen problem


Sveltekit example doesn't work

I tried to fix it during two hours but without success... I also tried the next.js example to compare and everything's fine.
I have this error:
Unexpected token < in JSON at position 0 SyntaxError: Unexpected token < in JSON at position 0     at JSON.parse (<anonymous>)     at Proxy.<anonymous> (file:///F:/Git/svelteDirectus/sveltekit/.svelte-kit/runtime/server/index.js:1824:21)     at processTicksAndRejections (internal/process/task_queues.js:95:5)     at async load (index.svelte:6:21)     at async load_node (file:///F:/Git/svelteDirectus/sveltekit/.svelte-kit/runtime/server/index.js:1853:12)     at async respond$1 (file:///F:/Git/svelteDirectus/sveltekit/.svelte-kit/runtime/server/index.js:2222:15)     at async render_page (file:///F:/Git/svelteDirectus/sveltekit/.svelte-kit/runtime/server/index.js:2423:19)     at async resolve (file:///F:/Git/svelteDirectus/sveltekit/.svelte-kit/runtime/server/index.js:2697:11)     at async respond (file:///F:/Git/svelteDirectus/sveltekit/.svelte-kit/runtime/server/index.js:2594:20)     at async file:///F:/Git/svelteDirectus/sveltekit/node_modules/.pnpm/@sveltejs+kit@1.0.0-next.295_svelte@3.46.4/node_modules/@sveltejs/kit/dist/chunks/index
The response.status on index.svelte (line 5) is 404, so I think there is an issue to access the endpoint.

Hi, I've tried it on my end and it seems to work. However, I was able to replicate the issue if I do not create the .env as per the 3rd step mentioned by the readme over here: https://github.com/directus/examples/tree/main/sveltekit
Is the file present? If not, can you try following the 3rd step and let us know how it goes? We'll reopen this issue if it still persists after that 👍

That being said, I believe this still warrants a better exception handling so I've updated it and ensured the example will remind users about it if they missed that particular step:

Well the thing is, I have the .env file in my project.
The SvelteKit endpoint is working because if I console.log(formattedArticles) at the end, I have the correct result. But for some reason, it's the call to this endpoint in index.svelte that doesn't seems to work.

This first screen show that if I console log the result, I received something from Directus. But on the second screen below, for some reason, fetch isn't working.

Ok I found something, and it has to do with the last version of Sveltekit.
I tried to install and old version (1.0.0-next.206 instead of next), and it works. But right now, I have now idea why and what changed

Thank you for pinpointing the exact version that is no longer compatible! Seems like 1.0.0-next.260 implemented something called shadow endpoints so the previous implementations such as index.json.js file doesn't seem to work anymore.
Good news is I believe I've updated the example accordingly and it should work if you pull the latest changes. Let me know if there's any issues once you get the chance to try it out 👍
Going forward I believe we'll pin all the frameworks' versions just to be sure, since it can be difficult to keep up with all of them (at least for me personally at this point in time). But help such as yours, especially with detailed troubleshooting & investigation, makes it so much easier to find a fix. Thanks again!

It works perfectly with your last commit!
And no problem for the bug report, I know how debugging can be a pain ^^ And yes especially with frameworks in beta like Sveltekit, stick to a specific version can avoid a lot of trouble!


Ordinal Not Found / The window has crashed (languages not working)

VSCode Version: Latest (I can't check the exact build number as I can't open the software).
OS Version: Windows 10 Version 1809

Steps to Reproduce:

Installed VSCode and I'm getting these issues

Does this issue occur when all extensions are disabled?: Yes/No
I have only the deafult extensions as its a fresh install. It hasn't happened in the past even with extensions.
When I first launch this is what I get:

If I can get past that which is rare I get this:

Then none of my coding languages work for example html, css.
It seems an unusual issue I'm having as it was working perfectly last week I just hoped a reinstall would fix it. I removed all traces off previous installs as well before doing a clean install.

Can you download and try running the ZIP release? https://code.visualstudio.com/docs/?dv=winzip


Wrap only method that throws with assertThrows

Improve assertThrows changes by limiting the wrapping of methods to only
the method that actually throws the exception.
Found and fixed a few EasyMock replay problems in
ManagerReplicationCoordinatorTest that only worked with a specific test
execution order, and wouldn't work when tests were run individually.
Moved some NewTableConfigurationIT tests to NewTableConfigurationTest,
because they didn't need to be integration tests, as they are expected
to fail during construction of the NewTableConfiguration, and don't
require the NTC to be used to actually create a table on a test
instance.
Replace complicated try-catch blocks that check for e.getCause() with an
assertThrows that preserves the thrown exception and checks .getCause()
directly with a subsequent assertEquals statement.
Add a few missing try-with-resources blocks for AutoCloseable
AccumuloClients in KerberosIT

LGTM


Package Document

When can we have pakcage documentation ready?

I haven't worked on this in a while. I'm thinking on doing a full rewrite for v1.0.0 and docs would be included


where/how to save user-defined focus rect

I don't see block.cover documented http://developer.thegrid.io/api.html#content-management-item
Is there a key for faces + saliency bbox, or do I need to derive that? @automata
I need to decide where/how to save user-defined focus rectangle

block.metadata.coverPrefs.scene -- ok?
[[x,y],[x,y]] -- top-left, bottom-right points of original pixels ok?

Is cover.scene (data helper stuff) saved to block or calculated by DS? (Ed's fixture is old.)

block.cover is documented in https://github.com/the-grid/apidocs/blob/gh-pages/full-schema/media.json#L10 (we should probably put links on developer.thegrid.io for those full schemas).
cover.scene groups faces and saliency bbox and is calculated by data-helper and must be called by DS or other The Grid's API consumer. It is documented in https://github.com/the-grid/apidocs/blob/gh-pages/full-schema/helpermeasurements.json#L7-L41.
I'm OK with block.metadata.coverPrefs.scene. It's data type should follow ☝ schema.


Damans227/adding map

Please, go through these steps before you submit a PR.

[x] My Pod Leader knows I'm working on this Pull Request
[x] I've explained what the Pull Request is adding.
[x] I've explained why this is important.

This pull request is a work in progress to add the following enhancement: https://github.com/MLH-Fellowship/pod-4.1.5-portfolio/issues/10
Test server: add-map-prep-pod-4-1-5.netlify.app
Resources leveraged to build the custom map:

Leaflet
Tutorial

@Shikhar15606 @khattakdev Ptal, thx!

@Damans227 Always add someone as a reviewer to check and review your code.

@Damans227 Always add someone as a reviewer to check and review your code.

Ok.

I mean, that can be a part of another PR. This PR satisfies the purpose it was created for, Awesome work @Damans227 @Shikhar15606

LGTM! As far this PR is concerned, it doesn't deal with the 'pop-up card feature' right?
By pop-up card feature, I mean when a user clicks on the profile, a card would pop up displaying the basic info (role, country).

Yea, it's only half baked is what I would say. Adding user details and possibly making it a pop up card is what we are aiming to work on as next steps in this PR.

That can be a part of another PR though. This PR satisfies the purpose it was created for, Awesome work @Damans227 @Shikhar15606

Much thx!

should I merge this PR @P0intMaN @Shikhar15606 ?


intrinsic

hi, for different camera focal, we have different ways to explain depth map.
so why not take the intrinsic in to consideration when generating normals?

hi, for different camera focal, we have different ways to explain depth map. so why not take the intrinsic in to consideration when generating normals?

I think so.

The Sobel function in OpenCV only supports a 2D Image, which is not applicable to computing a normal image from a depth map. In my opinion, if the goal is to compute normal image from depth map, the first step is to convert the depth map into a point cloud, given a set of camera parameters. And the second step is computing the vertex normal of the point cloud. Finally, we can use the correspondence between pixel coordinates and 3D points to generate a normal map. The best practice of the above operations in python is using the Open3D library instead of OpenCV.


0040 - Combination Sum II

Description of the Problem
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sums to target.
Each number in candidates may only be used once in the combination.
Note:

All numbers (including target) will be positive integers.
The solution set must not contain duplicate combinations.

Example 1:
Input: candidates = [10,1,2,7,6,1,5], target = 8,
A solution set is:
[
  [1, 7],
  [1, 2, 5],
  [2, 6],
  [1, 1, 6]
]

Example 2:
Input: candidates = [2,5,2,1,2], target = 5,
A solution set is:
[
  [1,2,2],
  [5]
]

Link To The LeetCode Problem
LeetCode problem 40

@vJechsmayr  I would like to work on this. Can you please assign it to me?


Is there a way to unsort?

I am using this TinySort and feel amazing, but is there a approach to reset my list?
My list was sorting on created time original. User can add, delete or edit list, then users can click sort button. Everything works fine, but how do I reset this list and include new data? Since I didn't store the new data (cause by adding, deleting or editing list), I just append that  to the bottom of the list and send ajax to backend to store them.

Not out of the box no; Tinysort only sorts. But you could initialise adding a value for the original order and use that to sort to: https://jsfiddle.net/Sjeiti/66tgnwzg/

Thanks! I got it.

Thanks @Sjeiti for the jsfiddle example, but for some reason, it didn't work in my browser.
If I add a little modification now it works:
https://jsfiddle.net/abubelinha/t7dcjhak/