BottomNavigationBarItem has wrong colors when BottomNavigationBar is shifting

When the BottomNavigationBar is set to BottomNavigationBarType.shifting, it uses white color for each BottomNavigationBarItem item when brightness is light, which makes them almost invisible. When the brightness is dark, it uses black, which is also almost invisible. As soon as the bar is set to BottomNavigationBarType.fixed, the colors are correct.
PLEASE FIX!
main.dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('SOME TITLE'),
      ),
      bottomNavigationBar: BottomNavigationBar(
        currentIndex: 0,
        type: BottomNavigationBarType.shifting,
        items: const [
          BottomNavigationBarItem(icon: Icon(Icons.card_giftcard), label: 'Gifts'),
          BottomNavigationBarItem(icon: Icon(Icons.shopping_cart), label: 'Cart'),
          BottomNavigationBarItem(icon: Icon(Icons.storefront, size: 35), label: 'Shop'),
          // BottomNavigationBarItem(icon: Icon(Icons.settings), label: 'Settings'),
        ],
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: const <Widget>[
            Text(
              'SOME CONTENT',
            ),
          ],
        ),
      ),
    );
  }
}

pubspec.yaml
name: flex
description: A new Flutter project.

version: 1.0.0+1

environment:
  sdk: ">=2.15.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.2

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_lints: ^1.0.0

flutter:
  uses-material-design: true

Flutter Doctor
[✓] Flutter (Channel stable, 2.8.0, on macOS 12.0.1 21A559 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] Connected device (2 available)

Hi. That is not a bug. That is the expected behavior according to the docs https://api.flutter.dev/flutter/material/BottomNavigationBar-class.html.

BottomNavigationBarType.shifting, the default when there are four or more items. If selectedItemColor is null, all items are rendered in white. The navigation bar's background color is the same as the BottomNavigationBarItem.backgroundColor of the selected item. In this case it's assumed that each item will have a different background color and that background color will contrast well with white.

Hi @wolframm,  @NullByte08 is right, This is working as intended.  It is assumed that with BottomNavigationBarType.shifting, BottomNavigationBarItem.backgroundColor will be provided as a contrasting color.

code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int index = 0;
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('SOME TITLE'),
      ),
      bottomNavigationBar: BottomNavigationBar(
        backgroundColor: Colors.red,
        onTap: (x) {
          setState(() {
            index = x;
          });
        },
        currentIndex: index,
        type: BottomNavigationBarType.shifting,
        selectedItemColor: Colors.red,
        items: const [
          BottomNavigationBarItem(
              icon: Icon(
                Icons.card_giftcard,
              ),
              backgroundColor: Colors.green,
              label: 'Gifts'),
          BottomNavigationBarItem(
              icon: Icon(
                Icons.shopping_cart,
              ),
              backgroundColor: Colors.grey,
              label: 'Cart'),
          BottomNavigationBarItem(
              icon: Icon(
                Icons.storefront,
                size: 35,
              ),
              backgroundColor: Colors.purple,
              label: 'Shop'),
          BottomNavigationBarItem(
              icon: Icon(
                Icons.ac_unit,
                size: 35,
              ),
              backgroundColor: Colors.red,
              label: 'Shop'),
          // BottomNavigationBarItem(icon: Icon(Icons.settings), label: 'Settings'),
        ],
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: const <Widget>[
            Text(
              'SOME CONTENT',
            ),
          ],
        ),
      ),
    );
  }
}

Closing as this is working as intended.


docs: fixed typo

What is it?

[ ] Feature / enhancement
[ ] Bug
[x] Docs / tests

Description
Fixed typo

thanks


fix codestyle test

Fix for Pycodestyle Test and Flack8 Test

For Pycodestyle Test

Add white space

For  Flack8 Test

Specify 'flake8' version as 4.0.1 (Update to flake8 occurred on 8/1 and the class 'ConfigFileFinder' became unusable)

@yoshipon @tkokada @aramoto99
As a background to the creation of this pull requesut, an update of pycodestyle on 7/31 and Flack8 on 8/1 occurred, and the tests failed.
The pycodestyle modification was a minor modification to add spaces, and the test was successful, but the Flake8 modification was a moderate or larger modification, as the class ConfigFileFinder disappeared in the update, and I guessed that using the latest version would require a medium or larger modification.
Therefore, I modified it by once specifying the older version in the requirements.txt file.
Please let me know if you have any comments on this modification.
Translated with www.DeepL.com/Translator (free version)

このpull requesutを作成した経緯としまして、
7/31にpycodestyleの、8/1にFlack8のアップデートが発生し、
テストが失敗するようになりました。
pycodestyleの改修は、スペースを入れる軽微な修正でテストが成功したのですが、
Flake8の改修は、アップデートでクラス ConfigFileFinder が消えており、
最新バージョンを使うと、中規模以上の改修が必要と推測されるため、
一旦requirements.txtで古いバージョンを指定する形で改修しました。
こちらの改修について何かご意見あればお聞かせ下さい。

Just my opinion, I didn't check any changes about ConfigFileFinder.
In general terms, the rollback to reffer old libraries, is not good.
But reducing the codes, is good.

I agree with Okada san.

This problem is occurring with pytest-flake8.
https://github.com/tholo/pytest-flake8/issues/87
This error occurs when flake8==5.0.1.
I think it is better to keep using 4.0.1 for the time being.

Thank you for sharing the link.
The bug about flake8_5.0.1 will be fixed in future but currently it's better to use 4.0.1, isn't it?

I see, thank you!
is 5.0.0 not good?

Because an error occurs when using flake8 5.01, modified to continue to use 4.01, which has been working stably.
I also tried flake8 5.00 and got the same error.
(What is "Changes requested"?)

I see. So, I think we don't have to change anything in this PR, but could you open an Issue to use the latest flake8 after the bug is fixed?
We will forget this issue in a few weeks...

In that case, until the flake8 error is fixed, the test will fail and other merge will not be possible, is this correct?

No, this PR will be merged after you create the issue (as a reminder).

I see, I was mistaken.
I created the issues.
https://github.com/aistairc/aiaccel/issues/27

Thank you!


Implementing cf-abacus

Hi..
I have been trying to implement cf-abacus and have had difficulties just going through the documentation to implement it. It seems a bit dis-joined and/or ambiguous.
We are interested in implementing cf-abacus and would like to contribute back to the community by making the documentation unambiguous. Is there someone who can reach out to me with regard to the same?
I can be reached via email at neville(dot)george(at)gmail(dot)com though I think it can be hashed out via some visual tools

Closing the issue, but feel free to open it in case of more questions.


New sequence assembly terms which are specifically datums

Over on the OBI issues board https://github.com/obi-ontology/obi/issues/1232 there is a list of terms we are seeking a home for, namely:
amino acid sequence start site (user submitted)
amino acid sequence stop site (user submitted)
nucleic acid sequence start site (user submitted)
nucleic acid sequence stop site (user submitted)
amino acid sequence start site (reference)
amino acid sequence stop site (reference)
nucleic acid sequence start site (reference)
nucleic acid sequence stop site (reference)
But SO doesn't have IAO data item, etc.  So wondering if you want these kinds of relative positional sequence reference terms?
EDIT: we are working on fashioning better definitions that explicitly define "user submitted", "reference" etc.

Anyone there?  I will keep these over in OBI if not.

Anyone there?  I will keep these over in OBI if not.

Thank you @ddooley for your patience. Please forgive me for responding to your question with another question, but is there a particular part of the SO you think would house these terms nicely? I am looking at the overall structure of the SO and there might be a place for these somewhere under sequence_feature (SO:0000110), but we'll need to document these terms before we can proceed. We'll need to be able to cite specific publications if we are to include these in the SO (even for the most general terms), so I might ask for some citations? PubMed ID's are preferred, but we're happy to look at any publication you are willing to share.

Hi, thanks for checking in.  We ended up popping them under "sequence data" in OBI.  So I'll close this now!


WindowsFile: Retrieve correct Win32 error codes

Which issue(s) this PR fixes:
none
What this PR does / why we need it:
WindowsFile calls GetLastError via win32-api to retrieve win32 error
code but the error code may be already reset by Ruby's internal code
so that it can't retrive a correct error code. Sometimes it causes
random unrecoverable errors when in_tail plugin tries to read a
non-existent file like the following:
  2021-04-14 03:15:45 +0000 [error]: #2 Fluent::Win32Error code: 158, The segment is already unlocked.: C:/path/to/log.txt

Fiddle or FFI has a method to avoid this issue:

Fiddle.win32_last_error
https://ruby-doc.org/stdlib-3.0.0/libdoc/fiddle/rdoc/Fiddle.html#method-c-win32_last_error
FFI::LastError.winapi_error
https://www.rubydoc.info/github/ffi/ffi/FFI/LastError#winapi_error-instance_method

