Add "nanoserver" variants using "hello.txt" + powershell

Closes #22
Closes #23
This implements the simpler txt-file-based method @yosifkit proposed in https://github.com/docker-library/hello-world/pull/23#issuecomment-261119434 for creating nanoserver variants. :+1:

Docker@offcl-img-test MINGW64 ~/docker/hello-world ((3f49c5b...))
$ docker build hello-world/nanoserver
Sending build context to Docker daemon 3.584 kB
Step 1/3 : FROM microsoft/nanoserver
 ---> 787d9f9f8804
Step 2/3 : COPY hello.txt C:
 ---> 69b09b634328
Removing intermediate container 094565fb6465
Step 3/3 : CMD powershell -Command Get-Content C:\hello.txt
 ---> Running in c4c94d71997e
 ---> cabbfcafaf4c
Removing intermediate container c4c94d71997e
Successfully built cabbfcafaf4c

Docker@offcl-img-test MINGW64 ~/docker/hello-world ((3f49c5b...))
$ docker run --rm cabbfcafaf4c

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run a Nano Server container with:
 $ docker run -it microsoft/nanoserver powershell

Share images, automate workflows, and more with a free Docker Hub account:
 https://hub.docker.com

For more examples and ideas, visit:
 https://docs.docker.com/engine/userguide/

I believe you could even simplify the nano example further with "type hello.txt" :).

@taylorb-microsoft heh, true -- although that's cmd and powershell is "The Future", right? :innocent:

This looks fine to me!

I'm all about using the smallest tool that fixes the job :)...  PowerShell still takes an extra few ms to start beyond CMD...

haha, this is cheating :-)

@taylorb-microsoft yeah, fair -- I did some benchmarking to test:

CMD ["cmd", "/C", "type C:\\hello.txt"]

real    0m5.321s
real    0m4.422s
real    0m4.858s
real    0m5.800s

CMD ["powershell", "-Command", "Get-Content C:\\hello.txt"]

real    0m8.941s
real    0m8.867s
real    0m9.070s
real    0m8.565s

So, uh, that result is pretty clear.  I'm going to update this PR. :+1:

Updated!

@yosifkit made a good point in passing that helps rationalize this a little -- if we decided to make the Linux variants FROM alpine, we'd be using cat instead of a binary there too :smile:

@tianon is there any hope of making this a multi-arch image with a fat manifest?


CONFLUENT: Sync from apache/kafka/2.5 (18 February 2020)

ERROR: test-cp-downstream-builds #10771 completed with status FAILURE (propagate: false to ignore)

17:07:48
17:07:48  > Task :streams:test-utils:integrationTest
17:07:48  > Task :streams:upgrade-system-tests-0100:integrationTest
17:07:48  > Task :streams:upgrade-system-tests-0101:integrationTest
17:07:48  > Task :streams:upgrade-system-tests-0102:integrationTest
17:07:48  > Task :streams:upgrade-system-tests-0110:integrationTest
17:07:48  > Task :streams:upgrade-system-tests-10:integrationTest
17:07:48  > Task :streams:upgrade-system-tests-11:integrationTest
17:07:48  > Task :streams:upgrade-system-tests-20:integrationTest
17:07:48  > Task :streams:upgrade-system-tests-21:integrationTest
17:07:48  > Task :streams:upgrade-system-tests-22:integrationTest
17:07:48  > Task :streams:upgrade-system-tests-23:integrationTest
17:07:48  > Task :streams:upgrade-system-tests-24:integrationTest
17:07:48
17:07:48  BUILD SUCCESSFUL in 45m 54s
17:07:48  158 actionable tasks: 62 executed, 96 up-to-date

Tests passed
Downstream build failed
ERROR: test-cp-downstream-builds #10772 completed with status FAILURE (propagate: false to ignore)
Finished: FAILURE

due to https://github.com/confluentinc/schema-registry/pull/1337.
I think this is good to merge

git push confluent c2.5
git push confluent c2.5:2.5


add ut for device/cambricon

What type of PR is this?
/kind test
What this PR does / why we need it:
add ut for device/cambricon
Which issue(s) this PR fixes:
Fixes # https://github.com/Project-HAMi/HAMi/issues/569
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

/lgtm


Error: WebSocket is not open: readyState 3 (CLOSED)

I get this error exactly every other time I run the lambda. Only running the code below.
(async () => {
    const browser = await puppeteer.getBrowser({
      headless: true
    });
    await browser.close();
    callback(null, { test: 'hello' });
  })();

START RequestId: 35bb8dae-fe2c-11e8-be11-63fb084f25a3 Version: $LATEST
2018-12-12T16:37:26.901Z	35bb8dae-fe2c-11e8-be11-63fb084f25a3	Error: WebSocket is not open: readyState 3 (CLOSED)
    at WebSocket.send (/var/task/node_modules/ws/lib/websocket.js:322:19)
    at WebSocketTransport.send (/var/task/node_modules/puppeteer/lib/WebSocketTransport.js:57:14)
    at Connection.send (/var/task/node_modules/puppeteer/lib/Connection.js:71:21)
    at Browser._getVersion (/var/task/node_modules/puppeteer/lib/Browser.js:267:29)
    at Browser.version (/var/task/node_modules/puppeteer/lib/Browser.js:242:32)
    at Browser.<anonymous> (/var/task/node_modules/puppeteer/lib/helper.js:145:23)
    at isBrowserAvailable (/var/task/node_modules/puppeteer-lambda/src/index.js:53:29)
    at _getBrowser (/var/task/node_modules/puppeteer-lambda/src/index.js:12:41)
    at Object.exports.getBrowser (/var/task/node_modules/puppeteer-lambda/src/index.js:47:11)
    at /var/task/index.js:15:37
    at exports.handler (/var/task/index.js:34:5)
END RequestId: 35bb8dae-fe2c-11e8-be11-63fb084f25a3
REPORT RequestId: 35bb8dae-fe2c-11e8-be11-63fb084f25a3	Duration: 20020.45 ms	Billed Duration: 20000 ms 	Memory Size: 1024 MB	Max Memory Used: 215 MB
2018-12-12T16:37:46.895Z 35bb8dae-fe2c-11e8-be11-63fb084f25a3 Task timed out after 20.02 seconds

We're also storing headless_shell.tar.gz on S3. It seems to be setup correctly, and as I said it works exactly every other time.

@blkdr  you're right , i just run some test to confirm this. thanks . i will make the changes to add disposer to the browser object


Feature/change search for store

Completes the store migration for ng-rx

replacing with a rebased version


[spi_device] Synchronize control and status bits at regular intervals

Description
spi_device still does not handle status bits like a host would expect of a SPI flash device. The commit phase of status bit synchronization currently only occurs on the rising edge of CSB, but the ReadStatus commands need to allow for changes to the WIP bit without the deassertion of CSB.
This design confuses the visibility of status bits with the requirements for the passthrough gate. It is only the passthrough gate that must wait for the deassertion of CSB to switch on/off.
Instead, for the purposes of representing the status registers, commit staged bits at every 8th SCK edge. Keep the current staging mechanism for synchronization, and also keep the passthrough gate commit on CSB de-assertion.
Semi-related, in that it could use a similar commit point: https://github.com/lowRISC/opentitan/issues/15543

If we want to keep the commit of the WEN bit to happen during the WREN / WRDI commands, we'll also need to squash the hardware update to bypass sck_status_staged (and override the staged bit going into the sck_status_committed flops -- hardware updates always take priority).

In addition, we may want to expose to software when software-initiated writes are dropped. The short async FIFO that brings software updates into the SCK domain is not guaranteed to make forward progress, as it relies on the host to issue SPI transactions.
Notice the ignored ready condition here: https://github.com/lowRISC/opentitan/blob/748235cbb6af38d2e6cf04726704682a6aab363c/hw/ip/spi_device/rtl/spid_status.sv#L187-L195

In addition to the above, the Read Status Register commands currently rotate through all three status registers for even the original RDSR command. This is atypical behavior that precludes the conventional polling enabled by a variety of SPI flash devices.
I think we should make SPI Device IP only read from the targeted 8-bit register for all variants of Read Status Register {1,2,3}.


Fix an include with clang, and issue an error when mold is used with the build id reader

Scope & Purpose
The linker scripts used for the build id reader, introduced in https://github.com/arangodb/arangodb/pull/19610, aren't supported by mold. Make our CMakeLists.txt issue an error when they're used together.
Additionally, the PR https://github.com/arangodb/arangodb/pull/19220 (which replaced jemalloc's libunwind include argument -I with -isystem) stopped my clang from finding libunwind.h. I've now added both arguments, so it hopefully works everywhere.

Did not do a formal review, just tried if it worked on my setup, where I have seen the libunwind issue.
So I can confirm this PR builds on Ubuntu + clang-14 not hitting libunwind issue again.


:sparkles: Query applications

https://github.com/konveyor/tackle2-ui/issues/607

No need to assert the AxiosError type. We are using Axios so the error will always be returned as an AxiosError type from axios.

Closing as files were not syncing with my branch.


"Edit this page" edit the current page instead of page revision

Hello,
When using the Revision plugin to browse an old revision of the page, clicking into the "Edit this page" at the top right of the page, it edits the current page revision instead of the old revision I'm browsing. The only way to edit the old revision is using the "Edit this page" link available at the "Page Tools" at the bottom.

Which plugin? "revisionat Plugin"?

