Add mechanism for reusable components

Fixes #117
Fixes #124
This PR does a couple of things:

Move reusable components into the top-level components directory
Add the ReusableComponentOp class which can load a reusable component based on its name
Build the component images as part of the release workflow

Let's see if the pipeline works on main :)


Active transition on hover

Hey, i have 3 svg and i want that the transition happens only when i hover the svg and stops on mouseleave.
Can you help me?
If its possible, I want that when I hover it again, the transition continues where it was before.
Thanks,
Sandrina Pereira

+1

Yo !
You've probably resolve your problem since June, but I've just red your answer and I'm currently using SVG-Morpheus on a "button hover effect".
Here is my codepen : http://codepen.io/wollsale/pen/mepREp
SVG

g#see
g#arrow

JAVSCRIPT

var myIcons
2 functions : morphIn & morphOut (250ms, no-rotation)
OnMouseEnter = morphIn
OnMouseLeave = morphOut

It's probably not the best way to use it, but it work perfectly for me,
Hope it will help you,
Alexis.

@wollsale Works like a charm! Thank you for providing the example dude!


AWS: Failed to establish a new connection: [Errno 111] Connection refused

Hello,
I am having some trouble running run.py in using AWS as the virtual environment. My Host machine is also an ubuntu machine hosted in an ec2 instance, but in a different region. Any help would be greatly appreciated. When I try to visit the URL on the browser I'm able to see the screenshot under the /screenshot route and also the launch URL works when visited from a browser (shows a 405  Method not Allowed)
This is the command I'm using to run:
python3 run.py --headless --observation_type screenshot --model gemini-1.5-flash --result_dir ./results

I have tried adding a delay before the /setup/launch endpoint is called, which seems to fix the error. Apparently, the endpoints are being called before the server setup is completed


Dan/2023/01/clean up global import pattern

Motivation
Hygiene.
Solution
Change global imports to named imports.
I ended up doing this mostly programmatically, so I might have been a bit overzealous.  I can see a rational mind objecting to importing by name in TokenTransferrer, for example.  But I think there's something really nice about having absolutely no global imports.

I'd like to break up ConsiderationConstants.sol into chunks in a followup PR, but I figured I'd check in here.

Codecov Report
Base: 99.20% // Head: 100.00% // Increases project coverage by +0.79% :tada:

Coverage data is based on head (75c481d) compared to base (f2fbca7).
Patch coverage: 100.00% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff             @@
##              1.2      #930      +/-   ##
===========================================
+ Coverage   99.20%   100.00%   +0.79%
===========================================
  Files          47        47
  Lines        2642      2428     -214
  Branches      390       352      -38
===========================================
- Hits         2621      2428     -193
+ Misses         21         0      -21

Flag
Coverage Δ

foundry
?

production
100.00% <100.00%> (ø)

reference
100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

contracts/Seaport.sol
100.00% <ø> (ø)

contracts/conduit/Conduit.sol
100.00% <ø> (ø)

contracts/lib/AmountDeriver.sol
100.00% <ø> (+4.34%)
:arrow_up:

contracts/lib/Assertions.sol
100.00% <ø> (ø)

contracts/lib/Consideration.sol
100.00% <ø> (ø)

contracts/lib/ConsiderationBase.sol
100.00% <ø> (+3.84%)
:arrow_up:

contracts/lib/ConsiderationDecoder.sol
100.00% <ø> (ø)

contracts/lib/ConsiderationErrors.sol
100.00% <ø> (ø)

contracts/lib/CounterManager.sol
100.00% <ø> (ø)

contracts/lib/CriteriaResolution.sol
100.00% <ø> (ø)

... and 57 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Help me W/ Macro Split Hotkeys

When i click on the hotkeys it only split once also how to make popsplit better i cant get popsplit

Duplicate of #389


gitextensions: checkver fails, file name format changed

gitextensions is failing on checking for updated version as the naming convention has changed.
I changed the checkver section to the following:

"checkver": {
    "github": "https://github.com/gitextensions/gitextensions",
    "regex": "v(?<version>[\\d.]+)/GitExtensions-Portable-(?<build>.*).zip"
},

Sorry but could anyone update for the new v4 version. Sorry I do not familiar with scoop rules, meta file


[Transaction Builder] Add support for polygon network