We've added an equivalent method for win32-api:

https://github.com/cosmo0920/win32-api/pull/55

This commit replaces the retrieving the error code with this method.
Docs Changes:
none
Release Note:
Same with the title.

Other testing failures are caused by weird WSAGetLastError return codes.
We can merge this PR into master, I think. :+1:

@ashie  I have a vague uncomfortableness with this id_thread_data:
https://github.com/cosmo0920/win32-api/pull/55/files#diff-9a529c17bd767f1c607585ebc12ef9daaf94babeeb30a33ea6ff93f372f6dd58R70
Should not we assign some value to this variable? I felt that the variable was
waiting some initialization, but we didn't

Should not we assign some value to this variable? I felt that the variable was
waiting some initialization, but we didn't

Thank you for pointing out it.
I also worried about it after merging it, so I checked it.
Data_Make_Struct() calls calloc() so that it will be initialized by 0.
But I think it should be initialized manually to clarify the initialize value.
In addition I have another worry thing, INT2NUM won't be suitable because DWORD is unsigned long.
I'll fix and send another PR to fix above issues.


Add an option to update hue scenes based on a keywork

This PR will let you set a keyword to search in your scenes list and update the set brightness and colortemp without changing power state.
It is usefull when you use Hue Bridge and you set your buttons to a scene.
It is not working with multiple bridge instance, it will only update the first bridge, this behaviour is easy to fix but I don't have a second bridge make tests
Usage exemple:

Create scenes with names like AL_living room celling light, AL_living room table top light, AL_living room all lights with the lights you want to be turned on.
Add AL_living room as keyword and all living room scenes will be update

Solves #271

@th3w1zard1 Hi, please have a look to this PR, you were interested into this implementation

Well that was quite a rabbit hole of information I had forgotten about.
I am not familiar with the async code you're using. Usually we use hassio's api as migrating to other async implementations have caused bugs in the past. I know next to nothing about that.
other than that your implementation looks good. You are creating yet another attr, ensuring existing functionality will persist, showing a clear understanding of our process.

