[Improvement][Datasource] refactor datasource parsing other parameter

Purpose of the pull request

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

Codecov Report

Merging #6751 (6c6b102) into dev (be28d2c) will increase coverage by 0.13%.
The diff coverage is 54.34%.

@@             Coverage Diff              @@
##                dev    #6751      +/-   ##
============================================
+ Coverage     37.69%   37.82%   +0.13%
+ Complexity     3175     3173       -2
============================================
  Files           638      638
  Lines         26176    26100      -76
  Branches       2834     2835       +1
============================================
+ Hits           9867     9873       +6
+ Misses        15392    15318      -74
+ Partials        917      909       -8

Impacted Files
Coverage Δ

...mon/datasource/mysql/MysqlDatasourceProcessor.java
60.00% <40.00%> (+3.93%)
:arrow_up:

...urce/clickhouse/ClickHouseDatasourceProcessor.java
55.88% <50.00%> (+12.40%)
:arrow_up:

.../common/datasource/db2/Db2DatasourceProcessor.java
51.51% <50.00%> (+11.51%)
:arrow_up:

...ommon/datasource/hive/HiveDatasourceProcessor.java
34.28% <50.00%> (+3.79%)
:arrow_up:

...n/datasource/oracle/OracleDatasourceProcessor.java
46.34% <50.00%> (+8.60%)
:arrow_up:

...urce/postgresql/PostgreSqlDatasourceProcessor.java
50.00% <50.00%> (+10.86%)
:arrow_up:

...n/datasource/presto/PrestoDatasourceProcessor.java
51.51% <50.00%> (+11.51%)
:arrow_up:

...mon/datasource/spark/SparkDatasourceProcessor.java
40.38% <50.00%> (+6.00%)
:arrow_up:

...source/sqlserver/SqlServerDatasourceProcessor.java
48.48% <50.00%> (+9.84%)
:arrow_up:

...common/datasource/AbstractDatasourceProcessor.java
60.86% <60.00%> (-1.04%)
:arrow_down:

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 be28d2c...6c6b102. Read the comment docs.


MAINT: rename do.py to dev.py

The new developer CLI seems robust, so it's time to get rid of the duplication.
Note that the moving is done in a separate commit from deleting the old dev.py in order not to confuse git.

Otherwise, what is our timeline to remove runtests.py?

When we remove numpy.distutils builds, which is at a minimum several months away I'd say.


Rename "Official Apple Blogs" section & added new sites

Renamed the "Official Apple Blogs" section issue #234 & added three sites

Swift-Evolution
Apple Platform SDK API Differences
App store review guidelines history

Thanks! This turned out to be a great change 👍


Resolves #88 - satisfies type instead of inferring

Description
See #88 in reference to the issue. This implements the satisfies keyword for the type instead of inferring the zodType directly.
import { z } from 'zod';

import type { Prisma } from '@prisma/client';

const Schema = z
  .object({
    id: z.number().optional(),
    email: z.string().optional(),
  })
  .strict() satisfies z.ZodType<Prisma.UserWhereUniqueInput>;

export const UserWhereUniqueInputObjectSchema = Schema;

With the above, you can now
const ExtendedSchema = UserWhereUniqueInputObjectSchema.extend({
  example: z.string()
})
// And
const ExampleSchema = UserWhereUniqueInputObjectSchema.shape.example;

References
Fixes #88. And a similar discussion in the zod repo.

I've done a little more investigating and it seems this has an unintended effect on schemas with z.lazy() where it makes the type an any. Argh! I've marked this PR as draft for now.

Any suggestions how we could get around this? One solution is keeping the original, but also exposing the raw z.object schema:
const Schema = z
  .object({
    id: z.number().optional(),
    email: z.string().optional(),
  })
  .strict() satisfies z.ZodType<Prisma.UserWhereUniqueInput>;

export const _UserWhereUniqueInputObjectSchema = Schema;
export const UserWhereUniqueInputObjectSchema: z.ZodType<Prisma.UserWhereUniqueInput> = Schema;

Keen for thoughts on this!

hi omar, thank you so much for this extremely helpful library! Is it possible for you to make it compatible with Prisma 5 as well?


ci: Test on Python 3.11

The robot is running Python 3.11, so we should test with the same version.

Current dependencies on/for this PR:

main

PR #58   👈

PR #59

PR #60

This comment was auto-generated by Graphite.


Fix file system issues with convertPoundToKilogram.

Closes #484
Fix file system issues with convertPoundToKilogram.
Add skeleton method for circumferenceOfACircle.

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

@ktilcu I added more tests.

Thanks for the quick response! Happy Hacktoberfest! 🎃

It would help us if you made an issue for you new method too. Thank you!

Created an issue for the new circumferenceOfACircle method. Cheers


vizzini driver (Atlys) for Exar XR21V1414 USB UART is not reliable

The driver HDMI2USB-misoc-firmware installs appears to be buggy;

flterm appears to work fine (read/write)
minicom/pyserial appear to only write to the device; trying to read from it causes the application to hang

@shenki may have a fix for this.
URL's of note:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804350
https://github.com/shenki/linux/commits/vizzini

@mithro and I tested ben's driver a few months back. We found that it worked for the most part, but we needed to ignore some of the USB descriptor. From the commit message:
usb-serial/vizzini: Fix probing for 1410 device

This device has the following configuration:

 device
  - interface
    - interrupt endpoint
  - interface
    - in bulk endpoint
    - out bulk endpoint

The first interface should be ignored in order to correctly probe. The
device appears to operate correctly, but this may be a horrible

Some further digging is required to work out what we miss out by ignoring that interrupt endpoint.

I have sent the patch to the debian bug tracker

@shenki ping :P


Implemented mapped memory allocator for memory pool

MemoryPool currently uses Jemalloc to allocate memory. The idea is to let MemoryPool to move away from Jemalloc and instead use MmapAllocator to allocate memory. The allocation scenarios can be largely devided to the following:

Tiny allocations:
For allocation size that is less than 3/4 of the smallest size class in mapped memory, we delegate the job
to Jemalloc to minimize memory inefficiency. Consider smallest size to be 4096 bytes and user only needs 1024 bytes of memory. In this case if we still try to use mapped memory we will waste 3072 bytes of memory, having memory utilization efficiency of only 25%.
Small allocations:
For allocation size that is larger than smallest size class but less than or equal to biggest size class, we use mapped memory to allocate memory. The allocated size will be rounded up to the closest size class. The allocated memory will, of course, be a contiguous chunk of memory equaling to the size class. This will likely create memory utilization inefficiency but we can overcome it by adding more size classes in between based on actual memory usage.
Large allocations:
For allocation size that is larger than largest size class, we use contiguous allocation from mapped memory to allocate memory. There will not be memory utilization inefficiency in this case because an exact sized memory chunk will be mmaped instead of any rounding like in small allocation scenario.

The changed allocator breaks some tests. Fixing them now.

Hi @tanjialiang  can you give some more background about why we need to move away from Jemalloc?  Thanks very much!

Hi @tanjialiang can you give some more background about why we need to move away from Jemalloc? Thanks very much!

Hi @leoluan2009 the goal is to have as complete control as possible of memory allocation to achieve better stability and better resource allocation.


Options for valid answers to number entry parts

Numbers can be written in various forms, and you might want to restrict the student to only some of them.
The question author should have a list of options for valid input:

integer
decimal
fraction (a/b). Give partial marks when only one part is right?
scientific notation. E notation is easiest, but is it worth doing a*10^b as well?
engineering notation (scientific notation, but the exponent must be a multiple of 3, so the coefficient is in the range 1 to 1000)
complex numbers (a + b i). I think the most straightforward way of accepting these is to parse as JME then make sure it matches a pattern. The imaginary unit isn't always called i.
number in a range, e.g. 0 to 9, or -pi to +pi.

The decimal places restriction only makes sense for decimal numbers. Sig. figs. applies to everything except fractions.
Scientific notation could have an option to require normalised forms (i.e., things like 300e2 would be invalid)
How do complex numbers interact with the other options? For example, you might want to ask for a complex number with coefficients given in engineering notation.
The "min value" and "max value" options don't make sense for complex numbers. Maybe (min,max) could be interpreted as the corners of a rectangle of acceptable answers? This makes a case for switching to "correct answer +- tolerance".

To do this:

Add an option answerFormat to NumberEntryPart.settings. You'll have to add this option to the corresponding class in bin/exam.py as well. The option should be a dictionary mapping format names to true/false values, where true means that the format is allowed. The default should be to allow integers and decimals, but nothing else.
In the NumberEntryPart constructor, change the definition of displayAnswer so it produces an answer in an allowed format.
Expand NumberEntryPart.studentAnswerAsFloat to accept each of the different forms. It should try each of the allowed forms in turn.
Change cleanAnswer so it does the right thing based on the allowed formats.
Add a method validAnswer(string) which decides if a given string is a valid answer, and use it in the mark method instead of util.isNumber.
In themes/default/files/scripts/display.js, change NumberEntryPartDisplay.cleanStudentAnswer to accept all allowed formats, and give sensible feedback when an invalid answer is given.
Add the option to the editor.

This option supersedes the "allow fractions" option, so you should remove that and write a .exam migration to upgrade old .exam files.

@christianp I want to take on this issue, but this seems pretty daunting.
Are all parts of this issue still unresolved?

Yes, this is still unresolved, and in fact I want to take it on, so I'll remove the up-for-grabs label.

I've added "complex number" to my list of formats, but I'm not completely convinced that it fits. It's somewhere on the line between the single number entry part we currently have and the matrix entry part. I'm not massively happy with how many of the number entry options are repeated for the matrix entry part. And if we allow a "set entry" for things like roots of equations, that would be another part type with many of the same options.
I don't think there's any way round this - I just need to make sure that shared code is not repeated, and accept that options will be repeated across part types. I don't think a massive generic "some number of numbers" part type is the right answer.

I've added "number in a range", because we have a few questions on modular arithmetic and trig that ask for a number in a given range. Refusing to accept numbers outside the desired range would help avoid innocent mistakes.

The possibility of accepting scientific notation like 2.321 * 10^3 has come up again. I thought I'd write down some thoughts here.
It looks straightforward: you might write down a regular expression like (-?)(\d+(\.\d+)?)\s*\*\s*10^(-?\d+). This would match things like 2*10^4 and -1.302 * 10^-19.
But it wouldn't match —2×10ˆ-2, or even -2 * 10^(-2), when you use unicode lookalike characters or brackets around the exponent.
So it might make sense to parse the string as a JME expression and then use pattern-matching to check it's of the form (`+- $n) * 10^(`+- integer:$n). Would we want to accept 10^2 * 2.34, or should we turn off commutativity? What about 2.34 * 10?
But then we should really provide a preview rendering to the student. Is that reasonable, even though most of the time it'll look exactly the same as what they wrote?

One reason not to use the JME parser for scientific notation is that at the moment there's no way of getting it to stop once it's matched "enough". The other number formats all allow for any amount of extra stuff after the number part, to allow for strings like a quantity with units.

