Speedup the feed build by using the correct toolchain and docker caching

Before the image had stable rust toolchain and had to re-download and recompile everything.
The fix ensure that docker cache layer has all dependencies pre-built and cached on the correct toolchain, so only local changes are recompiled.

Can we also add
#[allow(unused_imports)]
to
extern crate test;?
The warning freaks me out.

Ok, attempt number 2, @Lexy2
I pinned an older version of the slim-buster for the builder (it shouldn't be updated as frequently).
Also I pinned a specific rust-toolchain.toml ("nightly-2022-11-04") which, together with Cargo.lock should reduce docker cache invalidation.
Also, silenced unused imports warning.

Hey @Aivean,
I got to the bottom of the issue.
Problem
Because you select a specific toolchain in the rust-toolchain.toml, rust image will always call rustup to update it:
Status: Downloaded newer image for rust:1.64-slim-buster
 ---> 085572de3c6e
...
Step 5/14 : RUN cargo build --release
 ---> Running in 51de0818b423
info: syncing channel updates for 'nightly-2022-11-04-x86_64-unknown-linux-gnu'
info: latest update on 2022-11-04, rust version 1.67.0-nightly (215e3cd21 2022-11-03)
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: installing component 'cargo'
info: installing component 'rust-std'
info: installing component 'rustc'
    Updating crates.io index
 Downloading crates ...

Solution:
As you need nightly toolchain to use the unstable test feature, modify the Dockerfile to use
FROM rustlang/rust:nightly-slim as builder
but don't copy and actually remove rust-toolchain.toml:
COPY ["Cargo.toml", "Cargo.lock",  "./"]
Thus, the image will use the nightly toolchain, but not spend time updating it at each build.
Docker will not pull the updated nightly image from the registry if it is already cached, and thus you'll have a stable build until you run docker pull, or execute the job on an agent where your rustlang/rust:nightly-slim image does not exist.
P.S.: If you don't want to run tests during regular builds (although running tests before deployments is a good thing, I suppose), you could split tests and main code as described here (StackOverflow). The benefit is that the main code will compile and run on a stable rust version that you can even fix to a specific version (but without rust-toolchain.toml file).

@Lexy2 , I cannot remove rust-toolchain.toml, because it's needed for local development (if you want to run cargo build without docker).
Do you see any problems with the current (updated) solution? Rustup should be cached in in the docker layer, unless Cargo.toml, lock or toolchain are changed.

Btw, test feature seems to be stable, the issue is specifically with benchmarks, I'll look into moving them into a separate optional module.

@Lexy2 , I cannot remove rust-toolchain.toml, because it's needed for local development (if you want to run cargo build without docker).
Then just remove it from the Dockerfile

Do you see any problems with the current (updated) solution? rustup should be cached in in the docker layer, unless Cargo.toml, lock or toolchain are changed.
I don't see benefits over the original version without this.

@Lexy2 , I cannot remove rust-toolchain.toml, because it's needed for local development (if you want to run cargo build without docker).

Then just remove it from the Dockerfile

Do you see any problems with the current (updated) solution? rustup should be cached in in the docker layer, unless Cargo.toml, lock or toolchain are changed.

I don't see benefits over the original version without this.

The benefit over the original version is following:
Previously, the initial caching compilation of dependencies was mistakenly performed on the stable toolchain (as the rust-toolchain.toml was not copied over). And the compilation of the main app triggered another compilation.
Currently, with the toolchain properly pinned, the deps would compile only once in the worst case (when base image is updated, or when dependencies or the toolchain actually changes in the code). When there are code-only changes, only the app is recompiled (almost instantly).

Previously, the initial caching compilation of dependencies was mistakenly performed on the stable toolchain (as the rust-toolchain.toml was not copied over). And the compilation of the main app triggered another compilation.

Makes total sense!

However, I agree, that pinning the builder image version might be not necessary.

Let's add this change and base the image on rustlang/rust:nightly-slim to speed up the build even more, or separate the nightly features from the stable features, up to you.

Let's add this change and base the image on rustlang/rust:nightly-slim to speed up the build even more, or separate the nightly features from the stable features, up to you.

I just tested, switching to rustlang/rust:nightly-slim doesn't speed up the initial build, it still tries to update the rust version and the crate index:
=> [builder 3/9] RUN mkdir -p ./src && echo 'fn main() { panic!("Dummy Image Called!") }' > ./src/main.rs                                                                                0.1s
 => [builder 4/9] COPY [Cargo.toml, Cargo.lock, rust-toolchain.toml,  ./]                                                                                0.0s
 => [builder 5/9] RUN cargo build --release                                                                                69.6s
 => => # info: installing component 'clippy'
 => => # info: installing component 'rust-docs'
 => => # info: installing component 'rust-std'
 => => # info: installing component 'rustc'
 => => # info: installing component 'rustfmt'
 => => #     Updating crates.io index

With the proper caching of initial build, I don't think that there is any difference. I think rust:1.64-slim-buster or rust:slim-buster are better, as they support more platforms:

I just tested, switching to rustlang/rust:nightly-slim doesn't speed up the initial build, it still tries to update the rust version and the crate index:

If you don't copy the rust-toolchain.toml, it won't try to update the rust version and thus will compile faster. crate index will be updated in any case.

With the proper caching of initial build, I don't think that there is any difference. I think rust:1.64-slim-buster or rust:slim-buster are better, as they support more platforms:

This makes sense.


you can add encode utf-8 in open()

Some languages cannot be read

Already done. Will be published in next update.


Exporting skips frames

Hi Allar, i'm using your plugin to export 360 video but it skips frames, i made sure that the frame rate is set to 30 in the project settings, then i read in forums that i must run the editor in benchmark mode, so i googled how to run in benchmark mode and i didn't find answers, can you tell me how to run the editor in benchmark mode, thanks

If you're capturing in editor, one way to kinda force it is to use t.overridefps 30 in console, combined with t.maxfps 30.


Use string literal instead of char literal, since ruby 1.9 this can be done

This pull request applies style fixes from code review by CodeFactor.

For more information, click here.

Seems not correctly handled by CodeFactor


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 2403 ms

Resolved: Bofrost.at performance has improved in ceab927 after 3 hours, 24 minutes.


[prim_ram*/prim_rom*] Bronze updates

This pulls over a couple of commits related to the ram primitives.
After merging this, we need to update the internal synthesis flow setup.
Also, before merging this one we should try to get https://github.com/lowRISC/opentitan/pull/2418 merged, which still shows a CI regression failure.

Ok I have picked over the latest changes from #2418 as well now.

lgtm.
i'll move over the flash 64b changes after this one also. Thanks @msfschaffner

The ibex cache now also uses the real macros underneath.
Further, I have disabled some constant propagation and register removal settings such that incomplete designs are not completely trimmed away.

thanks @msfschaffner
just one minor question


KAFKA-15326: [10/N] Integrate processing thread

Introduce a new internal config flag to enable processing threads
If enabled, create a scheduling task manager inside the normal task manager (renamings will be added on top of this), and use it from the stream thread
All operations inside the task manager that change task state, lock the corresponding tasks if processing threads are enabled.
Adds a new abstract class AbstractPartitionGroup. We can modify the underlying implementation depending on the synchronization requirements. PartitionGroup is the unsynchronized subclass that is going to be used by the original code path. The processing thread code path uses a trivially synchronized SynchronizedPartitionGroup that uses object monitors. Further down the road, there is the opportunity to implement a weakly synchronized alternative. The details are complex, but since the implementation is essentially a queue + some other things, it should be feasible to implement this lock-free.
Refactorings in StreamThreadTest: Make all tests use the thread member variable and add tearDown in order avoid thread leaks and simplify debugging. Make the test parameterized on two internal flags: state updater enabled and processing threads enabled. Use JUnit's assume to disable all tests that do not apply.
Enable some integration tests with processing threads enabled.

Test failures are unrelated / existing flaky tests.


OU-550: Use npm instead of yarn

/jira-refresh

fyi, yarn lint is hardcoded into the release repo, so there will need to be a change there to fix that: https://github.com/openshift/release/blob/master/ci-operator/config/openshift/monitoring-plugin/openshift-monitoring-plugin-release-4.17.yaml#L36.

Thx @PeterYurkovich added the fix for the CI https://github.com/openshift/release/pull/57306

/retest-required

/retest-required

/hold until test from ART succeed

/unhold

/lgtm


Feature/sql delight compat

see wiki page for detail: https://github.com/OkBuilds/OkBuck/wiki/Known-caveats#sqldelight-work-around

Just minor comments. Rest looks good

Updated

Travis fails because the source files list is generated during BUCK's configuration time (I guess), that means it's generated before my genrule runs, so BUCK cannot find the generated sources at its first compile round, although my genrule will generate Java files during this time. If I run buck build after its first fail, it will succeed. That's why it build successfully in my local machine.
@kageiit Do you have any idea how to fix this problem?

Added more comments inline.
I think to fix the travis issue, the real fix is to have the src_target.name rules depend on the sqldelight_target.name rules

Ill take a pass at this
Going to squash all the commits into one to make this a bit easier/cleaner

@kageiit With fb guys' help in stackoverflow, I finally make SqlDelight work with BUCK, but if I rebase this branch to latest master, two errors will be thrown:
aidl E 53910 1563601 aidl.cpp:537] refusing to generate code from aidl file defining parcelable