@th3w1zard1 Thanks for the feedback, I'll now try to cleanup my PR, making tests pass.
I don't know how I can properly document this functionality to make it clear for everyone.
I might also replace the keyword by a droplist of scenes light for lights entities, the configuration might take longer but it will help casual user to avoid error such as two overlaping keyword
For the main logic I know its robust, I use it since 2022 with another custom_integration (https://github.com/claytonjn/hass-circadian_lighting/pull/195)

Hum there is a bug values aren't updated with daylight, it's probably out of range values of hue bridge, I'll check that

I've added a delays of 5 minutes between same keyword update to avoid overloading the bridge.
Maybe i'll need to add a delay between each API call as well


feat: optional newCollateral arg for getCollateralization

Signed-off-by: Gregory Hill<EMAIL_ADDRESS>

Looks good! Can you please version bump to 0.3.4?


createPortal replacing the destination node instead of apending

Hi, and thanks for working on preact-compat!
We just discovered that if the component passed to createPortal is empty or falsy, the destination DOM node is cleared. Here's a minimal reproduction : https://codesandbox.io/s/9qyr3klq7r
Replacing <Void /> by <NotVoid /> reverts to what we think is a normal behavior.
This doesn't see in line with how react behaves : https://codesandbox.io/s/new
Is this the expected behavior in preact-compat or is it a bug?

Hi Yannick!  It looks like a bug. Preact is having trouble rendering into the body in your example because there is already an application rendered there.
It looks like the issue is that preact-compat's Portal implementation uses the destructive version of render(), so it replaces the contents of <body> entirely rather than adding a new Element:
https://github.com/developit/preact-compat/blob/master/src/index.js#L143-L151
I think we can fix this by adding a Boolean remove = false flag that gets passed through renderSubtreeIntoContainer() and into render() to bypass the removal behavior.

This is fixed in Preact X. Make sure to alias preact/compat instead of preact-compat.


Preview stops processing article if :::code is present.

I have the docs authoring pack installed. If a :::code element is added to an article, it stops processing the preview and simply presents the previous preview of whatever article you last looked at that was successfully rendered.
I used this markdown specifically:
:::code language="xaml" source="snippets/create-app-visual-studio/csharp/MainWindow.xaml" highlight="8":::

Hey @adegeo , created a bug for this. Thanks for reporting it.
AB#364731

Hey @adegeo , created a bug for this. Thanks for reporting it.
AB#364731

@jamarw has this ever supported rendering the code blocks from these snippets? I've never seen it work. Just the old style snippets.

@jamarw has this ever supported rendering the code blocks from these snippets? I've never seen it work. Just the old style snippets.

@adegeo we've had issues in the past where users are not seeing updated code snippet after changing the code snippet file but the code snippet :::code::: tags should render in preview as seen here:

Do you have any more details with a repo and example that we can repro the issue? And what machine are you running on? Windows? Mac? Thanks again for reporting the issue, we hope to resolve your issue soon.

@bharney0 Sorry for the delay, I was out.
It's very odd and inconsistent. I'm on Windows.
--- Update
I just 10 minutes of testing and playing around and I think I've figured out the problem. If you have a :::code inside an XML comment in the document, the processing crashes and whatever was previously displayed in preview is carried forward, even if it was some other article. I'm constantly working in an area where I'm upgrading existing content so I mark things with XML comments to comment them out as I work and keep them out of way, sometimes even publishing them until other articles are ready.
To repo:

Close all VSCode instances

In a terminal, navigate to a new folder with no articles

Create an article with code test.md which opens VSCode

Paste in the following:
DELETE ME
Snippet examples
<!--
:::code language="xaml" source="snippets/create-app-visual-studio/csharp/LayoutStep3.xaml" range="9-23" highlight="13":::
:::code language="xaml" source="snippets/create-app-visual-studio/csharp/MoreControls2.xaml" id="StackPanel1":::
:::code language="xaml" source="snippets/create-app-visual-studio/csharp/MoreControls3.xaml" id="ButtonEvent" highlight="3":::
:::code language="csharp" source="snippets/create-app-visual-studio/csharp/MoreControls3.xaml.cs" id="ButtonEvent":::
:::code language="vb" source="snippets/create-app-visual-studio/vb/MoreControls3.xaml.vb" id="ButtonEvent":::
-->

Show the Docs: Preview and see that nothing is rendered

Here is a gif showing it with the preview already open. Notice how the processing stops as soon as this is present:

@adegeo Thank you for the detailed explanation of the issue. This helped me troubleshoot relatively easily and resolve the problem. I have a PR #814 open with the fix and we should get it merged this week.


Ubuntu Trusty (shippable.com) issue:  make binary-local BUILDTAGS=containers_image_ostree_stub -> go-md2man: not found

The front page suggests that make all builds the doc which requires go-md2man. However it seems
make binary-local BUILDTAGS=containers_image_ostree_stub also tries to build the docs.
I don't think it should?
Ubuntu Trusty on Shippable.com:
make binary-local BUILDTAGS=containers_image_ostree_stub
make install

Produces:
go build "-buildmode=pie" -ldflags "-X main.gitCommit=e626fca6a7676cb0fc095f7d8d645add01bfa6b9" -gcflags "" -tags "containers_image_ostree_stub" -o skopeo ./cmd/skopeo
install -d -m 755 /usr/bin
install -m 755 skopeo /usr/bin/skopeo
go-md2man -in docs/skopeo.1.md -out docs/skopeo.1.tmp && touch docs/skopeo.1.tmp && mv docs/skopeo.1.tmp docs/skopeo.1
/bin/sh: 1: go-md2man: not found
Makefile:87: recipe for target 'docs/skopeo.1' failed
make: *** [docs/skopeo.1] Error 127

make install is attempting to install the man pages.
make install-binary
might be what you want?

Duho. My mistake apologies.

Yes the problem here is that he did not have the go-md2man executable installed.

The Readme doesn't say it's required. Why not have the build container do
that?
--
Sent from a rotary phone rented from Ma Bell
On Mon, Apr 30, 2018, 4:36 AM Daniel J Walsh<EMAIL_ADDRESS>wrote:

Yes the problem here is that he did not have the go-md2man executable
installed.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/projectatomic/skopeo/issues/495#issuecomment-385373692,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAf4072wBDvQxMBDCGbl4zD8BTfFOLiks5ttvdXgaJpZM4TQuhU
.

I don't think @taqtiqa-mark used a build container.  He was just building from source. But I will let him chime in.

I got the same issue doing make install which at least partially used a
build container.
--
Sent from a rotary phone rented from Ma Bell
On Mon, Apr 30, 2018, 7:57 AM Daniel J Walsh<EMAIL_ADDRESS>wrote:

I don't think @taqtiqa-mark https://github.com/taqtiqa-mark used a
build container. He was just building from source. But I will let him chime
in.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/projectatomic/skopeo/issues/495#issuecomment-385424529,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAf44riKdo4UCIzemkrzC_xyzqh9ETRks5ttyZ2gaJpZM4TQuhU
.

The Readme doesn't say it's required. Why not have the build container do
that?

README does say that it’s required for building documentation. The installation section is confusing, though.
Is https://github.com/projectatomic/skopeo/pull/504 better? Any other improvements are welcome.

Why not have the build container do that?

Most of the development work and packaging does not use (and in the case of building packages, can not easily use) build containers, and I’m afraid surprises like this are a consequence.
I do agree that the current default, where make uses a container for compilation, but not for everything, is problematic.  (In fact the whole idea of using a container by default is fairly dubious when the container environment leaks through dynamic library dependencies in the resulting executable.)
The pattern rule currently used for building man pages does not know whether the user is using a build container or not; so actually fixing this would require a fair amount of restructuring the Makefile. At that point it starts to look a bit attractive to just drop the build container support entirely.


Non cryptographic use of rand.Intn

Maybe it's not an issue, but shouldn't the GetRandomString function used to generate salts be using a cryptographic random number generator rather then math/rand? ie. https://golang.org/pkg/crypto/rand/#Int

@davidcroda I believe it's safe to change, I borrowed this function from Django source code and just made the same version in Go.


Very very detectable

You got 500 accounts banned lmao, how does it feel?
Stop making false claims.

Woah, 500accounts.
i mean why are you spreading False Information.
well,be ready man- no More Patience.
i Had my Final Exams (ends on 15/16 march)
Then i will Surly give u Reply of This and You have reached the Limit of Hatred and Jealously i Can Take.

It's too late mate, many peeps already know what you've been up to, no point in trying to play it safe


WIP: fix baseurl lookup

This is in WIP state, and needs more discussion. The current fix (first commit for this branch) is probably the same thing as before. I had a look, and the prefix is mg_, but for some reason it doesn't work, so maybe the prefix is treated as always "not safe"?
I also had a look at getBaseURLsFromConfig, and it seems that there is no section that matches root.system.\w+.web.secure.base_url in the config, so this function is never successful too. Is there perhaps any other config or place where the base URL is defined (I can't seem to find any)?

but for some reason

Can you add a test for .SafePrefix() to establish this?

So it seems, we forgot to do an ecomscan release with your previous fix 🫣
I think we can close this one. Thanks for looking into it!


power remove

After you do the quick mine for mining and this happens to other things to it keeps the enchantment

#27

yah same the enchantment is still dere even the ability worn off....


feat: add preview to providers and custom tea lifecycle

Tested on windows, CLI version 1.33.1 with the AWS provider.
I am still getting that old windows delay. But I am also getting a mass duplication of the screen being printed multiple times.


Question about ARM template generation

I'd like to use this SDK to programmatically generate ARM templates, but not send requests to the Azure api. Similar to the Troposphere for CloudFormation. Is this possible?

@robbyt Technically it is possible but I don't this I have seen anyone generating templates from Azure language SDKs. People mostly author them by hand. Do you have an example?

@ahmetalpbalkan thanks for the quick response!
JSON, (and XML) is a file format that is best when humans don't have to write it. :)
For example, when working with Troposphere, this bit of Python code: https://github.com/cloudtools/troposphere/blob/master/examples/EC2InstanceSample.py will generate this CloudFormation template: https://github.com/cloudtools/troposphere/blob/master/tests/examples_output/EC2InstanceSample.template
It would be really great to use this Go SDK to create objects that could be marshaled out to JSON files, so that we can create and distribute reusable templates.

@robbyt I see. Yes, this is technically possible. Our packages have models with json field name tags and API versions for resources, you should be able to marshal the topology into an ARM template JSON.

Great!
Is it possible to give me a simple example? I'm happy to help write some docs for this project if you can give me a bit of guidance.

You can find example templates at https://github.com/Azure/azure-quickstart-templates
The model classes are named models.go under each package here: https://github.com/Azure/azure-sdk-for-go/tree/master/arm
You will just create the JSON object for the template in Go, it'll have parameters, resources fields etc. "resources" will be an array of
type TemplateResource struct {
    Type, Name, Location, ApiVersion string `json:tags here for each field`
    Properties interface{} `json:"properties"`
}

and you will just json.Marshal(object) then you should have a template.

@robbyt I strongly suggest getting familiar with ARM template language and actually writing your template manually by hand first. Go part will be trivial.

@ahmetalpbalkan thank you for the example, and recommendation.
I've written a lot of CloudFormation code for AWS- are you familiar? Do you think it's conceptually similar to ARM templates? (obviously, with different resource primitives)

@robbyt from what I can see, they're really similar. I suggest going through 101-* 201-* examples in the quickstart repo.

@robbyt closing this as I'm assuming this answers your question.

@ahmetalpbalkan thanks, it was super helpful :+1:

Robbyt did this ever get completed? I would also like to use trophosphere with Azure.


Missing Primary Keys

In preparation for MySQL 8 upgrade

:tada: This PR is included in version 5.8.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


BQ Sharded Table are all ingested

Sharded tables (i.e. <table_name>_[YYYYMMDD]) are all ingested in OM.

More info:

BQ recommend against having sharded tables and to instead use partitioned table 👉 https://cloud.google.com/bigquery/docs/partitioned-tables#dt_partition_shard
provide a way to transform sharded tables to partitioned table 👉 https://cloud.google.com/bigquery/docs/creating-partitioned-tables#convert-date-sharded-tables


Add support for integration with Travis CI

These commits allow the project to be tested with each commit (and pull request) on Travis CI. Here's the test run for this branch. After accepting this PR, log into to https://travis-ci.org and enable the Quantipy/quantipy repository in order for its commits to be tested and pull requests to similarly run the tests.

Hmm. I see now I developed this patch set against master, which is stale by 9 months. Perhaps I should have developed it against develop. Advice?

Heya! Yep, master is more or less abandoned, please branch from develop for the patch.

Rather than leave this dangling request, I'll close this and once I have tests working against develop, I'll re-submit. Can someone confirm that the tests in develop are expected to pass in some environment (or if not, which ones)?


Remove comics from the list of recent stories on the stories landing page/homepage

This was an aside from Danny in the stories meeting: currently web comics and articles appear in the same list of recent things, even though they're not the same type of thing.
We should look at breaking out comics from this list, possibly in a standalone component akin to #8398?
This needs some design/UX work to decide where comics should live if not in this scrolling list, and some dev work to implement it.

UX of the Stories landing page, featuring two options for the Comics section: Stories - Comics
Version 1 of the Comics section (the first line of comic strips) - shows the latest comic in chronological order as the website does currently.
Version 2 - Showing the most recent series of comics, rather than the individual parts. This option is more in line with what we're aiming for with the serials - making it easier to discover past comics beyond the latest series.
I've placed them underneath the Serials section, as it feels like those are still the highest priority after the Latest articles.
I would want to aim for the second option, but happy to start with the first one initially.
@dannybirchall - with the second option, when you click "View more comics" and hit https://wellcomecollection.org/articles, would you expect to see a filtered list of
a) the past comic series following the same style as the landing page, or
b) the individual parts, like how the page shows currently?

@DominiqueMarshall I'd expect to see the former: a list of links to the index page for each series of comics, back to body squabbles.
(I think that this is part of how Stories in general should show more tendency to 'stack' things by their series, so that you can see more different things in a single view rather than a stream of related thigs)

Splitting the comics out from the rest of the stories is not straightforward. The format field, which is how we distinguish comics from other story types is a linked document field and Prismic doesn't allow us to filter queries on linked document fields.

Could we request more items than we need and filter out the comics on the frontend? Not lovely.

@davidpmccormick then we'd have to do that twice: once again to filter comics into their own section also?
@gestchild if we rigorously tagged comics as comics, would that enable you to filter?

@dannybirchall oh yep. As is the case depressingly often, I hadn't read the specifics of the ticket properly

The format field, which is how we distinguish comics from other story types is a linked document field and Prismic doesn't allow us to filter queries on linked document fields.

Are you sure? I wonder if I'm missing something, because I can add a predicate in stories.tsx and it seems to be doing the right thing:
const articlesQueryPromise = fetchArticles(client, {
  predicates: ['[not(my.articles.format, "W7d_ghAAALWY3Ujc")]'],
});

I didn't even check, but I'll pick this up now since it seems like @alexwlchan is most likely right!

@dannybirchall I think it would make sense to have the comics section title/blurb content-editable, as is the case with other sections on the stories landing page. I'll work on that next, but do you have any appropriate words for me to stick in here while you wait for it to be editable in Prismic?

@davidpmccormick how about
Comics
Explore new perspectives on bodies, brains and health with our guest comic artists.

