Callback interface in Monitoring Class to notify user on subscribers / publishers being added

Context
Using the monitoring layer to retrieve information costs a lot of performance. Running this in a thread to do it continously is a performance-heavy approach.
As no callback or notification option is available for subscribers / publishers added the only workaround is to create "registration" topic and subscribe to that. This seems like a framework on the ecal framework.
A slim notification callback containing the topic name would allow for more efficient bookkeeping on the monitoring user.
Proposal
Add a callback / notification system for new subscribers / publishers being registered. Follow up information can then be retrieved with the new monitoring API.
Tasks and updates
No response

See https://github.com/rex-schilasky/ecal_pub_sub_registration how to implement that using the existing API.

@ThatsAwesomeAll please give some feedback if you could implement that based on the provided example with an acceptable performance.


Bugfix: Duplicate items in pkgdown menu

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce

Context (Environment)

Possible Implementation

Additional Comments

Data model is the title of the section. we can change the title of the section to avoid confusion. maybe just Data or Workflows?


More security features

Is your feature request related to a problem? Please describe.
I'd like to see more security options to protect one's account
Describe the solution you'd like
Options to disable magic link, disable password reset when signing in, 2FA and/or require password every time you come back to the app/web (like a auto-sign out option)
Describe alternatives you've considered
None
Additional context
When changing these settings, require password, email confirmation and 2FA (if enabled)

Thanks for opening the issue! I'll file our API side work to get the magic link disabled, and some of the other features are on our long term roadmap.


Can we send tags with regex?

Hi,
I have a requirement for my rspec tests. I have a bunch of tests in a folder tagged with different tags, but all these tags start with "FR_". Similarly I have some other tests in same which do not have this tag at all.
Is there way which I can find the tests which doesn't have these "FR_" tag with --dry-run or any command.
Regards,
Kalyan Uppalapati

moved to rspec-core


Add test_zipfile_read_chunk

Please don't simply merge this; this repeated-short-read test causes ValueError: Bad Deflate64 data: invalid block type
Potentially related to #12.

btw I'd like to see how this is addressed, which will help porting blast() as well

@cielavenir Thanks for all this! I'm closing this PR in favor of #22 (which is a little cleaner test of the APIs), but both reproduce the problem you're observing.
I'll confirm whether #18 is a comprehensive fix next.


Broken link in Readme.md

The link for the CONTRIBUTING.md is broken in Readme.md.
The fix is simple:
-See [CONTRIBUTING](contributing).
+See [CONTRIBUTING](CONTRIBUTING.md).

Feel free to fix it directly, or I can create a pr (currently following the first step of the process described in the contributing.md...)

Updated readme.


reports 502 or 504

Every once in a while, it reports 502 or 504, and it's useless to clean up the data.

Hi @Eric-chy,
I'm not sure what exactly do you mean with "it reports 502 or 504".
Can you maybe show an example and/or screenshot or some other useful data so we can figure out what exactly is being reported and where it is being reported?

Hi @Eric-chy,
I'm not sure what exactly do you mean with "it reports 502 or 504".
Can you maybe show an example and/or screenshot or some other useful data so we can figure out what exactly is being reported and where it is being reported?

This looks like you have a self-hosted/on-premise installation of Sentry? You are not using sentry.io correct?
In that case you should ask your question here: https://forum.sentry.io/c/on-premise/7.
This place is purely for the Laravel integration so I can't help you with problems regarding your on-premise installation.


Re organize / improve github wiki

Suggested plan :

Intro / presentation
What we learned  / the state of the project
What's technically up?

Current infrastructure
How to join EIMIS network?

Hey team! Please add your planning poker estimate with Zenhub @JDixmier @heroinedor @ad2ien


Graphs collection missing inputs

The array of inputs is sometimes missing items due to a bug in the SLPDB code.  A fix is already in progress.  For example, the bitcoin.com explorer shows fewer inputs than outputs even though index 7,8,9 are all inputs.
https://explorer.bitcoin.com/bch/tx/bb83962d50e92c48bb6965484c5918974affcbd65c50d7f1c817f5238e312062

This is fixed in a606aa9


When developing I want cmd-r to work when focus is in a date picker so that I do not have to click outside the date picker before refreshing the page

If the popup is open, cmd-r works fine but if you select a date and then press cmd-r, nothing happens

What version did this occur with?


Set up smarter repair target selection

Once a target is selected for repair, the creep should dump energy into the target until it is fully repaired or the creep runs out of energy.
That way creeps spend less time moving around the room and can make better use of the time they have alive.

Closed by #35


Tweaked light sorc attack sequence

Adjustments to lightning sorceress attack sequence.
Adjustments cast lightning proceeding chain lightning in loops as discussed with Gleed https://discord.com/channels/904057828791185458/908600901491638282/953731270213521529

Makes sense.


Newlines created by Insert Line Above command get sucked into previous code fold

Issue Type: Bug
I'm using pug, but this happens with other indention based languages like python.
Using the following code block, fold the first ul and put the cursor in front of the second ul.
If you press enter a newline is added outside the fold, but if you use the Insert Line Above command(ctrl+shift+enter) the newline gets sucked into the fold.
ul
  li
ul
  li

VS Code version: Code - Insiders 1.61.0-insider (aec6ee09fa1021cb59c7f4f4d000b027febc967d, 2021-09-03T05:15:18.823Z)
OS version: Linux x64 4.15.0-154-generic
Restricted Mode: No
Extensions: none

We currently only expand when the selection(cursor) enters a folder range. That's not happening with insert line above.
Not sure what the expectation is...

The newline should go under the fold and not into the fold. It is completely pointless to put the cursor into the fold where you can't even see what you are typing.

This is a bug. Not a feature request.

@aeschli This is not a feature request

So you agree that it is a bug? "By design we only unfold when the cursor enters a fold"
The cursor is definitely entering the fold. But it shouldn't. The cursor should go under/outside the fold and the fold should stay folded.

It is either a bug because:

the cursor enters the fold, but the fold doesn't unfold.
the cursor enters the fold, but should actually go outside the fold and the fold should stay folded.

It sounds like you're saying number 1.
I'm saying number 2.

There's a bug when updating the hidden ranges after the new line is added

initially, line 1 is hidden
new line is added after line 1. The editor enlarges the hidden ranges by one line (line 1 and 2 hidden)
the folding provider recompute the hidden lines and because it is Python (offside mode) the new line is not part of the folded range.
he folding provider sets [line 1 to hidden]. Because this matches what we set the last time and skip the update (:bug: )

I pushed a fix to listen to document changes and always update the hidden ranges if there are line changes (additions/removals)
Now it turns out the editor also has a bug when optimizing updates: https://github.com/microsoft/vscode/issues/136867

Full fix depends on fix for #136867.


Use a more recent Docker daemon in travis

This should help with #444 as travis uses an older non BuildKit based Docker daemon by default that can't skip executing unused build stages.

Cool! Going to force push 0.8.2 on top of this, to re-run the docker jobs.

🍿 https://travis-ci.org/almond-sh/almond/jobs/593930873


Refs #33826 -- Fixes an issue on the RedisCache backend delete_many and set_many methods

Ref:

https://code.djangoproject.com/ticket/33826

Changes:

RedisCache backend changed delete_many and set_many methods to check for keys or data not been empty before performing an actual del or mset on redis

@felixxm I moved checking for empty keys or data to the top of the methods and moved the tests to BaseCacheTest as well.
I also did a minor improvement to the delete_many method of RedisCache to use a list comprehension when creating safe_keys which will perform better if the amount of initial keys exceeds a certain threshold


Possible incorrect parentheses handling in SQL expressions

Problem:
I'm encountering an issue with Drift where, under certain circumstances, the generated SQL does not include the necessary parentheses in expressions that should be arithmetically equivalent. This leads to incorrect query results due to operator precedence errors.
Context:
I have a Tab table with a position column that has a unique constraint. To update positions without violating this constraint (e.g., when moving tabs, deleting multiple tabs, etc), I temporarily assign negative positions to affected rows. After moving the necessary items, I normalize any negative positions back to their final positive positions.
Code samples:
await db.transaction(() async {

  // ...

  final int moveBy = 10;

  // Case 1: Works as expected
  // Generated SQL:
  // UPDATE "tb_tab" SET "position" = ? * ("position" - ?) WHERE "position" < ?; with args [-1, 10, 0]
  await (db.update(db.tbTab)
        ..where((tab) => tab.position.isSmallerThanValue(0)))
      .write(
    TbTabCompanion.custom(
      position: const Variable(-1) * (db.tbTab.position - Variable(moveBy)),
    ),
  );

  // Case 2: Works as expected
  // Generated SQL:
  // UPDATE "tb_tab" SET "position" = 0 - "position" - 10 WHERE "position" < ?; with args [0]
  await (db.update(db.tbTab)
        ..where((tab) => tab.position.isSmallerThanValue(0)))
      .write(
    TbTabCompanion.custom(
      position: -(db.tbTab.position - Variable(moveBy)),
    ),
  );

  // Case 3: Does not work as expected
  // Generated SQL:
  // UPDATE "tb_tab" SET "position" = -("position" - 10) WHERE "position" < ?; with args [0]
  // Problem: Missing parentheses affect the results. The expression is evaluated differently than intended.
  // Example: 0 - (15 - 10) = -5, but 0 - 15 - 10 = -25
  await (db.update(db.tbTab)
        ..where((tab) => tab.position.isSmallerThanValue(0)))
      .write(
    TbTabCompanion.custom(
      position: const Variable(0) - (db.tbTab.position - Variable(moveBy)),
    ),
  );
});

Note: Using Constant() instead of Variable() or in addition to it generates the same problems.

Good catch! This has probably been broken since forever. Drift adds parentheses if inner expressions have a higher precedence than outer ones:
  var x = a + b
  return x * 3 // Generates (a + b) * 3

Doing this only when the inner precedence is higher is not correct when non-associative operators are involved. For safety, we should add parentheses if the inner precedence matches the outer one too.


feat(lib/countDigits): add code for countDigits fn

Closes #705

[X] Running yarn lint does not trigger any linter errors
[X] The test of the method you have fixed is passing
[] You have written a new skeleton method for someone else to work on!
[] You have written tests to accompany your skeleton method

My mistake, added one!


Appstudio update test-component-pac-zjrj

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI/test-component-pac-zjrj-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
6 seconds
init

✅ Succeeded
20 seconds
clone-repository

✅ Succeeded
28 seconds
build-container

✅ Succeeded
9 seconds
sast-snyk-check

✅ Succeeded
3 minutes
clair-scan

✅ Succeeded
36 seconds
clamav-scan

✅ Succeeded
10 seconds
inspect-image

✅ Succeeded
8 seconds
deprecated-base-image-check

✅ Succeeded
8 seconds
sbom-json-check

✅ Succeeded
6 seconds
show-sbom

✅ Succeeded
5 seconds
show-summary

