Add pip cache purge to Dockerfile

Low hanging fruit to reduce container size, e.g. at my build from 9.15GB to 6.34GB.
If interested, further improvements would be easily possible, e.g.:

Non Root container (i guess there is no need to run as root from your side, right?)
Dockerfile for CPU only systems
In case #23 would be implemented, add default volume to folder for config
Add default volume to folder for ~/.cache/torch/ to not need to reload it each time new container spawns

Running on unraid with an already modified docker.img file of 30gb and with all my other containers im hitting that limit with this one. Would be great to have a volume to mount deps to or something to keep the actual container size smaller.

An Github Actions docker container build could also be added with only minor effort.

@AlmightyFrog I briefly tried a non root container and it failed - I forget which step. I think it was something about setting up the ML models that wanted to write to a root owned folder.


Can not find the function run_forward_pass

In this line, I cannot find the defination of the function 'run_forward_pass': https://github.com/liecn/PyramidFL/blob/527b73e0406a5af0b4b8f050990fc21c6720c505/training/learner.py#L550
Could you please tell me where is the defination?

Hello, do you solve this problem? I meet the same problem.

Hi,
For all cases used in PyramidFL, forward_pass is always False and run_forward_pass is not used.
I also searched the Oort repo and no definition for this function. I suppose it is a legacy function and can be ignored.


fix uganda national id number

Edited the expression for Uganda National ID Number. It's 14 characters, only Upper case letters and digits

Please commit only the changes which are highlighted in the PR functionality message.

Please commit only the changes which are highlighted in the PR functionality message.

Done

Done

Please review before you commit. You committed over 30+ changes to the codebase again.

Those other changes are due to the file being opened in an environment with different line length settings, which led to reformatting of the file. The only effective change is the one mentioned. If possible, please take this up as an issue and fix it from your end. ^^

Those other changes were due to different line length settings. Now removed. ^^


[opt](inverted index) opt value extraction from column to string

Proposed changes
Issue Number: close #xxx

@zzzxl1993 pls describe the optimization result

run buildall

run p0

run external

run external

run p0


Mercury and Toxin have the exact same effects (Toxin needs buff)

The only difference is that Toxin costs 8tc and will get you arrested/permad if caught. Toxin needs a buff.

how do you buy toxin?

how do you buy toxin?

emag chem dispenser

The best solution to this issue is just to remove toxin. Let's be honest, no matter how powerful, generic, or balanced you make it, naming a toxin "toxin" is inane. At least rename it to something cool and familiar like Arsenic or Cyanide.


Move create button to bottom of form

Issue:
in providers create form, the buttons are on the top side of the form

cc:// @liranr23 @bennyz @ahadas

+1
having to button on the end of the creation makes more sense as a user finish to fill the form and just click on the button instead scrolling up / looking for the creation button.


[enhancement request] Add a brightness option

It would be nice to have color schemes with more (or less) brightness.

hey, is this considered totally undesirable in pywal itself? if not, I have a PR for a --brightness option ready to go, using the existing lighten/darken functions and similar syntax+caching to --saturate.


[question] Why are RL CNNs so shallow?

It seems that RL CNNs are much more shallow than the ones used on imagenet?  Am I right about this?  And why would that be the case?

Hello,

are much more shallow than the ones used on imagenet? Am I right about this? And why would that be the case?

That's a good question, and you are right in most cases.
I think a simple answer would be that they are complex enough to solve the tasks.
To my knowledge, the most complex (and successful) CNN Policy architecture is the one from IMPALA, where some residual connections are used.
The way RL works makes it also tricky to use with batch-norm, which usually allow the use of deeper net.
Then, a lot of RL problems do not use images as input (e.g. Mujoco/Pybullet envs, where the input is the joints angles), in that case there is no need to have more complex architecture.
Finally, you can always try to use deeper net, but by experience, this does not often result in better perfomances.

Hello,
as i see it:
In image recognition the algorithm needs to recognize the image label. This is done by projecting the image to some latent space where the pictures are separable. In RL the image just represent the state
which is why only few features of the pictures is needed. your confusion comes from your view on how humans make choices which is not the same as RL.(look on this video)


Add PayLiabilityFromInvestment Rule

I am going to model the problem as a set of accounts, so I just have to create a single "Transfer" rule.


Deserialization Issue with args containing comma

Unfortunately, application is prone to error when keyword contains args with comma:
["csv_dir", "queue=DEV.${ENV.replace("-", "_")}"]
with following error (I will update stacktrace):
Expecting ',' delimiter: line 1 column 39 (char 38) (type=value_error.jsondecode)
Keyword to trigger such behaviour:
Keyword To Trigger 500 In RfHub And Kill App
    [Documentation]    Keyword To Trigger 500 In RfHub And Kill App
    [Arguments]    ${ok_argument}    ${not_ok_argument}=Kill.${app.replace('-', '_')}

In LibDoc class generated item looks a bit different:
'queue=DEV.${ENV.replace(\'-\', \'_\')}'
Fix should be applied in _serilise_keywords method.
Before #35 and #37 it was easy to ommit this issue, because application only failed when trying to load specific collection/keyword. After #35 this kill main page.

Fixed in #39


Massive CSS update: add responsiveness.

Makes site works decently across most resolutions by using different layouts at different resolutions. Still needs some work, of course, but it works pretty well.

Something something I think it merged correctly


fix: Invalid multipart payload generated for unusual schemas for the multipart/form-data media type

Codecov Report

Merging #1185 (1ca176e) into master (04b24b4) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1185   +/-   ##
=======================================
  Coverage   99.32%   99.32%
=======================================
  Files          70       70
  Lines        5340     5341    +1
  Branches      868      868
=======================================
+ Hits         5304     5305    +1
  Misses         18       18
  Partials       18       18

Flag
Coverage Δ

unittests
99.28% <100.00%> (+<0.01%)
:arrow_up:

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

Impacted Files
Coverage Δ

src/schemathesis/serializers.py
98.29% <100.00%> (+0.01%)
:arrow_up:

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 04b24b4...1ca176e. Read the comment docs.


Possibly Corrupted Configuation On Bad Read

Cfg may be in an indeterminate state after the yaml parser encounters an error. That can also leak memory.
The messages are also unclear around config loading and errors.

Cfg reading is now done atomically.


Fix typo

Coverage increased (+0.02%) to 79.29% when pulling f5903a05d131103cd661dbc297823e5523f7e122 on bugfix/typo into 36d3a308949b565184b0c4147042de0dae03dedb on master.


An error occurred while installing json (2.6.1), and Bundler cannot continue.

on bundle install it gives
An error occurred while installing json (2.6.1), and Bundler cannot continue.
tried with latest ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
In Gemfile:
cocoapods was resolved to 1.11.2, which depends on
cocoapods-core was resolved to 1.11.2, which depends on
algoliasearch was resolved to 1.27.5, which depends on
json

resolved by https://github.com/CocoaPods/CocoaPods/issues/10286
curl -sSL https://get.rvm.io | bash -s stable
close and reopen terminal
rvm install ruby@latest
rvm use ruby-3.0.0 --default

I've solved it by installing Command Line Tools Xcode of the version I have. I hope this help someone else.


Some of the encoding tecniques prevent variable manipulation

Hi Daniel,
Thanks for this awesome project!
In order to preserve scripts tab-parameters from CLI, I do encode all of the script BUT the param() part
Later In the (encoded) script, I do a
remove-variable -Name SomeVar
Sometimes, (75%,but NOT Always) after encoding (I'm using ASCII), I get a
Cannot overwrite variable SomeVarbecause the variable has been optimized.
I have yet to track down what line of code causes this tho

Can you provide a small example function that exhibits this behavior so I can try to reproduce on my end?

Cannot reproduce anymore on 1.8
Thanks! :) 👍


Rounding of DynamicMap range causes bug

Currently due to precision differences in Python vs. Javascript we round values to 10 decimal places. This ensures that the values will match between Python and Javascript, however rounding can result in rounding down or up, which can cause problems. When the upper limit of a dimension is rounded up for example, the rounded value will be outside the limit defined by the dimension range. When moving the slider to the maximum position it will therefore request a frame from Python which falls outside of its defined range and will raise an exception. We should ensure that the rounded values sent to JS are within the original range defined on the dimension.

Meant to file this in HoloViews. Closed.


[hi] Add content\hi\docs\tasks\tools\included\kubectl-convert-overview.md

Localizes
content\hi\docs\tasks\tools\included\kubectl-convert-overview.md
continuation :https://github.com/kubernetes/website/pull/29449

/lgtm
/approve
Thank you @ShivamTyagi12345


Doc: Continuous integration information

In the effort to improve contributing documentation (#12633), this adds information about CI.
Also fix a missing command in a quickstart guide.
Feel free to add more information and complete this 😃

I can also see that skipping multiple CI works properly 😅 I will just add to put this on a new line to make it clean (as this last commit).

I'm not sure that we want to write a table of what we check in CI, this changes regularly.
Perhaps the biggest aspect that might help is to ask users to run the relevant test suite locally before making a commit on a PR.

I'm not sure that we want to write a table of what we check in CI, this changes regularly.
Perhaps the biggest aspect that might help is to ask users to run the relevant test suite locally before making a commit on a PR.

That's why I tried to not list all of them and wrote matrix for some.
For local testing, I can put a line and refer to the existing doc and the checklist

Shall I add anything else?

Shall I write that the global skip is not working with azure so if you want to skip all you need to also add the instruction for azure?

That doesn't work either, Azure just refuses to be skipped.
I think it looks good as is.

Merged, thanks @tupui, all.


Red screen, no logs, when route callback returns a State

(this is definitely a user bug, but maybe we can provide the user with some feedback?)
The following code generates a red screen, and it's probably because I'm returning a State object from my route callback (and not returning a Component/Widget).
import 'package:flutter/material.dart';

void main() {
  runApp(new MaterialApp(
      title: "Flutter Demo",
      routes: {'/': (RouteArguments args) => new FlutterDemo()}));
}

class FlutterDemoComponent extends StatefulComponent {
  @override
  State createState() => new FlutterDemo();
}

class FlutterDemo extends State {
  String message = "Hello, world!";

  Widget build(BuildContext context) {
    return new Scaffold(
        toolBar: new ToolBar(center: new Text("Flutter Demo")),
        body: new Material(child: new Center(child: new Text(message))),
        floatingActionButton: new FloatingActionButton(
            child: new Icon(icon: 'content/add'), onPressed: () {
          setState(() {
            message = "tapped!";
          });
        }));
  }
}

This is what I saw in the logs:

And I didn't see any analyzer warnings/hints that something was wrong.
If we draw a complete red screen, should we spit something out to the logs?
Also, in this particular case, I'm curious why I didn't get a type warning. Maybe an analyzer bug?

Possible analyzer bug: https://github.com/dart-lang/sdk/issues/25363

You didn't get an analyzer warning because your map literal is defined as
Map<dynamic, dynamic>, and "(RouteArguments) => State" matches "dynamic".
This is why you should always put types on literals. :-)
You should have seen an exception on the logs, though. If you didn't,
please file a bug.
On Wed, Jan 6, 2016 at 1:11 PM Seth Ladd<EMAIL_ADDRESS>wrote:

Possible analyzer bug: dart-lang/sdk#25363
https://github.com/dart-lang/sdk/issues/25363
—
Reply to this email directly or view it on GitHub
https://github.com/flutter/flutter/issues/1088#issuecomment-169462187.

You didn't get an analyzer warning because your map literal is defined as

That's true, but I'm hoping the analyzer can infer this for me.

You should have seen an exception on the logs, though. If you didn't,
please file a bug.

This is that bug :)

Oh, duh. I thought this was a flutter-dev e-mail. Me so confoose.

I get a ton of stuff in the logs:
01-07 21:59:42.875  3654  3673 I flutter : -- EXCEPTION CAUGHT BY WIDGETS LIBRARY ---------------------------------
01-07 21:59:42.876  3654  3673 I flutter : Exception caught while building _ModalScope-[GlobalKey 645646520]
01-07 21:59:42.877  3654  3673 I flutter : type 'FlutterDemo' is not a subtype of type 'Widget' of 'result'.
01-07 21:59:42.877  3654  3673 I flutter : Stack trace:
01-07 21:59:42.890  3654  3673 I flutter : #0      MaterialPageRoute.buildPage (packages/flutter/src/material/page.dart:60)
01-07 21:59:42.890  3654  3673 I flutter : #1      _ModalScopeState.build (packages/flutter/src/widgets/routes.dart:336)
01-07 21:59:42.890  3654  3673 I flutter : #2      ComponentElement.performRebuild (packages/flutter/src/widgets/framework.dart:1160)
01-07 21:59:42.890  3654  3673 I flutter : #3      BuildableElement.rebuild (packages/flutter/src/widgets/framework.dart:1101)
...

You don't get that?

Looks like the logs are showing some good info. The analyzer can't help us here unless we're strong mode enabled, or we use a parameterized type on the map.


Support for Out-of-Tree Platforms

Description
When using react-native-device-info package with an Out-of-Tree platform, a native module is required named RNDeviceInfo as it is with iOS, Android, and Windows. Even if this module is present (which is required or it will throw an exception when creating the DeviceEmitter), it is never called as there is little desire (understandably) to add these out-of-tree platforms to the supported-platforms lists on each method definition.
If an Out-of-tree platform is using this package, it should be given the chance to support the various methods and call it's own defined RNDeviceInfo native module for the response.
Use Case
A new out-of-tree platform (Foo) is added and wishes to return the deviceId. At present it will return unknown, but if it defines its own native module it can return the deviceId for the platform Foo.

If you post some code to do what you want, we can probably merge it. I don't spend a lot of time thinking of things in the abstract though, sorry. In general: sure, PRs happily accepted :-)

If you post some code to do what you want, we can probably merge it. I don't spend a lot of time thinking of things in the abstract though, sorry. In general: sure, PRs happily accepted :-)


[CLEANUP] Update copyright date

:white_check_mark: Build finished in 15m 6s
Build command:
mvn clean verify -B -e -Daudit -amd -pl core

:ok_hand: All tests passed!
Tests run: 4741, Failures: 0, Skipped: 7    Test Results

:information_source:  This is an automatic message


Drop ibverbs

This drops ibverbs from the ucx package. We are doing this as using the ibverbs package from CentOS 6 does not appear to be sufficient when reusing ucx packages built against it with OFED.

I've left RDMA in for now. Though am not sure if we want to remove that too.

cc @pentschev @quasiben @madsbk @kkraus14

@jakirkham we want to remove RDMACM as well, that's not useful without IB and probably makes things more confusing to have one and not the other.

cc @kkraus14 for awareness

@jakirkham how does this impact CUDA 11? We still have that outstanding PR #37 that we need to merge for the release. What can we do to build on this decision to reduce the work left in #37?

@mike-wendt I think with this PR we should be good to go with the early changes in #37 for CUDA 11 support.  I think the only sticking points there were the IB verb issues

I think the main impact is fewer CDTs, which should simplify things.
Agree would be happy to look at that next.

Will open a new PR for CUDA 11 with the changes here and the relevant changes in #37

Thanks all! 😄
Also happy to help combine the two changesets if you need a hand Mike 🙂


fix: bump gotrue image version to match hosted

What kind of change does this PR introduce?
Bug fix #726
What is the current behavior?
vault was released prematurely
What is the new behavior?

use latest postgres image without vault
update gotrue to match hosted platform

Additional context
Add any other context or screenshots.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 62.358%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
3464

Relevant Lines:
5555

💛  - Coveralls

@sweatybridge Hey Han,
I had already grown to love the vault in local development environment.
Any idea if it's a priority to re-enable it?
Thanks for all the great work ❤

Thank you for your interest and support! We are actively working on the last few fixes for vault before releasing it to all hosted projects. I don't have a concrete release date but end of January is looking promising.
Once we release vault to platform, I will update cli to include vault as well. Appreciate your patience.


Build Failed... issue with RCTBridgeModule

This package worked perfectly on my last project (react-native 0.44.0 and react-native-document-scanner ^1.2.1), but I'm getting a build error on my new project (react-native 0.49.1 and react-native-document-scanner 1.3.0). I've tried downgrading the document-scanner to 1.2.1, but it throws the same error...

I then tried uninstalling the package and unlinking, but my project still wont build. I get an Apple Mach-O Linker Error, which says
"ld: library not found for -lRNPdfScanner
clang: error: linker command failed with exit code 1 (use -v to see invocation)"
Can't seem to resolve either error.
Edit...
List of solutions I've tried so far:

Reinstalling/relinking package
Downgrading package
Clearing derived data
Cleaning project then rebuilding

Wondering if I may have to downgrade react native itself

Update... I've finally fixed the error by changing the code in ios/RNPdfScannerManager.h
from this:
`#if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif
#if __has_include(<React/RCTViewManager.h>)
#import <React/RCTViewManager.h>
#elif __has_include("RCTViewManager.h")
#import "RCTViewManager.h"
#else
#import "React/RCTViewManager.h"
#endif`
to:
`#import <React/RCTBridgeModule.h>
#import <React/RCTViewManager.h>`

Hey ! I've seen someone using this fix to make it work on React Native 0.48+, I think I'll post an update as it seems to be the go to solution now.


"Event loop is too fast"