Closing as done in #8979 and #8999 behind the storiesLandingComics toggle.

Have spoken with @dannybirchall about this – we agreed:

the logic on stories landing page is ok as is
there is an editorial task to update copy on comic series promos (some have a lot, some have none, and this can make cards look bad)
homepage listing doesn't require updating to filter out comics


Version 3.3 breaks semver compatibility

Helm version 3.3 breaks semver compatibility because of missing patch version. Tools which rely on a correct version synthax are failing.
(Ex: https://github.com/GoogleContainerTools/skaffold/issues/4711)
The next patch version will fix this problem but it should be considered for the next minor version.
Output of helm version:
 helm version --client
version.BuildInfo{Version:"v3.3", GitCommit:"", GitTreeState:"", GoVersion:"go1.15"}

Good catch. This issue, which is a bug and didn't report this way in past Helm x.y.0 releases, has to do with the output of helm version.

To add more detail... this happens when Helm is compiled outside our toolchain. For example, if you download one of our binaries it's set...
$ wget https://get.helm.sh/helm-v3.3.0-darwin-amd64.tar.gz
--2020-08-24 09:17:24--  https://get.helm.sh/helm-v3.3.0-darwin-amd64.tar.gz
Resolving get.helm.sh... <IP_ADDRESS>
Connecting to get.helm.sh|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13376879 (13M) [application/x-tar]
Saving to: ‘helm-v3.3.0-darwin-amd64.tar.gz’

helm-v3.3.0-darwin-amd64.ta 100%[========================================>]  12.76M  12.6MB/s    in 1.0s

2020-08-24 09:17:25 (12.6 MB/s) - ‘helm-v3.3.0-darwin-amd64.tar.gz’ saved [13376879/13376879]

$ tar -zxvf helm-v3.3.0-darwin-amd64.tar.gz
x darwin-amd64/
x darwin-amd64/README.md
x darwin-amd64/helm
x darwin-amd64/LICENSE

$ cd darwin-amd64

$ ./helm version
version.BuildInfo{Version:"v3.3.0", GitCommit:"8a4aeec08d67a7b84472007529e8097ec3742105", GitTreeState:"dirty", GoVersion:"go1.14.7"}

I checked homebrew and it doesn't impact that either...
$ /usr/local/Cellar/helm/3.3.0/bin/helm version
version.BuildInfo{Version:"v3.3.0", GitCommit:"8a4aeec08d67a7b84472007529e8097ec3742105", GitTreeState:"dirty", GoVersion:"go1.14.6"}

This is specific self compiled outside the workflow that sets the version.

Ok, now i understand why not everyone is facing this problem. I'm using helm on Manjaro Linux from the official manjaro repository.

I changed the title to reflect the issue.

I've tried to resolve the issue by posting a PR to Arch repository but it was rejected:
https://github.com/Foxboron/archlinux-pkgbuilds/pull/3

The fix is incorrect and introduces other issues (it won't even build with the proposed patch).
The embedded version in helm should be semver compatible, and the fact that the correct tag isn't included when LDFLAGS is overwritten is the main issue.
https://github.com/helm/helm/blob/master/internal/version/version.go#L32


error about obj_models/val/02876657/d3b53f56b4a7b3b3c9f016d57db96408/model.obj when run shape_data.py and pose_data.py

Dear author, thank you for releasing such a wonderful work!
I met a problem when running shape_data.py to preprocess the object models.
The info is as follows.
Traceback (most recent call last): File "/home/user/object-deformnet/preprocess/shape_data.py", line 217, in  save_nocs_model_to_file(obj_model_dir) File "/home/user/object-deformnet/preprocess/shape_data.py", line 33, in save_nocs_model_to_file model_points = sample_points_from_mesh(path_to_mesh_model, 1024, fps=True, ratio=3) File "../lib/utils.py", line 147, in sample_points_from_mesh points = uniform_sample(vertices, faces, ratio*n_pts, with_normal) File "../lib/utils.py", line 100, in uniform_sample faces = vertices[faces] IndexError: arrays used as indices must be of integer (or boolean) type

now I select to skip this case in shape_data.py, but it still show in pose_data.py, as follow, how should I do? should I still skip it ?

I skip this instance, then run train_ae.py and train_deform.py and evaluate.py, it doesn't seem to have any effect compared to the author's model, but I still want to get reply from author.

I skip this instance, then run train_ae.py and train_deform.py and evaluate.py, it doesn't seem to have any effect compared to the author's model, but I still want to get reply from author.

I get same error. When i try to open this model.obj file, some wrong with it.
it is only 1kb, seem differently with other model.obj.
did you get rid of this problem. what should i to do to solve this problem. skip it?

I skip this instance, then run train_ae.py and train_deform.py and evaluate.py, it doesn't seem to have any effect compared to the author's model, but I still want to get reply from author.

There another question about pose_data.py. When I run function annotate_test_data, it can not find folder results/noce_results.  Is results/noce_results just data/gts? I find they hava same child folder, but data/gts 's pkl files do not have gt_handle_visibility.  It seem like only for mug, I just comment all lines about handle_visibility and gt_handle_visibility. I dont know would this comment effect evaluate and train.
Can you share what modifiy about pose_data.py file you have.
Waiting your reply.

Has anyone been able to get past this issue?

Hi guys, can anybody solve the problem by other methods than just skipping it?

same problem by me, does someone have a solution for this?

I found the problem, the file: obj_models/val/02876657/d3b53f56b4a7b3b3c9f016d57db96408/model.obj has the wrong content, this is the problem with the NOCS dataset.

problem was resolved by here, you can simply download the files and put it in the right place.


Add event handling functionality

Fixes #10

support event declarations in the ABI (added a corresponding Event) class
add eth_new_block_filter(), eth_new_pending_transaction_filter(), eth_new_filter(), eth_get_filter_changes() and the corresponding entities (BlockInfo, TxInfo, Topic, LogEntry)
TODO: high-level API for event filtering

Codecov Report

Merging #32 (c5c3882) into master (0fce3ce) will decrease coverage by 1.72%.
The diff coverage is 92.34%.

@@             Coverage Diff             @@
##            master      #32      +/-   ##
===========================================
- Coverage   100.00%   98.27%   -1.73%
===========================================
  Files            9        9
  Lines          949     1099     +150
  Branches       174      209      +35
===========================================
+ Hits           949     1080     +131
- Misses           0       13      +13
- Partials         0        6       +6

Impacted Files
Coverage Δ

pons/_client.py
93.71% <75.47%> (-6.29%)
:arrow_down:

pons/_contract_abi.py
97.74% <83.33%> (-2.26%)
:arrow_down:

pons/__init__.py
100.00% <100.00%> (ø)

pons/_entities.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0fce3ce...c5c3882. Read the comment docs.


Support scala 2.11

Thank you in advance for maintaining finatra-swagger.
But I need different scala versions, 2.11 and 2.12.
So could you support scala 2.11? 🙂

The versions of finatra-swagger will be tied to the finatra version, and I think I'll only support the current and then the last 3 versions. At this point, all of these versions are only on Scala 2.12.
Checkout the old repository to older releases: https://github.com/xiaodongw/swagger-finatra


Ship a first iteration of an SDLC (Soc2 GN-98)

Reference tracking issue: https://github.com/sourcegraph/sourcegraph/issues/29724
This PR introduces the first basic version of our SDLC, providing evidence toward SOC2/GN-98.

GN-98: Sourcegraph has a formal software development life cycle methodology and supporting procedures to help manage application and infrastructure changes.

Its purpose is not to be perfect, but to provide a starting point to document our formal approach to software development. Covering every case, methodologies or processes is a conscious choice.
Doing so enables us to not corner ourselves in having to update the SDLC every time we iterate on how we do things, while still providing an accurate enough picture for an actor seeking to validate that we're taking a rigorous approach to managing changes.
PS: The badge at the bottom of the page enables this work to surface through our Soc2 Notebook once merged.

Thanks for this, @jhchabran! I made a few suggestions, but please feel free to disregard.

Linking to relevant issue for tracking: https://github.com/sourcegraph/sourcegraph/issues/29763


Wait for URL to change up until action delay

Closed by https://github.com/jacebrowning/pomace/pull/55


add derivation for the virtualbox oracle extension pack

Motivation for this change
This PR implements the first stage of the plan laid out by @flokli for managing the VirtualBox Oracle Extension Pack as a separate derivation:
https://github.com/NixOS/nixpkgs/issues/34796#issuecomment-365070156
Currently, the VirtualBox Oracle Extension Pack needs to be downloaded directly by the end-user with the command nix-prefetch-url.  The virtualbox derivation takes a boolean enableExtensionPack flag that the user needs to set.
This PR makes the following changes/additions:

Add the Virtualbox PUEL to the licenses file.  It has been added with free = false.  This means that only uses that have config.allowUnfree = true will be able to use it.
Split the VirtualBox Oracle Extension Pack into a separate derivation.  It is now available in the all-packages.nix file as an attribute called virtualboxExtpack.
Change the main virtualbox derivation so that instead of taking in a boolean flag called enableExtensionPack, it instead just takes a derivation it calls extensionPack.  When specified, this will normally just be the top-level virtualboxExtpack.
Change the NixOS virtualbox-host module to enable the extension pack when virtualisation.virtualbox.host.enableExtensionPack is set to true.  This of course won't work unless allowUnfree is set to true.

Note that as explained in #34796, the end-user will still have to compile VirtualBox on their own machine.  However, they will NOT have to download the Oracle Extension Pack by hand.  I see this as an improvement.
This PR lays the ground-work for future improvements around VirtualBox and the Oracle Extension Pack.
Here is a NixOps file that can be used to test this change:
{
  network.description = "NixOS virtualbox test";

  # This is the configuration for a specific machine.  It follows the NixOS
  # configuration specification, which can be found below:
  # https://nixos.org/nixos/manual/index.html#ch-configuration
  vbox-test-server =
    { config, pkgs, ...}:
    {
      imports = [ ./vbox-test.nix ];

      deployment.targetEnv = "virtualbox";
      # deployment.virtualbox.headless = true;
      deployment.virtualbox.memorySize = 2024;
      deployment.virtualbox.vcpu = 1;
    };
}

And the corresponding vbox-test.nix file:
{ config, lib, pkgs, ... }:
{
  nixpkgs.config.allowUnfree = true;
  virtualisation.virtualbox.host.enable = true;
  virtualisation.virtualbox.host.enableExtensionPack = true;

  environment.systemPackages = with pkgs; [
    bash
    gitAndTools.gitFull
    firefoxWrapper
    xterm
  ];

  services.xserver.enable = true;
  services.xserver.layout = "us";
  services.xserver.desktopManager = {
    xfce.enable = true;
    default = "xfce";
  };
}

Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[X] Fits CONTRIBUTING.md.

I should also ping @svanderburg since he is a maintainer for VirtualBox.

What's your opinion on adding the vbox-test.nix file mentioned in the PR description too, so somebody doing changes can locally run these tests (or a variant of the already existing virtualbox test, but calling it with virtualboxWithExtpack)

I'm relatively new with NixOS.  This is the first non-trivial PR I've sent recently.  I've seen that there are pkgs/test/ and nixos/tests/ directories, but I've never actually looked inside them!  I don't know enough about how the tests work to know whether or not my vbox-test.nix file should be added.
It looks like there is a section on testing in the NixOS manual, so I'll take a look at that and then take a look at the existing VirtualBox tests.

@flokli
In commit 2ae9907 I've added a test to make sure that the VirtualBox Extension Pack is successfully installed and can be used.
This test can be run like the following:
$ cd nixpkgs/nixos/tests/
$ nix-build virtualbox.nix -A enable-extension-pack

You can run all the virtualbox tests like the following:
$ nix-build virtualbox.nix

This PR had a few conflicts with master.  They have been fixed in commit e04e92d.
Unless anyone else notices anything that can bemajorly improved, I think this PR should be ready to be merged as-is.
It would be great to get it merged in time for 18.09.

@cdepillabout, @zimbatm: From the PUEL:

(2) You may not do any of the following: (a) modify any part of the Product, except to the extent allowed in the documentation accompanying the Product; (b) rent, lease, lend, re-distribute, or encumber the Product; (c) remove or alter any proprietary legends or notices contained in the Product; or (d) decompile, or reverse engineer the Product (except to the extent permitted by applicable law).

IANAL, but I think the PUEL is pretty clear about that, so I think we should not re-distribute the extension pack. Unfortunately since this adds a test with the extension pack activated, we now do exactly that:
$ nix path-info --store https://cache.nixos.org/ --json /nix/store/6f470485gpl6ri8kv7dzii7nyngxk40d-Oracle_VM_VirtualBox_Extension_Pack-5.2.14-123301.vbox-extpack | jq
[
  {
    "path": "/nix/store/6f470485gpl6ri8kv7dzii7nyngxk40d-Oracle_VM_VirtualBox_Extension_Pack-5.2.14-123301.vbox-extpack",
    "narHash": "sha256:03js53j30ddpfy1l7cg0qyr0iwnmmxv1qcjdnsrgyrf25javmxfw",
    "narSize": 19589328,
    "references": [],
    "deriver": "/nix/store/3l4m8vjmf6rqjvzknxvn4lradjjlfdsm-Oracle_VM_VirtualBox_Extension_Pack-5.2.14-123301.vbox-extpack.drv",
    "signatures": [
      "cache.nixos.org-1:JW0RhCmX5Jn8/Zq5BAByVjXqMnyADKSLuPyeO9wPjtDvDIBIGlguijePcmDJzqcFPvBWqFIPxa2RNcB53nW5Bw=="
    ],
    "url": "nar/1px2nyzd47x3hwc6z43ir3xvv2xhjc0saiw2ziyznbprs63zj7zs.nar.xz",
    "downloadHash": "sha256:1px2nyzd47x3hwc6z43ir3xvv2xhjc0saiw2ziyznbprs63zj7zs",
    "downloadSize": 19240484
  }
]

good point @aszlig. @cdepillabout can you make another PR that disables the test if allowUnfree is turned off?

@flokli @zimbatm Sounds good, in the next couple days I'll send a PR modifying the virtualbox tests to work like the ELK tests linked above.

I wonder why the NixOS tests will build tests with nonfree dependencies -- that seems like the real bug here.

@grahamc: It won't, that's why this PR added nixpkgs.config.allowUnfree.

I see. We should probably not do that?

On Aug 20, 2018, at 1:58 PM, aszlig<EMAIL_ADDRESS>wrote:
@grahamc: It won't, that's why this PR added nixpkgs.config.allowUnfree.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

I see. We should probably not do that?

@grahamc This PR is adding a derivation that will only compile if allowUnfree is set to true.  The test is testing this derivation, so allowUnfree needs to be set to true to actually build it.
As I understand it, it seems like there are two problems:

The tests probably shouldn't set allowUnfree to true.  If they DO need to do this, it should probably be behind a configuration option (similar to how the ELK tests linked above work).  I am planning on sending a PR to fix this for the virtualbox tests.
Even if the tests do set allowUnfree to true, cache.nixos.org should either refuse to run them, or not distribute the unfree derivations.  It sounds like you are suggesting that this is also a bug that needs to be fixed.


Generate a mesh file with faces

Hi All,
I am trying to generate a mesh file with faces, using OpenSfM.
My question is : can i use "faces" field that is inside "reconstruction.meshed.json" to add faces to the current generated mesh file ?
Note : The current mesh have only vertices
Tank you.

The faces in reconstruction.meshed.json are triangles whose vertices are from the sparse set of reconstructed points. That mesh is in general quite coarse and noisy.
If you need something more detailed, you need to run the dense reconstruction. The output will be a denser set of points from which you can build a mesh.

I don't think there is complete implementation of surface reconstruction pipeline (correct me if I am wrong). @paulinus  Is there a way to export depth maps to openMVS format (to complete meshing)? export_mvs command seems to export sparse cloud.

There is no way to export the depth map. As you say, you can export the sparse reconstruction and let openMVS build the depth map and the meshes.

Are there plans to be able to send a dense point cloud to openMVS?  I am getting vastly different results from the dense cloud I get from openSFM in comparison to openMVS. The cloud from openSFM seems to show more detail in my instance.

@cmidler i've never tried using the point cloud generated by OpenSfM as an input for openMVS to generate the mesh. When i've needed a mesh, i've used openMVS from the start and let it generate the point cloud.
OpenMVS point cloud should be similar to OpenSfM's one. If you observe it otherwise, it might be that exporting is not working properly. Do you have an example to share?

You can see the example via the dropbox link: https://www.dropbox.com/s/8kyguw42it73wah/example.zip?dl=0
I am attempting to reconstruct a living room from 8 pictures in the room taken from the middle of each wall and corner looking at the opposing wall and corner respectively. I've also attached the dense point cloud ply from opensfm: merged.ply and openmvs: scene_dense.ply along with the output mvs file generated via the export_mvs call: scene.mvs. The images and config.yaml are also there.

What is happening here is that there is little overlap between the images. If you take more images, say 30, you will get much better results both with OpenSfM and with openMVS.
When generating the dense point cloud, there are consistency checks that require a point to be seen from multiple images. In opensfm you can configure the minimum number of images and in your config.yaml it is set to 2
depthmap_min_consistent_views: 2      # Min number of views that should reconstruct a point for it to be valid

openMVS default is set to 3, and that is why you are getting fewer points there.
Best is to take more images and to set the parameter to 3.

Thank you for the quick response. Do you have any documentation on a best practices for different types of images and configuration files? I see the config.py file which has the defaults, but I haven't found great documentation for what everything means and when I should use which parameters.  I could easily see interior room pictures differing in their requirements vastly from street images or aerial images.
Thanks again!

@cmidler you can use the OpenMVS export script that is currently used by OpenDroneMap : https://github.com/mapillary/OpenSfM/blob/master/opensfm/actions/export_openmvs.py


New command

$ huak new

Enter a name: my-project
Would you like to manually configure 'my-project' (y/N)? y
Setting up 'pyproject.toml'...
Please enter a version (0.0.1):
Set 'my-project-0.0.1'.
Please enter a description (""):
'my-project' ("").
Please enter authors ([""]):
'my-project' authored by [""].
Would you like to add main dependencies (Y/n)?
Please enter a dependency: click
Searching PyPi...
The following packages were found:
- [0] click
- [1] ...
Please select the package you'd like to add (0):
Adding [0] click...
Please enter another dependency (y,N):
Would you like to add dev dependencies (y,N):
Adding huak-required dev dependencies...
Setup complete! Generating project.

In future iterations a path can be passed.

I'll likely leave a lot of the logic documented in this issue as part of work for commands like init and install. For example, I'd like init to cover the
Would you like to manually configure 'my-project' (y,N)? y

step. The install command would cover
Would you like to add main dependencies (Y,n)?
Please enter a dependency: click
Searching PyPi...
The following packages were found:
- [0] click
- [1] ...
Please select the package you'd like to add (0):
Adding [0] click...
Please enter another dependency (y,N):
Would you like to add dev dependencies (y,N):

Ideally each command is built in smaller pieces for more iteration. I'll rename the issues accordingly.


How to add as default Apache Index Listing?

Is there any how-to/guide on making DirectoryLister the default index list viewer for all my folder that I would otherwise list files/folders? Currently it only shows the files in the main DirectoryLister root folder.
Thanks,
~SOL

I'm not sure this is possible and isn't the intent of Directory Lister. To my knowledge you'd have to manually install Directory Lister wherever you want to list files.


Prebuilt update

works fine on linux, needs some testing on windows before merging

It seems to work fine on Windows.


Modify the local build to install and configure tilt for first runners

Tilt install assume you already have a working cluster. That's not really needed.
Now that we have acceptance test change how we handle the image in the real deployment yaml file, we can bootstrap a dev environment and then let tilt take over so it monitors all files.

This is now working with a booted up dev cluster from 0 -> 100 without running anything before hand just this:
<EMAIL_ADDRESS>make cluster-dev

There is also a convenient make target to clean everything up: make clean-dev-cluster.
Question
Do people would like to have an option to disable the bootstrap part and still use tilt with an existing cluster?
Closes https://github.com/weaveworks/weave-gitops/issues/1406

awesome, trying it out now! could you also update/add instructions to the contributing guide please? :))