Pipelines as Code CI/test-component-pac-zjrj-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
8 seconds
init

✅ Succeeded
16 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
4 seconds
sast-snyk-check

✅ Succeeded
39 seconds
clamav-scan

✅ Succeeded
10 seconds
deprecated-base-image-check

✅ Succeeded
24 seconds
inspect-image

✅ Succeeded
12 seconds
clair-scan

✅ Succeeded
7 seconds
sbom-json-check

✅ Succeeded
6 seconds
show-sbom

✅ Succeeded
5 seconds
show-summary


support for custom serializer

Allow applications to provide their own serializer, because the Java serializer can be problematic.

Coverage decreased (-2.5%) to 91.743% when pulling 9739d139bf5a00d5797c92f32531bf27bf11be40 on danomatic:custom-serializer into 99ea324daef9e9c65fddeb8a024f1dcd0c265199 on arhs:master.

Coverage decreased (-2.5%) to 91.743% when pulling 2a91f666202d6a1ff0a284528e66e5b1edeac2d2 on danomatic:custom-serializer into 99ea324daef9e9c65fddeb8a024f1dcd0c265199 on arhs:master.

Coverage decreased (-2.5%) to 91.743% when pulling b1bcb83c6e4f2ad429bb6826901650cf5ecc05a0 on danomatic:custom-serializer into 99ea324daef9e9c65fddeb8a024f1dcd0c265199 on arhs:master.

Coverage decreased (-1.6%) to 92.661% when pulling b1bcb83c6e4f2ad429bb6826901650cf5ecc05a0 on danomatic:custom-serializer into 99ea324daef9e9c65fddeb8a024f1dcd0c265199 on arhs:master.

@cyrilschumacher I agree this is a needed feature

My company has been using this in production for months now.  I just never got around to making a PR.  Do you want more unit test coverage before this is merged?

Coverage decreased (-1.5%) to 92.76% when pulling a1076979467365c7d75dbb9324fb06ee280c5f16 on danomatic:custom-serializer into 99ea324daef9e9c65fddeb8a024f1dcd0c265199 on arhs:master.

@danielprplt all the requested changes have been made

Coverage decreased (-1.5%) to 92.76% when pulling ade7b6b5be07f4aa964842427171ebaaf5e7ba4c on danomatic:custom-serializer into 99ea324daef9e9c65fddeb8a024f1dcd0c265199 on arhs:master.

This is really good.
I'm working on a project and this specific pull requests is very helpful.

@danomatic Could you improve the coverage (if possible)? @danielprplt What do you think?

Sorry, i'm no longer work on the project that needed to use spring-cache-mongodb. However, thank you for issue fixing :)

@danomatic Could you resolve the conflicts present in your branch? I merged your pull request. ;-)


Problems with making custom jar

Hi,
I'm want to customize the classes you provided. However, when I export  src/main/java  (with my changes) from your project as a jar file into my main project as an external jar, I get the error
Exception in thread "main" java.lang.UnsatisfiedLinkError: lib: systemhook-windows-amd64.dll not found in lib directory
at lc.kra.system.LibraryLoader.loadLibrary(LibraryLoader.java:86)
at lc.kra.system.keyboard.GlobalKeyboardHook.(GlobalKeyboardHook.java:98)
at Main.main(Main.java:18)
Additionally, I noticed that in the jar you released, there was a package called lc.kra.system.lib with the systemhook-windows-amd64.dll file that I seem to be missing. Apparently, I cannot copy and paste the content of the jar you gave into the jar I created. How can I fix this?
TLDR: I want to create my own jar because I want to make changes to the classes, but it doesn't seem to be work because the jar is missing a file(?).
p.s. I am using Windows
p.p.s I barely have started programming, sorry if these are dumb questions.

Hello, please find the missing libraries on the AppVeyor site linked on the README.md:
https://ci.appveyor.com/project/kristian/system-hook
These are the native libaries you are missing, which is essentially the native counterpart of the Java libary to work. You will have to add them to your "lib" directory in order to make it work. To do so, you either will have to include the files to work workspace directory (e.g. in Eclipse) or you will need to extract & repackage your JAR file. There should be a lot of instructions online how to do that. Hope this helps.

I have the same issue and I don't even know where to start from. I can't find any dll on the above link. Despite that, the whole procedure with Maven looks enormously difficult since I have to use command line, path and plenty of things I barely know. So, I hope I could just copy and paste the files that I need but I really don't know how to solve the issue @SupaTroopa42 and me are facing. Any further tip for the missing libraries?

Hi,
I'm want to customize the classes you provided. However, when I export src/main/java (with my changes) from your project as a jar file into my main project as an external jar, I get the error
Exception in thread "main" java.lang.UnsatisfiedLinkError: lib: systemhook-windows-amd64.dll not found in lib directory
at lc.kra.system.LibraryLoader.loadLibrary(LibraryLoader.java:86)
at lc.kra.system.keyboard.GlobalKeyboardHook.(GlobalKeyboardHook.java:98)
at Main.main(Main.java:18)
Additionally, I noticed that in the jar you released, there was a package called lc.kra.system.lib with the systemhook-windows-amd64.dll file that I seem to be missing. Apparently, I cannot copy and paste the content of the jar you gave into the jar I created. How can I fix this?
TLDR: I want to create my own jar because I want to make changes to the classes, but it doesn't seem to be work because the jar is missing a file(?).
p.s. I am using Windows
p.p.s I barely have started programming, sorry if these are dumb questions.

Just download system-hook-3.2.jar and add to you lib path
https://github.com/kristian/system-hook/releases

Hi,
I'm want to customize the classes you provided. However, when I export src/main/java (with my changes) from your project as a jar file into my main project as an external jar, I get the error
Exception in thread "main" java.lang.UnsatisfiedLinkError: lib: systemhook-windows-amd64.dll not found in lib directory
at lc.kra.system.LibraryLoader.loadLibrary(LibraryLoader.java:86)
at lc.kra.system.keyboard.GlobalKeyboardHook.(GlobalKeyboardHook.java:98)
at Main.main(Main.java:18)
Additionally, I noticed that in the jar you released, there was a package called lc.kra.system.lib with the systemhook-windows-amd64.dll file that I seem to be missing. Apparently, I cannot copy and paste the content of the jar you gave into the jar I created. How can I fix this?
TLDR: I want to create my own jar because I want to make changes to the classes, but it doesn't seem to be work because the jar is missing a file(?).
p.s. I am using Windows
p.p.s I barely have started programming, sorry if these are dumb questions.

Just download system-hook-3.2.jar and add to your lib path
https://github.com/kristian/system-hook/releases

thanks for your post it helped me

Just to maybe still clarify this:
All required Windows DLLs are already included in the downloadable JAR files you find at: https://github.com/kristian/system-hook/releases. It should be fine adding these JAR files (or the Maven dependency in that regard) to your classpath and you should be ready to go!
In case you are looking for the DLLs "stand-alone", you can download them from Appveyor, in case you do not like to have them built locally (this could be e.g. desired, in case you don't trust AppVeyor). To download the DLL binaries, go the the "Artifacts" section on AppVeyor:
x86: https://ci.appveyor.com/project/kristian/system-hook/build/job/c0fjtoa6fy63gcwx/artifacts
x64: https://ci.appveyor.com/project/kristian/system-hook/build/job/bi47veeklk8bk5qy/artifacts
Hope this helps! Best regards.


Allow remote to be a callback

If the remote returns something where the dataset is nested, you can't extract the dataset from it. It would also allow to customise the call to the backend if some extra headers were to be set.

Was this resolved if so how do I access the nested data?


3 Java warnings in Docker container startup output

Expected
Docker container startup output without warnings
Actual
Docker container startup output includes these 3 warnings:
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts

2024-07-15T16:03:49.837Z  WARN 1 --- [           main] o.a.l.i.v.VectorizationProvider          : Java vector incubator module is not readable. For optimal vector performance, pass '--add-modules jdk.incubator.vector' to enable Vector API.

WARNING: A restricted method in java.lang.foreign.Linker has been called
WARNING: java.lang.foreign.Linker::downcallHandle has been called by the unnamed module
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for this module

Steps to reproduce
Run this Docker command
docker run -it --rm -p 8080:8080 -v .:/usr/local/structurizr structurizr/lite
Watch output
Version/build information
Structurizr Lite
 - build: 2024.07.02 (2024-07-02T12:09:42Z)
 - structurizr-java: v2.2.0
 - structurizr-dsl: v2.2.0
 - structurizr-import: v2.2.0
 - structurizr-graphviz: v2.2.0

Severity
Minor
Priority
I have no budget and there's no rush, please fix this for free
More information
If you have guidance / a recommended approach to resolving these, I could try to fix and open a PR, but I haven't spent much time with Java and don't know where to begin at this point.
Thank you!

BTW, I love what you're doing with Structurizr, and I'm hopeful that someone will use it to build a tool to generate the DSL from a Helm chart :)


Do not create a folder in start menu

Issue Type: Bug
From the Microsoft UI Fundamentals:

Place your icon to launch your application directly under Start -> Programs. Avoid placing it in a folder under programs. In particular, do not create a folder in the Start menu in which you only put one item.

VS Code version: Code 1.31.1 (1b8e8302e405050205e69b59abb3559592bb9e60, 2019-02-12T02:20:54.427Z)
OS version: Windows_NT x64 10.0.17763

If I were to take this, any hints on how I would do this? Or maybe some resources that talk about folder structure?

@rebornix @bpasero @joaomoreno @brjsp
Why was this issue closed? Has it been implemented already?

@adyavanapalli This issue remains open. Another duplicate issue was closed and referenced to this one.

@Daniel-McCarthy
Understood. I have some interest in implementing this, but without guidance from the people referenced on this issue, I cannot start.

Sorry but this won't happen any time soon, given the costly migration path.


session_t->Create() Failed using tensorflow exported model on IOS

Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:

It must be a bug or a feature request.
The form below must be filled out.
It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): YES
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Generating Tensorflow model:  Ubuntu 16.04 LTS (GNU/Linux 4.4.0-91-generic x86_64)
Load Tensorflow model: macOS 10.12 Sierra
TensorFlow installed from (source or binary): TensorFlow is installed from source
TensorFlow version (use command below): TensorFlow version 1.2.0
Python version: Python version 3.5
Bazel version (if compiling from source): Bazel version  0.5.3
CUDA/cuDNN version: None
GPU model and memory: NA
Exact command to reproduce:

Describe the problem
Error happen when call "status = session_t->Create(graph)"
error message:
2017-08-16 13:22:27.692781+0800 CameraExample[6322:2753781] Error adding graph to session: No OpKernel was registered to support Op 'RandomUniform' with these attrs.  Registered devices: [CPU], Registered kernels:

Source code / logs
Export models as *.pb file: (In python)
self.saver.save(self.sess, self.my_path_to_model + "model.ckpt", global_step=i)
output_graph_def = tf.graph_util.convert_variables_to_constants(self.sess,self.sess.graph_def,output_node_names=['models_simple/y_conv'])
with tf.gfile.FastGFile(self.my_path_to_model+ 'graph.pb', mode = 'wb') as f:
f.write(output_graph_def.SerializeToString())
IOS:
use the following operations to process exported model
#Call freeze_graph, synthesize graph.pb and CKPT, generate frozen.pb
bazel-bin/tensorflow/python/tools/freeze_graph
--input_graph=XXXX/graph.pb
--input_checkpoint=XXXX/model.ckpt-0
--output_node_names=models_simple/Placeholder,models_simple/y_conv
--input_binary
--output_graph=XXXX/frozen.pb
#Call optimize_for_inference, reduce the operation, replace the calculation can not run in the iOS version, generate inference.pb
bazel-bin/tensorflow/python/tools/optimize_for_inference
--input=XXXX/frozen.pb
--output=XXXX/inference.pb
--input_names=models_simple/Placeholder
--output_names=models_simple/y_conv
--frozen_graph=True
#Call quantize_graph to further optimize the graph, generate rounded_graph.pb
bazel-bin/tensorflow/tools/quantization/quantize_graph
--input=XXXX/inference.pb
--output=XXXX/rounded_graph.pb
--output_node_names=models_simple/y_conv
--mode=weights_rounded
Then, execute the following code, (BOOL)loadGraphFromPath executed successfully, but error raised at "status = session_t->Create(graph)"

(BOOL)loadGraphFromPath:(NSString *)path
{
auto status = ReadBinaryProto(tensorflow::Env::Default(), path.fileSystemRepresentation, &graph);
if (!status.ok()) {
NSLog(@"Error reading graph: %s", status.error_message().c_str());
return NO;
}
// This prints out the names of the nodes in the graph.
auto nodeCount = graph.node_size();
NSLog(@"Node count: %d", nodeCount);
for (auto i = 0; i < nodeCount; ++i) {
auto node = graph.node(i);
NSLog(@"Node %d: %s '%s'", i, node.op().c_str(), node.name().c_str());
}
return YES;
}

create tf session:

(BOOL)createSession
{
tensorflow::SessionOptions options;
auto status = tensorflow::NewSession(options, &session_t);
if (!status.ok()) {
NSLog(@"Error creating session: %s", status.error_message().c_str());
return NO;
}
status = session_t->Create(graph);
if (!status.ok()) {
// error
NSLog(@"Error adding graph to session: %s", status.error_message().c_str());
return NO;
}
return YES;
}

error message:
2017-08-16 13:22:27.692781+0800 CameraExample[6322:2753781] Error adding graph to session: No OpKernel was registered to support Op 'RandomUniform' with these attrs.  Registered devices: [CPU], Registered kernels:

 [[Node: dropout/random_uniform/RandomUniform = RandomUniform[T=DT_INT32, dtype=DT_FLOAT, seed=87654321, seed2=24](dropout/Shape)]]

It seems that RandomUniform was not supported on iOS , but when I called freeze_graph, those which are not supported on iOS should be deleted. What can I do for this problem?

@petewarden

We'll be updating the main documentation soon, but for now you might find this free guide to freezing and missing variables on mobile useful: http://www.oreilly.com/data/free/building-mobile-applications-with-tensorflow.csp

Peter, thanks for your book.
jakajacky and I worked in same team, and today we further debugged this issue with help from your guide book, but error still exist.
Current status is

Freezing model is successful.

$ bazel-bin/tensorflow/python/tools/freeze_graph \
--input_graph=/Users/xiaoqiang/Desktop/Volcano_Offline_1/graph_dropout.pb \
--input_checkpoint=/Users/xiaoqiang/Desktop/Volcano_Offline_1/models/model.ckpt-0
--input_node_names=models_simple/x --output_node_names=models_simple/y_conv
--input_binary
--output_graph=/Users/xiaoqiang/Desktop/Volcano_Offline_1/frozen.pb

console log:
2017-08-17 16:20:37.775619: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-08-17 16:20:37.775643: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2017-08-17 16:20:37.775650: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2017-08-17 16:20:37.775655: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
Converted 8 variables to const ops.
47 ops in the final graph.
result:
frozen.pb

Print summary of model, there is a "RandomUniform" op, which will cause error when create session in IOS

$ bazel run tensorflow/tools/graph_transforms:summarize_graph -- \
--in_graph="/Users/xiaoqiang/Desktop/Volcano_Offline_1/inference.pb"

console log:
INFO: Found 1 target...
Target //tensorflow/tools/graph_transforms:summarize_graph up-to-date:
bazel-bin/tensorflow/tools/graph_transforms/summarize_graph
INFO: Elapsed time: 0.173s, Critical Path: 0.00s
INFO: Running command line: bazel-bin/tensorflow/tools/graph_transforms/summarize_graph '--in_graph=/Users/xiaoqiang/Desktop/Volcano_Offline_1/inference.pb'
Found 2 possible inputs: (name=models_simple/x, type=float(1), shape=[]) (name=models_simple/Placeholder, type=float(1), shape=[])
No variables spotted.
Found 1 possible outputs: (name=models_simple/y_conv, op=Softmax)
Found 70140 (70.14k) const parameters, 0 (0) variable parameters, and 0 control_edges
Op types used: 12 Const, 6 Add, 3 Relu, 2 Placeholder, 2 MatMul, 2 MaxPool, 2 Mul, 2 Reshape, 2 Conv2D, 1 RealDiv, 1 RandomUniform, 1 Floor, 1 Shape, 1 Softmax, 1 Sub

Try "Removing training-only nodes" (bazel run tensorflow/tools/graph_transforms:transform_graph). The operation is successfully completed.

$ bazel run tensorflow/tools/graph_transforms:transform_graph -- \
--in_graph="/Users/xiaoqiang/Desktop/Volcano_Offline_1/inference.pb"
--out_graph="/Users/xiaoqiang/Desktop/Volcano_Offline_1/optimized_inception_graph.pb"
--inputs="models_simple/x"
--outputs="models_simple/y_conv"
--transforms='strip_unused_nodes(type=float,shape="1,256")'

console log:
INFO: Found 1 target...
Target //tensorflow/tools/graph_transforms:transform_graph up-to-date:
bazel-bin/tensorflow/tools/graph_transforms/transform_graph
INFO: Elapsed time: 0.191s, Critical Path: 0.00s
INFO: Running command line: bazel-bin/tensorflow/tools/graph_transforms/transform_graph '--in_graph=/Users/xiaoqiang/Desktop/Volcano_Offline_1/inference.pb' '--out_graph=/Users/xiaoqiang/Desktop/Volcano_Offline_1/optimized_inception_graph.pb' '--inputs=models_simple/x' '--outputs=models_simple/y_conv' '--transforms=strip_unused_nodes(type=float,shape="1,256")'
2017-08-17 16:27:20.074270: I tensorflow/tools/graph_transforms/transform_graph.cc:262] Applying strip_unused_nodes
result:
optimized_inception_graph.pb

Since  "dropout" layers is left in graph, error persist when create session.

$ bazel run tensorflow/tools/graph_transforms:summarize_graph -- \
--in_graph="/Users/xiaoqiang/Desktop/Volcano_Offline_1/optimized_inception_graph.pb"

console log:
INFO: Found 1 target...
Target //tensorflow/tools/graph_transforms:summarize_graph up-to-date:
bazel-bin/tensorflow/tools/graph_transforms/summarize_graph
INFO: Elapsed time: 0.179s, Critical Path: 0.00s
INFO: Running command line: bazel-bin/tensorflow/tools/graph_transforms/summarize_graph '--in_graph=/Users/xiaoqiang/Desktop/Volcano_Offline_1/optimized_inception_graph.pb'
Found 2 possible inputs: (name=models_simple/x, type=float(1), shape=[]) (name=models_simple/Placeholder, type=float(1), shape=[])
No variables spotted.
Found 1 possible outputs: (name=models_simple/y_conv, op=Softmax)
Found 70140 (70.14k) const parameters, 0 (0) variable parameters, and 0 control_edges
Op types used: 12 Const, 6 Add, 3 Relu, 2 Placeholder, 2 MatMul, 2 MaxPool, 2 Mul, 2 Reshape, 2 Conv2D, 1 RealDiv, 1 RandomUniform, 1 Floor, 1 Shape, 1 Softmax, 1 Sub

Oher Experiments
We also tried to remove dropout layer from training code on Ubuntu Server, then re-train model, export model to IOS, the session_t->Create() operation passed. However, we cannot use this approach as solution, because removing dropout layer before training will lead to changes of weights and other parameters in neural networks.
Our objectives are as follow

Given a model (Checkpoint + GraphDef) trained and verified on server
process the model with tools to remove all unnecessary nodes/ops for inference.
inference on IOS

Question
How to remove dropout layer from model, since "dropout" is unnecessary in inference procedure.
Code for model generation (Python)
`           self.x = tf.placeholder(tf.float32, [None, feature_num], name = 'x')
x_image = tf.reshape(self.x, [-1, 1, feature_num, 1])
self.y_ = tf.placeholder(tf.float32, [None, label_dim],name='y_')
        self.W_conv1 = weight_variable([1, self.conv_len, 1, self.num_conv1])
        self.b_conv1 = bias_variable([self.num_conv1])
        self.h_conv1 = tf.nn.relu(conv2d(x_image, self.W_conv1) + self.b_conv1)

        self.h_pool1,pooling_factor = max_pool_1x4(self.h_conv1,pooling_factor)
        self.W_conv2 = weight_variable([1, self.conv_len, self.num_conv1, self.num_conv2])
        self.b_conv2 = bias_variable([self.num_conv2])
        self.h_conv2 = tf.nn.relu(conv2d(self.h_pool1, self.W_conv2) + self.b_conv2)

        self.h_pool2,pooling_factor = max_pool_1x2(self.h_conv2,pooling_factor)
        pooled_size = int(feature_num / pooling_factor * self.num_conv2)
        print ("pooling: (%d,%d) -> %d" % (feature_num, pooling_factor, pooled_size))
        self.W_fc1 = weight_variable([pooled_size, self.num_fullc])
        self.b_fc1 = bias_variable([self.num_fullc])
        self.h_pool2_flat = tf.reshape(self.h_pool2, [-1, pooled_size])
        self.h_fc1 = tf.nn.relu(tf.matmul(self.h_pool2_flat, self.W_fc1) + self.b_fc1)

        self.keep_prob = tf.placeholder(tf.float32)
        self.h_fc1_drop = tf.nn.dropout(self.h_fc1, self.keep_prob)
        self.W_fc2 = weight_variable([self.num_fullc, label_dim])
        self.b_fc2 = bias_variable([label_dim])

        self.y_conv = tf.nn.softmax(tf.matmul(self.h_fc1_drop, self.W_fc2) + self.b_fc2, name='y_conv')

        classes_weights = tf.constant([ 1.0,  0.8,  1.0, 1.0])
        cross = tf.nn.weighted_cross_entropy_with_logits(self.y_,self.y_conv, pos_weight=classes_weights)
        self.cross_entropy = tf.reduce_mean(cross)

        # self.cross_entropy = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits=self.y_conv, labels=self.y_))
        self.train_step = tf.train.AdamOptimizer(lr).minimize(self.cross_entropy)`