BUILD FAILED: com.squareup.javapoet.CodeBlock.of(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock;

By trying incremental rebase, I find out that the second error is introduced by 38269effa0a7343e4e029d0c1b1b7a265f3fbe16, and the first error is introduced by 3baaccf97b2abbf5da0baccf5e78a952ac758ec6.

@Piasy can you please do a rebase and push so I can look at this better? It will be also easier to find a solution to the problemsyou posted then

No problem, and this pr passed ci yesterday night, but after I squash the commits, it fails.
I'll rebase it.

Merged in #160


Draggable from A to B, but not B to A

First things first, great library. Really appreciate the time put in to develop it and that it doesn't use jQuery. Primary reason I chose to go with this library.
I'm looking to implement some functionality that allows you to drag an item from Column A to Column B, but not Column B to Column A.
I figured it had something to do with this code:
accept: function (sourceItemHandleScope, destSortableScope) {
  return sourceItemHandleScope.itemScope.sortableScope.$id === destSortableScope.$id;
}

But I'm having a hard time understanding exactly what the return statement line of code does, or how I'd manipulate accept to perform the functionality I'm looking for.
Any help would be appreciated. Not a huge deal if it's not possible, as this is a pretty specific nuance. Thanks!

Hi basically u get the source and destination sortable scope.
And based on that you can define the movement of the items.
Sortable scope is the scope of sortable container.
You just need to implement the logic in the 'accept' method to control the drag. Let me know if u need help.

It would be cool to be able to give an id or a tag ('A' and 'B' for instance) to a sortable object and then to be able to test easily in the accept function if the source is 'A' or 'B'.
Currently, I do this by adding an id attribute to the $scope.dragControlListeners object and then testing like this in the accept function:
accept: function(sourceItemHandleScope, destSortableScope) {
    var source = sourceItemHandleScope.itemScope.sortableScope.options.id,
        destination = destSortableScope.options.id;

    if(source === 'A' && destination === 'B') {
        // A -> B logic here
    }
    else if(source === 'B' && destination === 'A') {
        // B -> A logic here
    }
    return true;

}

But this is quite ugly...
Is there currently an easier way to do this?

@ValentinH just give the sortable element an id. and get the element from the sortableScope. and check for the id.

What is the sortable element? Is it the object I bind to the data-as-sortable attribute?

Yes

So what is the difference with the code I provided above?
Le mar. 4 août 2015 19:39, Muhammed Ashik<EMAIL_ADDRESS>a
écrit :

Yes
—
Reply to this email directly or view it on GitHub
https://github.com/a5hik/ng-sortable/issues/194#issuecomment-127687764.

The Id I was referring is more of adding a html attribute element Id. And the logic is independent of the sortable directive.

OK I got the idea. However, this means that I have to manipulate the DOM inside my controller to get the ID and it doesn't feel good!

@ValentinH,
I'd like to achieve the same behavior (move only from A to B). Could you post here your solution?
I don't get the idea described by @a5hik:

@ValentinH just give the sortable element an id. and get the element from the sortableScope. and check for the id.

@wonskarol the idea is simple .

Give an id to the sortable element. say divA and divB.
Implement the accept callback, check for the destSortableScope id and then do the validation.
If you don't allow drop return false else true.


Minor fixes in IO files

PAD GROUND -> PAD POWER
Remove leftover pin declarations in a clamped pad

Pulled and merged.


ADD: Move Coin selection from dropdown to extra screen

On SendScreen all ETH for all L2 are only displayed as ETH and is not possible to destinguish. Also to have a better overview we should move the coin selection to an extra screen as already discussed with iOS Team.
See Figma for design on swap and send screens

@yvebe sorry for that.


isFalsyExtended not working properly

When passing an object with values that are undefined or null, it should not return false because thats not how this function should work.
In that way an option parameter can be passed to tell the function to either do or do not behave a certain way.

Hey @m10rten ,
I think this can be done only by removing these lines from isFalsyExtended.ts
true === Object.keys(value).some((key) => true === isFalsy(value[key])) ||
      true === Object.values(value).some((val: any) => true === isFalsy(val))

Hey @m10rten ,
I think this can be done only by removing these lines from isFalsyExtended.ts
true === Object.keys(value).some((key) => true === isFalsy(value[key])) ||
      true === Object.values(value).some((val: any) => true === isFalsy(val))

Thank you for commenting on this!
Yes, that is very much the way to go.
But Ive thought of having an options param for deepsearch falsy checks.

Sure.
I just want to understand the use case of sending a flag for deepsearch.

Sure. I just want to understand the use case of sending a flag for deepsearch.

Usecase to use its falsy "power" as to call it,, within an object deep search.
Lets say you have 3 layers down:
Array > object: arr > Array
And you want to make sure every item in the last array is not falsy or truthy.
You can put Array[0].arr in the function, but what if you wanted to check all arrays of Array at once: just put the array in, let the function handle the rest

@m10rten Right, I will try to come up with a solution asap.

great @anoop-dev0 , I've pushed some deps updates to dev, might want to pull those in.


New methods on API 21

Hi,
Is there some plan to introduce the methods introduced on WebView (API 21) or this will be up to the user-developer?
I'm mean something like
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public void acceptThirdPartyCookies(boolean enabled) {

  if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
      CookieManager cookieManager = CookieManager.getInstance();
       cookieManager.setAcceptThirdPartyCookies(this, enabled);
  }
}

I can create a pull request if needed.
Great library :)

Thanks!
This specific feature has been added now:
https://github.com/delight-im/Android-AdvancedWebView/commit/d0f3fe324fbd53a11d277acc45fc20425bd2fbdd
Please report if this is what you had in mind :)
For other APIs, please open separate issues.


Define reanalysis table in ENTR warehouse

The ENTR warehouse needs a reanalysis data table. These data consist of long-term wind resource variables from reanalysis products (e.g., ERA5, MERRA2) (hourly resolution). At least 20 years of data are required for the long-term correction process in OpenOA. Note that the reanalysis data can be downloaded using the PlanetOS API in OpenOA. However, so we don't have to download the data every time we run OpenOA, a table should be created to store the data in the warehouse.
Proposed columns:

Timestamp
Plant ID
Reanalysis product (ERA5 or MERRA2)
Eastward wind component (m/s)
Northward wind component (m/s)
Air temperature (degrees K)
Surface pressure (Pa)
Wind speed (m/s)
Wind direction (degrees)
Air density (kg/m3)

To download the data for the first time, there are a couple options.

When running OpenOA, we could check if reanalysis data exists in the warehouse. If not, OpenOA could download the data.
We could require the reanalysis data to exist in the warehouse before running OpenOA, meaning ENTR would be responsible for downloading the data and populating the table.

Notes from 3/28/2022 meeting:

We decided to include a reanalysis table in the warehouse
The user will be responsible for downloading reanalysis data as csv files from PlanetOS using the OpenOA toolkit (or another method if they prefer) when importing their operational data to the warehouse rather than when OpenOA is used when analyzing data
We can write a script to create a warehouse table from the downloaded csv files
We can provide documentation and an example showing how to download reanalysis data using the OpenOA PlanetOS toolkit

Notes from 4/4/2022

User will download reanalysis files and drop into specific folder. Or automate by looping through plant table and downloading files for all plants
dbt workflow to add downloaded csv files to seed table
Eric to send Lewis example python code to download reanalysis data using OpenOA
For now, we'll create a separate table for each reanalysis product

https://github.com/entralliance/entr_warehouse/pull/7


cdnjs copy exports a camel-cased reactMarkdown instead of ReactMarkdown

This might be a bit outside the domain of this project, but I was noticing that the cdnjs exports a camelCased reactMarkdown. This won't render (as React expects all classes to be fully capitalized, and treats it as a literal html <reactMarkdown /> instead.
https://cdnjs.cloudflare.com/ajax/libs/react-markdown/3.3.2/react-markdown.js
One workaround currently is that a constant for the fully capitalized can be set:
const ReactMarkdown = reactMarkdown;

Thanks for pointing this out and sorry for the late reply. I want to fix this, but I think this would cause a breaking change and would require a major version bump. I'll schedule this for 4.0.

Fixed in 88d12c7a96bcd59640a68d9c16e00adde058c51b


Update selfhosting.md

Add make packer-ci and make packer-web instructions along with .env variables

Sorry, the docs on self-hosting are a little bit out of date after I made the most recent set of changes to stabilize the infrastructure. I'll go through them this weekend and make sure everything is up to date---and respond to your comments.

Thank you so much!

I've pushed ed45748 which should bring everything up to date, and incorporates some of your clarifications here. Let me know if I missed anything.

Doc is definitely more clear, thank you! I almost have everything set up. But I seem to be missing something...
I modified the langs directory to only have 4 langs (to speed up build).
After running dep deploy:live --publish I see:

Which seems like a good sign, but my domain is not hosting a copy of Riju.
A couple notes:
Here is my dns setup:

For the aws acm certificate verification acm.tf tries to issue a cert for:
domain_name               = "riju.codes"
subject_alternative_names = ["*.riju.codes"]

Which I changed to:
domain_name               = "codeamigo.xyz"
subject_alternative_names = ["*.codeamigo.xyz"]

In order to verify it:

I also tried setting up an A record using an elastic IP

For the aws acm certificate verification