@Skarlso Don't we also have to set the ports to 5001 in the ./tools/kind-with-registry script?

You appear to have an old kind registry. Please delete it and try again?


Documentation site redirects back to github

Starting today, http://developers.google.com/api-client-library/php and all pages under it are redirecting to this github repo.
So now the complete documentation about this library is offline.

Thanks for raising this @mvanbaak, we are working on getting the referenced documentation site up and running until we have a replacement for it in place.

The repo description has been removed. When @dwsupplee has a proper URL, he will add it.


[feat] android get the fresh system ScreenBrightness

Description (What is the problem)
IOS keep the systemBrightness fresh, but android not
Solution suggestion
make them same behavior

@yarnping thanks for reporting the problem. I am currently working on the system brightness feature which will resolve this problem

@yarnping this feature should be added in version 2.0.0+1

cool! thank you


Compare Wigner Rotations with a sign

We can replace the long and complicated test against DPD with a simple version that would check equally to the expected float value.
No random, no seed, let’s just fix the teat point.
Once you tell me the masses and sigmas, I print zetas with a correct sign.

Setup
# invariants
σs = MandelstamTuple{Float64}((26.57159046, 17.86811729, 9.55283383))

# find masses
ms = let
	_ms = ThreeBodyMasses(1, 2, 3; m0=14)
	m0 = sqrt(sum(σs) - _ms.m1^2 - _ms.m2^2 - _ms.m3^2)
	ThreeBodyMasses(_ms.m1, _ms.m2, _ms.m3; m0)