Did you solve the problem? I tried to follow the instruction as https://github.com/JieHe96/iOS_Tensorflow_ObjectDetection_Example to register the ops and recompile. However, the Op registered issues still occurred. If this works for you, or you figure out how to solve it, please let me know asap.

@Christ1992  Could you provide detailed information about your issues？

I mainly encountered 2 issues.

"duplicate symbol" issue:
duplicate symbol __ZN10tensorflow15CreateGPUTracerEv in:  /Users/XXXX/tensorflow-master/tensorflow/contrib/makefile/gen/lib/libtensorflow-core.a(gpu_tracer.o) ld: 1 duplicate symbol for architecture arm64
I solved this by commenting the gpu_tracker.cc line in Makefile. I don't know the side effect of this operation.
"No OpKernel was registered to support Op XXX" issue
I solve this by following the above link. I finally recompiled a library that contained all ops of my model, as it listed in my ops_to_registered.h.

Hope that you can solve your problem soon. =^_^=

@Christ1992  it's good news^_^. Unfortunately I tried  JieHe‘s instruc, but terminal bring me some issues like this when i take step "compile_ios_tensorflow.sh":
1 error generated.
make: *** [/Users/xiaoqiang/2Github/MachineLearning/tensorflow-r1.2/tensorflow/contrib/makefile/gen/obj/ios_ARMV7/tensorflow/core/kernels/dequantize_op.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from tensorflow/core/kernels/quantization_utils.cc:16:
./tensorflow/core/kernels/quantization_utils.h:29:10: fatal error: 'public/gemmlowp.h' file not
      found
#include "public/gemmlowp.h"

that's only one of my issues. They are the same kind of problem, and my tensorFlow  have no file or folder like  'public/gemmlowp.h'  indeedly. Maybe you have some ideas

I have no idea about this. Maybe you could try to compile with the Makefile I used? Makefile - google drive

@Christ1992 Thanks for your reply,  i'll try it right away √

@Christ1992 i saw your new issue #12560, but my issue "No OpKernel was registered to support Op 'RandomUniform' " have been resolved by remove 'dropout' only be used to train model, then i met "No OpKernel was registered to support Op 'Mul'" when run official tensorflow-ios camera demo, finaly i tried freezing the graph, and it worked. In view of #12560, the only difference between you and me is that i have not used 'pods' to install, and DT_FLOAT or INT32 have nothing to do with this issue probably. I can only provide these. v=v

sorry i can't understand your meaning,i guess this question is not about my project
At 2017-08-25 10:33:41, "X-Roach"<EMAIL_ADDRESS>wrote:
@Christ1992 i saw your new issue #12560, but my issue "No OpKernel was registered to support Op 'RandomUniform' " have been resolved by remove 'dropout' only be used to train model, then i met "No OpKernel was registered to support Op 'Mul'" when run official tensorflow-ios camera demo, finaly i tried freezing the graph, and it worked. In view of #12560, the only difference between you and me is that i have not used 'pods' to install, and DT_FLOAT or INT32 have nothing to do with this issue probably. I can only provide these. v=v
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

It has been 14 days with no activity and the awaiting tensorflower label was assigned. Please update the label and/or status accordingly.


GPU-memory not freed after "Classify Many".

I tried to do "classify many" with just 10 test images to check my GPU status but it failed with

"Error: Unable to connect to NVIDIA DIGITS"

error.
content of

/var/log/digits/digits.log

is

2016-04-13 18:25:48 [1281] [CRITICAL] WORKER TIMEOUT (pid:3237)
2016-04-13 18:25:48 [1281] [CRITICAL] WORKER TIMEOUT (pid:3237)
2016-04-13 18:25:49 [3308] [INFO] Booting worker with pid: 3308

During the process, What I see is that my GPU memory is not being freed once it fails.
> Wed Apr 13 18:34:50 2016
> +------------------------------------------------------+
> | NVIDIA-SMI 352.79     Driver Version: 352.79         |
> |-------------------------------+----------------------+----------------------+
> | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
> | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
> |===============================+======================+======================|
> |   0  GRID K520           Off  | 0000:00:03.0     Off |                  N/A |
> | N/A   44C    P0    42W / 125W |    531MiB /  4095MiB |      0%      Default |
> +-------------------------------+----------------------+----------------------+
>
> +-----------------------------------------------------------------------------+
> | Processes:                                                       GPU Memory |
> |  GPU       PID  Type  Process name                               Usage      |
> |=============================================================================|
> |    0      1281    C   /usr/bin/python                                 36MiB |
> +-----------------------------------------------------------------------------+

My 531MB of memory is being consumed by a failed process.
Also If the process succeeded it will not free those used memory.
Wed Apr 13 19:00:30 2016
+------------------------------------------------------+
| NVIDIA-SMI 352.79     Driver Version: 352.79         |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GRID K520           Off  | 0000:00:03.0     Off |                  N/A |
| N/A   43C    P0    42W / 125W |    971MiB /  4095MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0      1281    C   /usr/bin/python                                 36MiB |
|    0      3308    C   /usr/bin/python                                438MiB |
+-----------------------------------------------------------------------------+

Hi @riteshpradhan the memory utilization that you see even when there are no processes running is reserved by the driver. As per the nvidia-smi doc:

FB Memory Usage
The driver may also reserve a small amount of memory for internal use, even without active work on the GPU.

Hopefully your question is answered. Closing the bug for now. Thanks for the report!

So do you mean, GPU drive reserve memory and that keeps on increasing for every failed "classify_many" operation? That's what happened in my case.

Re-opening.
Your initial report doesn't provide evidence of an increasing GPU allocated memory after every failed classify_many operation. If that is the case, can you do this 10 times and provide the relevant lines of nvidia-smi output? Also, please tells us which version of DIGITS you are using.

Previous State:

Classify Many Failed State: (Job with PID: 3308 killed (total previous usage was 951MB)

Success: (New Process)

Failed:

Success (running):

Success (completion):

Failed:

Success:

Failed:

Success:

For every failed classify_many I get this error in web.

That looks bad.
Try running with the master branch. This may have been fixed with https://github.com/NVIDIA/DIGITS/pull/573.

Closing due to inactivity - assumed fixed with #573


Preload native ads

Is there anyway to preload the ads. #

Kinda, but Google is against it, especially for AdView.
Their reason is that they say Context should be the same Activity that is supposed to show the ad, because they claim that some ad-providers assume it's an Activity.
Thing is, sometimes we know that an ad should be loaded before the Activity that shows it would be started. Sometimes we don't even use an Activity.
I requested this here:
https://groups.google.com/g/google-admob-ads-sdk/c/gX4f-VISpIM/m/hi1LPjl1AQAJ?utm_medium=email&utm_source=footer
Please consider starring.

Thanks for the context.

You can preload native ads with loadAds() https://developers.devsite.corp.google.com/admob/android/native#loadads.

@JillSong This link doesn't work.
Also, preloading ads, as I was told - doesn't really work, as it requires Activity even if you don't have it yet.
Look here:
https://groups.google.com/g/google-admob-ads-sdk/c/gX4f-VISpIM/m/8VFMsDGcAQAJ
Example for banner ads:
https://syncme.atlassian.net/browse/SMA-1035?focusedCommentId=44554
Are you saying that we finally are allowed to load ads in the background, using Application as Context? Have you made sure it works with all ad-networks, with ads of all kinds (native, banner, and others) ?


Handle Frida bindings not working after Node update

    Error: The module '/usr/lib/node_modules/tweasel-cli/node_modules/frida/build/Release/frida_binding.node'
    was compiled against a different Node.js version using
    NODE_MODULE_VERSION 108. This version of Node.js requires
    NODE_MODULE_VERSION 115. Please try re-compiling or re-installing
    the module (for instance, using `npm rebuild` or `npm install`).
    Code: ERR_DLOPEN_FAILED

Closing in favour of https://github.com/tweaselORG/appstraction/issues/132.


Using Electron APIs

Hi,
I'm trying to understand whether or not I can make use of the Electron APIs. For example:
https://github.com/electron/electron/blob/master/docs/api/desktop-capturer.md
I've tried importing the module under isDesktop but this throws errors.
Do I need to copy over the module and rewrite it using the 'Desktop' API replacing the ipcRenderer? If so where would I need to store the files?
Thanks!

So I managed to get this working in the end by creating a custom module and interacting with it using the Desktop ipc api.

That is the proper way of doing that. Unfortunately because of node integration conflicting with meteor bundling system the node integration is disabled in the Chrome window, so you need to use an IPC wrapper around it.
I will try to make some example apps this year but we will see as I am still having very little to time to spend here.

Closing due to inactivity.


Support Formatting Callout Titles

Possibly some overlap with #398.
Currently, formatting the title in a Callout will render properly in Obsidian, but not in Confluence:
In Obsidian

In Confluence

Ahh good call out. I will have to have a look.
Noting where the issue is https://github.com/markdown-confluence/markdown-confluence/blob/main/packages/lib/src/MarkdownTransformer/callout.ts#L158-L179
Will need to add a call to tokenise the title not just setting it directly to the raw string.

good call out

A possible fix for this has been merged. https://github.com/markdown-confluence/markdown-confluence/pull/442 Will be releasing on the weekend.

This was just released. Can you please test?
So sorry it took so long to release.


Sign in issue: Access denied. CCP SSO service timeout (4s). Try again later

Pathfinder worked fine up to today. I have tried logging in multiple times today, but I keep getting the error above.  I've tried waiting an hour like it says, but got the same issue again.
To add more detail, I get the above screen after trying to log in, going through the EVE SSO process, selecting my character, and clicking "Authorize".

CCP Ghostrider  6:01 PM
Ahhh, you can't send this as JSON
6:02
it should be form-data
Prometheus Satyen  6:02 PM
It's worked as JSON for over a year, is this a change?
CCP Ghostrider  6:02 PM
I've been saying it for years, it working as JSON was an error really and not in accordance with the OAuth spec :slight_smile:

So it seems the API no longer supports JSON suddenly?
The change would have to be in the pathfinder_esi repo, I think.

https://github.com/exodus4d/pathfinder_esi/pull/19

so what do i need to do to fix this issue

so what do i need to do to fix this issue

Just modify the file vendor/exodus4d/pathfinder_esi/app/Client/Ccp/Sso/Sso.php under your installation path. Then go to line 60, you should see something like:
$requestOptions = [
    'json' => $requestParams,
    'auth' => $credentials
];

Change it to:
$requestOptions = [
    'form_params' => $requestParams,
    'auth' => $credentials
];

I should work now.

Sorry but instalation of what ?? Pathfinder ? This APP have no instalation. I open it direct from web site.  I can't find these files on my computer:(

so what do i need to do to fix this issue

Just open the file vendor/exodus4d/pathfinder_esi/app/Client/Ccp/Sso/Sso.php under your installation path with a text editor. Then go to line 60, you should see something like:
$requestOptions = [
    'json' => $requestParams,
    'auth' => $credentials
];

Change it to:
$requestOptions = [
    'form_params' => $requestParams,
    'auth' => $credentials
];

It should work now.

Then ask whoever hosts that to apply this fix

@SirVulcanoWydro you would have to install Pathfinder yourself to apply the fix.
The author has been silent for a while and it seems the project might only survive on community contributions from now on.

Maybe some link to the instalation this App on PC ??

@SirVulcanoWydro you would have to install Pathfinder yourself to apply the fix.
The author has been silent for a while and it seems the project might only survive on community contributions from now on.

Maybe some link to the instalation this App on PC ??

@SirVulcanoWydro you would have to install Pathfinder yourself to apply the fix.
The author has been silent for a while and it seems the project might only survive on community contributions from now on.

See https://github.com/exodus4d/pathfinder/wiki

@SirVulcanoWydro corps host Pathfinder themselves, from the sounds of it, you are in the same situation as me. We both use https://www.pathfinder-w.space/ and are waiting on the fix to be applied...

I know this is off-topic, but I would highly recommend everyone to host it themselves. It will be much more reactive and snappy. Also you get unlimited everything.

But 2 month ago that was fully functionally. My new corporation link to Pathfinder working teh same as this from web site . Logging is correct but later "Akcess denied ":(

@SirVulcanoWydro corps host Pathfinder themselves, from the sounds of it, you are in the same situation as me. We both use https://www.pathfinder-w.space/ and are waiting on the fix to be applied...

I know this is off-topic, but I would highly recommend everyone to host it themselves. It will be much more reactive and snappy. Also you get unlimited everything.

I am investigating my options now, would prefer on docker.

It will require a bit of work to pack it into Docker, but still easier than manually installing everything.
Remember you need the WebSocket part for it to have instant updates instead of 5s polling.

But 2 month ago that was fully functionally. My new corporation link to Pathfinder working teh same as this from web site . Logging is correct but later "Akcess denied ":(

@SirVulcanoWydro corps host Pathfinder themselves, from the sounds of it, you are in the same situation as me. We both use https://www.pathfinder-w.space/ and are waiting on the fix to be applied...

send your corp to this page to see the fix that they need to apply.

It will require a bit of work to pack it into Docker, but still easier than manually installing everything.
Remember you need the WebSocket part for it to have instant updates instead of 5s polling.

there are some docker builds out there, I did one myself long ago, but that is most likely not functioning now with all that is happening. You can check out the slack server of pf, its still active with developers and ask there for a working one. I just hotfixed my installation with this and had to pull out the vendor directory for it, but at leasts its working again, so thanks for this @jrhigueras !

FYI https://www.pathfinder-w.space/ seems to be working now.

You are right . What's changing ??
FYI https://www.pathfinder-w.space/ seems to be working now.

FYI https://www.pathfinder-w.space/ seems to be working now.

Agreed, the issue is now resolved from what I can see on my end.  No idea what changed but I can now log in again.


Update: new Cry Coin (CRYY) logo

Hello, we've updated our logo for Cry Coin (CRYY).
We've only changed the logo.png file.
Would it be possible to manually merge this as auto-merge won't work?
Thank you!

Please note: This repository is being rebuilt to accept the new volume of token additions and modifications. PR merges will be delayed.

I agree to not ping anybody on Discord/Twitter/email about this pull request. Instead I will inquire by posting a new comment in the pull request if needed.

PRs are reviewed in bulk and and can take up to two weeks to be merged.
This repository is managed using an auto merge action. Please ensure your PR has no deleted lines, and it will be merged.
Please provide the following information for your token.
Please include change to the src/tokens/solana.tokenlist.json file in the PR.
DON'T modify any other token on the list.
At minimum each entry should have

Token Address:
Token Name:
Token Symbol:
Logo: (logo should be uploaded under assets/mainnet//*.<png/svg>)
Link to the official homepage of token:
Coingecko ID if available (https://www.coingecko.com/api/documentations/v3#/coins/get_coins__id_):

Auto merge requirements
Your pull request will be automatically merged if the following conditions are met:

Your pull request only adds new tokens to the list. Any modification to existing
tokens will require manual review to prevent unwanted modifications.

Your pull request does not touch unrelated code. In particular, reformatting changes to unrelated
code will cause the auto merge to reject your PR.

Any asset files added correspond to the token address you are adding. Asset files
must be PNG, JPG or SVG files.

Your change is valid JSON and conforms to the schema. If your change failed validation,
read the error message carefully and update your PR accordingly.

No other tokens shares the same name, symbol or address.

For example, this change would be rejected due to unrelated changes:

The bot runs every 60 minutes and bulk-merges all open pull requests to prevent conflicts.
This means that you need to wait up to 60 minutes for your pull request to be merged or reprocessed.

https://github.com/solana-labs/token-list/commit/63462b2449de38f0704daac7a76209696293e24d


Add support to Start/Stop RDS

Hi in some cases like QA, Playground environment add the option to shutdown the RDS save us some money :)
AWS Docs
https://aws.amazon.com/about-aws/whats-new/2017/06/amazon-rds-supports-stopping-and-starting-of-database-instances/
Actually I'm using the AWS API to perform that with Ansible (shell module)
aws rds start-db-instance --db-instance-identifier DB_INSTANCE
aws rds stop-db-instance --db-instance-identifier DB_INSTANCE

Yes, this is a good feature, but Terraform does not support those action as far as I know, so you should use aws-cli as you specify.

It has been implement for EC2 instance, maybe we can implement it for RDS too ?
https://github.com/terraform-providers/terraform-provider-aws/issues/22

Why was this closed, can we reopen? I'd like to be able to control state with terraform as well, seeing as EC2 can do this.

this will be really good for QA/DEV resources that don't need to be on 24/7

Once this feature is available in Terraform AWS we can have support for it here in this module also. Meanwhile, you can achieve the same by using null_resource's local-exec as mentioned in https://github.com/terraform-providers/terraform-provider-aws/issues/22#issuecomment-514365075


[Node.js SDK, WebChat] How can I trigger a file upload window?

Bot Info

App ID:
SDK Platform: Node.js
SDK Version: 3.13.1
Active Channels: Web chat
Deployment Environment: Auzure Bot Service

Issue Description
We have a bot which is used to raise support issues. Some support issues will have files to be attached - screenshots, log files - but not ALL issues. Right now we have a workflow like this:

"Do you want to upload an attachment?"
If Yes - builder.Prompts.attachment - "Please click on the image icon on the left to upload attachment"
User clicks image icon on left of input box
File chooser window pops up, user chooses file, it's uploaded

The thing is, this is a bit cumbersome with a step too many. What we really want is ...

"Do you want to upload an image/attachment?"
If Yes - File chooser window pops up, user chooses file, file is uploaded

We already know they want to upload something, so don't need to prompt them again.
Is there a way to prompt the file chooser window to pop up immediately?

It is still an issue for me, unless there is some solution I'm unaware of

@dividor This drag/drop example should point you in the right direction: https://stackoverflow.com/questions/50581375/trigger-bot-with-drag-drop-sharepoint-online

Thank you for opening an issue against the Bot Framework SDK v3. As part of the Bot Framework v4 release, we’ve moved all v3 work to a new repo located at https://github.com/microsoft/botbuilder-v3. We will continue to support and offer maintenance updates to v3 via this new repo.
From now on, https://github.com/microsoft/botbuilder repo will be used as hub, with pointers to all the different SDK languages, tools and samples repos.
As part of this restructuring, we are closing all tickets in this repo.
For defects or feature requests, please create a new issue in the new Bot Framework v3 repo found here:
https://github.com/microsoft/botbuilder-v3/issues
For Azure Bot Service Channel specific defects or feature requests (e.g. Facebook, Twilio, Teams, Slack, etc.), please create a new issue in the new Bot Framework Channel repo found here:
https://github.com/microsoft/botframework-services/issues
For product behavior, how-to, or general understanding questions, please use Stackoverflow.
https://stackoverflow.com/search?q=bot+framework
Thank you.
The Bot Framework Team


Chinese Account: Token refresh failed repeatedly

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
After upgrade to new version Token refresh failed error repeatedly occur in the log, below was my docker yml config file.
teslamate:
image: teslamate/teslamate:latest
restart: always
environment:
- DATABASE_USER=${TM_DB_USER}
- DATABASE_PASS=${TM_DB_PASS}
- DATABASE_NAME=${TM_DB_NAME}
- DATABASE_HOST=database
- MQTT_HOST=mosquitto
- VIRTUAL_HOST=${FQDN_TM}
- CHECK_ORIGIN=true
- TZ=${TM_TZ}
volumes:
- ./import:/opt/app/import
ports:
- <IP_ADDRESS>:4000:4000
cap_drop:
- all
Expected Behavior
No response
Steps To Reproduce
No response
Relevant log output
2022-01-27 00:26:32.142 [info] Refreshing access token ...,
2022-01-27 00:26:32.548 [info] POST https://auth.tesla.cn/oauth2/v3/token -> 200 (405.115 ms),
2022-01-27 00:26:34.023 [error] POST https://owner-api.teslamotors.com/oauth/token -> 404 (1475.030 ms),
2022-01-27 00:26:34.024 [warning] Token refresh failed: %TeslaApi.Error{,
  env: %Tesla.Env{,
    __client__: %Tesla.Client{adapter: nil, fun: nil, post: [], pre: []},,
    __module__: TeslaApi.Auth,,
    body: %{,
      "error" => "not found",,
      "error_description" => "",,
      "response" => nil,
    },,
    headers: [,
      {"x-xss-protection", "1; mode=block"},,
      {"x-accel-redirect-region", "qts"},,
      {"content-type", "application/json; charset=utf-8"},,
      {"x-request-id", "3c627a3b-59fc-46c3-a713-ade04f443a42"},,
      {"x-envoy-upstream-service-time", "801"},,
      {"x-envoy-upstream-cluster", "owner-api"},,
      {"x-frame-options", "DENY"},,
      {"x-content-type-options", "nosniff"},,
      {"strict-transport-security", "max-age=31536000; includeSubDomains"},,
      {"cache-control", "no-cache, no-store, private, s-max-age=0"},,
      {"date", "Wed, 26 Jan 2022 16:26:33 GMT"},,
      {"server", "envoy"},,
      {"transfer-encoding", "chunked"},
    ],,
    method: :post,,
    opts: [],,
    query: [],,
    status: 404,,
    url: "https://owner-api.teslamotors.com/oauth/token",
  },,
  message: nil,,
  reason: :api_token_error,
},

Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
1.26.0

Can you change the TeslaMate image to teslamate/teslamate:edge and see if that helps?

I have done a fresh installation,  after change to "teslamate/teslamate:edge", I can logout and login, before I even cannot login, but have below error, not sure will effect where?
teslamate_1  | 2022-01-27 20:15:24.584 [warning] GET https://owner-api.vn.cloud.tesla.cn/api/1/vehicles/1126095248155383/vehicle_data -> 540 (2564.976 ms)
teslamate_1  | 2022-01-27 20:15:24.584 [warning] TeslaApi.Error / vehicle error: it is online but not responsive
teslamate_1  | 2022-01-27 20:15:24.584 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-01-27 20:15:44.979 car_id=1 [info] Suspending logging

OK great!
Wait a bit and see if this 540 error disappears. It is not uncommon that the Tesla API temporarily can't report data about your car.

It seems 540 error disappeared, but got some below 408 error;
teslamate_1  | 2022-01-28 09:43:14.514 [info] GET https://owner-api.vn.cloud.tesla.cn/api/1/vehicles/1126095248155383/vehicle_data -> 408 (9201.051 ms)
teslamate_1  | 2022-01-28 09:43:14.514 [warning] TeslaApi.Error / %{"error" => "{"error": "timeout"}", "error_description" => "", "response" => nil}
teslamate_1  | 2022-01-28 09:43:14.514 car_id=1 [error] Error / :unknown
teslamate_1  | 2022-01-28 09:44:05.269 car_id=1 [info] Suspending logging

I have encountered it too, but I don't have any data. Could you tell me how to solve it .

Add two server (name I forgot, search other issue) ip in  teslamate: docker-compose.yml, should be fixed


Support Spearman correlation?

Spearman correlation may better inform monotonicity constraints vs. Pearson correlation.
Would just be nice to see in addition to Pearson correlation in feature_select().

Hi @jphall663,
Starting from v0.5.0, the Spearman correlation-based feature selection has been added, see the user guides.
https://selfexplainml.github.io/PiML-Toolbox/_build/html/guides/data/feature_select.html#correlations

Yep I see it - thanks!
I have some other notes I'll post here in coming days.


issue in Google LOGO...

hi there..
my wife got a meticulous problem in the official LOGO of Tensorflow.
see the logo:
(https://user-images.githubusercontent.com/39337227/43732365-c2b3a27e-99c6-11e8-94dc-735a1727678e.JPG)
in T of the logo, its have 4 column but in shadow its have 3 column.
corroct it.
we also accept any gift for that . 🥇

This is funny - your wife needs to project a little more @sauronpy

not sure if this is a bug

Nagging Assignee @wolffg: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @wolffg: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @wolffg: It has been 44 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

This is a duplicate of #1922. It comes up from time to time.


The list of transactions isn't shown in the block detail page

The number of transactions per type is also not updated.

https://explorer.codechain.io/block/24375


Dev Task: Balance game stats

The game should be balanced out to feel challenging.
Things that should be balanced:

How strong should enemies be?
How much experience should they give?
How much experience is needed for each level
What stats should each equipment piece have?
...

Being fixed in:
https://github.com/jonathaneeckhout/jdungeon/pull/81

duplicate of https://github.com/jonathaneeckhout/jdungeon/issues/28


add custom_jvp for logaddexp / logaddexp2

fixes #2107, draws from #2356 and #2357, thanks @yingted !

@yingted since I listed you as a coauthor, can you tell googlebot that you accept the CLA?

@googlebot I consent.


Upload and Download at the same for large file

I am looking solution  for download large file during upload
for example i have started uploading from one user(100 GB file) it takes an hour at the same other user need to start download the file  at other end without waiting to complete upload process

There is no pre-built solution for this use case.
How you approach this problem depends on your use case. Are you thinking of single uploader and a single downloader, or a single upload with multiple downloaders?
Amazon Kinesis was designed to stream data and have multiple consumers of the data, bit it far more complex than simple file transfers.
You might also try asking your question on StackOverflow or the AWS Forums to see if other people have had the same issue.


WCAG reference on accessibility guidelines

Request type

[] Please close this issue, I accidentally submitted it without adding any details
[ ] New documentation
[x] Correction or update

Details

I was reading this page:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/Understanding_WCAG/Keyboard
Since the documentation (reached from the Accessibility inspector in the dev tools (FF Dev Edition v.71 ob3 on macOS Mojave 10.14.6) references WCAG, it would probably be helpful for users if there were links to the relevant guidelines in the W3C site so we could know which principals/guidelines/success criteria apply.

This is a pretty good idea @jmswisher . In the same way as we do on the text labels page, perhaps?
https://wiki.developer.mozilla.org/en-US/docs/Web/Accessibility/Understanding_WCAG/Text_labels_and_names#Related_WCAG_success_criteria


[Compatibility Error]

Avatar Limb Grabber appears to conflict with "TotallyWholesome" and cause the lead to stop working afterawhile.

I don't have access to this mod to see what can cause this issue.


Cyrillic Checkpoints

Hello,
Please advice how can I build cyrillic checkpoints?
Thank you.

Hi,
You can prepare your dataset and a pretrained model, train your model using a demo training script, remember to set checkpoint_save_mode=1. while training is finished, you will see the checkpoint in the checkpoints directory.


"Overload:" artifact in "Assertions" article

https://msdn.microsoft.com/en-us/visualfsharpdocs/conceptual/assertions-[fsharp]

I'm not sure, but it seems that Overload:System.Diagnostics.Debug.Assert should be a link.

I'll add "Overload:" to the list of bad prefixes I remove in #61

@dend or @vasily-kirichenko Please close this now. Fixed.

@ReedCopsey there looks to be a note formatting issue. I will fix that and will update the bug after.

@dend So - are the braces actually required?

@ReedCopsey nope, it's the location of the exclamation mark and the prefix.

@dend Does it need a space between the > and ! ? I'll submit a PR to fix, if that's the issue.


badge not work

Laravel Version: 5.8.15
PHP Version: PHP/7.3.2
Laravel-admin: ^1.7

Description:
return "TEXT";
OR
$grid->name()->badge('danger');
badge status like danger or warning or info or .... not show.
it just has one color!

i solved this by using labels instead of badges


Exception - StackOverflow

When used in WCF. The WCF service is self-hosted.
<system.diagnostics>
<sources>
  <source name="System.ServiceModel"
          switchValue="Information, ActivityTracing"
          propagateActivity="true">
    <listeners>
      <add name="xml" />
    </listeners>
  </source>

  <source name="System.ServiceModel.MessageLogging">
    <listeners>
      <add name="xml" />
    </listeners>
  </source>
</sources>

<sharedListeners>
  <add name="xml"
       type="SerilogTraceListener.SerilogTraceListener, SerilogTraceListener"
       initializeData="application-id" />
</sharedListeners>

</system.diagnostics>
An unhandled exception of type 'System.StackOverflowException' occurred in SMDiagnostics.dll

Hi! Thanks for the heads-up; we'll need some more info (possibly some debugging at your end) to track this down.
As the issue here is quite old, I'll assume it's stale and close it. If there's still a problem please feel free to reopen.


Remove model imports from init.py

Now models need to be imported from specific files to reduce the chance for circular imports.

Codecov Report

Merging #102 (afe16f3) into main (2695b7d) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #102   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           15        14    -1
  Lines          816       814    -2
=========================================
- Hits           816       814    -2

Impacted Files
Coverage Δ

meilisearch_python_async/client.py
100.00% <100.00%> (ø)

meilisearch_python_async/index.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


WIP: Remove CommitStatus.Index field.

The problem is if two commit status updates come in simultaneously, they get the same Index value, and fail to insert into db, resulting in missing data. (described in and fixes #14059)
As far as I can tell this field is only used to know the sequence for commit statuses of one commit.  This can be calculated from the ID field, with no need for the additional Index field.
This PR removes the Index field and refactors the ordering to use the ID field.
I see no other use of CommitStatus.Index, apart from the API exposes ID which used to map to Index and I've changed this to map to ID.
TODO

[x] Remove Index field
[x] Sort by ID instead of Index
[ ] Consider API impact
[ ] Fix tests
[ ] Migration
[ ] Testing

I don't understand the mysql8 test failure? Did something timeout?
...

=== TestSignupEmail (integrations/signup_test.go:37)
=== TestPushDeployKeyOnEmptyRepo (integrations/ssh_key_test.go:47)
SIGABRT: abort
PC=0x474061 m=0 sigcode=0

goroutine 0 [idle]:
runtime.futex(0x42a5b08, 0x80, 0x0, 0x0, 0x200000000, 0x42a5140, 0x7ffcd8231260, 0x442573, 0x7ffcd8231240, 0x40df9f, ...)
	/usr/local/go/src/runtime/sys_linux_amd64.s:587 +0x21
runtime.futexsleep(0x42a5b08, 0x3ed400000000, 0xffffffffffffffff)
	/usr/local/go/src/runtime/os_linux.go:45 +0x46
runtime.notesleep(0x42a5b08)
	/usr/local/go/src/runtime/lock_futex.go:159 +0x9f
runtime.stopm()
	/usr/local/go/src/runtime/proc.go:1924 +0xc5
runtime.exitsyscall0(0xc006280c00)
	/usr/local/go/src/runtime/proc.go:3415 +0x11d
runtime.mcall(0x0)
	/usr/local/go/src/runtime/asm_amd64.s:318 +0x5b

...

fs     0x0
gs     0x0
timeout: the monitored command dumped core

It seems it's timeout. unrelated with your PR.

Codecov Report

Merging #14160 (35d9a74) into master (3175d08) will decrease coverage by 0.01%.
The diff coverage is 40.00%.

@@            Coverage Diff             @@
##           master   #14160      +/-   ##
==========================================
- Coverage   42.01%   42.00%   -0.02%
==========================================
  Files         733      733
  Lines       78704    78691      -13
==========================================
- Hits        33070    33055      -15
- Misses      40202    40205       +3
+ Partials     5432     5431       -1

Impacted Files
Coverage Δ

models/commit_status.go
62.50% <25.00%> (-0.59%)
:arrow_down:

modules/convert/status.go
50.00% <100.00%> (ø)

modules/git/repo_base_nogogit.go
63.63% <0.00%> (-9.10%)
:arrow_down:

modules/git/utils.go
77.77% <0.00%> (-2.78%)
:arrow_down:

models/unit.go
46.57% <0.00%> (-2.74%)
:arrow_down:

modules/queue/workerpool.go
56.73% <0.00%> (-2.05%)
:arrow_down:

modules/git/repo_commit_nogogit.go
65.00% <0.00%> (+1.66%)
:arrow_up:

modules/process/manager.go
75.00% <0.00%> (+2.50%)
:arrow_up:

modules/indexer/stats/db.go
60.00% <0.00%> (+4.00%)
:arrow_up:

Continue to review full report at Codecov.

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

I figured the original usage was to aid the ORDER BY which cant use the index on id alone if there is a WHERE, in which case the index needs to be multipart on repo_id,sha,id as the select will look like select `id`,`index`,`sha`,`state` from `commit_status` where `repo_id`=1 and `sha`='f0e325d9a81450c3f5a81249d19149a74d5e85c9' order by `index`; and I just tried to preserve that. But I wasn't sure how to define the order of columns in the index which is important. currently they in wrong order.
Although that said, the small amount or records for a specific SHA probably wont be that expensive to order without an index.
If there is no other usage for that index, maybe it could be removed.
From mysql docs:
SELECT * FROM t1
  WHERE key_part1 = constant
  ORDER BY key_part2;

In this query, key_part1 is constant, so all rows accessed through the index are in key_part2 order, and an index on (key_part1, key_part2) avoids sorting if the WHERE clause is selective enough to make an index range scan cheaper than a table scan. https://dev.mysql.com/doc/refman/5.7/en/order-by-optimization.html#order-by-index-use

I figured the original usage was to aid the ORDER BY which cant use the index on id alone if there is a WHERE, in which case the index needs to be multipart on repo_id,sha,id as the select will look like select `id`,`index`,`sha`,`state` from `commit_status` where `repo_id`=1 and `sha`='f0e325d9a81450c3f5a81249d19149a74d5e85c9' order by `index`; and I just tried to preserve that. But I wasn't sure how to define the order of columns in the index which is important. currently they in wrong order.
Although that said, the small amount or records for a specific SHA probably wont be that expensive to order without an index.
If there is no other usage for that index, maybe it could be removed.
From mysql docs:
SELECT * FROM t1
  WHERE key_part1 = constant
  ORDER BY key_part2;

In this query, key_part1 is constant, so all rows accessed through the index are in key_part2 order, and an index on (key_part1, key_part2) avoids sorting if the WHERE clause is selective enough to make an index range scan cheaper than a table scan. https://dev.mysql.com/doc/refman/5.7/en/order-by-optimization.html#order-by-index-use

Firstly, thanks for your work!
Will this be further worked on?
The bug is a major problem for my setup as my CI tool starts one check when another has finished and half of the time, the "finished" state of the first build is not shown in Gitea and thus blocks merging.

I will continue the work based on #15599


fix(eslint): fix configs

:tada: This PR is included in version 1.1.0-next.9 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[T4A4][T14B2]Abdul Haliq

Ready for review

This PR should be against nus-cs2103-AY1617S1 :-)
Closing...


kubelet / kube-controller-manager fail to start using openstack cloud provider

What kind of request is this (question/bug/enhancement/feature request):
bug
Steps to reproduce (least amount of steps as possible):

Set up a k8s cluster using the openstack cluster driver
Provide a password  in your cluster yaml:

cloud_provider:
  name: "openstack"
  openstackCloudProvider:
    global:
[...]
      password: "XXXX"
[...]

Result:

kube-controller-manager fails to start
kubelet fails to start
Cluster deployment ist stuck "Waiting to register with Kubernetes"

Other details that may be helpful:
Both containers fail to authenticate with openstack on all nodes:
root@k8smaster:~# docker logs $kube-controller_container_id
[...]
W0626 08:09:32.053746       1 plugins.go:118] WARNING: openstack built-in cloud provider is now deprecated. Please use 'external' cloud provider for openstack: https://github.com/kubernetes/cloud-provider-openstack
F0626 08:09:32.444440       1 controllermanager.go:208] error building controller context: cloud provider could not be initialized: could not init cloud provider "openstack": Authentication failed
root@k8smaster:~# docker logs $Kubelet_container_id
[...]
W0626 08:11:45.622410   21306 plugins.go:118] WARNING: openstack built-in cloud provider is now deprecated. Please use 'external' cloud provider for openstack: https://github.com/kubernetes/cloud-provider-openstack
F0626 08:11:46.022773   21306 server.go:261] failed to run Kubelet: could not init cloud provider "openstack": Authentication failed
root@k8sworker:~# docker logs $Kubelet_container_id
[...]
W0626 07:31:51.815122   20532 plugins.go:118] WARNING: openstack built-in cloud provider is now deprecated. Please use 'external' cloud provider for openstack: https://github.com/kubernetes/cloud-provider-openstack
F0626 07:31:52.212220   20532 server.go:261] failed to run Kubelet: could not init cloud provider "openstack": Authentication failed

The problem seems to be the back ticks used to escape the password in /etc/kubernetes/cloud-config:
root@k8sworker:~# cat /etc/kubernetes/cloud-config
[Global]
[...]
password  = `XXXX`
[...]

Replacing those with double quotes fixes the issue :
root@k8sworker:~# cat /etc/kubernetes/cloud-config
[Global]
[...]
password  = "XXXX"
[...]

Environment information

Installation option (single install/HA): single install
Rancher version:

rancher-host ~ # docker ps
CONTAINER ID        IMAGE                    COMMAND             CREATED             STATUS              PORTS                                      NAMES
f795a3621fba        rancher/rancher:stable   "entrypoint.sh"     42 hours ago        Up 17 hours         <IP_ADDRESS>:80->80/tcp, <IP_ADDRESS>:443->443/tcp   gallant_meitner
rancher-host ~ # docker exec -it f795a3621fba rancher --version
rancher version v2.2.4

The password used started with a special character. Using an alpha-numerical password leads to an unquoted entry in cloud-config and everything works as expected.

backticks are a brave way of escaping strings ;)