No, it is the built-in Revision Manager - https://www.dokuwiki.org/plugin:revert

I can confirm your last commit fixes the issue. Thank you!


Moved base64 logic into export-factory

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Other... Please describe:

What is the current behavior?

The <script> tag in HTML is used to render code block content.
Issue Number: #35
What is the new behavior?
The logic used to render the code block content is now contained in the export factory, so that the <script> tag can be removed from the default template.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Good job! I will provide some documentation later and release a new version. Thanks for your help!

@all-contributors please add bluenick2k17 for contribution

@all-contributors please add bluenick2k17 for code


Need Clarification for ESP-IDF (ESP32S2) memory footprint (IDFGH-5238)

Hi Team,
I want to understand the memory footprint of ESP-IDF. Hello-world example is taking by default 162816 bytes memory.
Why its consumed >150KB for simple hello world code?
esp-idf/examples/get-started/hello_world/build/hello-world
hello-world.map.txt

Total sizes:
DRAM .data size:   10648 bytes
DRAM .bss  size:    2088 bytes
Used static DRAM:   12736 bytes ( 168000 available, 7.0% used)
Used static IRAM:   43609 bytes (  87463 available, 33.3% used)
Flash code:   80147 bytes
Flash rodata:   28412 bytes
Total image size:~ 162816 bytes (.bin may be padded larger)

Also, I am trying with AWS IoT example code (additionally CLI, NVS, UART, WiFi, ESP-IDF SDK/libs).
Same basic example also consuming the 900KB memory

Total sizes:
DRAM .data size:   17036 bytes
DRAM .bss  size:   30376 bytes
Used static DRAM:       0 bytes (      0 available, nan% used)
Used static IRAM:       0 bytes (      0 available, nan% used)
Used stat D/IRAM:  134071 bytes ( 242761 available, 35.6% used)
Flash code:  640511 bytes
Flash rodata:  151896 bytes
Total image size:~ 896102 bytes (.bin may be padded larger)

We have also checked the .map file, but I can't understand the below names

.debug_* (After disable the debug logs not found measure difference in the code size)
.xt.* (lit, prop...)
.literal.

Will be appreciated your help. Thanks

Hi @Darsh-Dev,
Thanks for being patient while someone got back to you. To make sure we're discussing the same issue, in this case your concern is the application binary size in the flash rather than the RAM usage. Is that right?
We're in the process of preparing a performance guide which includes sections on minimizing the binary size and also the RAM usage of an ESP-IDF app. Will link it to this issue once it's available.
Regarding hello_world, in general ESP-IDF applications only link the code and data which is referenced by the application. However there is some system-level functionality that is included in every app by default even though it's not really used by very simple apps like hello world. (Features such as: high precision timer, task watchdogs, interrupt watchdogs, panic handler code). It is possible to trim some of these down but most non-trivial apps will either need or want them.
Regarding the AWS IoT example, this app contains quite a lot of additional functionality (including the Wi-Fi stack, TCP/IP stack, a compliant TLS stack, and the relevant AWS SDK functionality).
The default ESP-IDF configuration is also targeted for maximum functionality and easy debug-ability, rather than code size. One of the simplest size improvements is to change the compiler optimization level to Size. There are a number of other possible actions listed in the upcoming Performance Guide, will link to this as soon as it's available.
The idf.py size and related tools in the linked Stack Overflow post are very useful as well, the output from these commands can be much easier to understand than reading the map file manually.

.debug_* (After disable the debug logs not found measure difference in the code size)
.xt.* (lit, prop...)

These are metadata sections that are in the ELF file but not the binary file, so they don't affect the final binary size.

.literal.

Literals are generated by the compiler to store values which can't be efficiently encoded in instructions. They contribute to the application binary size, generally the literal size is proportional to the size of the .text sections.


App Services Migration Assistant not working - looking for outbound connection!!

Investigative information
Please provide the following:

UTC Timestamp: GMT + 5:30
Migration Tool App version : 1.0.6
OS Version: Win 10

Repro steps
Provide the steps required to reproduce the problem:
Step 1: Install App Services Migration Assistant in a Windows 10 machine
Step 2: Use IIS default site to run it
Expected behavior
Provide a description of the expected behavior.
The tool should run without any problem and create assessment report.
Actual behavior
Provide a description of the actual behavior observed.
Tool fails and says some outbound connections must be allowed.
Known workarounds
Provide a description of any known workarounds.

It sounds like you saw the "Unable to complete online assessment; this may indicate blocks on outbound connections." message including this link: https://go.microsoft.com/fwlink/?linkid=2112618  - is that right? Have you checked the firewall rules for outbound connections and tried allowing the required outbound connections outlined at that link? Namely, readinessapi.trafficmanager.net is the particular endpoint the tool needs to be able to make an outbound connection to in order to complete the assessment - additional endpoints are needed if you want to continue on to actually doing the migration.

Closing this issue due to lack of activity in last 90 days. Please open a new issue if you are experiencing a similar issue and have checked the outbound connections requirements noted in previous comment.

Closing this issue due to lack of activity in last 90 days. Please open a new issue if you are experiencing a similar issue and have checked the outbound connections requirements noted in previous comment.


Create multiple SCSS files

First of all, incredible theme + exceptional work & support. Kudos to you guys!
I have a doubt that I've been circling around for a while now. I use css/scss/_bscore_custom.scss for all the global custom SCSS.
However, I have a habit of creating separate CSS files for one-off pages to improve performance.
Main question - is there a way to create multiple custom SCSS files that are not combined together?

Closed by https://github.com/bootscore/bootscore/issues/137


[feature] is there any document to learn "provider" from useWalletConnectModal()

What problem does this new feature solve?
if this problem is solved, i can make my project using walletconnect 2.0 in react-native!
Describe the solution you'd like
I enjoyed reading this medium article
https://medium.com/walletconnect/how-to-build-a-react-native-dapp-with-walletconnect-28f08f332ed7
Thanks to you, I have a better understanding of wallet linking.
By the way, I wonder if there is a document to better use the provider created through useWalletConnectModal.
The only way to use the provider I know is
https://docs.walletconnect.com/2.0/advanced/providers/universal
There are only resources here.
In particular, I would like to know more about how to use provider.request. It is difficult to proceed with the project because I do not know the method and its detailed variables.

Thanks @YYTAEHWAN, will look into it and add more documentation


fix: Expose the ProviderConfiguration

Description
Expose / export the ProviderConfiguration.
Related Issues
Fixes #7584.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[X] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[ ] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See [Contributor Guide]).
[ ] All existing and new tests are passing.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] The analyzer (melos run analyze) does not report any problems on my PR.
[X] I read and followed the [Flutter Style Guide].
[X] I signed the [CLA].
[X] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change.
[X] No, this is not a breaking change.

@lesnitsky should I fix the unnecessary_imports?

I realized that it was a stupid question as it was caused by the export, I thought it was present before, should be fixed now @lesnitsky


PROD instance shouldn't add the Release Planner Test tag to the work items

Mitigated in PROD.
A real fix will come in the next deployment

Fixed and deployed


Zone Name Key List

Is there a key to how zone names are assigned in the URL? For example, if the storage account is in a resource group in East US, is it always keyed to z13? If so, is there a list of locations and their zone numbers?

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

ID: dcd3f99a-f522-6edb-6d39-eac1bb917956
Version Independent ID: 69e9c1e5-8deb-8092-46f4-6646d076fbe4
Content: Static website hosting in Azure Storage
Content Source: articles/storage/blobs/storage-blob-static-website.md
Service: storage
GitHub Login: @tamram
Microsoft Alias: tamram

@jpetitte thank you for the question / feedback. As far as I am aware, this is a regional code for internal use and we have no public documentation that itemizes them. I've made some changes to the doc to position that information a bit more clearly. If your ask is to obtain this list, I'll defer to our feature management team. @dineshmurthy can you please comment on whether we can make this list of region code or "zone codes" available for public use?

#reassign: @normesta

@jpetitte In terraform you can get the primary_web_endpoint with the storage account data source https://www.terraform.io/docs/providers/azurerm/d/storage_account.html#primary_web_endpoint

Also running into this issue now. Setting up a new resource group using ARM templates. Before the template is deployed, the location can be selected thus the static website origin url will have different zones in its URL. Anyway to predetermine the zone or is there an Azure CLI command to get this url?


Release Google.Cloud.BigQuery.Storage.V1 version 3.17.0

Changes in this release:
New features

Add experimental ArrowData type and arrow_data field within AppendRowsRequest (commit f556dca)

Created release for Google.Cloud.BigQuery.Storage.V1-3.17.0


Retrieve data with FirebaseObjectObservable

I am trying to build a blog app but I am having problems with displaying a single post page. I am not able to pass the post object retrieved from database in SinglePost class to the PostPage.
I get error: EXCEPTION: TypeError: Cannot read property 'title' of null
Please help.
Route to access the single post page:
app.ts:
new Route({path: '/posts/:key', component: SinglePost, name: 'SinglePost'}),

Retrieve data object from firebase with key:
@Component({
template: `<post-page [post] = "(post | async)"></post-page>`,
  directives: [PostPage]
})
export class SinglePost{
  public post: FirebaseObjectObservable<IPost>;
  constructor(private _routeparams: RouteParams, af: AngularFire ) {
    this.post = af.database.object('/posts/'+this._routeparams.get('key'));
    //this.post.subscribe(snapshot => console.log(snapshot.title));
  }
}