Using the asynciolimiter.Limiter I'm hitting this assertion, unsure what's to be done about it;
site-packages\asynciolimiter\__init__.py", line 356, in _wakeup
    assert -leftover_time < self._time_between_calls, (
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Event loop is too fast. Woke up 1.9999999979821346 ticks early.

On Python 3.12, rate limit of ~166.666 with 156 tasks

Oh that's intriguing. It somehow means that the event loop time.sleep is shorter than the actual time slept.
I think to think of the implications. Maybe it's due to clock or float precision.

Uhhhh... Technically it's a bug in Python or the operating system I believe...
That assertion is not too harmful but does indicate a highly inaccurate system clock or a different event loop issue that will increase CPU utilization.  It won't run on py -o which you would usually use in production.
I might remove it and change to a warnings.warning (ResourceWarning).
Would you mind removing that assertion locally and switching to logging.warning?
Tell me how often does that warning actually pops up, and the operating system.

Are you using Windows x64 by any chance? Seems like there's an issue at python/cpython#110695 with monotonic clock accuracy causing call_at to be scheduled earlier than two clock ticks.

Using the asynciolimiter.Limiter I'm hitting this assertion, unsure what's to be done about it;
site-packages\asynciolimiter\__init__.py", line 356, in _wakeup
    assert -leftover_time < self._time_between_calls, (
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Event loop is too fast. Woke up 1.9999999979821346 ticks early.

On Python 3.12, rate limit of ~166.666 with 156 tasks

same error:
Exception in callback <bound method Limiter._wakeup of asynciolimiter.Limiter(rate=6000.0)>
handle: <Handle Limiter._wakeup>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 61, in uvloop.loop.Handle._run
  File "/root/miniforge3/envs/ccxt/lib/python3.11/site-packages/asynciolimiter.py", line 354, in _wakeup
    assert -leftover_time < self._time_between_calls, (
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Event loop is too fast. Woke up 1.0000001639127731 ticks early.

Using the asynciolimiter.Limiter I'm hitting this assertion, unsure what's to be done about it;
site-packages\asynciolimiter\__init__.py", line 356, in _wakeup
    assert -leftover_time < self._time_between_calls, (
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Event loop is too fast. Woke up 1.9999999979821346 ticks early.

On Python 3.12, rate limit of ~166.666 with 156 tasks

same error:
Exception in callback <bound method Limiter._wakeup of asynciolimiter.Limiter(rate=6000.0)>
handle: <Handle Limiter._wakeup>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 61, in uvloop.loop.Handle._run
  File "/root/miniforge3/envs/ccxt/lib/python3.11/site-packages/asynciolimiter.py", line 354, in _wakeup
    assert -leftover_time < self._time_between_calls, (
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Event loop is too fast. Woke up 1.0000001639127731 ticks early.

I am using uvloop and ubuntu 22.4

@River-Shi may you try with the normal event loop to make sure it's not a uvloop issue? It would help me debug it well :)
Meanwhile I'll change it to a warning

@River-Shi may you try with the normal event loop to make sure it's not a uvloop issue? It would help me debug it well :) Meanwhile I'll change it to a warning

When I changed to normal event loop, it works fine.

@River-Shi alright, thank you. I've opened a bug report in cpython. Meanwhile I'll change to a resource warning.

@River-Shi alright, thank you. I've opened a bug report in cpython. Meanwhile I'll change to a resource warning.

So it is a cpython bug, not uvloop ?

@River-Shi alright, thank you. I've opened a bug report in cpython. Meanwhile I'll change to a resource warning.

So it is a cpython bug, not uvloop ?

It's a specification issue. If CPython will specify the constraint (that asyncio call later can't call earlier than the time specified), uvloop will have to uphold it, but as of now the constraint is not clear.

Added clarity on the cpython issue at https://github.com/python/cpython/issues/127859#issuecomment-2538609312

Added clarity on the cpython issue at python/cpython#127859 (comment)

Any new update? I ve switched to a similar project, aiolimiter , the problem seems fixed

@River-Shi I have changed it to a resource warning for now.
aiolimiter doesn't actually fix the problem. The problem is in the Python specification, and perhaps the uvloop implementation. aiolimiter is simply less accurate and ignores it.

@davidhyman @River-Shi I have changed it to a resource warning for now. You can download the new version 1.1.1 and it'll work fine :-)
aiolimiter doesn't actually fix the problem. The problem is in the Python specification, and perhaps the uvloop implementation. aiolimiter is simply less accurate and ignores it.

Tkx

I have changed it to a resource warning for now. You can download the new version 1.1.1 and it'll work fine :-)
aiolimiter doesn't actually fix the problem. The problem is in the Python specification, and perhaps the uvloop implementation. aiolimiter is simply less accurate and ignores it.

Thank you, I've got around to having another go and it seems to work for me now, though I can't rule out some different implementation as I never committed the original (doh). Sorry I didn't manage to help you with investigation. I've tried it with same rate limit, ~300 concurrent tasks 👍 🤷 🎄


Not supported with php 7.2

Q
A

Bug report?
[ Y ]

Feature request?
[ Y ]

Support request?
[ N ]

there is some of thing in this project that not supported by PHP 7.2 and give warning  some is listed below

count(): Parameter must be an array or an object that implements Countable

Warning: get_class() expects parameter 1 to be object, null given

for last error i found solution
wrap all the get_class($variable); with
if(is_object($variable)){     get_class($variable); }
but first one i didn't get any solution

Hello @Pratiklocho,
Cocorico isn't compatible with this PHP version yet.
You can downgrade temporary to avoid issue.

Hello @giorgio654
you have any idea when it's supported php 7.2

Hello @Pratiklocho
It should be in the second quarter 2019.

OK thanks @cocolabssas


Allows to provide type parameter to function

It would be nice to be able to something like that :
function cast<T>(t: any): T {
  return t;
}

var myString = cast<string>(myVar);

@fdecampredon: please feel free to reopen with some more use cases. thanks!


Restore HsPat.hs -> Pat.hs

See https://github.com/ndmitchell/hlint/pull/782 for an explanation of this rename.

I'm not overly fussed either way, but if this is the end state, let's jump to it.


Add exit functionality

what it says on the tin

I realised that the app already comes with exit functionality.


Support hiding interface groups via special tag

This supports hiding interface groups from the UI by setting <hide>yes</hide>
Redmine Issue: https://redmine.pfsense.org/issues/11790

I say we can probably close this?, as much more thought has gone into this since I originally wrote it. This is just one part of a larger package integration problem, though this might be an easy solution during the interim while something more permanent is worked on.


Anyone adapted this great tool for corprate jargon?

Trying to avoid reinventing the wheel :-)  If not, I'd be glad to take a stab at it.

Not to my knowledge. By all means go ahead and fork it :+1:
I've come across this before, for what it's worth: https://www.atrixnet.com/bs-generator.html


Replace

<template> is deprecated as of<EMAIL_ADDRESS>and needs to be changed to <ng-template>

The build fails due to requiring angular 4 - saw an open PR for it (https://github.com/valor-software/ng2-bootstrap/pull/1810). :)

Thanks, for PR but it is already available in @beta version :)
Better to add it to docs somewhere


Slippage Tolerance doesn't seem to work

I have tried to create a Pool obeject with Tick Data Provider via the below:
let pool = get_pool(1,
                        H160::from(*UNISWAP_V3_FACTORY).to_alloy(),
                        token0.to_alloy(),
                        token1.to_alloy(),
                        fee_type,
                        provider.clone(),
                        None).await?;

    Pool::new_with_tick_data_provider(
        pool.token0,
        pool.token1,
        pool.fee,
        pool.sqrt_ratio_x96,
        pool.liquidity,
        TickListDataProvider::new(
            vec![
                Tick::new(
                    nearest_usable_tick(MIN_TICK, fee_type.tick_spacing()),
                    pool.liquidity,
                    pool.liquidity as i128,
                ),
                Tick::new(
                    nearest_usable_tick(MAX_TICK, fee_type.tick_spacing()),
                    pool.liquidity,
                    -(pool.liquidity as i128),
                )
            ],
            fee_type.tick_spacing()
        ),

And I created a swap router function to create the callData
pub async fn swap_router(token0: H160, token1: H160, recipient: H160, amount: u64, pool: Pool<TickListDataProvider>) -> Result<()> {
    let from_token: Token;
    let to_token: Token;

    if pool.token0.address == token0.to_alloy() {
        from_token = pool.token0.clone();
        to_token = pool.token1.clone();
    }
    else {
        from_token = pool.token1.clone();
        to_token = pool.token0.clone();
    }

    let trade = Trade::from_route(
        Route::new(vec![pool.clone()], from_token.clone(), to_token.clone()),
        CurrencyAmount::from_raw_amount(from_token.clone(), amount).unwrap(),
        TradeType::ExactInput,
    ).unwrap();

    let swap_options = SwapOptions {
        slippage_tolerance: Percent::new(1, 100),
        recipient: recipient.to_alloy(),
        deadline: uint!(123_U256),
        input_token_permit: None,
        sqrt_price_limit_x96: None,
        fee: None,
    };

    let MethodParameters { calldata, value } =
        swap_call_parameters(&mut [trade], swap_options.clone()).unwrap();

    info!("{:?}", calldata);
    Ok(())
}

Calling the function as below:
let token0 = Address::from_str("0x626E8036dEB333b408Be468F951bdB42433cBF18")?; // AIOZ
            let token1 = Address::from_str("0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2")?;  Appreciated your help and love your work!

Or I suspect the TickDataProvider is not configured correctly from my end?

What do you mean by slippage not working?

I tried putting in a slippage %, but when I try to decode my call data, the minAmountOut is 0

Am I initialising my Pool correctly? Thank you.


[Question] Remove cache for a particular original

Hello,
I just wanted to know if there's a way to remove the cache for a particular original picture ?

Looking at the source there isn't a feature like this. The problem is, cache files don't have any reference to their original file they were created from. This is because the cache-filenames are simple hashes of the filename+parameters.
Maybe this could be changed to something like this:
// remove folders from filename
$preparedfilename = str_replace('/','-',$filename);
// generate cachefilename
$cachefilename = $preparedfilename . '_' . md5($parameters);

Now a method could do something like this:
public function deleteCache($filename)
{
    $search = $str_replace('/','-',$filename);

    $path = $this->flysystem->listContents('cache-path');
    foreach($path as $file)
    {
        if( some regex) ->delete file
    }
}

Because i'm using a class to generate my configuration arrays instead of using the Request directly, i did a loop over all options and checked if cache exists. If yes, i removed the cache file.
I guess another solution would be to maintain a json file maybe ?

maybe a task at hand could be solved by this pull request: https://github.com/thephpleague/glide/pull/28? I really have no idea why it hasn't been merged yet.

Please see issue #7 for more information on this. To keep things organized, we'll continue this discussion there, and I'm going close this issue.
@constb the reason that PR wasn't merged in was because:

It required extra Flysystem API calls, which can slow things down, especially using an Amazon S3 adapter, or some other non-local adapter.
It doesn't really help at all when the browser has cached the file anyway, since it will never actually hit Glide to check if the freshness has changed.


Upgrade doesn't work if wrong value in configmap (2.8.0-> 2.9.0)

Describe the bug
Whenever we create new configmap and add wrong value in it for float no then upgrade fails with the following error
How to Reproduce?

Install CSI 2.8.0

root@deebugk8s1:~# kn get cso
NAME                     VERSION   SUCCESS
ibm-spectrum-scale-csi   2.8.0     True
root@deebugk8s1:~# kn get pods
NAME                                                  READY   STATUS    RESTARTS   AGE
ibm-spectrum-scale-csi-42qd7                          3/3     Running   0          17s
ibm-spectrum-scale-csi-4rn8z                          3/3     Running   0          17s
ibm-spectrum-scale-csi-92545                          3/3     Running   0          17s
ibm-spectrum-scale-csi-9hr6j                          3/3     Running   0          17s
ibm-spectrum-scale-csi-9kt9j                          3/3     Running   0          17s
ibm-spectrum-scale-csi-attacher-6df84d85c9-djpnk      1/1     Running   0          17s
ibm-spectrum-scale-csi-attacher-6df84d85c9-tkj8n      1/1     Running   0          17s
ibm-spectrum-scale-csi-bj6rz                          3/3     Running   0          17s
ibm-spectrum-scale-csi-d6nkj                          3/3     Running   0          17s
ibm-spectrum-scale-csi-ftk9w                          3/3     Running   0          17s
ibm-spectrum-scale-csi-hntmv                          3/3     Running   0          17s
ibm-spectrum-scale-csi-hrk5q                          3/3     Running   0          17s
ibm-spectrum-scale-csi-k5tjv                          3/3     Running   0          17s
ibm-spectrum-scale-csi-kq6d6                          3/3     Running   0          17s
ibm-spectrum-scale-csi-n2rfj                          3/3     Running   0          17s
ibm-spectrum-scale-csi-operator-68958ccdfc-84b67      1/1     Running   0          40s
ibm-spectrum-scale-csi-provisioner-59847b9966-twfcj   1/1     Running   0          17s
ibm-spectrum-scale-csi-resizer-64d5d8c98b-zh4js       1/1     Running   0          17s
ibm-spectrum-scale-csi-rsw9k                          3/3     Running   0          17s
ibm-spectrum-scale-csi-snapshotter-68d854b9c9-rq5ft   1/1     Running   0          17s
ibm-spectrum-scale-csi-sw5t7                          3/3     Running   0          17s
ibm-spectrum-scale-csi-test-pod                       1/1     Running   0          39h
ibm-spectrum-scale-csi-v4cc5                          3/3     Running   0          17s
ibm-spectrum-scale-csi-wkjlw                          3/3     Running   0          17s
ibm-spectrum-scale-csi-x5789                          3/3     Running   0          17s
ibm-spectrum-scale-csi-xchvb                          3/3     Running   0          17s

Create a configmap as following(without %) :

root@deebugk8s1:~/bnp# kn apply -f cm.yaml
configmap/ibm-spectrum-scale-csi-config configured
root@deebugk8s1:~/bnp# cat cm.yaml
kind: ConfigMap
apiVersion: v1
metadata:
  name: ibm-spectrum-scale-csi-config
  namespace: ibm-spectrum-scale-csi-driver
data:
  DRIVER_UPGRADE_MaxUnavailable: "80"

Upgrade CSI to 2.9.0 :

root@deebugk8s1:~/2.9.0/latest# kn apply -f ibm-spectrum-scale-csi-operator.yaml
deployment.apps/ibm-spectrum-scale-csi-operator configured
clusterrole.rbac.authorization.k8s.io/ibm-spectrum-scale-csi-operator configured
clusterrolebinding.rbac.authorization.k8s.io/ibm-spectrum-scale-csi-operator unchanged
serviceaccount/ibm-spectrum-scale-csi-operator unchanged
customresourcedefinition.apiextensions.k8s.io/csiscaleoperators.csi.ibm.com configured

Check if driver pods are recreating or not

root@deebugk8s1:~/2.9.0/latest# kn get pods -w
NAME                                                  READY   STATUS    RESTARTS   AGE
ibm-spectrum-scale-csi-42qd7                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-4rn8z                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-92545                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-9hr6j                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-9kt9j                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-attacher-85965f76cd-dj5kd      1/1     Running   0          61s
ibm-spectrum-scale-csi-attacher-85965f76cd-kttj7      1/1     Running   0          61s
ibm-spectrum-scale-csi-bj6rz                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-d6nkj                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-ftk9w                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-hntmv                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-hrk5q                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-k5tjv                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-kq6d6                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-n2rfj                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-operator-566f8fdf7f-zrj8h      1/1     Running   0          90s
ibm-spectrum-scale-csi-provisioner-b5db8c7d9-q486k    1/1     Running   0          61s
ibm-spectrum-scale-csi-resizer-686d8fffdd-6pl5w       1/1     Running   0          61s
ibm-spectrum-scale-csi-rsw9k                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-snapshotter-6bcf7b5d8b-r85lk   1/1     Running   0          61s
ibm-spectrum-scale-csi-sw5t7                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-test-pod                       1/1     Running   0          40h
ibm-spectrum-scale-csi-v4cc5                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-wkjlw                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-x5789                          3/3     Running   0          3m51s
ibm-spectrum-scale-csi-xchvb                          3/3     Running   0          3m51s
root@deebugk8s1:~# kn get cso  -w
NAME                     VERSION   SUCCESS
ibm-spectrum-scale-csi   2.8.0     True
ibm-spectrum-scale-csi   2.9.0     False
ibm-spectrum-scale-csi   2.9.0     False

CSO Description :
  Warning  UpdateFailed  109s (x17 over 115s)  CSIScaleOperator  Synchronization of node/driver ibm-spectrum-scale-csi DaemonSet failed for the CSISCaleOperator instance ibm-spectrum-scale-csi

Expected behaviour:
CSI should upgrade with predefined daemonset values if provided value by the user is false

Logs: scale-csi/D.952

Observation : this issue can be also recreated when configmap is already present and we direct install CSI 2.9.0 , pods will be as following :
root@deebugk8s1:~# kn get pods
NAME                                                  READY   STATUS             RESTARTS   AGE
ibm-spectrum-scale-csi-attacher-85965f76cd-dfnlg      0/1     CrashLoopBackOff   4          112s
ibm-spectrum-scale-csi-attacher-85965f76cd-zmq6p      0/1     CrashLoopBackOff   4          112s
ibm-spectrum-scale-csi-operator-566f8fdf7f-4pf95      1/1     Running            0          2m21s
ibm-spectrum-scale-csi-provisioner-b5db8c7d9-74hf7    0/1     CrashLoopBackOff   4          112s
ibm-spectrum-scale-csi-resizer-686d8fffdd-s6zxh       0/1     CrashLoopBackOff   4          112s
ibm-spectrum-scale-csi-snapshotter-6bcf7b5d8b-9snhq   0/1     CrashLoopBackOff   4          112s
ibm-spectrum-scale-csi-test-pod                       1/1     Running            0          40h
root@deebugk8s1:~#

Have addressed this issue in the same PR which is related to optional configMap variable validation.
https://github.com/IBM/ibm-spectrum-scale-csi/pull/947

The fix will allow an upgrade from older to newer version even if there is an incorrect value of the MaxUnavailable variable. If  wrong value of the key is present in the configMap, the default value (which 1 Integer) being configured as upgradeStrategy.

This is fixed, please close if verified already

Hi @amdabhad , @badri-pathak , I see issue still there , I have tried upgrade from CSI 2.9.0 to CSI 2.10.0 (#1002 images), driver pods are still not getting upgraded with following error:
[root@saurabh6-master pr1002]# oc get pods
NAME                                                  READY   STATUS    RESTARTS   AGE
ibm-spectrum-scale-csi-7p7bn                          3/3     Running   0          5m6s
ibm-spectrum-scale-csi-attacher-b6b6d4948-k6ttn       1/1     Running   0          52s
ibm-spectrum-scale-csi-attacher-b6b6d4948-klkvq       1/1     Running   0          52s
ibm-spectrum-scale-csi-operator-567f8455f5-98fhg      1/1     Running   0          75s
ibm-spectrum-scale-csi-provisioner-b456fbb49-l92ql    1/1     Running   0          52s
ibm-spectrum-scale-csi-resizer-84d84bfdf6-g5sm9       1/1     Running   0          52s
ibm-spectrum-scale-csi-snapshotter-656d4bd64f-5bvg5   1/1     Running   0          52s
ibm-spectrum-scale-csi-stpd8                          3/3     Running   0          5m6s
[root@saurabh6-master pr1002]# oc get cso
NAME                     VERSION   SUCCESS
ibm-spectrum-scale-csi   2.10.0    False
Events:
  Type     Reason         Age                     From              Message
  ----     ------         ----                    ----              -------
  Warning  GUIConnFailed  6m20s (x13 over 7m16s)  CSIScaleOperator  Failed to connect to the GUI of the cluster with ID:<PHONE_NUMBER>30725699
  Normal   CSIConfigured  5m20s (x2 over 5m21s)   CSIScaleOperator  The CSI driver resources have been created/updated successfully
  Warning  UpdateFailed   4m25s (x2 over 5m21s)   CSIScaleOperator  Failed to set defaults on the instance ibm-spectrum-scale-csi. Please check Operator logs
  Warning  UpdateFailed   4m3s (x16 over 4m27s)   CSIScaleOperator  Synchronization of node/driver ibm-spectrum-scale-csi DaemonSet failed for the CSISCaleOperator instance ibm-spectrum-scale-csi
  Warning  UpdateFailed   65s                     CSIScaleOperator  Failed to set defaults on the instance ibm-spectrum-scale-csi. Please check Operator logs
  Warning  UpdateFailed   54s (x14 over 67s)      CSIScaleOperator  Synchronization of node/driver ibm-spectrum-scale-csi DaemonSet failed for the CSISCaleOperator instance ibm-spectrum-scale-csi

Images :
[root@saurabh6-master pr1002]# oc describe pod | grep quay
    Image:         quay.io/ibm-spectrum-scale/ibm-spectrum-scale-csi-driver@sha256:573b3b2d349359d7871d53060a0fc7df6e03de2e2900d1be46b4146ab1972fb7
    Image ID:      quay.io/ibm-spectrum-scale/ibm-spectrum-scale-csi-driver@sha256:573b3b2d349359d7871d53060a0fc7df6e03de2e2900d1be46b4146ab1972fb7
  Normal   Pulled     8m10s              kubelet            Container image "quay.io/ibm-spectrum-scale/ibm-spectrum-scale-csi-driver@sha256:573b3b2d349359d7871d53060a0fc7df6e03de2e2900d1be46b4146ab1972fb7" already present on machine
    Image:         quay.io/badri_pathak/ibm-spectrum-scale-csi-operator:events_gui_pass_v9
    Image ID:      quay.io/badri_pathak/ibm-spectrum-scale-csi-operator@sha256:a31ef1636903b3f3f75406cc463d0045a5064c7db12d59b07a322e89259e2065
      CSI_DRIVER_IMAGE:      quay.io/ibm-spectrum-scale-dev/ibm-spectrum-scale-csi-driver@sha256:ee9bd3e431cf0d3fb1e407a6e2ed51d6be957dd1445c2cd88f329cbb5b1ea494
  Normal  Pulled     4m20s  kubelet            Container image "quay.io/badri_pathak/ibm-spectrum-scale-csi-operator:events_gui_pass_v9" already present on machine
    Image:         quay.io/ibm-spectrum-scale/ibm-spectrum-scale-csi-driver@sha256:573b3b2d349359d7871d53060a0fc7df6e03de2e2900d1be46b4146ab1972fb7
    Image ID:      quay.io/ibm-spectrum-scale/ibm-spectrum-scale-csi-driver@sha256:573b3b2d349359d7871d53060a0fc7df6e03de2e2900d1be46b4146ab1972fb7
  Normal   Pulled     8m10s              kubelet            Container image "quay.io/ibm-spectrum-scale/ibm-spectrum-scale-csi-driver@sha256:573b3b2d349359d7871d53060a0fc7df6e03de2e2900d1be46b4146ab1972fb7" already present on machine

@badri-pathak, please check this

@saurabhwani5 Can you please share the configMap data which is already present or being created to regenerate this issue?

Used the same as mentioned above

@saurabhwani5  Please find the image for the validation quay.io/badri_pathak/ibm-spectrum-scale-csi-operator:cmfix_v3

verified with above Image. Thank You @badri-pathak


No "file history" for notebooks

Open a notebook
Find the file history view in scm

Originally https://github.com/microsoft/vscode/issues/111763

Ugh, unfortunately this is because VS Code returns undefined when trying to get the active text editor for notebooks.

Ugh, unfortunately this is because VS Code returns undefined when trying to get the active text editor for notebooks.


sign off initials

Issue description
Describe the problem you are having
I would like to know who checked off on what part of the checklist. What do you all think about updating the issue template to contain an (author) piece at the end that we can put our initials in?
for instance,

[x] Is the source code on GitHub? (sg)

@stdavis @ZachBeck @MichaelAGRC @gregbunce

I like it!


small fixes

all-around fixes and improvements :)
found it really hard to navigate without a 'Back' button so I added one!

thanks!


Add Analyzers for [DoesNotReturn]

If you call a method that has [DoesNotReturn] on it, consider adding an exception handler around the call.
Methods that actually return something should not have [DoesNotReturn] on it.

There's an analyzer that will already check for return in an attributed method - CS8763.
Trying to determine if a call to an attributed method is within an exception handler would be difficult at best, so....I'm going to close this.


[Feature Request]: Select All option for MultiSelect and Select Component

Description
It is common to expect the Select All option by a MultiSelect and Select component implicitly so that the user can easily Select or Deselect all options if he wants to. It will surely enhance the user experience
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate requests

Hello @naveen8801,
For Select we cannot support this feature as the component only selects one option, for MultiSelect it's possible to achieve this by grouping options in one group, see this example
we understand that this is a workaround and we agree that this feature would be a reasonable addition to the Cloudscape Design System. However, we don’t have a plan for this change in the short-term future.

Hey @abdhalees, thnx for the example 👍


GitHub release is not created by Changesets

A Git tag gets created but no corresponding GitHub release; I'm currently manually copying the CHANGELOG.md across. It works just fine in https://github.com/seek-oss/wingman though 😕

Randomly decided to start working today: https://github.com/seek-oss/skuba/releases/tag/v3.7.1


Add TS-typing to DefinitelyTyped repository

Hi.
Please add your TypeScript typing (declaration file) - jquery.fileDownload.d.ts into https://github.com/DefinitelyTyped/ repository.
It'll make it available for easy setup via npm (TypeScript 2.0):
npm i @types/jquery.filedownload

Now it's common way to get typings for libs.
Thanks in advance.

bb78377  on 30 Sep 2016
￼ alan-cruz2 fallback ไปยังหน้าต่างถ้า this is undefined


Fix replace nbqa ruff to ruff

Description

I have changed .pre-commit-config.yaml file and added  ruff.toml for lint the jupyter notebook.

Fixes # (issue)

This PR fix this issue : https://github.com/pybamm-team/PyBaMM/issues/3476

Type of change

[ ] New feature (non-breaking change which adds functionality)
[x] Optimization (back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)

Key checklist:

[x] No style issues: $ pre-commit run (or $ nox -s pre-commit) (see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)
[ ] All tests pass: $ python run-tests.py --all (or $ nox -s tests)
[ ] The documentation builds: $ python run-tests.py --doctest (or $ nox -s doctests)

You can run integration tests, unit tests, and doctests together at once, using $ python run-tests.py --quick (or $ nox -s quick).
Further checks:

[ ] Code is commented, particularly in hard-to-understand areas
[ ] Tests added that prove fix is effective or that feature works

Hello @Saransh-cpp  and @agriyakhetarpal
As you recommended i have created new branch and Created new PR for this issue https://github.com/pybamm-team/PyBaMM/issues/3476

can you please check this PR as we discuss here https://github.com/pybamm-team/PyBaMM/pull/3482#discussion_r1375434621

And should i close this https://github.com/pybamm-team/PyBaMM/pull/3482 PR or not ?

I think we needed to add this line types_or: [python, pyi, jupyter] in pre-commit-config.yaml as per...

NATIVE NOTEBOOK SUPPORT
Ruff 0.257 added experimental notebook support! You currently have to enable checking .ipynb files both in Ruff and pre->commit to use it.

Hey @Saransh-cpp
I have participated in hactoberfest and hacksquad events could you please merge it as i have done all the neccessary changes.


Oauth2 app does not work

Describe the bug
Using gitea_oauth2_app just doesen't seam to work, it successfully creates the resource, but the object does not exist in Gitea somehow, its not shown in settings/applications, and I cant use id and secret for apps.

Hi @76creates
Thanks for the report. Can you provide some additional information to reproduce this? I can probably take a closer look at this over the weekend

@Lerentis wanted to create a script for you and in the meantime i figured out its working as expected, must have been an issue with my gitea install in the first place, if a similar issue pops up I will post back an issue, thanks ⚡


Test: New Octicons outline style

Refs: https://github.com/microsoft/vscode/issues/76909

[x] Mac: @alexandrudima
[ ] Windows: @egamma
[ ] Linux: @roblourens

Complexity: 2
We've updated our version of Octicons to use our new outline style. This means that every previous icon is now mapped to an outline version. Please use our docs as a reference for the list of icons to test. Below are the areas that should be tested (you can compare with Stable as a reference to the original):

Status bar
Quick pick labels
Issue reporter (related issues)
Peek view (close button)
Extensions: workspace recommendations (viewlet header has download all and edit)
GitHub comment (edit and delete)
Diff line (show next/prev change)
Verify that the icons show up properly in each of those areas.

For the Status bar, you can create your own extension or use my sample that cycles through all of the icons after you click the status bar item. You can additionally install other extensions that add items to the status bar (GitHub PR, vscode-spotify, Live Share, etc.) and verify that the icons show up correctly.

Extensions: workspace recommendations (viewlet header has download all and edit)

Where is Download All?

@roblourens when you are on a workspace with extension recommendations, they're the actions in the workspace recommendations header:

Oh right I was just looking at "recommendations", thanks


NIFI-1834 Create PutTCP Processor

Took Matt Brown's patch and applied my comments.

@jPercival can I suggest the delimiter to be changed to a header and footer
?

@trixpan of course you can suggest it. I don't have experience using TCP in production so I don't know exactly what a user would want. Can you provide a use-case?

I think of it a bit like netcat...  So silmple examples
Finger queries
whois queries
Begin
Blah blah blah blah blah
End
And get the results back as attributes.
(Note that the whois use case is just an example, I plan to develop a whois processor to complement QueryDNS currently pending review here https://github.com/apache/nifi/pull/496)

I think the intent behind this processor was to send data over a connection, but not to read anything back. Essentially doing what PutSyslog and PutSplunk are doing when in TCP mode.
That being said we could potentially have a header and footer, and specifying only one of them would be the same as a single delimiter. I think the idea behind the delimiter was more to separate the messages, typically using new lines, but not wanting to hard code that.
Will have to review in more detail when I get a chance.

In my view the demarcator is a good start.  A header and footer could be added later or even just a header could be added and the demarcator could be considered the footer.  Something like that.
However, what I do think needs to be considered now is adding a way for the character set of the demarcator to be expressed explicitly.  Right now it calls demarcator.getBytes() and that will result in different behavior on different platforms and such string to byte cases always cause issues when not explicit.  Easy change for sure.  Could also allow the user to supply a file containing bytes as an another option as well.  Anyway - would do the simplest approach now which gets this processor in circulation then let usage dictate next steps.
Thanks

I agree with @joewitt

Looks good to me +1

Ok, consistency wins so a somewhat reluctant +1 :)

Thanks @olegz, will merge it in

Also, for the sake of transparency, we had a discussion offline debating the various directions to go to handle the "consistent inconsistency" and had the idea for a way for the user to check a box in the UI for whether to enter literal or interpreted text. I created a ticket for it here[1].
For now, in order to keep consistent with the other processors in this area that do automatically convert, the PutTCP processor will convert a "\n" entered in the UI to a new line character (also tabs and carriage returns).
[1] https://issues.apache.org/jira/browse/NIFI-2069


secureTextEntry and maxLength causes onChangeText to be triggered.

Description:
Using conditional rendering to render two TextInputs, the first with secureTextEntry={true} and the second with maxLength={someValue}:
Whenever entering a text into the first TextInput with a length greater than the maxLength of the second TextInput, onChangeText of the second TextInput is called when it is rendered. The onChangeText of the second TextInput, gets the value entered in the first TextInput.
This issue only occurs on Android.
React Native version:
System:
    OS: macOS 10.15.3
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 4.46 GB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 10.19.0 - /usr/local/opt/node@10/bin/node
    npm: 6.13.4 - /usr/local/opt/node@10/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
  IDEs:
    Android Studio: 3.5 AI-191.8<IP_ADDRESS>10548
    Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.9.0 => 16.9.0
    react-native: 0.61.5 => 0.61.5

Steps To Reproduce

npx react-native init someProjectName
Use the code provided below in App.js
Enter anything into the first TextInput with a length greater than maxLength of the second TextInput (4).
Press the Next button.

Expected Results
Don't trigger the onChangeText of the second TextInput.
Snack, code example, screenshot, or link to a repository:
import React, {useState} from 'react';
import {View, TextInput, Button} from 'react-native';

export default function App() {
  const [section, setSection] = useState(0);
  const [text1, setText1] = useState('');
  const [text2, setText2] = useState('');

  const renderSection = () => {
    if (section === 0) {
      return (
        <>
          <TextInput
            onChangeText={text => {
              console.log('TextInput 1: ' + text);
              setText1(text);
            }}
            value={text1}
            secureTextEntry={true}
          />
          <Button
            title="Next"
            onPress={() => {
              setSection(1);
            }}
          />
        </>
      );
    } else {
      return (
        <>
          <TextInput
            onChangeText={text => {
              console.log('TextInput 2: ' + text);
              setText2(text);
            }}
            maxLength={4}
            value={text2}
          />
          <Button
            title="Repeat"
            onPress={() => {
              setSection(0);
            }}
          />
        </>
      );
    }
  };

  return <View>{renderSection()}</View>;
}

Hello there 👋 this issue seems to have been inactive for the past few months. Because of this, it's likely that the issue is not a high priority anymore or it has been solved by OP; for these reasons, we'll close it.
But please, if it's actually still an issue with latest (RN64 at the time of writing) please comment below and we can reopen it or please send a Pull Request with a fix 😊


examples: fix permapp.py uuid

deadbeef-1234-5678-ba11-b100dc0ffee5

This seems to have been fixed by 39f6dee15db99a264ec9a1b394233208fb88d77b.


Emulation Station is seeing too many gamepads

I am running ES and when I boot for the first time, I get to the screen that asks me to press and hold a button to begin configuration.  It also tells you how many gamepads it's detecting... I only have 1 USB SNES gamepad connected, but for some reason, ES is detecting anywhere from 3-5 gamepads.  When I press and hold a button on my gamepad, the "OK" button appears, but I can't do anything from there.  ES recognizes the type of gamepad, but then it locks up.  I'm unable to select OK. I have to press F4 on my wireless keyboard to exit.  The wireless keyboard and the USB gamepad are the only devices connected at this time.  Any thoughts?  I'm a n00b, and I'm willing to answer any questions you might have to help me fix this.  Thanks!

It probably has a lot to do with the game pad adapter you are using.  What model is it ?

I'm using an ibuffalo BSGP801. Even when that is not connected, it still shows multiple game pads.


some questions about deep_3drecon.Reconstructor()

Hello, there are some problems when I was verifying. I am not sure whether it is related to the tensorflow version. I use the CPU version of tensorflow=1.14. How can I solve this?

It seems not to be a Error, maybe you could go ahead and find whether other steps go well.


Dori/merge 0.12.0 into main 2

This change is

-- commits line 62 at r2:
Suggestion:
erge remote-tracking branch 'origin/main-v0.12.0' into 'main' (with conflicts)


add hono+prisma example

What is the feature you are proposing?
Prisma is a very useful ORM library
I would like to provide an example of hono + prisma being used.

Here's an Example. Let me know if you need any help

@enemaliwilliam It's so exciting.
But I want localized Prisma, not Prisma Cloud. Also, can I add appllographql or graphql API?

Should be same steps except the migration part npx prisma migrate dev.  You also can't use templates that are deployed on edge runtime like cloudflare workers

This is not actually Hono's issues, e.g., bugs or features. So, now, closing.


feat: pseudo-element arguments

Closes #29
fixes highlighting for
::slotted(button) {}

looks good!

Looks great, thanks for merging :smile:


[DOCFIX] docs/cn/Tiered-Locality.md

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/18057/Failed Tests: 1org.alluxio:alluxio-minicluster: 1alluxio.multi.process.MultiProcessClusterTest.zookeeper
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/18079/
Test PASSed.


Unable to import module 'epsagon_handlers/...

Runtime: Python 2.7
Description: When using Epsagon Serverless Plugin it would not work. If Epsagon is disabled works as expected.
error message: "Unable to import module 'epsagon_handlers/..."

Module available in functions code

Thanks for letting us know @tainguyenbui,
Can you please share a snippet of your serverless.yml file? (the includes epsagon, provider, and an example function)?
Thanks!

Hi @ranrib!
yes definitely. This is the serverless.yml
service: ${self:custom.config.service}
package:
  individually: true
  exclude:
    - ./**

provider:
  name: aws
  runtime: python2.7
  stage: ${opt:stage, 'dev'}
  region: ${opt:region, 'us-east-1'}
  iamRoleStatements:
    - Effect: Allow
      Action:
        - polly:SynthesizeSpeech
        - dynamodb:Query
        - dynamodb:Scan
        - dynamodb:PutItem
        - dynamodb:UpdateItem
        - sns:Publish
        - s3:PutObject
        - s3:PutObjectAcl
        - s3:GetBucketLocation
        - logs:CreateLogGroup
        - logs:CreateLogStream
        - logs:PutLogEvents
      Resource: [
          "*"
        ]

plugins:
  - serverless-plugin-epsagon

custom:
  config: ${file(config.yml)}
  postsTable: ${self:service}-${self:provider.stage}
  mediaBucketName: ${self:service}-media-${self:provider.stage}
  snsTopicName: ${self:service}-topic-${self:provider.stage}
  snsTopicArn: { "Fn::Join" : ["", ["arn:aws:sns:${self:provider.region}:", { "Ref" : "AWS::AccountId" }, ":${self:custom.snsTopicName}" ] ]  }
  epsagon:
    token: ${self:custom.config.epsagonToken}
    appName: ${self:service}
    disable: false

functions:
  getPosts:
    handler: functions/getPosts.lambda_handler
    package:
      include:
        - functions/getPosts.py
    description: Get posts from Posts table
    memorySize: 512
    environment:
      POSTS_TABLE: ${self:custom.postsTable}
      EPSAGON_TOKEN: ${self:custom.epsagon.token}
      EPSAGON_APPNAME: ${self:custom.epsagon.appName}
    events:
      - http:
          method: get
          path: /
          cors: true
          integration: lambda
          request:
            template:
              application/json: '{"postId" : "$input.params("postId")"}'
            passThrough: NEVER
    epsagon:
      wrapper: lambda_wrapper

resources:
  Resources:
    PostsTable:
      Type: AWS::DynamoDB::Table
      Properties:
        AttributeDefinitions:
          - AttributeName: id
            AttributeType: S
        KeySchema:
          - AttributeName: id
            KeyType: HASH
        ProvisionedThroughput:
          ReadCapacityUnits: 1
          WriteCapacityUnits: 1
        TableName: ${self:custom.postsTable}
    PostsAudioBucket:
      Type: AWS::S3::Bucket
      Properties:
        BucketName: ${self:custom.mediaBucketName}

and this is the function code:
import boto3
import os
from boto3.dynamodb.conditions import Key, Attr

def lambda_handler(event, context):

    postId = event["postId"]

    dynamodb = boto3.resource('dynamodb')
    table = dynamodb.Table(os.environ['POSTS_TABLE'])

    if postId=="*":
        items = table.scan()
    else:
        items = table.query(
            KeyConditionExpression=Key('id').eq(postId)
        )

    return items["Items"]

thanks for looking into it :D

Hi @tainguyenbui, 2 things that I found out:

Since you are including specific files, you'll need to add the following:

include:
        - functions/getPosts.py
        - epsagon_handlers/**

You will need to install epsagon library in a way that it will be in the zip. The most recommended way is to use sls plugin install --name serverless-python-requirements, and have a requirements.txt file with epsagon in it. Ultimately just update:

plugins:
  - serverless-plugin-epsagon
  - serverless-python-requirements

Few things you can remove (just to make sure):
under custom:
disable: false

under function:
epsagon:
      wrapper: lambda_wrapper

Let me know if that works. Thanks!

Thanks a lot @ranrib for the fast response.
I will try these steps when I am back at home. If this fixes it I would suggest that the documentation is updated.
Regards!

@ranrib after adding the requirements.txt file containing epsagon I am getting the following error:
Serverless: Generated requirements from /Users/tainguyenbui/development/aws-polly-example/requirements.txt in /Users/tainguyenbui/development/aws-polly-example/.serverless/requirements.txt...
Serverless: Installing requirements from /Users/tainguyenbui/development/aws-polly-example/.serverless/requirements/requirements.txt ...

  Error --------------------------------------------------

  Exception:
Traceback (most recent call last):
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/cli/base_command.py", line 143, in main
    status = self.run(options, args)
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/commands/install.py", line 366, in run
    use_user_site=options.use_user_site,
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/req/__init__.py", line 49, in install_given_reqs
    **kwargs
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/req/req_install.py", line 760, in install
    use_user_site=use_user_site, pycompile=pycompile,
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/req/req_install.py", line 382, in move_wheel_files
    warn_script_location=warn_script_location,
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/wheel.py", line 215, in move_wheel_files
    prefix=prefix,
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/locations.py", line 165, in distutils_scheme
    i.finalize_options()
  File<EMAIL_ADDRESS>line 264, in finalize_options
    "must supply either home or prefix/exec-prefix -- not both"
DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both

it looks like adding a setup.cfg file to the root with:
[install]
prefix=

fixes the issue above

@ranrib after adding everything you suggested. There seems to be something that is throwing an error in relation to the requirements.txt file containing epsagon:
...
Serverless: Generated requirements from /Users/tainguyenbui/development/aws-polly-example/requirements.txt in /Users/tainguyenbui/development/aws-polly-example/.serverless/requirements.txt...
Serverless: Installing requirements from /Users/tainguyenbui/development/aws-polly-example/.serverless/requirements/requirements.txt ...

  Error --------------------------------------------------

  Exception:
Traceback (most recent call last):
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/cli/base_command.py", line 143, in main
    status = self.run(options, args)
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/commands/install.py", line 366, in run
    use_user_site=options.use_user_site,
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/req/__init__.py", line 49, in install_given_reqs
    **kwargs
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/req/req_install.py", line 760, in install
    use_user_site=use_user_site, pycompile=pycompile,
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/req/req_install.py", line 382, in move_wheel_files
    warn_script_location=warn_script_location,
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/wheel.py", line 215, in move_wheel_files
    prefix=prefix,
  File "/Users/tainguyenbui/Library/Python/2.7/lib/python/site-packages/pip/_internal/locations.py", line 165, in distutils_scheme
    i.finalize_options()
  File<EMAIL_ADDRESS>line 264, in finalize_options
    "must supply either home or prefix/exec-prefix -- not both"
DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both

it looks like adding a setup.cfg file to the root with:
[install]
prefix=
fixes the issue above

@ranrib, it is now solved. It looks following the above steps + moving the functions out of the functions folder and updating the serverless.yml accordingly has done the job.


⚠ AtmoBunker01 Server has degraded performance

In 23cc4a5, AtmoBunker01 Server ($ATMOBUNKER01) experienced degraded performance:

HTTP code: 200
Response time: 16030 ms

Resolved: AtmoBunker01 Server performance has improved in c9676d3.


fix(button): use FocusOriginMonitor for focus styles

fixes #3215

@mmalerba Can you rebase?

oh derp, sorry @kara i got too used to just assigning this back to you for more review :p


[0.71.3] Unable to resolve modules

Description
After installing the 0.71.3 version my code is unable to resolve any module not related to the application (sub dependencies).
I install "aws-amplify" that depends on "@aws-sdk" and all packages on aws. When I build my application I get:
Error: While trying to resolve module `@aws-sdk/util-hex-encoding` from file<EMAIL_ADDRESS>the package<EMAIL_ADDRESS>was successfully found. However, this
package itself specifies a `main` module field that could not be resolved<EMAIL_ADDRESS>Indeed, none of these files exist:

The package is installed and the file: @aws-sdk\util-hex-encoding\dist\cjs\index.js exists but it cannot be resolved
I try:
change metro config:
metro.config.js - useWatchman = false but the error shift to another package, same error.
change metro resolver extensions
see this topic https://stackoverflow.com/a/60126739
Any idea?
Thanks
Version
0.71.3
Output of npx react-native info
Not able to get this output on windows
Steps to reproduce

install a new react-native app: npx react-native init AwesomeProj
install aws-amplify: npm install aws-amplify amazon-cognito-identity-js @react-native-community/netinfo @react-native-async-storage/async-storage
run the application: npx react-native start --reset-cache

Snack, code example, screenshot, or link to a repository
private project

After installing the 0.71.3 version my code is unable to resolve any module not related to the application (sub dependencies).
I install "aws-amplify" that depends on "@aws-sdk" and all packages on aws. When I build my application I get:

Have you reported this to AWS?

i followed the steps and the app is working fine for me.

Ok, I rebuild a new project from scratch and found where the problem is.
In this project I use amplify with amplify-cli to setup Lambda functions for the auth flow on the cloud.
Amplify creates a folder inside the project that is read during the build step by the process of react-native and probably try to build all the internal dependencies of the folder.
With the amplify folder I get various dependencies errors, without it all seems to work.
So, is there a way to exclude an entire folder from the building step of react-native? o a better approach? (I would like to mantain the folder on the project)

Actually I'm investigating on aws sdk for some hint

Can you open an issue on AWS's end here? https://github.com/aws-amplify/amplify-js

Unable to resolve module any module in node_module


🐛 Typography color issues

Bug report
Describe the bug
The color highlighted-text in the Typography component is not thematized, making the text unreadable with light theme.
Also the documentation for color in Typography is missing the color text
To Reproduce
Steps to reproduce the behavior:

Go to Typography in the component catalog
Set theme to light

Expected behavior
highlighted-text is expected to work with both themes
Screenshots

@ccamel


Small fixes to get deploy working again; fix bug in views/users/update.js.erb

A few things here:

Comment out a few integration tests that don't play super well with javascript, or which fail randomly due to poltergeist or capybara weirdness
Sort out lines initialization to something that won't choke on deployment

(This also fixes a surprise bug where updating or removing a patient would return lists for all call lines.)


Z2M Addon randomly stops with error messages

Description of the issue
Following a power cut, I've had issues with Z2M peridocally crashing. It will run for a while then crash again. Restarting the addon brings it back for a bit then it will drop again. Running Z2M as a HA addon with a SLZB-06 running over POE, I've tried using different network cables and different ports in the network switch.
Addon version
1.40.2-1
Platform
Core 2024.10.4
Supervisor 2024.10.3
Operating System 13.2
Frontend 20241002.3
Addon Config
This is my addon config as well
socat:
  enabled: false
  master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
  slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
  options: "-d -d"
  log: false
mqtt: {}
serial:
  serial:
    port: tcp://<IP_ADDRESS>:6638
    baudrate: 115200
    adapter: zstack
    disable_led: false
  advanced:
    transmit_power: 20
    disable_led: false
watchdog: default

Logs of the issue (if applicable)
    at Socket.emit (node:events:529:35)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[07:53:19] INFO: Preparing to start...
[07:53:19] INFO: Socat not enabled
[07:53:19] INFO: Enabled Zigbee2MQTT watchdog with value 'default'
[07:53:20] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT with watchdog (2000,60000,300000,900000,1800000,3600000).
[2024-10-28 07:53:21] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-28 07:53:21] error: 	z2m: Failed to start zigbee
[2024-10-28 07:53:21] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-28 07:53:21] error: 	z2m: Exiting...
[2024-10-28 07:53:21] error: 	z2m: Error: Error while opening socket
    at Socket.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:166:24)
    at Socket.emit (node:events:529:35)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
[08:20:52] INFO: Preparing to start...
[08:20:52] INFO: Socat not enabled
[08:20:52] INFO: Enabled Zigbee2MQTT watchdog with value 'default'
[08:20:52] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT with watchdog (2000,60000,300000,900000,1800000,3600000).
[2024-10-28 08:20:54] error: 	zh:zstack:znp: Error while parsing to ZpiObject 'TypeError: Cannot read properties of undefined (reading 'execute')'
[2024-10-28 08:21:10] error: 	z2m: Adapter disconnected, stopping
WATCHDOG: Waiting 0.03333333333333333min before next start try.
Starting Zigbee2MQTT with watchdog (2000,60000,300000,900000,1800000,3600000).
[2024-10-28 08:21:12] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-28 08:21:12] error: 	z2m: Failed to start zigbee
[2024-10-28 08:21:12] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-28 08:21:12] error: 	z2m: Exiting...
[2024-10-28 08:21:12] error: 	z2m: Error: Error while opening socket
    at Socket.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:166:24)
    at Socket.emit (node:events:529:35)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
WATCHDOG: Waiting 1min before next start try.
Starting Zigbee2MQTT with watchdog (2000,60000,300000,900000,1800000,3600000).
[2024-10-28 08:22:12] error: 	zh:zstack:znp: Error while parsing to ZpiObject 'TypeError: Cannot read properties of undefined (reading 'execute')'
[2024-10-28 08:24:21] error: 	zh:controller: Failed to keep permit join alive: Error: SRSP - ZDO - mgmtPermitJoinReq after 6000ms
[2024-10-28 08:27:41] error: 	zh:controller: Failed to keep permit join alive: Error: SRSP - ZDO - mgmtPermitJoinReq after 6000ms
[2024-10-28 08:30:33] error: 	z2m: Adapter disconnected, stopping
WATCHDOG: Waiting 0.03333333333333333min before next start try.
Starting Zigbee2MQTT with watchdog (2000,60000,300000,900000,1800000,3600000).
[2024-10-28 08:30:35] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-28 08:30:35] error: 	z2m: Failed to start zigbee
[2024-10-28 08:30:35] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-28 08:30:35] error: 	z2m: Exiting...
[2024-10-28 08:30:35] error: 	z2m: Error: Error while opening socket
    at Socket.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:166:24)
    at Socket.emit (node:events:529:35)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
WATCHDOG: Waiting 1min before next start try.

/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:264
  var er = new ERR_STREAM_WRITE_AFTER_END();
           ^
Error: write after end
    at writeAfterEnd (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:264:12)
    at DerivedLogger.Writable.write (/app/node_modules/winston/node_modules/readable-stream/lib/_stream_writable.js:300:21)
    at DerivedLogger.log (/app/node_modules/winston/lib/winston/logger.js:231:12)
    at Logger.log (/app/lib/util/logger.ts:198:25)
    at Logger.error (/app/lib/util/logger.ts:203:14)
    at Timeout._onTimeout (/app/node_modules/zigbee-herdsman/src/controller/controller.ts:299:28)
[08:31:02] INFO: Preparing to start...
[08:31:02] INFO: Socat not enabled
[08:31:02] INFO: Enabled Zigbee2MQTT watchdog with value 'default'
[08:31:02] INFO: Starting Zigbee2MQTT...
Starting Zigbee2MQTT with watchdog (2000,60000,300000,900000,1800000,3600000).
[2024-10-28 08:31:20] error: 	z2m: Adapter disconnected, stopping
WATCHDOG: Waiting 0.03333333333333333min before next start try.
Starting Zigbee2MQTT with watchdog (2000,60000,300000,900000,1800000,3600000).
[2024-10-28 08:31:23] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-28 08:31:23] error: 	z2m: Failed to start zigbee
[2024-10-28 08:31:23] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-28 08:31:23] error: 	z2m: Exiting...
[2024-10-28 08:31:23] error: 	z2m: Error: Error while opening socket
    at Socket.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:166:24)
    at Socket.emit (node:events:529:35)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
WATCHDOG: Waiting 1min before next start try.
Starting Zigbee2MQTT with watchdog (2000,60000,300000,900000,1800000,3600000).
[2024-10-28 08:32:23] error: 	z2m: Error while starting zigbee-herdsman
[2024-10-28 08:32:23] error: 	z2m: Failed to start zigbee
[2024-10-28 08:32:23] error: 	z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-28 08:32:23] error: 	z2m: Exiting...
[2024-10-28 08:32:23] error: 	z2m: Error: Error while opening socket
    at Socket.<anonymous> (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:166:24)
    at Socket.emit (node:events:529:35)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)
WATCHDOG: Waiting 5min before next start try```

It might be related.
My Z2M throws this error
error 2024-10-30 15:45:22z2m: Publish 'set' 'state' to 'Pære Forgang' failed: 'Error: ZCL command 0x0017880104cbeb71/11 genOnOff.on({}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (SRSP - AF - dataRequest after 6000ms)'
And it pretty much beeing unresopnsive, it fixes it by restaring Z2M and it will run for a while, and stops working again.
It started in the weekend, and have not changed my config for month.

Did you desactivate "Zigbee Home Automation" ?


Problems setting up Windows Native API bindings

I'm trying to figure out how to make calls to some native windows APIs. Specifically trying to get the function typedefs and invocations setup correctly.
I'm getting the following error:
lib/main.dart: Warning: Interpreting this as package URI, 'package:activity_tracker_watcher/main.dart'.
lib/window/win/active_window-win.dart:26:14: Error: Expected type 'NativeFunction<Int32 Function(Pointer<Int32>, Uint8List, Uint32)>' to be a valid and instantiated subtype of 'NativeType'.
 - 'NativeFunction' is from 'dart:ffi'.
 - 'Int32' is from 'dart:ffi'.
 - 'Pointer' is from 'dart:ffi'.
 - 'Uint8List' is from 'dart:typed_data'.
 - 'Uint32' is from 'dart:ffi'.
      user32.lookupFunction<GetWindowTextWNative, GetWindowTextWDart>('GetWindowTextW');

Code:
  @override
  Window getActiveWindow() {

    final GetForegroundWindow =
      user32.lookupFunction<GetForegroundWindowNative, GetForegroundWindowDart>('GetForegroundWindow');

    final GetWindowTextLengthW =
      user32.lookupFunction<GetWindowTextLengthWNative, GetWindowTextLengthWDart>('GetWindowTextLengthW');

    final GetWindowTextW =
      user32.lookupFunction<GetWindowTextWNative, GetWindowTextWDart>('GetWindowTextW');

    int windowHandle = GetForegroundWindow();
    var windowHandlePointer = Pointer.fromAddress(windowHandle);
    int titleLength = GetWindowTextLengthW(windowHandlePointer);
    final titleBuffer = Uint8List(titleLength);
    int result = GetWindowTextW(windowHandlePointer, titleBuffer, titleLength);
    if (result == 0) {
      // handle failure.
      return null;
    }
    String title = String.fromCharCodes(titleBuffer);
    return Window(appName: "", windowTitle: title);
  }

Definitions (user32.dart):
import 'dart:ffi';

import 'dart:typed_data';

// HWND GetForegroundWindow(
// );
typedef GetForegroundWindowNative = Int32 Function();
typedef GetForegroundWindowDart = int Function();

// int GetWindowTextW(
//   HWND   hWnd,
//   LPWSTR lpString,
//   int    nMaxCount
// );
typedef GetWindowTextWNative = Int32 Function(Pointer<Int32> hwnd, Uint8List buffer, Uint32 nMaxCount);
typedef GetWindowTextWDart = int Function(Pointer<Int32> hwnd, Uint8List buffer, int nMaxCount);

// int GetWindowTextLengthW(
//   HWND hWnd
// );
typedef GetWindowTextLengthWNative = Int32 Function(Pointer hwnd);
typedef GetWindowTextLengthWDart = int Function(Pointer hwnd);

Dart SDK: 2.6.0
ffi: 0.1.3

Uint8List is not a valid type in a C signature, use Pointer<Uint8> instead.
See https://github.com/dart-lang/ffi/issues/27 for why and how to copy the data.

@dcharkes thanks for the help. I was able to figure it out with your help and someone on gitter. I'm now seeing some interesting behavior with the first few bytes being messed up with the code below:
  @override
  Window getActiveWindow() {

    final GetForegroundWindow =
      user32.lookupFunction<GetForegroundWindowNative, GetForegroundWindowDart>('GetForegroundWindow');

    final GetWindowTextLengthW =
      user32.lookupFunction<GetWindowTextLengthWNative, GetWindowTextLengthWDart>('GetWindowTextLengthW');

    final GetWindowTextW =
      user32.lookupFunction<GetWindowTextWNative, GetWindowTextWDart>('GetWindowTextW');

    int windowHandle = GetForegroundWindow();
    var windowHandlePointer = Pointer.fromAddress(windowHandle);
    int titleLength = GetWindowTextLengthW(windowHandlePointer);
    final titleBuffer = ffi.allocate<Uint16>(count: titleLength);
    int result = GetWindowTextW(windowHandlePointer, titleBuffer, titleLength + 1);
    final titleBytes = titleBuffer.asTypedList(result);
    ffi.free(titleBuffer);
    if (result == 0) {
      // handle failure.
      return null;
    }
    String title = String.fromCharCodes(titleBytes);
    return Window(appName: "", windowTitle: title);
  }

Outputs (just the title variable):

Ѡ洗ɟ腐沉ɟindow-win.dart - tracker - Visual Studio Code [Administrator]
촀洘ɟ腐沉ɟindow-win.dart - tracker - Visual Studio Code [Administrator]
垐狾ɟ腐沉ɟindow-win.dart - tracker - Visual Studio Code [Administrator]

Expected:

active_window-win.dart - tracker - Visual Studio Code [Administrator]

Interesting thing to note is that this only happens on some runs of the program (it is a loop that sleeps for 5 seconds and then calls the method again and prints the windowTitle). I ran the program 5 times and was able to get it to happen again.

asTypedList makes a view on titleBuffer. You're reading from titleBytes after freeing the backing memory.

Ah, ok. Thanks. Didn't realize that was a view on the memory.


support cmap parameter for line plots

I have a dataframe data with three dimensions (x,y,z) and I'd like to create a line plot where the color of the line is set by a colormap rather than randomly-chosen colors.
currently I can do
data.hvplot(x='x', y='y', by='z', cmap='Reds')

which gives nearly the appropriate plot, except that the cmap parameter is ignored. This causes problems when z is a continuous variable rather than a categorical variable because in that case, a sequential colormap is necessary to shade each line appropriately (instead of the default categorical colormap). I'd like for the cmap parameter to be recognized in line graphs as it is with other types, e.g. scatter
for example using hvplot I can do
data.hvplot(x='distance', y='Index', by='year', cmap="reds")
which yields the top figure below (ignoring 'cmap`). Instead, I'd like to generate something like the bottom figure (created using Altair)

This seems to me like a very nice feature to have in hvPlot! This is actually currently possible, using .opts and some HoloViews-fu, applying the options to the elements contained by the resulting NdOverlay:
import holoviews as hv
import hvplot.pandas
import numpy as np
import pandas as pd

df = pd.DataFrame({
  'x': list(np.arange(10)) * 6,
  'y': np.concatenate([np.arange(10) + x for x in range(6)]),
  'z': [l for l in range(0, 60, 10) for _ in range(10)],
})

df.hvplot.line('x', 'y', by='z').opts(hv.opts.Curve(color=hv.Palette('Reds')))

Any thought on this @jlstevens @jbednar  ? This is right now in the Wishlist milestone so bound to best ignored indefinitely. I feel this should be supported by hvPlot but one could make the case that it's just a matter of better documenting .opts to hvPlot users.
By the way the fact that passing cmap is swallowed without any effect or error/warning is a bug, I'm going to open an issue for that.

Does anyone have a quick update on the workaround? With the latest version it complains that hvplot.opts is not defined


2.5 appears to break gestalt options

Really like your work and enjoying prestige plus.  When I updated PP to 2.5.0  and gestalt character's level suddenly shot up to the combined total of all class levels.
Additionally if I attempted to make a gestalt character all the I could tick all the boxes as normal but it combined all the levels on completion.
Rolling back to 2.4.4 and all the gestalt classes worked again.
Again thanks for your fantastic work.

2.5.1 should fix it, now the mod no longer recalculate character level if you don't have aligned class
In other words, don't take aligned class when using toybox gestalt 0v0


README hard to see with GitHub dark mode

The images in the README should maybe have a white background?

Thanks, yes I'll have to rerender those.


Prerender to another tag

I would like to prerender some styles code which is generated on JavaScript code.
I'm using material-ui package which renders styles code in runtime on rendering app.
@{
    ViewData["Title"] = "Home Page";
}

Loading...

@section scripts {

}

I can of course generate styles within the HTML code, but I'll always get syntax warning because


Add eos_token and bos_token between historical dialogue prompts, as Llama2 prompt required[Feature Request]

🚀 Feature

As Llama2 prompt required, there need a eos_token and bos_token between two adjacent rounds of historical dialogue prompt, as shown below:

For now, it seems lost this part during 'GetConcatPrompt' or somewhere else.
Motivation
Adding this function can ensure strict compliance with llama2's requirements for prompts. This may improve Llama2's performance on MLC.

Alternatives
Open tokenizer.encode calling to the user interface, and add new prefill api which can taken tokens as input, then users can add eos_token and bos_token outside the lib.

Additional context

Sample from https://github.com/facebookresearch/llama/blob/main/llama/generation.py
eos_token and bos_token added by the tokenizer.encode through "bos=True" and "eos=True":
dialog_tokens: List[int] = sum(
                [
                    self.tokenizer.encode(
                        f"{B_INST} {(prompt['content']).strip()} {E_INST} {(answer['content']).strip()} ",
                        bos=True,
                        eos=True,
                    )
                    for prompt, answer in zip(
                        dialog[::2],
                        dialog[1::2],
                    )
                ],
                [],
            )
            assert (
                dialog[-1]["role"] == "user"
            ), f"Last message must be from user, got {dialog[-1]['role']}"
            dialog_tokens += self.tokenizer.encode(
                f"{B_INST} {(dialog[-1]['content']).strip()} {E_INST}",
                bos=True,
                eos=False,
            )

Hello, this should be fixed in the new unified conversation template.
https://github.com/mlc-ai/mlc-llm/blob/2b8aadf57479ffffa24380846cfb9976d00d437c/python/mlc_llm/conversation_template.py#L66


building list panel only appears in zoomed-in view

Yeah when I zoom out [with the mouse wheel] and click on the city map, the building list panel doesn't appear. when I zoom back out, it does, after I click again
NealSchmidt
OK, it looks like I misinterpreted what was happening. if I click on other locations, the buildings panel appears. not clear why some spots it doesn't.

it was because ruins had no image. So they are seen as empty spots. Fixed it.
Thanks.


Shuffle IP Pools while selecting random block

See @robbrockbank's comment for reference: https://github.com/projectcalico/libcalico-go/pull/295#issuecomment-265854648
Code: https://github.com/projectcalico/libcalico/blob/7674d52ad92bb6626ca189a4fbeed85c814e7ee8/calico_containers/pycalico/ipam.py#L1324

@robbrockbank says:

we currently enumerate the IP Pools and select a random block from the first pool ....and iterate through the pools.....   If each pool is only of size /26 then that random block selection won't do anything


Use Case Descriptions: Complete 2 to 3 Descriptions

Use Case Diagrams/Models and Descriptions ( /30)
Use this use case description template.
Examples: UMaine Connect Team C 2022 Team F 2022 (some errors in arrows but overall good)
Make the use case diagrams first, then assign individual people to making each use case’s description.
About 10 - 20 use case descriptions and 2-4 use case diagrams/models each including 3 - 5 use cases.
If the number of use case descriptions (UCD) is below 10, deduct -3 points for any one missing. For example, if there are only 8 UCD, then deduct -6 points.
If the number of use case diagrams/models is less than 2, deduct -10 points.
Use case diagrams/models should be correct and have the correct links.
If they have unnecessary arrows, deduct -2 points per each mistake.
If they are complicated, deduct -5 points per each diagram/model.
Use cases should start from the actor. If not, deduct -2 points for each mistake.
Only have include, extend and generalize links between the use cases.
If the links are not correct or they do not have a type, deduct -2 points for each mistake.
Use case descriptions should follow the templates/guidelines from slides or the given template.
If they do not match, deduct -5 points for each mistake.
The name of the UCD should match with the use cases in the diagram.
If they do not match, deduct -1 point per each mistake.
The related use cases should be shown correctly in the UCD
If they do not show correctly, deduct -1 point per each mistake.
For every other mistake, deduct -1 points for each.
If the quality of the UCD or diagrams varies substantially, deduct -10 for the team not internally reviewing/quality checking their work before submission. Not recoverable with regrade.

I edited a few things, and fixed Id numbers to flow better. Everything looks good


Update LPT

I've made some required fixes in LPT, please update to the newest version.
Once updated, let Honza (skype:sacenhigh) know about the update.
Thanks!

In the new version the column with checkboxes in the listing mode is too wide:
(https://www.dropbox.com/s/gfefoh7d6q2upxl/Скриншот 2017-03-03 01.43.17.png?dl=0)

@evshvarov, I can't check your testcase ({"data":{"Error":"ERROR #5001: Dashboard Basic Dashboard Demo.dashboard#/ does not exist"}), but the newest version of LPT picks columns width from *.pivot if specified, or assigns 100px width by default. Could you please check the *.pivot setting or make the test case available? Thanks!
Also, Anton @gnibeda and Evgeny, if this option is specified in DSW (I see it at least specified here), the column widths will try to fill all available space in widget to not to leave blank space there.

Talked to @evshvarov, it turned that this is LPT bug impacting listings.

Fixed, new version is available. @evshvarov, regarding to hiding buttons, there is an option already. Thanks!

@ZitRos thank you so much!

@gnibeda would you please include it in the recent release and the option as well?  It hides the drill back button for LPT. It should be hidden for DSW forever.

@gnibeda can we close it?

@evshvarov DSW master contains 1.8.0, the latest first-column width fix is still to come, but the things we've discussed here are done for 1.8.0.

LPT version 1.8.2 with alignment fix is on the road.


KODANGKO

I thought there was a word like KODANGKO which means heavy earth-moving machines. Like a backhoe or an excavator. Something like this:

But I asked a few Palauans and they don't know this word. Do they not know it or did I just completely imagine this somehow?

Perhaps you're thinking "oltongkou"? Or is it "oltengkou"?
Yes, to Kodangko as a "yak" in hanafuda.
On Wed, Aug 9, 2023, 7:20 PM Gnalu @.***> wrote:

Isn’t that a ‘yak’ in Hana fuda?
On Wed, Aug 9, 2023 at 18:11 John Bent @.***> wrote:

I thought there was a word like KODANGKO which means heavy earth-moving
machines. Like a backhoe or an excavator. Something like this:
[image: Uploading image.png…]
But I asked a few Palauans and they don't know this word. Do they not
know
it or did I just completely imagine this somehow?
—
Reply to this email directly, view it on GitHub
https://github.com/tekinged/missing/issues/441, or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AF2DJJAUKZQYO2SFWYHFZZ3XUQYNXANCNFSM6AAAAAA3KYJU7M>

.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHub
https://github.com/tekinged/missing/issues/441#issuecomment-1672393559,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXYSPXRPOWCJE2ISJKN4YXLXUQZNHANCNFSM6AAAAAA3KYJU7M
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Oh, yes, I was thinking of oltengkou! Thanks Lukes!
I'll leave this open though because we should add the yak.

We do have a page about hanahuda but the yaks are not in the database.
https://tekinged.com/hanahuda/#yaks


从win10开始菜单运行code命令，有黑色窗口残留

VSCode Version: 1.32.1 (system setup)

OS Version:Windows 10

Steps to Reproduce:
1.打开开始菜单输入code

2.回车打开vscode

Does this issue occur when all extensions are disabled?: Yes/No

我已经不想翻译了……而且你的这些问题我一个也没遇到……

A brief in English. I don't have this issue.

Use code to launch VS Code from the Start menu. There will be a residual window of cmd after VS Code starts.

😃

@guobing1993
他用里面的“命令”启动的。但是我测试了很多遍没有这个问题。
Note the author used command "code" to launch VS Code rather than the shortcut.

I don't think this is a bug, because you have launched VS Code from command line, not via Windows shortcut.

If you reinstall VS Code, does the application (not the launcher) show up in the start menu?

我用windows管理员用户安装，然后用windows普通用户使用，出现这种情况

从开始菜单运行code.cmd，我更希望没有多出一个黑色窗口

Can you install VS Code with your user, instead of with Administrator?


testutil/prometheus: fix start/stop race

Fix the following race between start and stop:
WARNING: DATA RACE
Read at 0x00c0001940a0 by goroutine 35:
  github.com/thanos-io/thanos/pkg/testutil/e2eutil.(*Prometheus).Stop()
      /home/giedrius/dev/thanos/pkg/testutil/e2eutil/prometheus.go:298 +0x94
  github.com/thanos-io/thanos/pkg/metadata.TestPrometheus_Metadata_e2e.func1()
      /home/giedrius/dev/thanos/pkg/metadata/prometheus_test.go:32 +0x33
  runtime.deferreturn()
      /usr/lib/go-1.21/src/runtime/panic.go:477 +0x30
  testing.tRunner()
      /usr/lib/go-1.21/src/testing/testing.go:1595 +0x238
  testing.(*T).Run.func1()
      /usr/lib/go-1.21/src/testing/testing.go:1648 +0x44

Previous write at 0x00c0001940a0 by goroutine 73:
  os/exec.(*Cmd).Start()
      /usr/lib/go-1.21/src/os/exec/exec.go:693 +0x977
  os/exec.(*Cmd).Run()
      /usr/lib/go-1.21/src/os/exec/exec.go:587 +0x26
  os/exec.(*Cmd).CombinedOutput()
      /usr/lib/go-1.21/src/os/exec/exec.go:1005 +0x1f6
  github.com/thanos-io/thanos/pkg/testutil/e2eutil.(*Prometheus).start.func1()
      /home/giedrius/dev/thanos/pkg/testutil/e2eutil/prometheus.go:226 +0x52

While fixing this I have also noticed some pretty bad code like hardcoding durations in random time.Sleep. Also, some Start() calls were without waiting for Prometheus to be up. Calling start but without waiting for Prometheus to be up doesn't make much sense so I have taken the liberty to refactor this place. Also, this should make tests faster because we won't have random sleeps too.

I'll check out what's wrong on Monday


Service resource start failures - Chef run continues

I have found that when using the Varnish cookbook > 2.0.0 (when the varnish logging library was added) causes service resources in a Chef run to not cause an exception and end a chef run on a start or restart failure. The root cause is alteration to the service resource using a prepended module which alters the behavior of the service.
https://github.com/rackspace-cookbooks/varnish/pull/83 points to the problem and how to possibly fix it.

Closing since #83 was merged. Releasing now.

Thank you