Oops, I see that this was hardcoded to riju.codes. I pushed https://github.com/raxod502/riju/commit/0992a4dc905474591a43aaf5c65f1ba1db380ce2 which makes it read the domain from DOMAIN in .env.

% http https://riju.codeamigo.xyz/
HTTP/1.1 502 Bad Gateway
Connection: keep-alive
Content-Length: 0
Date: Tue, 14 Sep 2021 04:50:14 GMT

Awesome, so the supervisor process is running and connected to the Internet, it just hasn't been able to successfully boot the Riju server container yet. You should SSH into your EC2 instance in the autoscaling group and check the systemd logs (sudo journalctl -efu riju) to see what the error is.

Filed https://github.com/raxod502/riju/issues/108 and https://github.com/raxod502/riju/issues/109 per your suggestions.

Thanks again for your help @raxod502

You should SSH into your EC2 instance in the autoscaling group and check the systemd logs (sudo journalctl -efu riju) to see what the error is.

So I don't see a way to ssh into the asg, but I can mssh into admin@i-{riju-server-instance-name}.
sudo journalctl -efu riju

every now and then there's a message about the docker container riju-app-green:
f65413b5db3eaf8713a2eac65a551a". You have to remove (or rename) that container to be able to...

sudo docker ps -a:

Let me know if you'd like to move this to a separate thread or something since we can probably close this PR now...

More info:
Sep 15 13:25:18 ip-172-31-33-120 riju-supervisor[1197]: 2021/09/15 13:25:18 active: downloading deployment config from S3
Sep 15 13:25:18 ip-172-31-33-120 riju-supervisor[1197]: 2021/09/15 13:25:18 active: listing locally available images
Sep 15 13:25:18 ip-172-31-33-120 riju-supervisor[1197]: 2021/09/15 13:25:18 active: config hash updated none => fb466bbcb0f8f8c3df2b62d337eeb7ca26db4e63
Sep 15 13:25:18 ip-172-31-33-120 riju-supervisor[1197]: 2021/09/15 13:25:18 active: starting container riju-app-green
Sep 15 13:25:18 ip-172-31-33-120 riju-supervisor[23870]: docker: Error response from daemon: Conflict. The container name "/riju-app-green" is already in use by container "0b2f404987bb8fd7a6dc67302402fb6585f65413b5db3eaf8713a2eac65a551a". You have to remove (or rename) that container to be able to reuse that name.
Sep 15 13:25:18 ip-172-31-33-120 riju-supervisor[23870]: See 'docker run --help'.
Sep 15 13:25:18 ip-172-31-33-120 riju-supervisor[1197]: 2021/09/15 13:25:18 failed: exit status 125
Sep 15 13:25:26 ip-172-31-33-120 riju-supervisor[1197]: 2021/09/15 13:25:26 http: proxy error: dial tcp <IP_ADDRESS>:6229: connect: connection refused
Sep 15 13:25:30 ip-172-31-33-120 riju-supervisor[1197]: 2021/09/15 13:25:30 http: proxy error: dial tcp <IP_ADDRESS>:6229: connect: connection refused
Sep 15 13:25:33 ip-172-31-33-120 riju-supervisor[1197]: 2021/09/15 13:25:33 http: proxy error: dial tcp <IP_ADDRESS>:6229: connect: connection refused
Sep 15 13:25:36 ip-172-31-33-120 riju-supervisor[1197]: 2021/09/15 13:25:36 http: proxy error: dial tcp <IP_ADDRESS>:6229: connect: connection refused

Ok so noticed that riju-app-green was unhealthy. I killed it and restarted it and rebooted the instance. And now voila!
https://riju.codeamigo.xyz/


Tag not showing

After installing the new template - the tag does not show in the list of tags after creating a new tag of this type.

Do you install template manually or from the Gallery?

Manually - I didn't think this template was in the gallery.

Please try to install it from gallery https://tagmanager.google.com/gallery/#/owners/stape-io/templates/hubspot-tag

It's not showing up in the gallery. See image:

You try to find this tag in Web GTM but it for Server GTM.


wapiti: 3.1.8 -> 3.2.0

Changelog: https://github.com/wapiti-scanner/wapiti/blob/3.2.0/doc/ChangeLog_Wapiti
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

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

4 packages marked as broken and skipped:

python311Packages.flask-appbuilder
python311Packages.flask-appbuilder.dist
python312Packages.flask-appbuilder
python312Packages.flask-appbuilder.dist

27 packages built:

localstack (python312Packages.localstack)
localstack.dist (python312Packages.localstack.dist)
python311Packages.aiohttp-apispec
python311Packages.aiohttp-apispec.dist
python311Packages.apispec
python311Packages.apispec-webframeworks
python311Packages.apispec-webframeworks.dist
python311Packages.apispec.dist
python311Packages.localstack
python311Packages.localstack.dist
python311Packages.prance
python311Packages.prance.dist
python311Packages.pyipv8
python311Packages.pyipv8.dist
python312Packages.aiohttp-apispec
python312Packages.aiohttp-apispec.dist
python312Packages.apispec
python312Packages.apispec-webframeworks
python312Packages.apispec-webframeworks.dist
python312Packages.apispec.dist
python312Packages.prance
python312Packages.prance.dist
python312Packages.pyipv8
python312Packages.pyipv8.dist
tribler
wapiti
wapiti.dist


[BUG] - NextUI giving Rules of Hooks error after adding _document.js code as mentioned in NextUI documentation

Describe the bug
I am following the steps to add NextUI to a project, but instead I getting the error:
Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:

You might have mismatching versions of React and the renderer (such as
React DOM)
You might be breaking the Rules of Hooks
You might have more than one copy
of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.

after adding this code (mentioned in NextUI) in my _document.js:
// pages/_document.js
import React from 'react';
import Document, { Html, Head, Main, NextScript } from 'next/document';
import { CssBaseline } from '@nextui-org/react';

class MyDocument extends Document {
  static async getInitialProps(ctx) {
    const initialProps = await Document.getInitialProps(ctx);
    return {
      ...initialProps,
      styles: React.Children.toArray([initialProps.styles])
    };
  }

  render() {
    return (

        {CssBaseline.flush()}

          <NextScript />

    );
  }
}

export default MyDocument;

I did a bit of research into this error and found out that hooks cannot be used in class components, therefore I tried to convert it from a class component to a function component (I removed the getInitalProps() function as it seemed to serve no relevance):
// pages/_document.js

import React from "react";
import { Html, Head, Main, NextScript } from "next/document";
import { CssBaseline } from "@nextui-org/react";

const Document = () => {
  return (

      {CssBaseline.flush()}

        <NextScript />

  );
};

export default Document;

Despite this, I am still getting the same Rules of Hooks error as mentioned at the beginning of the issue.
Steps to Reproduce the Bug or Issue

Put this in your _app.js file:

import '../styles/globals.css'
// 1. import `NextUIProvider` component
import { NextUIProvider } from '@nextui-org/react';

function MyApp({ Component, pageProps }) {
  return (
    // 2. Use at the root of your app
    <NextUIProvider>
      <Component {...pageProps} />
    </NextUIProvider>
  );
}

export default MyApp;

Put this code in your _document.js file

import React from 'react';
import Document, { Html, Head, Main, NextScript } from 'next/document';
import { CssBaseline } from '@nextui-org/react';

class MyDocument extends Document {
  static async getInitialProps(ctx) {
    const initialProps = await Document.getInitialProps(ctx);
    return {
      ...initialProps,
      styles: React.Children.toArray([initialProps.styles])
    };
  }

  render() {
    return (

        {CssBaseline.flush()}

          <NextScript />

    );
  }
}

export default MyDocument;

Put this code in your index.js file (a NextUI button component):

import { Button } from "@nextui-org/react";

export default function App() {
  return <Button>Default</Button>;
}

You will get the same error as I mentioned at the beginning of this issue.
Expected behavior
As a user, I expected a NextUI button component to render, but instead I am getting an error about the Rules of Hooks,
Operating System Version
Windows 10
Browser
Chrome

UPDATE:
I removed the code from document.js and NextUI worked just fine.
So now my question is:
What is the point of the code in document.js?

Hi @turbofuture1 the CssBaseline.flush() will generate all the CSS you need in order to render it server-side.
Here's an example of pages/_document.js
import { Children } from 'react';
import Document, { Html, Main, Head, NextScript } from 'next/document';
import { CssBaseline } from '@nextui-org/react';

const Doc = () => {
  return (

        <NextScript />

  );
};

Doc.getInitialProps = async (context) => {
  const initialProps = await Document.getInitialProps(context);

  return {
    ...initialProps,
    // flush here
    styles: Children.toArray([initialProps.styles, CssBaseline.flush()])
  };
};

export default Doc;

Hey please update to v2 https://nextui.org/blog/nextui-v2, this configuration is no longer needed since we moved from Stitches to TailwindCSS


Cannot run 'npm install' nor 'ionic serve'

Hello,
When I try to run 'npm install' on a project it gives me these errors:
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVers
ion@0. I'll try to do my best with it!
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev but none was inst
alled.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os
":"win32","arch":"x64"})

added 114 packages in 18.433snpm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVers
ion@0. I'll try to do my best with it!
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev but none was inst
alled.
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os
":"win32","arch":"x64"})

added 114 packages in 18.433s