[Bug]: When the admin user views the details of a shadow table task issued by an ordinary user, NPE occurs.

ODC version
ODC 4.2.4
OB version

What happened?

When the admin user views the details of a shadow table task issued by an ordinary user, NPE occurs.
What did you expect to happen?
View task details without reporting errors
How can we reproduce it (as minimally and precisely as possible)?
Use an ordinary user to deliver shadow table synchronization tasks, and use the admin user to view task details.
Anything else we need to know?
No response
Cloud
No response

It occurs when the ticket is auto-approval

The structure comparing task has this issue too.

PASS


"Entire Tree" button in malicious workspace should link to compactTree view, not subtree view

Important because:

experiment participants playing malicious expert are super confused by the subtree view
The subtree view includes scratchpad content from the honest expert and judges, which the malicious expert (arguably) shouldn't have (easy) access to


Update index.rst to solve weird formatting

there's an issue with the previous bullet points, where there should be a blank line between bullets of different indentations for markdown. I'm not 100% if that will fix the rendering issue but might be worth giving a try before switching completely to html?
ex
* bullet 1

   * nested bullet
   * nested bullet

* bullet 2

   * nested bullet

They say that ChatGPT will replace developers but they could never replace @carolineechen (I spent a long time debating ChatGPT about why it doesn't work - the extra space below fixed it!)


[Bug] idk

Sorry, I don't use GitHub at all.
https://cdn.discordapp.com/attachments/536389434543833098/553708392284160005/2019-03-08_16-19-21.gif
https://cdn.discordapp.com/attachments/536389434543833098/553708390690455552/2019-03-08_16-19-58.gif
(Clicking "Server Discovery" got rid of the "New" notification)

The first one isn't a bug, its just telling you its a new feature. Click it.
The other part you can fix with this

body {
	&:not(.bd-hideButton) {
		.wrapper-1Rf91z {
			padding-top: 50px;
			+ {
				[class*='flex'] {
					border-radius: 0 0 0 5px;
				}
			}
		}
		.platform-osx {
			.wrapper-1Rf91z {
				margin-top: 25px;
			}
		}
	}
}

So I should close the issue now?


Scoring Logic

We need to design and implement the scoring logic for the teams. This needs to be added to the appropriate views.
General idea: Teams will get points for the percentage decrease in energy usage they have over the previous month. We had some conversations about potential variations and ideally we'd have usage information from the previous year but that is not easy to do until we get Green Button access.
Teams should be ranked on a monthly basis and receive a monthly e-mail update or other notification.

Also even though I self-assigned this could be a beast of a task so I'm open to helpers.

The current placeholder code computes for each user the difference between the previous month's and the current month's bill amounts, and then the team score is the average of its member's scores.
This only works if the bills are coming in once a month, and also pays no attention to things like seasons. If the bills don't come in regularly, the user is assigned score 0, and that is reflected in the team score, which is why all the scores using the current fake data are generally 0.
We probably want to adjust it to be a percentage drop rather than overall magnitude, right?
We'd probably need someone with actual experience and/or data to deal with seasons because otherwise scores are going to tank during the winter.
The code for the scoring in the user model could definitely afford to be refactored.

Where did we put the placeholder code?

It's in the user model.

Should app participation things like profile completeness be added to the score? Or should the score be only bill-based?

Do rates per kilowatt hour stay constant?
What percentage did bill decrease month to month?
(previous month- current month)/previous month

http://stackoverflow.com/questions/23617426/ruby-on-rails-calculate-rank is probably helpful for implementation

Comparing month-to-month seems an unusual approach, as it introduces extra variables. Has using the current month's population-wide usage been considered as the basis against which to compare the individual?


Correct use of not() expresssion

Q
A

Library version
0.1.15

PHP version
8.0.8

Thanks for a great tool. I'm exploring setup for my project and have run in to the following issue:
In my App\UI\Form namespace, I have two types of classes - form types and form data - e.g. FooType and FooData. The type classes extend from Symfony's AbstractType, whereas the data classes do not extend or implement anything, so I'm trying to use Not() to invert the selection for the data classes.
    $formTypeClassNames = Rule::allClasses()
        ->that(new ResideInOneOfTheseNamespaces('App\UI\Form'))
        ->andThat(new Extend(AbstractType::class))
        ->should(new HaveNameMatching('*Type'))
        ->because('we want uniform form type naming');

    $formDataClassNames = Rule::allClasses()
        ->that(new ResideInOneOfTheseNamespaces('App\UI\Form'))
        ->andThat(new Not(new Extend(AbstractType::class)))
        ->should(new HaveNameMatching('*Data'))
        ->because('we want uniform form data class naming');

However, this second rule appears to find no classes to work with. Am I querying correctly with the Not() expression?
Thank you

Hello, I'm looking for an open-source project to contribute and I found this one. I like the idea and I see myself using it in my projects in the future, so I would like to offer a help. Are you open to outside contributions?

Thanks @benr77 for the issue we can try to replicate the problem and create a fix for it.
@MatusMak if you want to contribute you can do it, you can suggest improvements and try to fix bugs like this one, you are welcome.

I am just checking the code. As of now the class Not is a way do just manipulate the error messages but does not actual perform a logical not on the expression. Since every rule implements a method with the following signature
public function evaluate(ClassDescription $theClass, Violations $violations): void
There is not an easy way to say "take the result of the evaluation of this rule and negate it"
The most straightforward way to implement achieve what you need would it be to create another rule, like NotExtend, which operates like Extends but negates the result
@benr77 @AlessandroMinoccheri @fain182 what do you think?

I like the solution to create another rule NotExtend.
In my opinion, we can improve the documentation to specify the real means of Not because it could be misunderstood.

@benr77 we have released a new version: 0.2.0 with new classes like NotExtend and we removed the Not class.
I am closing this issue at the moment, feel free to open new issues if you have new improvements

Thank you. I have tested NotHaveNameMatching and that is working fine.
I still have issues with Implement / NotImplement and Extend / NotExtend which I'll open a new issue for.


add: island count problem and tests

Codecov Report

Merging #30 into master will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #30      +/-   ##
==========================================
+ Coverage   99.29%   99.32%   +0.03%
==========================================
  Files          20       21       +1
  Lines         424      447      +23
==========================================
+ Hits          421      444      +23
  Misses          3        3

Flag
Coverage Δ

#go
100.00% <100.00%> (ø)
:arrow_up:

#javascript
96.80% <ø> (ø)
:arrow_up:

Impacted Files
Coverage Δ

problems/other/islandcount/islandcount.go
100.00% <0.00%> (ø)

Continue to review full report at Codecov.

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

Codecov Report

Merging #30 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #30      +/-   ##
==========================================
+ Coverage   99.29%   99.32%   +0.03%
==========================================
  Files          20       21       +1
  Lines         424      447      +23
==========================================
+ Hits          421      444      +23
  Misses          3        3

Flag
Coverage Δ

#go
100% <100%> (ø)
:arrow_up:

#javascript
96.8% <ø> (ø)
:arrow_up:

Impacted Files
Coverage Δ

problems/other/islandcount/islandcount.go
100% <100%> (ø)

Continue to review full report at Codecov.

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


context is lost when using transform

The following code:
import { OpenAPIRegistry, OpenApiGeneratorV3, extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi'
import { AnyZodObject, z } from 'zod'
import { mapKeys, camel } from 'radash'

extendZodWithOpenApi(z)

const registry = new OpenAPIRegistry()

const bodySchema = z
  .record(z.string())
  .transform((x) => mapKeys(x, camel))
  .pipe(
    z.strictObject({
      fieldId: z.string().nullish().openapi({
        description: 'Test Field ID'
      }),
      errorType: z.string().openapi({
        description: 'Error Type'
      })
    })
  ) as unknown as AnyZodObject

registry.register('body', bodySchema)
const generator = new OpenApiGeneratorV3(registry.definitions)
const component = generator.generateComponents()

console.log(JSON.stringify(component, null, 2))

will produce the following schema in the spec:
{
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    }
  }
}