In order to support Polygon network (#2275), we added the config needed to make it work.

Tested here
https://pr2471--safereact.review.gnosisdev.com/polygon/app/#/safes/0x39A4D23652d40AF13812E1d01C4aF65559Dd6850/transactions
I tried minting NFT with this contract
0x55EC23Ae91F5631Ac66C3f11D32a0F67EF9d3670
Tried txs with these test contract
0x5A5922E9ef11157498Fa5325bc39E7a1Ba8c402D
0x9452fa9F1691d52299F077436559746D2e6Fa1ad
Looks good to  me

LGTM 👍

I assume this ticket went back for some concerns about the code.
I checked again as I did before and it still works fine for me. I'll pass it to QA done again


feat: add RequestOptions

Q
A

Bug fix?
no

New feature?
yes

BC breaks?
no

Related Issue
Fix #295

Describe your change
Add RequestOptions to all non-deprecated methods.
What problem is this fixing?
This adds the capability to override headers, URL parameters, and timeouts on a per-request basis.

Thank you for the quick implementation!


Crash in Windows if no audio sink "can't find requested audio endpoint"

Environment

OS: Win 11
Scrcpy version: 27
Installation method: Windows installer x64
Device model: Pixel 6 Pro
Android version: 15

Describe the bug
scrcpy exits shortly after launch if no audio sink on PC ?
ERROR: Could not open audio device: WASAPI can't find requested audio endpoint: Element not found. ERROR: Demuxer error
Is there a way to connect to some default sink that windows will redirect on connecting a bluetooth or other audio device?
In any event, per https://github.com/Genymobile/scrcpy/blob/master/doc/audio.md

If audio capture fails, then mirroring continues with video only (since audio is enabled by default, it is not acceptable to make scrcpy fail if it is not available)

… should probably apply equally at the renderer.

Have you tried with --no-audio? I just filled https://github.com/Genymobile/scrcpy/issues/5371.


Incorrect free space calculation with flex items in IE 11

If a flex contaner has an item bigger then flex-basis with non-zero flex-grow (e.g. flex: 1) and a free space to distribute (i.e. flex items is limited by property like max-width) and any justifying (or auto margin) different then flex-start, then it seems that in IE11 flex space which should be distributed between flex-grow items is also incorrectly adding up to free space, thus misplacing flex items.
Most reduced example:
.flex {
  display: flex;
  height: 25px;
  border: 1px solid #888;
  justify-content: center; /* could be "margin: auto"—doesn't matter */
}
.flex-item {
  flex: 1;
  max-width: 45%;
  background: lightblue;
}

which should be rendered like this:

is actually rendered like this in IE11:

As I said, bug presents when using properties like margin: auto or justify-content: space-around—anything that places elements different from flex-start.
The bug is present only in IE11 in any flex direction. IE10 doesn't have it, and it was fixed in Edge. It even doesn't show up in IE11 emulation mode in Edge.
There is no way to walkaround this bug, it can only be avoided by removing properties that causes it.

E.g. one can use flex-shrink instead of flex-grow. However, this effectively means one needs to explicitly set property like min-width since no auto min size can be used in IE (Flexbug #1).
The other option could be removing max-width to eliminate free space and align content inside flex items.
At last, to align to the right or bottom there could be used reversed flex-direction with reordering.

Thanks for such a detailed, well-documented bug report! :)
Since there's no workaround I'm going to close this issue, but hopefully just being listed here will help someone else.
If you find a workaround, please reopen.

Actually, I think I have found a workaround. I just had this problem and the same result can be achieved by using width and flex-shrink instead.
See http://codepen.io/tregusti/pen/apJVEd?editors=1100
It works in IE11, and other browsers.
Would you like a PR for it or do you prefer to handle it yourself @philipwalton?
PS. As a side note, why close the issue if there really is a bug? It is (was) unfortunate that there was no workaround, but it is still a bug that would be good to have documented among the other bugs in this excellent resource.

@tregusti this doesn't seem to solve the problem as it doesn't include flex-grow: 1 and it uses width instead of max-width.

I had the same issue. In additional to max-width need to use width: 100%.

I had a similar issue and I found I had two parent containers with display=flex. I only left the immediate parent container with display=flex.

I add a width property with the same value as the max-width: 45%; on the child item that should work fine
.flex-item {   flex: 1;   width: 45%;   max-width: 45%;   background: lightblue; }

The bug appears when you have extra size comparing to flex-basis, i.e. you has flex growing. When you set width: 45% you effectevely set flex-basis: 45%, so you're getting rid from flex growing.

@GreLI, thinking about this a bit more, I think @tregusti's solution might work after all (sorry if I prematurely dismissed it).
As far as I cal tell, your "grow" solution (flex: 1 0 0% + max-width: 45%) aims to get a width between 0 and 45%. However, it seems like you could get that same range with a "shrink" solution (flex: 0 1 45% + min-width: 0) and that does work.
Does this solve your use-case? Here's a demo: https://codepen.io/anon/pen/ZaPjRe

Yeah, it was the first option in my initial post:

E.g. one can use flex-shrink instead of flex-grow. However, this effectively means one needs to explicitly set property like min-width since no auto min size can be used in IE (Flexbug #1).

Sorry everyone for initially not seeing this. I added flexbug 17 to address this issue.

It's not accurate, the bug doesn't appear in IE10. Only in IE11 (and not Edge or Edge-as-IE11). IIRC, it applies to vertical axis with flex-direction: column as well.

Ahh, thanks! I've updated the README.


Malformed callback URL

  at IdentityModel.Client.AuthorizeResponse.ParseRaw () [0x000d3] in C:\local\identity\model\IdentityModel2\src\Client\Messages\AuthorizeResponse.cs:169
  at IdentityModel.Client.AuthorizeResponse..ctor (System.String raw) [0x00018] in C:\local\identity\model\IdentityModel2\src\Client\Messages\AuthorizeResponse.cs:23
  at IdentityModel.OidcClient.OidcClient+<ProcessResponseAsync>d__13.MoveNext () [0x000c7] in C:\local\identity\model\OidcClient2\src\OidcClient.cs:173
--- End of stack trace from previous location where exception was thrown ---

The code was working fine but now not.
I noticed this similar issue when I had upgraded below nugets to above 5.21 but
Microsoft.IdentityModel.Logging
Microsoft.IdentityModel.Tokens
System.IdentityModel.Tokens.Jwt

Pls not using latest IdentityModel(3.10.5) and IdentityModel.OidcClient(2.9.0) nugets.
Since I can not debug inside OidcClient.cs / AuthorizeResponse.cs of the nuget please help.

I have the same issue.
I'm using oidcclient to connet to https://sts.windows.net/common/v2.0/.well-known/openid-configuration
And the first qparams in response is this param
canary=UhMKSFtvW70PNDj3GGrL1NK5BpTxcNeiECbmvcQ7q4c=4.
From the code source AuthorizeResponse.cs:
                var parts = param.Split('=');

                if (parts.Length == 2)
                {
                    Values.Add(parts[0], parts[1]);
                }
                else
                {
                    throw new InvalidOperationException("Malformed callback URL.");
                }

but the parts.Length is equals to 3.
I think var parts = param.Split('='); should be changed to var parts = param.Split('=', 2);

Query string parameters must not contain = - it seems this canary parameters violates that.

ID Porten (Norway) for example - Only S256 is supported. https://translate.google.com/translate?hl=en&sl=auto&tl=en&u=https%3A%2F%2Fdifi.github.io%2Fidporten-oidc-dokumentasjon%2Foidc_auth_app.html&sandbox=1


Adding "" simbols on autocomplete?

When I used Sublime the Angular plugin autocompleted with the ="" simbols, so you would type <div ngi and picking the "ng-if" suggestion would insert <div ng-if="" and move the cursor between the ""
Is there a chance to add this to the plugin?

Good Idea. I guess it needs autocomplete-plus( #25 ). I will try to support it.

any news on this?


Can’t compile with space in path

After selecting a folder and hitting the build button the make command fails when there is spaces in the path. EX: “Executing task: usr/bin/make build —directory=/home/user/My Project With Space”

Hi, this is the expected behaviour. See


Abstract dataset

Description
To allow implementations of AbstractDataSet and AbstractVersionedDataSet to be shared with and used by non-Kedro users. Kedro issue #2409
Development notes

There are four commits:

patches necessary files from Kedro to kedro-datasets necessary to remove Kedro as a dependency for installation while keeping history.
changes imports from kedro.io.core to kedro_datasets.io.core in both kedro_datasets/ and tests/
changes requirements.txt to require cachetools~=5.3 instead of Kedro
Updates Release notes.

After updating imports to import from kedro-datasets instead of kedro pytest executed with no failures.
Checklist

[x] Opened this PR as a 'Draft Pull Request' if it is work-in-progress
[x] Updated the documentation to reflect the code changes
[x] Added a description of this change in the relevant RELEASE.md file
[x] Added Updated tests to cover my changes

Not sure what to do about the DCO Action required, I can't sign off on those commits as I'm obviously not the Author of those commits.

Thank you for your efforts @bpmeek! Closing this PR following the discussion on https://github.com/kedro-org/kedro/issues/2409 :)


add MicrosoftBotIdentifier and tests

Packages impacted by this PR
Communication - Shared
Issues associated with this PR
User Story 3112539: [SDK][Common][JS] As a developer I can identify if a user is a Teams User or Bot
Describe the problem that is addressed by this PR
Introducing MicrosoftBotIdentifier, which is a new type of CommunicationIdentifier.
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
Added test cases for creating new MicrosoftBotIdentifier and converting from and to RawId.
Provide a list of related PRs (if any)
https://github.com/Azure/azure-sdk-for-js/pull/24569
https://github.com/Azure/azure-sdk-for-net/pull/34032
Checklists

[x] Added impacted package name to the issue description
[ ] Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
[x] Added a changelog (if necessary)

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

/azp run python - azure-communication-identity - tests

/azp run python - azure-communication-chat - tests


[WFLY-15548] [WFLY-15446] transaction subsystem: jakarta namespance p…

https://issues.redhat.com/browse/WFLY-15548 (the transaction subsystem module)
https://issues.redhat.com/browse/WFLY-15446 (I think this issue is superfluous and I've asked on the issue for clarification)
WildFly Preview for the Jakarta namespace variant of the transaction subsystem module.
Remark: this PR also upgrades the narayana component for which I have raised a separate #14974

Superseded by #15171
This can be closed now.

Superseded by #15171


Pulling away from a wall should cancel the wall jump state

I will try to fix it, it should still keep the small delay that allows the wall jump for s brief moment after pulling away from the wall?

Iḿ already on it as I need to produce the first chapter asap, i need the player done for the course

It's an easy fix but it's a design issue - either we instantly drop from the wall if the player moves in the opposite direction, and make the wall jump work by not pressing a direction key or moving towards the wall, or we keep the timer to allow the player to do opposite direction + jump.

Now as Brad said, the ability to climb the wall goes against the core mechanics, as your tool to go up is the hook. So I think we can remove it.


'util' is defined but never used.

Codacy detected an issue:
Message: 'util' is defined but never used.
Occurred on:

Commit:  abe986e4c7797df88dcb3917684a8ec0dc506f8e
File:    lib/index.js
LineNum: 7
Code:    var util = require('util')

Currently on:

Commit:  0100456fe59caa8345fb36598a2127361fd67977
File:    lib/index.js
LineNum: 8

Close this as fixed?

@runderworld 👍


Filenames with square brackets fail to restore

redsnapper version: commit 7a785e24052556c829cc67305baa4b5fb1762a4a
tarsnap version: 1.0.39
Steps to reproduce
$ mkdir example
$ echo foo > example/foo\[bar\]baz
$ ls example/
foo[bar]baz
$ tarsnap -c -f example example/
$ tarsnap -t -f example
example/
example/foo[bar]baz
$ redsnapper example

Expected
example/foo[bar]baz to be extracted.
Actual
example/foo[bar]baz is not extracted, and instead an error message is printed:
tarsnap: example/foo[bar]baz: Not found in archive
tarsnap: Error exit delayed from previous errors.`

Hmm, as far as I can tell this is a tarsnap bug, but I found a workaround.

I filed an issue with Tarsnap.  I'll wait to see what Colin comes back with.
https://github.com/Tarsnap/tarsnap/issues/329


fix(package): make library npm link friendly

Simple package.json massaging on postbuild to close #50. New devDependency added: https://www.npmjs.com/package/json

Thanks for the PR @webmaxru! The Travis failure should be fixed after rebase. I'll test this locally and merge.

Merged 2e856667c790a0cb15c96b065ece7a16c314cc41


Invalid DST timestamp for America/Santiago time zone.

Versions 1.2022.1, 1.2022.2 and 1.2022.3 incorrectly determine the DST timestamp for the time zone America/Santiago. This affects 2022 and 2024 years. Gem defines the timestamp as the second Sunday in September, although the correct value is the first Sunday in September. Version 1.2021.5 does not give this error.
I want to note that this works correctly for 2021, 2023, 2025, and also for the spring forward.

Version 2022b of the IANA Time Zone Database included a change to delay the start of DST for Chile in 2022 from 4 September to 11 September:

https://mm.icann.org/pipermail/tz-announce/2022-August/000071.html
https://github.com/eggert/tz/commit/711b46f8fc4e8a3d5caf7d4820562d6cdfe9d769
https://www.interior.gob.cl/noticias/2022/08/09/comunicado-el-proximo-sabado-10-de-septiembre-los-relojes-se-deben-adelantar-una-hora/

tzinfo-data version 1.2022.2 includes that change.
With the currently latest version 2022c of the time zone database, zdump produces the following output for me for America/Santiago in 2022 (showing the transition to DST occurring at 2022-09-11 04:00 UTC):
America/Santiago  Sun Apr  3 02:59:59 2022 UT = Sat Apr  2 23:59:59 2022 -03 isdst=1 gmtoff=-10800
America/Santiago  Sun Apr  3 03:00:00 2022 UT = Sat Apr  2 23:00:00 2022 -04 isdst=0 gmtoff=-14400
America/Santiago  Sun Sep 11 03:59:59 2022 UT = Sat Sep 10 23:59:59 2022 -04 isdst=0 gmtoff=-14400
America/Santiago  Sun Sep 11 04:00:00 2022 UT = Sun Sep 11 01:00:00 2022 -03 isdst=1 gmtoff=-10800

tzinfo v2.0.5 with tzinfo-data v1.2022.3 gives the same time for the transition to DST:
> TZInfo::Timezone.get('America/Santiago').period_for(Time.utc(2022,9,1)).end_transition.at.to_time
# => 2022-09-11 04:00:00 UTC

Since this matches the time zone database, I don't think this is a bug with tzinfo or tzinfo-data. If the IANA Time Zone Database is incorrect, please raise that on the tz mailing list.

@philr thanks a lot!


Terrible disk performance, fragmentation

After downloading few blogs, I've checked my HDD with Defraggler. The absolute most fragmented files were the files downloaded by TumblThree. One 90mb video file has >11400 fragments. Navigating downloaded folders is quite a pain, and I've even noticed that most of applications tend to work far more slower when TumblThree downloading files, even though they are not using the same HDD. That's the first time I've experienced such a thing.
The other most-fragmented file is some 800mb video downloaded through torrent, it has ~7000 fragments. That may be quite bad, but 11k fragments for 90mb file is insane.

I don’t know if its related but I have noticed that while using the program my hdd hangs or stops responding when under heavy program use like every 5-20 minutes, originally I thought it was just my crappy external hdd that was being weird, but bought an internal hdd and it has the same issue and its only when using this program that it stops responding and locks up the rest of the computer based on a second drive until a forced restart (which results in corruption of the blog file and I have to start over), most of the time I can see the Drive letter but the contents are gone, that’s when I know the hdd is not responding and the rest of the computer is about to lock up, so far every disk check program I run says everything is fine, but I do have almost 3k blogs that are constantly being crawled and scanned for duplicates. But my other archive programs and anything else I do on the hdd works fine and runs with no issue and iv even recently went through a full os reinstall so pretty sure it’s something with the program.
I don’t know if my secondary hdd hanging and my OS hdd and programs locking up is just an extreme version of what you have nor not. Or it’s a separate issue but again my program runs almost 24/7 on a massive number of blogs.

Yes, the HDD load I see when the application is downloading files is mostly always 100%.


Handle image streams w/out breaking OpenShift 3 Registry Image Pullthrough functionality

Bug Report
What did you do?

Enable OpenShift 3.11 Internal Registry Image Pullthrough
Create an image stream using a reference policy type of Local for the RuntimeComponent CR applicationImage
Deploy a RuntimeComponent whose applicationImage is the name of the above image stream

What did you expect to see?
I expected the Pod created by the RCO to include an image that references the image in the internal registry.
What did you see instead?
Instead, the Pod image was re-written to reference the image at the remote source. As a result, the image is pulled from the remote source rather than the internal registry mirrored cache.
Environment
OCP 3.11
Possible solution

Additional context
Add any other context about the problem here.

Hi @ron1, thanks for opening this issue. The issue should be fixed in https://github.com/application-stacks/runtime-component-operator/pull/156.

Delivered the fix in #156. Closing this one.
Opened https://github.com/OpenLiberty/open-liberty-operator/issues/206 to fix for Open Liberty Operator


Hosting of webpage

Moving the discussion about hosting of the webpage to a separate thread. We are currently somewhat limited in what we can do due to using GH pages for hosting. For the playground project we also need to run a flask server, which can't be served by GH pages. We could make good use of a similar toolchain for the new webpage here.
cc @henilp105 @milancurcic @everythingfunctional @ashirrwad

I very strongly recommend hosting the main website on github pages as usual, as a static website. That way the setup is robust, the hosting is very robust, it's fast, zero maintenance from us, etc.
Then, if we need a dedicated hosting for some subpage, I recommend hosting just that subpage somewhere, and we need to figure out how we are going to pay for it and how much it will cost and who will be responsible for maintaining it.
In addition to any dedicated hosting with docker I would also like to propose hosting LFortran, on static github pages, just like in the demo here: https://www.ubaidshaikh.me/lcompilers_frontend/. I think very soon we will be able to compile most codes, and it will be able to do what we want it to do.

This Issue has been resolved by Implementing the dirhtml of sphinx and also implemented the old sitemap of jekyll site in PR #1.
Thanks and Regards,
Henil Shalin Panchal


RT11xx device tree build warnings

Building a project based on the rt11xx produces the following warning:
Warning (simple_bus_reg): /soc/usbphy@0x40434000: simple-bus unit address format error, expected "40434000"
Warning (simple_bus_reg): /soc/usbphy@0x40438000: simple-bus unit address format error, expected "40438000"
It is caused by a typo in the device tree, which this PR fixes.

duplicate #76155


Generic Tensor Reduction for Double data

Add support for miopenReduceTensor() to be used on Tensors of double type data.  All the 8 Reduction Operations which are supported with fp32/fp16 Tensors can be used with double Tensors.  The alpha/beta scaling factors follow the same specification as what is used by cuddnReduceTensor(),  that is,  for fp32/fp16, alpha/beta should be float type passed by the application; for double, alpha/beta should be double type passed by the application.
The commits have gone through the following tests:
Regular MIOpen tests:
$ ./bin/test_reduce_test --double --all
$ ./bin/test_reduce_test --all
$ ./bin/test_reduce_test --half --all

Manual testing:
#!/bin/bash

### for fp32
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0 -O 0
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1 -O 0
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2 -O 0
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2,3 -O 0

bin/MIOpenDriver reduce -D 64,3,280,81  -R 0 -O 1
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1 -O 1
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2 -O 1
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2,3 -O 1

bin/MIOpenDriver reduce -D 64,3,280,81  -R 0 -O 2 -N 0 -I 1
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0 -O 3 -N 0 -I 1
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0 -O 4 -N 0 -I 1

bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1 -O 2 -N 0 -I 1
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1 -O 3 -N 0 -I 1
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1 -O 4 -N 0 -I 1

bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2 -O 2 -N 0 -I 1
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2 -O 3 -N 0 -I 1
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2 -O 4 -N 0 -I 1

bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2,3 -O 2 -N 0 -I 1
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2,3 -O 3 -N 0 -I 1
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2,3 -O 4 -N 0 -I 1

bin/MIOpenDriver reduce -D 64,3,280,81  -R 0 -O 5
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0 -O 6
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0 -O 7

bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1 -O 5
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1 -O 6
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1 -O 7

bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2 -O 5
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2 -O 6
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2 -O 7

bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2,3 -O 5
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2,3 -O 6
bin/MIOpenDriver reduce -D 64,3,280,81  -R 0,1,2,3 -O 7

### for fp16
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0 -O 0
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1 -O 0
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2 -O 0
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2,3 -O 0

bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0 -O 1
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1 -O 1
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2 -O 1
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2,3 -O 1

bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0 -O 2 -N 0 -I 1
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0 -O 3 -N 0 -I 1
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0 -O 4 -N 0 -I 1

bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1 -O 2 -N 0 -I 1
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1 -O 3 -N 0 -I 1
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1 -O 4 -N 0 -I 1

bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2 -O 2 -N 0 -I 1
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2 -O 3 -N 0 -I 1
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2 -O 4 -N 0 -I 1

bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2,3 -O 2 -N 0 -I 1
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2,3 -O 3 -N 0 -I 1
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2,3 -O 4 -N 0 -I 1

bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0 -O 5
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0 -O 6
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0 -O 7

bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1 -O 5
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1 -O 6
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1 -O 7

bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2 -O 5
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2 -O 6
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2 -O 7

bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2,3 -O 5
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2,3 -O 6
bin/MIOpenDriver reducefp16 -D 4,3,60,50  -R 0,1,2,3 -O 7

### for fp64
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0 -O 0
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1 -O 0
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2 -O 0
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2,3 -O 0

bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0 -O 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1 -O 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2 -O 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2,3 -O 1

bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0 -O 2 -N 0 -I 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0 -O 3 -N 0 -I 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0 -O 4 -N 0 -I 1

bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1 -O 2 -N 0 -I 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1 -O 3 -N 0 -I 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1 -O 4 -N 0 -I 1

bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2 -O 2 -N 0 -I 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2 -O 3 -N 0 -I 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2 -O 4 -N 0 -I 1

bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2,3 -O 2 -N 0 -I 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2,3 -O 3 -N 0 -I 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2,3 -O 4 -N 0 -I 1

bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0 -O 5
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0 -O 6
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0 -O 7

bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1 -O 5
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1 -O 6
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1 -O 7

bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2 -O 5
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2 -O 6
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2 -O 7

bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2,3 -O 5
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2,3 -O 6
bin/MIOpenDriver reducefp64 -D 64,3,280,81  -R 0,1,2,3 -O 7

@qianfengz Please fix tidy issues. Do not hesitate to ask for help, if needed. Thanks.

@qianfengz Please fix tidy issues. Do not hesitate to ask for help, if needed. Thanks.

I am trying to create a docker to be used locally for doing "make analyze".   But it seems from my location,  the libboost-1.72 could not be accessed in the scripts used by MIOpen/Dockerfile.   Any existing docker image can be pulled to do "make analyze" ?

@qianfengz Please fix tidy issues. Do not hesitate to ask for help, if needed. Thanks.

I am trying to create a docker to be used locally for doing "make analyze". But it seems from my location, the libboost-1.72 could not be accessed in the scripts used by MIOpen/Dockerfile.

Any existing docker image can be pulled to do "make analyze"?

Make analyze consists of make cppcheck -j $(nproc) and make tidy -j $(nproc).
For the former, you need to install cppcheck (see ./dev-requirements.txt):
git clone --single-branch https://github.com/danmar/cppcheck
cd cppcheck
git checkout dd05839a7e63ef04afd34711cb3e1e0ef742882f
mkdir build
cd build
cmake ..
make -j $(nproc)
make test
sudo make install

@qianfengz For make tidy, you can docker pull rocm/miopen:miopen-rocm-37. It has everything required for building & running MIOpen except cppcheck. Dependencies reside in /root/driver/MLOpen/deps_hip and in /root/driver/MLOpen/deps_opencl.
You can also install cppcheck within the container and then docker commit it and use your personalized container for both checks.

libboost-1.72

@qianfengz
Could you test if the following URL is not accessible?
https://boostorg.jfrog.io/artifactory/main/release/1.72.0/source/boost_1_72_0.tar.gz

I can manually download boost 1.72 and install it for building MIOpen.   But for "make analyze", the issue seems be more complicated since in Dockerfile,  the breaking of boost downloading also breaks other downloading/installation

@qianfengz For make tidy, you can docker pull rocm/miopen:miopen-rocm-37. It has everything required for building & running MIOpen (including boost) except cppcheck. Dependencies reside in /root/driver/MLOpen/deps_hip and in /root/driver/MLOpen/deps_opencl. There, build MIOpen as usual and then make tidy -j $(nproc).
You can also install cppcheck within the container and then docker commit it and use your personalized container for both checks.

Thank Artem.  rocm/miopen:miopen-rocm-37 works perfectly for me.

One strange issue is that on  rocm/miopen:miopen-rocm-37,  the follow testings

bin/MIOpenDriver reducefp64 -D 64,3,280,81 -R 0,1,2,3 -O 4 -N 0 -I 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81 -R 0,1,2,3 -O 3 -N 0 -I 1
bin/test_reduce_test --double --D 64 3 280 81 --R 0 1 2 3 --ReduceOp 4 --N 0 --I 1
bin/test_reduce_test --double --D 64 3 280 81 --R 0 1 2 3 --ReduceOp 3 --N 0 --I 1

failed to get correct maximum value on my MI100/MI25.  While they are able to pass on  ROCM 3.8,  3.10 and 4.1.1 on my M100/MI25 (installed from official repository by me).
Watching the dumped results,  it can be seen that in cases of failure,  the second largest value rather than the largest one is picked by the GPU kernel,  for example the second largest value is 0.999997, the largest value is 0.999999 or 1.0 by different runnings.
I am doubting there is compiler issues which cause expression  0.999997 < 0.999999 return false result.

One strange issue is that on rocm/miopen:miopen-rocm-37, the follow testings

bin/MIOpenDriver reducefp64 -D 64,3,280,81 -R 0,1,2,3 -O 4 -N 0 -I 1
bin/MIOpenDriver reducefp64 -D 64,3,280,81 -R 0,1,2,3 -O 3 -N 0 -I 1
bin/test_reduce_test --double --D 64 3 280 81 --R 0 1 2 3 --ReduceOp 4 --N 0 --I 1
bin/test_reduce_test --double --D 64 3 280 81 --R 0 1 2 3 --ReduceOp 3 --N 0 --I 1

failed to get correct maximum value on my MI100/MI25. While they are able to pass on ROCM 3.8, 3.10 and 4.1.1 on my M100/MI25 (installed from official repository by me).
Watching the dumped results, it can be seen that in cases of failure, the second largest value rather than the largest one is picked by the GPU kernel, for example the second largest value is 0.999997, the largest value is 0.999999 or 1.0 by different runnings.
I am doubting there are compiler issues which cause expression 0.999997 < 0.999999 return false result.

So the new feature revealed an issue only found in previous version of ROCm? I think all CI nodes have already updated to 4.1 at least, and I doubt if they will patch issues for earlier version of compiler, especially if it is already "fixed" in later versions. :)

@junliume > I think all CI nodes have already updated to 4.1
No, our CI nodes are running 3.7. @shurale-nkn is working on the dockerfile upgrade to 4.2.

@qianfengz

I am doubting there are compiler issues which cause expression 0.999997 < 0.999999 return false result.

Can you please check with rocm 4.2 release? Please see confluence where to pull it from.

@qianfengz If everything works fine with 4.2, then we can disable failing test cases (workaround) for 3.7 and forget about this problem.

@qianfengz If everything works fine with 4.2, then we can disable failing test cases (workaround) for 3.7 and forget about this problem.

Wait some time,  I need download 4.2 from home, could not access repo.radeon.com from the office.

@qianfengz

Wait some time, I need download 4.2 from home, could not access repo.radeon.com from the office.

You can pull docker image of 4.2 from compute-artifactory.amd.com:5000/rocm-plus-docker/compute-rocm-rel-4.2:21-STG2.

Thanks for this information.

@qianfengz

Wait some time, I need download 4.2 from home, could not access repo.radeon.com from the office.

You can pull docker image of 4.2 from compute-artifactory.amd.com:5000/rocm-plus-docker/compute-rocm-rel-4.2:21-STG2.

Thanks for this information.

No issue found on ROCM 4.2

need add custom test with reduce_test --all and attach it for full fp32 stages on target GPUs.

Theoretically, we should add MIOPEN_TEST_DOUBLE stages, but yes, it seems too expensive to add two stages only to test reduction. Let's add custom reduction tests for double to FULL FP32 stages.

@qianfengz Please merge from develop and add tests. Do not hesitate to ask me if you have any questions or need assistance. Thanks.

@qianfengz Please merge from develop and add tests. Do not hesitate to ask me if you have any questions or need assistance. Thanks.

So my understand is that since there is no stage/paralleled sub-stage for double defined in the Jekinsfile,  the bin/test_reduce_test --double --all has no chance to be executed during the CI.  And so you want me to add bin/test_reduce_test --double --all  using add_custom_test method so that it can be executed when MIOPEN_TEST_FLOAT and MIOPEN_TEST_ALL are enabled by some stages/sub-stages.   Is this right ?

...And so you want me to add bin/test_reduce_test --double --all using add_custom_test method so that it can be executed when MIOPEN_TEST_FLOAT and MIOPEN_TEST_ALL are enabled by some stages/sub-stages. Is this right ?

Correct!

@qianfengz :tada:

It seems like this PR is the reason of https://ontrack-internal.amd.com/browse/SWDEV-293780. I am in the process of double confirming this. Meanwhile please check from your side if this PR contains something wrong.


CurrentRefinements with Range widgets will show two items instead of one

Is your feature request related to a problem? Please describe 🙏
Using CurrentRefinement with a range widget, you will get two separate refinements listed, but realistically only both can be cleared at the same time, since as soon as you touch a range, it should be cleared on both sides
Describe the solution you'd like 🤔
The range widget to clarify to the current refinements that those two ranges should be considered as a single one.
Describe alternatives you've considered ✨
Some way where we base current refinements off the widgets, instead of the helper state would help in issues like this and #3346

@Haroenv
Not to resurrect an old issue, but did you ever find a solution for this issue?
I spent a few hours searching for this exact thing and at some point pieced together a potential solution from a few different sources. (unfortunately i did not note the sources, so I am unable to give credit. if i find the sources, I will update here)
In the hope that this may help someone else, I put together this example:
https://codesandbox.io/s/custom-current-refinements-ykcx2
In this example, I added a custom currentRefinements widget via connectCurrentRefinements. (see src/customCurrentRefinements.js) The refinement items are altered to separate filters that can contain multiple refinements -- for example, the refinementList, which allows multiple selections. However, the numericMenu filters stay as one unit and are given an alternate label, showing the range as a single string.
[X] 1 - 3 instead of the normal [X] > 1 [X] < 3
The refinements are being stored as a JSON array in a data- attribute on the remove button of the refinement item. When the button is clicked, the handler uses the decoded value of the data- attribute to refine the upper and lower range values together.
I have not tried this with a range input specifically, but I think (hope) the numericMenu handling can be adapted for range inputs.
This is by no means a fully thought out solution, but may prove useful to start down the right path. I'd love to see someone run with it and come up with a solid reusable solution.

Closing it, the current behavior works as intended and there are no changes planned for now.


[FEATURE]: Adding the Chatbot in Stakeholder's main page

Is your feature request related to a problem? Please describe.
There is no Chatbot present in Stakeholder's main page.
Describe the solution you'd like
Adding a Chatbot helps users to resolve common queries quickly.
Screenshot

Additional context
None
@Harshdev098 Please assign this issue to me and add 'hacktoberfest', 'gssoc-ext' and 'level' labels to it.

Someone is already working on it


Docker tutorial - Part 1: URL to sample app is broken

Hello,
Just wanted to highlight that the URL to download the sample app (expected: app.zip) is currently set to localhost/assets/app.zip which is incorrect. This is located under step 2 of the "Get the app" section (https://github.com/MicrosoftDocs/visualstudio-docs/blob/master/docker/tutorials/your-application.md#get-the-app)

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

ID: 38a38919-b557-4723-7ea9-b0fbafbfdc52
Version Independent ID: 2117c374-eda9-906e-392e-c55e1ebf8060
Content: Docker tutorial - Part 1: Build and run the todo list sample app
Content Source: docker/tutorials/your-application.md
Product: visual-studio-windows
Technology: vs-azure
GitHub Login: @nebuk89
Microsoft Alias: ghogen

@DannyAllegrezza -- Danny, thank you for your feedback. This issue is being tracked in #5827.
cc @ghogen for awareness


[Question] Subcategories?

I wonder if that's possible to use subcategories, for example:
- region:
    - city
    - city2
- region2:
    -city3
    -city4

Same question here. Anyone knows some hacks to achieve this?


All js files are now jshinted

Hi,
What I did is js-hinting all js files to have a cleaner code, if you think that would help the repo for further revisions and updates.
Enrico

Thank you for your contributions @enricolucia !

More than happy to help you with it!


Allow to generate schema.prisma.js instead of schema.prisma

Problem
The schema.prisma file always fails to open for various reasons.
Suggested solution
Generate  schema.prisma.js file.
exports.schema = `
model User {
...
}
`

Then open it by require(". /schema.prisma.js") to solve the problem completely.

Alternatives

Additional context

Could you give us a way to reproduce this: The schema.prisma file always fails to open for various reasons.

Ping @s97712


Creating Contacts in Outlook [Started development]

Hi guys,
Since this library had some amazing implementations and did a lot of the things I needed I decided to expand it and put some effort in to it.
I'm not used to anything related Exchange / SOAP but tried to manage with what was already here.
I've forked this repository and added as much as I could for now. You can see my added code here: https://github.com/linkedin/pyexchange/compare/master...Yenthe666:master
I've now ran stuck on the following error:
pyexchange.exceptions.FailedExchangeException: Unable to connect to Exchange: 500 Server Error: Internal Server Error

Which comes from exceptions.py in the function FailedExchangeException:
class FailedExchangeException(Exception):
  """Raised when the Microsoft Exchange Server returns an error via SOAP for a request."""
  pass

Example code to create a new contact:
from pyexchange import Exchange2010Service, ExchangeNTLMAuthConnection

URL = u'https://mail.yourdomain.com/EWS/Exchange.asmx'
USERNAME = u'DOMAIN\\yenthe'
PASSWORD = u"mypassword"
from datetime import datetime
from pytz import timezone

# Set up the connection to Exchange
connection = ExchangeNTLMAuthConnection(url=URL,
                                        username=USERNAME,
                                        password=PASSWORD)

service = Exchange2010Service(connection)

# You can set event properties when you instantiate the event...
contact = service.contact().new_contact(
  name=u"Yenthe",
  company_name = u"Google",
)

# Connect to Exchange and create the event
contact.create()

Could anybody help me and finish this implementation? I do not know how to fix this issue but I think this is a good start.

@trustrachel, @got-root could I ask you guys for input please?

So sorry about the delay - I don't officially maintain this any more. :) I'm at a different company and don't have access to an Exchange server, so I can only give advice.
So the error you're getting probably means the XML you're sending Exchange is either malformed or not correct, so Exchange is confused and doesn't know what to do. PyExchange is just passing on the error.
The first thing to do is test sending the raw SOAP request by using this script. Just change the REQUEST string to whatever XML you're sending:
https://gist.github.com/trustrachel/b70d79ea670f048ed165
If that doesn't work, then just fix as necessary and off you go. If it does work, let me know and I can dig more.
thank you!

@trustrachel no problem for the delay, I'm happy you took the time to respond. So thanks a lot for that :smile:
Alright so I gave your testscript a run with a demo script from SharePoint to create a new contact. I've used the sample from https://msdn.microsoft.com/en-us/library/aa580529(v=exchg.140).aspx in your testscript (https://gist.github.com/trustrachel/b70d79ea670f048ed165)
How the testscript looks:
#!/usr/bin/env python

import os
import logging
import requests
from requests_ntlm import HttpNtlmAuth
import getpass
import xml.dom.minidom

logging.basicConfig(level=logging.DEBUG)

EXCHANGE_SERVER = 'https://mail.mymail.com'
DOMAIN = 'MyDomain'
USERNAME = 'yenthe'#os.environ.get('yenthe.vanginneken') or 'DUMMY_USERNAME'
# PASSWORD is prompted for

# This just asks the server for all the timezones it knows about
# http://msdn.microsoft.com/en-us/library/dd899430(v=exchg.140).aspx
REQUEST = """<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
  <soap:Body>
    <CreateItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" >
      <SavedItemFolderId>
        <t:DistinguishedFolderId Id="contacts"/>
      </SavedItemFolderId>
      <Items>
        <t:Contact>
          <t:FileAs>SampleContact</t:FileAs>
          <t:GivenName>Tanja</t:GivenName>
          <t:CompanyName>Blue Yonder Airlines</t:CompanyName>
          <t:EmailAddresses>
            <t:Entry Key="EmailAddress1">tplate@example.com</t:Entry>
          </t:EmailAddresses>
          <t:PhysicalAddresses>
            <t:Entry Key="Business">
              <t:Street>1234 56th Ave</t:Street>
              <t:City>La Habra</t:City>
              <t:State>CA</t:State>
              <t:CountryOrRegion>USA</t:CountryOrRegion>
            </t:Entry>
          </t:PhysicalAddresses>
          <t:PhoneNumbers>
            <t:Entry Key="BusinessPhone">4255550199</t:Entry>
          </t:PhoneNumbers>
          <t:JobTitle>Manager</t:JobTitle>
          <t:Surname>Plate</t:Surname>
        </t:Contact>
      </Items>
    </CreateItem>
  </soap:Body>
</soap:Envelope>"""

if __name__ == '__main__':

  if EXCHANGE_SERVER == '' or USERNAME == "DUMMY_USERNAME" or DOMAIN == "DOMAIN":
    raise SystemExit("Hey, you need to edit the script to add your custom information before you run it.")

  PASSWORD = os.environ.get('EXCHANGE_PASSWORD') or getpass.getpass()

  HEADERS = {
    'Content-type': 'text/xml; charset=utf-8 ',
    'Accept': 'text/xml'
  }

  response = requests.post(EXCHANGE_SERVER,
               auth=HttpNtlmAuth('%s\\%s' % (DOMAIN, USERNAME), PASSWORD),
               data=REQUEST,
               headers=HEADERS)

  # lxml is better, but all I want to do is pretty print the XML response
  print(xml.dom.minidom.parseString(response.text).toprettyxml())

When I run this script I will get the following results back (so a succesfull creation):
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): mail.mymail.com
DEBUG:urllib3.connectionpool:Setting read timeout to None
DEBUG:urllib3.connectionpool:"POST /EWS/Exchange.asmx HTTP/1.1" 401 0
DEBUG:urllib3.connectionpool:Setting read timeout to None
DEBUG:urllib3.connectionpool:"POST /EWS/Exchange.asmx HTTP/1.1" 401 0
DEBUG:urllib3.connectionpool:Setting read timeout to None
DEBUG:urllib3.connectionpool:"POST /EWS/Exchange.asmx HTTP/1.1" 200 None
<?xml version="1.0" ?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
	<s:Header>
		<h:ServerVersionInfo MajorBuildNumber="174" MajorVersion="14" MinorBuildNumber="1" MinorVersion="3" xmlns="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
	</s:Header>
	<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
		<m:CreateItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
			<m:ResponseMessages>
				<m:CreateItemResponseMessage ResponseClass="Success">
					<m:ResponseCode>NoError</m:ResponseCode>
					<m:Items>
						<t:Contact>
							<t:ItemId ChangeKey="EQAAABYAAACrppuUEDMRTaciavm/Wr6lAAB7y06S" Id="AAAdAFllbnRoZS5WYW5HaW5uZWtlbkB2YW5yb2V5LmJlAEYAAAAAADrZHpTamLVLl+s1ej9c6goHAKumm5QQMxFNpyJq+b9avqUAAAAAv9wAAKumm5QQMxFNpyJq+b9avqUAAHvLRpIAAA=="/>
						</t:Contact>
					</m:Items>
				</m:CreateItemResponseMessage>
			</m:ResponseMessages>
		</m:CreateItemResponse>
	</s:Body>
</s:Envelope>

Now, back to the code that I've added to the library, which you can find here: https://github.com/Yenthe666/pyexchange/blob/master/pyexchange/exchange2010/soap_request.py#L634-L683
The method to create a new contact:
def new_contact(contact):
    """
    Requests a new Contact to be created
    https://msdn.microsoft.com/en-us/library/aa564690(v=exchg.140).aspx
    <m:CreateItem
	xmlns=m:"http://schemas.microsoft.com/exchange/services/2006/messages"
	xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
      <m:SavedItemFolderId>
        <t:DistinguishedFolderId Id="contacts"/>
      </m:SavedItemFolderId>
      <m:Items>
        <t:Contact>
          <t:FileAs>SampleContact</t:FileAs>
          <t:GivenName>{contact.subject}</t:GivenName>
          <t:CompanyName>{contact.body}</t:CompanyName>
          <t:EmailAddresses>
            <t:Entry Key="EmailAddress1">tplate@example.com</t:Entry>
          </t:EmailAddresses>
          <t:PhysicalAddresses>
            <t:Entry Key="Business">
              <t:Street>1234 56th Ave</t:Street>
              <t:City>La Habra</t:City>
              <t:State>CA</t:State>
              <t:CountryOrRegion>USA</t:CountryOrRegion>
            </t:Entry>
          </t:PhysicalAddresses>
          <t:PhoneNumbers>
            <t:Entry Key="BusinessPhone">4255550199</t:Entry>
          </t:PhoneNumbers>
          <t:JobTitle>Manager</t:JobTitle>
          <t:Surname>Plate</t:Surname>
        </t:Contact>
      </m:Items>
    </m:CreateItem>
    """
    id = T.DistinguishedFolderId(Id=contact.calendar_id) if contact.calendar_id in DISTINGUISHED_IDS else T.FolderId(Id=calendar.contact_id)
    root = M.CreateItem(
      M.SavedItemFolderId(id),
      M.Items(
        T.Contact(
          T.GivenName(contact.name),
          T.CompanyName(contact.company_name or u'', BodyType="HTML"),
        )
      ),
      SendMeetingInvitations="SendToAllAndSaveCopy"
    )
    contact_node = root.xpath(u'/m:CreateItem/m:Items/t:Contact', namespaces=NAMESPACES)[0]

    return root

I have no idea what is wrong with my code though.. Think you could have a look at it too? There must be something wrong.

Aha, you're not sending the XML you expect. You see where you're setting the root variable? There's a stray SendMeetingInvitations="SendToAllAndSaveCopy", which is only for calendar stuff.
Try getting rid of that. If that still doesn't work, try upping the logging to debug and you should see exactly what's going over the wire to Exchange and what you're getting back. IIRC, Exchange will tell you if you have malformed XML.

This is the one real flaw in using raw XML instead of a more heavyweight SOAP library, we don't get the benefit of XML schemas. :disappointed:

@trustrachel thanks for the feedback, good catch there! I've removed the line SendMeetingInvitations="SendToAllAndSaveCopy" so I now have the following code:
def new_contact(contact):
    """
    Requests a new Contact to be created
    https://msdn.microsoft.com/en-us/library/aa564690(v=exchg.140).aspx
    <m:CreateItem
    xmlns=m:"http://schemas.microsoft.com/exchange/services/2006/messages"
    xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
      <m:SavedItemFolderId>
        <t:DistinguishedFolderId Id="contacts"/>
      </m:SavedItemFolderId>
      <m:Items>
        <t:Contact>
          <t:FileAs>SampleContact</t:FileAs>
          <t:GivenName>{contact.subject}</t:GivenName>
          <t:CompanyName>{contact.body}</t:CompanyName>
          <t:EmailAddresses>
            <t:Entry Key="EmailAddress1">tplate@example.com</t:Entry>
          </t:EmailAddresses>
          <t:PhysicalAddresses>
            <t:Entry Key="Business">
              <t:Street>1234 56th Ave</t:Street>
              <t:City>La Habra</t:City>
              <t:State>CA</t:State>
              <t:CountryOrRegion>USA</t:CountryOrRegion>
            </t:Entry>
          </t:PhysicalAddresses>
          <t:PhoneNumbers>
            <t:Entry Key="BusinessPhone">4255550199</t:Entry>
          </t:PhoneNumbers>
          <t:JobTitle>Manager</t:JobTitle>
          <t:Surname>Plate</t:Surname>
        </t:Contact>
      </m:Items>
    </m:CreateItem>
    """
    id = T.DistinguishedFolderId(Id=contact.calendar_id) if contact.calendar_id in DISTINGUISHED_IDS else T.FolderId(Id=calendar.contact_id)
    root = M.CreateItem(
      M.SavedItemFolderId(id),
      M.Items(
        T.Contact(
          T.GivenName(contact.name),
          T.CompanyName(contact.company_name or u'', BodyType="HTML"),
        )
      ),
    )
    contact_node = root.xpath(u'/m:CreateItem/m:Items/t:Contact', namespaces=NAMESPACES)[0]

    return root

So, where exactly is the debugger level defined? I can't find it directly. And yep the debugging is horrid so it seems. Perhaps I should just go with the SOAP without using the library..

It's just using the standard Python logger - you set it in whatever script you're using to run pyexchange. The easiest thing is to just set the root logger to DEBUG, but I think you can just target pyexchange with logger.getLogger('pyexchange'). If you don't know how to do that, see this:  https://docs.python.org/2/howto/logging.html#configuring-logging
SOAP will also work, but I found that they're all either very slow or don't handle unicode.

@trustrachel I finally had some time to look at it and found the fix. The problem was some HTML field that wasn't allowed there to be used in that way. :+1:
Now I have a new error:
AttributeError: 'Exchange2010ContactEvent' object has no attribute '_parse_id_and_change_key_from_response'

Think you could have a look at this? I've made an issue on my own branch here: https://github.com/Yenthe666/pyexchange/issues/1

@trustrachel sorry to ping you again but could you have a look please?


Buying a tile under district placing mode will exit city view

Steps:

Enter city view.
Select a district to place.
Buy a tile while in district placing mode.
The tile is purchased and the game automatically exits city view.

For reference, the save is attached, ready to buy a tile for the Holy Site.
CQUI_Issue_46_BuyTileWhilePlacingExitsCity.zip

This is no longer the case as of 388cfc6b9b87cf345e470ac0fa5c57f87bb266b9
The behavior still isn't perfect: it exits district placing mode and goes back to regular cityview upon purchasing a tile, but it no longer kicks the player out of the cityview entirely


Fix use of unaligned references in example

A recent change in Rust to deny unaligned reference by default (https://github.com/rust-lang/rust/pull/95372) caused the upstream rust build of this book to break: https://github.com/rust-lang/rust/pull/96108#issuecomment-1100646376
This PR removes the unaligned references, instead using addr_of!() to get a raw pointer to print.

r? @therealprof
(rust-highfive has picked a reviewer for you, use r? to override)


Real Craft Time

When opening the menu and looking at the craft time, one can only see the per machine time, and not the recipe time. The recipe time is much more useful for ratios, and it would be nice if you could add it. It would probably be the last time entry and use the stopwatch icon instead of the assembler. This could also be an option to replace the assembler specific times.

Xterminator did a mod spotlight on this today and also requested this, so I'm going to add it. I didn't think that the base crafting time would be useful, but apparently I was wrong. It'll be in for the next version.

Thanks. That was a very quick response. I actually found this mod through the spotlight, and noticed that this would be useful in the hour or so I was using it(I replaced FNEI).

I'm not entirely happy with how it looks, but this is by far the easiest and fastest way. If I wanted to stick it into the ingredients box, I would have to do some pretty janky things to get it to work.

You should try darkening the background.

Managed to integrate it into the ingredients panels, I like this a lot better. Coming soon!

This was released in v2.1.0 a few days ago.


How to chat with history?

I want to use this to run a chat session so that future generate calls have the previous context. But I don't want to re-tokenize and re-run the old tokens again right? Is there some easy way to do this?

Yes you can use interactive mode in the generate function, it behaves the same as the main example of llama.cpp, I will add a CLI soon to see how it works.
I will make it more convenient soon!

What's the approach for this when using the langchain wrapper?
https://github.com/hwchase17/langchain/blob/master/langchain/llms/gpt4all.py

A way of accessing the history of a conversation would be great. Just like GPT-4.
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
{"role": "user", "content": "Where was it played?"}
]

Hi @redthing1,
The history now is kept as long as the model variable is alive (see Please try Interactive Dialogue from the readme page.)
You can call model.reset() to reset the history.


authentication and encryption for etcd?

I can see custom etcd manifests in the repo.
Can you further clarify why it is needed, what data can be stored there?
Does it make sense to configure TLS, authentication to secure it?

Etcd is used for experimental elastic feature, information like pods ip and ready state and more are collected.
Indeed, etcd is designed as an external dependency which should be configured manually on installation, the manifests in deploy is just provide a quick practice, maybe we move it to third-party ?
The authentication is a little bit hard in practice since framework is design to be run even without kubernetes which is expensive to configure authentication. As a trade-off, the info in etcd is not really sensitive. Maybe we provide a configuration option or consider it later.


Advice on inserting SOAP Token/Client ID into soap header.

Hi All,
I am using this class for one of my apps on appexchange. But the app is not working in Professional edition but rather in all editions as professional does not support API token. I did generated a case in support and they have given me a SOAP Token/Client Id to use. This token if appended in SOAP header will allow the users to access the app in Professional org as well. Token is: 'Abc/Dtest/' and this is the support link: http://wiki.developerforce.com/page/How_to_use_clientid
But can someone tell me how to append this Client Id in the present MetadataService class in SOAP header and not the java or C# code like given in support link?

@PankhuriAstrea, Have you found a resolution? If the answer is Yes, could you share it with the rest of us?


Minor edits to docs

Update information in the readme file.

@k-gilbert it should be good now?

@robelgeda, those changes aren't quite what I was looking for, but I just learned how to insert comments (and code change suggestions) in the "Files changed" tab, so hopefully my intention will be clearer now.

@robelgeda, those changes aren't quite what I was looking for, but I just learned how to insert comments (and code change suggestions) in the "Files changed" tab, so hopefully my intention will be clearer now.

@k-gilbert, I made the edits and committed the one's you recommended.

@robelgeda, that looks good to go.  Please go ahead and merge into spacetelescope:master.  Thanks!


Renamed list view to details view

Hello! I've just discovered the Files program today! I have a question. I miss the option list view without details like in Windows Explorer.  Isn't there this layout mode?

Hello! I've just discovered the Files program today! I have a question. I miss the option list view without details like in Windows Explorer. Isn't there this layout mode?

We are tracking this request in #2509.


Slider bar without the AppBar

Great addon, thanks for the effort.
Is it possible to use only the slider bar(drawer) without the app bar?

Hallo Borax I don't know how much of the API you already have discovered and if you found the following method.
public class DemoUI extends UI {
  ...
  protected void init(VaadinRequest request) {
    setContent(NavigationDrawerBuilder.get()
    .withVariant( ... )
    .build());
  }
}

And if one of the offered Variants satisfy you.
I do not recommend removing the app bar from because from a UX point of view, about no user will find the drawer if you remove the AppBar.
But If you really want no app bar yes it is possible to do so:

You could either use the variant LEFT or LEFT_OVERLAY and hide the AppBar by setting some css variables and applying some scss:

$app-bar-height: 0px;
$app-bar-shadow: none;
app-toolbar {
display: none;
}

(This requires more work but is a cleaner solution) Or create your own Custom Layout and use your own template.

Checkout the package com.github.appreciated.app.layout.drawer, the associated Resource folder and /webapp/VAADIN/addons/app-layout figure out how I made polymer app-layout working and try to mimic it and make only app-drawer work. It is actually not that complicated than it may sounds. The Examples are very straight forward.

Thanks, I'll look into it. You are correct about the appbar, but my problem is that I already have one in my project :) I just need a drawer that will play nice with my appbar.

@borax1974 Ah yeah you are right didn't think about that usecase 🙂 you then might also want to checkout

AbstractNavigationDrawer::toggleDrawer()


Cannot determine Zone: set in this resource, or set provider-level zone

Upon running docker run for GCE, following error occurs:
4 error(s) occurred:

* module.worker.google_compute_instance.cncf: 1 error(s) occurred:

* google_compute_instance.cncf: Cannot determine zone: set in this resource, or set provider-level zone.
* module.master.google_compute_instance.cncf[1]: 1 error(s) occurred:

* google_compute_instance.cncf.1: Cannot determine zone: set in this resource, or set provider-level zone.
* module.master.google_compute_instance.cncf[2]: 1 error(s) occurred:

* google_compute_instance.cncf.2: Cannot determine zone: set in this resource, or set provider-level zone.
* module.master.google_compute_instance.cncf[0]: 1 error(s) occurred:

* google_compute_instance.cncf.0: Cannot determine zone: set in this resource, or set provider-level zone.

#159


intel-media-sdk: 21.2.3 -> 21.3.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/intel-media-sdk/versions.
meta.description for intel-media-sdk is: "Intel Media SDK"
meta.homepage for intel-media-sdk is: ""
meta.changelog for intel-media-sdk is: ""
Updates performed

Version update

To inspect upstream changes

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
/nix/store/hp5vi3ydgrwqbfrqjwv3gc3dfg6ns7j1-intel-media-sdk-21.3.1/bin/mfx-tracer-config passed the binary check.
1 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 21.3.1 with grep in /nix/store/hp5vi3ydgrwqbfrqjwv3gc3dfg6ns7j1-intel-media-sdk-21.3.1
found 21.3.1 in filename of file in /nix/store/hp5vi3ydgrwqbfrqjwv3gc3dfg6ns7j1-intel-media-sdk-21.3.1

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

0 x86_64-linux rebuild(s)
0 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
0 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
intel-media-sdk

Instructions to test this update (click to expand)

Build yourself:
nix-build -A intel-media-sdk https://github.com/Kranzes/nixpkgs/archive/30281b4529a6a2715cc08b2839361c7bd3d20c4d.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/hp5vi3ydgrwqbfrqjwv3gc3dfg6ns7j1-intel-media-sdk-21.3.1
ls -la /nix/store/hp5vi3ydgrwqbfrqjwv3gc3dfg6ns7j1-intel-media-sdk-21.3.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @midchildan for testing.

Result of nixpkgs-review pr 134006 run on x86_64-linux 1

6 packages marked as broken and skipped:

libsForQt512.kdenlive
libsForQt512.soundkonverter
libsForQt514.kdenlive
libsForQt514.soundkonverter
python38Packages.rl-coach
python39Packages.rl-coach

34 packages built:

MIDIVisualizer
arcan.arcan
arcan.arcan-wrapped
arcan.durden-wrapped
arcan.everyone-wrapped
ffmpeg-full (arcan.ffmpeg)
arcan.pipeworld-wrapped
arcan.prio-wrapped
arcan.xarcan
handbrake
imagination
intel-media-sdk
libsForQt5.kdenlive (libsForQt515.kdenlive ,plasma5Packages.kdenlive)
soundkonverter (libsForQt5.soundkonverter)
liquidsoap
manim
olive-editor
printrun
python38Packages.baselines
python38Packages.gym
python38Packages.moderngl-window
python38Packages.pydub
python38Packages.pyglet
python38Packages.pytmx
python38Packages.roboschool
python39Packages.baselines
python39Packages.gym
python39Packages.moderngl-window
python39Packages.pydub
python39Packages.pyglet
python39Packages.pytmx
python39Packages.roboschool
restream
webcamoid


userNotificationCenter:willPresentNotification:withCompletionHandler: never get called

Describe the bug
device.sendUserNotification() doesn't invoke willPresentNotification: new iOS api.
We need it to inform the javascript that a notification received in foreground.
To Reproduce

[x] I have tested this issue on the latest Detox release and it still reproduces

Provide the steps necessary to reproduce the issue. If you are seeing a regression, try to provide the last known version where the issue did not reproduce.

If possible, please provide a small demo project that reproduces the issue, or attach a video with the reproduction - this would be very appreciated.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

Detox:
React Native:
Node:
Device:
Xcode:
iOS:
macOS:

Device and Verbose Detox Logs
Provide the device and "trace" Detox logs so we can understand what happened. You can obtain them by passing the loglevel param: detox test --loglevel trace
iOS Framework Build Logs
If you are seeing a build problem (e.g. during npm install), provide the log found here: ~/Library/Detox/ios/{...}/detox_ios.log

Thanks, will implement soon.


Adding ssh to Vagrant Class

This was the only option left. This will help me to write wrapper script and use the method.

@todddeluca can you please take look at the PR ?

Any update on this?  Is this project considered abandoned?

Forgive my ignorance but why do you want to invoke a bare vagrant ssh from python?

@todddeluca wrote:

Forgive my ignorance but why do you want to invoke a bare vagrant ssh from python?

We at F-Droid use ssh to automate Android app builds inside vagrant VMs:
https://gitlab.com/fdroid/fdroidserver/-/blob/master/fdroidserver/build.py#L55

Closing due to its age, but I would not be against such change, but still it would need a test.


Move RPLIDAR Support on repository usb-devices

Move RPLIDAR support on usb-devices to reduce the number of libraries used in the project.
Besides, this movement has sense to solve this issue:
https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/382

Fixed.

RPLIDAR4J is a deprecated repository.
It is necessary to move the documentation to new repository.


TXT Records with a BAD length cause "Out of Memory" Exception in NetFx library

Hi
I've been tracking down out of memory exceptions when using your library. It turns out they are due to a bad TXT record RDLENGTH field from a device on my network (it is serialising the ushort in Little Endian format which gives us a length of 11008 instead of 43.
Aside from the root of the cause being the bad device, the ReadByte() and ReadString() methods in RecordReader.cs continue to create StringBuilders due to the code in RecordTXT constructor
public RecordTXT(RecordReader rr, int Length)
{
    int pos = rr.Position; // This is initially 147 in my case, with m_data[190]
TXT = new List<string>();
    while ((rr.Position - pos) < Length)
    TXT.Add(rr.ReadString());
}

(rr.Position - pos) == 190 - 147 == 43

The while loop test equals 43 and this is never more than 11008, which results in Out of Memory.
Please let us know if you would like me to do any further testing? I can also work on a fix, but my testing would be limited to the .NET4.5 framework only.
Cheers
Dave

Sure, I'd be happy to have a fix. It is true that the servers should "do the right thing," but being strict like that doesn't help anyone get what they really want -- so I have no issue with libraries being more "tolerant"  and working around issues.
If you have a good fix, I'd be happy to take it.

Hey
Yes the more resilient the better! I've made a really simple fix what break out of the ReadString while loop if the reader position reaches the end of the data. This stops the out of memory, but doesn't recover for the endian error - not sure if that would be possible.
I think I have made a pull request but I'm not that familiar with them so I may not have :-)
Cheers
Dave


fix(Admin/User): update input file style

Issue:
What I did
How to test

Deploy preview ready!
Built with commit fa8e78a54c9562b1abdb516c47a9e981fd27a99c
https://deploy-preview-450--mcs-lite-introduction.netlify.com

Deploy preview ready!
Built with commit fa8e78a54c9562b1abdb516c47a9e981fd27a99c
https://deploy-preview-450--mcslite.netlify.com

Deploy preview ready!
Built with commit fa8e78a54c9562b1abdb516c47a9e981fd27a99c
https://deploy-preview-450--mcs-lite-ui.netlify.com


typeerror when running testDuplicateNames

Running testDuplicateNames in olapscript-tests-and-utils and get the following error:
TypeError: Cannot read property 'map' of undefined
(anonymous)	@ olapscript.gs:1512
Table.groupby	@ olapscript.gs:1511
testDuplicateNames	@ olapscript-tests-and-utils.gs:136

Probably just the calling sequence changed.

Table.fromSheet(ss.getSheetByName("Volunteers"))
.groupby([new RefExpr("First"), new RefExpr("Last"), new RefExpr("Email")], CountStar)
.having(new FuncExpr(x => x > 1, new RefExpr("CountStar")))
.toSheet(target);

The problem looks to be that fromSheet doesn't use getRange correctly (the second arguments are counts, not indices).

Please check.

Still getting an error here.
TypeError: Cannot read property 'map' of undefined
(anonymous)	@ olapscript.gs:1543  	aggr.func.args.map(arg =>
Table.groupby	@ olapscript.gs:1542  const inputs = aggrs.map(aggr =>
testDuplicateNames	@ olapscript-tests-and-utils.gs:137        .groupby([new RefExpr("First"), new RefExpr("Last"), new RefExpr("Email")], CountStar)
(I listed the line of code identified by each line number in case the line numbers aren't the same)

OK I see what is going on here now. I changed the way aggregates are built and they code is now a mix of the two formats.

Should be. working now.

Tested and verified!


Cleanup seed_from_array product feature things

Faster to load product features outside of the loop. This one's all LJ's, he was just gracious enough to give me the points.
before:
bin/rails r "MiqUserRole.seed; puts Benchmark.realtime_block(:capture_state) { 10.times { MiqUserRole.seed } }.last" => {:capture_state=>2.8955180644989014}
after: {:capture_state=>2.4822089672088623}
@miq-bot assign @jrafanie

@miq-bot add_label performance, cleanup

I hear @bdunne likes seeding... I co-authored this so we need an unbiased review

Ivanchuk backport details:
$ git log -1
commit<PHONE_NUMBER>664d0de22430716eab7bf89b525568
Author: Brandon Dunne<EMAIL_ADDRESS>Date:   Tue Jul 23 16:52:36 2019 -0400

    Merge pull request #19022 from d-m-u/make_faster_user_roles

    Cleanup seed_from_array product feature things

    (cherry picked from commit 31e12c38af7b5511fcf648affb5719d31d142c2a)


[WIP] Testing skipping mellanox CI

Thank you for your PR,
You can test hw-offload configuration by commenting one of the following:

/test-hw-offload.
/test-all.

Alternatively you can skip the tests by commenting:

/skip-hw-offload.
/skip-all.

These commands can be run by anyone.
Best regards.

/skip-hw-offload


Missing files for Transformer-XL examples

Hi,
thanks so much for the new 0.5.0 release. I wanted to train a TransfoXLModel model, as described in the README here.
Unfortunately, the files transfo_xl_train.py and transfo_xl_eval.py are not located in the examples directory.
Could you please add them to repository? Thanks :heart:

Oh yes, that was a typo, there is only one example for Transformer-XL and it's the run_transfo_xl.py file detailed here. Read the API details in the readme for more information on the input/outputs of the two Transformer-XL models.
I've updated the readme, thanks.


Unknown field "configMap.items"

What happened:
unknown field "spec.volumes[x].configMap.items
Error from server (BadRequest): error when creating "vmi.yaml": VirtualMachineInstance in version "v1" cannot be handled as a VirtualMachineInstance: strict decoding error: unknown field "spec.volumes[2].configMap.items"
What you expected to happen:
Try to mount a configmap item as a file on a virtualmachineinstance
How to reproduce it (as minimally and precisely as possible):
apiVersion: kubevirt.io/v1
kind: VirtualMachineInstance
metadata:
  name: my-vmi
spec:
  domain:
    cpu:
      cores: 2
    memory:
      guest: "4G"
    devices:
      disks:
      - name: containerdisk
        disk:
          bus: virtio
      - name: cloudinitdisk
        disk:
          bus: virtio
      filesystems:
        - name: config-volume
          virtiofs: {}
  volumes:
  - name: containerdisk
    containerDisk:
      image: ubuntu:latest
  - name: cloudinitdisk
    cloudInitNoCloud:
      userData: |-
        #!/bin/bash
        echo hello world
        sudo mount -t virtiofs config-volume /etc/config.conf
  - name: config-volume
    configMap:
      name: config-configmap
      items:
         - key: config.conf
           path: config.conf

---

apiVersion: v1
kind: ConfigMap
metadata:
  name: config-configmap
data:
  config.conf: |
    [info]
    log-level-console=debug

Additional context:
According to the documentation, the declaration of the configmap item as a volume looks good.
https://kubevirt.io/api-reference/main/definitions.html#_v1_configmapvolumesource
Environment:kub

KubeVirt version (use virtctl version): 2024-02-07

Kubernetes version (use kubectl version):  1.28

VM or VMI specifications: linux ubuntu family

Cloud provider or hardware configuration: N/A

OS (e.g. from /etc/os-release): N/A

Kernel (e.g. uname -a): N/A

Install tools: N/A

Others: N/A

The error is correct, there is no items field.
Please, take a look at this documentation and see if it helps:
https://kubevirt.io/user-guide/virtual_machines/disks_and_volumes/#configmap

Ah thank you, yes I saw this page but I wondered if there was a possible other way to make it work.
Because if I follow this page I will have to mount a directory that will contain a file config.conf but the whole directory will be read-only since it's a configmap and not a proper disk.
Because technically if you have to mount a file, and not a directory you can't really do it, right ?
I though of a workaround to mount the configmap somewhere and move the files in the system using the cloudinitnocloud parameter :
    cloudInitNoCloud:
      userData: |-
       sudo mkdir /mnt/configmaps
       sudo mount -f virtio config-configmap /mnt/configmaps
       sudo cp /mnt/configmaps/config.conf /etc/config.conf
       sudo chmod 400 /etc/config.conf

Not tested, but it looks like a workaround more than a proper way of working, I wondered if there was a cleaner way of doing the job.

Hey @orelmisan You are absolutely right, and that's my point : in my example there is only one file "config.conf" but in a real life experience I would have love to have maybe three, four, five files in the same configmap and being able to play with mount points in different directories of the VMI.


build error,about consul && k8s

When I build go-micro service:

cannot load github.com/hashicorp/consul/api: ambiguous import: found github.com/hashicorp/consul/api in multiple modules:
   github.com/hashicorp/consul v1.4.2<EMAIL_ADDRESS>   github.com/hashicorp/consul/api v1.1.0<EMAIL_ADDRESS>
then I changed the version of consul use replace:
replace github.com/hashicorp/consul => github.com/hashicorp/consul v1.5.1
but,then the error became:

../../../../go/pkg/mod/k8s.io/client-go@v11.0.1-0.20190409021438-1a26190bd76a+incompatible/rest/request.go:598:31: not enough arguments in call to watch.NewStreamWatcher
	have (*versioned.Decoder)
	want (watch.Decoder, watch.Reporter)

If I fixed this error  : https://github.com/kubernetes/client-go/blob/master/INSTALL.md#go-modules
the consul's error will show up again.....
so,have any idea about this issue?

I've fixed this .


Disable parcel-layer if networking is disabled

This PR removes a lot of code that is unnecessary for the case when networking is disabled (all of the parcel-port and related support code). This reduces the compile time of the main  core module by about 20% (on my machine).

The pycicle builder daint-gcc-newest is the one to look out for. That one has networking disabled. Thanks for doing this @hkaiser.

This is good to go now, please review.

The pycicle builder daint-gcc-newest is the one to look out for. That one has networking disabled.

Why does it still run the migrate_component test?

Why does it still run the migrate_component test?

Why not? Attempting to migrate a component to the same locality is a valid operation (doesn't do anything) but we've had bugs for this case before, so I left it in.

All distributed tests are still compiled an run

Ok, I didn't consistently go over the tests, granted.

a lot of stuff concerning action registration hasn't been touched yet.

Action registration is completely gone, I believe - at least the part needed for distributed operation.

@sithhell I think all of your comments have been addressed now.

There's a build failure here: https://cdash.cscs.ch//viewBuildError.php?buildid=74625


131 migrate deployment from vercel to aws using sst

Add SST
Add Prisma generate to GitHub Actions
Fix order of executing Prisma generate in Actions
Update deploy run commands
Add custom domains for different environments
Update workflow with environment
Update Prisma for deployment with SST
Refactor env variable
Add missing env variable in workflow
Add binaryTargets for Prisma
Add CDK Context
Remove Vercel
Move OG image generation API to appDir
Split workflows for preview and production stages

Merging despite Vercel build failed. No longer using Vercel moving forward.


Add support for enabling/disabling netscaler features

Netscaler admins will probably know them as their alias, LB, etc.
eg enable ns feature LB
It would be nice to have it handle both, Im not sure how I would handle prefetching etc with a namevar that is aliased to one real resource. I guess I could put two copies in when I prefetch (one with alias, one with english name) but that would probably break puppet semantics around single declarations:
netscaler_feature { 'Load Balancing': ensure => present, }
netscaler_feature { 'LB': ensure => absent, }

@davemcdonnell I think all @Hunner meant was that we use :feature_name instead of :name in the type. It's literally a one word change :)

@jonnytpuppet Nope nope, I did mean changing all the wl, sb, lb, etc. strings to the english sentences used in the GUI.
@davemcdonnell So... do you think most netscaler devs would prefer the arguments used in the command-line rather than the gui? For the most part we have been modeling the module after the GUI's verbiage when there is a discrepancy between the GUI and the CLI (eg, td vs traffic_domain as a parameter name). What do you think?

True netscaler admins use the command line :).
I think there is validity to both approaches. Users that have existing automation/scripts will probably be using the CLI/Rest names, and others approaching puppet automation fresh may be more comfortable with the GUI names.
I'll see if I can come up with something using title_patterns to support both rest and english names, with puppet resource returning the english names to be consistent with that approach in the module.

If title_patterns doesn't work, self.prefetch could match up resources based on either their cli or gui name, rather than just the name directly.
Or name's munge method could munge them to the cli name.

Resubmitted in different pull request


[Improve] DES cryptographic algorithm change to AES

DES cryptographic algorithm change to AES
The DES encryption algorithm is used in EncryptUtils, which is an older algorithm that is now considered weak. should be use AES encryption algorithm, which is a strong modern algorithm.
What changes were proposed in this pull request
Issue Number: close #2241

Brief change log

Verifying this change

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

Does this pull request potentially affect one of the following parts

Dependencies (does it add or upgrade a dependency): (yes / no)

cc @1996fanrui PTAL, thanks

@wolfboys , thanks for your contribution, I have left some comments, please take a look in your free time, thanks!

thanks for your review. done.


qhyccd-sdk: add new package

This commit adds a new Nix package for the QHYCCD SDK, version 23.01.11. The package includes libraries, header files, and sample code for interfacing with QHYCCD astronomy cameras, and is licensed for non-commercial use only. The package supports both x86-64 and ARM64 architectures, and includes an installation script for setting up the SDK on a system. The package has been successfully tested using nix-build and nix-shell, and has been added to the nixpkgs repository.

started some work but struggle testing it locally, will appriciate the help

Why are you trying to destroy all-packages.nix?

I'll appreciate help with this package.

made a new one https://github.com/NixOS/nixpkgs/pull/254714


Fetch safe apps list from the api

What it solves
Closes #2282
How this PR fixes it
It fetches the Safe Apps list from the new API
How to test it

Open the Apps section
Add a custom App
Check if apps are retrieved
If the endpoint fails, it should show the user their locally loaded apps

Could you please also check that apps received from the service don't get saved in localstorage? I think now we store every app there

If you think it's ok, i'll fix the details that you comment once we can merge it.

In progress
The issue 1

[ ] no filter by the chainID
Precondition:
no custom apps that may be stored locally
Steps:

check the safe apps list in the admin panel
check the number of the apps available on the Rinkleby ( 4 chainid)
go to the rinkeby to check safe apps list
Current result: All apps from the admin panel are displayed.
Expected result: Only apps available for the chain should be displayed in the list

[ ] 1
[ ] 2

https://safe-config.staging.gnosisdev.com – we need to pass chainId in the query

Issue is not a regression, please make a new bug @liliya-soroka

Let's start using the app id from backend instead of URL for indexing in the store.

It's fine that the app crashes w/o internet.

@dasanra , @tschubotz , question here - Are we planning to show any error if the app is not found

Yes, it would be nice show the error in the input but not in this PR. A new issue is needed.

A note for Juampi: Let's start using the app id from backend instead of URL for indexing in the store.

How does it work for custom apps tho?

How does it work for custom apps tho?

@mikheevm we'll keep using the URL as id for them. Actually, it turns out config-service isn't sending any ids at the moment. @fmrsabino do you think we could add them in future?

@mikheevm we'll keep using the URL as id for them. Actually, it turns out config-service isn't sending any ids at the moment. @fmrsabino do you think we could add them in future?

What id were you using before for each safe-app?

We were using the URL itself (obviously prone to errors).

We were using the URL itself (obviously prone to errors).

It is but the other information provided by the app can also be prone to errors. Would a UUID for each safe-app work for the store indexing purposes?

Absolutely, that would be best. Even a regular incremental id from Django would work.

Absolutely, that would be best. Even a regular incremental id from Django would work.

Issue created here: https://github.com/gnosis/safe-config-service/issues/121
Is this a current blocker?

We were using the URL itself (obviously prone to errors).

Why? 1 URL = 1 app, you can't/shouldn't be able to add an app with the same URL. Why it can't be used as an id?

We were using the URL itself (obviously prone to errors).

Why? 1 URL = 1 app, you can't/shouldn't be able to add an app with the same URL. Why can't it be used as an id?

One issue that I see using the url as a key is for example with the following: https://example.com, https://example.com/, https://example.com/?, https://example.com/#
It can be stored in one of these ways on the service but another "distinct" app might be allowed to exist if it follows a different format but points to the same resource.
Normalising an url can also be done before storing but I wonder with all possible representations of the root path of a url if it is more complex than just adding an id that represents the app. The advantage of the id is that if the app moves to a different resource/url the id remains and only the url is updated.

@mikheevm another reason is if we add a feature like bookmarking (like in the homework challenge), using a URL will only work until the URL is updated on Django.

Is this a current blocker?

@fmrsabino not at all! We'll merge it like this for now.

The chain ID is shown when you load a custom app. Tested with the latest txBuilder https://pr132--safereactapps.review.gnosisdev.com/tx-builder/

Could you please also check that apps received from the service don't get saved in localstorage? I think now we store every app there

I don't know if this is referred to the app storage key, or the local storage as a whole.
Currently only the apps that you load by the "Custom app" feature have their key stored. The apps that show by default are in the local storage only while being in use, as soon as you close them they are removed from the local storage (which I think is the correct behavior)

There are apps that in the console are not showing the ChainID like the snapshot I put in the beginning, where it is shown in the Data.
They show this or something similar:

The apps are:
Gnosis Custom Market maker
Idle v4
Open Zeppelin
Sablier
Synthetix
Maybe is normal for those apps to not show it (I've been using them in rinkeby before) but I think now every app should show the chainId in the data.
@katspaugh @juampibermani you guys let me know, regarding the last point, if this an expected behavior or not

@francovenica last thing is expected, these apps use outdated version of the safe apps sdk

Reopened:

[ ] The chainID filtering is not fixed fully
Steps:

go to the https://safe-config.staging.gnosisdev.com/admin/safe_apps/safeapp/ and check the chainID for the

go to the https://pr2351--safereact.review.gnosisdev.com/mainnet/app/#/safes/0x8675B754342754A30A2AeF474D114d8460bca19b/apps and check safe apps list
Current result: There is no chainID=1 ( mainnet chainID for these apps) for these apps but they are displayed on mainnet.
Expected result: Please , make sure that the filtering is working properly for the all networks. The app should be displayed in the list only if it's either a custom app added on this chain or the app contains proper chainID in the admin panel

@francovenica , I would highly recommend using the whole flow starting from the admin panel to the web UI to check safe app list tasks. Feel free to check test cases for the expected result if you have any questions

@fmrsabino are we doing something wrong or is it on the Django side?

@fmrsabino are we doing something wrong or is it on the Django side?

I've tried with multiple chainId and it seems to be working as expected 🤔

go to the https://pr2351--safereact.review.gnosisdev.com/mainnet/app/#/safes/0x8675B754342754A30A2AeF474D114d8460bca19b/apps and check safe apps list

The app published here seems to be using network_id for the filtering? Is this the latest one? (it should be chainId=#)

Ah, the reason is we stopped auto-deploying to mainnet at some point, so this link is outdated.
It works as expected on Rinkeby. ✅
Thanks for checking, @fmrsabino!

@liliya-soroka sorry for the confusion. This PR was opened almost a month ago when we were still deploying and posting the mainnet link. It's not the case anymore, we'll be testing only on rinkeby in PRs.

@katspaugh , why was it decided to use only Rinkeby in PRs?
We have just added mainnet to the PR about a few months ago, as it was decided that it's useful.

Mainnet deployments were disabled in #2449.
Franco told me he almost never uses them. We still deploy to mainnet if the PR's base is main (i.e. release PRs).
I'll be happy to restore it if you sometimes use it.

yes, I am using it from time to time, as we have really great safes on mainnet with many different test data.
Also, it's useful if the issue was from the user's mainnet safe to check it on the user's safe
Please, keep mainnet in the PRs

Restored in #2483 👍


cmd/go: go fmt doesn't work in symlinked directory

go version go1.11.4 openbsd/amd64
go fmt does not work when used in a symlinked directory.
I have some source buried under gopath, with symlinks for easy access.
This mostly works, but go fmt gets confused.
mkdir -p go/src/a/b/c/d/issueX
ln -s go/src/a/b/c/d/issueX
cd issueX
echo "package main" > main.go
echo "func main() {}" >> main.go

go fmt
stat ../go/src/a/b/c/d/issueX/main.go: no such file or directory
exit status 2

Something has gone wrong here with the combination of $PWD, getcwd, and path creation. go fmt has successfully found the file it wants to format, but constructs a path that doesn't work.
I found this issue about symlinks out of gopath, with a comment from rsc suggesting a symlink into gopath, which I read to mean this should work. https://github.com/golang/go/issues/17451
Note that go build and go install both work fine.
Given a filename (go fmt *.go), it works. It's only "auto-finding" that screws up.

How deep is the actual working directory in your example?
(Could this be another symptom of #30520?)

The example above was run from /home/tedu.

#32725 is technically a duplicate of this issue, but that copy currently has more detail so I'm going to mark them the other way 'round.

Duplicate of #32725.


New Version?

This doesn't seem to work - it's fairly straight forward to install, but testing seems to show it does not function as intended.
Installation was done according to instructions, I have other Lua plugins that function, and talking to a friend seemed to indicate the problem may be it's not version compatible with latest TS3 version. Any chance for an update?

Heya, I'll do some testing later today to check if I can get this working again, thanks for the report!

After the latest update to TS it's suddenly working again. No need! :)

Great!


Pranav Review Ticket Week 1 #2

Crossover Grade: 2.9/3
Crossover Grader: Sanjay
Points will be awarded on these three key elements
(https://pranavp04.github.io/OfficialTri1PranavCSA/)[PranavFastpages]

[x] Seeing that you understand how to use Code.org and that you used it to complement your learning on primitives.  Up to Lesson 5 in the OOP assignment.

Productive Blogging

[x] Create a Jupyter Notebook(s) using IJava kernel and that you could use it to capture key learning on Primitives.

[x] Create a Jupyter Notebook using Bash and that you could use it to show that you have all the key tools installed.   This should also be a Blog for your own personal memory.

[x] Each student captures information  in Fastpages thinking ... how they are going to capture information that will grow to 10 college board units ... how they will recognize something as PBL vs College Board.

Score: 2.9/3
Points:

[ ] Code.org: 1/1. Completed all 5 code.org units correctly and completed checks for understanding.
[ ] Jupyter using IJava: 0.9/1: Completed Java primitives assignment. Demonstrated use of all types of Java Primitive Data. Completed extra credit hack: Triple Double calculator that uses Java Primitives for other uses.
[ ] College Board Thinking: 1/1. Completed study plan that demonstrates how he will learn using collegeboard and prepare for the AP exam over the course of the year.


⚠ Bofrost.at has degraded performance

In c79b098, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 881 ms

Resolved: Bofrost.at performance has improved in 17dffe9 after 6 minutes.


Remove legacy poetry sections from pyproject.toml

Use the newer PEP621 standard. Possibly move away from templating this in favour of allowing poetry to generate it.

The latest poetry still creates [tool.poetry] and [tool.poetry.dependencies] even though I think there are PEP-621 variants for these, so need to check current status of PEP-621 support in poetry.


New images received right at startup get skipped

I've noticed where right after boot if you are too quick to trigger motion it gets skipped as being created before the system started. The "startup time" should be set earlier in the main.ts flow I think.

Closing old issues.


cleaning up and fixing order of variables passed to GoF stats.

Fixes #21

@ldecicco-USGS and @tmills-usgs Can you look this over? I've got some additional explanation in https://github.com/USGS-R/EflowStats/issues/21
Looks like the build isn't passing... need to look into that still.


Data import/export functionality

It would be great to have robust and standardized tooling for data import/export.
For example, it would be useful to be able to cache to disk LayerSolveResults scattering matrices, and amplitudes corresponding to a particular basis.
Pickle files aren't very robust (or secure). Perhaps Hdf5?

I have been using json for this:
https://github.com/invrs-io/totypes/blob/main/src/totypes/json_utils.py

They are about 1.4x the size of the object in memory. (I actually test for it: https://github.com/invrs-io/totypes/blob/main/tests/test_json_utils.py#L93)
Not a huge overhead, and the benefit is the file can be almost visually inspected.


how to feed multiple outputs of previous layer to a successive lstm layer

Hello everyone, I am a fresher in Keras . Now I encountered a problem that how to feed multiple outputs of previous layers to a successive lstm layer.My model(part) is just like below:
batch_size = 64
output_1 = Dense(output_dim=(128, ), input_dim=(200, ))
output_2 = Dense(output_dim=(128,), input_dim=(200, ))
output_3 = Dense(output_dim=(128,), input_dim=(200, ))
output_4 = Dense(output_dim=(128,), input_dim=(200, ))
and then how to feed all above outputs to a lstm ? the input_dim should be like (batch_size, number_of_previous_outputs, 128)
Please make sure that the boxes below are checked before you submit your issue. Thank you!

[x] Check that you are up-to-date with the master branch of Keras. You can update with:
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps

[x] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

[x] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

You can merge the outputs into a single layer and feed it into the lstm.


Why is there .DS_Store file in the root directory?

because @tannerlinsley forgot to exclude mac os x stuff in .gitignore. oops :)