Have tried to upgrade/downgrade rxjs locally and globally, but nothing worked. I have tried to upgrade/downgrade node.js, tslint, npm and typescript.
Have also tried to clean the cache.
This is my ionic info:
`global packages:
@ionic/cli-utils : 1.5.0
Cordova CLI      : 7.0.1
Ionic CLI        : 3.5.0

local packages:
@ionic/app-scripts              : 1.3.12
@ionic/cli-plugin-cordova       : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms               : none
Ionic Framework                 : ionic-angular 2.3.0

System:
Node       : v6.11.1
OS         : Windows 8.1
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.3.0`

Have been stuck in this for a week without getting any further.
EDIT:
Here are my dependencies:
 "dependencies": {
        "@angular/common": "2.4.8",
        "@angular/compiler": "2.4.8",
        "@angular/compiler-cli": "2.4.8",
        "@angular/core": "2.4.8",
        "@angular/forms": "2.4.8",
        "@angular/http": "2.4.8",
        "@angular/platform-browser": "2.4.8",
        "@angular/platform-browser-dynamic": "2.4.8",
        "@angular/platform-server": "2.4.8",
        "@ionic-native/background-geolocation": "^3.13.1",
        "@ionic-native/core": "^3.4.4",
        "@ionic-native/facebook": "^3.7.0",
        "@ionic-native/geolocation": "^3.4.4",
        "@ionic-native/vibration": "^3.10.3",
        "@ionic/cloud": "^0.15.1",
        "@ionic/cloud-angular": "^0.8.0",
        "@ionic/storage": "1.1.6",
        "@ngrx/core": "^1.2.0",
        "@ngrx/effects": "^2.0.0",
        "@ngrx/store": "^2.2.1",
        "@ngrx/store-devtools": "^3.2.3",
        "angular2-jwt": "^0.1.27",
        "angularfire2": "^2.0.0-beta.7-pre",
        "card.io.cordova.mobilesdk": "^2.1.0",
        "com.paypal.cordova.mobilesdk": "^3.3.1",
        "cordova-android": "^6.2.3",
        "cordova-plugin-console": "^1.0.5",
        "cordova-plugin-device": "^1.1.4",
        "cordova-plugin-facebook4": "^1.7.4",
        "cordova-plugin-fcm": "^2.1.1",
        "cordova-plugin-googleplus": "git+https://github.com/EddyVerbruggen/cordova-plugin-googleplus.git",
        "cordova-plugin-inappbrowser": "^1.7.1",
        "cordova-plugin-mauron85-background-geolocation": "^2.2.5",
        "cordova-plugin-nativestorage": "^2.2.2",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.1",
        "cordova-plugin-vibration": "^2.1.5",
        "cordova-plugin-whitelist": "^1.3.1",
        "firebase": "^3.9.0",
        "fontawesome": "^4.7.0",
        "install": "^0.8.4",
        "ionic": "^2.1.18",
        "ionic-angular": "^2.0.0-rc.5-201701192302",
        "ionic-native": "2.2.11",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionic2-rating": "^1.2.2",
        "ionicons": "3.0.0",
        "npm": "^4.0.5",
        "rxjs": "^5.0.1",
        "socket.io": "^1.7.2",
        "sw-toolbox": "^3.4.0",
        "ts-md5": "^1.2.0",
        "zone.js": "0.7.2"
    }

You should update your app to the latest ionic release because we don't support older releases.
Check out my update to ionic 3.x guide: https://forum.ionicframework.com/t/guide-how-to-update-to-ionic-3-0/87516

I have done step 1, and get this:
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVers
ion@0. I'll try to do my best with it!
npm ERR! code ETARGET
npm ERR! notarget No matching version found for<EMAIL_ADDRESS>npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'ionic-hello-world'
npm ERR! notarget

your typescript version is wrong. set it to 2.3.4

Hello! Thanks for opening an issue with us! As this seems like more of a support question I will urge that you ask this question on our forum or on our slack channel. Thanks for using Ionic!


Enabling dark theme

I see that the app screen shots use a dark theme. How to enable this setting? I can't find it.

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

ID: 3e4f55cb-ea44-3ebf-da9d-dce567250935
Version Independent ID: 7197547b-8428-4499-7041-c7fd5bcc96ad
Content: Visualize data from Azure Data Explorer with an imported query in Power BI
Content Source: articles/data-explorer/power-bi-imported-query.md
Service: data-explorer
GitHub Login: @orspod
Microsoft Alias: orspodek

@faukha The June 2019 update for PowerBI Desktop defaults the theme to White.
A lot of customers have asked for the setting and it is on the product teams backlog.
You can Vote for this feature here
You will also be able to track progress and be informed when the feature goes live.
We will proceed to close this issue now.


Dynamic ngf-resize

Hi @danialfarid ,
Can i construct ngf-resize object dynamically? For example:
if the original image width greater than 1000px i want to use {width: 1000, quality: .8, restoreExif: false}
else {quality: .8, restoreExif: false}
Thank You

No, Use Upload.resize(file).then() instead before uploading.

Feature added to 12.0.3. ngf-resize can return a promise that resolves to the resize options.

Can please provide an example of usage?


No issue

Hey nice tool and thx! :)
what will happen if i go over 0.883x will the game super sample?

No, it won't. There is no benefit of 1.0x+ upscaling so I didn't implement it


Web clipper api token

Is there a way to use the web clipper api with the joplin instance in this docker container?

Hi, yes, that's why I created this docker image. It exposes the web clipper api on port 80. I gave instructions in the README.


Failed update to Blazor 0.4.0

Hi, I'm testing a system with Blazor 0.3.0 and am keen to pick up some of the new stuff in 0.4.0. However when I update and try running (client/server), I get presented with the following in my browser. Any ideas what may be the issue?
Thanks!

Try to create a new 0.4.0 Blazor project in VS and then compare content of all *.csproj files to project files in your "old" project. Also check global.json - maybe you have a reference to old sdk version.

OK, next up, check that your csproj file doesn't have any stray tags. There probably shouldn't be any ItemGroups with Add or Remove directives for files. See the 0.4 release notes for an example project file.

Thanks @chucker and @Andrzej-W. I'll give this a go later on and report back. Much appreciated!

Thanks for the suggestions. There were a couple of anomalies that I fixed (global.json has a preview reference in particular), but the issue is not resolved. I'll start digging into what happens as the server starts up, as I suspect it is crashing at some point. Any further ideas would be much appreciated.
Kind regards,     Simon

Although you cannot debug Blazor code in VS you can debug server code (it is standard ASP.NET Core project). Set server project as "startup project" in solution explorer, set breakpoint on Main method in Program class, press F5 and pray :)
You mentioned that you have VS 2017 15.7.1. I have used Blazor 0.4.0 in VS 2017 15.7.3, and now I have just upgraded to 15.7.4. I don't know if that matters.

Thanks. I already tried that and there’s a crash before the first line of the Server’s Main function (or it skips over my break point). I need to spend a bit of time working out what is what here.