We've had a request to use scientific notation for the parts of a complex number, e.g. 1e3 + 3e2i.


Stock up online store, pop up store for kubecon, and swag

securing the quotes from vendor to stock the online store w/t-shirts, hoodies, custom phone grips, spark tumblers, tall dress socks
items that will stock the online store & pop up store @ kubecon: t-shirts, hoodies, custom phone grips, spark tumblers, and tall dress socks
items that will be for free swag for each project: tall dress socks, custom phone grips (100 per project/cdf swag)
items for speakers: spark tumblers

order placed: socks and hoodies only


How can i add a button/link/href tag like something in chainlit?

You can use markdown in messages, as well as actions and elements.


Edit button for Circuit Type

Environment

Python version:  3.6.5
NetBox version:  2.5.13

Proposed Functionality
Add to 'Circuit Types' list the edit buttons please.
Use Case
The current 'Circuit Types' should also be editable as in other lists.
Database Changes
no
External Dependencies
no

I am showing the circuit types as editable.  Could you provide a more concrete example of why you believe they are not?

Circuit types are editable individually. There is no bulk edit operation for these, because the only two fields on this model (name and slug) are unique.

Current master branch 1a97a1c - logged in as admin - no edit buttons shown:

@wols What is the version number displayed at the bottom of the page?

v2.5.13

So you need to assign permission to edit circuit types to the current user (or group) in the admin UI. This isn't a bug.

My group is missing only the admin/* and auth/* rights...

...only me...

... in group:

Another problem discovered: I can not secrets created by myself read.
Only with super user right, I can do both - read 'Secrets' AND edit 'Circuit Types'!


分布式报错

Caused by op u'save/SaveV2_1', defined at:
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/zhaog/euler/tf_euler/main.py", line 28, in
tf.app.run(run_loop.main)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "tf_euler/python/run_loop.py", line 403, in main
run_distributed(flags_obj, run_network_embedding)
File "tf_euler/python/run_loop.py", line 395, in run_distributed
run(flags_obj, server.target, flags_obj.task_index == 0)
File "tf_euler/python/run_loop.py", line 357, in run_network_embedding
run_train(model, flags_obj, master, is_chief)
File "tf_euler/python/run_loop.py", line 138, in run_train
config=config) as sess:
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.py", line 504, in MonitoredTrainingSession
stop_grace_period_secs=stop_grace_period_secs)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.py", line 921, in init
stop_grace_period_secs=stop_grace_period_secs)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.py", line 643, in init
self._sess = _RecoverableSession(self._coordinated_creator)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.py", line 1107, in init
_WrappedSession.init(self, self._create_session())
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.py", line 1112, in _create_session
return self._sess_creator.create_session()
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.py", line 800, in create_session
self.tf_sess = self._session_creator.create_session()
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.py", line 557, in create_session
self._scaffold.finalize()
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/monitored_session.py", line 213, in finalize
self._saver = training_saver._get_saver_or_default()  # pylint: disable=protected-access
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 886, in _get_saver_or_default
saver = Saver(sharded=True, allow_empty=True)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1102, in init
self.build()
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1114, in build
self._build(self._filename, build_save=True, build_restore=True)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1151, in _build
build_save=build_save, build_restore=build_restore)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 786, in _build_internal
save_tensor = self._AddShardedSaveOps(filename_tensor, per_device)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 369, in _AddShardedSaveOps
return self._AddShardedSaveOpsForV2(filename_tensor, per_device)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 343, in _AddShardedSaveOpsForV2
sharded_saves.append(self._AddSaveOps(sharded_filename, saveables))
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 284, in _AddSaveOps
save = self.save_op(filename_tensor, saveables)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 202, in save_op
tensors)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/ops/gen_io_ops.py", line 1690, in save_v2
shape_and_slices=shape_and_slices, tensors=tensors, name=name)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/util/deprecation.py", line 488, in new_func
return func(*args, **kwargs)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3274, in create_op
op_def=op_def)
File "/home/zhaog/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1770, in init
self._traceback = tf_stack.extract_stack()
NotFoundError (see above for traceback): ckpt/model.ckpt-0_temp_75c97d512fc64129a5e87134602cf72f; No such file or directory
[[node save/SaveV2_1 (defined at tf_euler/python/run_loop.py:138)  = SaveV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_INT64, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:ps/replica:0/task:1/device:CPU:0"](save/ShardedFilename_1, save/SaveV2_1/tensor_names, save/SaveV2_1/shape_and_slices, beta1_power, beta2_power, global_step, supervisedgcn_1/dense_1/bias, supervisedgcn_1/dense_1/bias/Adam, supervisedgcn_1/dense_1/bias/Adam_1, supervisedgcn_1/gcnencoder_1/meanaggregator_1/dense_3/kernel, supervisedgcn_1/gcnencoder_1/meanaggregator_1/dense_3/kernel/Adam, supervisedgcn_1/gcnencoder_1/meanaggregator_1/dense_3/kernel/Adam_1, supervisedgcn_1/gcnencoder_1/meanaggregator_2/dense_5/kernel, supervisedgcn_1/gcnencoder_1/meanaggregator_2/dense_5/kernel/Adam, supervisedgcn_1/gcnencoder_1/meanaggregator_2/dense_5/kernel/Adam_1)]]
[[{{node save/Identity_S135}} = _HostRecvclient_terminated=false, recv_device="/job:worker/replica:0/task:0/device:CPU:0", send_device="/job:ps/replica:0/task:1/device:CPU:0", send_device_incarnation=5790890598492272996, tensor_name="edge_82_save/Identity", tensor_type=DT_STRING, _device="/job:worker/replica:0/task:0/device:CPU:0"]]

铁子，有没有安装教程，我按照官方安装完总是缺一些东西。


Added Discord to MC Attachments, Placeholders, and Mentions.

I guess I deleted my old PR when I was trying to sort out my branches.
This PR includes some minor improvement on the attachment code as well as includes the support for additional placeholders in the minecraft template and readable mentions. I cannot find anyway to retrieve nicknames with Javacord so those are still not supported through mentions or placeholders.
@nguyenquyhy The attachment handling has to be made part of the formatUrl or a similar method to still support the hover and link properties as I can't set those with Vanilla formatting and just allow your method to handle the conversion to Text as I have done with everything else in this commit.
Old PR
Javacord Issue

Now i'm wondering if there is a way to detect if a user has a role that would be awesome ;)

@VankkaGithub that's included in this PR.

hmm i tried this had no luck: http://pastebin.com/f1ruC0P2

nvm i had no luck with it being == but contains works fine

no actually still not having luck :/

@VankkaGithub what are you trying to accomplish?

I already added support for nickname 😄 .

@nguyenquyhy I'm really interested in how!

Check those out https://github.com/nguyenquyhy/Javacord/commit/513060efea084c16326f38543c528eb6a08589f2
https://github.com/nguyenquyhy/Sponge-Discord/commit/3df12705a2616622550222903b3a15ef8fbdc411

@nguyenquyhy I knew I wasn't crazy!

Can you help to resolve the conflict first 😋

@nguyenquyhy I'll merge and utilize your new API feature as soon as I get off work. This is exciting stuff! :+1:

@nguyenquyhy all good to go. Mentions, nicknames, roles etc are all working beautifully!

@Mohron what is the role and role blacklist for?

@Mohron May I know why you reverted my change of useNickname feature?

@nguyenquyhy The role/role blacklist allows you to include the discord user's role in the minecraft template and blacklist roles that you don't want to be used. There's also a default role to set the name/color of user without a role or with only blacklisted roles.
I changed the nickname feature you pushed because I had already added all the functionality for nicknames into my feature set. The only thing I was waiting on was support from the Discord API which you added. You're free to implement features as you see fit of course but I was trying to keep the nickname support consistent with the rest of the features I added.
I tried to explain all my additions in my update to the readme. If you look under minecraft _> chatTemplate You will see there's now a list of placeholders instead of just %a & %s.  So instead of having a bollean to toggle %a to nicknames, %n can be used allowing greater flexibility.

EXAMPLE
chatTemplate": "&8<&0[&r%c%r&0]&r %c%n&8> &7%s",

I see it now. I am reorganizing the setting a bit. On the placeholder, I will remove %c and %n and make it default with flag to turn off. Having all those is flexible but I don't want to make it look too complex though.

@nguyenquyhy %c is there so you can use the color from a role on other text as I do in my example.

I was going to automatically include the color with the role but I didn't want to make that forced either.

I will think about that a bit more. Maybe I'll changed my mind pretty quickly. 😋
My main concern is I want to cater 2 groups of users: people who just started using the plugins, and people who are familiar with the plugin and have Minecraft & Discord servers with complex roles.
For 2nd groups, I want to have role-based templates, which actually make both %r and %c unnecessary in this case. The current minecraft > chatTemplate would be considered template for default role, making defaultRole setting also unnecessary.
With that in mind, I then want to make the rest as simple as possible to help the 1st group getting started.
I think I will need a couple of days to play around with different configuration to have a clearer idea.
Besides, I think %a and %n is actually a better implementation, but I think I will change that a bit: make %a to be either nickname or username and add something like %u for only username. This is to make sure people with default template aware of the new nickname support. 😄

@nguyenquyhy I know this plugin is a side project for you and I'd really like to see it become as powerful as discordSRV is for Bukkit/spigot. I have plans for more improvements but I'd like to avoid wasting either of our time. I would like to try to get the implementations of our needs synced up with your vision where possible so everyone can benefit from my additions. If you get the time, maybe we can develop a plan so my edits won't conflict with yours in the future. I don't know if you actually use discord but I'm almost always available through discord.

Also I think %n and %u definitely makes more sense but I didn't want to break older configs. I will try to just avoid the discord to minecraft side of the plugin until you make your changes.

Really appreciate all your work on this plugin. Honestly I did not expect much contribution, so I was kinda lazy on writing down plan.
My suggestion is that we first collaborate on 2 config files: 1 is the default config, which should feature important features of the mods and do not scare people away due to complexity 😋; 2 is a full-blown config, featuring everything the plugin should be able to do.
Some more things I have in mind for the 2 config files:

Everything in the 1st file should still be meaningful in the 2nd file. In other words, 2nd file = 1st file + add-on.
2nd file can have features that is not possible with current Sponge or Javacord.

I don't mind adding any features that does not affect config files, so I guess there won't be much conflicting work on those.
What do you think?
I have Discord too. You can find me (Hy) on my server https://discord.gg/8gjs89d or Pixelmon's Discord server. I work weekdays (Singapore time) so I might not be very responsive at those time.


Slow navigation in Visual Studio 2015 Preview

The following commands have become very slow to respond in Visual Studio 2015 Preview when working with TypeScript projects (the same commands were nearly instant in Visual Studio 2013):

Jump to definition (F12): there is a 3-8 second pause and usually a small window appears saying "Navigating to definition..."

Create a new TS file: immediate to create, but as soon as I start typing there is at least 10 sec lag before first characters appear.

Rename variable/function/class (F2): depending on the scope there is a 2-5 second pause before you can start typing the new name, but once that appears the rename happens quickly.

The project I am working on is reasonably large, approx 800 *.ts files, where we use primarily AMD-style (import = require...) to reference other files.  Our general approach is one class/interface/enum per file.
Machine is a 1 month old Macbook Pro i7 running Windows 8.1, 16GB memory.  I decided to try out Visual Studio 2015 Preview only because of bug #1142 which I encountered after upgrading to TypeScript tools v1.3 in VS2013.

Are you able to share the affected project (assuming this is happening in some reasonably large project and not all the time in simple projects)?

Noticed many performance issues with Visual Studio 2015 preview

Code definition navigation take 2-3 seconds
Code lens takes 2 seconds
Opening solution takes 1 minute (I have about 4 projects, each with max 20 classes)
Debugging will become completely impossible sometimes.

Hope all these are being addressed.
- HaBo Rocks

@hbopuri are you able to share the project where you're seeing these issues?

@danquirk I have the project on codeplex, you can download it from here  PunchClock
One more issue: Scrolling the code file is also slow sometimes. I don't have these problems on VS 2013 Update 3.
-HaBo Rocks

Great, thanks, that will be very helpful to try to track down what's going on.

@danquirk any update?

I haven't had a chance to look at this yet, hopefully today.

@hbopuri I'm probably looking in the wrong place, but the 'punchclock' project you referenced earlier doesn't have any TypeScript files.

@paulvanbrenk you are right, it doesn't have any type script, it was in general having this performance issues with that project and others. I posted my comment here as the title was relevant to the issue, "Slow navigation in Visual Studio 2015 Preview".

To clarify, this is the issue tracker / github site for TypeScript, not Visual Studio in general.

@RyanCavanaugh Just realized, thank you.

@hbopuri, @mbeckenbach, and @mrcrowl, can you try this on the latest TypeScript release (1.4) and reopen if it still an issue?

Just a quick update on this.  Our company is now switching to VS2015 RC, and I've found that the slow responsiveness for "Jump to definition", "Rename" etc is still there.  To answer your question @mhegazy, I believe this is now 1.4 by default?

Also, not sure that I'll be allowed to share the project, but to give a sense of scale it has 683 .ts files, and about 80K line of actual typescript (excluding whitespace and brackets lines).

@mrcrowl sorry to bug you again, but can you upgrad to the latest: TypeScript 1.5-beta and let us know what you are seeing?

@mhegazy I was still experiencing this problem with TypeScript 1.5-beta + VS2015 RC . But all of the mentioned problems have disappeared in VS2015 RTM!  Well done guys :)

@mrcrowl thanks for the feedback! great to hear it is working better now.


Fix example code for EditorImportPlugin

var save was declared but never used. I renamed it to filename so that it's harder to mix with ResourceSaver.save.
change func load to func import and revert args name to further reduce confusion (hopefully).

Sure, but it would be nice to make the new sample non-useless :P
Le jeudi 19 juillet 2018, Noshyaar<EMAIL_ADDRESS>a écrit :

@Noshyaar commented on this pull request.

In doc/classes/EditorImportPlugin.xml:

return FAILED

var mesh = Mesh.new()

var save = dst + "." + get_save_extension()
ResourceSaver.save(file, mesh)

var filename = save_path + "." + get_save_extension()
ResourceSaver.save(filename, mesh)

Yes, but earlier sample kinda mislead users into overwriting the source
file since it saves to file instead of save.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.<
https://ci6.googleusercontent.com/proxy/kXXnJmNAU1bkuozJMKoR4GfydcaxljDrXOk6lOa3oyYTKfQQfcx9U9m2WSsGl0wGX3wKHMZks6W3VLf0JmiS8_xBqXKAfOWAUb2zp1PkEZjrpv5srUWHDwbtwKz22rsNTBhoL6aURQuX3t_yUt33MlT_yvbPvQ=s0-d-e1-ft#https://github.com/notifications/beacon/AEe8mlQg_sf1TH2G_ibRAZa-gkTY397Oks5uIJZmgaJpZM4VWcYq.gif>

Cherry-picked for 3.0.7.


Remove duplicated word: supported

@kathancox @rmloveland Could you help along with the PR approval? Thanks!


Add facerec_from_webcam_much_faster.py

Use a thread to capture frames, which can improve delay.

When I tried it on my raspberrypi 2 many days ago, it works. But my pi does't with me now, I will give you result a few days later.
Just now I tried it on my PC. It shocked me. Not any improve on PC. Maybe the script's name should be changed.
@ageitgey

@ageitgey I try to use a thread to capture frames, and it gives me an interesting result. In many case faster while others slower.

facerec_from_webcam.py
1100Mhz RPi2B+
800Mhz i7-4710MQ
2500Mhz i7-4710MQ

unmodified
~26s
~6s
~2s

modified
~11s
~5s
~2s

facerec_from_webcam_faster.py
1100Mhz RPi2B+
800Mhz i7-4710MQ
2500Mhz i7-4710MQ

unmodified
~1s
~realtime
~realtime

modified
<1s
~5s
~2s

modified means I use a thread to capture frames, like codes below.

def capture():
    global frame, is_exit
    while not is_exit:
        # Grab a single frame of video
        ret, frame = video_capture.read()

capture_thread = threading.Thread(target=capture, name='captureThread', daemon=True)
capture_thread.start()

How do you think about this?


Opt out of regression tests by default

This PR:

Peels a small piece off of #322
Changes regression tests to use the cli option --regression_test
Sets regression_test = false by default
Drops regression tests for mpi_baroclinic_wave_rhoe

This probably just makes more sense. This PR ties up some loose ends in #301.

bors r+


Edit blog post; add Docker; API keys; and third-party tools

Hi @Sparrow0hawk – have edited the blog post and am providing this PR per our email discussion.
I've added a good chunk of content here. A summary of changes:

Edited existing content
Added section markers with L2 markdown heading
Wrote content on .dockerignore
Wrote section on detecting and removing accidentally committed secrets

Let me know what you think and if there's anything further we should include!

This is great @sjmf thank you! I'm going to merge this in now, tidy my bits up a bit and look at publishing here and also submitting to the SSI. When I PR to merge to main here, i'll @-you for a final check


Typescript does not automatically infer existence & validity of a variable

Bug Report
When I want to check existence of a variable and then do something with it, I have to do it right before the usage, I cannot move it somewhere else and this makes refactoring hard/impossible

🔎 Search Terms
infer, infer automatically

🕗 Version & Regression Information
Typescript: 4.3.5

⏯ Playground Link

Playground link with relevant code
Typescript Nightly produced more weird results: Results in TSNext (Note the string and number should give error, but they don't)
💻 Code

function iReceiveNumber1(a: number, b: number) {
    console.log(a + b);
}

function produceNumber(): number | undefined {
    return Math.random() > 0.5 ? 1 : undefined;
}

/**
 * Example 1 that works, but lots of code duplicates
 */