@Component({
  changeDetection: ChangeDetectionStrategy.OnPush,
  directives: [    Autofocus,   ],
  selector: 'post-page',
  template: require('./page.html')
})
export class PostPage {
  @Input() post: IPost;
  @Output() remove: EventEmitter<any> = new EventEmitter(false);
  @Output() update: EventEmitter<any> = new EventEmitter(false);

  editing: boolean = false;
  title: string = '';
  body: string = '';

  editPost(): void {
    this.editing = true;
    this.title = this.post.title;
    this.body = this.post.body;
  }
  savePost(): void {
    if (this.editing) {
      const title: string = this.title.trim();
      const body: string = this.body.trim();
      if (title.length && title !== this.post.title) {
        this.update.emit({title});
      }
      this.stopEditing();
    }
  }
  stopEditing(): void {
    this.editing = false;
  }
}

In your constructor you have:
constructor(private _routeparams: RouteParams, af: AngularFire ) {     this.post = af.database.object('/posts/'+this._routeparams.get('key'));     //this.post.subscribe(snapshot => console.log(snapshot.title));    }
Perhaps try this:
`
import { Routes, RouteSegment, ROUTER_DIRECTIVES } from '@angular/router';
constructor(af: AngularFire, routeSeg: RouteSegment) {
this.postId = routeSeg.getParam('key');
this.post = af.database.object('/posts/'+this.postId;
}
`

Just for the clarification: If I use "subscribe" then post object seems to be accessible as shown below with RouteParams itself.
this.post.subscribe(snapshot => console.log(snapshot.title));
Any thoughts?
Also after implementing your suggestion i m getting the following error, which i am trying to fix right now:
EXCEPTION: Error: Uncaught (in promise): TypeError: Cannot read property 'isSkipSelf' of null

Hmm, there's some oddities in your code that seem to be different than the default angular-cli structure.
For example, you declare your routes via:
new Route({path: '/posts/:key', component: SinglePost, name: 'SinglePost'})
rather than something like:
@Routes([
  { path: '/posts/:key', component: SinglePost, name: 'SinglePost' }
])

Are you using angular-cli to scaffold your project? This will get you the latest version of the router and such. Generally isSkipSelf happens with barrel importing in the wrong order or trying to call multiple routerOutlet directives and stuff. If you're using a slightly older version of angular2, there might even be a different (and deprecated) router altogether that you're using. There were a few syntax changes in the past weeks that are vital to get everything working properly.
Is there anyway you can setup a codepen or similar to see the full extent of your code structure?

My code structure is based on r-park's todo-angular2-firebase sample code.
https://github.com/r-park/todo-angular2-firebase
My blog app which is similar to the above 'todo-angular2-firebase', i have added few additions such as; a separate page for the single post which i am trying to access using post key from database.

Closing due to the inactivity. Feel free to respond if you still need help.


'float' object is not subscriptable

OS: Mac OS High Sierra
Python version: 3.6.3
the command used: python japonicus.py -g --strat custom
Full console response:
evaluated parameters ranges:
interval                      (1, 10)
short                         (1, 16)
long                          (18, 30)
stop                          1.15
signal                        (1, 10)
thresholds.down               (-0.5, -0.1)
thresholds.up                 (0.1, 0.5)
thresholds.high               (70, 90)
thresholds.low                (15, 30)
thresholds.persistence        (1, 4)
bbparameters.optInTimePeriod  (1, 5)
bbparameters.optInNbDevUp     (1, 5)
bbparameters.optInNbDevDn     (1, 5)
bbparameters.optInMAType      (1, 5)

using candlestick dataset 2017-09-30 14:09:00 to 2017-12-31 15:07:00

	======  EPOCH 0/400  ======
Locale1
Traceback (most recent call last):
  File "japonicus.py", line 99, in <module>
    gekko_generations(TargetParameters, GenerationMethod, EvaluationMode, web=APP)
  File "/Users/hollarves/dev/gekkoJaponicus/evolution_generations.py", line 103, in gekko_generations
    World.runEPOCH()
  File "/Users/hollarves/dev/gekkoJaponicus/promoterz/sequence/parallel_world.py", line 12, in world_EPOCH
    LOCALE.run()
  File "/Users/hollarves/dev/gekkoJaponicus/promoterz/locale.py", line 51, in run
    self.loop(self.World, self)
  File "/Users/hollarves/dev/gekkoJaponicus/promoterz/sequence/standard_loop.py", line 18, in standard_loop
    locale.population)
  File "/Users/hollarves/dev/gekkoJaponicus/promoterz/validation.py", line 32, in validatePopulation
    phenotype=IndividualToSettings(population[p])
  File "/Users/hollarves/dev/gekkoJaponicus/promoterz/representation/oldschool.py", line 28, in constructPhenotype
    Value = R(individue[K], stratSettings[AttributeNames[K]])
  File "/Users/hollarves/dev/gekkoJaponicus/promoterz/representation/oldschool.py", line 23, in <lambda>
    R = lambda V, lim: ((lim[1]-lim[0])/100) * V + lim[0]
TypeError: 'float' object is not subscriptable

I'm not sure if this is happening because I'm using ta-lib indicators, but I don't think so. The strat works perfectly using Gekko through the terminal. The process terminates after this response. If I use -w the process continues, but I keep getting a file not found error. (some .csv file)

It was a simple typo. My bad for opening the issue.


Research how to make block explorer data available to library user

*Etherscan
*Infura
*EthQL
*Quickblocks
*Alethio

Perhaps helpful? https://medium.com/dsys/ethereum-meet-graphql-c28f3402fe8f

Can we have?

token metadata
contract nametags
verified contracts
token names
dapps
function names
uPort AppManager Dapp IDs


Added coverage of methods translateVirtualCluster and translateCors to RdsJson class

Description: Added coverage of methods translateVirtualCluster and translateCors to RdsJson class
Risk Level: Low
Testing: unit test
Release Notes: N/A
Fixes #Issue: #1963
Signed-off-by: Andrzej Wawrzyniak<EMAIL_ADDRESS>

Thank you @andrzejwaw! We are actually in the process of trying to delete all this code so not sure if it's worth covering or not, though it definitely can't hurt for now. @derekargueta wdyt?

@mattklein123 yeah doesn't hurt to have - gives us some buffer room on coverage. Per the deprecation policy, we have 2 release cycles until we can really clean out everything.
Only thing I'd object to is adding v1 configs to filter tests which isn't the case here 🙂


Updated Specialisations.md's Machine Learning

Added this specialisation from University Of Michigan On Coursera. It's free if you do an audit per course of the specialisation.

Thank you for your suggestion! The updated OSDSM incorporates resources on this topic. Many were in competition for the recommended courses, and this was considered.


question - need socket interface

the chips i need to flash are soldered onto their power supplies - as in most of the LED bulbs i can find around here.
i have built a wifi linked flashed using an esp8266 chip, provides a telnet service direct to the UART, and i have rewritten the hid_download_py scripts to operate over sockets, instead of serial, and all of this works quite well, and can be powered by the supply on the target board.
could itchiptool be converted to operate over wifi socket 23?
i presume it can - should i do the changes, and would these be useful to you?

It should be possible, but you would need to provide a socket based backend instead of the usual UART. There are some functions, such as baudrate setting, byte availability checking, etc. that would need to be reimplemented. Perhaps the simplest option would be to write a class compatible with PySerial.
The question is - in which cases would that be necessary? I assume you're connecting an esp8266 to the LED bulbs, instead of connecting an UART TTL adapter to them.
Sure, connecting UART while powering the device from mains would be extremely dangerous, but why not simply apply 3.3V to the chip instead?
Usually these kinds of smart devices have some kind of low voltage regulator in the end, that steps the voltage down to 3.3V. I tend to either apply power at its output, or at its input (e.g. 5V) which gives me a stable supply.


Polish Spellbook

Issues right now:
Sneaking and scrolling while holding the spellbook in your main hand does not work.
You can scroll through your spellbook infinitely, rather than not letting you scroll past an unedited page, allowing you to lose your place in the book.
If this is to be used as a library of foci, you have to remember each foci's position relative to eachother, which is a pain for more and more foci in the spellbook.
Spellbook's tooltip does not allow renaming foci, and if it could, the tooltip always reads "hex.spellbook.tooltip.page" when selecting it.
You have to hover over the spellbook with your cursor to read the contents of said page.
What I propose
Fix sneak-scrolling, tooltip, and being able to scroll infinitely.
The spellbook should be able to be right-clicked to open to see the contents of it. Foci should be able to be renamed, sorted, and grouped, and said groups being able to be renamed and sorted (and maybe grouped lol)
Add spells to shift what focus is selected in the spellbook for awesome daisy-chains of spells. This also has the consequence of reaching The End and getting chorus fruit for the crafting recipe actually a worthwhile upgrade.

is this fixed with the introduction of names per page?

Moving spells around in the spellbook is still a pain and you cannot select the pages of the book with spells yet, but it's improved a lot.
It still also has the issue that you cannot see the entire contents of the book at once, you have to scroll through every spell which discourages big books.

I think the combination of all of wire's polish changes + akashic records makes this closed? at the least, I haven't seen anyone else raise concerns over it.


add separate header and footer tracking code inputs

https://github.com/concrete5/concrete5/issues/3711

shouldn't there be a migration script that moves the old tracking code to the new one? Maybe I've missed something, but I think this would remove all existing tracking codes, wouldn't it?

shouldn't there be a migration script