I mostly have a fix now. To help anybody else who is experiencing this problem, here is what I found and the fix that gets me (almost working). I then explain the residual problem.
What was catching me was that Visual Studio and its SDKs updated in the last few days, and that these updates were needed for Blazor 0.4.0. I had been using the VS Preview, which now no longer needs to be the case. I had to update the Dot Net to version 2.1.1, requiring the SDK 2.1.301 (https://www.microsoft.com/net/download/windows). My app now starts successfully.
HOWEVER, I'm not out of the woods. My Client crashes on its first HttpPost, which is for a user log in. While the Client crashes, I am still able to put a breakpoint in the server code and trace its successful continued operation after the Client crash. I get the following in the browser's console explaining what has gone wrong in blazor.js. Any ideas please?

Kind regards,    Simon

Is there anything immediately above the Exception? A warning from the browser? HttpClient calls fetch  and in this case, fetch returned TypeError: NetworkError when attempting to fetch resource which is passed through into .NET and goes unhandled. Is there anything interesting on the Network tab of the developer tools?

I tried something radical that failed. I created an entirely new Blazor 0.4.0 hosted app,  which naturally worked with the weather fetching code. I then copied all of my Blazor 0.3.0 app's code over. This way I could tell that I was not making some csproj error. The new app has exactly the same failure as the old app.
I believe that the issue may be due to the 0.4.0 camelCase modification, or something similar. I note from the browser console output that the error occurs in the SendJsonAsync method, which had its deserialization function call changed recently.
Does anybody have a view as to whether I might be right here, and either way how I can resolve this issue?
Many thanks,      Simon

Closing this issue which is too broad and moving to https://github.com/aspnet/Blazor/issues/1046.

What solved this problem for me was to change the "sdk" "version" in global.json to "2.1.401", because the Blazor extension (version 15.7.10384) had set it as "2.1.300". I'm using Visual Studio 2017 15.8.2 and .NET Core 2.1.401.


[release-4.7] Source Manifest uses template instead of OCS_IMAGE for backward compatibility

Backport of #973
#972  is not required as this makes it obsolete.

/hold
wait for #973  to merge


Fix VERSION notation

PyPi version format does not have - (see https://pypi.org/project/stepfunctions/#history). This allows easier comparing VERSION in source code and the released versions in PyPi.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AWS CodeBuild CI Report

Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: StepFunctionsPythonSDK-integtests
Commit ID: 8939ac67c7413319a5a9c1cece919bf1d252fd01
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: StepFunctionsPythonSDK-integtests
Commit ID: 8939ac67c7413319a5a9c1cece919bf1d252fd01
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


KCL-725 remove tracking

Because the Engage part of Kentico Cloud has been removed the Tracking API is no longer supported. This leads to its removal from the Sample App.

All changes are OK.
Haven't found any mention in code, nor in wiki.
Pretty much same fix as in https://github.com/Kentico/cloud-sample-app-react/pull/108.

Thanks @LukasPirkl!


Document use-contractkit wallet configurability

Document how dapps can configure what wallets show up in the modal and order

@nicolasbrugneaux has found some other places in the use-ck docs that could use some help


Updated to work on iPad

(Working on my iPad while away from a computer at the moment, how cool would it be to just clone a project directly and have it run on my device. Apple, are you listening?)

Careful... you get that, and then there's NO reason to maintain the Mac ;-)

On this branch I'm noticing a weird issue... on first launch the issues list is blank.  Same for iPhone.

On 2nd thought, it looks like there's a huge blank header view, you can scroll to see the issues...

Hmm, weird. I'm not seeing the there; is this iOS 9 or 10?

Not seeing this weird large header on Device or on my iMac, so I'll chalk it up to 12" MacBook probs.

Is it possible w/ the current view hierarchy to support blur on the header for iPad? Currently looks a little weird that the scrolling list just disappears under an arbitrary white header w/ no indication of a separator.

Some in-app feedback on buddybuild (I sent you an invite)
https://dashboard.buddybuild.com/apps/5897bfe9e9a832010023be69/feedback


IRC channels

Some packages have IRC channels...  Are we providing any way to record these?  If so, where should we display them on the package interface?

a lot of channels use botbot for free irc logging:  https://botbot.me/

Closing as we have a package links input which could cover this scenario.


Black Screen when starting it up.

So I'm on google, and I start-up sandspiel and it's just a black screen. How can I fix this? I don't get any error message what so ever.

I've tried resetting many times.

oh jeeze - has it worked in the past for you?
when you're say you're on google, do you mean you're using chrome?

thank you for reporting the issue, I want to try to fix this if I can.

MaxBittker, I use it on a different computer at my mom's office, it works fine there. This computer can't run it. And a lot of experiments on google, they don't work. But it used to work. now it doesn't. Flash and Java are installed.

oh jeeze - has it worked in the past for you?
when you're say you're on google, do you mean you're using chrome?

It has.

Hi, i was trying to get the project to start as well, also getting a black screen.
This is the error i get in the console from js:
Error importing index.js: RuntimeError: "unreachable executed"
This is my first time working with rust, but i added this Panic hook into the tick function as such:
console_error_panic_hook::set_once();
After doing so, i received this error:
panicked at 'attempt to subtract with overflow', src\lib.rs:395:12
So i looked up what changed there in your commits and found this:
old:
fn update_cell(cell: Cell, api: SandApi) {
   if cell.clock as i32 - api.universe.generation as i32 == 1 {
        return;
    }

    cell.update(api);
}

new:
fn update_cell(cell: Cell, api: SandApi) {
   if cell.clock - api.universe.generation == 1 {
        return;
    }

    cell.update(api);
}

After changing it back i got the project working. I'm guessing that cell.clock and api.universe.generation are two different types so a cast might be neccesary? For me it's working now. I tested it with Firefox 69.0.2 (64-bits) and Chrome 77.0.3865.90 (Official build) (64-bits)

thanks for investigating this @Garrut!
This might fix the workflow and make it more resilient - I'll follow up when i have more time!


Missing hiredis module causes hang on ioredis module load

I have an error that crops up from time to time where a missing hiredis module results in my node program hanging. I traced it down to the require('hiredis') line in the ioredis/lib/parsers/hiredis.js file.
When wrapped in a try...catch block, an error is thrown and the program exits, otherwise the program hangs with no additional output.

Could you show me your code causing the error?

It was simply hanging during the import. As soon as I added the try...catch then removed it, everything started working correctly, so I am unable to reproduce it now.
Here is the code surrounding the import. There is only one module import being performed before the ioredis import:
#!/usr/bin/env coffee

console.log "Starting script."

_ = require 'lodash'
console.log "Lodash ready."

Redis = require 'ioredis'
console.log "Redis module loaded."

durations = require 'durations'

I don't think there's any problem when requiring ioredis without hiredis installed since require('hiredis') is wrapped in a try/catch.
I'm closing this issue. However if you can reproduce the problem, feel free to open this issue again.

I'll admit that was what really surprised me. The fact that there was a try / catch already in place. However, the hang actually occurs when the hiredis module is being required, so the hang is within the body of the try portion before any error has been encountered. This may end up being something I need to raise on the hiredis-node repository instead of here if I can reproduce it.
In any case, here are some additional details just in case.
Here is my modified (added try/catch and logging) version of ioredis/lib/parsers/hiredis.js
'use strict';

console.log("hiredis> load dependencies...");
var events = require('events');
console.log("hiredis> loaded events");
var util = require('util');
console.log("hiredis> loaded util");
var hiredis;
try {
  console.log("hiredis> preparing to load the hiredis module...");
  hiredis = require('hiredis');
  console.log("hiredis> loaded hiredis");
}
catch (error) {
  console.log("Error loading the hiredis module:", error);
}
var ReplyError = require('../reply_error');
console.log("hiredis> loaded ReplyError");
console.log("hiredis> setting up module...");

Here is the output with the above modifications in place.
hiredis> load dependencies...
hiredis> loaded events
hiredis> loaded util
Error loading the hiredis module: { [Error: Cannot find module 'hiredis'] code: 'MODULE_NOT_FOUND' }
hiredis> loaded ReplyError
hiredis> setting up module...
ioredis> loaded hiredis
ioredis> all dependencies loaded. Setting up the module...
base redis module loaded
reply-error loaded
bluebird loaded
cluster loaded
Redis module loaded.
Redis cliet created.
/home/jedwards/aviata/campaign-builder-import/node_modules/ioredis/lib/parsers/hiredis.js:33
  this.reader = new hiredis.Reader({
                           ^
TypeError: Cannot read property 'Reader' of undefined
  at HiredisReplyParser.reset (/home/jedwards/aviata/campaign-builder-import/node_modules/ioredis/lib/parsers/hiredis.js:33:28)
  at new HiredisReplyParser (/home/jedwards/aviata/campaign-builder-import/node_modules/ioredis/lib/parsers/hiredis.js:24:8)
  at Redis.exports.initParser (/home/jedwards/aviata/campaign-builder-import/node_modules/ioredis/lib/redis/prototype/parser.js:18:22)
  at Socket.<anonymous> (/home/jedwards/aviata/campaign-builder-import/node_modules/ioredis/lib/redis/event_handler.js:24:10)
  at Socket.g (events.js:199:16)
  at Socket.emit (events.js:129:20)
  at TCPConnectWrap.afterConnect [as oncomplete] (net.js:991:10)

Also had this issue, had to npm i --save hiredis to sort it for me.


Add weekly dataset, animation function

Ugh, I reformatted spacing from 4 to 2 to match the rest of your code, @katelynnobrien — sorry for the hard-to-read diff.

Sorry about the tiny tabs!! I will fix the colors - I think that's a remnant from copying and pasting a bunch of times from different versions!


need find a new way to compile dev version automatically

same as https://github.com/clamsproject/clams-python/issues/96 .

closed via #189 .


Azure correctly creates the blob, but Azurite returns CannotVerifyCopySource (404)

Summary
Using Azure Blob Storage on the cloud, I can create a new blob from a url with no problem. However, using Azurite, get an error saying "CannotVerifyCopySource", status code 404.
I'm trying to verify if the issue lies in Azurite itself or the Rust SDK. In the Rust code example I set, I'm using the SDK's copy_from_url to copy a cat image from thecatapi cdn into the Azure blob storage container.
Versions
I'm using azurite's latest docker container image (azure-storage/azurite:latest) as of November 11th, 2024.
Azure Rust SDKs version 0.21.0
Steps to reproduce
I created a dummy project that can help reproducing the error. You just need to change the environment variables to test either on Azure or Azurite. As a second option, here are the steps:

Run an Azurite container.
Use Copy blob from URL operation.
Verify if the 404 error persists
Change the environment variables to repeat the same operations on Azure cloud
Verify if the blob is created.

Additional information
I haven't found any workaround yet. There are some hypothesis around the copy not being implemented as I have seen in other GitHub issues, but in those situations, users get an error message saying it is not implemented yet, which is not the case this time.

@caioluis
It looks you are trying to copy a blob from Uri "https://cdn2.thecatapi.com/images/0XYvRd7oD.jpg".
Azurite only support copy blob with source/dest inside same Azurite instance, see https://github.com/Azure/Azurite#:~:text=Snapshot Blob-,Copy Blob,-(Only%20supports%20copy
So currently this is by design in Azurite.
If you would like to create that blob with the content in the Uri, please first download it to local disk, then upload to Azurite. Then you can copy the blob inside same Azurite instance.

Thanks for the fast response @blueww. Is there any ongoing PR for this parity? I would like to contribute if I have the required knowledge to. Cheers

Thanks for your willing for contribution!
I don't remember any on-going PR for this.
The implementation  of copy from outside will be much different from copy inside Azurite instance.
As there are so many customer using Azurite in different ways, any unstable or inaccurate error message will very possibly get customer issues. So please make sure:

the error (e.g. when copy fail from outside Azurite) is as clear/actionable as possible
If any copy source support by product Azure can't be support by Azurite, please doc it (in Readme) and have error message to cover it.

This would be very useful; currently it's fairly inefficient to download and copy a bunch of data, and ideally you wouldnt have to write two different versions of your code; one to run locally (with azurite) and one to run against a normal azure storage account.

I will certainly contribute on this, @onionhammer, but I won't say it will be fast. I'll likely begin on January.


add some pictures ? idk it looks good

hi!
could you please clarify on what pictures exactly? are you suggesting screenshots or some kind of demo video, or pictures within the actual program?

i am suggesting that screenshots would be good

i have though about doing a demo video at some point. but there are still some features i would like to add before making the video so that i can show the full functionality.
but yeah for now i'll add some screenshots for sure. thanks for the suggestion!

yeah no problem!

i added some gifs. check it out!
tell me if there's something you feel can be changed here

yep 👍🏻 its good

alright thank you!


Review ngclient documentation

Description of issue or feature request:
We should review the ngclient documentation and if necessary create a pr.
A similar issue for Metadata API: #1600.

See also #1595


 Maybe there are cases when [userName]="'John'" is ok?

should be userName="John"

should be userName="John"

Yeah, that makes sense. I mean, it's an obvious mistake, and still, we don't have community rules to handle this.

Asked Twitter about this. Maybe this way they want to highlight an error if such input is missing? 🤔

Seems like it:
https://github.com/angular-eslint/angular-eslint/issues/1172
Also worth noting that if [title] is an input, with brackets it won't bind to the native title attribute, which can be a desired effect. Anyway, let's close this as not fit due to overgeneralization.


Exclude internal files from autofix commits

Follows on from #1072 and additionally prevents .npmrc mishaps.

should we try and read the .gitignore for max safety?

@samchungy These code paths use Git.getChangedFiles under the hood, and from local testing it appears to respect .gitignore already 😌. This is an additional layer of protection as I think there are some projects where .npmrc is not .gitignored; we have one pnpm repo where this is the case.
I was actually thinking of rolling back #1072 if we're happy with this approach to avoid the unnecessary .gitignore change.


Add auto creation of client if is not passed

Otherwise the GcsIO class, the classes GcsDownloader and GcsUploader don't have this feature to auto create the client.
Please add a meaningful description for your change here

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

I believe the intention here is to use these classes through GcsIO (e.g. GcsIO.open which passes the client), and not use them independently. But at the same time they are not marked as internal classes.
@chamikaramj could comment on the right course of action.

r: @chamikaramj PTAL?

@chamikaramj PTAL : )

are you interested in creating a GcsUploader / GcsDownloader outside of the normal flow? (i.e. outside of this section of the code? https://github.com/apache/beam/blob/9af555d9ccdb0d7a378dbea456cdeefe2e781d6d/sdks/python/apache_beam/io/gcp/gcsio.py#L222-L239)
I worry about having several places to update to create the client. Maybe add a single function that creates it?

gcsio is not a part of the documented Beam API and hence is intended for internal usage. If you need to connect to GCS consider using an official GCS client library [1]. If you are within a Beam pipeline (for example, implementing a DoFn), you also have the option of using the Beam FileSystem API [2]
[1] https://cloud.google.com/storage/docs/reference/libraries#client-libraries-install-python
[2] https://github.com/apache/beam/blob/master/sdks/python/apache_beam/io/filesystems.py


Caching causes render to flash if page transitions are used

I decided to put some page transitions in my app today and so I used the exemplary animate.css along with the following snippet of javascript:
app/assets/javascripts/turbolinks_transitions.js
$(document).on('turbolinks:load', function(){
  $('.page-transition').addClass('animated fadeIn');
});

loaded them both and... everything seemed to work fine except one LITTLE thing:

Otherwise, during standard navigation (via Application Visits), Turbolinks will immediately restore the page from cache and display it as a preview while simultaneously loading a fresh copy from the network. This gives the illusion of instantaneous page loads for frequently accessed locations.

It turns out that whenever caching is used (typically on pages that have already been visited) the content appears to render immediately, then disappears and then fades in using the class I defined above.
This is only happening when caching is enabled, the page in question has already been visited before and transitions are enabled.
If I disable the transitions then there is no flashing BUT again I get "hints" of flashing whenever I revisit pages with forms where I've put flash messages which in this case flash out in new visits (probably has to with cache invalidation).
If I disable caching all together everything is smooth as butter. So I am wondering, why is this happening and how to mitigate that given that one might want to use caching as well?

I have the exact same issue, I'll keep an eye on this issue to see if there's any answer. In my case it's the navigation buttons' hover. It looks very odd.

I think you should be able to use the turbolinks:before-cache to remove the animation classes.
https://github.com/turbolinks/turbolinks#preparing-the-page-to-be-cached
In OP's example maybe something like this could work:
document.addEventListener("turbolinks:before-cache", function() {
  $('.page-transition').removeClass('animated fadeIn');
})

The cached DOM would then not have the classes making it the same as a newly loaded page.

interesting, would your example not remove it from the actual page though - is there an arg parsed to that callback? Surely this would operate on the actual document.

@Pushplaybang That's right. This command will modify the actual page but is only executed right before the user navigates to another page, which then replaces the whole body with the new pages body. Any changes you make to the DOM at this point will not be seen by the user. The modified DOM is cached and then shown when the user visits that page again in the same sitting.

@lsei  - ok awesome, must definitely give this a try.  Would it also affect the preview?  (loaded and used specifically when hitting back).
I do feel like this is a common enough question/use case/request that is worth documenting.

chiming in to say i have also experienced this issue while using bootstrap 4's default animation on alerts. whenever i clicked off a page with a flash message alert and then click back to it, there was always brief flash of the old flash message. adding @Pushplaybang 's  tag fixed it (thanks!) but i'm not sure what effect this will have on fidelity that i haven't noticed yet and would appreciate a better solution, tho i don't have any suggestions.

@chrickso  - still using the tag and it works a charm, if you've got a page transition like I do with multiple subtle elements animating on each page change, the preview actually isn't useful.

@chrickso if you notice a flash of content after clicking a link to a previously visited page, you are seeing the cached preview first, and then it being replaced by the fresh copy. Turbolinks caches a page just before it is navigated away from, so when returning, a person sees the page exactly as they left it. To prevent elements like flash alerts from being visible in the cached copy, hook into the turbolinks:before-cache event, and remove them.
Regarding animating between transitions: the preview is designed to be instantaneous. If you still want to animate transitions when returning to a page which exists in the cache, then @pushplaybang's solution is the one to go for :)
If Turbolinks were to have animation hooks, it is likely that this case will be considered. As there is already an issue covering animation, I'll closing this for now. Thanks!

I read this whole thread and tried the method I explained here: https://github.com/turbolinks/turbolinks/issues/309.
I only have one problem when I browse through the pages the first time and I need your brain to find a solution. Could you?


JAMES-1700 Don't fail in account creation if user already exists

Using thread-weaver to really test racing condition.
Manual mock seems to be necessary as Mockito and thread-weaver seem to conflict.

Reopen here: https://github.com/linagora/james-project/pull/178


feat: make Autocomplete set its height automatically

🙋 Feature Request
I would like to see the Autocomplete component set its height dependend on the selected items automatically.
🤔 Expected Behavior
Like in outlook.com:

😯 Current Behavior
The items are only shown horizontally and overflow if too many items where selected

💁 Possible Solution
Use a text-area instead and do the rest with flexbox magic

It could be interesting. Let's see what can be done
In the meantime, you can add a style overflow: auto; to display a scrollbar. It's not the same result, but it may help you out.

By the way, I see that there's a bug in the component that should display left/right arrows at the extremes of the Textfield, when there are more elements than space.

I think setting height automatically would not be the desired in all cases, may be a flag to indicate if auto-height is enabled or not. Display flipper (left/right arrow) if auto-height is disabled.

@dvoituron can you please link the bug you mentioned in component, for tracking purpose.
With workaround of overflow: auto; the scrollbar  does appear but since i have fixed height and width autocomplete box, the selected items still overflow the box.

I haven't created any new bugs. I've updated to version 4.4.

See #1302


Design issues: 'prediction_end_time' based on 'sun_elevation' to be replaced by 'sun_azimuth'

All sensors based on sun_elevation related to

prediction_end_time
pv_excess_start_time
pv_excess_end_time

needs to be replaced by calculations based on

sun_azimuth

Calculations based on sun_azimuth are also a path to a dead end.
A working solution seems to be the following calculations by the usage of sunrise, sunset and daylight:

I've introduced a script blueprint to setup related values for corresponding input_numbers:


Raspberry Pi support ?

Hey guys !
I was wondering if raspberry pi support was an option ?
I tried to install without success
Thanks !

I was wondering if raspberry pi support was an option ?
I tried to install without success
Thanks !
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/aerokube/selenoid/issues/875?email_source=notifications&email_token=AAKY23O4FLSIXHPKU7D3VCLRDX64ZA5CNFSM4KYGXTPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IO3R34A,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKY23ORC7MSLULZWFO3YKDRDX64ZANCNFSM4KYGXTPA
.

You just have to compile binary itself. чт, 20 февр. 2020 г., 07:08 Alexandre VLADOVICH<EMAIL_ADDRESS>…
Hey guys ! I was wondering if raspberry pi support was an option ? I tried to install without success Thanks ! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#875?email_source=notifications&email_token=AAKY23O4FLSIXHPKU7D3VCLRDX64ZA5CNFSM4KYGXTPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IO3R34A>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23ORC7MSLULZWFO3YKDRDX64ZANCNFSM4KYGXTPA .

Thanks for the reply.
I'm trying to compile but no success.
Did you mean go run main.go ?
Sorry I'm not familiar with Go language

Ok I found a solution : built cm.
Seems to be working.
You can close this issue :)

Would you please share your experience to use selenoid on Raspberry PI?
What is use case?
чт, 20 февр. 2020 г., 16:28 Alexandre VLADOVICH<EMAIL_ADDRESS>
Ok I found a solution : built cm.
Seems to be working.
You can close this issue :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/aerokube/selenoid/issues/875?email_source=notifications&email_token=AAKY23LFOBXWH4OINCHOTMDRD2AQXA5CNFSM4KYGXTPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMN4KZQ#issuecomment-589022566,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKY23IYU6FFMJAXVHAUYJLRD2AQXANCNFSM4KYGXTPA
.

Hey sorry for not answering, been a bit busy lately.
What I want to do is to use selenoid for webscraping with my raspberry pi.
And no matter what I do, the docker container on the raspberry pi keeps restarting.
I think it's because of ARM platform.
If you have a solution for that, that would be awesome.

@vlidu any log entries from Selenoid container would definitely help to diagnose.

@vania-pooh I get this error every time the container reboosts
standard_init_linux.go:211: exec user process caused "exec format error"

@vlidu yeah, this is because you have a Linux binary inside Docker container, whereas you need ARM. Just compile Selenoid from sources with GOARCH=arm and build Docker image as shown here: https://aerokube.com/selenoid/latest/#_contributing_development.

But also you need browsers containers built for arm architecture...
ср, 26 февр. 2020 г., 16:43 Ivan Krutov<EMAIL_ADDRESS>
@vlidu https://github.com/vlidu yeah, this is because you have a Linux
binary inside Docker container, whereas you need ARM. Just compile Selenoid
from sources with GOARCH=arm and build Docker image as shown here:
https://aerokube.com/selenoid/latest/#_contributing_development.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/aerokube/selenoid/issues/875?email_source=notifications&email_token=AAKY23KITURG2RQFTALFSIDREZWZXA5CNFSM4KYGXTPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENAIWTA#issuecomment-591432524,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKY23LXQFLNRALV23YD2MLREZWZXANCNFSM4KYGXTPA
.

I was able to build selenoid and selenoid ui and get both working on rpi4. The thing is with selenoid-images. I built with go build selenium-images project and with GOARCH=arm and then i triggered executable directly on rpi4. It didn’t work. It seems that it is unable to deal with base layer since it’s built for another platform.
Do you have any hints? How can i build browser images? Is it even possible atm?

@mjevtovic that's strange because everything is expected to run inside Docker container. However knowing that Docker is reusing host machine kernel - probably firefox --version command is causing this issue. Anyway we did not test building browser images under ARM, we are doing everything under Ubuntu amd64.


fill_in prepends to existing input value instead of replacing it

When filling in an input, the new value was prepended to the old value instead of replacing it.
This was only reproducible on Travis CI and Circle CI, not locally. Both of these systems use Ubuntu Precise, which uses Qt version 4.8.1.
The bug appeared when we added radio buttons to the form. Removing the required attribute from these radio buttons stopped the bug from happening.
This is too vague to do anything about but in case someone ever experiences the same issue there is now a documented bug somewhere on the internet.

Since I haven't been able to reproduce this, I will close this issue for now.


Instance ID in the path and the access token don't match

What?
I am currently building a react native app with chatkit, however the authentication seems to fail and keeps bringing back the following message: Instance ID in the path and the access token don't match
I'm using Laravel as a backend and have the following route:
Route::post('/chatkit-auth-user', 'API\MessagesController@authenticateChatkitUser');
Within this method I authenticate the user depending on their user ID like so:
public function authenticateChatkitUser(Request $request)
{
    $userId = $request->input('user_id');
    $authData = $this->chatkit->authenticate([
        'user_id' => "{$userId}",
    ]);

    return response()
        ->json(
            $authData['body'],
            $authData['status']
        );
}

The token is generate which is then obviously passed into the TokenProvider instance like so:
const url = 'https://my-endpoint.com/api/chatkit-auth-user';
const userToken = this.state.user.authToken;
const tokenProvider = new Chatkit.TokenProvider({
  url,
  headers: {
    Authorization: 'Bearer ' + userToken,
    'Content-Type': 'application/json',
  },
});
const chatManager = new Chatkit.ChatManager({
  instanceLocator: '<MY_INSTANCE_LOCATOR_ID>',
  userId: `${this.state.user.userId}`,
  tokenProvider: tokenProvider
});

chatManager.connect().then(currentUser => {
  this.state.currentUser = currentUser;
  console.log(currentUser);
  this.currentUser.subscribeToRoom({
    roomId: CHATKIT_ROOM_ID,
    hooks: {
      onNewMessage: this.onReceive.bind(this)
    }
  });
});

currentUser never gets consoled and always returns a 403 with the message in the title. From the docs, I think I've implemented everything correctly, I have even span up a heroku app with https://github.com/pusher/chatkit-server-node, the same issue still occurs.
I have spent a couple of days trying to figure this out and would appreciate if I could get some guidance if I'm doing anything wrong!

The error suggests that you're using a different instance locator (of which an instance ID is a component part) in your client and your server. Are you definitely using the same in both places?

Okay, thanks for following up 👍

i had the same error. deleting the instance and passing in the new values worked for me as well


Predict not working on GPU

Hi,
I got the predict function to work with only the cpu, but when I run with gpu it just returns nothing. This is what I am getting in the terminal.
 C:\Users\Evan\Desktop> lumi predict vids/lunch.mp4 --checkpoint=fast --save-media-to=vidO Found 1 files to predict. 2018-08-17 19:19:41.978750: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 2018-08-17 19:19:42.234390: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1356] Found device 0 with properties: name: TITAN X (Pascal) major: 6 minor: 1 memoryClockRate(GHz): 1.531 pciBusID: 0000:01:00.0 totalMemory: 12.00GiB freeMemory: 9.93GiB 2018-08-17 19:19:42.311618: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1356] Found device 1 with properties: name: GeForce GTX 1070 major: 6 minor: 1 memoryClockRate(GHz): 1.683 pciBusID: 0000:02:00.0 totalMemory: 8.00GiB freeMemory: 6.63GiB 2018-08-17 19:19:42.315542: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1435] Adding visible gpu devices: 0, 1 2018-08-17 19:19:43.325791: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:923] Device interconnect StreamExecutor with strength 1 edge matrix: 2018-08-17 19:19:43.328053: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:929]      0 1 2018-08-17 19:19:43.329931: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:942] 0:   N N 2018-08-17 19:19:43.331604: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:942] 1:   N N 2018-08-17 19:19:43.333030: I T:\src\github\tensorflow\tensorflow\core\common_runtime\gpu\gpu_device.cc:1053] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9616 MB memory) -> physical GPU (device: 0, name: TITAN X (Pascal), pci bus id: 0000:01:00.0, compute capability: 6.1)

