Golf Code - why cannt i pass this challenge ?

Challenge Golf Code has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.
i keep pressing CRTL+Enter And every time shows this error
i also tried  if ( strokes ==1 )  it shows the same problem
My code:

function golfScore(par, strokes) {
  // Only change code below this line

 if ( strokes <2)
    return "Hole-in-one";
  else if(strokes <= par -2)
    return "Eagle";
   else if(strokes == par -1)
    return "Birdie";
   else if (strokes == par)
    return "Par";
   else if (strokes == par +1)
    return "Bogey";
   else if (strokes == par+2)
   return "Double Bogey";
   else{
    return "Go Home!";
  }

  // Only change code above this line
}

// Change these values to test
golfScore(1, 1);

You're missing an exclamation mark (!)
Should be Hole-in-one! not Hole-in-one

@armvas is correct. Please use the Help chat room for getting challenge related help. Happy Coding!

Thanks to your post i was able to understand what i did wrong. Thank you for sharing this.


fix Firefox opening link twice when using open in a new tab shortcut

For me the Firefox was opening a link twice when using "open in a new tab" shortcut. I wasn't able to find out why it does so. However I have found out a simple workaround implemented in this PR.

I can verify that reinstalling the extension indead fixes the issue.
Thank you!


It seems like expected behavior:
postgres=# select INT '2054199738' + INT '2147483647';
ERROR:  integer out of range

cc @kwannoel
BTW, should we print out the expression when encountering out-of-range? That is how I found this reason.

The error "out of range" was caused by (INT '2054199738' + INT '2147483647').
It seems like an expected behavior:
postgres=# select INT '2054199738' + INT '2147483647';
ERROR:  integer out of range

cc @kwannoel
BTW, should we print out the expression when encountering out-of-range? That is how I found this reason.

I will submit a fix later. Probably fix is to permit out-of-range errors, they should be expected.


style ist not loading?

This is how my stepper looks like:
I am using the code from example. What i am doing wrong?

i wrote an complete new Stepper... If you want you can look at https://github.com/tkwant/react-stepper-wizard

i have found another libary .... https://github.com/tkwant/react-stepper-wizard


As a student I want to have a review of the software engineering methods module so I know what to study for in the exam.

[ ] Are the notes written for students?
[ ] Are the notes uploaded to GitHub?
[ ] Are the slides written ready to present to students?
[ ] Are the slides uploaded to GitHub?

Next action: plan out the structure of the lecture.


when I run the sync_operation.py in examples, an error occurred

DEBUG:can:can config: {'interface': 'virtual', 'channel': 'vcan0'}
DEBUG:asyncio:Using selector: SelectSelector
DEBUG:asyncio:Using selector: SelectSelector
Traceback (most recent call last):
File "E:/async/uds_sync.py", line 15, in
client = network.create_sync_connection(0x123, 0x456)
File "D:\python3.5\lib\site-packages\aioisotp\sync.py", line 42, in create_sync_connection
_, protocol = fut.result(timeout=1)
File "D:\python3.5\lib\concurrent\futures_base.py", line 405, in result
return self.__get_result()
File "D:\python3.5\lib\concurrent\futures_base.py", line 357, in __get_result
raise self._exception
File "D:\python3.5\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(None)
File "D:\python3.5\lib\site-packages\aioisotp\network.py", line 120, in create_connection
return self._make_userspace_transport(protocol_factory, rxid, txid)
File "D:\python3.5\lib\site-packages\aioisotp\network.py", line 123, in _make_userspace_transport
protocol = protocol_factory()
File "D:\python3.5\lib\site-packages\aioisotp\sync.py", line 62, in init
loop = asyncio.get_event_loop()
File "D:\python3.5\lib\asyncio\events.py", line 632, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "D:\python3.5\lib\asyncio\events.py", line 578, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'Thread-1'.

I think I have solved this. Please try the master when you can.

yes,this problem have been solved


"Function called with incorrect arguments" error from task_run_all

See http://stackoverflow.com/q/31224618/1609356
I assume you are currently busy and out of cmakepp stuff. I just want a hint, what could be the reason for this kind of internal error?
Thanks in advance.