const e1: number | undefined = produceNumber();
const e2: number | undefined = produceNumber();

typeof e1 === 'number' && typeof e2 === 'number' && iReceiveNumber1(e1, e2);

/**
 * Example 2 that does not work, but I expect it to
 */

const e3: number | undefined = produceNumber();
const e4: number | undefined = produceNumber();

const e3AndE4Exist = typeof e3 === 'number' &&  typeof e4 === 'number';
e3AndE4Exist && iReceiveNumber1(e3, e4);

// I receive error in above line, but I did not expect error

🙁 Actual behavior

I receive error that says Type 'undefined' is not assignable to type number. Although I checked the existence in a variable (e3AndE4Exist
🙂 Expected behavior

I expected TypeScript to automatically infer that the type is not undefined as I checked it in e3AndE4Exist variable right before I call the iReceiveNumber function.
I also had hard  times opening Typescript Playground, some requests failed. I don't know if that is my connection problem or not.

This already works in TypeScript 4.4.0 due to #44730.

Typescript Nightly produced more weird results: Results in TSNext

I don't see anything weird in the nightly build, can you explain what you find to be wrong?

I'm sorry. I checked again today, and in nightly version everything was still weird. I tried a simple const a: number = 'a' and again, I did not see any error. I think there is something wrong with my connection. By the way all requests from https://typescript.azureedge.net/cdn/4.4.0-dev.20210727/... fail.
I tried with version 4.4.0 locally and the issue is solved and everything was fine. Sorry for the inconvenience. :+1:
I think this issue can be closed

Thanks!


Update the style dictionary from ZeroHeight

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

main

PR #453

PR #454   👈

This stack of pull requests is managed by Graphite.

It seems like it is, there's a chance that the colors might change up a bit but there aren't any deletions so we should be good.

publish rc

publish rc

publish rc


IPv4/single: STM32H7xx driver check result of HAL_ETH_Init

Description
This PR is in response to an issue reported on the FreeRTOS forum.
The function HAL_ETH_Init() checks if the PHY hardware is OK. The result of the function was not checked, which may result in a crash.
Dweb_2, thank you for reporting this.
Test Steps
It is difficult to reproduce without changing the hardware.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Opened a rebased version of this PR: https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/pull/479
Closing this now.


Feature/add remaining snippets

snippets added for almost all remaining commands
snippet convention clarified

Snippets are completed. 🚀

wow, how long did this take you? seems like a ton of work. thanks so much!!! ❤

About 5 hours. :)

Dang. I'm gonna do another release soon because if these. Thanks again.


Add reader mode

User Persona, Goal, and Motivation

I am a traditional reader, I want to view gurbani like I would in a gutka, so that I can do paath comfortably  (less scrolling and visually more natural).
Acceptance Criteria

AC1

Given a user is on the settings screen
When they toggle the reader mode element
Then the reader mode is toggled on/off

AC2

GIVEN shabad is shown
WHEN reader mode is toggled
THEN show only shabad script in paragraphs of pauris (no translations and transliterations)
And the font is larger

AC3

GIVEN reader mode is toggled
WHEN displaying manglacharan / header lines
THEN show them as individual lines in a larger font, center-aligned (see mock)

AC3 may be revisited as a future ticket, as we may not have the data available. @bhajneet to move into a new ticket.
Approach

[x] #235
[x] #236

Mockup

Old
Have an option to quickly switch the view to "reader mode" which may group pauris together in paragraphs, may also hide all translations, may switch to larrivaar, etc. based on whatever the user has dictated in "reader mode settings".
Could then add new issues for setting bookmarks to open in specific reader mode on a case by case or overall "type of bookmark" method.

Toggle for switching in and out of reader mode would be hidden in drawer.

Need a mockup for this required by #74

2 comments (one of which I think is easily resolvable):

No space between lines merged together
No title of bookmark at the top

Also, not sure how... but I got this by toggling on and off

And I have no clue how I did this one
https://user-images.githubusercontent.com/14130567/157157338-fa548bd0-5c9c-4a99-b7c5-49204ee22648.MOV