end
# m0 = 6.32397

print angles
"zeta_1(1)_for1" => 0.0
"zeta_2(1)_for1" => 0.19602946185017026
"zeta_3(1)_for1" => -0.47341288277954335
"zeta_1(2)_for1" => -0.19602946185017026
"zeta_2(2)_for1" => 0.0
"zeta_3(2)_for1" => -0.6694423446296955
"zeta_1(3)_for1" => 0.47341288277954335
"zeta_2(3)_for1" => 0.6694423446296955
"zeta_3(3)_for1" => 0.0
"zeta_1(1)_for2" => 0.0
"zeta_2(1)_for2" => 0.33838476527660183
"zeta_3(1)_for2" => 1.6547365635520592
"zeta_1(2)_for2" => -0.33838476527660183
"zeta_2(2)_for2" => 0.0
"zeta_3(2)_for2" => 1.3163517982754578
"zeta_1(3)_for2" => -1.6547365635520592
"zeta_2(3)_for2" => -1.3163517982754578
"zeta_3(3)_for2" => 0.0
"zeta_1(1)_for3" => 0.0
"zeta_2(1)_for3" => -0.6926241816619112
"zeta_3(1)_for3" => -0.30688282550974805
"zeta_1(2)_for3" => 0.6926241816619112
"zeta_2(2)_for3" => 0.0
"zeta_3(2)_for3" => 0.3857413561521633
"zeta_1(3)_for3" => 0.30688282550974805
"zeta_2(3)_for3" => -0.3857413561521633
"zeta_3(3)_for3" => 0.0

Can you explain the naming scheme again?
Just so we are sure

Figured it out.
But it appears, that decayangle does not reporduce the dpd signs.
When we change from zeta_2(1)for1 to zeta_1(2)for1, we would expect a minus sign, but we get a 2pi flip in the phi angle.

This is sensible though, as we can not decode a negative value for theta. Thus I assume, this is the expected behavior.

ah you are right. You theta (as also mine) does not have the sign. I define the sign as R(pi, theta, pi).
For you, it might be slightly different due not non-aligned kinematics.
I wonder if it is possible to run the decayangle on aligned kinematics. - overcome this atan(0,0) problem

Im not sure, if I have the atan problem right now...
I appear to see some kind of azimuthal difference in all cases, where I flip refrence.
Ill try to formulate it in a reliable way

0.19602946185017026 WignerAngles(phi_rf=array(9.42477796), theta_rf=array(0.19602279), psi_rf=array(-3.14159265))
-0.19602946185017026 WignerAngles(phi_rf=array(6.28318531), theta_rf=array(0.19602279), psi_rf=array(8.11068307e-16))
-0.47341288277954335 WignerAngles(phi_rf=array(3.14159265), theta_rf=array(0.47340421), psi_rf=array(-1.2246468e-16))
-0.6694423446296955 WignerAngles(phi_rf=array(9.42477796), theta_rf=array(0.669427), psi_rf=array(3.3986268e-16))
0.6694423446296955 WignerAngles(phi_rf=array(3.14159265), theta_rf=array(0.669427), psi_rf=array(2.01300436e-16))

This is what I get. Do you see a pattern?

The only thing I see is, that a minus will come with a 2 pi jump in phi - psi

the line
0.19602946185017026 WignerAngles(phi_rf=array(9.42477796), theta_rf=array(0.19602279), psi_rf=array(-3.14159265))

looks to me that we have the opposite sign, I read your transformation as R(3pi, 0.196, -pi).
Could you please print the helicity angels for the chain c and the ref in this case? - I expect some unwanted 2pi there.

Do you have a matrix of the Lorentz transformation from 0->i, (inverse), for i->0 (Lambda)?
Let's define L is the i->0 transformation.
Then,
R = L^-1 L_ref

I have that matrix internaly.
Internaly I use the passive definition (since we allways switch frame it is clearer).
Thus it is written as R =L L_ref^-1
I was trying to compare matrices, but failed ultimativ.
We have to keep in mind, that particle ordering does effect the angles for decayangle, so there could be an issue aswell.

I misread you comment above though and tried agains
Pi zeta -pi

Ill try the other definition later

Let's eliminate all uncertainties:

ordering off.
we compare the chain ((3,1),2) with the reference chain ((2,3),1)
for particle 1