Does it hang there, does it return and error or just returns and nothing else? Does the vid0 directory exist?

@EthanReid any updates on this? Could you get it to work?


Issue #174 Functional Programming

#174 NOTE:

Please fill out the template below

Did you read the instructions in the README?

Y

Have you read the instructions in CONTRIBUTING?

Y

Have you written this article by yourself? Have you taken inspiration from anywhere and then written it in your words?

I've written this article by myself after reading several resources!

46% plagiarized. You can check your article being plagiarized from which blogs/studies/books from this plagiarism checker

Alright, let me fix that!

@the-ethan-hunt I've tried to lower the plagiarism as much as possible & now it's down to 11% which accounts for the quotes I've used! Please review it now...
Also, can you tell me what is the maximum plagiarism percent allowed? ...will keep it in mind while writing the next article!


Feature Request: hide nebula+ for some chanels

some channels uplodes alot of unintresting nebula+
for exampel: tour and extended interjuves

Please try it out:
enhancer_for_nebula-<IP_ADDRESS>.zip
To install:

in Chrome, please go to Setting, click Extensions (lower left), enable Developer Mode (upper right) and select "Load unpacked". Here select the unzipped folder (should contain folders _locale, icons, scripts, styles).
in Firefox, please go to about:addons, click on the gear (top right), select Debug addons and click "Load Temporary Addon". Here select the zip you downloaded.