https://github.com/MrKarlDilkington/concrete5/pull/1

@MrKarlDilkington https://github.com/MrKarlDilkington/concrete5/pull/1 should be merged before this PR is accepted

@Remo
Thank you for pointing that out. I didn't take existing tracking codes into consideration.
@mlocati
Thank you for adding the version migration method. I didn't know this could be done. I am adding your commits to my notes.

This is great, thanks to both of you.


Move "star rating" devsite-rating-star to the bottom near feedback

Welcome! Please use this template for reporting documentation issues on https://developers.google.com/web/.
For questions about Chrome DevTools, checkout the
google-chrome-devtools tag on StackOverflow.
For questions about Chrome, check the google-chrome
tag. If you think you've found a Chrome bug, check out our
feedback page for more details on how to file it.
web fundamentals documentation
Page Affected: Web Fundamentals documentation pages (at least)
for example, I am on https://developers.google.com/web/fundamentals/performance/critical-rendering-path/measure-crp?authuser=0
What needs to be done?
Move the star rating to the feedback section, I do want to rate the site documentation I am reading, but I have to scroll to the top to rate after reading, then scroll back down to give feedback/move to next page. Can we combine this area or make the rating sticky, sort of like how Medium does Claps?

[ ] Appropriate type-something label has been added.
[ ] Appropriate section-something label has been added.

Also, should ratings be stored? I was also trying to star them so I know that I read something already 😅


ISSUE importing imaginary - numpy version

>>> import imaginairy
/Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: dlopen(/Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/torchvision/image.so, 0x0006): Symbol not found: __ZN3c106detail19maybe_wrap_dim_slowExxb
  Referenced from: <8080486D-E510-3000-AA6A-F3AD49ACC172> /Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/torchvision/image.so
  Expected in:     <8ADDD67A-2C07-3290-B140-DF1BD644AB8B> /Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/torch/lib/libc10.dylib
  warn(f"Failed to load image Python extension: {e}")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/imaginairy/__init__.py", line 7, in <module>
    from .api import imagine, imagine_image_files  # noqa
  File "/Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/imaginairy/api.py", line 16, in <module>
    from imaginairy.enhancers.clip_masking import get_img_mask
  File "/Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/imaginairy/enhancers/clip_masking.py", line 8, in <module>
    from torchvision import transforms
  File "/Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/torchvision/__init__.py", line 7, in <module>
    from torchvision import models
  File "/Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/torchvision/models/__init__.py", line 18, in <module>
    from . import quantization
  File "/Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/torchvision/models/quantization/__init__.py", line 3, in <module>
    from .mobilenet import *
  File "/Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/torchvision/models/quantization/mobilenet.py", line 1, in <module>
    from .mobilenetv2 import *  # noqa: F401, F403
  File "/Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/torchvision/models/quantization/mobilenetv2.py", line 6, in <module>
    from torch.ao.quantization import QuantStub, DeQuantStub
ImportError: cannot import name 'QuantStub' from 'torch.ao.quantization' (/Users/jimmygunawan/miniforge3/lib/python3.9/site-packages/torch/ao/quantization/__init__.py)

And during the pip installation of ImaginAIry it complains:
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
(base) jimmygunawan@192-168-1-114 ~ % pip3 install numpy
Collecting numpy
Using cached numpy-1.23.3-cp39-cp39-macosx_11_0_arm64.whl (13.4 MB)
Installing collected packages: numpy
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow-macos 2.6.0 requires numpy~=1.19.2, but you have numpy 1.23.3 which is incompatible.
scipy 1.7.1 requires numpy<1.23.0,>=1.16.5, but you have numpy 1.23.3 which is incompatible.

I tried a different login account and reinstall using pip3, still many errors:
 WARNING: Value for prefixed-purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>   distutils: /private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-p5pkoryp/normal/lib/python3.9/site-packages   sysconfig: /Library/Python/3.9/site-packages   WARNING: Value for prefixed-platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>   distutils: /private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-p5pkoryp/normal/lib/python3.9/site-packages   sysconfig: /Library/Python/3.9/site-packages   WARNING: Additional context:   user = False   home = None   root = None   prefix = '/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-p5pkoryp/normal'   WARNING: Value for prefixed-purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>   distutils: /private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-p5pkoryp/overlay/lib/python3.9/site-packages   sysconfig: /Library/Python/3.9/site-packages   WARNING: Value for prefixed-platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>   distutils: /private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-p5pkoryp/overlay/lib/python3.9/site-packages   sysconfig: /Library/Python/3.9/site-packages   WARNING: Additional context:   user = False   home = None   root = None   prefix = '/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-p5pkoryp/overlay'
