Paper trading broken- due to wrong data type for amounts or size (str vs int or float)

Versions:
alpaca-backtrader-api==0.6
alpaca-trade-api==0.46

Try example at (with ALPACA_PAPER = True):
https://github.com/alpacahq/alpaca-backtrader-api/blob/master/sample/sma_crossover_strategy.py
Hit error:
Traceback (most recent call last):
  File "sma_crossover_strategy.py", line 81, in <module>
    print('Starting Portfolio Value: %.2f' % cerebro.broker.getvalue())
TypeError: must be real number, not str

Change the line to:
 print('Starting Portfolio Value: %s' % cerebro.broker.getvalue())

Try again and hit:
Exception in thread Thread-2:
Traceback (most recent call last):
File "lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "lib/python3.6/site-packages/alpaca_backtrader_api/alpacastore.py", line 316, in _t_streaming_events
base_url=self.p.base_url)
File "lib/python3.6/site-packages/alpaca_backtrader_api/alpacastore.py", line 94, in __init__
self.conn = tradeapi.StreamConn(api_key, api_secret, base_url)
File "lib/python3.6/site-packages/alpaca_trade_api/stream2.py", line 27, in __init__
self.loop = asyncio.get_event_loop()
File "lib/python3.6/asyncio/events.py", line 694, in get_event_loop
return get_event_loop_policy().get_event_loop()
File "lib/python3.6/asyncio/events.py", line 602, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'Thread-2'.

  Traceback (most recent call last):
File "sma_crossover_strategy.py", line 82, in <module>
                                                                                cerebro.run()
File "lib/python3.6/site-packages/backtrader/cerebro.py", line 1127, in run
runstrat = self.runstrategies(iterstrat)
File "lib/python3.6/site-packages/backtrader/cerebro.py", line 1187, in runstrategies
self._broker.start()
File "lib/python3.6/site-packages/alpaca_backtrader_api/alpacabroker.py", line 107, in start
self.positions = self.update_positions()
File "lib/python3.6/site-packages/alpaca_backtrader_api/alpacabroker.py", line 97, in update_positions
broker_positions_mapped_by_symbol[name].avg_entry_price
File "lib/python3.6/site-packages/backtrader/position.py", line 64, in __init__
self.set(size, price)
File "lib/python3.6/site-packages/backtrader/position.py", line 75, in set
if self.size > 0:
  TypeError: '>' not supported between instances of 'str' and 'int'

Basically seems like the alpaca broker implementation doesn't convert the str values to correct data type like float or int

thanks for the issue.
you have here 2 types of errors:

string-float conversion (like what you fixed yourself) - the api returns floats as strings and we need to convert them back to float/int. I fixed it in the repo and you can pull it from the master branch. pypi version will be updated soon.
asyncio event loop in the alpaca api. I will create a separate PR for that, but releasing the api sdk takes more time. for now, this is what you do:

open alpaca-trade-api-python/alpaca_trade_api/stream2.py (it's probably in your site-packages)
go to line 28:
except websockets.WebSocketException as wse:
change it to:
except (websockets.WebSocketException, RuntimeError) as wse:

note: to install from the master branch in github do this:
pip install git+https://github.com/alpacahq/alpaca-backtrader-api

closing this issue. let me know if there are still problems regarding this solution and I will re-open it.


GCC 13.2.0 build devel error

My Environment

ArangoDB Version:  devel branch
Deployment Mode:   any (this is a build question)
Deployment Strategy:   any (this is a build question)
Configuration:    any (this is a build question)
Infrastructure:   own (VM)
Operating System:  Ubuntu 23.10
Total RAM in your machine:   32Gb
Disks in use:  SSD
Used Package:   any

Component, Query & Data
Affected feature:

v8-build fails to compile
Steps to reproduce

git clone latest version of devel branch
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DUSE_JEMALLOC=Off -DUSE_MAINTAINER_MODE=off -DUSE_OPTIMIZE_FOR_ARCHITECTURE-On -DUSE_GOOGLE_TESTS=off
The following error appears, failing to download v8-build:

Make Error at /usr/share/cmake-3.27/Modules/ExternalProject.cmake:3176 (message):
  No download info given for 'v8_build' and its source directory:

   /home/osboxes/arangodb/3rdParty/v8-build/v8

  is not an existing non-empty directory.  Please specify one of:

   * SOURCE_DIR with an existing non-empty directory
   * DOWNLOAD_COMMAND
   * URL
   * GIT_REPOSITORY
   * SVN_REPOSITORY
   * HG_REPOSITORY
   * CVS_REPOSITORY and CVS_MODULE
Call Stack (most recent call first):
  /usr/share/cmake-3.27/Modules/ExternalProject.cmake:4345 (_ep_add_download_command)
  3rdParty/v8-build/CMakeLists.txt:477 (ExternalProject_Add)

I fix the error by git cloning the arangodb/v8 repo manually, then git reset --hard 980b6da
make -j4

Used gcc version 13.2.0 (Ubuntu 13.2.0-4ubuntu3), as indicated in VERSIONS.
Also, I tried compiling the project, using the same steps, with the latest version of the docker image arangodb/ubuntubuildarangodb-devel:latest. The same error happens.
Problem:
In file included from ../../../../3rdParty/v8-build/v8/../v8/src/codegen/callable.h:8,
                 from ../../../../3rdParty/v8-build/v8/../v8/src/codegen/code-factory.h:8,
                 from ../../../../3rdParty/v8-build/v8/../v8/src/builtins/builtins-array.cc:8:
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h: At global scope:
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:650:18: error: expected identifier before ‘,’ token
  650 |     ##__VA_ARGS__,                                        \
      |                  ^
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:671:32: note: in expansion of macro ‘DEFINE_RESULT_AND_PARAMETERS’
  671 | #define DEFINE_PARAMETERS(...) DEFINE_RESULT_AND_PARAMETERS(1, ##__VA_ARGS__)
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:756:3: note: in expansion of macro ‘DEFINE_PARAMETERS’
  756 |   DEFINE_PARAMETERS()
      |   ^~~~~~~~~~~~~~~~~
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:718:18: error: expected identifier before ‘,’ token
  718 |     ##__VA_ARGS__,                                          \
      |                  ^
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:815:3: note: in expansion of macro ‘DEFINE_JS_PARAMETERS’
  815 |   DEFINE_JS_PARAMETERS()
      |   ^~~~~~~~~~~~~~~~~~~~
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:650:18: error: expected identifier before ‘,’ token
  650 |     ##__VA_ARGS__,                                        \
      |                  ^
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:671:32: note: in expansion of macro ‘DEFINE_RESULT_AND_PARAMETERS’
  671 | #define DEFINE_PARAMETERS(...) DEFINE_RESULT_AND_PARAMETERS(1, ##__VA_ARGS__)
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:824:3: note: in expansion of macro ‘DEFINE_PARAMETERS’
  824 |   DEFINE_PARAMETERS()
      |   ^~~~~~~~~~~~~~~~~
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:650:18: error: expected identifier before ‘,’ token
  650 |     ##__VA_ARGS__,                                        \
      |                  ^
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:671:32: note: in expansion of macro ‘DEFINE_RESULT_AND_PARAMETERS’
  671 | #define DEFINE_PARAMETERS(...) DEFINE_RESULT_AND_PARAMETERS(1, ##__VA_ARGS__)
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:674:3: note: in expansion of macro ‘DEFINE_PARAMETERS’
  674 |   DEFINE_PARAMETERS(__VA_ARGS__)          \
      |   ^~~~~~~~~~~~~~~~~
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:834:3: note: in expansion of macro ‘DEFINE_PARAMETERS_NO_CONTEXT’
  834 |   DEFINE_PARAMETERS_NO_CONTEXT()
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:718:18: error: expected identifier before ‘,’ token
  718 |     ##__VA_ARGS__,                                          \
      |                  ^
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:1693:3: note: in expansion of macro ‘DEFINE_JS_PARAMETERS’
 1693 |   DEFINE_JS_PARAMETERS()
      |   ^~~~~~~~~~~~~~~~~~~~
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:650:18: error: expected identifier before ‘,’ token
  650 |     ##__VA_ARGS__,                                        \
      |                  ^
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:671:32: note: in expansion of macro ‘DEFINE_RESULT_AND_PARAMETERS’
  671 | #define DEFINE_PARAMETERS(...) DEFINE_RESULT_AND_PARAMETERS(1, ##__VA_ARGS__)
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../3rdParty/v8-build/v8/../v8/src/codegen/interface-descriptors.h:2144:3: note: in expansion of macro ‘DEFINE_PARAMETERS’
 2144 |   DEFINE_PARAMETERS()
      |   ^~~~~~~~~~~~~~~~~

Expected result:
v8-build compiles

Regarding the missing v8 module:
Initially all git submodules may be missing after a fresh git checkout. Or some newly added git submodules may be adding after a git pull.
In this case it is best to just to git submodule update --init to fetch/update the missing submodules.
Regarding compilation with gcc:
we made the experience that compilation with g++ got increasingly more difficult with more recent versions of g++.
Starting with g++11.3 there were problems with compiling some legitimate code from some third party library we were using. These issues weren't resolved in g++12, but only in g++13.
However, g++12 and also g++13 introduced tons of false positives about uninitialized variables and out-of-bounds accesses, not just in our own code but also in many of the third party libraries (where they have been reported as well and have been identified as false posivies). That was really daunting and forced us to turn these checks off when compiling with g++ >= 13. To the best of my knowledge these issues still haven't been resolved in g++.
We recently also upgraded the bundled version of the V8 third party library, which also isn't able to compile with g++ anymore.
For all these reasons we moved the compilation to clang a while ago. clang-16 is known to compile devel fine. We are also using it in our CI and to reproduce build images.
So switching the tool chain (compiler & linker) to clang & lld would resolve the issue.

Specifically, I am using all these cmake options to ensure that the entire toolchain uses clang tools and not the gcc ones:
-DCMAKE_C_COMPILER=clang-16
-DCMAKE_CXX_COMPILER=clang++-16
-DCMAKE_C_COMPILER_AR="/usr/bin/llvm-ar-16"
-DCMAKE_CXX_COMPILER_AR="/usr/bin/llvm-ar-16"
-DCMAKE_C_COMPILER_RANLIB="/usr/bin/llvm-ranlib-16"
-DCMAKE_CXX_COMPILER_RANLIB="/usr/bin/llvm-ranlib-16"
-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld-16"


clues: Add missing item variations from Poll 78

Back in March there was a brief discussion about this poll's clue changes in discord, but nobody ever fully looked into it.
I noticed ACTIVE_CRYSTAL_BOW_OR_BOW_OF_FAERDHINEN existing in EmoteClue.java but I'm unsure of the best way to get it into the Falo file, should I just copy paste it here too? So I've currently skipped that one.

Description
Implemented?

Climbing Boots (g) can now be used to solve the Elite emote clue, ‘Cheer in the Shadow Dungeon’.
7b365ba401426d12c47fd45098b564671ae4dd22

The Abyssal Tentacle and Abyssal Tentacle (or) will now be accepted in place of the Abyssal Whip in the relevant Master emote clue.
✔

Guardian Boots can now be substituted for Bandos Boots in the relevant Master emote clue.
✔

Primordial Boots will now be accepted in place of Dragon Boots in the relevant Elite emote clue.
240e4c95f0e4f5d1eb01cdd2e4ca92a422df1713

Falo will now accept the Bow of Faerdhinen, the Bow of Faerdhinen (c) and all colour variations in place of the Crystal Bow.
❌

Falo will also now accept all Ghommal’s Hilt variations of the Avernic Defender in place of the Avernic Defender, including Trouver versions.
✔

I'd suggest making ACTIVE_CRYSTAL_BOW_OR_BOW_OF_FAERDHINEN package-private and referencing it in FaloClue. At some point it may be worth assembling all these multi-item variants into a centralized location, but I don't think that's much of a concern or priority now.


[Bug]: It does not appear possible to refer to an IAM policy managed by the local terraform code in the additional_iam_policies list

Welcome to Amazon EKS Blueprints!

[X] Yes, I've searched similar issues on GitHub and didn't find any.

Amazon EKS Blueprints Release version
deec7d5caea47c06dea48fa616ad2c56e52c3cce
What is your environment, configuration and the example used?
Terraform v1.1.7
If I have the following iam.tf in the same codebase that creates the EKS cluster:
resource "aws_iam_policy" "eks_cluster_node_inline_addon_policy" {
  name        = "${var.zone}-eks-cluster-node-inline-addon-policy"
  path        = "/"
  description = "Additional EKS Node Access"

  # Terraform's "jsonencode" function converts a
  # Terraform expression result to valid JSON syntax.
  policy = jsonencode({
    Version = "2012-10-17"
    Statement = [
      {
        Action = [
          "ecr:BatchGetImage",
        ]
        Effect   = "Allow"
        Resource = "arn:aws:ecr:us-east-1:${var.aws_ecr_account_number}:repository/infrastructure/*"
      },
    ]
  })
}

and a locals.tf file like this:
locals {
  managed_node_groups = {
    ondemand = {
      node_group_name = "ondemand"
      additional_iam_policies = [ aws_iam_policy.eks_cluster_node_inline_addon_policy.arn ]
    }
  }
}

which then gets used in the terraform-aws-eks-blueprints like this:
  managed_node_groups = local.managed_node_groups

The plan will generate an error like this due to the use of for_each
│ Error: Invalid for_each argument
│
│   on .terraform/modules/eks_blueprints.aws_eks/main.tf line 250, in resource "aws_iam_role_policy_attachment" "this":
│  250:   for_each = local.create_iam_role ? toset(compact(distinct(concat([
│  251:     "${local.policy_arn_prefix}/AmazonEKSClusterPolicy",
│  252:     "${local.policy_arn_prefix}/AmazonEKSVPCResourceController",
│  253:   ], var.iam_role_additional_policies)))) : toset([])
│     ├────────────────
│     │ local.create_iam_role is true
│     │ local.policy_arn_prefix is a string, known only after apply
│     │ var.iam_role_additional_policies is empty list of string
│
│ The "for_each" value depends on resource attributes that cannot be
│ determined until apply, so Terraform cannot predict how many instances will
│ be created. To work around this, use the -target argument to first apply
│ only the resources that the for_each depends on.

What did you do and What did you see instead?
It appears like the current module design makes it impossible to pass in IAM policies that are managed in the same Terraform code base.
Is this indeed the case?
And is this by design?
These IAM policies can be created in another terraform code base, and read in via a remote state file, or something, but in this simple use-case, that is overkill.
Additional Information
N/A

Hi @spkane - the issue you are running into is a well known issue when a computed value is used as a key https://github.com/hashicorp/terraform/issues/30937
To get around this issue today, your policy should exist prior to provisioning the cluster/node groups

Thanks @bryantbiggs . I was actually aware of the underlying terraform issue, but am glad to see that it is starting to get some movement. What I was really wondering, was whether the approach in this module to use a for_each loop was by design or necessity since this limitation has a pretty real impact on how these I am policies can be created and managed.
However, at this point, I am assuming that the answer is yes.
It might be nice to add a column to the Inputs table in the README called Computed (or something that is clearer) that tells you whether you can pass in a pointer to another resource or not (and maybe link to the issue above in the column header).

Is it by design - yes. However, there is new guidance from Hashi that needs to be implemented (breaking change) - https://github.com/hashicorp/terraform/pull/30327


Type inference of Promise.all breaks in 0.55 with generic union types

After upgrading from 0.54 to 0.55, our Promise.all calls started giving errors.
class A {}
class B {}

declare var cond: boolean;
declare var promiseA: Promise<A>;
declare var promiseB: Promise<B>;

Promise.all([cond ? promiseA : promiseB])
  .then((results: [A|B]) => {
  });

flowtype.org/try
The above works using version 0.54 but gives errors in 0.55:
9:   .then((results: [A|B]) => {
                      ^ A. This type is incompatible with the expected param type of
[LIB] static/v0.55.0/flowlib/core.js:611:     static all<Elem, T:Iterable<Elem>>(promises: T): Promise<$TupleMap<T, typeof $await>>;
                                                                                ^ B
9:   .then((results: [A|B]) => {
                        ^ B. This type is incompatible with the expected param type of
[LIB] static/v0.55.0/flowlib/core.js:611:     static all<Elem, T:Iterable<Elem>>(promises: T): Promise<$TupleMap<T, typeof $await>>;
                                                                                ^ A

I'm not quite sure if this is a bug or an unfortunate side-effect of a new feature, but I think the issue might be related to $TupleMap and the way generic types are "combined".
This is the most minimal example I can think of that works in 0.54 but gives errors in 0.55:

class A {}
class B {}

class Container<+T> {
  +val: T;
}

declare var tuple: $TupleMap<[Container<A>|Container<B>], <T>(T) => T>;

(tuple: [Container<A|B>]); // Error in 0.55:
/*
9: (tuple: [Container<A|B>]);
            ^ Container. This type is incompatible with
8: declare var tuple: $TupleMap<[Container<A>|Container<B>], <T>(T) => T>;
                      ^ union: type application of class `Container`(s)
Member 1:
8: declare var tuple: $TupleMap<[Container<A>|Container<B>], <T>(T) => T>;
                      ^ type application of class `Container`Error:
9: (tuple: [Container<A|B>]);
                        ^ B. This type is incompatible with
8: declare var tuple: $TupleMap<[Container<A>|Container<B>], <T>(T) => T>;
                                           ^ A
Member 2:
8: declare var tuple: $TupleMap<[Container<A>|Container<B>], <T>(T) => T>;
                      ^ type application of class `Container`Error:
9: (tuple: [Container<A|B>]);
                      ^ A. This type is incompatible with
8: declare var tuple: $TupleMap<[Container<A>|Container<B>], <T>(T) => T>;
                                                        ^ B
*/

flowtype.org/try
In the above, replacing (tuple: [Container<A|B>]) with (tuple: [Container<A>|Container<B>]) works in both versions, but if I have them both
(tuple: [Container<A>|Container<B>]);
(tuple: [Container<A|B>]);

Version 0.54 gives errors too (as expected, I guess):
10: (tuple: [Container<A|B>]);
             ^ Container. This type is incompatible with
9: (tuple: [Container<A>|Container<B>]);
            ^ union: type application of polymorphic type: class type: Container(s)

The Promise.all example also works if I explicitly mark the source promise as Promise<A|B> instead of the inferred type Promise<A>|Promise<B>.
const promises: [Promise<A|B>] = [cond ? promiseA : promiseB];
Promise.all(promises)
  .then((results: [A|B]) => {
  });

Which is ok, but it would be much nicer if the types could be inferred instead.

Is this related to https://github.com/facebook/flow/issues/4923

The issue seems to be fixed a long time ago


Update typo on intranet-overview.md

https://github.com/MicrosoftDocs/OfficeDocs-SharePoint/issues/1828

@JohanFreelancer9 Copy editing is needed for this PR. Thanks.


Cannot find module 'cross-spawn' when running via npx

What are you trying to achieve?
I am trying to fix mock-request package and get it up to speed with CodeceptJS v3. You can find my fork here: https://github.com/jnv/mock-request
I have updated the spec syntax and dependencies, but I can't seem to get it running.
What do you get instead?
When running codeceptjs via npx I get the following error:
$ npx codeceptjs run -c test/codecept.puppeteer.conf.js --debug --grep @Puppeteer
Cannot find module 'cross-spawn'
Require stack:
- .../mock-request/node_modules/codeceptjs/lib/command/init.js
- .../node_modules/codeceptjs/bin/codecept.js

You can see the failure in GitHub Action: https://github.com/jnv/mock-request/runs/1589145328?check_suite_focus=true#step:8:4
Details

CodeceptJS version: 3.0.3
NodeJS Version: v12 and v14
Operating System: Linux, macOS
puppeteer || webdriverio
Configuration file:

Puppeteer:
module.exports.config = {
  tests: './*_test.js',
  timeout: 10000,
  output: './output',
  helpers: {
    Puppeteer: {
      url: 'http://<IP_ADDRESS>:8000',
      show: false,
      chrome: {
        args: [
          '--disable-web-security',
          '--no-sandbox',
          '--disable-setuid-sandbox',
        ],
      },
    },
    FileSystem: {},
    MockRequestHelper: {
      require: '../index.js'
    },
  },
  include: {},
  bootstrap: false,
  mocha: {},
  name: 'acceptance',
};

WebDriver:
module.exports.config = {
  tests: './*_test.js',
  timeout: 10000,
  output: './output',
  helpers: {
    WebDriver: {
      url: 'http://<IP_ADDRESS>:8000',
      browser: 'chrome',
      // host: TestHelper.seleniumHost(),
      // port: TestHelper.seleniumPort(),
      // disableScreenshots: true,
      // desiredCapabilities: {
      //   chromeOptions: {
      //     args: ['--headless', '--disable-gpu', '--window-size=1280,1024'],
      //   },
      // },
    },
    MockRequestHelper: {
      require: '../index.js'
    },
  },
  include: {},
  bootstrap: done => setTimeout(done, 5000), // let's wait for selenium
  mocha: {},
  name: 'acceptance',
};

Notes
The issue seems to be a missing runtime dependency on cross-spawn. It is required here:
https://github.com/codeceptjs/CodeceptJS/blob/0e48818d9bf010ae15fedcda411dd871953c1802/lib/command/init.js#L7
But it seems to be missing in package.json:
https://github.com/codeceptjs/CodeceptJS/blob/0e48818d9bf010ae15fedcda411dd871953c1802/package.json#L56-L88
Simplest workaround I use for now is to add cross-spawn dependency directly to the project (as devDependency in this case).

Can confirm the recently released version 3.0.3 breaks npx codecept init script. Way too much time wasted trying to locate this dependency. Hope this helps ^^ someone. If folks are not able to make it work, try running with "codeceptjs": "3.0.2" instead in your devDependencies.

Made a quick PR and added it here ^


Deprecated set-output command

See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
In the case of this action this only means that dependency @actions/core must be upgraded to v1.10.0 or greater.

Addressed by #45


update standard

Coverage remained the same at 93.65% when pulling c74fb0e63564bf3ad7a4d7af6e4efa3303ab4490 on nden:up into 7a2d7a6d8d530b181d288e23de04898a0d26cdd6 on spacetelescope:master.


[FEAT] Changing the order in which the months appear

Feature description:
It seems strange to us here that the months appear like this. It would be good if there was an option to change the order in which the months appear. January, February

Alternatives considered:
No response

I agree that the list isn’t very intuitive. Unless you know that new months are at the top and the previous ones are at the bottom, it can be confusing. But this isn’t really intuitive, it’s just explained that way.
The problem is that both the top-to-bottom and bottom-to-top approaches make sense. You wouldn’t want the new month at the bottom, but at the same time, we all read from top to bottom. Both options are logical, which makes it tricky! 😅
But the solution might be to allow users to decide which approach works better for them, with a tiny Sort order button at the top right corner:


feat: Made Framegear URL field autogrow

What changed? Why?
This has been changed as per request by @briandoyle81CB referencing issue #319
Notes to reviewers
Change can be better understood from following video
https://github.com/coinbase/onchainkit/assets/108223901/dc78b7e0-c690-46de-b0f7-402a9ed1bc51
How has it been tested?

I like that we have a textarea. But probably we could reduce the space of the "fetch" button, so the link gets more with.
@bansalgautam any other design improvement we could do? So the experience feels more smooth.

Yes, we can just go with our orignal design and show the URL in frame validations as suggested by @cnasc here


Optimized alterF

@m-renaud Do you think this is about ready to go?

I can take a look this afternoon/evening if that's alright.
On Mon, Feb 5, 2018, 11:28 AM David Feuer<EMAIL_ADDRESS>wrote:

@m-renaud https://github.com/m-renaud Do you think this is about ready
to go?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tibbe/unordered-containers/pull/181#issuecomment-363194328,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAqw5hAsPigE38M36EsI47sjoiOGWdUqks5tR1ZTgaJpZM4RzWdd
.

Overall the code LGTM. Do you have a recent run of benchmarks comparing the performance of alterF to the specialized functions? I've been busy and haven't had a chance to go through and run the benchmarks myself.


ENH: Hdf5 update

Update to most recent tagged version of HDF5 (hdf5-1_10_6) that is compatible with cmake 3.10.2.
Replace customizations for ITK that are now included in the upstream version of HDF5.
PR Checklist

[X] No API changes were made (or the changes have been approved)
[X] No major design changes were made (or the changes have been approved)

@dzenanz There is a windows failure.  It looks like a small problem for someone who has ready access to windows.
https://open.cdash.org/viewBuildError.php?buildid=6920225
Could you help identify what needs to be fixed?

I don't run into those compile errors with either DLLs or static libraries. Both my builds have ITK_LEGACY_REMOVE on.

But based on the error message, it is probably this: https://stackoverflow.com/questions/3491990/c-definition-of-dllimport-static-data-member

I now tried with BUILD_SHARED_LIBS on, and both variants of ONLY_SHARED_LIBS. I cannot reproduce the compile error.

@dzenanz oh-boy,  If you can not figure out how to reproduce the error, I'm going to be really out of luck :)
Any suggestions on what to try next?

Bisect different HDF5 versions? But before that, have you seen Azure warnings?
-- Checking IF alignment restrictions are strictly enforced... yes
CMake Warning (dev) at Modules/ThirdParty/HDF5/src/itkhdf5/CMakeLists.txt:438 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'ONLY_SHARED_LIBS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Warnings Configuration:
-- Filter ZLIB is ON

GitHub actions also use Azure, and delegate to itk_common.cmake. But I don't see any special options in the initial cache. I will also try a clean build.

A clean build with static libraries was successful. Trying shared.

Reconfiguring to BUILD_SHARED_LIBS also built successfully.

@N-Dekker @jhlegarreta can you try reproducing/fixing the error?

Which set of flags/CMake config options should we try? By default, I have ITK_LEGACY_REMOVE to OFF and I build static libraries (BUILD_SHARED_LIBS to OFF) on a Windows 10 machine, MSVC 2015.

Which set of flags/CMake config options should we try? By default, I have ITK_LEGACY_REMOVE to OFF and I build static libraries (BUILD_SHARED_LIBS to OFF) on a Windows 10 machine, MSVC 2015.

Result with the above settings:
Build: 331 succeeded, 2 failed, 93 up-to-date, 9 skipped
Failure for itkPasteImageFilterGTest.cxx
So unrelated to this patch set.

Which set of flags/CMake config options should we try? By default, I have ITK_LEGACY_REMOVE to OFF and I build static libraries (BUILD_SHARED_LIBS to OFF) on a Windows 10 machine, MSVC 2015.

Result with the above settings and commit hash 6813461:
Build: 331 succeeded, 2 failed, 93 up-to-date, 9 skipped
Failure for itkPasteImageFilterGTest.cxx
So unrelated to this patch set.
Sorry @hjmjohnson , but I had started the build before your latest patches. Let me know if I should try again with a given commit.

I had accidentally committed unrelated file changes.  This has been fixed.  I also fixed cmake warning.
The failing dashboard entry is https://open.cdash.org/build/6922596/notes#note0

@hjmjohnson Do you still need me to try to reproduce the issue/see if the build is successful on my machine on the latest patch set?

@jhlegarreta I understood yes. The new commit just changes the error message?

@jhlegarreta I understood yes. The new commit just changes the error message?

I clean/rebuilt all without modifying my settings (let me know if I should use the ones in the CDash build) and the build failed:
Rebuild All: 415 succeeded, 10 failed, 9 skipped

The error report in VS reads
Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK1104	cannot open file '..\..\..\..\lib\Debug\itkhdf5-static-5.2_D.lib'	itkAlgorithmsPrintTest2	C:\SDKs\ITK\itk-head-Bin\Modules\Nonunit\IntegratedTest\test\LINK	1
Error	C1083	Cannot open source file: 'C:\SDKs\ITK\itk-head-Bin\Modules\ThirdParty\HDF5\src\itkhdf5\H5Tinit.c': No such file or directory	hdf5-static	C:\SDKs\ITK\itk-head-Bin\Modules\ThirdParty\HDF5\src\itkhdf5\src\c1	1
Error	LNK1104	cannot open file '..\..\..\..\lib\Debug\itkhdf5-static-5.2_D.lib'	itkAlgorithmsPrintTest	C:\SDKs\ITK\itk-head-Bin\Modules\Nonunit\IntegratedTest\test\LINK	1
Error	LNK1104	cannot open file '..\..\..\..\lib\Debug\itkhdf5-static-5.2_D.lib'	itkAlgorithmsPrintTest4	C:\SDKs\ITK\itk-head-Bin\Modules\Nonunit\IntegratedTest\test\LINK	1
Error	LNK1104	cannot open file '..\..\..\..\lib\Debug\itkhdf5-static-5.2_D.lib'	itkAlgorithmsPrintTest3	C:\SDKs\ITK\itk-head-Bin\Modules\Nonunit\IntegratedTest\test\LINK	1
Error	LNK1104	cannot open file '..\..\..\..\lib\Debug\itkhdf5-static-5.2_D.lib'	ITKIOMINCTestDriver	C:\SDKs\ITK\itk-head-Bin\Modules\IO\MINC\test\LINK	1
Error	LNK1104	cannot open file '..\..\..\..\lib\Debug\itkhdf5-static-5.2_D.lib'	ITKIOHDF5TestDriver	C:\SDKs\ITK\itk-head-Bin\Modules\IO\HDF5\test\LINK	1
Error	LNK1104	cannot open file '..\..\..\..\lib\Debug\itkhdf5-static-5.2_D.lib'	ITKIOTransformHDF5TestDriver	C:\SDKs\ITK\itk-head-Bin\Modules\IO\TransformHDF5\test\LINK	1
Error	LNK1104	cannot open file '..\..\..\..\lib\Debug\itkhdf5-static-5.2_D.lib'	ITKIntegratedTestTestDriver	C:\SDKs\ITK\itk-head-Bin\Modules\Nonunit\IntegratedTest\test\LINK	1

(I am additionally getting a failure in itkPasteImageFilterGTest.cxx as yesterday but that is not relevant for this patch set/had observed it before).
Are further details needed? Let me know if I should configure an experimental build so that the next builds are submitted to the dashboard.

I think I figured out the problem.  WOrking on a solution (on my mac) so hopefully windows tests will start passing.

@jhlegarreta If you could try building a shared library version of this patch on windows.
I'm pretty sure the old issue occurred because ITK was being built with shared libraries, and HDF5 was trying to build with both shared and static library versions.  ITK is not instrumented to do that.  I needed to add  set(ONLY_SHARED_LIBS ON CACHE INTERNAL "Only build shared") in the correct location for it to be recognized and respected.
At least that is what I hope was the problem.

@hjmjohnson thanks for investigating this. Is commit 3989fc8 the one to try with a shared build?

@dzenanz @thewtex  I don't know how to make the ghost-flow test to pass.  I tried everything I could think of.

ghostflow-check-master still fails. Did you rebase on master after I merged the limit increase?

@dzenanz Yes.

@bradking might be able to explain the problem and/or fix it?

@hjmjohnson @dzenanz the limit needs to be set via a hooks-max-size attribute set on relevant sources.  I added a commit to set it on the specific sources in question.

  We are getting very close!  Now we just need to wait several hours for the builds to replicate the successes.  Thank you for your efforts.

Hi guys. Some change, I'm guessing this PR, seems to have changed the installed HDF library files names from:

libitkhdf5_debug.a
libitkhdf5_cpp_debug.a

to:

libitkhdf5-static_debug.a
libitkhdf5_cpp-static_debug.a

I have nightly builds of my own app against nightly builds of ITK, and this renaming broke it today.
Is the rename deliberate?  Could it be reverted?  Thanks.

Hi @seanm,
-static was deliberately added in https://github.com/InsightSoftwareConsortium/ITK/pull/2229 to follow upstream and address https://github.com/InsightSoftwareConsortium/ITK/issues/1971. Why is this breaking your build?

Hi @seanm,
-static was deliberately added in https://github.com/InsightSoftwareConsortium/ITK/pull/2229 to follow upstream and address https://github.com/InsightSoftwareConsortium/ITK/issues/1971. Why is this breaking your build?

It breaks my build the same way renaming an API would. My Xcode project refers to the libraries it links against by their filename, so if the filename changes, the library is not found, and linking fails.  I have nightly builds against a stable ITK release but also against nightly ITK.  My workaround is to rename them back when building nightly ITK.
I guess since it's deliberate I'll live with it.  On its face though, it seems unnecessary to add the word "static" when the extension already indicates it's a static lib, and no other itk libs have the word "static" in them.

It breaks my build the same way renaming an API would. My Xcode project refers to the libraries it links against by their filename, so if the filename changes, the library is not found, and linking fails.  I have nightly builds against a stable ITK release but also against nightly ITK.  My workaround is to rename them back when building nightly ITK.
I guess since it's deliberate I'll live with it.  On its face though, it seems unnecessary to add the word "static" when the extension already indicates it's a static lib, and no other itk libs have the word "static" in them.


'fetch()' AzFunctions API and display output on an HTML page

How should one parse the output of a PowerShell Azure function while using the fetch function in an HTML page? The object shows up in the console of the browser. PFB example code and Codepen link.
fetch('https://newtest5fa.azurewebsites.net/api/HttpTrigger1?name=Ayan',{mode: 'no-cors'}).then(response => console.log(response))

https://codepen.io/ayanmullick/pen/WNZQOqa?editors=1011
But how can one display the output on the web page while consuming multiple AzFunctions in one static webpage? I tried the steps as well per the document below.
https://docs.microsoft.com/en-us/azure/static-web-apps/add-api?tabs=vanilla-javascript#update-the-frontend-app-to-call-the-api

But that didn't work.

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

ID: 5689b389-ead5-825d-dde1-9a290bc0819f
Version Independent ID: 52a526a2-477a-dda4-02b4-eac1440811ed
Content: Add an API to Azure Static Web Apps with Azure Functions
Content Source: articles/static-web-apps/add-api.md
Service: static-web-apps
GitHub Login: @manekinekko
Microsoft Alias: wachegha

@Ayanmullick Thanks for the feedback! We are currently investigating and will update you shortly.

@Ayanmullick Could you please share if you are receiving any error while following this document to help you better on this. https://docs.microsoft.com/en-us/azure/static-web-apps/add-api?tabs=vanilla-javascript#update-the-frontend-app-to-call-the-api

@SnehaAgrawal-MSFT,  I was unable to contact you thru Teams. It shows up as Uncaught (in promise) in the Console tab.

However, it shows up correctly in the Network tab.

Code
<script>
    (async function() {
        const { text } = await( await fetch(`https://newtest5fa.azurewebsites.net/api/HttpTrigger1?name=Ayan`,{mode: 'no-cors'})).json();
        document.querySelector('#name').textContent = text;
    }())
    </script>

@Ayanmullick Thanks, Could you please send an email to AzCommunity[at]Microsoft[dot]com referencing this thread, we would like to work closer with you on this matter.

One needs to disable CORS and use the code below.
<script>
(async function()
      {await fetch('https://<function name>.azurewebsites.net/api/HttpTrigger2?name=ABC').then(response => response.text()).then(function(data){text2 = data});
       document.querySelector('#name2').textContent = text2;
      }()
)
</script>
Loading content from the API1: <b id="name2">

Although there could be a way to do this with document.write() without needing a function.


ModuleNotFoundError: No module named 'zeus.tfops'; 'zeus' is not a package

I tried running the training script with:
mpiexec -n 4 python train.py --data_dir imagenet-tfr --problem imagenet --image_size=32

Which results in the following error:
Traceback (most recent call last):
  File "train.py", line 289, in <module>
    main(hps)
  File "train.py", line 123, in main
    import model
  File "/home/edrick/glow/model.py", line 4, in <module>
    import optim
  File "/home/edrick/glow/optim.py", line 2, in <module>
    import zeus.tfops as Z
ModuleNotFoundError: No module named 'zeus.tfops'; 'zeus' is not a package
Traceback (most recent call last):
  File "train.py", line 289, in <module>
    main(hps)
  File "train.py", line 123, in main
    import model
  File "/home/edrick/glow/model.py", line 4, in <module>
    import optim
  File "/home/edrick/glow/optim.py", line 2, in <module>
    import zeus.tfops as Z
ModuleNotFoundError: No module named 'zeus.tfops'; 'zeus' is not a package
50000 50 4
Train epoch size: 50176
Traceback (most recent call last):
  File "train.py", line 289, in <module>
    main(hps)
  File "train.py", line 123, in main
    import model
  File "/home/edrick/glow/model.py", line 4, in <module>
    import optim
  File "/home/edrick/glow/optim.py", line 2, in <module>
    import zeus.tfops as Z
ModuleNotFoundError: No module named 'zeus.tfops'; 'zeus' is not a package

I installed zeus using pip install zeus which gives me zeus==0.1.1

Ditto here. The zeus that is available through pip has no relevance. It would be helpful if a requirements.txt was included.

N.B: This may be a typo. Try replacing import zeus.tfops as Z with import tfops as Z in optim.py

@EndingCredits
remark line like these
#logdirs, _print = zeus.get_logdirs(['', '_ckpt'])
logdirs="./log"
_print=print
it work

Fixed the imports, added requirements.txt. Added a simple json logger too for train, test results. Try
now with latest version :)


Event horizon batch

Summary
Summary of the PR here. The GitHub release description is created from this comment so keep it nice and descriptive.
Remember to remove sections that you don't need or use.
Added

Describe the added features

Changed

Describe the outwards facing code change

Fixed

Describe the fix and the bug

Removed

Describe what was removed and why

Security

Describe the security issue and the fix

Deprecated

Describe the part of the code being deprecated and why

I had an idea that we could implement batching over the event horizon. We can do it quite safely and easily, but the only problem is that it does not work when producer would send over a batch to a Runtime running an earlier version


Enable install of rook-ceph v1.5 releases

This PR aims to solve the issue in the link below
https://github.com/IBM/community-automation/issues/68
I have tested the code to work in Jenkins job and the job worked with rook-ceph v1.5.3 being installed without any issue. I have confirmed that the install of rook-ceph v1.4.8 also works with the below code.

I am spinning up a cluster to test this my self.  Will approve when my test is complete.


Turbo is still caching the chart - even when setting turbo-cache-control to no-cache

I believe I've done everything possible to disable cache on the page where the chart renders, however, chart values are still 'sticky'. I get chart rendered for unintended values.

@tamersalama as before please try to fork and fix yourself. Maybe even creating a dummy app with this issue can be helpful, so anyone can reproduce the issue.

Yes, having at least dummy app where this reproduces would be helpful

Going to close this issue for now. Feel free to add new comments or open new issue if the problem is still present.


refactor(elevation_map_loader): rework parameters

Description
Implement the ROS Node configuration layout described in https://github.com/orgs/autowarefoundation/discussions/3371 for the elevation_map_loader package.

Create the schema

Tests performed
Package built and launched locally.
Effects on system behavior
More reliable and faster parameter configuration file creation.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@oguzkaganozt
I appreciate your efforts in this Pull Request. Could you let me know if there has been any progress on the range column? The Pull Request is being marked as stale.
Thank you for your attention.

@oguzkaganozt
I appreciate your efforts in this Pull Request. Could you let me know if there has been any progress on the range column? The Pull Request is being marked as stale. Thank you for your attention.

@Shin-kyoto
Thanks for the heads-up ! Just updated the PR now with current the main.
The range column is added automatically by default from json_to_markdown function. Here is another example of the table generated by that function. If it is really necessary, could you help filling the range(s) ?

@oguzkaganozt
Thank you for your comment !!
Could you please proceed as follows?

Please look at the code and fill in the range
Fill in the range of type where it is not clear from the code
I'll review it after it's filled in.

We thank you for your cooperation :+1:

@oguzkaganozt
Thank you for your comment !!
Could you please proceed as follows?

Please look at the code and fill in the range
Fill in the range of type where it is not clear from the code
I'll review it after it's filled in.

We thank you for your cooperation 👍

Added range to most of the integer valued parameters, but as Boolean and String ones are not bound to any specific range, leaving them as N/A seems more logical. Please review again @Shin-kyoto

@oguzkaganozt
Thank you for your comment !!
Could you please proceed as follows?

Please look at the code and fill in the range
Fill in the range of type where it is not clear from the code
I'll review it after it's filled in.

We thank you for your cooperation 👍

Added range to most of the integer valued parameters, but as Boolean and String ones are not bound to any specific range, leaving them as N/A seems more logical. Please review again @Shin-kyoto

Thanks!

The table below looks strange. Can you fix it?

Why did you remove voxel_size parameter?

Before your PR

After your PR

Please fill the range for roll, pitch and yaw.

@oguzkaganozt
Just a friendly ping

@oguzkaganozt
Just a friendly ping

@Shin-kyoto just updated please review again

@Shin-kyoto please review again

@oguzkaganozt
friendly ping

Could you please perform a functionality check with all the changes included and document the verification method and results?
Please add the detail below.

How was this PR tested?

launch command
visualized result of elevation_map in rviz
config file you used in test

@Shin-kyoto thanks for the review. But as the elevation_map_loader not being launched by default in autoware_launch. I really don't know how to test the elevation_map_loader by itself. Could you help on that ?

Could you please perform a functionality check with all the changes included and document the verification method and results?
Please add the detail below.

How was this PR tested?

launch command
visualized result of elevation_map in rviz
config file you used in test

@Shin-kyoto thanks for the review. But as the elevation_map_loader not being launched by default in autoware_launch. I really don't know how to test the elevation_map_loader by itself. Could you help on that ?

OK. The launch file below is helpful for you. Please check it.
https://github.com/autowarefoundation/autoware.universe/blob/main/perception/autoware_elevation_map_loader/launch/elevation_map_loader.launch.xml

@oguzkaganozt
Please fix README.md because it is difficult to check params on GitHub.

@oguzkaganozt friendly ping

Could you please perform a functionality check with all the changes included and document the verification method and results?
Please add the detail below.

How was this PR tested?

launch command
visualized result of elevation_map in rviz
config file you used in test

@Shin-kyoto thanks for the review. But as the elevation_map_loader not being launched by default in autoware_launch. I really don't know how to test the elevation_map_loader by itself. Could you help on that ?

OK. The launch file below is helpful for you. Please check it.
https://github.com/autowarefoundation/autoware.universe/blob/main/perception/autoware_elevation_map_loader/launch/elevation_map_loader.launch.xml

@oguzkaganozt friendly ping

@oguzkaganozt
friendly ping


Setting mapTypeControlOptions is imposible

Issue description
I want to reposition maps controllers to bottom corner,  but I cannot initialized mapTypeControlOptions variable.
I try this:
this.gmapsApi.getNativeMap().then(()=> {
this.mapTypeControlOptions["position"] = google.maps.ControlPosition.BOTTOM_CENTER;
});
mapTypeControlOptions is my object passed as argument to agm selector.
But,  this.mapTypeControlOptions["position"]  never takes the specified value.
I don't know, why the code never enter that arrow function
Current behavior
Expected/desired behavior
angular2 & angular-google-maps version
Last version
Other information

Same here! When I set custom mapTypeControlOptions with position and style, the type selector works but if I add mapTypeIds the selector dissappears

Same here @SebastianM  maybe some insight?


Create a marketplace_filter_3_3

One need to make this component using HTML and Tailwind CSS. I would suggest to use Tailwind Playgrounds to make things faster and quicker.
Here is a reference to the component.

After building the component please raise a PR with a screenshot of the component and add the component in marketplace_filter_3_3.html.
If you need to use any icon please use it from Hero Icons
Good luck.

I want to work on this issue
Please assign this to me @Rajdip019

Go ahead @bbsdevloper
Congrats 🎉, your PR got merged. To be eligible for the swags from ClueLess. Follow this steps.

Star this repository. ⭐
SignIn / SignUp in [ClueLess Website](https://www.clueless.tech/) .
Go to profile section from the top right hand corner.

Comment your profile URL under this comment tagging the person who merged your PR.

That’s it. Follow the leaderboard !
And don’t forget to share your achievement with your friends.


Types refactor

Review this PR in patch order.

Decoder no longer needed to remove struct cycles. That happened as we decoded
There were a bunch of tests that were asserting something about structs after removing cycles. I suspect these tests did something useful at some point, but I'm pretty they weren't any more. Apologies if I got this wrong. If so, assign bug to me to restore anything important.
Remove dead code
Refactor and add test.
Just moving code around (mostly type_cache -> make_type)
Remove (no longer neccesary) typeDepth counter in ValueDecoder

TBR @arv

No they were testing that the output of simplify was what we expect.
On Sun, Apr 9, 2017, 20:55 Rafael Weinstein<EMAIL_ADDRESS>wrote:

@rafael-atticlabs commented on this pull request.
In go/types/simplify_test.go
https://github.com/attic-labs/noms/pull/3367#discussion_r110568236:

@@ -64,20 +64,6 @@ func TestSimplifyType(t *testing.T) {
act := simplifyType(in, intersectStructs)
assert.True(exp.Equals(act), "Expected: %s\nActual: %s", exp.Describe(), act.Describe())
}

testSame := func(t *Type) {

	test(t, resolveCycleTypes(t))

}

testSame(BlobType)

I'm not sure I understand. They were tests that we didn't do random bad
stuff to types?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/attic-labs/noms/pull/3367#discussion_r110568236, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AACzFep09pnP9kN1R9DE6umbgAKQfu-Uks5ruag5gaJpZM4M3y-y
.

Ah. I get it now. Sorry. I'll put them back (without resolveCycles) tomorrow.


Application working

Added normalized CSS file. Debugged code, and removed container from services section. Changed width of cards to MaxWidth. Removed class container to navbar and footer.

Issue of oversized page fixed


replace puppet lint rule inherits_across_namespaces

http://puppet-lint.com/checks/inherits_across_namespaces/
http://docs.puppetlabs.com/guides/style_guide.html#class-inheritance

@racodond would you mind taking a look at the new rule?

@iwarapter My review: https://github.com/iwarapter/sonar-puppet/commit/596102ad72c70ecbae2ab460262c63b00b6c08d7 and the PR: https://github.com/iwarapter/sonar-puppet/pull/105

@racodond cheers, i like to restructuring of the rule i keep thinking of starting at the top (classdef in this case) instead of the part that matters (class_parent).

Yep. And it's more efficient because you visit just a few nodes in this cases instead of all class nodes.


please note this minSdkVersion now in 19 please change to 16 ...

**

>

please note this minSdkVersion now in 19 please change to 16 because if the min sdk is
19 most phones are not working. `I` mean only supporting devices that run on SDK 19 or newer.
The whole issue, in my opinion, is that this library removed the support for older SDK with no
 apparent reason (and that lack of a reason is the main issue). For an app that is in production
and already supports older phones, this would mean some users (even if they are just a
few of them) would lose support for future updates.

**

Is secure use API 19 as minSdkVersion ?


Add Mastodon for @Jeehut, migrate SE-Monthly

Looks like this didn't merge quite right to GitHub. I have checked that all the changes made it into the main branch and so I';ll close this PR now. All your changes have been merged.


Revised Compression Method

I made 2 changes to the "compress" method:

it will return fewer than the target number of bytes if it is given a digest that is smaller than the target size already (instead of throwing an error)
it spreads the modulo bytes around rather than dumping them all into the final byte

Why is this better?
The old method divided the bytes into the target number of segments and after even division, placed all remainder bytes into the final segment. This meant that the effect of the remainder bytes on overall entropy was confined to the final byte.
In the new method, the remainder bytes are selected throughout the input bytes and are distributed evenly among the target segments, allowing them to express more entropy. The compression per input byte is more even, since the biggest difference in the number of input bytes per output byte is 1.
For example:
compress_old([123,456,798,147], 4)
# -> [123, 456, 789, 147]
compress_old([123,456,789,147,258,369,321],4)
# -> [123, 456, 789, 417] (only the last byte has changed)

compress_new([123,456,798,147], 4)
# -> [123, 456, 789, 147]
compress_new([123,456,789,147,258,369,321],4)
# -> [435, 902, 115, 321] (all 4 bytes have changed)

See also pull request on original repo: https://github.com/zacharyvoase/humanhash/pull/1

Coverage decreased (-2.2%) to 97.826% when pulling e6dc5f7cb39338d7c2bd9c897386aa75eafce87c on lafncow:master into 5bed9ac7bb8473abb790e82c4bbdf2283df1e01e on blag:master.

I've made a mistake in my git workflow that is causing PyPI work to bleed into my pull request on the original repo. To correct this, I am going to close this PR, branch my fork, and then create a new PR here. Sorry for the confusion.

No worries! Do what ya gotta do.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1682 ms

Resolved: Bofrost.at performance has improved in 4e32db1.


Insertions and coverage tracks

Hi,
Thanks for these tools, they are very useful!
Just a few quick questions I couldn't find in the documentation.
For the insertion frequencies, returned form pyatac ins
are these values normalised to total number of insertions?  The documentation says frequencies, but it's not clear to me what the denominator is.
likewise for pyatac cov, are the values normalised to total number of fragments in the bam file?
thanks
Ashley

The values are not normalized to the total number of fragments in the bam files.  I think that for the ins the value should just be the per base integer counts (unless smoothed).  For the cov the scaling is fragment centers within a window divided by the window size, multiplied by an arbitrary scaling factor that can be chosen (default is 10, meaning the value is equivalent to fragment centers per 10 bp).  You could make this scaling factor related to the total read count if you want to normalize by that

Thanks for explaining and for the helpful suggestion.  I have been using the smoothed ins tracks (using a window of 121) as an alternative to typical coverage tracks (from macs2 output for example), so that the insertion sits are more faithfully represented.  I would be curious to know what you recommend for atac insertion density tracks to represent accessibility.
So if I understand the output of cov correct,  "fragment centers" means the position centered between the Tn5 insertion sites?
Thanks!

Yes the fragment centers means the position that is halfway between the Tn5 insertion sites. This is more similar to a typical coverage plot in which you would consider the contribution of an entire fragment, except that for every fragment a set number of bases around the center contribute to the coverage rather than the whole fragment.
I agree with you that for representing accessibility that the smoothed insertion track makes mores sense than either the typical coverage plot or the modified coverage plot computed by "cov",  as it is really the insertion points and not the middle of some fragment that represents the regions that are accessible.

Many thanks Alicia!


Molparse

Codecov Report

Merging #3 into master will decrease coverage by 46.01%.
The diff coverage is 34.3%.

@@             Coverage Diff             @@
##           master       #3       +/-   ##
===========================================
- Coverage    94.8%   48.79%   -46.02%
===========================================
  Files          15       23        +8
  Lines         366     1617     +1251
===========================================
+ Hits          347      789      +442
- Misses         19      828      +809

Impacted Files
Coverage Δ

qcelemental/molparse/to_string.py
10% <10%> (ø)

qcelemental/molparse/regex.py
100% <100%> (ø)

qcelemental/util/__init__.py
100% <100%> (ø)

qcelemental/__init__.py
100% <100%> (ø)
:arrow_up:

qcelemental/molparse/__init__.py
100% <100%> (ø)

qcelemental/molparse/to_schema.py
13.72% <13.72%> (ø)

qcelemental/molparse/pubchem.py
18.42% <18.42%> (ø)

qcelemental/util/misc.py
19.35% <19.35%> (ø)

qcelemental/molparse/from_string.py
4.89% <4.89%> (ø)

qcelemental/exceptions.py
83.33% <77.77%> (-16.67%)
:arrow_down:

... and 25 more

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 8c0985b...cb5cb74. Read the comment docs.


cmake: log ${CMAKE_VERSION}

Different CMake versions can have very subtle differences, for instance CMake 3.21 links object files in a different order compared to CMake 3.20; this produces different binaries.
CMAKE_VERSION is required information to track binary differences between two build systems.
Signed-off-by: Marc Herbert<EMAIL_ADDRESS>

Sample output:
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/me/SOF/sof/app
-- CMake version: 3.25.1
-- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.8") found components: Interpreter
-- Cache files will be written to: /home/me/.cache/zephyr
-- Zephyr version: 3.2.99 (/home/me/SOF/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: intel_adsp_cavs25
-- Found toolchain: xcc (/home/me/XCC/install/tools)
-- Found Dtc: /usr/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")


Debug add log for thrift transport error

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Warn on absolute paths used in turbo.json

In this PR:

un-export readTurboConfig
add warnings via global log to instances of absolute paths used in turbo.json globalDependencies, and per-task inputs, and outputs

Known issues:

This is definitely not the best way to add this feature, but is minimally disruptive. During the port, we ought to ensure that we are parsing turbo.json and then in a separate pass validating the data so we can wire errors and warnings to the proper ui infrastructure
We currently read turbo.json twice, as well as the root package.json. Until we refactor that, warnings will show up twice.

Re: prysk test, I started to add one, then decided I didn't want a test encoding the double warning.
Maybe this ought to wait until #2706 is merged.

Maybe this ought to wait until https://github.com/vercel/turbo/pull/2706 is merged.

Up to you, but other than exporting the method, I don't see a reason to wait. Is there any reason this PR needs the method to be un-exported?

The exporting isn't the issue. If we're going to include a test, I'd like the refactor to only read turbo.json once to happen so we aren't encoding a double warning in our tests. I expect the refactor doesn't make sense to do until after #2706 lands

@mehulkar please take another look. I've rebased this on to your PR. It looks like we don't need to re-export readTurboConfig, unless you've got another use for it coming.
I was also able to add an integration test that is at least close to the behavior we want to preserve. The log outputs are slightly different from the rest of our UI, but I think close enough.


Roll Flutter Engine from f02006736390 to f76edb0f7957 (1 revision)

https://github.com/flutter/engine/compare/f02006736390...f76edb0f7957
2023-10-12<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from giQtXxdSj6NdIViCw... to QLiomHC9D-GWh_gyK... (flutter/engine#46838)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from giQtXxdSj6Nd to QLiomHC9D-GW
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC jsimmons@google.com,rmistry<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Add Today panel

closes #141.
Draft PR Progress

[X] Add Events Section
[x] Add Deadlines Section
[x]  Show list empty message if there are no events for the day
[x] UI Style
[x] Add Unit Tests (Marking this as done for now, rest of the GUI tests can only be added once #137 has been merged)

Updated, please take a look thanks!


Refactor and Dedup initialization of a Coda instance.

There is a lot of duplication in creating a coda instance for full_test, coda_worker and coda.

Closing this issue as it is stale for a long time.


Hiding Button as a function of position

The following code sets up my InfiniteViewPager and hides a button depending on the position of the pager. It works, as in the buttons starts GONE, and appears when you swipe to a new position, but as you swipe back to "position 0" the button reappears. I believe this is because when I swipe back, the position is no longer really "position 0". I get the following in my logcat when I return to the image contained in "position 0":
11-23 23:29:49.694  25109-25109/com.app.store D/InfinitePagerAdapter﹕ instantiateItem: real position: 3301
11-23 23:29:49.694  25109-25109/com.app.store D/InfinitePagerAdapter﹕ instantiateItem: virtual position: 1

This is the code for initiating my pager and the OnPageChangeListener.
private void init(Context context) {
    View view = inflate(context, R.layout.listview_item, this);
    view.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));

    ViewPager viewPager;
    CustomPagerAdapter adapter;
    viewPager = (ViewPager) findViewById(R.id.view_pager);
    adapter = new CustomPagerAdapter(context);

    PagerAdapter wrappedAdapter = new InfinitePagerAdapter(adapter);
    viewPager.setAdapter(wrappedAdapter);

    //Hide the button unless showing image
    final Button selectButton = (Button) findViewById(R.id.selectButton);
    selectButton.setVisibility(GONE);

    viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {
        @Override
        public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {

        }

        @Override
        public void onPageSelected(int position) {
             if(position==0)
                selectButton.setVisibility(View.GONE);
             else
                selectButton.setVisibility(View.VISIBLE);
        }

        @Override
        public void onPageScrollStateChanged(int state) {

        }
    });

I'm having this issue too! I want to show the indicators based onPageSelected position but it is 300. Seeing this post was posted 2 years ago, well, I'm screwed T.T


get capabilities does not visibly block the interface

Using get capabilities currently blocks the UI. This is not apparent. There should be a blocking message box or similar (potentially including a Cancel button) indicating this. Currently, one may click around without effect until the capability document was retrieved.

similiar to https://github.com/Open-MSS/MSS/issues/222


Fix flake8 C901 on datetime.parservalidators.transform

While running the flake8 linting on this repo through the GitHub actions, an error C901 is raised. Below is the detailed error log.
./nepali/datetime/parser/validators.py:141:1: C901 'transform' is too complex (21)
1     C901 'transform' is too complex (21)

The file nepali/datetime/parser/validators.py contains the logic for date parsing and the transform method is part of it.
Major flake8 issues were fixed through PR #44. This error was known and was supposed to be handled through a new issue. So this issue is created to fix the error. It can also be ignored from linting as it is not a big issue. Let's do one so there will be no error on the actions log.
Here is the complex code.
def transform(data: dict):
    """
    transforms different format data to uniform data

    eg.
    INPUT:
    data = {
        "Y": 2078,
        "b": "Mangsir",
        "d": 12,
        ...
    }

    OUTPUT:
    {
        "year": 2078,
        "month": 8,
        "day": 12,
        ...
    }
    """

    year = None
    month = day = 1
    hour = minute = second = fraction = 0
    weekday = None

    for date_key in data.keys():
        if date_key == "y":
            year = int(data["y"])
            year += 2000
        elif date_key == "Y":
            year = int(data["Y"])
        elif date_key == "m":
            month = int(data["m"])
        elif date_key == "B":
            month = nepalimonth(data["B"])
        elif date_key == "b":
            month = nepalimonth(data["b"])
        elif date_key == "d":
            day = int(data["d"])
        elif date_key == "H":
            hour = int(data["H"])
        elif date_key == "I":
            hour = int(data["I"])
            ampm = data.get("p", "").lower()
            # If there was no AM/PM indicator, we'll treat this like AM
            if ampm in ("", "am"):
                # We're in AM so the hour is correct unless we're
                # looking at 12 midnight.
                # 12 midnight == 12 AM == hour 0
                if hour == 12:
                    hour = 0
            elif ampm == "pm":
                # We're in PM so we need to add 12 to the hour unless
                # we're looking at 12 noon.
                # 12 noon == 12 PM == hour 12
                if hour != 12:
                    hour += 12
        elif date_key == "M":
            minute = int(data["M"])
        elif date_key == "S":
            second = int(data["S"])
        elif date_key == "f":
            s = data["f"]
            # Pad to always return microseconds.
            s += "0" * (6 - len(s))
            fraction = int(s)
        elif date_key == "A":
            weekday = nepaliweek(data["A"])
        elif date_key == "a":
            weekday = nepaliweek(data["a"])
        elif date_key == "w":
            weekday = int(data["w"])
            if weekday == 0:
                weekday = 6
            else:
                weekday -= 1
    return {
        "year": year,
        "month": month,
        "day": day,
        "hour": hour,
        "minute": minute,
        "second": second,
        "microsecond": fraction,
        "weekday": weekday,
    }

Here is a similar implementation on cpython's strptime.
https://github.com/python/cpython/blob/bf89d4283a28dd00836f2c312a9255f543f93fc7/Lib/_strptime.py#L293

"The conditions for the keys 'Y', 'm', 'd', 'M', and 'S' in the if statements are the same. Likewise, there are other keys that share the same conditions. We can combine them to reduce cognitive complexity.


Serialize and Deserialize Debug Scopes

Serialize functions referred only from debug scopes as zombies. Serialize rest of the functions normally.
While deserializing, if isDebug (deserializing for debug scopes) only deserialize the declaration as zombie and mark function as private/shared since public functions make into the final binary causing linking errors.
If function is later referred to in non debug scope context and the function was not marked a zombie while serializing, resurrect the function, deserialize body if applicable and return it.
While serializing instructions, whenever the debug scopes of the instruction changes, the new scope along with parents is serialized in post order.

@swift-ci test

@swift-ci test

@swift-ci test

@swift-ci please test windows platform

@swift-ci please test windows platform

@swift-ci please test windows platform

@swift-ci please test

@swift-ci test

@swift-ci test

@swift-ci test

@swift-ci please test macOS platform


refactor: more detailed error logging on event batch handlers

Current dependencies on/for this PR:

main

PR #107   👈

This comment was auto-generated by Graphite.

⏳ This pull request is set to merge as part of a Graphite merge job
Stack job ID: gvOtmLvo73nsSCwlswT9.
See details on graphite.dev


url_alias localizations not saving relation

Bug report
Hi there! Thanks a lot for this great plugin!
Since we've been scaling our app a bit, we're experiencing some strange reactions when generating localised links in collection types.
Context
When we create a new page in a collection type eg.: support, our urls gets generated nicely:
sceenshot admin panel:

screenshot database:

Bug
Problem is, the localised versions are not linked for some reason.
We get the data back like this: (using graphQL)
"url_alias": {
    "data": {
        "id": "508",
        "attributes": {
            "url_path": "/en/support/video-guides/",
            "locale": "en",
            "localizations": {
                "data": []
            }
        }
    }
}

when taking a look in the wt_url_alias_localizations_links table in our database, we can see that the ID references are not present. Sometimes, the relation is saved when we change slugs, delete an item , .... but then often, just one reference will be present.

We tried to "Bulk generate" the collections but while we received a Success: Successfully generated 4 URL aliases. - there were still no localizations present. This affected both local and production machines while the data is the same.
System

Node.js version: >=18.0.0 <=20.x.x
NPM version: >=6.0.0
Strapi version: 4.25.3
Plugin version: ^1.0.0-beta.13
Database: postgres
Operating system: Mac

I have confirmed this issue when creating/updating pages in the content manager.
The localizations were not properly saved, I've fixed this in PR https://github.com/pluginpal/strapi-webtools/pull/187.
Though @aaronLejeune, as you mention, you also don't have the correct localizations after bulk generating the URL aliases.
I can't seem to reproduce that side of the issue.
Whenever I bulk generate, all the localizations end up in the right place.
Is there anything I'm missing?

@boazpoolman thank you for looking into it!
Indeed the correct localizations after bulk generation are no there as well.
When generating, all urls are made correct, meaning they are all parsed as they should eg.:

Its just that they seem to disconnect the localised version for some reason.
I need to mention that I am doing a "hacky" way of generating URL's. Eg.:
I have a single type shop overview page and a collection type shop pages where I have the following URL patterns:

the collection type shop pages have a one-way relation to shop overview page - which is exctually not supported by Strapi, but I am doing nevertheless. I do that so I can get the slug of the parent page. Maybe that can be the reason why these localisations are sometimes not saving.
I got a workaround by fetching localisations from the page itself, instead of going inside the url_alias object so Im good for now :)

Thanks for clarifying @aaronLejeune.
I can't imagine your single type relation would have any effect on the translations.
Is there any way you could provide some steps on how to reproduce this issue from a fresh Strapi install?
I would love to get this issue resolved!

I've released the fix I was talking about in v1.0.0-beta.14.
You could try that out to see if the issues are resolved.


How to add buttons on the header?

Hi, your lib is amazing, thank you! Now I have some problem:
1、I want to add a back button on the left-side of the header. But  when I override the header, the whole header is gone, when I override the headerActions, the button will always on the right, how to just add a left button?
2、I want to modify the css of the buttons on the header, like undo,redo,publish button, but I don't know how. I tried to add a new publish button by override the headerActions, but the default publish button is still there and I don' know how to hide it. If I add new undo,redo buttons insdead of modify the css, I just don't know how to invoke the undo and redo functions in Puck.
Can you help?

Thanks @xinnai!

You can't do that without overriding the entire header, but you can reimplement all the buttons using the usePuck hook.
There's no way to modify the CSS at the moment, but we should have a solution once we tackle #139

There's an example in the custom UI example:

const CustomHeader = ({ onPublish }: { onPublish: (data: Data) => void }) => {
  const { appState, dispatch } = usePuck();

  return (

      Custom UI example

          <Button
            onClick={() => onPublish(appState.data)}
            icon={<Globe size="14" />}
          >
            Publish
          </Button>

  );
};

To implement the history buttons, you'll need to use history from usePuck, implemented in #342 but not yet released or documented. If you need to implement that, you'll need to use the latest canary build (see npm.


Inject Mixpanel Config from Provider

Hi @spiehdid,
I really liked your simple and efficient library. I would like to propose this modification to be able to Inject the configuration of Mixpanel from the provider. I personally need it to control the debug mode and also modify the URL of Mixpanel as I'm using a proxy to send to Mixpanel.
Thanks,
Sebastien

Hi @petitgen
Thank you very much. I'm very glad that I helped at least a few developers with the help of this library. And I'm very glad that some people help to improve it. Forgive me for not looking at your feature before, I was just in the hospital. Today I will definitely take care of it.

Hi @spiehdid,
Thank you so much for approving and merging this pull request. No worries, you didn't look before. I hope you will recover as quickly as possible.
Have a Happy New Year 2022.
Sebastien


Move log-api module to another repo

Description:
This is a part of Standard Library Repo migration
Based on other dependencies: https://thisaruguruge.github.io/ballerina_dependencies/

Fixed with https://github.com/ballerina-platform/module-ballerina-log/pull/1


[Run] Search box sometimes not in focus

PowerToys version: v0.21.1
PowerToy Utility: PT Run
Running PowerToys as Admin: Yes, always
Windows build number: 19042.487

PT Run, when invoked with keyboard shortcut, sometimes is not in focus, even when using only arrow keys and enter key to navigate and launch results. This sometimes is a bit irritating.

we need to know a bit more of a repro steps here.  Could be a scenario we're not catching but without knowing what is happening, we can't debug the the problem.
for this, it would be what was in focus when the issue happened / what was happening right before.  Example, i hit start menu then PT Run

Ok, so I was on the desktop, then triggered PT Run. Unfortunately, it was not in focus. No other apps were also in focus. Then I had to click on the search box and then use it.
Maybe task manager on my desktop stole the focus after triggering PT Run. ( I didnt pay much attention 😅 )
Also, even after exiting and retriggering PT Run, it still was not in focus.

This happens for me often.  Here are steps that reproduces this everytime for me:
Press Windows key and release, start menu opens
Press Win + Space (my hotkey for powertoys run), run box will not be in focus, start menu will be.

I think it should be like that PT Run box should steal all the focus from all the apps (if it is possible). That could fix many issues.

can confirm that the procedure indicated by joshuapeterson is perfect to reproduce this issue that I also have

Same focus problem, but not limited to the Start Menu
If I type the PowerToys Run shortcut key, the PT Run search box appears, but it does not have focus.  Pressing the shortcut key again hides the search box.  The same behavior occurs for different short-cut key combinations.  In order to get focus and complete a search, I must click on the box with the mouse cursor.
This occurs most of the time regardless of what other program currently has focus (Chrome, IDE, Windows explorer, etc.).  Only sometimes will the window get focus immediately, but I don't perceive any pattern for this.

PT Run cannot steal the focus from a window that is running elevated.

Not sure if this helps or the right place to post this, but the PowerToys Run pop-up box also won't hide after clicking anywhere beside the box. It needs to be put into focus in order to 'close' it by clicking elsewhere. Producing in-active pop-up by having start menu open. Running PoewrToys in admin mode.

Not sure if this helps or the right place to post this, but the PowerToys Run pop-up box also won't hide after clicking anywhere beside the box. It needs to be put into focus in order to 'close' it by clicking elsewhere. Producing in-active pop-up by having start menu open. Running PoewrToys in admin mode.

Closing in favor of https://github.com/microsoft/PowerToys/issues/8876

Closing in favor of https://github.com/microsoft/PowerToys/issues/8876


process.stdout.write no output

I have no output in the stdout view, when doing
const spinner = [ '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏' ];
process.stdout.write(" "+spinner[ (index+1)% spinner.length ]+"\r" );

When trying a similar example it's printing each character on a separate line. This is because the dashboard is treating each stream event as a new log entry. Are the characters not visible to you? Does it work without the dashboard?

@jasonwilson running node from shell, it will print out the char and feed back to line start).

Unable to reproduce. WIth the first example
const spinner = [ '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏' ];
process.stdout.write(" "+spinner[ (index+1)% spinner.length ]+"\r" );

I see nothing in stdout because it throws an error (index is not defined)
Second example
const spinner = [ '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏' ];
for(var count=0;count<100000;count++) process.stdout.write(" "+spinner[  (count+1)% spinner.length ]+"\033[0G" );

I see something like this

my terminal doesn't recognize \033[0G but there's definitely text going to stdout

Closing this issue as it seems to be caused by code error. If this is not the case please comment.


audio-element.ts not bundled

Hi.
Thanks for this addon but I can't get it working:
2024-09-10T21:33:30.632+02:00 ERROR 37388 --- [nio-8099-exec-4] c.v.flow.component.internal.UIInternals  : The component class de.sist.ha.web.views.say.SpeakFromWeb includes './audio-element.ts' but this file was not included when creating the production bundle. The component will not work properly. Check that you have a reference to the component and that you are not using it only through reflection. If needed add a @Uses(SpeakFromWeb.class) where it is used.

This is my code:
@PageTitle("speak")
@Route(value = "speak", layout = MainLayout.class)
@Uses(Audio.class)
@Uses(SpeakFromWeb.class)
@JsModule("./audio-element.ts")
@Log4j2
public class SpeakFromWeb extends VerticalLayout {

    public SpeakFromWeb() {
        Audio audio = new Audio();
        add(audio);
        audio.addStartListener(event -> log.info("Started recording"));
        audio.addStopListener(event -> {
            log.info("Stopped recording");
            System.out.println(audio.getRecordedAudio());
        });
    }
}

(I added any annotations I thought may help).

Hello there,
I am facing the same problem. When I'm trying to run my Vaadin application with the audiorecorder as a dependency, I'm getting an exception during startup:
Caused by: java.lang.IllegalStateException: Running project in development mode with no access to folder 'C:\Users\Sudebi\Vaadin\Workspace\AddonsComponents\AudioAddon\audio'.
Build project in production mode instead, see https://vaadin.com/docs/latest/flow/production/overview
I have rebuilt the project with the production profile but it didn't change anything.
I included:
        <dependency>
            <groupId>org.vaadin.addons.sudebi</groupId>
            <artifactId>audiorecorder</artifactId>
            <version>1.0.0</version>
        </dependency>

There's a bundled flow-build-info.json inside the audiorecorder-1.0.0.jar which contains these paths:

Hi,
I have re build the addon again and released a new version
Can you check the newly released 1.2.0 and let me know please. It does not have the flow-build-info.json


META: multiple content changes from Terry at Land Bank sent 2018-03-07]

received several updates from the land bank on changes in language for the FAQ Page, etc. they are all detailed in
FAQ revisions.March2018.pdf
we can split these up into various issues and there may already be issues for some of these; i haven't looked at this thoroughly.

the corrections listed on pages 1-8 of the FAQ revision PDF have been made thanks to @mtanzillo.
Improvements to the FAQ page are still needed.


Document or WIKI typo and other problems

Description
Hi i have been trying to learn so i could work with this plugin its really hard so i started reading docs and wiki after hello world codes provided in tutorials are not in a good shape there is some varriables that their name is incorrect so if someone try to copy paste them (codes u provide in examples from wiki) it will not work in getting land mark section task.Result is not available even if we add  using System.Threading.Tasks
in  Face Mesh Solution tutorial
u missed a return after yield
Qeustion
question how exactly i should use positions from Graph Runner i can get them with my script but they are normalized and are between 0 and 1 i dont know how to convert them to world cords or rects i basically just want to instantiate a 3D object on 1 of the landmarks i tried to achive it by using
var screenRect = Canvas.GetComponent().rect;
var position = screenRect.GetPoint(myLocs[0].Landmark[0]);
but my object flys around the scene (moves so much)
My Unity Version
2023.2.8f1
Media Pipe Plugin Version
v0.14.1

u missed a return after yield

Thanks, I fixed it.

i dont know how to convert them to world cords or rects

There isn't a single prescribed way to do it; the method varies depending on the application.
You'll need to calculate it yourself based on what you want to do.

There isn't a single prescribed way to do it; the method varies depending on the application.

u are right about it but i still think there should be one simple example  i cant understand examples in plugins too it took me a a lot of time  until i found a way to get land marks :) now im trying to find a way to use it :)

The purpose of this plugin is to run MediaPipe in Unity and retrieve values.
While I believe documenting how to retrieve the position of landmarks in the image is important, how to use it is a separate matter from MediaPipe, and I don't think it necessarily needs to be documented, although it could be convenient for some users if it exists.
In fact, most of the similar questions I've received so far have been about how to use Unity, and there are more appropriate places to ask about them.

i fixed it in way that dont make any sense at all  but still it works fine for me now
BTW thanks for ur help and being friendly


pypi path dependencies with illegal arguments in pixi.toml don't raise an error

[pypi-dependencies]
my-package = {path = ".", this-key-doesnt-exist=false}

Pixi silently ignores this-key-doesn't-exist.

Thanks, we'll look into it!


New Scraper: Fresno Irrigation District

Create a new scraper for Fresno Irrigation District
Jurisdiction:
Website: https://www.fresnoirrigation.com/agendas

using google drive to store their agendas instead of displaying the agendas directly on their website. can’t scrape google drive (they block very fast, and it could affect your home use of google).


add label.txt

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.hey seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


WebView is not scrolling by mouse

I am not able to scroll the webview with a mouse. Is there any workaround for it?

Same here...

I have the same issue. I wonder if this is caused by a recent update of the WebView2 runtime: 1.0.1823.32 or not.
https://learn.microsoft.com/en-us/microsoft-edge/webview2/release-notes?tabs=dotnetcsharp

there is a workaround ,it's work for me.
in flutter side,catch the mouse position when mouse move ,send mouse positioin to webview when mosuse scroll.
In webview, find the element by position which send from flutter, and then judge the element can scroll or not, if it can scroll ,handle the scorll event, if not, post the event to it's parent element ,do the same thing. if there is no element can hanlde the scroll event ,drop it.
here is the code:
//init js method when webview page init
_initScrollJs(){ _wController.executeScript( """ function eleCanScroll(ele) { if (ele.scrollTop > 0) { return ele; } else { ele.scrollTop++; const top = ele.scrollTop; top && (ele.scrollTop = 0); if(top > 0){ return ele; }else{ //if ele can't scroll ,find it's parent. return eleCanScroll( ele.parentElement); } } } """); }
//when mouse scroll ,accept the mouse position
_setWebViewScroll(double x,double y,double dx,double dy){ print('_setWebViewScroll------$x----$y-------$dx---------$dy'); _wController.executeScript(""" var el = document.elementFromPoint($x,$y); //get the scroll element var el2 = eleCanScroll(el); //handle scroll el2.scrollBy($dx,$dy); """); }
//on flutter, listen the mouse move and scroll event
Listener( onPointerSignal: (signal){ if (signal is PointerScrollEvent) { _setWebViewScroll(pageKey:  GlobalValues.currentShowPrgPageKey,x:GlobalValues.pointX,y:  GlobalValues.pointY,dx: signal.scrollDelta.dx,dy: signal.scrollDelta.dy); } }, onPointerHover: (ev) { GlobalValues.pointX = ev.localPosition.dx; GlobalValues.pointY = ev.localPosition.dy; }, child ：'your webview page'  )

@NickYoung-max It looks like a good idea, but it doesn't work in some cases. if the scroll element's parent node is HTMLIFrameElement(iframe)，scrollling failed, in the case, document.elementFromPoint($x,$y) always return HTMLIFrameElement.


I need help regarding validation

Hello.
I've been trying and trying for hours on getting a working json schema for the following data:
{
  "action": "player:action",
  "params": ["snowball", { "x": 1, "y": 2 }]
}

{
  "action": "player:action",
  "params": ["frame", { "frame": "this_is_a_frame" }]
}

The above data is correct, anything else should be neglected. Sadly, I can't get this to work. How can I do this?

I recommend http://json-schema.org/ Slack (link) for general questions about JSON Schema itself.
This issue tracker is for issues specific to schemasafe only.
Also, I can't answer this specific question, as it's unclear what is meant by "anything else". E.g. would changing "x": 1 to "x": 2 pass?
If you truly need exact match with one of those two objects, e.g. { "enum": [ obj1, obj2 ] } would do, but it's probably not what you meant.
I'm going to close this as a non-issue question, and I recommend asking in the above-mentioned Slack.


Implement Hash for SocketHandle

@m-labs-homu r+

:pushpin: Commit a138c0d has been approved by whitequark

:hourglass: Testing commit a138c0d8d785d8c60f7e8d0a778683402957415b with merge 2f80e1ac6a926575455810678bf5cef5a56e43ca...

:sunny: Test successful - status-travis
Approved by: whitequark
Pushing 2f80e1ac6a926575455810678bf5cef5a56e43ca to master...


Dirty not being set on first click (component using an object)

I suspect I'm misunderstanding something basic, but, I have a component I am passing a prop into. Inside that component (in the data method) I take a copy of that object, so that I can mutate it and test it. This object might have lots of properties, so, I created a computed property so I can watch it and then update my vuex store if the form is valid (and perform API requests etc.)
The issue I'm having which you can see in this jsfiddle is that I am attempting to touch a checkbox on the @change event.
Vue.component('test', {
  props: ['obj'],
  data: function () {
    return { form: {
      foo: false
    }};
  },
  computed: {
    formValues () {
      return _.values(this.form);
    }
  },
  watch: {
    formValues: function (value, _oldValue) {
      console.log({
        dirty: this.$v.$dirty
      });
      this.$v.$reset();
      console.log({
        dirty: this.$v.$dirty
      });
    }
  },
 validations: {
  	var: {
      minLength: minLength(5)
    }
  },
  template: `
<input @change="$v.$touch()" v-model="form.foo" type="checkbox">
{{ form.foo }}
`
})

The issue I'm seeing is that in the watch above, the first time it it called (after the checkbox is clicked)  $dirty is false. _for every subsequent checkbox click, $dirty is true (then gets reset).
I'm sure I'm doing something evil here, but, any pointers would be most appreciated. Basically I want to re-use this form and when the prop changes, I want to take a fresh clone of the object passed in, and reset the form. Then, I want to watch for any changes to any of the fields on the form and then automatically update the API. If I had a submit button (not what the client wants) this would all be a lot easier.
Thank you very much for any help you can give, and for such an excellent plugin.

As a quick addendum, if I change to this later version then I do get the dirty flag set correctly from the start.
Again, it's probably just me, but I do find it confusing!
changes to make it work
  methods: {
    updateValue (property) {
      this.$v.$touch();
      let updatedCopy = Object.assign({}, this.form, property);
      this.form = updatedCopy;
    }
  },

//and

 template: `
 <input
                     v-bind:value="form.foo"
                     type="checkbox"
                     v-on:change="updateValue({foo: $event.target.value})">`

Well, it all boils down to how you use your browser events. The v-model on input field is equivalent to setting the value on @input event. Your "watch" triggers on value change, which is simply a next microtask ahead of that in the event loop (nextTick from vue). That still is before the @change happens. There is nothing wrong with vuelidate. Treat the $touch as setting dirty to true, as that's what it literally is doing.
https://github.com/monterail/vuelidate/blob/c60e948076d4852b9a07f53a58fbd1adf2f36a20/src/index.js#L88-L103
Your second example kinda works because you change your "sampling time" of those values.
I would advise against that practice altogether, and instead focus on what you want to accomplish in general. What's your usecase? There is certainly a better and safer way to do it.

Many thanks for taking the time to respond, especially when this is just me using vue badly! As you asked about my use case, I'll answer, but please feel free to close this and I can just ask in the forum - I don't want to waste your time!
My usecase is autosaving a form. Basically I have a list of items. When an item is clicked on I display a form for the corresponding item (the prop which is passed in I watch and then re-initialize a data: form object). It is desired to have this form "auto save" (i.e. no explicit save button). My watch actually looks like this (problem is the prop passed in)
  watch: {
    problem (problemObject, _oldValue) {
      this.form = Object.assign({}, _.pick(problemObject, "override_objective", "override_fullwidth",
        "start_on_new_page", "hide_choices", "workspace_value"));
      this.$v.$reset();
    },

    formValues (value, _oldValue) {
      if (!this.$v.$error && this.$v.$dirty) {
        this.$v.$reset();
        this.$store.dispatch("UPDATE_PART_PROBLEM_FORMAT", {
          partId: this.problem.id,
          properties: this.form
        });
      }
    }
  }

So, basically when the formValues object changes, then, I want to check if the form is valid & dirty, and if so then dispatch an action. The issue I was having is that because dirty isn't set (because of the timing issue above) then the store doesn't get updated.
Many thanks for taking the time to reply!

You should probably be doing a debounce on that form anyway. My approach on that would be to:

somehow modify your data as a response to the form (probably each field could have associated lens/two methods, which would tell it how to read and write data to/from associated store)
issue debounced save action alongside every triggered store dispatch action
in the save handler, first check for this.$v.$invalid and only then send the bulk update request.

Other way would also be to straight copy the data from store, then modify the data using v-model, and issue the debounced save in the deep watch. Depends on your architecture.


Minimal hardware dependency of finetune.

I want to finetune this model based my own dataset, I am wondering what is the minimal GPU hardwares for finetune? Thanks!

For whatever it's worth, here was my experience: with a data set median image size of 1024x1024, I needed a GPU with 48GB to use a batch size of 3; a GPU with 24GB could handle a batch size of 1.


Swift support

With Swift's advocation of using value types, TLIndexPathTools might benefit from a more clear distinction between classes vs. structs when deriving whether something was added, removed, deleted or modified.
Struct modification is detected as ADD + DELETE but perhaps a protocol could be introduced to identify cases when they are modified...?

Given that the data model takes an array of objects, could you elaborate on how you're incorporating structs?


Possiblitie to further tune a tuned model

Description of the feature request:
Currently its just "allowed" to tune a model once. That restricts the handling enormously. It were be way better with the possibilitie to tune the model multiple times (when new data are available).
What problem are you trying to solve with this feature?
To extend the usecase of Gemini
Any other information you'd like to share?
Is something like that planed?

@wired87, Thank you reporting this issue. This repository is for issues related to website(https://ai.google.dev/) like documentation bugs or improvements. For issues related to Gemini, we would suggest you to use "Send Feedback" option in Gemini docs. Ref: Screenshot below.


Some rustups

:hourglass: Testing commit 88e114b11bd7873ff06fd415a76f81f027239239 with merge c4626b546daf098cf7c667aca319cc251ffbb9cc...

:sunny: Test successful - checks-actions
Approved by: JohnTitor
Pushing c4626b546daf098cf7c667aca319cc251ffbb9cc to master...


[Question] Dark mode / theme

I read the docs and a number of other issues, but can't find relevant info.
What must I do to enable dark mode?
I did this:

added file path/to/config.json which contains: { "theme": "dark" }
added to my settings: "mermaid-editor.preview.defaultMermaidConfig": "path/to/config.json"

That shows a class diagram with black classes, but on white background. Not really a "dark mode" theme.
What is the correct way to do this?

Hello,
You should set the background color by yourself because the config which is defined by mermaid.js only affects the elements in the graph. This extension provides an original way to support this setting with an attribute. Please refer to this document and set your favorite color. Thank you!

Thanks!


fix(gux-table): fix checkbox row disabled bug affecting Vue

backport of https://github.com/MyPureCloud/genesys-spark/pull/526

Any idea why most of the playgrounds are in /playground and just vue-3 is in /playgrounds in v3?