works abd sho0ws up corectly

for consistensy, use the same neme in both. use the settingggsname from "Manage hidden creators"
when i removed hide+ it still shows up

not blocking anything but locks wered

for consistensy, use the same neme in both. use the settingggsname from "Manage hidden creators"

Not sure what you're trying to say here.

when i removed hide+ it still shows up

There was a bug where the setting wasn't properly removed, should work properly in the released version.


Support compound primary keys

Per @jmealo, a table with a compound primary key doesn't seem to render properly

getPrimaryKey actually returns every key as an array in rows -- just support array responses

Also, @jmealo, the current build does seem to let you browse and update tables with compound primary keys. Could you paste/send the schema of the table you were having trouble with?

Which branch? I cloned the default last night. It didn't work with any of
my tables. I had to make one from scratch. I do believe all the tables had
compound keys though.
I'm not sure how you use the primary key but I'm imagining you'd need
special handling if you're trying to use that as a unique identifier in a
lookup table or the DOM.
I'll send you the schemas OOB.
On Jun 27, 2016 8:33 PM, "Tim Wisniewski"<EMAIL_ADDRESS>wrote:

Also, @jmealo https://github.com/jmealo, the current build does seem to
let you browse and update tables with compound primary keys. Could you
paste/send the schema of the table you were having trouble with?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/timwis/dataface/issues/34#issuecomment-228916183, or mute
the thread
https://github.com/notifications/unsubscribe/ABBGKAgd9TFU7d15ZBfTtZiDuxxTy55Aks5qQGvXgaJpZM4I-uol
.