WARNING: Value for prefixed-purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
 distutils: /private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-l128lq7n/normal/lib/python3.9/site-packages
 sysconfig: /Library/Python/3.9/site-packages
 WARNING: Value for prefixed-platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
 distutils: /private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-l128lq7n/normal/lib/python3.9/site-packages
 sysconfig: /Library/Python/3.9/site-packages
 WARNING: Additional context:
 user = False
 home = None
 root = None
 prefix = '/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-l128lq7n/normal'
 WARNING: Value for prefixed-purelib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
 distutils: /private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-l128lq7n/overlay/lib/python3.9/site-packages
 sysconfig: /Library/Python/3.9/site-packages
 WARNING: Value for prefixed-platlib does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
 distutils: /private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-l128lq7n/overlay/lib/python3.9/site-packages
 sysconfig: /Library/Python/3.9/site-packages
 WARNING: Additional context:
 user = False
 home = None
 root = None
 prefix = '/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-l128lq7n/overlay'
 Installing build dependencies ... done
 Getting requirements to build wheel ... error
 ERROR: Command errored out with exit status 1:
  command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/tmpf4ls5epu
      cwd: /private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-install-_ae40vfu/tokenizers_faca50ef31204c37b203b2ba02582246
 Complete output (20 lines):
 Traceback (most recent call last):
   File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
     main()
   File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
     json_out['return_val'] = hook(**hook_input['kwargs'])
   File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 117, in get_requires_for_build_wheel
     return hook(config_settings)
   File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/build_meta.py", line 154, in get_requires_for_build_wheel
     return self._get_build_requires(
   File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/build_meta.py", line 135, in _get_build_requires
     self.run_setup()
   File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/build_meta.py", line 150, in run_setup
     exec(compile(code, __file__, 'exec'), locals())
   File "setup.py", line 2, in <module>
     from setuptools_rust import Binding, RustExtension
   File "/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-l128lq7n/overlay/lib/python3.9/site-packages/setuptools_rust/__init__.py", line 1, in <module>
     from .build import build_rust
   File "/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-build-env-l128lq7n/overlay/lib/python3.9/site-packages/setuptools_rust/build.py", line 23, in <module>
     from setuptools.command.build import build as CommandBuild  # type: ignore[import]
 ModuleNotFoundError: No module named 'setuptools.command.build'
 ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/12/57/da0cb8e40437f88630769164a66afec8af294ff686661497b6c88bc08556/tokenizers-0.12.1.tar.gz#sha256=070746f86efa6c873db341e55cf17bb5e7bdd5450330ca8eca542f5c3dab2c66 (from https://pypi.org/simple/tokenizers/). Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/tmpf4ls5epu Check the logs for full command output.

ERROR: Command errored out with exit status 1:
   command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-install-_ae40vfu/basicsr_c7d13ff9e29f4b0997198076ce38a3f7/setup.py'"'"'; __file__='"'"'/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-install-_ae40vfu/basicsr_c7d13ff9e29f4b0997198076ce38a3f7/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-wheel-z0ru1_84
       cwd: /private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-install-_ae40vfu/basicsr_c7d13ff9e29f4b0997198076ce38a3f7/
  Complete output (27 lines):
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-install-_ae40vfu/basicsr_c7d13ff9e29f4b0997198076ce38a3f7/setup.py", line 147, in <module>
      setup(
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 152, in setup
      _install_setup_requires(attrs)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/dist.py", line 806, in fetch_build_eggs
      resolved_dists = pkg_resources.working_set.resolve(
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 766, in resolve
      dist = best[req.key] = env.best_match(
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1051, in best_match
      return self.obtain(req, installer)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1063, in obtain
      return installer(requirement)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/dist.py", line 877, in fetch_build_egg
      return fetch_build_egg(self, req)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/installer.py", line 80, in fetch_build_egg
      wheel.install_as_egg(dist_location)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/wheel.py", line 95, in install_as_egg
      self._install_as_egg(destination_eggdir, zf)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/wheel.py", line 103, in _install_as_egg
      self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/wheel.py", line 124, in _convert_metadata
      os.mkdir(destination_eggdir)
  FileExistsError: [Errno 17] File exists: '/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-install-_ae40vfu/basicsr_c7d13ff9e29f4b0997198076ce38a3f7/.eggs/torch-1.12.1-py3.9-macosx-10.9-universal2.egg'
  ----------------------------------------
  ERROR: Failed building wheel for basicsr
  Running setup.py clean for basicsr
  ERROR: Command errored out with exit status 1:
   command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-install-_ae40vfu/basicsr_c7d13ff9e29f4b0997198076ce38a3f7/setup.py'"'"'; __file__='"'"'/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-install-_ae40vfu/basicsr_c7d13ff9e29f4b0997198076ce38a3f7/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all
       cwd: /private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-install-_ae40vfu/basicsr_c7d13ff9e29f4b0997198076ce38a3f7
  Complete output (27 lines):
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-install-_ae40vfu/basicsr_c7d13ff9e29f4b0997198076ce38a3f7/setup.py", line 147, in <module>
      setup(
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 152, in setup
      _install_setup_requires(attrs)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/dist.py", line 806, in fetch_build_eggs
      resolved_dists = pkg_resources.working_set.resolve(
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 766, in resolve
      dist = best[req.key] = env.best_match(
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1051, in best_match
      return self.obtain(req, installer)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1063, in obtain
      return installer(requirement)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/dist.py", line 877, in fetch_build_egg
      return fetch_build_egg(self, req)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/installer.py", line 80, in fetch_build_egg
      wheel.install_as_egg(dist_location)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/wheel.py", line 95, in install_as_egg
      self._install_as_egg(destination_eggdir, zf)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/wheel.py", line 103, in _install_as_egg
      self._convert_metadata(zf, destination_eggdir, dist_info, egg_info)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/wheel.py", line 124, in _convert_metadata
      os.mkdir(destination_eggdir)
  FileExistsError: [Errno 17] File exists: '/private/var/folders/sc/60t303_n5ysgp00p2d7gg6p80000gq/T/pip-install-_ae40vfu/basicsr_c7d13ff9e29f4b0997198076ce38a3f7/.eggs/torch-1.12.1-py3.9-macosx-10.9-universal2.egg'
  ----------------------------------------
  ERROR: Failed cleaning build dir for basicsr

Okey, I think my issue is not using environment, and it was messy. But in the end I was following this steps here:
https://weirdwonderfulai.art/resources/running-stable-diffusion-on-m1-m2-mac/
And then installing imaginAIry and manage to have it running without issue within Python environment.
The issue now is that it's running super slow at M1 8GB, but I want to open a new issue.


[Question] Why not to use erlport?

Hello! I was looking into the the Erlang code and thought: why not to use erlport instead of creating a new operating system process to run the Python wrapper? With erlport you can actually run more than one Python instance and will have the benefit of loading the whole Python interpreter and the wrapper code into memory only when initializing elibcloud.

Hi,

why not to use erlport instead of creating a new operating system process to run the Python wrapper?

I wasn't considering erlport because I didn't know about it :)

With erlport you can actually run more than one Python instance and will have the benefit of loading the whole Python interpreter and the wrapper code into memory only when initializing elibcloud.

Hm, having a separate Python process for each request has some cost, but also advantages. E.g. once we had a problem that a Python process ate so much memory that the OS killed it. If we had one Python process, errors like this would kill all requests, not only the problematic one. They would also be harder to diagnose: now we can see which is the misbehaving Python process.


Consider what it would look like to allow tools to provide types to the config

Somehow the runtime/compilation  aspect will need to expose the set of library targets to the eval phase
#if canImport(PackageConfig)
import PackageConfig
import Danger

// Generic
let config = PackageConfig([
    "linter": ["rules": ["allowSomething"]]
])

// Extension provided by Danger
config.danger = [
   .disabled(true)
]
#endif

The settings will need to be coerced though the JSON and back somehow, but maybe codable can do that?

This is in with #4


Can't build with Xcode 7

I'm trying to build brightray as part of electron. I'm getting the following error:
xcodebuild: error: SDK "macosx10.10" cannot be located.
Output of -showsdks:
xcodebuild -showsdks
OS X SDKs:
	OS X 10.11                    	-sdk macosx10.11

iOS SDKs:
	iOS 9.0                       	-sdk iphoneos9.0

iOS Simulator SDKs:
	Simulator - iOS 9.0           	-sdk iphonesimulator9.0

watchOS SDKs:
	watchOS 2.0                   	-sdk watchos2.0

watchOS Simulator SDKs:
	Simulator - watchOS 2.0       	-sdk watchsimulator2.0

This is, I suspect, because I've updated to Xcode 7 (which comes with SDK for 10.11), but I'm still running OS X Yosemite (as El Cap isn't out yet).
Any ideas how to manually set the SDK version to 10.11?

It looks like the SDK is set in brightray.gypi: https://github.com/atom/brightray/blob/25f3a9d0a5b73ec170a65f4e2e4c9ad91e23fc8c/brightray.gypi#L36

Thanks for the quick response @joshaber - that's fixed it (tho temporarily I suppose)

FWIW, before changing the value as @joshaber suggested, I tried updating to El Capitan GM, but had the same issue (obviously, seeing as the value is hardcoded).
Might be worth updating the script to a required minimum or advisable version, and querying for the currently installed versions so you can choose an appropriate version at runtime. Otherwise this is going to happen every time a new Xcode seed comes out.
I'll leave this task open (and update the title) to track that issue.


question: How to mount application to another main application correctly

Hi!  what you are developing here is great!
I have two vue applications named 'Layout' and 'app2' and the 'Layout' is activied at all time. I use singe-spa-vue 'el' option to make 'app2' mounted the specified dom node of 'Layout'. It's everthing ok when I first click into 'app2' but when I refresh page it's wrong for something because 'Layout' also refresh and 'app2' cannot find the dom node
I don’t know How to fix it.
My English is not very good. I hope you can understand my problem

It's everthing ok when I first click into 'app2'

when I refresh page

I use singe-spa-vue 'el' option to make 'app2' mounted the specified dom node of 'Layout'.

This is the problem. By trying to mount app2 inside of Layout you are creating a dependency where Layout must be loaded and mounted before app2. Single-spa simply tries mounting the applications as soon as they have been dowloaded. We do not encourage this strategy because of that. You should try to find a way to make Layout and app2 sibling elements instead. That would avoid this issue entirely. This is ideal because then you do not need to create that rendering dependency and the applications can remain much more independent. Definitely try to achieve this first, it will be the best solution in the long run.
But I realize that this is not always possible so you could also consider using JavaScript imports instead. This would mean that in Layout, it will need its own routing config, import the component you need (eg. import App2 from '@your-org/app2'), and add a route config that renders that component when a location matches. This is kind of duplicating the work of single-spa, and is limited to only one framework but its an option.

Thanks Carlos, you are completely right. One thing I'll add is that we created single-spa-layout as an official way to support laying out your microfrontends. It is currently in beta and we'd appreciate any feedback you have on it if you try it out. With single-spa-layout, you no longer use the el option in single-spa-vue, but instead define the layout centrally in your root config.

This issue provides a sufficient answer so I'm going to close.


Working on a new version

Im working on a new version of this project since this one is dead and not working properly anymore, if you want any details add me on discord: vittisn

hello I'm working on implementing this UI. I would like to hear more about the new version. My Discord name is gorisii.

hello I'm working on implementing this UI. I would like to hear more about the new version. My Discord name is gorisii.

added u on dc cus i'm also tryna get this working:)

Im working on a new version of this project since this one is dead and not working properly anymore, if you want any details add me on discord: vittisn

added u as well on dc, got this far so far: https://i.imgur.com/m2eq0ah.png
P.S. I can do any image work as needed for the overlay e.g. include new agents such as Clove etc.


P2PKH address for the uncompressed public key

Code:
from hdwallet import HDWallet
from hdwallet.symbols import BTC as SYMBOL
hdwallet: HDWallet = HDWallet(symbol=SYMBOL)
PRIVATE_KEY: str = hashlib.sha256(b"asdasd").hexdigest()
hdwallet.from_private_key(PRIVATE_KEY)
print("Uncompressed:", hdwallet.uncompressed())
print("P2PKH Address:", hdwallet.p2pkh_address())

Result:
Uncompressed: fb2b1bf2bcb92b11db6caee48f4a0656dddb0104abc8583a67be81581868ae31551a7aeb83a4004d4b169d4d8020f0b1fd4ae977e4bd9da0d9f3414a0c0353c5
P2PKH Address: 1AQYRDSw3eUo3LuWbdENKdLudxJ2ENuUwN

Problems:

Shouldn't you add 04 to the beginning of the uncompressed key?
The address P2PKH Address: 1AQYRDSw3eUo3LuWbdENKdLudxJ2ENuUwN is the address of the compressed public key, can you add the P2PKH Address for the uncompressed public key?
For the example above, from my calculation the P2PKH address for the uncompressed public key is 1Mw7FXN7D7du9umtbkhov2ftELKQw1wFor

Duplicated https://github.com/meherett/python-hdwallet/issues/50


XCode 6.2 support

Any one knows how to install Codepilot on XCode 6.2?

Fixed this one, you can get my fork, build it and it'll be working: https://github.com/cjcoax/CodePilot

Could you please create a Pull Request for that?

XCode support has been added to the master branch.


Layout and style: convey direction of relationships

At the moment, it's often unclear:
a) whether company A owns/controls company B or the converse
b) which company (or potentially companies) is at the 'root' of a tree
For example, go to this Armenian declaration and use the 'Download as JSON' button (top right). The visualiser displays this data as:

BOVS deals with directionality and clarity of the graph by:

Using arrows
Layout-wise, essentially using columns or rows to order series of nodes

We need at least (1) and ideally (2), IMO.

(I've tagged this as a bug since it's currently possible to misunderstand data due to this issue.)

Estimate: Small if the new SVG formatting permits easier edge positioning/termination, Medium if we need to manually calculate or redesign how we display directionality.

Personally I think implement arrowheads by overlaying a single triangle at any connection point that has received a line.

This is how @Lathrisk 's work is looking so far:

"The arrowheads don't currently align perfectly with the edges, and where the line is thick we see the edge protrude from the sides of the arrowhead. I'm going to work on this a little more but good to know what the constraints/demands or on this and when to cut my losses."

good to know what the constraints/demands or on this and when to cut my losses

My view on this is.... visual perfection in this tool is not necessary. (Nice, but not necessary.) So, but all means, see if some tweaking will neaten things up a bit, but it's not worth burning days of work on. (In the longer run, we might decide that super-slick visuals are worth the effort and devote 20 days of dev time remodelling the svg node output etc etc. But where we're at right now, is just making sure that information is accurately conveyed.)
@StephenAbbott - that sound ok to you?
@Lathrisk - you mentioned another ticket about the broadness of the edges? And its relevance to the arrow head look.

@kd-ods @StephenAbbott Yes, there is a ticket in the backlog to look at line weight which will have an impact on these artefacts. For example if the maximum line weight is less than those shown here then the problem may never occur. I think this is something we can come back to, but I'm wary of sinking too much time into this now, especially if resolving other issues impacts this.

Just my tuppence worth – I don't think it's important to get it to align perfectly. For instance you could even have the arrows terminating short of the node, if that's easier (see below). The only thing that's essential is just that it's clear which nodes are connected, and in which direction.

If text labels will overlay arrows, it would be better if they can be given a white background to aid reading the text.

We're in agreement, @kd-ods and @Convincible. The current implementation for arrowheads does enough to convey directionality which is the key aim here. Visual perfection is not necessary.


Server Error > Campaigns does not handle exception when user isn't logged in and open an event

When a guest user (not logged in) goes to a any campaign and try to open an event an unhandled exception shows up [Server Error]
Steps
Goto campaigns
Open any listed campaign
Select any event
Stacktrace:
The page cannot be displayed because an internal server error has occurred.
An unhandled exception occurred while processing the request.
NullReferenceException: Object reference not set to an instance of an object.
MoveNext in EventController.cs, line 54
Stack Query Cookies Headers
NullReferenceException: Object reference not set to an instance of an object.
MoveNext in EventController.cs
var viewModel = await _mediator.SendAsync(new ShowEventQuery { EventId = id, UserId = user.Id });
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
ValidateEnd
MoveNext
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
GetResult
MoveNext in TokenProtectedResource.cs
await _next(httpContext);
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
MoveNext
ThrowForNonSuccess
HandleNonSuccessAndDebuggerNotification
MoveNext
Show raw exception details

Was fixed by #1327


Add issue templates HEAVILY inspired by Next.js

Please consider this a tribute. I found few ways to improve on how next organised their issue templates.

What do you think about making each of the sections' text commented out so we don't end up with a bunch of boilerplate text in issues if folks forget to delete it?

🤔 Sure, I'm deep in something else now but I will do this later


Vendor engine-api to 70d266e96080e3c3d63c55a4d8659e00ac1f7e6c

Signed-off-by: Qiang Huang<EMAIL_ADDRESS>

Looks like this depends on the changes in https://github.com/docker/docker/pull/20565

@thaJeztah Thanks for the link, #20565 includes this PR, if it's merged, this PR will not be needed, if #20565 will be merged soon, this PR can be closed now. Or maybe we can merge engine-api part in this PR, then #20565 can be rebased and reviewed easier. Your call :)

@hqhq I suggested to split that PR, because it's now doing multiple things. Not sure we'd be able to merge this PR without the related changes for the string stuff

LGTM

LGTM if windows is green :+1:

:tada: :confetti_ball:


fix: removing extra check for Terms and conditions acceptance

Is there a supporting issue with the reason for this change? If this is merged, the user will simply be given a 403 forbidden error with no steps guiding them to complete the T&Cs?

Please ignore for the moment

Comming back to this. I wanted to see how we can detect this specific error from the server.
My understanding is that the only reason for extra check was that interactive mode for Kafka requires user to specify 3 values before they will get notified about lack of terms and conditions acceptance.
With different services now offering different terms and conditions this becomes more and more convoluted.
@pmuir proposal was to keep different terms keys outside CLI which is great idea but considering how little value IMHO we getting from checking terms upfront for Kafka I think we might just remove it and provide better message from backend to support it.

Yeah, I'm really unhappy about a backwards step in usability that is caused by stripping this out.
A meta api to check all conditions is possibly a good idea. Can you propose this @wtrocki

My understanding is that the only reason for extra check was that interactive mode for Kafka requires user to specify 3 values before they will get notified about lack of terms and conditions acceptance. Is that right?

Yes, but upon reading the discussions about this, we can actually be more flexible with the following flow:

User submits command request to create Kafka
If API returns KAFKAS-MGMT-12 error code (indicating terms not accepted) then the CLI will "wait" and allow the user to read and accept the T&Cs, where they can press enter to submit the creation request again, without having to restart the entire process.

This still is not possible currently without the AMS SDK integration, as the backend does not return the specific information about the T&Cs - i.e. the URL to them.

and provide better message from backend to support it.

We usually don't want to print out the error message from the API directly, however I think in this case it could be okay, so long as the messaging is clear and makes sense to the user. It would also mean we could proceed with the suggested flow above.

My understanding is that the only reason for extra check was that interactive mode for Kafka requires user to specify 3 values before they will get notified about lack of terms and conditions acceptance. Is that right?

Yes, but upon reading the discussions about this, we can actually be more flexible with the following flow:

User submits command request to create Kafka
If API returns KAFKAS-MGMT-12 error code (indicating terms not accepted) then the CLI will "wait" and allow the user to read and accept the T&Cs, where they can press enter to submit the creation request again, without having to restart the entire process.

This works well for the direct invocation of the command with paramters, but for the wizard flow it's still much better to check the preconditions up front.

I was actually thinking about this in a wizard flow - we still have the values the user had submitted.
$ rhoas kafka create
? Name: enda-dev
? Cloud Provider: aws
? Cloud Region: eu-west-1

Please agree to the terms and conditions etc etc: https://terms-and-conditions.com.

Press enter to submit again...

it's still much better to check the preconditions up front.

Agreed, this solution was a middle ground to decoupling the CLI and T&Cs event code, but also saving the user from having to reenter their data, as would be the case if we simply removed the pre-check.
A metadata API or YAML file would mean the existing flow could stay.

but for the wizard flow it's still much better to check the preconditions up front.

For me, this is not something I would see as a problem considering how much complexity of reading metadata for each service, updating it, documenting for developers etc.
Service registry creation is now broken so it will be good if we decide short and long term plan
https://github.com/redhat-developer/app-services-cli/issues/1275
For me short term plan would be to remove terms and condition checks.

I really like what @craicoverflow is suggesting. It resolves UX problem and minimizes complexity.
Number of files changed in this PR speaks for itself :D

I've already expressed my opinion. This is a dreadful approach.

superseded by #1276


Unable to build from Git

Describe the bug
Compiling from master yielded the following error"
error[E0603]: module `ssa` is private
  --> crunchy-cli-core\src\utils\download.rs:16:17
   |
16 | use rsubs_lib::{ssa, vtt};
   |                 ^^^ private module
   |
note: the module `ssa` is defined here
  --> C:\Users\ךינשגכהד\.cargo\registry\src\index.crates.io-6f17d22bba15001f\rsubs-lib-0.3.0\src\lib.rs:31:1
   |
31 | mod ssa;
   | ^^^^^^^

error[E0603]: module `vtt` is private
  --> crunchy-cli-core\src\utils\download.rs:16:22
   |
16 | use rsubs_lib::{ssa, vtt};
   |                      ^^^ private module
   |
note: the module `vtt` is defined here
  --> C:\Users\ךינשגכהד\.cargo\registry\src\index.crates.io-6f17d22bba15001f\rsubs-lib-0.3.0\src\lib.rs:33:1
   |
33 | mod vtt;
   | ^^^^^^^

For more information about this error, try `rustc --explain E0603`.
warning: `crunchy-cli-core` (lib) generated 1 warning
error: could not compile `crunchy-cli-core` (lib) due to 2 previous errors; 1 warning emitted
warning: build failed, waiting for other jobs to finish...
error: failed to compile `crunchy-cli v3.6.1 (https://github.com/crunchy-labs/crunchy-cli#53a710a3)`, intermediate artifacts can be found at `C:\Users\0BAC~1\AppData\Local\Temp\cargo-installQeedCn`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

**To Reproduce**
Steps / command to reproduce the behavior:

~> cargo install --git

**Expected behavior**

Successful compilation

**Client (please complete the following information):**
 - OS: Windows
 - Version: master (53a710a)

until the problem is resolved, you can try to change rsubs-lib = ">=0.2.1" to rsubs-lib = "0.2.1" in crunchy-cli-core/Cargo.toml

Issue is now fixed


Refactor: Adopt src layout for log10 package

Move log10 package into src directory
Update pyproject.toml for new structure

applied the change in #316


Latest insider bricks extension host

Issue Type: Bug
Steps to Reproduce:

Update with latest Update
Restart
Extension host terminated unexpectedly

Does this issue occur when all extensions are disabled?: No
ERR Reveriver for 'viewType' already registered: Error: Reveriver for 'viewType' already registered
    at e.registerReviver (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3915:612)
    at e (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3916:687)
    at t.create (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:95:103)
    at e._createInstance (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1289:816)
    at e.createInstance (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1289:70)
    at t._createExtensionHostCustomers (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2855:55)
    at file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2853:295
    at Object.g [as _notify] (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:146:572)
    at Object.enter (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:149:924)
    at n.Class.derive._creator._run (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:151:719)
    at n.Class.derive._creator._completed (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:151:160)
    at Object.g [as _notify] (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:146:572)
    at Object.enter (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:149:924)
    at n.Class.derive._oncancel._run (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:151:719)
    at n.Class.derive._oncancel._completed (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:151:160)
    at file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2779:6
    at e.fire (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:166:764)
    at Socket.<anonymous> (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:293:1008)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)
errors.ts:48 WARNING: Promise with no error callback:245
errors.ts:49 {exception: Error: Reveriver for 'viewType' already registered
    at e.registerReviver (file:///Applications/Vi…, error: null, promise: n.C…s.d…e._creator, handler: undefined, id: 245, …}error: nullexception: Error: Reveriver for 'viewType' already registered
    at e.registerReviver (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3915:612)
    at e (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:3916:687)
    at t.create (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:95:103)
    at e._createInstance (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1289:816)
    at e.createInstance (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1289:70)
    at t._createExtensionHostCustomers (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2855:55)
    at file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2853:295
    at Object.g [as _notify] (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:146:572)
    at Object.enter (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:149:924)
    at n.Class.derive._creator._run (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:151:719)
    at n.Class.derive._creator._completed (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:151:160)
    at Object.g [as _notify] (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:146:572)
    at Object.enter (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:149:924)
    at n.Class.derive._oncancel._run (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:151:719)
    at n.Class.derive._oncancel._completed (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:151:160)
    at file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2779:6
    at e.fire (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:166:764)
    at Socket.<anonymous> (file:///Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:293:1008)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)handler: undefinedid: 245parent: undefinedpromise: n.Class.derive._creator {_creator: null, _nextState: null, _state: {…}, _listeners: null, _value: Error: Reveriver for 'viewType' already registered
    at e.registerReviver (file:///Applications/Vi…, …}__proto__: Object
errors.ts:51 Error: Reveriver for 'viewType' already registered
    at e.registerReviver (webviewService.ts:140)
    at e (mainThreadWebview.ts:53)
    at t.create (types.ts:166)
    at e._createInstance (instantiationService.ts:120)
    at e.createInstance (instantiationService.ts:73)
    at t._createExtensionHostCustomers (extensionService.ts:210)
    at extensionService.ts:149
    at Object.g [as _notify] (winjs.base.js:1185)
    at Object.enter (winjs.base.js:867)
    at n.Class.derive._creator._run (winjs.base.js:1083)
    at n.Class.derive._creator._completed (winjs.base.js:1051)
    at Object.g [as _notify] (winjs.base.js:1185)
    at Object.enter (winjs.base.js:867)
    at n.Class.derive._oncancel._run (winjs.base.js:1083)
    at n.Class.derive._oncancel._completed (winjs.base.js:1051)
    at extensionHost.ts:351
    at e.fire (event.ts:140)
    at Socket.<anonymous> (ipc.net.ts:81)
    at emitOne (events.js:116)
    at Socket.emit (events.js:211)
    at addChunk (_stream_readable.js:263)
    at readableAddChunk (_stream_readable.js:250)
    at Socket.Readable.push (_stream_readable.js:208)
    at Pipe.onread (net.js:594)
extensionHost.ts:201 Extension Host
extensionHost.ts:202 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper.app/Contents/MacOS/Code - Insiders Helper[72395]: ../../vendor/node/src/async-wrap.cc:357:void node::SetupHooks(const FunctionCallbackInfo<v8::Value> &): Assertion `env->async_hooks_init_function().IsEmpty()' failed.
 1: node::Abort() [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 2: node::Assert(char const* const (*) [4]) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 3: node::AsyncWrap::Initialize(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Context>) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 4: v8::internal::StrDup(char const*) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 5: v8::internal::compiler::BranchElimination::ControlPathConditions::operator==(v8::internal::compiler::BranchElimination::ControlPathConditions const&) const [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 6: v8::internal::compiler::BranchElimination::ControlPathConditions::operator==(v8::internal::compiler::BranchElimination::ControlPathConditions const&) const [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 7: 0x3dc578d0463d

extensionService.ts:381 Extension host terminated unexpectedly.

Ok, please try disabling it when using the current insiders build or use the current stable build if you need this extension. We are looking into the problem.
Closing as duplicate of #47264


GUI Theme change not initially visible in SyncTrayzor Browser

SyncTrayzor 1.1.21, Syncthing v0.14.48 (auto-upgraded) on Windows 10 (Home/Pro) 1803 with 2018-07 Cumulative Update.
When setting Syncthing's GUI Theme (Black, Dark, Default), the change does not initially appear in SyncTrayzor's browser until after using SyncTrayzor's menu Syncthing / Refresh browser function at least 2-3 times.

I think it' something to do with caching, but I can't figure out what: whether it's Syncthing returning 304 when it shouldn't, or the client not sending no-cache when it should. That seems to be involved with the refreshes not working anyway. Something else seems to be going on when you save the config though - this should trigger a reload, but that request to syncthingController.js gets aborted.

It isn't critical, since I would think most people only set this once, but it is annoying. I thought something had broken during a new installation, but realized it was happening on each of my systems.

Just delete the "cef" folder under data in the synctrayzor directoy. after that it worked again for me.

Right, think I've got something which more or less works. Some of the other things to try will require upgrading CefSharp, and that's going to be a fairly major undertaking.


"rootads.nl" domain not being blocked

Dutch video-ads provider. Looks like "player.rootads.nl" is the domain-name to block. I added it manually and didn't seem to break stuff.

Hi Chris @cbuijs
We're just an aggregator. Can you please submit this to one of our data sources? Thanks!
Closing.


OPS-255: Merge aa_uv and ska-ost-low-uv streams

Merged via:
git remote add gitlab https://gitlab.com/ska-telescope/ost/ska-ost-low-uv
git fetch gitlab --tags
git merge --allow-unrelated-histories gitlab/main

with manual conflicts

Docs building 🏗 , tests passing ✅ , coverage at 93% 📔

SKAO Python coding guidelines checklist
SKAO has Python coding guidelines, which are:
Interface and Dependencies

[x] All code must be compatible with Python 3.10 and later.

[x]  The new Python 3 formatting style should be used (i.e. "{0:s}".format("spam") instead of "%s" % "spam"), or use format strings f"{spam}" if variable spam="spam" is in scope.

Documentation and Testing

[x]  Docstrings must be present for all public classes/methods/functions, and must follow the form outlined by PEP8 Docstring Conventions.

Not currently using flake8-pytest-style or tox.

[x]  Unit tests should be provided for as many public methods and functions as possible, and should adhere to Pytest best practices. These tests should always be able to run locally (the filesystem, the network, the database should not not be involved) and pass.

Data and Configuration

[x]  All persistent configuration should use python-dotenv. Such configuration .env files should be placed at the top of the ska_python_skeleton module and provide a description that is sufficient for users to understand the settings changes.

Not currently using any persistent configuration.

Standard output, warnings, and errors

[x]  The built-in print(...) function should only be used for output that is explicitly requested by the user, for example print_header(...) or list_catalogs(...). Any other standard output, warnings, and errors should follow these rules:

[x]  For errors/exceptions, one should always use raise with one of the built-in exception classes, or a custom exception class. The nondescript Exception class should be avoided as much as possible, in favor of more specific exceptions (IOError, ValueError, etc.).

[x]  For warnings, one should always use warnings.warn(message, warning_class). These get redirected to log.warning() by default.

warnings currently using loguru.warning

[x] For informational and debugging messages, one should always use log.info(message) and log.debug(message).

logging is performed using loguru, using logging as a handler

Logging implementation[

[x] There is a standard Python logging module for logging in SKA projects. This module ensures that messages are formatted correctly according to our formatting standards.

_logging is performed using loguru, using logging as a handler. _

[x] For details on how to use the logging module with detailed examples, please refer to: https://gitlab.com/ska-telescope/ska-logging/tree/master#ska-logging-configuration-library

Unicode guidelines

[x] For maximum compatibility, we need to assume that writing non-ASCII characters to the console or to files will not work.

Minor exception: unicode for Greek letters is used in some functions that implement mathematical calculations. This is done for code readability, shorter line lengths, and aligning with standard nomenclature used in functions.

Including C Code

[x]  When C extensions are used, the Python interface for those extensions must meet the aforementioned Python interface guidelines.

[x] The use of Cython is strongly recommended for C extensions. Cython extensions should store .pyx files in the source code repository, but they should be compiled to .c files that are updated in the repository when important changes are made to the .pyx file.

[x]  In cases where C extensions are needed but Cython cannot be used, the PEP 7 Style Guide for C Code is recommended.

Packaging & Dependencies

[x]  SKA python packages use Poetry for packaging & dependency management.

Linting
I have linted the code using ruff, which has drop-in parity with Flake8, isort, and Black, but is 10-100x faster.
The linter checks against:

E: pycodestyle
F: Pyflakes
I: isort
B: flake8-bugbear
D: pydocstyle

I configured the linter to ignore:

E501 - ignored to allow lines longer than 80 characters
E221 - ignored to allow lining up equals signs for readability.
E741 - ignored to allow 'ambiguous' variable names (e.g. l,m,n, used unambiguosly as direction cosines)

Regardless, I adhere to the spirit of these, and only ignore when doing so improves the readability of the code. The automatic ruff format will override E221, and I have used # fmt : off blocks to stop it enraging me.
In pydocstyle, one guideline is ignored:

D102 - Missing docstring in public method.

This was required as I have implemented a docstring inheriting approach for the AaModules in the postx utilities. This was a design choice to avoid gargantuan classes, and to also provide functional access to methods following a consistent API.
The ApertureArray class has a number of child objects attached to it, which are derived from a AaBaseModule class. When used in a jupyter notebook, tab completion can be used to access all the various child objects, e.g.
aa = ApertureArray(...)
sun = aa.coords.get_sun()
aa.calibration.holography.set_cal_src(sun)
aa.calibration.holography.run_phasecal()

The attachment of functions is done as follows

# functions must take an `ApertureArray` as their first argument
def report_flagged_antennas(aa: ApertureArray, cal: UVXAntennaCal) -> dict:
     ...

# Class inherits from AaBaseModule
class AaHolographer(AaBaseModule):
...
    # This is called by __init__ and copies over docstrings
    def __setup_docstrings(self, name):
       ...
        self.run_phasecal.__func__.__doc__  = jishnu_phasecal.__doc__
    ...
   # function is attached by calling it using self.aa as first argument
    def report_flagged_antennas(self, *args, **kwargs):
        # Docstring inherited from report_flagged_antennas
        return report_flagged_antennas(self.aa, self.phs_cal)

Python & Jupyter Notebooks Coding Style/Conventions
The SKAO enforces the following coding style rules and conventions for Python and Jupyter Notebooks:

[x] The code will follow the standard PEP8 Style Guide for Python Code. In particular, this includes using only 4 spaces for indentation, and never tabs.

[x] The import numpy as np, import matplotlib as mpl, and import matplotlib.pyplot as plt naming conventions should be used wherever relevant.

[x] from packagename import * should never be used, except as a tool to flatten the namespace of a module. An example of the allowed usage is given in Acceptable use of from module import *.

[x] Classes should either use direct variable access, or Python’s property mechanism for setting object instance variables. get_value/set_value style methods should be used only when getting and setting the values requires a computationally-expensive operation. Properties vs. get_/set_ below illustrates this guideline.

[x] Classes should use the builtin super() function when making calls to methods in their super-class(es) unless there are specific reasons not to. super() should be used consistently in all subclasses since it does not work otherwise. super() vs. Direct Calling illustrates why this is important.

[x] Multiple inheritance should be avoided in general without good reason.

[x]  init.py files for modules should not contain any significant implementation code. init.py can contain docstrings and code for organizing the module layout, however (e.g. from submodule import * in accord with the guideline above). If a module is small enough that it fits in one file, it should simply be a single file, rather than a directory with an init.py file.

[x] The python source code should be automatically validated using the pipeline machinery, which uses the isort, black, flake8 and pylint tools to enforce the above guidelines.

This is not currently implemented, but propose using ruff which does all these, is 100x faster, and is already configured


Adjusting scroll speed causes stutters

Doesn't happen in osu!mania, so it's something specific to Rush!.

This seems to be resolved with the use of pooling in #123.


Multiple Lookup Strategy

We need a way to effectively use multiple geocoding APIs. Situations that need to be handled:

The primary API is unavailable and we'd like to automatically fall back to another.
The primary API is returning bad/unexpected results (or quota is reached) and we'd like to automatically fall back to another.
We'd like to use different APIs for different queries, depending on whether the query is an IP address or a physical address, but also if the query is for a certain part of the world where one API is significantly better than another (eg: Yandex in Russia).

Ideas for implementation:

Set :lookup to an array of preferred APIs (descending preference).
Set :lookup to a block which takes a query and returns a lookup name, or an array of names (as in #1).

Need to determine:

How to "fall back" to a less-preferable API. On timeout? On any API-related exception? On any Geocoder exception? On a particular API response? On a nil result? And how configurable does it need to be?
How to handle IP vs. physical address lookups in the config. Currently they are configured separately (:lookup and :ip_lookup). Is there an advantage to combining them?

Hello @alexreisner I'm loving this gem and, referencing your third bullet point, I need to use different APIs for different queries. In particular, I'd like to use LocationIQ for the front-end because it's cheap but inaccurate, and Google for the admin back-end because it's expensive but very accurate. In other words:
One cheap service for lots of queries that doesn't need too much precision and one expensive service for a few queries that require great precision.
At the current state of the gem, how can one achieve this please?
It would be ideal being able to specify which strategy/api to use for each lookup, defaulting to the first configured service.

Here is how I implemented an easy fallback strategy:
  geocoded_by :full_address, lookup: lambda{ |obj| obj.geocoder_lookup }

  def geocoder_lookup
    if Geocoder.search(full_address, lookup: :nominatim).present?
      :nominatim
    else
      :falllback_geocoder (:google, :esri, etc..)
    end
  end

Why it works:
The geocoder_lookup will try for your first and then second option. If it get anything the results are cached by the Geocoder on Redis. This makes it cheap for a second lookup when the geocode is called again.


where is ecmangen.exe?

[Enter feedback here]
ecmangen.exe is removed in newer sdk.
What is the replacement?

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

ID: 6c644605-a088-2559-f11f-5afa168e1e20
Version Independent ID: e19385cd-b7cf-58a9-6276-0ebd4596e185
Content: Index of Windows Driver Kit Tools - Windows drivers
Content Source: windows-driver-docs-pr/devtest/index-of-windows-driver-kit-tools.md
Product: windows-hardware
Technology: devtest
GitHub Login: @DOMARS
Microsoft Alias: domars

@limulidae - Thanks for this PR and pointing out that ECManGen is no longer in the kits. I have removed the reference to this utility in the list of included tools. According to this blog entry, it sounds like the recommendation is to download an older kit to acquire the utility:
https://blogs.windows.com/windowsdeveloper/2017/08/22/windows-10-sdk-preview-build-16267-mobile-emulator-build-15240-released/
This forum post provides more information on downloading a version of the SDK that contains this utility.
https://social.msdn.microsoft.com/Forums/en-US/1666c0ef-fc03-4dbc-9068-df98e1e886b9/where-can-i-download-ecmangenexe


Improvements

I only made the fixes that I cold do quickest; there's much to do to improve this article.
Category

[ ] Content fix
[ ] New article
[x] Example checked item (delete this line)

DELETE THIS LINE BEFORE SUBMITTING | For the above list, an empty checkbox is [ ] as in [SPACE]. A checked checkbox is [x] with no space between the brackets. Use the PREVIEW tab at the top right to preview the rendering before submitting your issue.

Related issues

fixes #issuenumber
partially #issuenumber
mentioned in #issuenumber

DELETE THIS LINE BEFORE SUBMITTING | If this fixes (aka: closes) or references an issue, please reference it here. This helps maintaining the issue list as it will (1) link the PR to the issue & (2) automatically close the issue when this PR is merged in.

What's in this Pull Request?

DELETE THIS LINE BEFORE SUBMITTING | Please describe the changes in this PR. Sample description or details around bugs which are being fixed.

Submission guidelines

!!IMPORTANT!! - All submissions must complete the baseline sections included in this template. Ignoring or deleting this template may result in closing the issue with the label type:incomplete-submission.
Follow our guidance on How To Create Good Pull Requests.
Target the main branch of this repo.
When changing a page, ensure you update the ms.date front matter wih the current date in the format MM/DD/YYYY.
Review all build checks and address the automated errors, warnigns, and suggestions.
NOTE: The live site is based on the live branch. Site owners periodically refresh live branch from the main branch so merged PRs won't immediately appear on the live site. Please be patient to see your changes appear on the live site.

DELETE THIS SECTION BEFORE SUBMITTING

Docs Build status updates of commit 1d6f171:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/solution-guidance/security-apponly-azuread.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Also, in the future, please follow the instructions in the PR template when submitting a new PR. In the future, ignoring the instructions/guidance in the PR template will result in rejecting the PR without review. It helps us review submissions in a timely manner.

Closed to no activity/response by author

@andrewconnell
"Also, in the future, please follow the instructions in the PR template when submitting a new PR. In the future, ignoring the instructions/guidance in the PR template will result in rejecting the PR without review. It helps us review submissions in a timely manner."
I think this is a bit harsh. I didn't ignore the instructions. I tried to follow the steps, but apparently I missed one (the date). Is it really better to reject a PR with good suggestions to improve our docs because of a step missing?

@andrewconnell "Closed to no activity/response by author"
I apologize, just got back this week after 3 weeks off.
Do you not want any of these docs improvements?

@yihezkel said:

I think this is a bit harsh. I didn't ignore the instructions. I tried to follow the steps, but apparently I missed one (the date). Is it really better to reject a PR with good suggestions to improve our docs because of a step missing?

Sorry if it came across as harsh... wasn't the intent. The PR template has sections to fill in the blanks as you can see above... things to indicate what the PR is about, what changes it includes if it's a content update or a new doc, etc. None of that stuff was addressed and seemed ignored, meaning it takes longer for reviewers to understand what this is about.
That comment was simply included as a request as this seemed to be your first PR submission.
But with no response for nearly 4 weeks after a review & a request for changes, the issue was closed as it seemed we'd not get any follow-up to the requested changes.

Do you not want any of these docs improvements?

We do, but as you said, there are a lot of changes to apply to the doc as it's outdated. We'd rather have a complete update than a partial one because a partial one implies it's been updated and is now current. That confuses consumers of the doc who think "oh, if this was updated in October, then everything is current".