Yeah sorry.  I can't seem to get back to it atm just started a job.
in cmakepp you can register tasks in every file which are executed after cmakepp has loaded.  similar to jquery's $(handler) function.  If you never use the task_ functions then it stands to reason that there is some kind of snafu in the task system (which I have reworked in newer versions of cmakepp) .  Else if you use the task system then there might be a problem with those tasks.
If its only the tasks that I myself then one could just delete or comment out the lines which are calling task_enqueue (about 3 in the whole of cmakepp) without causing any error. or by commenting out the task_run_all call in cmakepp.cmake line 110 as they are problably not necessary and only pertain to my project&package management functionality.
If that doesnt work here are some further thoughts on the matter:
What I find peculiar is that his path is c:\users\tobi... is his username Tobi?  Because mine is too and I am questioning myself if the path is hard coded.. (but it shouldn't matter)
also what revision is he using?
another question:  are the tasks being run in parallel or in sequence?  This could indicate  a problem with the temporary file that cmake uses (its the same in every instance and is actually used as a kind of register in the eval function - ie the filename never changes)
could you maybe also post a link to
  ../deps/boost/install/build_jobs.cmake:1 (include)
  ../deps/boost/install/install.cmake:2 (include)
  ../deps/biicode/boost/setup.cmake:1 (include)
  ../../CMakeLists.txt:1 (include)

There could be a problem with the parsing of the startup tasks


relx sys_config parameter in profile does not override default

How to reproduce:
rebar.config:
{relx, [{release, {'myrelease', "0.1.0"},
         [...]},

        {dev_mode, true},
        {include_erts, false},

        {sys_config, "config/default/sys.config"},
}.
{profiles, [{prod, [{relx, [{dev_mode, false},
                            {include_erts, true},
                            {sys_config, "config/prod/sys.config"}]}]}]},
               ...

$ rebar3 as prod tar
Results:
sys.config in the tar will be the one in config/default/sys.config
Expected results:
sys.config in the tar is config/prod/sys.config
Does not work on: 46181c8bf5863a828b87d0cf3f0aa4cf48f3f245
Works on: tag beta-4.

This does not work for me on beta4 neither:
rebar 3.0.0-beta.4+build.3177.ref46181c8 on Erlang/OTP 18 Erts 7.1
I was trying to build https://github.com/marianoguerra/tanodb.

Hm, if tanodb was using this successfully it must have been broken with the recent changes to how relx profiles are merged. I'll be sure to add a test for this case when it is fixed so it doesn't happen again.
Yup, https://github.com/rebar/rebar3/commit/996da460b0b0939afa53a2383f15f88ac8cca9de
Looks like we do still need to treat some keys like sys_config and vm_args in a special way. Eventually I need to just fix relx, but that is more of a pain :(

This should be fixed, reopen if not.

Got bitten by the same issue. Here's my rebar3 version:
$ rebar3 version
rebar 3.1.1 on Erlang/OTP 19 Erts 8.0.2

Please try a newer rebar3 version -- current version is now 3.3.0.

Hi @ferd,
I confirm it works with the latest rebar3 available at this time of writing, i.e. 3.3.0.
Thanks and sorry for inconvenience.
PS: my rebar3 version was outdated because I'm using homebrew and the version is still 3.1.1 – there's PR#1355 to upgrade to 3.3.0 though.

Thanks for the heads up!

It seems the problem is back with 3.3.1, unless I borked my env somehow.
I also tried to rm _build too just to be sure

3.3.1 only has changes to code coverage, the shell, and prefetching an index compared to 3.3.0. If it's a problem in 3.3.1, it has to be one in 3.3.0 I think.

Actually, I was wrong: I got the same issue with 3.3.0 :(

I blindly upgraded when @zyegfryed told me it worked for him on 3.3.0, so I am not exactly sure when it broke.

going to reopen this then.

This seems to be fixed again in 3.3.2.
Rebar3 report
 version 3.3.2
 generated at 2016-10-26T04:54:16+00:00
=================
Please submit this along with your issue at https://github.com/erlang/rebar3/issues (and feel free to edit out private information, if any)
-----------------
Task:
Entered as:

-----------------
Operating System: x86_64-apple-darwin15.6.0
ERTS: Erlang/OTP 19 [erts-8.1] [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]
Root Directory: /opt/erlang-19.1/lib/erlang
Library directory: /opt/erlang-19.1/lib/erlang/lib
-----------------
Loaded Applications:
bbmustache: 1.3.0
certifi: 0.4.0
cf: 0.2.1
common_test: 1.12.3
compiler: 7.0.2
crypto: 3.7.1
cth_readable: 1.2.3
dialyzer: 3.0.2
edoc: 0.8
erlware_commons: 0.21.0
eunit: 2.3.1
eunit_formatters: 0.3.1
getopt: 0.8.2
inets: 6.3.3
kernel: 5.1
providers: 1.6.0
public_key: 1.2
relx: 3.21.1
sasl: 3.0.1
snmp: 5.2.4
ssl_verify_fun: 1.1.1
stdlib: 3.1
syntax_tools: 2.1
tools: 2.8.6

-----------------
Escript path: /opt/bin/rebar3
Providers:
  app_discovery as clean compile compile cover ct deps dialyzer do edoc escriptize eunit help install install_deps list lock new path pkgs release relup report shell state tar tree unlock update upgrade upgrade upgrade version xref

Good to hear!


Offline Unit and Integration Tests

I apologize for spamming #14
So I believe my issue was a result of the unit tests operating under the assumption that I have access to a repository called stevemaotest/conventional-github-releaser-test.
Since I do not it's impossible to actually verify any changes I make locally.
Therefore I wanted to propose extending the testing suite with offline unit and integration tests.
For unit testing we could use something like proxyquite, and for integration tests we could use nock.

I haven't used those two modules but if you come up with something go for it 😄

@hbetts Why is this closed?

@stevemao I closed it as I'm unlikely to have the time to develop an offline unit test setup for the conventional-*-releaser projects.
If you would prefer that this issue be kept open in case someone else is able or willing to take on the task, I can re-open the issue.


Vuetify + NuxtIcon: Vue warn Slot "default" invoked outside of the render function:

I'm using nuxt-icon and vuetify, got this warnings when using the nuxt-icon inside the vTabs and vMenu of vuetify. The warnings are produced when the icons are hidden then display like in vTabs and vMenu.
Here is the link to reproduce what I encounter:
https://stackblitz.com/edit/nuxt-starter-fnzdtw?file=app.vue

I experience this as well. Same goes for V-Tooltip

I've found that there are a variety of contexts where Vuetify prefers to have the <Icon> component placed in the default slot of the <v-icon> component. There's still some funky stuff you have to do, like use a blank icon attribute on <v-btn> if you want an icon button, and so on:
<v-btn icon="">
  <v-icon>
    <Icon name="mdi:vuetify" />
  </v-icon>
</v-btn>

But from what I can see in the playground, wrapping the <Icon> component in a <v-icon> component does resolve the warning that you're seeing.

I've found that there are a variety of contexts where Vuetify prefers to have the <Icon> component placed in the default slot of the <v-icon> component. There's still some funky stuff you have to do, like use a blank icon attribute on <v-btn> if you want an icon button, and so on:
<v-btn icon="">
  <v-icon>
    <Icon name="mdi:vuetify" />
  </v-icon>
</v-btn>

But from what I can see in the playground, wrapping the <Icon> component in a <v-icon> component does resolve the warning that you're seeing.

I made a component that wraps Icon with v-icon

Then tried using it like

Still getting

@stephenjason89 Could you share a stackblitz link demonstrating the issue you're running into? I wasn't able to replicate that issue from the snippets you posted.

Hello @niko-chaffinchicas, It seems like, i was getting this error on Icon.
Upon trying IconCSS every error went away.
I end up creating an Icon component

This solved all the errors I had

I experienced this as well.
What seemed to work best for me was a combination of the suggestions above: Only using IconCSS.
<template>
  <!-- Regular <Icon> (+Vuetify) causes "Vue warn Slot "default" invoked outside of the render function" -->
  <!-- https://github.com/nuxt-modules/icon/issues/89 -->
  <IconCSS
    :name="icon"
    :size="sizeInUnits"
    :class="{ start, end }"
    :style="{ color: resolvedColor }"
  />
</template>

<script setup lang="ts">
import { LABEL_COLORS } from '~/assets/constants';

const SIZES = {
  'x-small': '1em',
  'small': '1.25em',
  'default': '1.5em',
  'large': '1.75em',
  'x-large': '2em'
};

const {
  size = 'default',
  color
} = defineProps<{
  icon: string;
  size?: keyof typeof SIZES | number;
  color?: string;
  start?: boolean;
  end?: boolean;
}>();

const sizeInUnits = computed(() => typeof size == 'number' ? size.toString() : SIZES[size]);
const isLabelColor = computed(() => color && LABEL_COLORS.includes(color));
const resolvedColor = computed(() => isLabelColor.value ? `rgb(var(--v-theme-${color}))` : color);
</script>

<style scoped>
.start {
  margin-inline-end: 8px;
}
.end {
  margin-inline-start: 8px;
}
</style>

Since this workaround is based on an experimental feature, a proper fix would be appreciated.

I've noticed that lazy-loading the icon (prefixing it with Lazy) like this: <LazyIcon :name='name' /> gets rid of the error while everything seems to be working correctly.
In case it is important I was getting the error when using the icon inside the v-list-item's #item slot.
I'm not sure if this is a correct workaround but since IconCSS is an experimental feature and doesn't work with some icons that I need I don't see any other solution for now.

Any updates please ?

I am having the same issue, none of the solutions above fix the issue... the warning stays.


Build with and without ICD loaders

Experiments with OpenCL ICD loaders
Trying to understand the complexities behind OpenCL ICD loaders and how this affects environments with mixed linking strategies.
Description
In contrast with CUDA, where Nvidia governs the full pipeline, when it comes to OpenCL, there are multiple implementations available, provided by different vendors, organizations and projects. These implementations are called ICDs. When it comes to using one (or more) of them in an application, the developer might face the decision of linking against one specific ICD. What if the project wants to support several implementations? Here's where the loader can help: it provides a unified interface to all the possible ICDs present in the system, so the projects can link to the loader and forget about generating all the possible variants.
However, problems might arise if both strategies are used by different pacakges that are loaded in the same process. For example, a Python script is using a packaged linked against the loader, and another package that links against the ICD directly. For this reason, Conda Forge requires to link against the ICD loader so packages within conda-forge are compatible.
This can cause problems with packages outside conda-forge, though.
Packages available on conda-forge
Following conda-forge recommendations, packages are expected to link to the ICD loader:

On Linux, the loader is provided by ocl-icd. By default, the loader will only see ICDs present in the conda environment. If system's ICDs are needed (e.g. Nvidia's), you can also install ocl-icd-system to symlink the system locations and make them visible.
On MacOS and Windows, the loader is provided by khronos-opencl-icd-loader.
MacOS also provides Apple's own implementation, not natively compatible with the loader mechanism. A wrapper is available to expose it as such: ocl_icd_wrapper_apple. This wrapper is not needed for other vendors.

Scenario A: using the loader
TBD
Scenario B: linking against Nvidia's OpenCL
TBD
Scenario C: linking against Apple's OpenCL (MacOS only)
TBD

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


if only a result is on the screen, cos, sin, tan, log, etc. should wrap around it

I believe that normal calculators, if you have a result and then you click on something like cos, sin, etc., it will wrap around it.
Example:

I do 5+40 and press equal.
I see 45
I press sin
I get sin(45)

I am not sure about this, my phone's calculator happens cos. How would you be able to do log(x)*cos(x) if the result gets wrapped?


Fix MultilineImportsTest

The fix is to use MultiLineSqlScriptExtractor instead of MultipleLinesSqlCommandExtractor (which was deprecated anyway and now removed in ORM6)

Thanks


How to find dead store instructions?

Dead store elimination pass can look for redundant store instructions and declare them as dead, ultimately removing them


Add ObstacleUser class

This PR addresses #62 and is work in progress. It also adds a collision request per collision pair, allowing to set different margins for each pair.
At the moment :

I could not find a solution which avoids dynamic casting.
I did not merge the collision pair management of discrete and continuous collision checking methods.

It seems to fit the result of our discussions. Thank you.


[two_dimensional_scrollables] - TableView is missing padding attribute

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Use case
I have a TableView in a screen with an app bar that does not have a straight edge. Wrapping the TableView with a padding widget causes artifacts with the scroll glow.

Proposal
TableView from the two_dimensional_scrollables package should have a padding attribute like any other scrollable widget that allows to add padding around the content without shrinking the scrollable area.
@Piinks

Thanks @Quijx. For now you could wrap Padding around the individual children returned by the TableView cellBuilder.
This would likely be something we implement in TableSpan, which configures individual rows and columns, rather than directly on TableView.

And this one is queued up in https://github.com/flutter/packages/pull/5039 :)


Peer review for org.accordproject.finance.loan

Third time is a charm!
I have revised to contain just the loan model. My intent is to make this compatible with HL Composer. This is my first try at DLT development. Apologies in advance if I am completely lost on some of the core concepts.
Regarding the cicero contract and clauses, it seems like that should be drafted or reviewed by a lawyer rather than a developer. Do lawyers do that here or is there a more appropriate forum for contract review?

I tried to join but it says I need a @clause.io email address. How do I get
one of those?
On Wed, Oct 24, 2018 at 9:44 AM Matt Roberts<EMAIL_ADDRESS>wrote:

The Accord Project (http://accordproject.org/) working groups are a great
place for exactly this kind of legal / tech collaboration, you're very
welcome to join us via slack.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/accordproject/models/pull/18#issuecomment-432661910,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHDfqGpq0xDf17rGv6xtJ-3ssGzS6c8Hks5uoG6_gaJpZM4X0TL6
.

its working now! thanks
https://accord-project.slack.com/
still shows this though
[image: image.png]
On Thu, Oct 25, 2018 at 8:27 AM Matt Roberts<EMAIL_ADDRESS>wrote:

Can you send me a screenshot to<EMAIL_ADDRESS>of the message that you
see, please? That restriction shouldn't be in place.
Sign-up directly at https://accord-project-slack-signup.herokuapp.com/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/accordproject/models/pull/18#issuecomment-433030591,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHDfqN1-E_t-irhwSBTeD3BKRubS33KIks5uoa4VgaJpZM4X0TL6
.

@mttrbrts - is this good to go now?

LGTM. Ping @mttrbrts : should this be merged?


Make serverless functions open source

Make serverless functions open source

See: https://github.com/DiceBear/avatars-serverless


handle open window packet

There is a problem:
OpenContainer will wait for an OpenWindow packet and create a new window. But the new handler will also pickup the packet and try to open the window as well.
In OpenContainer, the packet should be awaited, but it shouldn't create a new window instance. Instead let the new handler create the window, and somehow get that window in OpenContainer and return it.


"Sync: Update / Upload Settings" doesn't upload settings.json

After making a change to settings and saving, I run "Sync: Update / Upload Settings".
The output says it uploading keybindingsMac and snippets|javascript.json, but not settings.json.

Try restarting code
It will always upload settings json


Cannot update or Uninstall 0.80.1-x64

Microsoft PowerToys version
0.80.1
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
General
Steps to reproduce
I cannot update the Powertoys or uninstall the current version always show pop up box that it cannot fined the " PowerToysUserSetup-0.80.1-x64.msi " file in the following path " C:\Users\profe\AppData\Local\Package Cache{DD4328EA-9BEC-42E3-9231-E511B0ADA64C}v0.80.1 " and when I cancel it gives error message

Screenshot for Setup failed message

✔ Expected Behavior
To support for guiding hoe to uninstall the old version and install the updated one.
❌ Actual Behavior
No response
Other Software
No response

I am having the same issue.
I wanted to update to 82.1 from 82.0.
I can not uninstall 82.0 (either manually or by running the 82.1 installer)
I get the following error:
can not find:
'C:\ProgramData\Package Cache{9E31A34D-7CB8-4D3C-8A4E-88B0B73C314D}v0.82.0'

Issue
I am having the same issue. I wanted to update to 82.1 from 82.0. I can not uninstall 82.0 (either manually or by running the 82.1 installer)

I get the following error:

can not find:
'C:\ProgramData\Package Cache{9E31A34D-7CB8-4D3C-8A4E-88B0B73C314D}v0.82.0'

I also get the same error when trying to do a repair on 82.0.

Solution
I followed the instructions on the Powertoys home page to extract the msi and placing it in the folder in the 'Package Cache' with the correct name.

Extracting the MSI from the bundle
Make sure to have WiX Toolset v3 installed.

Hi, Paul
Did you manage to solve the issue?
I don't know how to use This WIX Toolse v3..
I tried but I failed to extract the .msi file. Could you help if you already succeeded to use WIX tool.. What is the steps?
Thnaks

After installing the WiX Toolset v3,
I use the code on the Extract MSI page of installing Powertoys .

Note: I had to ensure Powershell was running from my profile folder.
The MSI will be extracted to this folder.
Note: I modified the code point to my folder and correct exe name.
You then move the MSI file to the 'C:\ProgramData\Package Cache{9E31A34D-7CB8-4D3C-8A4E-88B0B73C314D}v0.82.0'  folder.

Then run the uninstall and it should work.

Dear Paul,
Thanks very much for your reply and explanation..
It worked 🤩🤩🤩🌹🌹
I really appreciate your assistance.

You're welcome.
Hope this does not happen with the next version.


Add ActiveQuery::getAlias() as pair of alias()

How do you about add:
class ActiveQuery ...
{
...
    public function getAlias()
    {
        list(, $alias) = $this->getQueryTableName($this);
        return $alias;
    }

or make ActiveQuery::getQueryTableName() function not private?

Why do you need it to be non-private? What's your use case?

About getAlias():
I need to create ActiveQuery in one "service" class and add andWhere() for its primary table in another "service".
Cutted code is:
/* @var \app\models\ObjectQuery */
$query = $modelClass::findForUser($userId);    //may be contain several joins
$searchService = SearchService::createFromQuery($query);
$query = $searchService->search($params);   //apply filters inside
return new ActiveDataProvider([
            'query' => $query
        ]);

class ObjectQuery extends ActiveQuery
{
    public function filterBySomeThing($params)
    {
        $whereCondition = ...;   //some logic
        $tableAlias = $this->getAlias();
        $field = "{{$tableAlias}}.[[my_attr_id]]";
        return $this->andWhere([$field => $whereCondition]);
    }
}

@cebe sounds related your recent alias changes, would you please check it?

duplicate of #7263

Any news?
I hate code copy-pasting, but have no other way now.

@sasha-ch the topic is discussed in #7263 by evaluating several use cases. we need to find a common api for different cases. comments are welcome in that issue.


Time-Masked RNN

This introduces a new mode to the SimpleRNN where it can be
"time-masked" in which case the input shape to the layer becomes doubled along the time
dimension, with X[:,X.shape[1]//2:,0] becoming a mask vector which, when
set to 0, compels the _scan function to simply copy its h_tm1 to the
output.
I've only added this to SimpleRNN. I know there's been some discussion in the issues here about masking so I think this could be helpful to some other people as well. I'm happy to discuss further if there are questions about this!
My test fails sometimes, because depending on the initialization of the RNN it sometimes fails to learn the simple rule (copy input x_0 to get output). I am happy to discuss better testing approaches here, one approach could be to just train the unmasked model several times and ensure at least one converges.
Incidentally I also added an empty __init__.py to the tests directory so that I could use it as a module

As we were discussing, an alternative option would be to stop iterating on a sequence when an all-0 feature vector is encountered. https://github.com/fchollet/keras/issues/176
This would only require minimal changes to the existing layers. The only real issue would be that it would prevent the use of all-0 feature vectors as regular vectors, but as long as this is clarified in the documentation I don't think it would be a significant issue.

Hmm, one thing I'm realizing: instead of doubling the size of the time dimension here, I could also increase the dimensionality of the tensor by one, so it becomes (nb_samples, timesteps, nb_dimensions, 2) dimensions, and the mask goes on dimension 1, the data on dimension 0.
That might make things a bit more clear

Hmm, one thing I'm realizing: instead of doubling the size of the time dimension here, I could also increase the dimensionality of the tensor by one, so it becomes (nb_samples, timesteps, nb_dimensions, 2) dimensions, and the mask goes on dimension 1, the data on dimension 0.

Definitely makes more sense. It would still be rather inefficient (all data x2).

Oh actually: here's a solution for that inefficiency. I add the mask along the dimension axis. Now there's no wasted data:
(nb_samples, timesteps, nb_dimensions + 1)
and then X[:,:,-1] is the mask.

So I've updated the PR with 2 things:

The mask is now concatenated along the dimension axis, removing excess values from data array
the Embedding layer can now be given a mask, which it passes along unchanged.

As I mentioned over in the issue #176 I'm worried about simply using the 0 vector as a mask sentinel, since with ReLU activations we can easily "naturally" get 0 vectors.

Currently I'm getting an error when I run this on a GPU around a downcast in the scan. I'm investigating, but if you've seen this error before it might help me narrow things down:
ValueError: When compiling the inner function of scan the following error has been encountered: The initial state (`outputs_info` in scan nomenclature) of variable IncSubtensor{Set;:int64:}.0 (argument number 2) has dtype float32, while the result of the inner function (`fn`) has dtype float64. This can happen if the inner function of scan results in an upcast or downcast.

What do you think of introducing a "Mask" layer that introduces the mask so the user does not need to actually know exactly how the mask is formatted internally? Something like:
def my_mask(X):
    return X==0

model = Sequential()
model.add(Mask(function=my_mask))
model.add(Embedding(indim, outdim, pass_mask=True))
model.add(SimpleRNN(outdim, outdim, time_mask=True))

This seems like a solid idea, but also quite a bit verbose / boilerplatey in its usage. The same result can be achieved with:
# assumes pre-padding with '0' as index of non-character.
model = Sequential()
model.add(Embedding(indim, outdim, mask_value=0.)) # replaces index 0 with all-0. vectors
model.add(SimpleRNN(outdim, outdim, mask_value=0.)) # skips all-0. vectors

Oh that does seem better. But I still propose that that mask_value is inherently unsafe on ReLUs. I prefer
# assumes pre-padding with '0' as index of non-character.
model = Sequential()
model.add(Embedding(indim, outdim, mask_value=0.)) # masks 0 values
model.add(SimpleRNN(outdim, outdim, masked_input=True)) # tells it that the input includes a mask

Internally it's safer, and it looks just as easy to the user.

Per our discussion I've put up #244 as a replacement to this, and will close this PR


support for aligment

See #4

Current coverage is 90.78% (diff: 87.50%)

Merging #7 into master will increase coverage by <.01%

@@             master         #7   diff @@
==========================================
  Files             6          6
  Lines           141        152    +11
  Methods          32         38     +6
  Messages          0          0
  Branches         14         15     +1
==========================================
+ Hits            128        138    +10
- Misses            9         10     +1
  Partials          4          4

Powered by Codecov. Last update c4a6810...7bd1974


Op's create methods support passing an instruction name

Equivalent to CallInst, for more readable code. This allows to pass in a value name without a call to setName which is especially useful when directly returning a create op.
For example:
return m_builder->create<ExampleOp>(m_builder->getInt32(123), "example_123");

@nhaehnle @Flakebi could you add yourself as reviewers? Didn't do that when creating the PR and don't have enough rights to add you later

You need to update the generated files for the Example dialect for this to pass CI.

A draft PR for llpc showing the changes on tests is here https://github.amd.com/AMD-Radeon-Driver/llpc/pull/3581

As @tsymalla-AMD pointed out, you do need to fix the CI failures here.

As @tsymalla-AMD pointed out, you do need to fix the CI failures here.

You just need to take the ExampleDialect.h.inc and ExampleDialect.cpp.inc, which should be generated as part of the check-llvm-dialects target, and put it in the generated/ folder for the CI to pass.

Please add some tests (as mentioned above) that shows the name of the instruction is correctly set, and that this plays correctly with various cases. Thanks.

@tsymalla There was indeed a naming conflict causing this to not compile. I've added a fix for that (separate commit so it's easier to review but will be squashed) plus a test.
Here is the code produced by the conflict test I've added:
class InstNameConflictTestOp : public ::llvm::CallInst {
  static const ::llvm::StringLiteral s_name; //{"test.try.conflict"};

public:
  static bool classof(const ::llvm::CallInst *i) {
    return ::llvm_dialects::detail::isSimpleOperation(i, s_name);
  }
  static bool classof(const ::llvm::Value *v) {
    return ::llvm::isa<::llvm::CallInst>(v) &&
           classof(::llvm::cast<::llvm::CallInst>(v));
  }
  static InstNameConflictTestOp *create(::llvm_dialects::Builder &b,
                                        ::llvm::Value *instName,
                                        ::llvm::Value *inst_Name,
                                        const llvm::Twine &inst__name = "");

  bool verifier(::llvm::raw_ostream &errs);

  ::llvm::Value *getInstName();
  void setInstName(::llvm::Value *instName);
  ::llvm::Value *getInst_Name();
  void setInst_Name(::llvm::Value *inst__name);
};

and from the test single-vararg.td:
class SingleVarArgOp : public ::llvm::CallInst {
  static const ::llvm::StringLiteral s_name; //{"test.return"};

public:
  static bool classof(const ::llvm::CallInst *i) { return ::llvm_dialects::detail::isSimpleOperation(i, s_name); }
  static bool classof(const ::llvm::Value *v) {
    return ::llvm::isa<::llvm::CallInst>(v) && classof(::llvm::cast<::llvm::CallInst>(v));
  }
  static SingleVarArgOp *create(::llvm_dialects::Builder &b, ::llvm::ArrayRef<::llvm::Value *> args,
                                const llvm::Twine &inst__name = "");

  bool verifier(::llvm::raw_ostream &errs);

  ::llvm::iterator_range<::llvm::User::value_op_iterator> getArgs();
};

LGTM (you need to resolve the merge conflict)

Please add some tests (as mentioned above) that shows the name of the instruction is correctly set, and that this plays correctly with various cases. Thanks.

From MainExample.cpp
  b.create<xd::HandleGetOp>("name.of.llvm.value");
  b.create<xd::InstNameConflictOp>(b.getInt32(1));
  b.create<xd::InstNameConflictOp>(b.getInt32(1), "name.foo");
  b.create<xd::InstNameConflictDoubleOp>(b.getInt32(1), b.getInt32(2));
  b.create<xd::InstNameConflictDoubleOp>(b.getInt32(1), b.getInt32(2), "bar");
  SmallVector<Value *> moreVarArgs = varArgs;
  b.create<xd::InstNameConflictVarargsOp>(moreVarArgs);
  b.create<xd::InstNameConflictVarargsOp>(moreVarArgs, "two.varargs");
  moreVarArgs.push_back(b.getInt32(3));
  b.create<xd::InstNameConflictVarargsOp>(moreVarArgs, "three.varargs");
  moreVarArgs.push_back(b.getInt32(4));
  b.create<xd::InstNameConflictVarargsOp>(moreVarArgs, "four.varargs");

produces
  %name.of.llvm.value = call target("xd.handle") @xd.handle.get()
  %19 = call i32 (...) @xd.inst.name.conflict(i32 1)
  %name.foo = call i32 (...) @xd.inst.name.conflict(i32 1)
  %20 = call i32 (...) @xd.inst.name.conflict.double(i32 1, i32 2)
  %bar = call i32 (...) @xd.inst.name.conflict.double(i32 1, i32 2)
  %21 = call i32 (...) @xd.inst.name.conflict.varargs(ptr %p1, i8 %p2)
  %two.varargs = call i32 (...) @xd.inst.name.conflict.varargs(ptr %p1, i8 %p2)
  %three.varargs = call i32 (...) @xd.inst.name.conflict.varargs(ptr %p1, i8 %p2, i32 3)
  %four.varargs = call i32 (...) @xd.inst.name.conflict.varargs(ptr %p1, i8 %p2, i32 3, i32 4)
  ret void


add workflow for GitHub Actions

I noticed that there is a configuration file for Travis CI (https://github.com/martinmoene/lest/blob/14fa8ee66fe8d2df783c587bcded761291a9b3bb/.travis.yml), but no tests ran on Travis CI for the recent commit 14fa8ee66fe8d2df783c587bcded761291a9b3bb. So only the AppVayor tests with Visual Studio ran. That's why I decided to add GitHub Actions workflows instead.
The Travis CI configuration tests some older compilers like GCC 4.8 to GCC 7 and Clang 3.5 to Clang 6, but I don't think those are available on GitHub Actions. Therefore, the workflow uses some newer compilers. Feel free to adjust this to your needs, if you want to test on other compiler versions, too.
Looks like this when it runs: https://github.com/striezel-stash/lest/actions/runs/2502630546

Thanks @striezel
Added GitHub workflow badge to Readme, kept badge for Travis for now for easy access to old results.


Remove backtick from Update-ACL

I noticed that there was an issue with a ` in the .PARAMETER Rights description in help. This should probably be removed.

Issue resolved during Jax IT Pro Camp Demo.


Make uniqueness constraints easy

Example problem: right now, the template project has a race condition when creating users (see https://github.com/jacobobryant/biff/blob/master/libs/tasks/resources/biff/template/src/{{parent-path}}/routes/auth.clj#L68-L78). In general, email address shouldn't be used as the primary key for a user document/record, since it can change. But we still want to enforce uniqueness.
This can be done by creating a separate document (call it a "constraint doc") and matching on it, e.g. {:crux.db/id {:user/email<EMAIL_ADDRESS>:biff/held-by #uuid "some-doc-id"}.
First, we should do this in the project template without helper fns. This will only take a minute, since the project template doesn't let users change their email, and it doesn't delete users. I just don't want to do it right now since it's not urgent and I'm busy writing docs.
Second, we should think about abstracting this into a Biff lib. For example, maybe in the schema we add a key like this:
:unique-keys #{:user/email #{:foo/bar :foo/baz} ...}

And then have biff.crux/submit-tx add matches + create the separate constraint docs based on that.
We could use transaction fns instead of matching. Need to decide which is better. My initial whim is to use matching.

Lately I'm starting to lean towards always using UUIDs for keys on regular documents, and then relying on something like this for all uniqueness constraints.

New version of biff includes a :db/lookup special value for this.


[Communication - Phone Numbers] update can update a phone number's capabilities failing in nightly runs

Communication - Phone Numbers nightly test runs are failing with:

Error message:
The server encountered an internal error.
Stack trace:
RestError: The server encountered an internal error.
at handleErrorResponse (D:\a_work\1\s\sdk\core\core-http\src\policies\deserializationPolicy.ts:266:17)
at D:\a_work\1\s\sdk\core\core-http\src\policies\deserializationPolicy.ts:171:47
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at LROPolicy.sendRequest (D:\a_work\1\s\sdk\communication\communication-phone-numbers\src\generated\src\lro\lroPolicy.ts:35:40)
at PhoneNumbersClient.sendOperationRequest (D:\a_work\1\s\sdk\core\core-http\src\serviceClient.ts:519:23)
at poll (D:\a_work\1\s\sdk\communication\communication-phone-numbers\src\generated\src\lro\azureAsyncOperationStrategy.ts:133:22)
at Object.update (D:\a_work\1\s\sdk\communication\communication-phone-numbers\src\generated\src\lro\operation.ts:67:27)
at LROPoller.pollOnce (D:\a_work\1\s\sdk\core\core-lro\src\poller.ts:315:26)

For more details check here:

https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1080235&view=results

@whisper6284 Looks like the service had a few internal errors in this run. Assigning to you for visibility from the service side (or to notify the service team if needed) but you're welcome to close this if there's nothing we can do being a service error

We are no longer seeing this issue so closing for now.


microlabs incomplete?

Is the microlabs table incomplete? There are about 16k entries, I'd reckon many more got cultures than what is available in that table. Can you confirm?

Yes unfortunately microbiology data is not really available in eICU-CRD.

That's a bummer, any idea if there is any plan in the near term to include it? I'm trying to apply sepsis-3 on this dataset but it's quite difficult without this piece of data.

I don't think it's possible. The data is never collected in the system where we source eICU from.


Create edgbarrowschool.txt

@Enderqura Please make sure that you are familiar with the rules of this repository located at the bottom of this page, and modify your request accordingly.
The file path for edgbarrowschool.co.uk should be lib/domains/uk/co/edgbarrowschool.txt.
Also, please notice that free educational license for JetBrains tools is for high and higher schools students, i.e. those who are over 13 of age. Thank you!

@Enderqura Pull request merged. Thank you!


cortex_m: linker: lld: Handle symtab/strtab/shstrtab to fix warnings

LLD produces warnings about orphaned sections if there are no matching rules in the linker script:
ld.lld: warning: :(.symtab) is being placed in '.symtab'
ld.lld: warning: :(.shstrtab) is being placed in '.shstrtab'
ld.lld: warning: :(.strtab) is being placed in '.strtab'
Handle these sections when building with LLD to prevent the warnings.

This patch has two approvals. Can we merge it?


在docker上部署xprofiler-console项目报错，Error: EMFILE: too many open files, watch '/home/homework/nodeapp/xprofiler-console/app/extend'

想问下有没有遇到同样问题的同学

怎么部署的？

怎么部署的？

通过git代码同步到服务器端 然后npm run start，就报错了

怎么部署的？

通过git代码同步到服务器端 然后npm run start，就报错了，下面是报错信息
Got error when startup:
[egg-scripts] 2021-03-08 19:38:32,273 ERROR 5664 nodejs.AppWorkerDiedError: [master] app_worker#45:5985 died (code: null, signal: SIGKILL, suicide: false, state: dead), current workers: ["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96"]

96 个进程。。。读到宿主机的 cpu 了吧，参照 egg 的文档手动制定下 worker 的数量

怎么部署的？

通过git代码同步到服务器端 然后npm run start，就报错了，下面是报错信息
Got error when startup:
[egg-scripts] 2021-03-08 19:38:32,273 ERROR 5664 nodejs.AppWorkerDiedError: [master] app_worker#45:5985 died (code: null, signal: SIGKILL, suicide: false, state: dead), current workers: ["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96"]

npm run dev和npm run start 都不行 都有报错信息

参考这个：https://www.npmjs.com/package/egg-scripts
egg-scripts 加一个 --workers=4

文档的常见问题里增加了你的这个 case：https://www.yuque.com/hyj1991/easy-monitor/question#dOKeL


[feature-request] Add  to manifest for each requested permission

When trying to request some permission, if it is not declared on AndroidManifest.xml, Android will not even try to request it and directly return false when checking. I solved this temporally by adding this code on config.xml, maybe it can be added automatically.
<config-file parent="/manifest" target="AndroidManifest.xml">      <uses-permission android:name="android.permission.CAMERA" />      <uses-permission android:name="android.permission.RECORD_AUDIO" />      <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />      <uses-feature android:name="android.hardware.microphone" /> </config-file>

Thanks you made my day!

If someone has problems with android namespace, just put this in <widget> as a property so the xml is valid:
xmlns:android="http://schemas.android.com/apk/res/android"

I agree that the plugin only asks for permissions declared with <uses-permission>, but doesn't this defeat the use of the plugin?
I'm not an Android expert, but isn't the whole point to avoid <uses-permission> for runtime permissions?
After all, also the Android guide describes <uses-permissions> as problematic:

Also, when publishing an app via the Play Console such permissions are listed as "required":

...however I need these sensitive permissions only in certain rare situations and the user should not need to grant these permissions on install.
Am I missing something?

@jampy As the docs say:

Beginning with Android 6.0 (API level 23), the user can approve or reject some app permisions at runtime. But no matter which Android version your app supports, you must declare all permission requests with a <uses-permission> element in the manifest. If the permission is granted, the app is able to use the protected features. If not, its attempts to access those features fail.

All runtime permissions must be declared in the manifest to be able to ask for them to be granted at runtime.


Custom.json not working

I love your script! PlexAutoSkip is working perfectly for a few days. I am now trying to get the custom.json to work. I have an anime ("Black Clover") that I want to skip ahead to the 4 minute and 15 second mark because there is an intro, followed by a recap and then a 2nd intro which usually ends around the 4 minute mark. Below is the code I am using. I have tried the GUID (IMDB/TMDB/TVDB) and the ratingKey from the Plex XML but it's not triggering. I have also tried to Start it at 0 or -20000 but that didn't work either. Auto Skip still works for the 1st Intro but not the custom instructions. I am using the Docker version. What am I doing wrong?
{
    "markers": {
		"imdb://tt7441658": [
			{
				"start": 20000,
				"end": 255000,
				"cascade": false
			}
						],
				},
    "offsets": {},
    "tags": {},
    "allowed": {
        "users": [],
        "clients": [],
        "keys": [],
        "skip-next": []
    },
    "blocked": {
        "users": [],
        "clients": [],
        "keys": [
			"imdb://tt7441658"
		],
        "skip-next": []
    },
    "clients": {},
    "mode": {}
}

JSON looks correct
{
    "markers": {
        "imdb://tt7441658": [
            {
                "start": 20000,
                "end": 255000,
                "cascade": false
            }
        ]
    },
    "offsets": {},
    "tags": {},
    "allowed": {
        "users": [],
        "clients": [],
        "keys": [],
        "skip-next": []
    },
    "blocked": {
        "users": [],
        "clients": [],
        "keys": [
            "imdb://tt7441658"
        ],
        "skip-next": []
    },
    "clients": {},
    "mode": {}
}

Might want to turn on debug logging and try seeing if that gives any insight. Turn it on and do a fresh container start and watch both the loading process where the IDs are resolved to GUIDs and also during playback of an episode, feel free to post it and I can take a look
https://github.com/mdhiggins/PlexAutoSkip/wiki/Debug-Level-Logging

Here's the debug log.
2024-11-12 21:12:44 - __main__ - INFO - /usr/local/pas/venv/bin/python3 2024-11-12 21:12:44 - __main__ - INFO - Loading config file /usr/local/pas/config/config.ini. 2024-11-12 21:12:44 - __main__ - ERROR - Found custom file /usr/local/pas/config/custom.json but failed to load, using defaults Traceback (most recent call last):   File "/usr/local/pas/resources/settings.py", line 243, in loadCustom     data = json.load(f)   File "/usr/lib/python3.10/json/__init__.py", line 293, in load     return loads(fp.read(),   File "/usr/lib/python3.10/json/__init__.py", line 346, in loads     return _default_decoder.decode(s)   File "/usr/lib/python3.10/json/decoder.py", line 337, in decode     obj, end = self.raw_decode(s, idx=_w(s, 0).end())   File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode     obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 10 column 5 (char 116) 2024-11-12 21:12:44 - __main__ - INFO - Loading custom JSON file /usr/local/pas/config/custom.json 2024-11-12 21:12:44 - __main__ - INFO - Connecting to Plex server... 2024-11-12 21:13:15 - __main__ - INFO - Connected to Plex server <deleted> using plex.tv account 2024-11-12 21:13:15 - __main__ - INFO - Skipper initiated and ready 2024-11-12 21:13:15 - websocket - INFO - Websocket connected 2024-11-12 21:14:21 - __main__ - INFO - Session 9 [809709] (Black Clover s01e35 - The Light of Judgment) <deleted>|1e0d551a9dtxtjtug1ri9ryr shares player (1e0d551a9dtxtjtug1ri9ryr) with new session 10 [781206] (Black Clover s01e28 - The One I’ve Set My Heart On) <deleted>|1e0d551a9dtxtjtug1ri9ryr, deleting old session 9 2024-11-12 21:14:24 - __main__ - INFO - Found skippable marker intro for media 10 [781206] (Black Clover s01e28 - The One I’ve Set My Heart On) <deleted>|1e0d551a9dtxtjtug1ri9ryr with range 1485(+3000)-28811(+1000) and viewOffset 3486

Looks like its failing to load your JSON file and gives you a clear reason why, just gotta fix that
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 10 column 5 (char 116)

Thanks it looks like I had an extra comma on row 9. It's working now.


Backend administration tools for registry

We should include a few administration tools for verifying registry backend data and overall health. How these will run and work is not important, but we need to do the following:

Scan and read blob data, verifying that blobs store the data that they declare is contained.
Scan and traverse various data links, ensuring integrity amongst the links.
Scan upload directories and delete uploads that are old or abandoned.
An fs cli tool that let's one list and explore the backend, as seen by the registry.

These might be best a crontab jobs or backend registry jobs that just run as part of the app. Some are data intensive (such as data verification), so those would need to be carefully coordinated.

I had a FUSE module for docker-registry, which allows me to mount registry fs in Linux. Could it be usefull in distribution?

I don't see why we couldn't have a fuse server that exposes the StorageDriver layout, although we may only take the contribution in Go. Either way, it would be a great addition to this tool.


How to identify all ports are connected or not

I want to show an error if the nodes are not connected

is it possible?

It is possible.
You can get the information of the nodes. With: getNodeFromId(id)  here you can see if there are connections or not.
It could also help you detect when there are new connections or they are deleted with the events: connectionCreated and connectionRemoved


Grouping of inputs in Deployment Azure Resource Groups Task.

Grouping of inputs in Deployment Azure Resource Groups Task.
Introducing the visibility rules for groups

Hi @hililh, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Himanshu Lilha). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


joyent/node-krill#5: add support for getting a map of field names to values

This is a work in progress. If that looks good, then I imagine we'll want to bump at least the minor version number in package.json at some point

I think this is okay, but I don't understand what it's useful for.  Can you explain how it would be used?

@davepacheco I tried to describe my use case in the corresponding issue:

[It] allow[s] me to iterate through this map, get the validation function corresponding to each field name, and call that validation function for each value used for that field in the input predicate.

Does that clarify the use case I have for it?

@davepacheco Added a new separate commit according to your code review comments.

Looks good!  Thanks.  Assuming it's make prepush clean, feel free to integrate and publish.  (I can also take care of that.)

Merged with 7c5efeaa13ec5dcdd63aaf198bf6d8623ce27a4d, thank you!


Add validation for workers names in wrangler init and wrangler generate

Closes #470
Contains unit tests; has been tested with wrangler init and wrangler generate.
Also contains minor edits to binding names validation for consistency.

i think we should actually also call this from the validate_target function on other wrangler commands, especially publish.


issue reporter authentication problems with github

Type: Bug
I was unable to  use the "Preview on GitHub" button, and thus to submit a bug, before logging in to github independently.  I worked around it by logging in to github in my browser before hitting the Preview button.  Then I could submit the bug.
This may be a bit unclear without the specifics, which follow.

Start VSCode, select Help |  Report an Issue
Fill in the window that popped up, selecting Bug Report, filed on VSCode.
Hit the "Preview on GitHub" button on the bottom right of that window.
A new tab opened in my browser (FireFox) asking me to login to github.
Filled in my account name (not an email address) and password and hit login.
Immediately this moved me to a page saying I was unable to login because of authentication problems.  I don't recall the exact text.
Shortly thereafter I got an email from github saying
A sign in attempt requires further verification because we did not recognize your device. To complete the sign in, enter the verification code on the unrecognized device.
Device: Firefox on Windows
Verification code: 199999
but there was nowhere to enter that code.  The page did mention trying to refresh it, but that didn't help.
I tried a fresh login, directly in the browser, to github using my account name and the verification code.  This failed too.

I tried several times, always with the same result.
Finally,
9.  Login to github in the browser--not initiated from the Issue Reporter.
10. This failed too, but it left me on a page for me to enter my verification code.
11. Received another verification code by email and entered it in the form.
12. This logged me in.
13. Then I hit "Preview on GitHub" in the Issue Reporter window.  This created an issue in github and left me to finish the submission.  There was no login step at all.
One way of putting the problem is that when additional authentication is required the VSCode submission should leave you on a page for entry of the extra verification code, like step 10.  But it doesn't (step 6).
VS Code version: Code 1.80.0 (660393deaaa6d1996740ff4880f1bad43768c814, 2023-07-04T15:06:02.407Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz (16 x 2904)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
31.74GB (12.93GB free)

Process Argv
--crash-reporter-id 4f7bdb67-6d34-46d0-bf6e-0bea9483decf

Screen Reader
no

VM
0%

Extensions (17)

Extension
Author (truncated)
Version

markdown-checkbox
bie
0.4.0

data-workspace-vscode
ms-
0.5.0

mssql
ms-
1.19.1

sql-bindings-vscode
ms-
0.4.0

sql-database-projects-vscode
ms-
1.1.1

isort
ms-
2023.10.0

python
ms-
2023.12.0

vscode-pylance
ms-
2023.7.10

jupyter
ms-
2023.6.1001861915

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

live-server
ms-
0.4.9

powershell
ms-
2023.6.0

markdown-preview-enhanced
shd
0.6.8

markdown-all-in-one
yzh
3.5.1

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30784847
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30610679
2e4cg342:30602488
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
03d35959:30757346
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30771522
hideindicator:30785051
pythongtdpath:30769146
i26e3531:30780429
pythonnosmt12:30779714
pythonidxpt:30784022
pythonnoceb:30776495
h7j2d465:30786200

This seems like it's a GitHub issue more than a VS Code issue... the issue here is that GitHub doesn't seem to handle 2FA well while you are trying to open an issue. I would recommend opening an issue on GitHub via GitHub Support: https://support.github.com/features/authentication
I'm not sure if this is the best link since I don't work at GitHub... but it seems like a good start.

VS Code has an issue reporting flow that doesn't work in some cases.  To me, that's a VS Code issue; if github is broken in some way then VSCode needs at least a work-around, if only a message describing some other way to do it.
I know neither GitHub's API's nor how VSCode is using them.  Someone who does, and is confident that VSCode is using them properly, should submit a bug if appropriate.  That person is not me.


Filtering

As discussed in #135, we would like to have the ability to filter/smooth any image (e.g. B1map or B0map).
As part of adding a new model, this is the 1st step, getting it approved by the team: @agahkarakuzu @mathieuboudreau!
The suggestion is:

to have an abstract FilterClass, whose methods/properties can be inherited by any Model wishing to use that functionality (e.g. B1map inherits from AbstractModel and FilterClass)
add a filter_map Model that inherits from AbstractModel and FilterClass (FilterClass cannot be itself a model due to inheritance issues)
add the FilterClass to all B1mapping and B0mapping models for now. Will require some extra handling for other models if there's overlap (i.e. for example, the parent class' buttons override those of the child class)
available filtering/smoothing options

spline (2D, 3D)
gaussian (2D, 3D)
polynomial (2D, (3D in development))
media (2D, 3D)

Checklist of wiki guidelines that I still need to take care of:

[ ] 2. help commands
[ ] 3. link to sample data
[ ] 7. control batch generation
[ ] 8. control GUI
[ ] 9. save static object

I'm currently on the 'b1_filter' branch if you want to take a look.

@ileppe if you have completed this list, can you cross out the items and close this issue (#317)? Thanks 🎆


Add MIT license to allow the usage of this projects

Hey,
i came across your project. Thank you to provide this definitions.
Sadly i can`t discover a LICENSE file.
Without a license it makes it hart to use it for other purposes.
This pull request adds the MIT License to this project.
Information about this license can be found at the links:

https://en.wikipedia.org/wiki/MIT_License
http://choosealicense.com/licenses/mit/

If you favor another license for your projects please reject this PR and add one.
If you are not fimilar with licenses, maybe http://choosealicense.com/ is helpful.

@andygrunwald Looks good, thank you so much for this!


Fix raise

To fix #387 and #455 properly, we should defer to future.utils.raise_() if the type of V in raise E, V[, T] cannot be inferred.

Thanks for doing this!  Looks like there's a couple related test failures: test_chained_exceptions_stacktrace and test_single_exception_stacktrace.  Could you take a look at those?

These are unrelated... Merging, thanks!


Satisfiable logic broken?

I have a composer.json file with the following content:
"require": {
    "npm-asset/npmconf": "2.1.2"
}

I also have a package.json with the equivalent content.
When I run npm install this is the output that I get:
<EMAIL_ADDRESS>node_modules/npmconf
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS>
But when I run composer install I see this:
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for npm-asset/npmconf 2.1.2 -> satisfiable by npm-asset/npmconf[2.1.2].
    - npm-asset/npmconf 2.1.2 requires npm-asset/config-chain ~1.1.8 -> satisfiable by npm-    asset/config-chain[1.1.8, 1.1.9].
    - npm-asset/config-chain 1.1.8 requires npm-asset/ini 1 -> satisfiable by npm-asset/ini[1.0.0].
    - npm-asset/config-chain 1.1.9 requires npm-asset/ini 1 -> satisfiable by npm-asset/ini[1.0.0].
    - Conclusion: don't install npm-asset/ini 1.0.0

Composer realizes that it can install ini v1.0.0 (instead of 1), but it doesn't do it. Why is that?
NOTE: This is the output after applying my last patch.

Also, I'm not really sure why NPM is installing ini 1.3.3, while Composer is targeting for ini 1.0.0. Any ideas @francoispluchino ?

Ok, I get it. config-chain requires "ini": "1". NPM treats that as any version starting with 1 as you can see here.
So this is another bug. The plugin should tell Composer that 1 is satisfiable by any version starting with 1.
Let me see if I can get it working.

Got to the bottom of the issue. PR https://github.com/francoispluchino/composer-asset-plugin/pull/123 is fixing this

There is seems that a conversion problem is present for the version 1, because Composer and NPM not interpret this value in the same way.

@francoispluchino Yes, indeed. That's why I made #123 which fixes that issue. Please review and merge if you don't have any objections for the fix :)

Ok, I see your PR tomorrow.

Can be closed by #123.


fix: nitro fetch method uppercase type error

🔗 Linked issue

❓ Type of change

[ ] 📖 Documentation (updates to the documentation or readme)
[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
In nuxt, useFetch with specifying uppercase method will cause a type issue, which will infer all the methods combined res data, not the specified method route res data.
see more

📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

Reviewing, this doesn't seem to resolve the issue when made within a Nuxt project.
Is there a chance you could add some type tests here within Nitro?

Thanks again for your pull request @Gypsophyllite. Closing this for maintenance since seems not working and we need a reproduction.


New-RunAsAccount.ps1 - Updated version using Az modules

Hello,
The script "New-RunAsAccount.ps1" mentioned in the documentation uses AzureRM modules. Do you have an updated version of the script using the Az modules?
I tried to update it but received the error message below:

Updated version script:

`#Requires -RunAsAdministrator
Param (
[Parameter(Mandatory = $true)]
[String] $ResourceGroup,
[Parameter(Mandatory = $true)]
[String] $AutomationAccountName,

[Parameter(Mandatory = $true)]
[String] $ApplicationDisplayName,

[Parameter(Mandatory = $true)]
[String] $SubscriptionId,

[Parameter(Mandatory = $true)]
[Boolean] $CreateClassicRunAsAccount,

[Parameter(Mandatory = $true)]
[String] $SelfSignedCertPlainPassword,

[Parameter(Mandatory = $false)]
[string] $EnterpriseCertPathForRunAsAccount,

[Parameter(Mandatory = $false)]
[String] $EnterpriseCertPlainPasswordForRunAsAccount,

[Parameter(Mandatory = $false)]
[String] $EnterpriseCertPathForClassicRunAsAccount,

[Parameter(Mandatory = $false)]
[String] $EnterpriseCertPlainPasswordForClassicRunAsAccount,

[Parameter(Mandatory = $false)]
[ValidateSet("AzureCloud", "AzureUSGovernment")]
[string]$EnvironmentName = "AzureCloud",

[Parameter(Mandatory = $false)]
[int] $SelfSignedCertNoOfMonthsUntilExpired = 12

)
function CreateSelfSignedCertificate([string] $certificateName, [string] $selfSignedCertPlainPassword,
[string] $certPath, [string] $certPathCer, [string] $selfSignedCertNoOfMonthsUntilExpired ) {
$Cert = New-SelfSignedCertificate -DnsName $certificateName -CertStoreLocation cert:\LocalMachine\My         -KeyExportPolicy Exportable -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider"
-NotAfter (Get-Date).AddMonths($selfSignedCertNoOfMonthsUntilExpired) -HashAlgorithm SHA256
$CertPassword = ConvertTo-SecureString $selfSignedCertPlainPassword -AsPlainText -Force
Export-PfxCertificate -Cert ("Cert:\localmachine\my\" + $Cert.Thumbprint) -FilePath $certPath -Password $CertPassword -Force | Write-Verbose
Export-Certificate -Cert ("Cert:\localmachine\my\" + $Cert.Thumbprint) -FilePath $certPathCer -Type CERT | Write-Verbose

}
function CreateServicePrincipal([System.Security.Cryptography.X509Certificates.X509Certificate2] $PfxCert, [string] $applicationDisplayName) {
$keyValue = [System.Convert]::ToBase64String($PfxCert.GetRawCertData())
$keyId = (New-Guid).Guid
# Create an Azure AD application, AD App Credential, AD ServicePrincipal

# Requires Application Developer Role, but works with Application administrator or GLOBAL ADMIN
$Application = New-AzADApplication -DisplayName $ApplicationDisplayName -HomePage ("http://" + $applicationDisplayName) -IdentifierUris ("http://" + $keyId)
# Requires Application administrator or GLOBAL ADMIN
$ApplicationCredential = New-AzADAppCredential -ApplicationId $Application.ApplicationId -CertValue $keyValue -StartDate $PfxCert.NotBefore -EndDate $PfxCert.NotAfter
# Requires Application administrator or GLOBAL ADMIN
$ServicePrincipal = New-AzADServicePrincipal -ApplicationId $Application.ApplicationId
$GetServicePrincipal = Get-AzADServicePrincipal -ObjectId $ServicePrincipal.Id

# Sleep here for a few seconds to allow the service principal application to become active (ordinarily takes a few seconds)
Sleep -s 15
# Requires User Access Administrator or Owner.
$NewRole = New-AzRoleAssignment -RoleDefinitionName Contributor -ServicePrincipalName $Application.ApplicationId -ErrorAction SilentlyContinue
$Retries = 0;
While ($NewRole -eq $null -and $Retries -le 6) {
    Sleep -s 10
    New-AzRoleAssignment -RoleDefinitionName Contributor -ServicePrincipalName $Application.ApplicationId | Write-Verbose -ErrorAction SilentlyContinue
    $NewRole = Get-AzRoleAssignment -ServicePrincipalName $Application.ApplicationId -ErrorAction SilentlyContinue
    $Retries++;
}
return $Application.ApplicationId.ToString();

}
function CreateAutomationCertificateAsset ([string] $resourceGroup, [string] $automationAccountName, [string] $certifcateAssetName, [string] $certPath, [string] $certPlainPassword, [Boolean] $Exportable) {
$CertPassword = ConvertTo-SecureString $certPlainPassword -AsPlainText -Force
Remove-AzAutomationCertificate -ResourceGroupName $resourceGroup -AutomationAccountName $automationAccountName -Name $certifcateAssetName -ErrorAction SilentlyContinue
New-AzAutomationCertificate -ResourceGroupName $resourceGroup -AutomationAccountName $automationAccountName -Path $certPath -Name $certifcateAssetName -Password $CertPassword -Exportable:$Exportable  | write-verbose
}
function CreateAutomationConnectionAsset ([string] $resourceGroup, [string] $automationAccountName, [string] $connectionAssetName, [string] $connectionTypeName, [System.Collections.Hashtable] $connectionFieldValues ) {
Remove-AzAutomationConnection -ResourceGroupName $resourceGroup -AutomationAccountName $automationAccountName -Name $connectionAssetName -Force -ErrorAction SilentlyContinue
New-AzAutomationConnection -ResourceGroupName $ResourceGroup -AutomationAccountName $automationAccountName -Name $connectionAssetName -ConnectionTypeName $connectionTypeName -ConnectionFieldValues $connectionFieldValues
}
Import-Module Az.Profile
Import-Module Az.Resources
$AureRmProfileVersion = (Get-Module Az.Profile).Version
if (!(($AzProfileVersion.Major -ge 3 -and $AzProfileVersion.Minor -ge 4) -or ($AzProfileVersion.Major -gt 3))) {
Write-Error -Message "Please install the latest Azure PowerShell and retry. Relevant doc url : https://docs.microsoft.com/powershell/azureps-cmdlets-docs/ "
return
}
To use the new Az modules to create your Run As accounts, please uncomment the following lines and ensure you comment out the previous 8 lines that import the Az modules to avoid any issues. To learn about about using Az modules in your Automation account see https://docs.microsoft.com/azure/automation/az-modules.
Import-Module Az.Automation
Enable-AzAlias
Connect-AzAccount -Environment $EnvironmentName
$Subscription = Get-AzSubscription -SubscriptionId $SubscriptionId
Create a Run As account by using a service principal
$CertifcateAssetName = "AzureRunAsCertificate"
$ConnectionAssetName = "AzureRunAsConnection"
$ConnectionTypeName = "AzureServicePrincipal"
if ($EnterpriseCertPathForRunAsAccount -and $EnterpriseCertPlainPasswordForRunAsAccount) {
$PfxCertPathForRunAsAccount = $EnterpriseCertPathForRunAsAccount
$PfxCertPlainPasswordForRunAsAccount = $EnterpriseCertPlainPasswordForRunAsAccount
}
else {
$CertificateName = $AutomationAccountName + $CertifcateAssetName
$PfxCertPathForRunAsAccount = Join-Path $env:TEMP ($CertificateName + ".pfx")
$PfxCertPlainPasswordForRunAsAccount = $SelfSignedCertPlainPassword
$CerCertPathForRunAsAccount = Join-Path $env:TEMP ($CertificateName + ".cer")
CreateSelfSignedCertificate $CertificateName $PfxCertPlainPasswordForRunAsAccount $PfxCertPathForRunAsAccount $CerCertPathForRunAsAccount $SelfSignedCertNoOfMonthsUntilExpired
}
Create a service principal
$PfxCert = New-Object -TypeName System.Security.Cryptography.X509Certificates.X509Certificate2 -ArgumentList @($PfxCertPathForRunAsAccount, $PfxCertPlainPasswordForRunAsAccount)
$ApplicationId = CreateServicePrincipal $PfxCert $ApplicationDisplayName
Create the Automation certificate asset
CreateAutomationCertificateAsset $ResourceGroup $AutomationAccountName $CertifcateAssetName $PfxCertPathForRunAsAccount $PfxCertPlainPasswordForRunAsAccount $true
Populate the ConnectionFieldValues
$SubscriptionInfo = Get-AzSubscription -SubscriptionId $SubscriptionId
$TenantID = $SubscriptionInfo | Select TenantId -First 1
$Thumbprint = $PfxCert.Thumbprint
$ConnectionFieldValues = @{"ApplicationId" = $ApplicationId; "TenantId" = $TenantID.TenantId; "CertificateThumbprint" = $Thumbprint; "SubscriptionId" = $SubscriptionId}
Create an Automation connection asset named AzureRunAsConnection in the Automation account. This connection uses the service principal.
CreateAutomationConnectionAsset $ResourceGroup $AutomationAccountName $ConnectionAssetName $ConnectionTypeName $ConnectionFieldValues
if ($CreateClassicRunAsAccount) {
# Create a Run As account by using a service principal
$ClassicRunAsAccountCertifcateAssetName = "AzureClassicRunAsCertificate"
$ClassicRunAsAccountConnectionAssetName = "AzureClassicRunAsConnection"
$ClassicRunAsAccountConnectionTypeName = "AzureClassicCertificate "
$UploadMessage = "Please upload the .cer format of #CERT# to the Management store by following the steps below." + [Environment]::NewLine +
"Log in to the Microsoft Azure portal (https://portal.azure.com) and select Subscriptions -> Management Certificates." + [Environment]::NewLine +
"Then click Upload and upload the .cer format of #CERT#"
if ($EnterpriseCertPathForClassicRunAsAccount -and $EnterpriseCertPlainPasswordForClassicRunAsAccount ) {
    $PfxCertPathForClassicRunAsAccount = $EnterpriseCertPathForClassicRunAsAccount
    $PfxCertPlainPasswordForClassicRunAsAccount = $EnterpriseCertPlainPasswordForClassicRunAsAccount
    $UploadMessage = $UploadMessage.Replace("#CERT#", $PfxCertPathForClassicRunAsAccount)
}
else {
    $ClassicRunAsAccountCertificateName = $AutomationAccountName + $ClassicRunAsAccountCertifcateAssetName
    $PfxCertPathForClassicRunAsAccount = Join-Path $env:TEMP ($ClassicRunAsAccountCertificateName + ".pfx")
    $PfxCertPlainPasswordForClassicRunAsAccount = $SelfSignedCertPlainPassword
    $CerCertPathForClassicRunAsAccount = Join-Path $env:TEMP ($ClassicRunAsAccountCertificateName + ".cer")
    $UploadMessage = $UploadMessage.Replace("#CERT#", $CerCertPathForClassicRunAsAccount)
    CreateSelfSignedCertificate $ClassicRunAsAccountCertificateName $PfxCertPlainPasswordForClassicRunAsAccount $PfxCertPathForClassicRunAsAccount $CerCertPathForClassicRunAsAccount $SelfSignedCertNoOfMonthsUntilExpired
}

# Create the Automation certificate asset
CreateAutomationCertificateAsset $ResourceGroup $AutomationAccountName $ClassicRunAsAccountCertifcateAssetName $PfxCertPathForClassicRunAsAccount $PfxCertPlainPasswordForClassicRunAsAccount $false

# Populate the ConnectionFieldValues
$SubscriptionName = $subscription.Subscription.Name
$ClassicRunAsAccountConnectionFieldValues = @{"SubscriptionName" = $SubscriptionName; "SubscriptionId" = $SubscriptionId; "CertificateAssetName" = $ClassicRunAsAccountCertifcateAssetName}

# Create an Automation connection asset named AzureRunAsConnection in the Automation account. This connection uses the service principal.
CreateAutomationConnectionAsset $ResourceGroup $AutomationAccountName $ClassicRunAsAccountConnectionAssetName $ClassicRunAsAccountConnectionTypeName   $ClassicRunAsAccountConnectionFieldValues

Write-Host -ForegroundColor red       $UploadMessage

}`
Best regards,
Cristina

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

ID: 56e2500f-e1f5-bc87-6e5c-f41b59265049
Version Independent ID: d212be48-7d05-847d-3045-cea82e6ba603
Content: Manage Azure Automation Run As accounts
Content Source: articles/automation/manage-runas-account.md
Service: automation
Sub-service: shared-capabilities
GitHub Login: @MGoedtel
Microsoft Alias: magoedte

@crisansou Thank you for reaching out to us on this, our team will further look into it and get back to you at the earliest.

@crisansou Az.Profile was renamed to Az.Accounts back then in Dec 2018. If you take a closer look at the code it actually says:

To use the new Az modules to create your Run As accounts, please uncomment the following lines and ensure you comment out the previous 8 lines that import the AzureRM modules to avoid any issues.

You shouldn't be in trouble after leaving the mentioned lines out and uncommenting the following:
# Import-Module Az.Automation
# Enable-AzureRmAlias

Enable-AzRmAlias does not exists, so do not change that. The Enable-AzureRmAlias cmdlet is part of Az.Accounts and enables AzureRm prefix aliases for Az modules.
Keep in mind that this script requires elevation.

@crisansou Az.Profile was renamed to Az.Accounts back then in Dec 2018. If you take a closer look at the code it actually says:

To use the new Az modules to create your Run As accounts, please uncomment the following lines and ensure you comment out the previous 8 lines that import the AzureRM modules to avoid any issues.

You shouldn't be in trouble after leaving the mentioned lines out and uncommenting the following:
# Import-Module Az.Automation
# Enable-AzureRmAlias

Enable-AzAlias does not exists, so do not change that. The Enable-AzureRmAlias cmdlet is part of Az.Accounts and enables AzureRm prefix aliases for Az modules.
Keep in mind that this script requires elevation.

Thanks for the comments, I already adjusted the script, but I found other problems like variables never used (eg. $ AureRmProfileVersion) and password parameter with type "String" but it should be "SecureString". I'll wait for the script to be updated by Microsoft.

Hey @MGoedtel , it appears the embedded script needs revision. Should I reassign this to you or the feature owner?

@femsulu - Please assign to the feature owner and they can follow-up with us once they review the issues with script logic and remediate.  They can work with us to address via documentation post revisions to the script.  Thanks.

@andremarques023  - we are tracking + working internally to update this script and we will push out an update once the script has been revised, peer reviewed and finalized.
@MGoedtel  - since the script is buggy in it's current state, can we remove temporarily?
Closing this issue for now but will update with a PR request once the script is ready for publication.
Cheers.

Hi,
The line
"$AureRmProfileVersion = (Get-Module Az.Profile).Version"
has a typo - the parameter is "Aure" instead of "Azure", so subsequent checks are failing because they are technically using a different variable:
"if (!(($AzureRmProfileVersion.Major -ge 3"

@femsulu - Yes, I was planning on creating a PR next week to remove this script and the section temporarily until engineering addresses the issues in the script.  In the meantime, customers can go through the portal to create a Run As account.  I also need to review the script to automate renewal of the Run As certificates, as it hasn't been updated.


Serialization Error: Unable to Serialize List in Stream Response

Describe the bug
When attempting to listen to a stream from the client, an internal server error occurs related to serialization. The error message indicates that the Serverpod serialization manager cannot find the class name for List<HistoryEntity>.
To Reproduce
Steps to reproduce the behavior:

Implement the HistoryEndpoint with the snapshot method as shown below.
Implement the HistoryPrismaRepository with the snapshot method as provided.
From the client, subscribe to the snapshot stream.
Observe the internal server error in the server logs.

Endpoint Code:
class HistoryEndpoint extends Endpoint {
  Stream<List<HistoryEntity>> snapshot(Session session, HistoryGetPayload payload) {
    return HistoryPrismaRepository.snapshot(
      payload,
    );
  }
}

Repository Code:
abstract class HistoryPrismaRepository {
  static Stream<List<HistoryEntity>> snapshot(HistoryGetPayload payload) {
    // Create a StreamController
    late StreamController<List<HistoryEntity>> controller;
    DateTime? lastUpdate;
    bool isFetching = false;

    void startFetching() async {
      // This function is responsible for fetching data and adding it to the stream
      while (!controller.isClosed && controller.hasListener && !controller.isPaused) {
        if (isFetching) {
          // Prevent fetching if the previous fetch hasn't completed
          await Future.delayed(const Duration(milliseconds: 100));
          continue;
        }
        isFetching = true;

        try {
          if (lastUpdate != null) {
            // Check for new data only after a certain interval
            await Future.delayed(const Duration(seconds: 2));
            var needUpdate =
                await hasNewData(payload: payload, lastUpdate: lastUpdate!);
            if (!needUpdate) {
              isFetching = false;
              continue;
            }
          }

          // Fetching new data
          lastUpdate = DateTime.now();
          var histories = await get(payload);
          controller.add(histories); // Adding fetched data to the stream
        } catch (e) {
          controller.addError(e); // Adding error to the stream
        } finally {
          isFetching = false;
        }
      }
    }

    void onListen() {
      startFetching(); // Start fetching data when stream subscription begins
    }

    void onCancel() async {
      controller
          .close(); // Properly close the controller when the stream is cancelled
    }

    // Initializing the StreamController
    controller = StreamController<List<HistoryEntity>>(
      onListen: onListen,
      onCancel: onCancel,
    );

    return controller.stream;
  }
}

Error Message:
2024-10-01 15:25:20.948446Z Internal server error. Zoned exception.
Invalid argument(s): Could not find class name for List<HistoryEntity> in serialization.
#0      SerializationManager.wrapWithClassName (package:serverpod_serialization/src/serialization.dart:184:7)
#1      MethodStreamMessage.buildMessage (package:serverpod_serialization/src/websocket_messages.dart:444:32)
#2      _MethodStreamManager._createOutputController.<anonymous closure> (package:serverpod/src/server/websocket_request_handlers/method_websocket_request_handler.dart:473:46)
#3      _rootRunUnary (dart:async/zone.dart:1407:47)
#4      _CustomZone.runUnary (dart:async/zone.dart:1308:19)
#5      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217:7)
#6      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:365:11)
#7      _DelayedData.perform (dart:async/stream_impl.dart:541:14)
#8      _PendingEvents.handleNext (dart:async/stream_impl.dart:646:11)
#9      _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:617:7)
#10     _rootRun (dart:async/zone.dart:1391:47)
#11     _CustomZone.run (dart:async/zone.dart:1301:19)
#12     _CustomZone.runGuarded (dart:async/zone.dart:1209:7)
#13     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249:23)
#14     _rootRun (dart:async/zone.dart:1399:13)
#15     _CustomZone.run (dart:async/zone.dart:1301:19)
#16     _CustomZone.runGuarded (dart:async/zone.dart:1209:7)
#17     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1249:23)
#18     _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
#19     _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
#20     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#21     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:185:5)

Expected behavior
The client should successfully listen to the snapshot stream and receive updates of type List<HistoryEntity> without encountering serialization errors.
Serverpod versions

CLI Version: 2.1.2
Library version: 2.1.2

Platform information

Server: Docker
Client Device: web browser
Operating System: Windows 11

Thank you for the detailed report @AndryHTC!
We currently do not have support for nested structures in the streaming interface.
That is Map, List or Set.
Workaround
To get around this limitation, define a Serverpod model that only contains a list of your custom model and send that model over the stream instead.
class: HistorySnapshot
fields:
  snapshot: List<HistoryEntity>

The serialization layer will be able to serialize The HistorySnapshot model.
The reason this is required is that we need to some meta information to know how to unpack the message when deserializing the message.
Feature request
If you would like to have this feature in Serverpod, please convert this to a feature request.
Endpoint analyzer fix
We should probably add some validation that informs you that nested structures are not supported in the streaming interface.

OK! I'll try it soon, thank you very much.

Converted into a Feature Request here https://github.com/serverpod/serverpod/issues/2798


Milestone v0.7.0 planning

Comment with the GitHub Issue we should work on in preparation for the next milestone (December 2020 through January 2021).
These will be bundled in version 0.7 of OSM.

https://github.com/openservicemesh/osm/issues/1388

https://github.com/openservicemesh/osm/issues/1521

https://github.com/openservicemesh/osm/issues/1937

https://github.com/openservicemesh/osm/issues/2146

#1916 #1723 perf framework + perf assessment

#2167 document process related to cutting a release candidate build and release
#2146 e2e test for osm-controller pod restart e2e
#2145 [OSM-Restart] Sidecar Envoys are not able to connect with OSM after osm controller was restarted.

2126 Document the statelessness of OSM Controller

Final set of GitHub Issues committed for milestone v0.7

Issue
Title
T-Shirt Size
(estimated ideal days of work)

#902
Implement minimum set of Prometheus metrics for OSM Controller pod
L
5

#1489
Improve test coverage (goal: 80%)
XL
10

#1521
Implement TCPRoute of SMI Spec
XL
10

#1658
Destination endpoints for a service that maps to multiple ServiceAccounts doesn't honor TrafficTarget policy
XL
10

#1678
Create documentation site: openservicemesh.io/docs
XS
0.5

#1720
Implement OSM upgrade CLI command
XL
10

#1723
Measure performance and scalability of OSM control plane
L
5

#1788
Validating webhook to validate user-provided values
M
3

#1797
Image tag should be immutable as part of release process
M
3

#1818
Join Envoy security disclosure mailing list
XS
0.5

#1891
A destination should validate that the request is coming from a client/Pod that is allowed by validating a service account referenced in the certificate presented by the client.
L
5

#1892
Design a high level plan for multicluster with osm
XL
10

#1895
Audit error level and above logs to ensure sensitive information is not logged
M
3

#1907
Add helm uninstall to e2e
S
1

#1912
Define what stable means for the project
M
3

#1916
create a framework for measuring performance and scalability of an osm control plane
XXL
20

#1937
OSM CLI emits validation error when using --osm-namespace option
L
5

#1958
perf bottleneck at 200 pod scale
XL
10

#1960
CLI installed with Homebrew is missing version information
M
3

#1979
Apex service of traffic split selecting a pod is programmed as a cluster by RDS
L
5

#2034
refactor how inbound and outbound VirtualHosts are programmed on Envoy proxies
L
5

#2056
Add unit test to test entire envoy listener configuration
L
5

#2064
In permissive traffic mode (allow-all) only pods with services can communicate; not individual pods w/ service
L
5

#2100
Make OSM control plane instances upgradeable
L
5

#2121
Manual demo fails with ADS error when traffic split weight is set to 0
S
1

#2125
Implement OSM upgrade test scenarios
XL
10

#2126
Document the statelessness of OSM Controller
M
3

#2134
cluster_not_found occurs when multi services existing of one application
XL
10

#2145
[OSM-Restart] Sidecar Envoys are not able to connect with OSM after osm controller was restarted.
M
3

#2146
e2e test for osm-controller pod restart
M
3

#2151
Document how to upgrade OSM
S
1

#2167
document process related to cutting a release candidate
S
1

https://github.com/openservicemesh/osm/milestone/20

Closing as v0.7.0 is complete

Closing as v0.7.0 is complete


[Bug] Changing tab name in property pane does not reflect in entity explorer properly

When we change the tab name in the property pane, it does not reflect in entity explorer and it results in the error "already exists" error when changing in the entity explorer

Duplicate of #2037


Fix xing share url

Resolved #249
Changed the URL of Xing to the new format.

Hello @talkor,
Thank you for your contribution, the change is tagged in the latest version.


Miscellaneous small viewer clean-up

Remove the typeof navigator-checks in the web/app_options.js file
Given that the Navigator interface has been available since "forever", please see https://developer.mozilla.org/en-US/docs/Web/API/Navigator#browser_compatibility, it's somewhat difficult to see why these checks are actually necessary since the viewer is only intended for usage in browsers.
Looking at the history of the code, this functionality was originally placed in the general src/shared/compatibility.js file which could thus run in e.g. worker-threads and Node.js environments (where the Navigator interface isn't available).

Change PasswordPrompt.close to an async method
This is consistent with the open method, and it actually ever so slightly reduces the size of the file.

/botio-linux preview

Thank you for improving this!


bug fix

What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
https://github.com/kmesh-net/kmesh/issues/470
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

But how does this fix record netcookie failed, which only has to do with conn_from_cni_sim_add

Because of this mistake, bf bytecode is messed up. I'll submit an issue to clear the bpf complie alarms  later.


Hit Image Border Detector

My Case
I implemented PhotoView widget within the PageView.builder and i wanted to proceed to next/previous image when the zoomed-in image hit the border. Currently, i took the value of position dx to make a condition to detect the case (using controller), but this is not practical because one swipe action returns multiple times of dx value and also different speed and distance of the swipe action has different number of occurrence of dx value.
Solution/Features that I wanted
Is there a way that I can detect when the image is panned to its border/end side?

The PhotoViewGallery does exactly that, you can see what we do on PhotoViewGestureRecognizer.


Map marker not draggable

I'm submitting a ...  (check one with "x")

[ ] question
[x] any problem or bug report

OS:  (check one with "x")

[x] Android
[ ] iOS
[ ] Browser

cordova information:  (run $> cordova plugin list)
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-googlemaps 2.7.1 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)
@ionic-native/core : "^5.33.1"
@ionic-native/google-maps : "^5.5.0"

Current behavior:
When I add a marker to the map, I am unable to drag the marker. I created a test project to reproduce the issue here and the problem still persists.
Expected behavior:
The marker should be draggable to any point on the map.

Put your finger on the marker 3 seconds

Thank you @wf9a5m75 , I didn't know this trick. Now it's working as expected.


Query not available

At present, we report nearly 20 billion data every day, but at present, queries are almost unavailable. Each query takes 200 seconds or even longer. Our storage backend is es. Is there a solution for this situation?

I suggest you look up some tuning guides for ES.

I suggest you look up some tuning guides for ES.

Is there any other recommended back-end storage? For example, time series database or list database?

The two main supported options are ES and Cassandra, there are other backends folks have added, but they aren't fully supported. You can also look into sampling to reduce your data set. If not, you can easily scale es much larger than 20b spans per day. As Yuri stated, you'll need tuning expertise for es which is a difficult problem to solve. This is actually why my company was founded. :)

After some consideration, we plan to migrate to CK to see if our problem can be solved. If so, we will provide a pr

The two main supported options are ES and Cassandra, there are other backends folks have added, but they aren't fully supported. You can also look into sampling to reduce your data set. If not, you can easily scale es much larger than 20b spans per day. As Yuri stated, you'll need tuning expertise for es which is a difficult problem to solve. This is actually why my company was founded. :)

After some consideration, we plan to migrate to CK to see if our problem can be solved. If so, we will provide a pr

What is CK? ClickHouse?

Yet ClickHouse.
At present, we also consider writing an ES proxy based on Jaeger ingester query to store massive data. At present, our daily trace data has exceeded 50tb

I would look at sampling data in that case. ClickHouse will have scaling issues since it's a vertical scaling database, and handling that capacity will probably be a challenge with decent performance.
Another way to solve your issue is sharding in OpenSearch, but this would be a lot of work and most likely require some changes in the way Jaeger manages indices. We have built this at logz.io for our internal systems to handle the scale, but we do not use index management which is OSS today, we have our ILM system. We are moving to adopt a hybrid of OpenSearch ISM and our own with a shard balancer that we have written that will likely end up being upstream contribution for OpenSearch.

Yet ClickHouse. At present, we also consider writing an ES proxy based on Jaeger ingester query to store massive data. At present, our daily trace data has exceeded 50tb

Hello, thank you for your reply. When will opensearch meet the standards for putting into production? At present, I intend to add an ES layer based on Jaeger's existing architecture Proxy is based on consistent hash to aggregate and fragment to solve my current problem. But I still hope to adjust to opensearch or other storage in the future, because the cost of ES is too high.

We run OpenSearch in heavy production, as do loads of other people. Happy to offer advice around scaling it. There is a lot of work going on in the project to reduce the cost to operate, specifically supporting object storage and separating read from write nodes depending on your throughput requirements.


KAFKA-10131: Remove use_zk_connection flag

Eliminate "use_zk_connection" and similarly-named flags in public system test methods.  System tests should always use admin client when the broker supports it.  We do need to bootstrap ACLs prior to Kafka starting or prior to enabling the
authorizer, so the ability to force the use of a direct ZooKeeper connection rather than the admin client still exists for this case.
This PR also converts a few methods in kafka.py that were connecting directly to ZooKeeper for leader and replica/ISR lists
to use the admin client when the broker version supports it.  It also adds support for using the admin client when
performing "kafka-topics.sh ... -if-not-exists" which was added via KIP-604 in v2.6.

Thanks, @rondagostino .  Is there any way to avoid moving the acls stuff out of kafka_acls.py?  It seems nice to have some separation rather than having everything in kafka.py

@cmccabe Thanks for the review.  I put the logic back into kafka_acls.py.  Take a look and let me know if this is what you were thinking.

Looks good.  LGTM pending a system test run

@cmccabe There were several test failures at first, so I pushed commit https://github.com/apache/kafka/pull/9274/commits/fb417ade01613dad8fa2574c4ea3484f3fa4e65f to fix them and reran the full system test suite.  The results of this most recent run are at https://confluent-kafka-branch-builder-system-test-results.s3-us-west-2.amazonaws.com/2020-09-14--001.1600107441--rondagostino--KAFKA-10131--fb417ade0/report.txt:
====================================================================================================
SESSION REPORT (ALL TESTS)
ducktape version: 0.7.9
session_id:       2020-09-14--001
run time:         439 minutes 49.208 seconds
tests run:        684
passed:           513
failed:           1
ignored:          170
====================================================================================================

The one failure was due to an infrastructure issue:
test_id:    kafkatest.tests.connect.connect_distributed_test.ConnectDistributedTest.test_restart_failed_connector.connect_protocol=sessioned
status:     FAIL
run time:   8.720 seconds

    Unable to open channel.

LGTM.  Thanks, @rondagostino


Unable to Select All in check enabled table in Google App Script

Describe the bug
I follow the code from this video to create a sidebar in Google Sheets. It uses Google App Script and also Metro UI table component. After the sidebar loads, I couldn't select all rows. There is no issue if I change to earlier version of metro ui (v4.4.3)
To Reproduce
The html code (sidebar.html)
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <link rel="stylesheet" href="https://cdn.metroui.org.ua/v4/css/metro-all.min.css">

Hello, world!

        ID
        Name

        1
        Tiger Nixon

        2
        Ferris

The javascript code:
function loadSidebar() {
  const hs = HtmlService.createTemplateFromFile("sidebar")
  const ho = hs.evaluate()

  const ui = SpreadsheetApp.getUi()
  ui.showSidebar(ho)
}

function createMenu() {
  const ui = SpreadsheetApp.getUi()
  const menu = ui.createMenu('Utilities')
  menu.addItem('Delete Worksheets', 'loadSidebar')
  menu.addToUi();
}

function onOpen() {
  createMenu()
}

Expected behavior
When select all is clicked, all of the checkboxes should be selected.
Screenshots
This is what happens when v4 was chosen in the html

This is what it is supposed to be. (using v4.4.3)

Desktop (please complete the following information):

OS: Windows
Browser: chrome
Metro Version: Latest (should be v4.5.0)

Additional context

I observe exactetly the same

I have the same problem with the latest version 4.5.0, but as @hashyaha notes, the previous version works just fine so I can work around the problem for now by including the older version:

I have the same problem in v4.5.1 but cannot downgrade because I just upgraded to get the fix for another bug.  Something in metro.min.js is throwing an undefined error...
TypeError: undefined is not an object (evaluating 'e.indexOf')