So the context & actual schema is lost, which is incorrect.
If record, transform and pipe are not used and instead just the strictObject it'll produce the correct schema in the spec:
{
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "fieldId": {
              "type": "string",
              "nullable": true,
              "description": "Test Field ID"
            },
            "errorType": {
              "type": "string",
              "description": "Error Type"
            }
          },
          "required": ["errorType"],
          "additionalProperties": false
        }
      }
    }
  }
}

@treboryx the "problem" here is the pipe operator and your expectation towards it. We implemented the support for it in this PR with this comment: https://github.com/asteasolutions/zod-to-openapi/pull/118#issue-1669555907
We've taken the decision that the "in" part of a pipe is what should be used as the source for documentation.
The main argument behind it is that people use zod for validation and that is what their documentation should represent. In your case the input form of your API is a record of strings. What you do in the transform and later on in the pipe becomes "application logic" and not "incoming request logic".
So I would say that this works "as expected". However I can try and give you some pointers:

You can always use .openapi to override anything - you can simply pass in a manually written documentation. That is obviously not ideal but I imagine this is a singular instance for you
You could restructure your validation to:

const bodySchema = z.preprocess(
  x => mapKeys(x, camel),
  z.strictObject({
    fieldId: z.string().nullish().openapi({
      description: 'Test Field ID',
    }),
    errorType: z.string().openapi({
      description: 'Error Type',
    }),
  })
);,