Possibly related / helpful
https://user-images.githubusercontent.com/14130567/157157521-53fd9ff5-3e52-49fe-b856-d6506040ebe7.MOV

The title is not part of the ACs btw! Ok with filing another ticket under the reader mode epic for this?

Do track a new ticket for retaining scroll position between the toggles in another ticket under the epic

Final question - do you have a preference on how much larger? The mocks show the original font size, except for the first few lines

Final question - do you have a preference on how much larger? The mocks show the original font size, except for the first few lines

For now let's do 25%. I created a ticket to investigate it further.

Space and font have been adjusted. Will look into the bug.

Please re-test!


Unblock withdraw funds - withdrawToken on old project contracts

withdrawToken is broken on old project contracts (works on new) because the contracts dont give approval to spend the erc20s

this has been fixed in #154


NetworkPools

Documentation for NetworkPools

Hi @paurosello ! I'd like to add our new platform support widget to the top of this page. (See https://docs.giantswarm.io/basics/nodepools/ for an example).
Can you tell me whether network pools are in alpha, beta, or GA as of AWS v12.7.0?

Hi @paurosello ! I'd like to add our new platform support widget to the top of this page. (See https://docs.giantswarm.io/basics/nodepools/ for an example).
Can you tell me whether network pools are in alpha, beta, or GA as of AWS v12.7.0?

They are GA, how do you create that widget?

They are GA, how do you create that widget?

@paurosello Add this after the main headline:
{{< platform_support_table aws="ga=v12.7.0" >}}

Documentation can be found in https://github.com/giantswarm/docs/blob/v1.19.13/CONTRIBUTING.md#list-of-shortcodes-with-explanation

@paurosello Add this after the main headline:
{{< platform_support_table aws="ga=v12.7.0" >}}

Documentation can be found in https://github.com/giantswarm/docs/blob/v1.19.13/CONTRIBUTING.md#list-of-shortcodes-with-explanation


Feature Request : Printing information about recent runs via CLI

Context :
The resume functionality in Metaflow has a few nuances that get noted once used often. When resuming a flow, Metaflow clones the artifacts of the "resuming" flow. If the flow is really large and I cancel the resume before it cloned everything then the immediate next python myflow.py resume will resume a partially "resumed" flow.
User Story :
Sometimes when I am resuming a flow, I would suddenly have a new idea or realize some mistake. At such a moment I would cancel that resume without paying any attention to the run-id (And many times even clear my shell before I remember that I need the right run-id to resume again). At such times when I immediately resume the flow, it wouldn't be the one I "intended" to resume. This has sometimes caused a cascade of wrong resumes. At that point, I have to go to my notebook/python and run some custom code to check which run-id should I resume from.
This is a pain point I faced many times because I don't pay attention to run-id.  A CLI command which shows all recent runs makes this problem go away :)

Notes:
From Savin:

a bigger question would be the format of the output. You can take a look at python flow.py batch list (when running tasks on AWS Batch) for inspiration.

One clue, when I run this command and there are no runs, I get the message No running AWS Batch jobs found. which at least allows me to potentially introspect that bit of code as an example.
The output looks like this
Metaflow 2.6.0.post3+git3acd855 executing MyFlow for user:hamel
hamel-MyFlow-19901-start-240953-0 [450099f2-01c1-4b75-9efb-74df86790009] (SUBMITTED)


fix(search bar): fix channel search bar

Description
Change tailwind css to have the search bar location depending of the size of the screen
Changes include

[X] Bugfix (non-breaking change that solves an issue)

Breaking changes
Please complete this section if any breaking changes have been made, otherwise delete it.
Checklist

[X] I have assigned this PR to myself
[X] I have added at least 1 reviewer
[X] I have added the needed labels
[X] I have linked this PR to an issue
[X] I have linked this PR to a milestone
[X] I have linked this PR to a project
[X] I have tested this code
[ ] I have added / updated tests (unit / functionals / end-to-end / ...)
[ ] I have updated the README and other relevant documents (guides...)
[ ] I have added sufficient documentation both in code, as well as in the READMEs

Additional comments
Please post additional comments in this section if you have them, otherwise delete it.

Tested and approved


Allow using different SPI instances

Looks like a begin() function was started for this support, but
the rest of the library was still hardcoded to use SPI.
For boards like the Teensy with multiple SPI hardware peripherals
this change allows the user to specify which to use.

I had looked at doing this feather of allowing an alternate SPI interface a year ago, with nearly identical changes as you propose.  However, I could not prove that it worked with my SAMD board, with an alternate SPI interface defined.  I realized then that the Arduino SAMD implementation didn't provide for full support of alternate SPI interfaces.  Since I could not test this modification, I left it.  (I don't currently own a Teensy board for testing.)
It seems though that you do have a Teensy board that this has been tested on, if I read your pull request correctly.  If that is correct, then I can open a branch with all the changes I developed previously, including an example sketch for testing, and you can try that out for verification.  Would you be willing to do that?

Yup, I’ve got a hardware platform using a Teensy 4.1 that I can test with. Should be no problem at all.

I just updated this pull request with the changes I had developed.  You will need to modify Example9_AlternateSPI to test on your Teensy board.

This all seems to be working 👍
Define a specific SPI interface for the SCL3300 Inclinometer
Murata SCL3300 inclinometer is connected.
Inclinometer is still alive...
Raw X Tilt: -28	Y Tilt: -276	Z Tilt: 16106
Raw X Accel: -32	Y Accel: -316	Z Accel: 11937
SCL3300 STO register: FF	WHOAMI register: C1
Raw Temperature: 5599
Serial Number Register:<PHONE_NUMBER>B33	SL3300 Status Summary Register: 0
Inclinometer is still alive...
Raw X Tilt: -31	Y Tilt: -276	Z Tilt: 16106
Raw X Accel: -36	Y Accel: -316	Z Accel: 11962
SCL3300 STO register: FF	WHOAMI register: C1
Raw Temperature: 5598

For the particular board I'm using, the SCL3300 is on alternative pins for some of the SPI functions.  I had to also configure the port to use those pins before the call to begin.  Not really anything I'd change in the example, just commenting on this as an FYI.
  SPI1.setCS(38); // This probably doesn't matter as the library handles CS control explicitly.
  SPI1.setMISO(39);
  SPI1.setMOSI(26);
  SPI1.setSCK(27);


feat(konflux-2456): remove checks and code related to SEB and env

As part of the feature of decoupling the ephemeral environments in konflux,
this PR is about removing the checks related to SEB(snapshot environment binding )
and Gitops from the e2e-test rhtap-demo .
for more details check KONFLUX-2456
Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
Issue ticket number and link
Type of change

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

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:

[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

/test all

what about the checks in remote-secret tests?

what about the checks in remote-secret tests?

also those I will remove,  thanks Pavel ,


multi: Autopilot session linking

With this PR, we add the ability for a client to link a new autopilot session with
a previous set of revoked ones. If this is done, then the same privacy mapper is used
for the linked sessions & the actions and rules db is also shared across sessions.
PR Flow:

First some edits are made to the Session store: mainly, we create separate methods for creating a new session vs updating the remote pub key of an existing session.
2.. Add a new session ID to session local pub key index to the session store. This makes possible to fetch session by ID. A migration to backfill this index is also added.
Update autopilotserver.proto to have the new fields required to link sessions.
These include the session group key along with a sig to prove ownership of the linked
session.
Update the autopilot server client to send the new fields if they are provided.
initially we do not provide them.
Add GroupID to the Session store. The group ID is the ID of the very first
session in the group of linked sessions.
Update litrpcs Session and AddAutopilotSessionRequest messages to include
a linked group ID.
Marshal the new fields in the Session proto message
Add new indexes to the session store which map from session ID to group ID and group ID
to session IDs.
a migration to backfill the above indexes. This is easy since currently the mapping is
one-to-one both ways. Only after this PR will the group-to-session index be one-to-many.
New methods to the session store to query via the new index.
add a new ListGroupActions method to the firewall DB that allows us to query the DB
for all actions of a specific group.
Let the firewall query group actions instead of session actions.
Allow ListActions rpc call to specify groupID.
Let privacy map conversion rpc call specify groupID.
let firewall get the correct privacy mapper by group ID on interception of calls.
Finally, allow the client to link sessions via the cli.

TODO:

[ ] add pagination to the new ListGroupActions method (might not need to do this in this PR...).

gonna add something else shortly 🤓

Ok ya'll! thanks for your patience! The PR has been updated quite a bit. Here are the changes:

a session ID to session local pub key index is added to the session store.
the session ID to group ID and group ID index that was originally in the firewall DB is now in the session store. This makes things a lot simpler and more idempotent.
an index from previous session ID to linking session ID is added to the session store. This makes it quick to check that no other session has linked to the one you are trying to link to.
finally, to link a session from the CLI, you now specify the prev session ID (instead of the prev local pub)

ok I tacked on a temporary commit here now labeled temp:... i'll squash it in in a nicer way tomorrow

re-requesting since the change to only link by group ID.
Requesting from @guggero  for architectural ACK


Unable to decrypt any data key

code:
kms_key_provider = aws_encryption_sdk.KMSMasterKeyProvider(key_ids=[
    os.environ["ENCRYPTION_KEY_ARN"]
])

def encrypt(plaintext):
    ciphertext, _ = aws_encryption_sdk.encrypt(
        source=plaintext,
        key_provider=kms_key_provider
    )

    return base64.b64encode(ciphertext)

def decrypt(ciphertext_b64):
    ciphertext = base64.b64decode(ciphertext_b64)

    plaintext, _ = aws_encryption_sdk.decrypt(
        source=ciphertext,
        key_provider=kms_key_provider,
    )
    return plaintext

FYI, this is using v1.3.2.
I get the following error:
Unable to decrypt any data key

When I print out the ciphertext I can clearly see the correct encryption key arn. So I am not sure whats wrong here.

What permissions do you have to the KMS CMK? My initial suspicion is that you have GenerateDataKey permissions but not Decrypt.
If you turn on debug logging, you can see the error that the underlying KMS client gives. That can show you exactly what the KMS response is to your request.
WARNING: Do not post debug logs here or anywhere else public, as they contain the entire request and response header and bodies for any AWS calls. For the KMS calls we use, that will include your plaintext data key.

Just checked:
            "Effect": "Allow",
            "Action": [
                "kms:Encrypt",
                "kms:Decrypt",
                "kms:ReEncrypt*",
                "kms:GenerateDataKey*",
                "kms:DescribeKey"
            ],

is in the policy for the role.

Are those actions granted to the CMK in question? And does the CMK's key policy have a matching (or redundant) policy?

Hmm ok maybe I am missing something. @mattsb42-aws
Can you send me a link which explains how I check for both of those things via the AWS console?

These[1][2] are a good starting point for understanding key policies and how they can interact with IAM (or not, as the case may be).
You can find a brief description of this interchange in this post[3].
[1] https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html
[2] https://docs.aws.amazon.com/kms/latest/developerguide/iam-policies.html
[3] https://forums.aws.amazon.com/thread.jspa?threadID=280836&tstart=0&messageID=845931#845931

Yup you are correct, I turned on Debugging and found the following:
The ciphertext refers to a customer master key that does not exist, does not exist in this region, or you are not allowed to access.

so somewhere my permissions are incorrectly set.

@mattsb42-aws hmm I am not sure if this is the best place to continue this conversation but I am stumped.

I am able to encrypt messages (since the encrypted messages are stored in our DB)
I am unable to decrypt using the same code.
I double checked the policies for the role and the key. They allowed encrypt and decrypt operations. Just in case I changed to kms:* for both.
The only issue I see is that the botocore session has the region set to us-east-2, whereas the key is in us-east-1. But then even 1 above shouldn't work right?

To clarify, is the value stored in the ENCRYPTION_KEY_ARN environment variable a full CMK Arn or something else?
When KMSMasterKeyProvider is handling an Arn, it will automatically determine the region from the Arn and build a KMSMasterKey instance with a client for the correct region[1].
If you would rather continue this offline, feel free to email me at the address in my profile or PM me at this username on the AWS forums.
[1] https://github.com/awslabs/aws-encryption-sdk-python/blob/master/src/aws_encryption_sdk/key_providers/kms.py#L156-L163

Its a full Arn with the region name included.

Hmmm, I think I would have to see code and policies to debug any further.

The ciphertext refers to a customer master key that does not exist, does not exist in this region, or you are not allowed to access.

^ This means that you don't have access to the CMK when you are trying to decrypt. Because of this, I still think that it is a policy issue. One thing you could look for is to make sure that there are not policies (either in IAM or the key policy) that deny access to your principal (user/role) performing decrypt operations with this key (or more generally). Deny policies always take precedent over allow policies.

@careless25 Since this has been several months, I'm going to go ahead and close this assuming you figured out the issue. Feel free to re-open if you're still having an issue.


allow for 'path' to be included in string inputs

Description
Allow for 'path' to be included as a parameter for Inputs entities when "type" is a string. This will allow for models to be submitted as inputs on batch endpoint invoke
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-ai-ml


Get a working plugin

Initialize the plugin with some basic functionality, e.g. add a new action to a menu.
There are plenty of resources available on Eclipse plugins.
The goal is to be able to run, debug, package and distribute the plugin.

@poroszd We have already been able to deploy the plugin and install it. We should make an update site for the distribution of the plugin.


Update the styleguide

Also normalize admonition titles with the colon outside the bold, add some info about toc_max and toc_min, and add some examples of more complex notes.

Added a couple comments, but other than those nits, this LGTM. Long-live FAR!


heaters

~820 images downloaded, vetted, and auto-labeled.

Starting on the manual process today.

all done and uploaded to the S3 bucket.


Add green squares as a background image with low opacity on users page

Hey, Thanks for Suggesting but I personally think this will look cluttered and will destroy our objective to keep the shape of image as circle ( as we can keep that square also ).
( PERSONAL OPINION )

Duplicate of #146

Thank you for the suggestion 👍
We are removing the list of users on the home page as there are too many, so I will close this for now


Leverage new functionality of Helm to show the status of deployed resources

According to the documentation: The Helm status command and the SDK can now show the status of core resources deployed in a chart (e.g., deployments). To use with helm status you need to use the --show-resources flag.
Currently, Fybrik code (helm package) implements this functionality by getting resources from helm manifest and use k8s client to get their current status. If the imported helm code can do this instead, we don't need this implementation in Fybrik, just need to use the SDK correctly. This could increase run-time performance by eliminating some calls to helm and k8s.

Fybrik use helm 3.11.1 now.


Question regarding multiple Google Cloud apps

It's not explained in detail but is it possible to add multiples of this application to a tenant?
It is not possible to use the same Identifier for separate apps when configuring the SAML SSO portion so I ran into an issue when attempting to create a duplicate Google Cloud / G Suite Connector by Microsoft app.
https://learn.microsoft.com/en-us/azure/active-directory/saas-apps/google-apps-tutorial#configure-microsoft-entra-sso
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 3fdf59c4-653e-956e-d675-f7e17ed7d488
Version Independent ID: 57b9c048-a938-6e21-633b-e0aabdd59946
Content: Tutorial: Microsoft Entra SSO integration with Google Cloud / G Suite Connector by Microsoft - Microsoft Entra
Content Source: articles/active-directory/saas-apps/google-apps-tutorial.md
Service: active-directory
Sub-service: saas-app-tutorial
GitHub Login: @jeevansd
Microsoft Alias: jeedes

@Ianhelp
Thanks for your feedback! We will investigate and update as appropriate.

@Ianhelp
Yes, it is possible to add multiple instances of the same application within an Azure AD tenant. This feature is supported for both IdP and Service Provider (SP) initiated single sign-on requests. Multiple application accounts can now have a separate service principal to handle instance-specific claims mapping and roles assignment. You can refer to the following links for more information:
Configure SAML app multi-instancing for an application - Microsoft Entra | Microsoft Docs
Customize app SAML token claims - Microsoft Entra | Microsoft Docs
However, it is not possible to use the same Identifier for separate apps when configuring the SAML SSO portion. If you try to create a duplicate Google Cloud / G Suite Connector by Microsoft app with the same Identifier, you will run into an issue. In this case, you will need to use a different Identifier for the new app.
Since this issue isn't directly related to improving our docs, and to gain a better understanding of your issue, I'd recommend working closer with our support team via an [Azure support request] (https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request). Or you can leverage our Q&A forum by posting your issue there so our community, and MVPs can further assist you in troubleshooting this issue or finding potential workarounds.
[Teams Q&A forum] (https://docs.microsoft.com/en-us/answers/topics/46488/office-teams-windows-itpro.html) for technical questions about the configuration and administration of Microsoft Teams on Windows.
[Microsoft Teams Community forum] (https://answers.microsoft.com/en-us/msteams/forum?sort=LastReplyDate&dir=Desc&tab=All&status=all&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&isFilterExpanded=false&page=1


Adding context to tcp_listen_options on keepalives & exit_on_close on configure page

Adding context to tcp_listen_options on options keepalive & exit_on_close
https://www.rabbitmq.com/configure.html
from issue https://github.com/rabbitmq/rabbitmq-website/issues/1412
proposed changes look:

FYI, main will go live when RabbitMQ 3.11 ships this fall. Please submit your PRs against live in the future. I will cherry-pick this one with some edits.

Done. Thank you!


Add "music", "tabr" and "ProTrackR"

skipping ProTrackR for now - it'll be a while before I have time to hunt down MOD files.


fix: conditional getuid and getgid for Windows environment

Hey, I just made a Pull Request!
conditional getuid, getgid for Windows environment

[ ] A changeset describing the change and affected packages. (more info)

@benjdlambert I've made another commit on cleaned fork. I've also re-enabled tests on Windows.

@StefanoVuerich looks like you need to run prettier on the changed files so it can fix the formatting for you :)


Fix test_model

The function test_model has apparently been broken for a while; it depended on some old names, etc. This fixes it and makes it visible as qinfer.tests.test_model, thereby addressing #131 too.

Hmm, I don't know what the Python 3.3 error means.

I'm not sure either, but at least some projects report that this is a symptom of an out-of-date pip. Perhaps we should do a pip update pip at the start of _travis.yml to guard against hitting this bug?

Good thinking. pip was up to date in all versions except 3.3 for some reason.

I'm going to make another commit adding test_model to the docs; I have personally found it useful for my custom models, as it can help debug indexing errors that are tedious to debug otherwise.

Coverage increased (+1.7%) to 74.171% when pulling 62a265d9eb39f3d11187c6a3fc92b257c609fc28 on ihincks:fix-test_model into 4d0aee343ce2a14133a0ad1805b12c28719b6018 on QInfer:master.

Coverage increased (+1.7%) to 74.171% when pulling 6c9d7e03f073d7b4487ba7a572a6c4e923c248f5 on ihincks:fix-test_model into 4d0aee343ce2a14133a0ad1805b12c28719b6018 on QInfer:master.

H'okay, this PR is ready for comments. Urgency: low.

Looks great, thanks for fixing this! ♥


can't start docker service in ubuntu

Description

Steps to reproduce the issue:
i use ubuntu16.04 and vmware workstation12.5.2，and use proxy to connect Internet
everything is fine when i install it ,but when some time late,some wrong happens,like this:
when i restart docker daemon,it will be fine for some time,but late this wrong will happens again.
dock ps
An error occurred trying to connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json: read unix @->/var/run/docker.sock: read: connection reset by peer

service docker status
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/docker.service.d
           └─http-proxy.conf
   Active: failed (Result: exit-code) since 三 2017-01-04 10:35:34 CST; 5s ago
     Docs: https://docs.docker.com
  Process: 7544 ExecStart=/usr/bin/dockerd -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE)
 Main PID: 7544 (code=exited, status=1/FAILURE)

1月 04 10:35:34 wan-virtual-machine systemd[1]: Stopped Docker Application Container Engine.
1月 04 10:35:34 wan-virtual-machine systemd[1]: Starting Docker Application Container Engine...
1月 04 10:35:34 wan-virtual-machine dockerd[7544]: /usr/bin/dockerd: "/usr/bin/dockerd" requires 0 arguments.
1月 04 10:35:34 wan-virtual-machine dockerd[7544]: Usage:        dockerd [OPTIONS]
1月 04 10:35:34 wan-virtual-machine systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
1月 04 10:35:34 wan-virtual-machine systemd[1]: Failed to start Docker Application Container Engine.
1月 04 10:35:34 wan-virtual-machine systemd[1]: docker.service: Unit entered failed state.
1月 04 10:35:34 wan-virtual-machine systemd[1]: docker.service: Failed with result 'exit-code'.

i try many solutions,but fail,is anyone can help me,thank you.
Output of docker version:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   23cf638
 Built:        Tue, 27 Sep 2016 12:25:38 +1300
 OS/Arch:      linux/amd64

Output of docker info:
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
Server Version: 1.12.1
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 0
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge null host overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: apparmor
Kernel Version: 4.4.0-43-generic
Operating System: Ubuntu Kylin 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.937 GiB
Name: wan-virtual-machine
ID: IAKV:AGQW:XCEC:DAZO:5DXY:E3HR:3UMP:LLDU:5I6V:2NKR:JJTD:DQXQ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 <IP_ADDRESS>/8

Can these commands help you? :point_right: #17846 (comment)

I suspect your $DOCKER_OPTS may contain a value that causes this;
   /usr/bin/dockerd: "/usr/bin/dockerd" requires 0 arguments.

Note that the $DOCKER_OPTS environment variable is not used in the official packages; are you perhaps running a version of docker that's packaged by Ubuntu?
The recommended way to configure daemon options is to use a daemon.json configuration file;
https://docs.docker.com/engine/reference/commandline/dockerd/#/daemon-configuration-file
If you want to configure through systemd, use drop-in files, see https://docs.docker.com/engine/admin/systemd/#/custom-docker-daemon-options
Please keep in mind that the GitHub issue tracker is for reporting bugs and feature requests, for other type of questions, consider using;

https://forums.docker.com
The Docker Community Slack channel; https://blog.docker.com/2016/11/introducing-docker-community-directory-docker-community-slack/

From the information above, I don't think this is a bug in docker, so I'll close this issue, but feel free to continue the conversation


[Traefik Plugin Catalog] Plugin Analyzer has detected a problem.

The plugin was not imported into Traefik Plugin Catalog.
Cause:
verify release assets failed: invalid zip archive content: failed to check wasm middleware: failed to interpret plugin: wasm: guest doesn't export func[handle_request]

Traefik Plugin Analyzer will restart when you will close this issue.
If you believe there is a problem with the Analyzer or this issue is the result of a false positive, please fill an issue on piceus repository.

Hello, @juliens,
I have a similar issue, how did you fix it?
reverse-proxy-1  | 2024-10-01T10:26:59Z ERR github.com/traefik/traefik/v3/pkg/server/router/router.go:136 > error="building Wasm middleware: creating middleware: wasm: guest doesn't export func[handle_request]" entryPointName=web routerName=my_service@docker

Hello @LevisThors,
It can be a lots of things, can you share your repo, I'll take a quick look.

Oky, and how do you compile your plugin to wasm?
Because wasmexport is not supported officially in go, so you need to compile with tinygo OR build with the master branch of go ( and to use a specific version of the http-wasm-guest based on this https://github.com/http-wasm/http-wasm-guest-tinygo/pull/34 )

I use the commands from demo makefile - https://github.com/traefik/plugindemowasm-http-call/blob/main/Makefile

Oky so you need to change the http-wasm-guest-tinygo version in go.mod like in the demo go.mod

It worked, thank you so much!
Added this line to my go.mod
replace github.com/http-wasm/http-wasm-guest-tinygo => github.com/traefik/http-wasm-guest-tinygo v0.0.0-20240913140402-af96219ffea5
Also, I came across another issue when sending request, is it connected with this one?
wasm error: out of bounds memory access wasm stack trace: 	.handle_request() i64

Did you use the last Traefik version?

I was using v3.1.2, updated to v3.1.4 and now it works as expected.
@juliens thank you!


make quick-start giving API creation failure error

Hi,
I'm trying to run the 3-liner getting started code:
$ git clone https://github.com/apache/incubator-openwhisk-devtools.git
$ cd incubator-openwhisk-devtools/docker-compose
$ make quick-start

It is failing with the error
creating an API from the hello function ...
ok: updated action hello
error: Unable to create API: API creation failure: Unable to obtain API(s) from the API Gateway: "connect ECONNREFUSED <IP_ADDRESS>:9000"
invoking:
Error invoking the web action
....... << Insert lots of random logs here >> ....
make: *** [hello-world] Error 1

Here are the complete logs - https://gist.github.com/agrajm/2a60e858a499f010f16c2a5d2d986b88
I'm running this on Mac OS X and Java 8 if that matters. Following docker versions
docker-compose git:(master) docker --version
Docker version 18.06.1-ce, build e68fc7a
➜  docker-compose git:(master) docker-compose --version
docker-compose version 1.22.0, build f46880f

I just installed Docker For mac from here - do I need to set some docker specific environment variables for this to work ?
Can someone please suggest what I can do to debug this?
Regards,
Agraj

Output of docker ps command
https://gist.github.com/agrajm/bb49c6238d03144821e6f4ea73257eeb

Hi @csantanapr thanks for detailed steps. Getting the following logs now
➜  incubator-openwhisk-devtools git:(master) wsk --auth $WSKSYSTEMAUTH --insecure activation logs 2a346c0a22cd441ab46c0a22cd241a92
2018-10-06T10:34:41.254872639Z stdout: replaceNamespaceInUrl: namspace=guest url before - https://<IP_ADDRESS>/api/v1/web/guest/default/hello.http
2018-10-06T10:34:41.255034466Z stdout: replaceNamespaceInUrl: replacing namespace 'guest' with 'guest'
2018-10-06T10:34:41.255314942Z stdout: replaceNamespaceInUrl: url after - https://<IP_ADDRESS>/api/v1/web/guest/default/hello.http
2018-10-06T10:34:41.255923699Z stdout: GW URL        : undefined
2018-10-06T10:34:41.255950604Z stdout: GW URL V2     : http://<IP_ADDRESS>:9000/v2
2018-10-06T10:34:41.255954767Z stdout: GW Auth       : undefined
2018-10-06T10:34:41.255957474Z stdout: __ow_user     : guest
2018-10-06T10:34:41.255959798Z stdout: namespace     : guest
2018-10-06T10:34:41.256035294Z stdout: tenantInstance: undefined / openwhisk
2018-10-06T10:34:41.256042132Z stdout: accesstoken   : DUMMY TOKEN
2018-10-06T10:34:41.256044608Z stdout: spaceguid     : 23bc46b1-71f6-4ed5-8c54-816aa4f8c502
2018-10-06T10:34:41.256046926Z stdout: responsetype  : json
2018-10-06T10:34:41.25604905Z  stdout: API name      : undefined
2018-10-06T10:34:41.256051301Z stdout: basepath      : /hello
2018-10-06T10:34:41.256053411Z stdout: relpath       : /world
2018-10-06T10:34:41.256055554Z stdout: GW method     : GET
2018-10-06T10:34:41.256110996Z stdout: action name: hello
2018-10-06T10:34:41.256116494Z stdout: action namespace: guest
2018-10-06T10:34:41.256118951Z stdout: action backendUrl: https://<IP_ADDRESS>/api/v1/web/guest/default/hello.http
2018-10-06T10:34:41.256121147Z stdout: action backendMethod: GET
2018-10-06T10:34:41.256123293Z stdout: action authkey: XXXXXXXXXX
2018-10-06T10:34:41.256178952Z stdout: action secureKey: undefined
2018-10-06T10:34:41.256184868Z stdout: calledAsWebAction: true
2018-10-06T10:34:41.256187337Z stdout: apidoc        :
2018-10-06T10:34:41.256190284Z stdout: {"gatewayMethod":"GET","gatewayPath":"/world","gatewayBasePath":"/hello","id":"API:guest:/hello","action":{"name":"hello","backendMethod":"GET","authkey":"23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP","backendUrl":"https://<IP_ADDRESS>/api/v1/web/guest/default/hello.http","namespace":"guest"},"namespace":"guest"}
2018-10-06T10:34:41.256346102Z stdout: getApis: querying APIs based on basepath
2018-10-06T10:34:41.256947264Z stdout: getApis: request: {"followAllRedirects":true,"url":"http://<IP_ADDRESS>:9000/v2/23bc46b1-71f6-4ed5-8c54-816aa4f8c502/apis","headers":{"Accept":"application/json","User-Agent":"OpenWhisk-apimgmt/1.0.0 OpenWhisk-CLI/1.0 (2018-09-14T17:43:44.288+0000) darwin amd64","Authorization":"Bearer DUMMY TOKEN"},"json":true,"qs":{"basePath":"/hello"}}
2018-10-06T10:34:41.275861524Z stdout: getApis: response status: undefined
2018-10-06T10:34:41.277711084Z stdout: getApis: body type = undefined
2018-10-06T10:34:41.277760589Z stderr: { Error: connect ECONNREFUSED <IP_ADDRESS>:9000
2018-10-06T10:34:41.277764419Z stderr: at Object.exports._errnoException (util.js:1020:11)
2018-10-06T10:34:41.277766885Z stderr: at exports._exceptionWithHostPort (util.js:1043:20)
2018-10-06T10:34:41.277777487Z stderr: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1099:14)
2018-10-06T10:34:41.277780105Z stderr: code: 'ECONNREFUSED',
2018-10-06T10:34:41.277782282Z stderr: errno: 'ECONNREFUSED',
2018-10-06T10:34:41.277784372Z stderr: syscall: 'connect',
2018-10-06T10:34:41.277786481Z stderr: address: '<IP_ADDRESS>',
2018-10-06T10:34:41.27778856Z  stderr: port: 9000 }
2018-10-06T10:34:41.277790744Z stderr: Warning: getApis request failed: "connect ECONNREFUSED <IP_ADDRESS>:9000"
2018-10-06T10:34:41.277793073Z stderr: getApis: Unable to obtain API(s) from the API Gateway
2018-10-06T10:34:41.277965321Z stderr: { Error: connect ECONNREFUSED <IP_ADDRESS>:9000
2018-10-06T10:34:41.277977652Z stderr: at Object.exports._errnoException (util.js:1020:11)
2018-10-06T10:34:41.277980993Z stderr: at exports._exceptionWithHostPort (util.js:1043:20)
2018-10-06T10:34:41.277983547Z stderr: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1099:14)
2018-10-06T10:34:41.277985995Z stderr: code: 'ECONNREFUSED',
2018-10-06T10:34:41.277988188Z stderr: errno: 'ECONNREFUSED',
2018-10-06T10:34:41.277990396Z stderr: syscall: 'connect',
2018-10-06T10:34:41.277992555Z stderr: address: '<IP_ADDRESS>',
2018-10-06T10:34:41.277994736Z stderr: port: 9000 }
2018-10-06T10:34:41.278484709Z stdout: makeJsonString: String is not JSON, so need to convert it: SyntaxError: Unexpected token U in JSON at position 0
2018-10-06T10:34:41.278484859Z stderr: API creation failure: Unable to obtain API(s) from the API Gateway: "connect ECONNREFUSED <IP_ADDRESS>:9000"
2018-10-06T10:34:41.27858922Z  stdout: makeErrorResponseObject: isWebAction: true
2018-10-06T10:34:41.278599167Z stdout: makeJsonString: String is not JSON, so need to convert it: SyntaxError: Unexpected token A in JSON at position 0