Let's use L for the paper Lorentz matrices, and C for the code matrices, C = L^{-1}.
Please confirm (make x),

[ ] the chain matrix is built from 0 -> i along boosting,
[ ] Multiplication orderC2 * C1 * C0,
[ ] the total matrix C is compared with the ref as C*C_ref

C * C_ref?
How can I understand that statement?
I thought its C _ C_ref^-1

ok, fixed!

just discussed on mattermost,

suggest excluding, ^2_{k(2)}, ^2_{2(k)} from the testing leaving a comment that

# The pi-difference wrt DPD is understood as compensation
# D*_{lam0, lam-lam2}(pi, theta, 0) * exp(i pi lam)
#      = D*_{lam0, lam-lam2}(pi, theta, pi) * exp(i pi lam2)`

for other angles I'd still assert if n_pi oddness is the same for phi, and psi.

Added test for this with #53


mac-24 and mac-25 lost external connection from phone device.

Type of Request
bug
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
mac-24 and mac-25 lost external connection from phone device.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

Rebooting both machines above to restore all connections.


Evaluate the Llama2-7B

@JLTastet @timinar Excuse me，how should i distill the Llama-2-7B model to obtain a 3.5B Llama-2 model by BabyLlama?At the same time, I want to use the local Llama-2-7B model whose path is /home/Llama-2-7B

@JLTastet @timinar Can I directly use one base Llama2-7B model to distill and obtain the 3.5B student model ?


fan.FanEntityFeature missing

Hi,
I was cleaning up my config for unused entities using Watchman and saw:
- id: fan.FanEntityFeature
  state: missing
  friendly_name: ''
  occurrences: custom_components/espsomfy_rts/services.yaml:225,235

Is this feature needed for the backup and reboot service?

Currently you need to exclude services.yank from watchman checks as those are just examples.
There is a PR open by me about this in the integration repo.


Security Slam 2023 Participation

Hello falco community!
In preparation for this year's Cloud Native Security Slam, we've completed a survey of CNCF end users across multiple industries, including Construction, Cybersecurity, Aerospace & Defense, Game Development & Consumer Services, Consulting, and Nuclear.
Through this survey, end users have identified their interest in seeing security improvements to the projects they use. We've asked them to share which Security Slam goals are most interesting to them— and we've compiled the results in a hope that this will help your prioritization during the upcoming event.
While some users have not authorized us to share their name, we've still included their responses in our calculation for you. We CAN tell you that the falco responses included Epic Games and Infosys.
After calculating the responses according to the interest-weight, we've found these to be the most interesting things that falco end users would like to see, from the five possible Security Slam badges.

The Mechanizer
The Chronicler
The Inspector

More information will be announced in the event kickoff webinar on October 10th, including how to register for cash & swag prizes, details about how success is measured, and resources to help achieve each of the badge goals.
If you can't make it to the webinar, a recording will be made available within 24hrs. It will be sent out to the community newsletter with any essential details you may have missed.
Join the community & sign up for the webinar here: https://community.cncf.io/cloud-native-security-slam/

A quick look at the 2023 Event Badges
The Chronicler
Ensure that security documentation has properly formatted data relating to software supply chain security decisions, including instructions for end users seeking to validate provenance artifacts.
The Inspector
Ensure that a security self-assessment has been completed according to TAG-Security documented standards.
The Cleaner
Bring all CLOMonitor non-security scores to 100% for the project, indirectly increasing overall supply chain security (Best Practices, Documentation, License, Legal).
The Defender
Ensure each project repo is accounted for within CLOMonitor; Ensure proper check set is assigned to each project repo; Bring security score to 100% for the project (This statistically decreases the future likelihood of vulnerabilities).
The Mechanizer
Ensure that every release has an automated mechanism to supply SBOM and provenance artifacts.

There is not a label identifying the kind of this issue.
Please specify it either using /kind <group> or manually from the side menu.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Hi!
In the last few months the Falco community has worked to improve the supply chain security of the project in general, and we have delivered some important work, such as mechanisms to sign and verify (also automatically!) everything we provide (images and artifacts) and container images that are focused on reducing attack surface. You can take a look at our project tracker here: https://github.com/orgs/falcosecurity/projects/7/views/2 and our meeting notes here https://hackmd.io/FwSPVkdHT0i8T4Q8JdfOaw .
We do have open points about provenance attestations, which we have already delivered for a number of repos and some discussion about SBOMs. Your report highlight interesting points and I think it would be interesting to understand how to focus our efforts for our contributors and community to continue our never-ending security journey :)
cc @cpanato

Hey @LucaGuerra @cpanato @maxgio92 — it sounds like you guys have been doing great work!
Were you able to sign your project up for the security slam using the CNCF community page? That way you'll be on the list for project scoring beginning next week. It may be that you can take credit for maintaining the security hygiene efforts that you've already put in place!
We've been sending out a weekly newsletter during the event, and we also put together a small getting started guide for reference. Please let me know if I can help with anything else!