And I am not saying this just as a mean to "make it work with our library" but rather as an attempt to streamline your code. I.e from what I understand you don't intend to receive a record - that's just a "boilerplate" root schema (it could've been z.any() for that matter). And by using an actual schema AND a preprocess you showcase this in a slighly more obvious way.
P.S.I might be wrong here.
Please let me know if those make sense and work for you.

@treboryx the "problem" here is the pipe operator and your expectation towards it. We implemented the support for it in this PR with this comment: #118 (comment)
We've taken the decision that the "in" part of a pipe is what should be used as the source for documentation.
The main argument behind it is that people use zod for validation and that is what their documentation should represent. In your case the input form of your API is a record of strings. What you do in the transform and later on in the pipe becomes "application logic" and not "incoming request logic".
So I would say that this works "as expected". However I can try and give you some pointers:

You can always use .openapi to override anything - you can simply pass in a manually written documentation. That is obviously not ideal but I imagine this is a singular instance for you
You could restructure your validation to:

const bodySchema = z.preprocess(
  x => mapKeys(x, camel),
  z.strictObject({
    fieldId: z.string().nullish().openapi({
      description: 'Test Field ID',
    }),
    errorType: z.string().openapi({
      description: 'Error Type',
    }),
  })
);,

And I am not saying this just as a mean to "make it work with our library" but rather as an attempt to streamline your code. I.e from what I understand you don't intend to receive a record - that's just a "boilerplate" root schema (it could've been z.any() for that matter). And by using an actual schema AND a preprocess you showcase this in a slighly more obvious way. P.S.I might be wrong here.
Please let me know if those make sense and work for you.

Hey @AGalabov, that seems to work perfectly for body schema!
We do however get the following error typing to apply that preprocess method to the query parameters.
Missing parameter data, please specify `name` and other OpenAPI parameter props using the `param` field of `ZodSchema.openapi`

The transform does apply but generating the OpenAPI document does generate that error.

@ThatKawaiiSam thank you for confirming. This sounds like an issue no our side. I'll try and reproduce it and fix it.

@ThatKawaiiSam I tried this locally and I think I know what happened:
Let's say this is the bodySchema:
const bodySchema = z.preprocess(
  x => x,
  z.strictObject({
    fieldId: z.string().nullish().openapi({
      description: 'Test Field ID',
    }),
    errorType: z.string().openapi({
      description: 'Error Type',
    }),
  })
);

This works
registry.registerPath({
  request: {
    params: z.object({ test: bodySchema }),
  },
  // Rest
});

This does not work
registry.registerPath({
  request: {
    params: bodySchema as any, // notice how in Typescript I had to cast this
  },
  // Rest
});

The problem here is that with request params/query/headers we've used ZodObject as a format defined. We depend on the fact that this is the representation of such parameters over the network. So we kind of enforce a ZodObject instance to be passed here. And in your case you are passing a "preprocessed object". I don't think I want to add support for that.
What I can suggest is to rather preprocess each parameter "manually" in such a case. Looking at your code I imagine it translates to the following (looking at mapKeys)
const parameterSchema = z.strictObject({
  fieldId: z.preprocess(camel, z.string().nullish()).openapi({
    description: 'Test Field ID',
  }),
  errorType: z.preprocess(camel, z.string()).openapi({
    description: 'Error Type',
  }),
});

I know that's not ideal, but again - I do not think we want to allow preprocessed objects as root level parameter. I hope you understand.


[FRG] Fix async print function adding done() when it shouldn’t

When I make a print function with this code:
report.print('Hello, world!', undefined, done);
it gets converted to this:
report.print('Hello, world!', done);; done();
so I have to do this instead:
report.print('Hello, world!', undefined, () => done());

This will be fixed in the next version.


[PE-D][Tester E] Linking the same contact to an event does not show that it has already been linked.

Steps to reproduce:

Open the app
Run the command linkcontact 2 12345678
Run the command linkcontact 2 12345678

Expected: It should tell you that the contact has already been linked.
Actual: Returns the default message that it has been linked successfully.

Labels: type.FeatureFlaw severity.Low
original: markusyeo/ped#5

Not an issue, but nice to have.


Disposing of resources used by function invokers when host shuts down.

Resolves #47

@mathewc , @davidebbo , since we moved the file watcher to the base invoker class, this addresses potential issues with the other languages as well.

Weird that GlobalSuppressions.cs is treated as a binary file!?

maybe because it's UTF-16

@ahmelsayed  Ah, we should change that.

The Dispose change looks straightforward enough, so go ahead.


[MM-45116] Feature: playbooks insights

Summary

Add two new endpoints used by Insights page in mm-webapp.
/playbooks/api/v0/playbooks/insights/teams/4f3rbqs5qibn5erzfazxgmssmh?time_range=28_day&page=0&per_page=200
/playbooks/api/v0/playbooks/insights/user/me?time_range=28_day&page=0&per_page=200&team_id=4f3rbqs5qibn5erzfazxgmssmh

Following is a sample response
{
  "has_next": false,
  "items": [
    {
      "playbook_id": "6nrnwj5hfty8787mos9h6dtx6y",
      "num_runs": 3,
      "title": "sth",
      "last_run_at":<PHONE_NUMBER>570
    },
    {
      "playbook_id": "3ii9fwq47pdtupqdd6ajo3axuc",
      "num_runs": 1,
      "title": "Test playbook",
      "last_run_at":<PHONE_NUMBER>384
    }
  ]
}

Ticket Link

https://mattermost.atlassian.net/browse/MM-45116
Checklist

[ ] Telemetry updated
[ ] Gated by experimental feature flag
[x] Unit tests updated

Thanks so much @crspeller for the review! I've updated the code as per your suggestions.

@Phrynobatrachus, can you help take a look at this PR for the Insights feature?

Is the feature supposed to be fully working alongside https://github.com/mattermost/mattermost-webapp/pull/10919/files or is there still additional plumbing left to do?

Is the feature supposed to be fully working alongside https://github.com/mattermost/mattermost-webapp/pull/10919/files or is there still additional plumbing left to do? As it is right now, the table only shows the loading state, and no actual data.

I'll take a look and see what's up!

Oh I see what happened, we merged the client stuff into upstream and not Shivashis' branch.
@plant99 Can you merge upstream/MM-45116_top_playbooks into this branch?

Hi @BenCookie95 , @Phrynobatrachus  I've merged changes from that branch into this one. Should work now.


chore: autogenerated sourcery files

Complete each step to get your pull request merged in. Learn more about the workflow this project uses.

[ ] Assign members of your team to review the pull request.
[ ] Wait for pull request status checks to complete. If there are problems, fix them until you see that all status checks are passing.
[ ] Wait until the pull request has been reviewed and approved by a teammate
[ ] After code reviews are approved and you determine this PR is ready to merge, select Squash and Merge button on this screen, leave the title and description to the default values, then merge the PR.

Actually, can you point this to main? Since future PRs will need this, too?