Yup, it looks like action is getting connection refused from the API gateway.
Also my docker0 interface is still bound to '<IP_ADDRESS>/16' as yours. Running `docker network inspect bridge' gives
[
    {
        "Name": "bridge",
        "Id": "1b4b71874236408dc4b9aa170d035407f072bae34787698b172a5969b07af0b9",
        "Created": "2018-10-06T10:03:08.054387632Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "<IP_ADDRESS>/16",
                    "Gateway": "<IP_ADDRESS>"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {},
        "Options": {
            "com.docker.network.bridge.default_bridge": "true",
            "com.docker.network.bridge.enable_icc": "true",
            "com.docker.network.bridge.enable_ip_masquerade": "true",
            "com.docker.network.bridge.host_binding_ipv4": "<IP_ADDRESS>",
            "com.docker.network.bridge.name": "docker0",
            "com.docker.network.driver.mtu": "1500"
        },
        "Labels": {}
    }
]

but when I do wsk property get --apihost I always get
whisk API host		<IP_ADDRESS>

Unsure why its not connecting through the bridge network interface and maybe thats why this error ?

Update: my ifconfig | grep inet looks like
        inet <IP_ADDRESS> netmask 0xff000000
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet <IP_ADDRESS> netmask 0xff000000
	inet <IP_ADDRESS> netmask 0xff000000
	inet <IP_ADDRESS> netmask 0xffffff00
	inet6 fe80::81c:17ad:1de2:dcb0%en0 prefixlen 64 secured scopeid 0xc
	inet <IP_ADDRESS> netmask 0xfffff800 broadcast <IP_ADDRESS>
	inet6 fe80::b461:6aff:fe87:2eb1%awdl0 prefixlen 64 scopeid 0xe
	inet6 fe80::cd8a:e14b:919c:5c62%utun0 prefixlen 64 scopeid 0x10
	inet6 fe80::aede:48ff:fe00:1122%en6 prefixlen 64 scopeid 0x7

after I had to manually activate the docker0 network interface
The culprit addresses <IP_ADDRESS> and <IP_ADDRESS> are getting added due to OpenVPN that I'm using at my company. OpenVPN is adding these entries in /etc/hosts which is probably causing this issue for me. Any way to tell openwhisk to use the 3rd IP address instead from the above list, if I can't disable OpenVPN ?

Uninstalled OpenVPN - rebooted system - everything works fine. Yay !
Not sure how to still use this when I have other entries in my lo0 interface - thanks to OpenVPN !

Hi, I am having the same problem
error: Unable to create API: API creation failure: Unable to obtain API(s) from the API Gateway: "connect ECONNREFUSED <IP_ADDRESS>:9000"
I am using Ubuntu 16.04 inside virtual machine
docker ps writeout
16f0c9dff853        openwhisk/nodejs6action:nightly            "/bin/sh -c 'node --…"   14 minutes ago      Up 14 minutes                                                                                wsk0_2_prewarm_nodejs6
cc55d7d9c21c        openwhisk/nodejs6action:nightly            "/bin/sh -c 'node --…"   14 minutes ago      Up 14 minutes                                                                                wsk0_1_prewarm_nodejs6
4baba1eba26f        landoop/kafka-topics-ui:0.9.3              "/run.sh"                15 minutes ago      Up 15 minutes             <IP_ADDRESS>:8001->8000/tcp                                                                               openwhisk_kafka-topics-ui_1
5e7f3e58e727        openwhisk/apigateway:nightly               "/usr/bin/dumb-init …"   15 minutes ago      Up 15 minutes             <IP_ADDRESS>:80->80/tcp, <IP_ADDRESS>:443->443/tcp, <IP_ADDRESS>:9000->9000/tcp, 8423/tcp, <IP_ADDRESS>:9090->8080/tcp   openwhisk_apigateway_1
b08d0fad0af3        openwhisk/invoker:nightly                  "/bin/sh -c 'exec /i…"   15 minutes ago      Up 15 minutes             8080/tcp, <IP_ADDRESS>:8085->8085/tcp, <IP_ADDRESS>:9333->9222/tcp                                             openwhisk_invoker_1
b59a0343ef00        openwhisk/controller:nightly               "/bin/sh -c 'exec /i…"   15 minutes ago      Up 15 minutes             <IP_ADDRESS>:2551->2551/tcp, <IP_ADDRESS>:8888->8888/tcp, <IP_ADDRESS>:9222->9222/tcp, 8080/tcp                     openwhisk_controller_1
89354ad7d77d        confluentinc/cp-kafka-rest:3.3.1           "/etc/confluent/dock…"   15 minutes ago      Up 15 minutes             8082/tcp                                                                                openwhisk_kafka-rest_1
1f7793988f04        wurstmeister/kafka:<IP_ADDRESS>                "start-kafka.sh"         15 minutes ago      Up 15 minutes             <IP_ADDRESS>:9092->9092/tcp                                                                               openwhisk_kafka_1
b0b472e1fc2f        zookeeper:3.4                              "/docker-entrypoint.…"   15 minutes ago      Up 15 minutes             <IP_ADDRESS>:2181->2181/tcp, <IP_ADDRESS>:2888->2888/tcp, <IP_ADDRESS>:3888->3888/tcp                               openwhisk_zookeeper_1
5b1a1b28e3d1        redis:2.8                                  "docker-entrypoint.s…"   15 minutes ago      Up 15 minutes             <IP_ADDRESS>:6379->6379/tcp                                                                               openwhisk_redis_1
9684f95c1d4f        apache/couchdb:2.3                         "tini -- /docker-ent…"   15 minutes ago      Up 15 minutes             4369/tcp, 9100/tcp, <IP_ADDRESS>:5984->5984/tcp                                                           openwhisk_db_1
918c4d45a3a6        minio/minio:RELEASE.2018-07-13T00-09-07Z   "/usr/bin/docker-ent…"   15 minutes ago      Up 15 minutes (healthy)   <IP_ADDRESS>:9001->9000/tcp ```