Hi @eddie-knight, thank you.
As the work we did (and it's still in evolution) spans across different repositories (like https://github.com/falcosecurity/falcoctl, https://github.com/falcosecurity/plugins, https://github.com/falcosecurity/rules), would it make sense to register also those ones? - besides https://github.com/falcosecurity/falco and https://github.com/falcosecurity/falcosidekick which are the ones already registered and monitored by CLO.
Moreover, the work we did for plugins and rules with the signature transparent verification in falcoctl, I'm not sure can be monitored as the automatic signature verification is a behaviour embedded in the falcoctl code base.
I didn't notice metrics in the ones that will be scored, that could catch the safeguard that has been implemented. Do you have some guidance to help us to make it observable by the CLO?
cc @LucaGuerra @cpanato

This is GREAT @maxgio92.
One of the first things that should be done is make sure CLOMonitor is tracking the right repos, with the right check sets. You can see a note about that in the Slam CLOMonitor guide.
The other questions are reasonable places to be confused, and you're probably not the only one— would you be able to bring this conversation into Slack where there are other CNCF project maintainers and Scorecard+CLOMonitor maintainers available to join the convo?

/remove-lifecycle stale

is this still in place? if yes, i can take a look in the clo monitor and try to fix a few things


feat(ui): allow resending of webhooks to update deployed version

requested in https://github.com/release-argus/Argus/issues/102
resend availability for upgrades to newer LatestVersion. Have added minimum delays to these sends of 15s if they fail and 2xInterval of the Service if they pass. Users could change their browser times to get around the disabled buttons, but the server keeps track of the next runnable time and ignores the request if it's too early. We could still get situations where two users approve commands/webhooks before they find out that another user did the same. In this case, if the delay between these requests is big enough that the goroutines have synced the next runnable time, then only one request will be made, but if the goroutines haven't been synched yet, the webhooks/commands could be actioned twice. If people want, I could look into mutex locks to account for this possibility, but I feel that this isn't really a risk and so not worth further investigation.
normal modal:

command fails (same for webhooks):

button gets disabled and hourglass appears with re-send available time tooltip. Relatively useless for command/webhooks that fail atm as the retry interval is 15s and the tooltip just says the minute it'll be resendable.

after 15s:

successful command/webhook:

resendable after 2xInterval

/test


Change MarshalJSON to omit some attributes

Before this patch, all objects ended up with an additionalItems: false and additionalProperties: false attributes. However, from what I can tell on other specs, those attributes are only interesting if you are dealing with an array or object, respectively.
This allows us to create a Schema object and then MarshalJSON it back to a JSON format and have it still look nice.

cool, thank you!

Thanks for merging it. Have you ever seen the gojsonschema package? The
code itself isn't documented very well and the types are written with
private methods which makes it hard to extend. One thing it does do
nicely is its error handling. Where you get a Result list that has all the
errors and their context. So instead of "additional properties are not
allowed" you get "property 'foo' is not allowed given {"foo": "bar"}". Some
of the context is a bit overly verbose, but it does seem quite helpful if
someone was trying to figure out what they were doing wrong. (Our context
is an API that is taking JSON requests, it is nice to give them good
feedback about what was wrong with their request.)
Would you be interested if I started to put together work to build up a
list of errors with their context? We could still have it returned in the
same 'error' that you give now (just one that can have more information).
Thoughts?
John
=:->
On Fri, Aug 19, 2016 at 8:20 AM, lestrrat<EMAIL_ADDRESS>wrote:

cool, thank you!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lestrrat/go-jsschema/pull/7#issuecomment-240924202,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMYffrl-66mzz071bmK41o_KWtW0dU5ks5qhS8AgaJpZM4JmXg-
.

Yeah, I'd be interested in redoing the errors in terms of github.com/pkg/errors and http://dave.cheney.net/paste/gocon-spring-2016.pdf (around page 28), which I'd been meaning to do, but haven't gotten enough time/will for yet.
If you're going to pursue better error handling , please open a new PR/issue, otherwise I can promise you I will fail to notice :) Thanks!


Provide logging to output the function definitions

Currently it may be difficult to debug the function definitions as they are essentially hidden from the user.
A logging system is needed so that the actual function definition can be retrieved

Hello @richClubb,
I have a questions related to this issue. I would like to read get the request, the negative and the postive response in a hex format. How can I access this data?

Hello @richClubb,
I have a questions related to this issue. I would like to read get the request, the negative and the postive response in a hex format. How can I access this data?


How to test BasicVSR for big frames

Thanks for your wonderful job!
However, I used my retrained BasicVSR for Video Enhancement, cuda out of memory.
The size of LQ frames are 1280x720.

Hi, as discussed in #356, there are two possible ways to have it work, but the performance may drop a bit.

Separate the sequence into small segments (e.g. 100 frames -> 5 sequences with 20 frames each)
Separate the images into small patches (e.g. 960x540 -> 4 patches with size 240x135)

Thank you! Moreover, I want to ask what's the meaning of  type='RepeatDataset' times=1000 in basicvsr_reds4.py.
And are they important if I use my own data to train BasicVSR?

It is just repeating the data in your dataset. This does not affect your training. You can safely use times=1000 here.

Thank you vey much!


Fedora dependencies

@jagjordi Just a quick review- you forgot the dnf install command right at the beginning. Also, a new line would be nice, and capitalization on the Fedora name would be a nice touch as well.

Addressed @AnErrupTion comments


add wallet name as variable in wallets.json and in sent messages

we need to be able to distinguish which wallet this address belong to , so a wallet name need to be added in wallets.json and sent in the alert message .

Verified,
Wallet name is now a variable can name as wanted.


A broken ore dictionary

http://pastebin.com/7Y0iD79q
LibVulpes-0.0.6d AdvancedRocketry-0.4.2

Should be fixed for 0.4.3


revamp talk

Are you free for a 25 min mtg this morning?

Yep! Anytime. Note #52 along the revamp lines...

I'm closing this as we have a new direction laid out. The writing is flowing, which is a good sign.


Tests and prevention for several potential attack types (BFT-419)

What ❔
Prevents OOM attack where a malicious replica spamming ReplicaPrepare messages for future views could grow the number of PrepareQC stored in memory by cleaning PrepareQCs from views without other replicas references. This was done for CommitQC as well.
The ticket specifies 3 other types of attack, but number 2 and 3 seem no longer possible, as message signature and order are checked before adding the message to the prepare/commit quorum certificate aggregation maps.
For attack number 4 we now consider a message for a past view as invalid and we are discarding it, so messages out of order are not recoverable.
Why ❔
This PR is intended to address several potential attack types described in BFT-419 - couple of attacks with 1 malicious replica

2,3,4 are still possible because pruning of messages happens in prunable_mpsc, i.e. even before it reaches bft actor.


The "it" block skips when no description is provided.

This test skips
describe('', () => {
  it('', () => {  // No description skips this test.
    console.log('We got here!');
  });
});

This test works
describe('', () => {
  it('some text', () => {
    console.log('We got here!');
  });
});

In Jasmine the skipped test in the first example usually works. Is this as designed?
See https://github.com/cnishina/wdm-webdriverio for an example.

Hi @cnishina,
Looks like a bug.

So I think I can fix this. We are filtering for some truthiness to the following:
https://github.com/webdriverio-boneyard/wdio-jasmine-framework/blob/master/lib/adapter.js#L77
Maybe something simple like this:
var newArgs = [specTitle, patchedOrigFn, retryCnt].filter(function (a) {
  if (a === '') {
    return true;
  } else {
    return Boolean(a);
  }
});

Running this locally I run the previously skipped tests. Is this the right place to do this?

Yes it's ok. Thanks to investigate this 👍

Cool. I'll have a PR in later today.

Let's continue convo in #131


Unable to run tests inside apko without additional installations

I followed the instructions at CONTRIBUTING.md  and ran into a problem when running the tests.
[apko] ❯ go test ./...
# runtime/cgo
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in $PATH
FAIL	chainguard.dev/apko/pkg/apk [build failed]
FAIL	chainguard.dev/apko/pkg/build [build failed]
FAIL	chainguard.dev/apko/pkg/build/types [build failed]
FAIL	chainguard.dev/apko/pkg/exec [build failed]
FAIL	chainguard.dev/apko/pkg/passwd [build failed]
FAIL	chainguard.dev/apko/pkg/sbom [build failed]
FAIL	chainguard.dev/apko/pkg/sbom/generator/spdx [build failed]
FAIL	chainguard.dev/apko/pkg/tarball [build failed]

Was I supposed to do something differently to avoid this problem? I installed golangci-lint as requested by CONTRIBUTING via this command (found here):
wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.45.2
I'll assume this is user error, but if not, perhaps the documentation needs updating or the development environment should be tweaked? I'm glad to put in a PR if there is a preferred course of action and a little bit of guidance.

Needs build-base in the apko devenv image I think.

Can't you just disable CGO with CGO_ENABLED=0?

@kaniini, I added this line of code to examples/apko-devenv.yaml under packages::
    - build-base
And the re-ran ./hack/make-devenv.sh.
I checked I had gcc installed:
[apko] ❯ apk list libgcc
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/edge/main: No such file or directory
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/edge/community: No such file or directory
libgcc-11.2.1_git20220219-r2 aarch64 {gcc} (GPL-2.0-or-later LGPL-2.1-or-later) [installed]

Then I ran
go test ./...
and got this this:
LOTS OF GO IMPORTS
...
# runtime/cgo
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in $PATH
FAIL	chainguard.dev/apko/pkg/apk [build failed]
FAIL	chainguard.dev/apko/pkg/build [build failed]
FAIL	chainguard.dev/apko/pkg/build/types [build failed]
FAIL	chainguard.dev/apko/pkg/exec [build failed]
FAIL	chainguard.dev/apko/pkg/passwd [build failed]
FAIL	chainguard.dev/apko/pkg/sbom [build failed]
FAIL	chainguard.dev/apko/pkg/sbom/generator/spdx [build failed]
FAIL	chainguard.dev/apko/pkg/tarball [build failed]

Do I need to add gcc to the path? What am I missing?
Also, @panekj, I ran CGO_ENABLED=0 inside the dev environment, reran the test command, and got the same error. Did I run that command in the right place?
Thank you both for the help.
cc @amouat

libgcc is not gcc, but rather the support library to run programs compiled with gcc.  build-base, however, pulls gcc in as a dependency.
Most likely you needed to docker image prune after ensuring your containers were stopped.

I'm guessing this is all overcome by events given that the apko docker image is now the preferred way to run this, not the hacks script. Given that, closing. If you want a PR with the build-base package added, let me know.


Clean up KLL functions with deprecated convention

Functions such as Percentile10, Percentile20MV is already deprecated (they were introduced when Pinot only allow single argument aggregation). For new functions we don't want to keep this convention.
Also cleaned up some unreachable code

@chenboat @cbalci Please take a look

Codecov Report

Merging #10795 (f678d0d) into master (3851f33) will decrease coverage by 34.02%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             master   #10795       +/-   ##
=============================================
- Coverage     68.51%   34.50%   -34.02%
+ Complexity     6479      462     -6017
=============================================
  Files          2159     2159
  Lines        116044   116006       -38
  Branches      17569    17560        -9
=============================================
- Hits          79510    40024    -39486
- Misses        30899    72484    +41585
+ Partials       5635     3498     -2137

Flag
Coverage Δ

integration1
24.19% <0.00%> (+0.20%)
:arrow_up:

integration2
23.58% <0.00%> (?)

unittests1
?

unittests2
13.68% <0.00%> (+<0.01%)
:arrow_up:

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

Impacted Files
Coverage Δ

...gregation/function/AggregationFunctionFactory.java
13.87% <0.00%> (-64.30%)
:arrow_down:

...ion/function/PercentileKLLAggregationFunction.java
0.00% <0.00%> (-73.81%)
:arrow_down:

...n/function/PercentileKLLMVAggregationFunction.java
0.00% <0.00%> (-61.23%)
:arrow_down:

.../function/PercentileRawKLLAggregationFunction.java
0.00% <0.00%> (ø)

...unction/PercentileRawKLLMVAggregationFunction.java
0.00% <0.00%> (-75.00%)
:arrow_down:

... and 1349 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

I wasn't aware this path was deprecated but definitely seems to be the right decision.
Thanks for the cleanup, looks good to me. 👍


Update projects with pod-created projects

Currently, the listed projects are all placeholders.
We could add actual projects created by members of the pod, filling out the descriptions of the project in their individual pages.

This is something everyone can participate in. Each fellow can probably add in a project or two of theirs. We implement some sort of pagination at some point too.