fix: error in Kubelet when using default root directory

Relevant Issue
Fixes #288
Details
Setting the snapshotter's default root path to /var/lib/containerd/io.containerd.snapshotter.v1.nydus can resolve the issue.

Thanks for the PR! but it seems the string /var/lib/containerd-nydus is across multiple files, can we correct them all?

@imeoer Thank you for your feedback and review! I have checked and updated the string /var/lib/containerd-nydus across all relevant files, except for two yaml files in the \tests\e2e\k8s directory. Please review the changes and let me know if there's anything else that needs to be adjusted.

@fappy1234567 Thanks, I think there's no reason to keep tests/e2e/k8s, and the README.md needs also to be updated. :)

@imeoer I've already updated the README.md. Let me know if there's anything else that needs attention.

@fappy1234567 Thanks, the tests/e2e/k8s also need to be updated.

@imeoer Thank you for your guidance. I have also updated the tests/e2e/k8s section, but there are some checks that are not passing. When you have a moment, could you please take a look and see if there is anything that needs to be adjusted? Thank you very much!


Add support for required label values

Resolves #1083
Ref: EC-766

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (a64de53) to head (7e2e0f4).
Report is 4 commits behind head on main.

Additional details and impacted files

@@            Coverage Diff            @@
##              main     #1102   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files          113       113
  Lines         5672      5700   +28
=========================================
+ Hits          5672      5700   +28

Files
Coverage Δ

policy/release/labels.rego
100.00% <100.00%> (ø)

policy/release/labels_test.rego
100.00% <100.00%> (ø)


Strange plugin installation error on Windows 8 - unauthorized access to rewrite config...

Installation fails and shows an unauthorized access message (viewable in network).  Plugin did install though.  happens on uninstall as well. Think its due to the IIS app recycle...  This is Windows 8 (not windows 8 server, actual windows 8)
{
"message": "An error has occurred.",
"exceptionMessage": "Filename: redirection.config\r\nError: Cannot read configuration file due to insufficient permissions\r\n\r\n",
"exceptionType": "System.UnauthorizedAccessException",
"stackTrace": "   at Microsoft.Web.Administration.Interop.AppHostWritableAdminManager.GetAdminSection(String bstrSectionName, String bstrSectionPath)\r\n   at Microsoft.Web.Administration.Configuration.GetSectionInternal(ConfigurationSection section, String sectionPath, String locationPath)\r\n   at Microsoft.Web.Administration.ServerManager.ApplicationPoolsSectionCreator()\r\n   at Microsoft.Web.Administration.Lazy.Initialize[T](T& target, CreateInstanceDelegate1 valueFactory)\r\n   at Microsoft.Web.Administration.ServerManager.ApplicationPoolCollectionCreator()\r\n   at Microsoft.Web.Administration.Lazy.Initialize[T](T& target, CreateInstanceDelegate1 valueFactory)\r\n   at Alchemy4Tridion.Controllers.Plugins.PluginsController.RecycleIISAppPool()\r\n   at Alchemy4Tridion.Controllers.Plugins.PluginsController.UninstallPlugin(String pluginName)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.b__9(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()"
}

For the people who were having similar issues, it looks like it was caused by the Recycle IIS App Pool functionality to clear the app domain.  Even though they had plugged in an Administrator account, on some machines there was still a security error.
I've removed the recycle from the plugin installation/uninstallation process and replaced it with an update to Alchemy's Web.config (which in turn reloads the app domain).  Security is granted on the Web.config at A4T installation time.
I've also removed ordering so if during app domain recycle any error is caused, the plugin is still considered to be successfully installed/uninstalled (and error message shows that now).


Convert succ param to reference

Reviewers: @HowardHinnant @vinniefalco

Happy to review but I won't be able to get to it until next Wednesday.  I'm on vacation until then.

Does this really need a review?! ugh.

Suggested commit message:
Pass by reference in succ


ipam allocation not successful

Hi ,
I'm getting some errors because of IPAM
time="2021-06-07T10:10:58Z" level=error msg="ipam allocation not successful: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing dial tcp: lookup ipam-vl3-service.wcm-cisco.com on <IP_ADDRESS>:53: no such host" \n waiting 60 seconds before retrying \n"
time="2021-06-07 10:11:04.20089" level=info msg="Agent plugin state update." lastErr="" loc="statuscheck/plugin_impl_statuscheck.go(183)" logger=status-check plugin=vpp-ifplugin state=ok
What are the possibilities of the issue??

We moved to private repo long time ago

sure thank you @nishantapatil3


Make PexInfo.pex_hash calculation more robust.

Previously the PexInfo metadata itself was left out of the calculation.
This could lead to unzip and venv mode collisions.
Add a previously failing test and fix.
Fixes #1218

To double check, we're making a reasonable gamble that this should be safe from a backwards compatibility perspective, right?

Right. Since this scheme includes more keys (all PexInfo keys instead of just code_hash + distributions) its impossible for the input to the sha1 to be the same.

That is, it's unlikely we'll get hash conflicts with the prior scheme.

Roughly 1 chance in 2^160.


Entitlements dependency in rules_apple is no longer public (rules_apple 0.13.0)

Hammer.bzl currently depends on these load statements
load(
    "@build_bazel_rules_apple//apple/bundling:entitlements.bzl",
    entitlements_rule = "entitlements",
)
load(
    "@build_bazel_rules_apple//apple/bundling:entitlements.bzl",
    "AppleEntitlementsInfo",
)

These have been moved into internal rules and probably shouldn't be depended on anymore. We should revisit if our custom entitlement logic is still necessary given recent work on rules_apple

This blocks upgrading to rules_apple 0.13.0


Begin migrating external repository definitions to importable WORKSPACE function

This allows other Bazel projects to more easily depend on Kythe without
needing to copy our entire WORKSPACE file.
Only repositories needed to build targets exposed by #3105 have been
migrated.

Buildbot is complaining about the switch to the non-native maven_jar repository rule.  It requires mvn installed to work properly.


Is there a way to know what is the item that was dropped?

I was going through the documentation and it was not clear to me if there was a way to know what is the new item that was dropped on a list. Is it possible to know?

hi @jjreisfl
yes, it is. In case your item comes from the same sortable container then use onUpdate event (e.g. see https://github.com/smnbbrv/angular-sortablejs-demo/blob/master/src/app/examples/sortable-with-options/sortable-with-options.component.ts#L36)
This event will give you the oldIndex and newIndex properties (see https://github.com/RubaXa/Sortable). Using that you can take the item from your array that is located at newIndex, this will be your newly dropped element.
If you have two containers and you want to track cross-container drag-drop, you need to use onAdd event with the same logic like you do for onUpdate.
If you don't mind I will leave it open as another idea for improvement in v3.

Hi There
I came here with the same question as jjreisfl but when I try and get the item out of the array at that index, I get undefined and if I print the array at that point, It is empty. Would it be a problem if the array is passed as an Input to the component and I am defining the onAdd callback in ngOnInit?
Let me know if this is the right place for this and if I should attach some code.

hi @t3rror23
try to log the array as console.log(JSON.stringify(your_array_here)). This will actually give you the best answer what is going on. If the array is empty here then something is wrong with passing it.
Just a random idea: do you use arrow function? Sounds like you have a wrong this inside your function

Hi @smnbbrv
So on further inspection and similarly to what you suggested, I printed out an enum value that was passed to the component as @Input() options: Options; when ever the onAdd() defined in ngOnInit() is called, It always prints the value that is passed to the last item defined in my template.
here is the onAdd this.options.sortableOptions.onAdd = (event: any) =>  console.log(this.options.additionalOptions.period);
on your random idea, I did notice that i was using this inside the anonymous function so I tried declaring options locally inside of ngOnInit() as const options = this.options; and using the local instance but I am still getting the same result
I understand now that this may be more related to my understanding of  javascript and/or Angular and less to the sortablejs plugin but any assistance with this would be amazing

Hi, would be super then if you create the stackblitz that reproduces the issue. It’s hard to help otherwise...


fix: tree view fixes

TreeView shown w/in regular model page with expando

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

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


MAISTRA-774: Update certificates for testing

This seems to be missing the updates to root.cert and root.key, upstream re-generated those as well.

Sorry, I thought it was a single commit.  @dgn thanks for raising this.

@dgn Sorry, should be fixed now

This fixes broken tests, I'm going to merge this by hand