memory_map: support non-standard types

Support non-standard types in the memory map. We use this for example in our virtualization stack based on Hedron.
Thanks to @scholzp for finding this issue.

Please let me know if this works for you, @scholzp


[fix] remove unused views

Coverage decreased (-0.004%) to 84.137% when pulling dbbba06333df749ca8baef75333545ed45454e2c on itowtips:fix-facility into 31e7f4e56308e90eb910d814b5874740014e207e on shirasagi:master.

Coverage decreased (-0.004%) to 84.137% when pulling 219631b831404ebbb5de7ea8edf1b7621d10cbe0 on itowtips:fix-facility into 31e7f4e56308e90eb910d814b5874740014e207e on shirasagi:master.

Coverage decreased (-0.004%) to 84.137% when pulling 219631b831404ebbb5de7ea8edf1b7621d10cbe0 on itowtips:fix-facility into 31e7f4e56308e90eb910d814b5874740014e207e on shirasagi:master.


Do not escape file path when deleting.

Hi. Without this removal of the extra escaping in DeleteSession whenever I use :DeleteSession it fails to delete the session.

Strange, what OS are you on? It does delete the session for me on MacOS.

Strange, what OS are you on? It does delete the session for me on MacOS.

It's Linux. Specifically Ubuntu Impish.

/home/seth/.local/share/nvim/sessions//\\%home\\%seth\\%src\\%snago.vim
/home/seth/.local/share/nvim/sessions//\%home\%seth\%src\%snago.vim
%home%seth%src%snago.vim

Above: the extra escaped name of the file; the file path prior to extra escaping ; the name of the actual file as provided by ls.
Using :DeleteSession with no arguments works fine because the file is the second version from above. Using :DeleteSession with an argument causes the file to be escaped too many times (the first version above)...this is what my PR attempts to fix.


Enable reflection metadata by default in Swift 3

@swift-ci Please test

Looks like a random swiftpm build failure due to lowercas-ification of enum case names.

@swift-ci smoke test os x platform


checksum for Windows 64 bit (installer) version dbeaver-ce-7.2.0-x86_64-setup.exe incorrect

System information:

Winidows 10 64bit
DBeaver version 7.2.0

Describe your question:
My checksums are not matching.  Anyone else having this problem?
I downloaded the Windows 64 bit (installer)
#1 md5 Test on file.
C:\Downloads\DBeaver>md5 dbeaver-ce-7.2.0-x86_64-setup.exe
35E25E342C539A2DE55C4D17EE067BC0  dbeaver-ce-7.2.0-x86_64-setup.exe
From website, The --> dbeaver-ce-7.2.0-installer.pkg.md5   is
673ef19cceb583e7a000858804605e88  <--- Does NOT match!!!!
#2 sha256 Test on file.
Algorithm : SHA256
Hash      : 3CDB537814510B5E4F50B8D2585FD0C29AECA058B7606F2738E0C40DEF53ACA4
Path      : C:\Downloads\DBeaver\dbeaver-ce-7.2.0-x86_64-setup.exe
From website, The --> dbeaver-ce-7.2.0-installer.pkg.sha256    is
3c930bf9ce16d7c08abd5149367ad7b436618ed922e4a4e7fa86e568d98bcce4 <--- Does NOT match!!!!

Your OS is Windows. You should use dbeaver-ce-7.2.0-x86_64-setup.exe.md5   https://dbeaver.io/files/7.2.0/checksum/


"Special" buffers are restored as empty buffers

Special buffers like file tree buffers cannot be saved in the session so they are restored as empty buffers.
One solution to this problem can be to close these buffer like it's done in the neovim-session-manager plugin:

https://github.com/Shatur/neovim-session-manager/blob/9652b392805dfd497877342e54c5a71be7907daf/lua/session_manager/utils.lua#L74-L79
https://github.com/Shatur/neovim-session-manager/blob/9652b392805dfd497877342e54c5a71be7907daf/lua/session_manager/utils.lua#L129-L149

Thank you!


Add play mode tests to CI pipelines

Modifications to CI profile, taken from PR #4185 by wiwei.
Change Error on initialization of dictation and speech services to warning.

/azp run mrtk_PR

/azp run mrtk_PR

I think that the speech/dictation issues are actually red herrings - I believe that @lukastoenneMS fixed the speech/dictation issues a while back (by making them still log, but no longer die on exception).
I think that you'll actually need to remote into these CI machines to see what is missing to get these play mode tests working. I think that the build machines are actually probably missing some underlying setup (i.e. mixed reality portal/steamvr) which might be required to get things to work here.

@wiwei Do you mean this error message? :
"Windows Mixed Reality and Holographic Emulation are not supported on operating systems prior to Windows 10 Fall Creators Update (Redstone 3)."
Do you think it's just missing mixed reality portal or can actually be an outdated Windows version?
Without recognizers the system won't die, but the error message will cause a test failure.
Another issue tests hit is a missing UIRaycastCamera, which seems to be unrelated to CI machines, I'll try to repro that locally.

That's one of them - in the past we've tried doing local repros of things and found that they are to some degree unique to the build setup of the machine (i.e. when doing a local build of the .NET backend stuff we didn't have any issues because we had run VS on the machine which restored nuget packages, and thus we had to actually get onto the machines themselves to further investigate the difference)

/azp run mrtk_PR

/azp run mrtk_PR

/azp run mrtk_PR

/azp run mrtk_PR

/azp run mrtk_PR

/azp run mrtk_PR

/azp run mrtk_PR

/azp run mrtk_PR

/azp run mrtk_PR

/azp run mrtk_PR

/azp run mrtk_PR

/azp run mrtk_PR

/azp run mrtk_PR

/azp run mrtk_PR


  I would rather run the fixtures without auth and then have an extra test on travis that just does a smoke test with auth.

Current coverage is 83.05% (diff: 100%)

Merging #1 into authenticate_mongoserv will increase coverage by 7.43%

@@           authenticate_mongoserv         #1   diff @@
========================================================
  Files                           4          4
  Lines                         484        484
  Methods                         0          0
  Messages                        0          0
  Branches                       82         82
========================================================
+ Hits                          366        402    +36
+ Misses                         98         64    -34
+ Partials                       20         18     -2

Powered by Codecov. Last update e72f8ce...5d9eb7d

Since all our mongo shells will have to use the auth, I think we should also test against auth.

I added an env to make it opt-in, travis can run auth, I can run with out :wink:

I like that very much


File model_index.json not found

Describe the bug

also it doesn't seem to recognize my uploaded screenshot image?
"train_imagic.py: error: unrecognized arguments: Shot 2022-10-20 at 8.38.18 AM.png"
Thank you so much in advance for help!
Reproduction
Just running the cells as is
Logs
No response
System Info

I'm having the same problem in Colab


Required rights to see Bitlocker Keys

The documentation is very vague about what exact rights are required to be able to view or copy BitLocker keys.
Do you need the 'Global Administrator' directory role, the 'Intune Administrator' directory role or the 'Admin' role from the Microsoft Store for Business?

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

ID: a8119688-e88d-2916-3dcf-bf777a5fc80c
Version Independent ID: e767d695-1c9f-64e4-e6c4-fef07b0f3d2e
Content: Managing devices using the Azure portal
Content Source: articles/active-directory/device-management-azure-portal.md
Service: active-directory
GitHub Login: @MarkusVi
Microsoft Alias: markvi

@gutjahr Thanks for your feedback! We will investigate and update as appropriate.

@MarkusVi  -Is it possible to mention the exact role name which has the privileges to view the Bitlocker keys under section View or copy BitLocker keys

Hi @gutjahr, thanks for your feedback. In addition to the owner, you need to be a user that has at least one of the following roles assigned:

Global admins
Helpdesk Admins
Security Administrators
Security Readers
Intune Service Administrators

I have staged an updated version of the article.
#please-close

So just to be clear, either you are a member of one of the AAD roles you mention, or you are the 'owner' of the device in question in which case the role membership is optional.

Hi @gutjahr, this is correct.

Hi, does "owner" need to be administrator on the device or not?

@BiljanaJaneva Yes the owner needs to be administrator on their own device or they need be part of any of the above groups as listed to be able to access the bitlocker key in the cloud.

So why cant I make a custom role or definition for microsoft.directory/devices/bitLockerRecoveryKeys/* which seems to be whats required?

Hi @gutjahr, thanks for your feedback. In addition to the owner, you need to be a user that has at least one of the following roles assigned:

Global admins
Helpdesk Admins
Security Administrators
Security Readers
Intune Service Administrators

I have staged an updated version of the article.
#please-close

These are all builtin roles, what about custom role?  We have created custom roles, now how do we give the rights for viewing/ copying BitLocker Keys?
Any help would be appreciated.

Hello @MarkusVi ,
Running into the same problem.
Trying to create a custom role to only be able to see bitlocker recovery key, and assign it to users of custom intune admin role, and it does not work.
Really annoying to be forced to use one of the overprivileged existing roles.


How to parse a #[scan::auto_scan("", "")]，  attr

This feels like a common use case, so perhaps there's a better way to do this that I'm unaware of.
#[proc_macro_attribute] pub fn auto_scan(attr: TokenStream, input: TokenStream) -> TokenStream {     let attr = parse_macro_input!(attr as Args);     // todo      input }
i want to have Vec<String>
Excuse me, what should I do？
Thanks in advance 😁

Please ask your question in any of the resources shown in https://www.rust-lang.org/community. Syn is one of the most widely used Rust libraries and plenty of people will be able to provide guidance about it.


chore(PLNSRVCE-1470): add pipeline service SLO row/panels to RHTAP app-sre SLO dashboard

This adds the pipeline service alert slo panels to the dashboard:

@avi-biton let's get #101 merged before this one. Otherwise we'll end up with competing PRs and conflicts.

@avi-biton let's get #101 merged before this one. Otherwise we'll end up with competing PRs and conflicts.

am I correct @amisstea  in thinking that given the x/y coordinate positioning and potential generation of ID conflicts, I cannot just do a github merge, and need to utilize the grafana dashboard editor and re-do the row/panels I added, right?

@avi-biton let's get #101 merged before this one. Otherwise we'll end up with competing PRs and conflicts.

am I correct @amisstea in thinking that given the x/y coordinate positioning and potential generation of ID conflicts, I cannot just do a github merge, and need to utilize the grafana dashboard editor and re-do the row/panels I added, right?

I've had success with making a copy of the dashboard on stage AppSRE grafana and then copy/pasting into the JSON model within the UI's dashboard settings and saving that. I delete the dashboard when I'm done with it. If you do try this out, let me know how it goes. It's the best way I've found to review these PRs.

@avi-biton let's get #101 merged before this one. Otherwise we'll end up with competing PRs and conflicts.

am I correct @amisstea in thinking that given the x/y coordinate positioning and potential generation of ID conflicts, I cannot just do a github merge, and need to utilize the grafana dashboard editor and re-do the row/panels I added, right?

I've had success with making a copy of the dashboard on stage AppSRE grafana and then copy/pasting into the JSON model within the UI's dashboard settings and saving that. I delete the dashboard when I'm done with it. If you do try this out, let me know how it goes. It's the best way I've found to review these PRs.

yes that is what I've been doing / was trying to describe previously; at least for me, it seems to invariable make small tweaks to panels above my new panels (which in theory I have not touched), but so for a few minor git undoes from my IDE do the trick.
I've rebase this PR since the merges yesterday @amisstea but as of this comment I see #101 is still unmerged and I'm assuming you want to get that in before mine .... if anything today's exercise was good practice #5 :-)
thanks

@gabemontero please resolve the conflicts when you get a chance.

conflicts resolved @amisstea PTAL thanks

LGTM. Thanks @gabemontero!

yw and likewise thanks @amisstea !!


BreadcrumbList itemListElement listitem with string item value

Is it possible to produce JSON like this using this library ?
      "@context": "https://schema.org",
      "@type": "BreadcrumbList",
      "itemListElement": [{
        "@type": "ListItem",
        "position": 1,
        "name": "Books",
        "item": "https://example.com/books"
      },{
        "@type": "ListItem",
        "position": 2,
        "name": "Science Fiction",
        "item": "https://example.com/books/sciencefiction"
      },{
        "@type": "ListItem",
        "position": 3,
        "name": "Award Winners"
      }]
    }

I tried but I get a compiler error when assigning a string to item

See this unit test for an example:
https://www.github.com/RehanSaeed/Schema.NET/tree/main/Tests%2FSchema.NET.Test%2Fcore%2FBreadcrumbListTest.cs

No, I need itemListElement.*.item to be a string, not an object, that unit test does not show that.

Hey @throwaway20210 , unfortunately Schema.org has the property item on ListItem as Thing, meaning it can only be an object. See: https://schema.org/ListItem
Using the example for JSON-LD on Schema.org for BreadcrumbList, the way you could implement what you want with objects would be similar to the following:
{
	"@context": "https://schema.org",
	"@type": "BreadcrumbList",
	"itemListElement": [{
		"@type": "ListItem",
		"position": 1,
		"item": {
			"@type": "Thing",
			"name": "Books",
			"url": "https://example.com/books"
		}
	},{
		"@type": "ListItem",
		"position": 2,
		"item": {
			"@type": "Thing",
			"name": "Science Fiction",
			"url": "https://example.com/books/sciencefiction"
		}
	},{
		"@type": "ListItem",
		"position": 3,
		"item": {
			"@type": "Thing",
			"name": "Award Winners",
			"url": "https://example.com/books/sciencefiction/awardwinners"
		}
	}]
}

You shouldn't have a problem achieving the above through Schema.NET. In theory, you could use the name and URL properties on ListItem directly but it really depends on the receiving side of the Schema.org data to whether they would understand that.
Alternatively to using type "Thing" for the items, you could specify "WebPage" instead as they are all web pages.
As an aside, breadcrumbs is actually a kinda weird schema representation. As a concept, they only exist with web pages so you would think a restriction to an item list that only has web pages would make sense. Yet because of using the shared ListItem type, no such restriction can exist so the item types could be any schema type at all.

I'd like to point out that isn't that case for Google, Google uses item rather than URL https://developers.google.com/search/docs/appearance/structured-data/breadcrumb and I've checked on my webmaster page that using url renders the BreadcrumbList invalid

@AlizerUncaged What you see with Google taking a Url or a Thing is Google deviating from the schema.org standard which is where we generate our entire model from - if you want to complain to anyone, its either the people who wrote the standard or Google for not following it. The screenshot you got of their docs does say you can use a Thing with the @id property set to the URL you want. You should be able to do that today with Schema.NET


Bentoml lambda list errors out in AWS Cloud9

Describe the bug
Calling bentoml lambda list throws a sqlalchemy error when running on an AWS Cloud9 instance.
To Reproduce
Steps to reproduce the issue:

Follow the lambda deployment tutorial here: https://docs.bentoml.org/en/latest/deployment/aws_lambda.html
Call bentoml lambda list

Expected behavior
The lambda deployments should be displayed.
Screenshots/Logs
ec2-user:~/environment $ bentoml lambda list
[2021-06-15 17:57:37,647] ERROR - RPC ERROR ListDeployments: (sqlite3.OperationalError) no such function: JSON_EXTRACT
[SQL: SELECT deployments.id AS deployments_id, deployments.name AS deployments_name, deployments.namespace AS deployments_namespace, deployments.spec AS deployments_spec, deployments.state AS deployments_state, deployments.annotations AS deployments_annotations, deployments.created_at AS deployments_created_at, deployments.last_updated_at AS deployments_last_updated_at
FROM deployments
WHERE ((JSON_EXTRACT(deployments.spec, ?)) LIKE '%' || ? || '%') ORDER BY deployments.created_at DESC
 LIMIT ? OFFSET ?]
[parameters: ('$."operator"', 'AWS_LAMBDA', 200, 0)]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
Error: lambda list failed: INTERNAL:(sqlite3.OperationalError) no such function: JSON_EXTRACT
[SQL: SELECT deployments.id AS deployments_id, deployments.name AS deployments_name, deployments.namespace AS deployments_namespace, deployments.spec AS deployments_spec, deployments.state AS deployments_state, deployments.annotations AS deployments_annotations, deployments.created_at AS deployments_created_at, deployments.last_updated_at AS deployments_last_updated_at
FROM deployments
WHERE ((JSON_EXTRACT(deployments.spec, ?)) LIKE '%' || ? || '%') ORDER BY deployments.created_at DESC
 LIMIT ? OFFSET ?]
[parameters: ('$."operator"', 'AWS_LAMBDA', 200, 0)]
(Background on this error at: http://sqlalche.me/e/13/e3q8)

Environment:

OS: Cloud9 EC2 Linux
Python Version [e.g. Python 3.7.9]
BentoML Version [e.g. BentoML-0.12.1]

@whoseoyster the list functionality has been deprecated, see the latest docs on bentoctl for more details https://github.com/bentoml/bentoctl