Add generators for component, page, selectors and sagas

PR for issue #10
I have couple of questions,

I'm not sure where to put the templates for the generators, right now it is at '/plop_templates'. I don't feel it is the proper place. Is there are anywhere else we can put it?
Can there be sub-components inside either components or containers folder? If that's the case, I can add a directory picker input to find out where to put the component.

Holy moly @somus, that looks amazing. I'm in the middle of travel preparations right now, and seeing as this quite an important PR it's going to take me a few days to review this, but thanks a lot already!

I think we should put the templates in a subfolder called templates inside the webpack folder, and rename the webpack folder to something else. Maybe config, but that might imply the users can configure something about their application in that folder, so I'm not a fan of that – any ideas?

Yes exactly, containers should be their own option which'll generate a component that is connected to the global state. This connect call can also have an optional mapStateToProps and mapDispatchToProps function and a selector associated with it. Containers can have a actions-constants-reducer tupel associated with them and might have a selector in them. Components don't, they are only a index.js and a styles.css file, and not connected to the state. An example of a container that is only connected to the state:
// imports here
class Bla extends React.Component {
  // component here
}

export default connect()(Bla);

An example with the mapXtoY functions:
// imports here
class Bla2 extends React.Component {
  // component here
}

function mapStateToProps(state) {
  // A part of the state is returned here as an object
  return {
    partOfTheState: state.get['somepart']
  };
};

function mapDispatchToProps(dispatch) {
  // Some actions mapped to a dispatch call are returned as an object here
  return {
    onSomeAction: dispatch => dispatch(someAction())
  }
};

export default connect(mapStateToProps, mapDispatchToProps)(Bla2);

One example with a selector:
import someSelector from 'someSelector';

// component here

export default connect(createSelector(
  someSelector,
  (something) => { something }
))(Component);

And this is what the connect call would look like when you have both a selector and the mapXtoY functions:
export default connect(mapStateToProps, mapDispatchToProps, createSelector(
  someSelector,
  (something) => { something }
))(Component);

The above examples were not tested and might have typos in them, please be careful when copy & pasting them.Take a look at the App container for an example of a container with !

I'm not sure that made any sense at all – if you want to we can jump on a quick Skype call soon and go through all the small intricacies together!

So, I just tried this and it's absolutely amazing. I realised you've already included the whole mapXtoY thing, which is working great! Sorry for not checking before writing my above comment. Very good start, really really nice, I love it!
A few nitpicks to make this really solid and perfect:

At the start, one should be able to choose between container and component, instead of page and component. It's just a coincidence all the pages are in the containers folder, and tbh almost all of them shouldn't be there anyway. Most of those pages should be in the components folder. containers either have a connect call associated with them and/or an actions/constants/reducer tupel.

When we add actions, we don't need to ask if the user wants a reducer as well – I've yet to encounter a case when I wanted component specific actions but not a reducer.

Instead of asking for a reducer, ask if they want to add a component specific selector to the container (currently page). See my last comment for an example of what that might look like. (Adding the createSelector function call to the connect call should be enough)

When a new saga is added, it should be added to the object in the sagas/index.js file so it's automatically included in the Redux middleware.

When adding a new route and choosing the path, somebody might add a prefixed slash, i.e. /about. We should take care of not prefixing another slash in front of that route, otherwise it becomes //about.

When adding a new component, we add a comment at the top saying ComponentName.react.js even though the file is called index.js – lets change that to simply say ComponentName!

When adding styles, I love how a class is automatically added to the wrapping div, but right now it says styles.hello-world which is invalid JS. Either we change it to say styles['hello-world'] or change the class that's generated to not-include hyphens, i.e. helloWorld and say styles.helloWorld in the component. (I'd prefer the second option, but the first is fine too)

Again, those are just a few nitpicks. This is absolutely amazing, thanks so much for this PR!

Please note, I just moved the routes to their own routes.js file, so we need to update the route generator! :+1: See https://github.com/mxstbr/react-boilerplate/commit/ccd4f6cf81d76c360b7b983fc8ef9796c3c07b1a

Thanks for the feedback. I'll get on to the changes.
After that, we can schedule a skype call to go over it and make it perfect.

I've made changes based on the feedback.
I've added a new route generator which will pick components from both components and containers folder with a name ending with Page (I'm not sure this is the right way).
For adding selectors to the container, should we show a list of selectors present in selectors folder and then add it to the container?

Amazing work so far, I love love love this!
A few more tiny changes to make this perfect:

When generating a container/component, the files in the test subfolder should be called actions.test.js and reducer.test.js instead of actions.js and reducer.js

I love the way the route generator works, but I don't think only listing all the components ending in -Page is the way to go. People might want to have routes to other components, so I think we should simply let them choose from all components and containers.

I think it'd make sense to ask people if they want a selector inside a container, and then let them choose/generate one.

If people enter nameSaga as the name for a Saga, can we strip the duplicate saga? Same thing with the selectors and the routes with the prefixed slash.

Made the changes.
I'm showing all the components for route generation. But, if we show everything it will be difficult to find the component for which you need to generate the route for. This ultimately destroys the purpose. Adding routes manually will be much easier in that case.

Amazing!! What about manually entering the component name we want the route to? That's still easier than manually making the route.

That makes sense. We can add validations to check whether the component actually exists in either components or containers folder.

 I don't quite understand why we ask if they want to add a selector when generating a container, when that doesn't do anything. Are you working on this or did it turn out too hard? We could just scrap that question and simply add a createSelector call without any specific selector.

On my phone at the moment, I'll check your fixes out asap!
Meanwhile, add me on Skype and let's chat there,  I'm mstoiber05 there.

The first option from the list lets you add already available selectors to your container. Other one lets you create a new selector and add it to the container.

I think it's perfect now, thanks so much for doing this @somus – so awesome!


Bug: Querying Date attributes fail when sharding

When running the latest Weaviate (v1.9.0) in sharded mode (eg multiple replicas in Kubernetes), then filtering with date attributes will result in error expected value to be time.Time, got string.
When Weaviate is redeployed with a single shard, the error goes away.
See more about this being discussed under thread: https://app.slack.com/client/T0181DYT9KN/C017EG2SL3H/thread/C017EG2SL3H-1640380914.476400
The query and the resulting error:
{
    Get {
        HotTopics(
            nearText: {
                concepts: ["whatever"]
            }
            limit: 4
            where:{
                operator:And
                operands: [{
                    operator: LessThan
                    path: ["createddate"]
                    valueDate: "2021-12-01T00:00:00Z"
                }, {
                    operator: GreaterThan
                    path: ["closeddate"]
                    valueDate: "2021-12-10T00:00:00Z"
                }]
            }
        ) {
          createddate
          closeddate
          _additional {
            id
            certainty
          }
        }
    }
}

    >>>>
    'errors': [{'locations': [{'column': 9, 'line': 4}],
                 'message': 'explorer: get class: vector search: object vector '
                            'search at index hottopics: remote shard BiuJ0de5fLih: '
                            'unexpected status code 500 (shard '
                            'hottopics_BiuJ0de5fLih: build inverted filter allow '
                            'list: nested clause at pos 0: expected value to be '
                            'time.Time, got string\n'
                            ')',

The given attributes are defined and uploaded as date properly - see below.
-- attribute definitions are properly set to 'date':
        {
            "name": "createddate",
            "dataType": ["date"],
            "description": "When the HT was created",
            'moduleConfig': {
                'text2vec-transformers': {
                    'skip': True,
                    'vectorizePropertyName': False
                }
            },
        },
        {
            "name": "closeddate",
            "dataType": ["date"],
            "description": "When the HT was created",
            'moduleConfig': {
                'text2vec-transformers': {
                    'skip': True,
                    'vectorizePropertyName': False
                }
            },
        }

-- objects are uploaded as:
        'data_object': {
            'createddate': ht['CREATEDDATE'].strftime('%Y-%m-%dT%H:%M:%SZ'),  # 2021-10-02T15:00:00Z
            'closeddate': ht['CLOSEDDATE'].strftime('%Y-%m-%dT%H:%M:%SZ')
        }

I have enabled debug logging on both of the weaviate shards, unfortunately the logging was still quite limited during the query throwing the error - see logs below.
Debug log from instance 0 ('weaviate-0'):
{"level":"debug","msg":" memberlist: Stream connection from=<IP_ADDRESS>:60954","time":"2021-12-29T16:04:58Z"}
{"level":"debug","msg":" memberlist: Initiating push/pull sync with: weaviate-1 <IP_ADDRESS>:7000","time":"2021-12-29T16:05:07Z"}
{"level":"debug","msg":" memberlist: Stream connection from=<IP_ADDRESS>:33210","time":"2021-12-29T16:05:13Z"}
{"action":"restapi_request","level":"debug","method":"POST","msg":"received HTTP request","time":"2021-12-29T16:05:20Z","url":{"Scheme":"","Opaque":"","User":null,"Host":"","Path":"/v1/graphql","RawPath":"","ForceQuery":false,"RawQuery":"","Fragment":"","RawFragment":""}}
{"level":"debug","msg":" memberlist: Initiating push/pull sync with: weaviate-1 <IP_ADDRESS>:7000","time":"2021-12-29T16:05:22Z"}

Debug log from instance 1 ('weaviate-1'):
{"level":"debug","msg":" memberlist: Initiating push/pull sync with: weaviate-0 <IP_ADDRESS>:7000","time":"2021-12-29T16:04:43Z"}
{"level":"debug","msg":" memberlist: Stream connection from=<IP_ADDRESS>:49216","time":"2021-12-29T16:04:52Z"}
{"level":"debug","msg":" memberlist: Initiating push/pull sync with: weaviate-0 <IP_ADDRESS>:7000","time":"2021-12-29T16:04:58Z"}
{"action":"restapi_request","level":"debug","method":"POST","msg":"received HTTP request","time":"2021-12-29T16:05:05Z","url":{"Scheme":"","Opaque":"","User":null,"Host":"","Path":"/v1/graphql","RawPath":"","ForceQuery":false,"RawQuery":"","Fragment":"","RawFragment":""}}
{"level":"debug","msg":" memberlist: Stream connection from=<IP_ADDRESS>:49578","time":"2021-12-29T16:05:07Z"}
{"level":"debug","msg":" memberlist: Initiating push/pull sync with: weaviate-0 <IP_ADDRESS>:7000","time":"2021-12-29T16:05:13Z"}
{"level":"debug","msg":" memberlist: Stream connection from=<IP_ADDRESS>:49988","time":"2021-12-29T16:05:22Z"}
{"level":"debug","msg":" memberlist: Initiating push/pull sync with: weaviate-0 <IP_ADDRESS>:7000","time":"2021-12-29T16:05:28Z"}
{"level":"debug","msg":" memberlist: Stream connection from=<IP_ADDRESS>:50384","time":"2021-12-29T16:05:37Z"}

FYI: The investigation for this highlighted a second, related bug:
There is also a bug wrt importing items with date fields in a distributed setting, it seems that when an object is sent to a remote shard, we lose the type information about this being a timestamp. As a result the timestamp is indexed as a string, making it impossible to find using filters - even with the original bug fixed.
Will also investigate and fix the second bug.

closed in #1786


Fix (?) Stylesheet Inliner: respect the selector + do not break author

Fix for Stylesheet Inliner breaks AEM Start Page and does not respect the selector on the Stylesheet Inliner feature:

Sometimes the inliner is unable to get the content of a css file for the inline. In the previous version it would simply abandon these styles. I'm including them as link just as it would be without the feature enabled. This way - what can be inlined - indeed is. If we can't inline something - we leave it as is.
The inline-css selector was not respected before even though the docs explicitly mention it.

In a different PR I'm fixing typos in the docs.

Pull Request Test Coverage Report for Build 4342

53 of 74 (71.62%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 52.171%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

bundle/src/main/java/com/adobe/acs/commons/rewriter/impl/StylesheetInlinerTransformerFactory.java
40
43
93.02%

bundle/src/main/java/com/adobe/acs/commons/rewriter/DelegatedTransformer.java
13
31
41.94%

Totals

Change from base Build 4335:
0.02%

Covered Lines:
13120

Relevant Lines:
25148

💛  - Coveralls

@badvision - I've updated the JUnit tests, please check.

Thanks so much! 😃


Build Fails

Describe the bug
Build fails with module 'basic.textmerger' not found
To Reproduce
Steps to reproduce the behavior:

git clone https://github.com/sumneko/lua-language-server && cd lua-language-server && git submodule update --init --recursive
cd 3rd/luamake
macOS: compile/install.sh | Ubuntu: ./compile/install.sh
cd ../.. && ./3rd/luamake/luamake rebuild
test.lua:53: module 'basic.textmerger' not found, FAILED: build/_/unit-test

Expected behavior
Build to succeed without stopping due to test errors.
Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

OS: Ubuntu 21.10, Ubuntu 20.04, MacOS Big Sur
Client: Gnome-terminal running bash in both Ubuntu versions, and iterm2 running zsh in MacOS.

Additional context
I installed it successfully on Ubuntu 20.04 about 5 days ago
Provide logs
None failed in build.

Sorry, this was caused by my previous incorrect commit, and I have already revert the commit.

Thanks 😄


.analyzeImage() dosen't work on Android.

Hi
I'm loading the image directly to get the QR data.
However, .analyzeImage() is not working.
It doesn't even throw an exception.
It works fine on iOS.
    var mobileScannerController = MobileScannerController(formats: [BarcodeFormat.qrCode]);

    try {
      barcodesStreamSubscription = mobileScannerController.barcodes.listen((BarcodeCapture barcodes) {
        if (barcodes.barcodes.isNotEmpty) {
          detectedCode = barcodes.barcodes[0].rawValue ?? '';
        }
      });

      barcodesStreamSubscription.onError((e) {
        consoleLog(e.toString());
      });

      await mobileScannerController.analyzeImage(imagePath);
    } catch (e) {
      print(e.toString());
    }

Neither .listen() nor .onError() are called.
Doesn't this work on Android?
Thank you

The storage permission is fine.
mobile_scanner: 3.2.0
[✓] Flutter (Channel stable, 3.7.12, on macOS 13.3.1 22E772610a darwin-arm64, locale ko-KR)
• Flutter version 3.7.12 on channel stable at /Users/jeonglockpark/Desktop/work/flutter_sdk/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 4d9e56e694 (3 weeks ago), 2023-04-17 21:47:46 -0400
• Engine revision 1a65d409c7
• Dart version 2.19.6
• DevTools version 2.20.1
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at /Users/jeonglockpark/Library/Android/sdk
• Platform android-33, build-tools 33.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E222b
• CocoaPods version 1.12.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
[✓] VS Code (version 1.78.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

same issue here, any solution?

I'm still waiting.

Same problem, works fine on ios, but android is not working (tested on Android 14)

Android 14 does not work, while some other versions can work partially. It is strange that the cropped image success.


No download for fanfox.net

Bug report

Description
Data

OS
Ubuntu 16.04.5 LTS

Python version
Python 3.5.2

Pip version
pip 18.1

Manga-py version
<IP_ADDRESS>

URL
http://fanfox.net/manga/the_hero_is_overpowered_but_overly_cautious/

URL
http://fanfox.net/manga/aura_from_another_planet

To Reproduce:
Steps to reproduce the behavior:
pipenv run manga-py --cbz --zero-fill --rename-pages --no-webp --destination Manga/ http://fanfox.net/manga/the_hero_is_overpowered_but_overly_cautious/

Additional context
No oputput is displayed.
Could be a regression of  #112?

Maybe. Thanks for the issue!

Tried it, works most of the time :sweat_smile:

Component
Value

OS
Ubuntu 16.04.5 LTS

Python version
Python 3.5.2

Pip version
pip 18.1

Manga-py version
1.3.32

URL
Result

http://fanfox.net/manga/aura_from_another_planet
OK :+1:

http://fanfox.net/manga/the_abandoned_empress/
OK :+1:

http://fanfox.net/manga/isekai_shoukan_sareta_ga_kyousei_soukan_sareta  _ore_ha_shikatanaku_yaseru_koto_ni_shita/
:bug: Nothing happens

http://fanfox.net/manga/the_hero_is_overpowered_but_overly_cautious/
:bug: :boom: Error: 'NoneType' object has no attribute 'group'

Oh ... I'll try.
Sorry. Last time, I am very distracted. (

Don't be sorry, it works 200% of the time (no fanfox, just try in other provider).
No complains from me then, only bugs :bug:, that are normal part of the business.
And I think that is pretty bug free for the ton of providers that it have.

:-)
Thank. Just coming New Year and the desire to work after work less and less.
I need a vacation!

Oh. Sorry for such a long wait.
I did it!
Unfortunately, for a manga with such protection, links are long parsed, but it works well for me.
Please check.
If something doesn't work, please write it down.
Thank you for using manga-py =)

Component
Value

OS
Ubuntu 16.04.5 LTS

Python version
Python 3.5.2

Pip version
pip 18.1

Manga-py version
1.4.0

URL
http://fanfox.net/manga/the_abandoned_empress/

URL
Result

http://fanfox.net/manga/aura_from_another_planet
OK :+1:

http://fanfox.net/manga/the_abandoned_empress/
OK :+1:

http://fanfox.net/manga/the_hero_is_overpowered_but_overly_cautious/
OK :+1:

http://fanfox.net/manga/world_customize_creator/
OK :+1:

http://fanfox.net/manga/isekai_shoukan_sareta_ga_kyousei_soukan_sareta  _ore_ha_shikatanaku_yaseru_koto_ni_shita/
:bug: No chapter detected/downloaded

http://fanfox.net/manga/isekai_shoukan_sareta_ga_kyousei_soukan_sareta_ore_ha_shikatanaku_yaseru_koto_ni_shita/

Thank. I will check it.


RFC: Rework configuration methods

At the moment we have several ways of configuring esplfash/cargo-espflash behavior:

Package metadata (only for cargo-espflash)

Allows to specify paths to bootloader and partition table files and image format.

Global configuration file

There is also a request for https://github.com/esp-rs/espflash/issues/469
Allows to specify a serial ports and/or USB VID/PID

Some arguments can be specified via environment variables: ESPFLASH_BAUD and ESPFLASH_PORT

The idea would be to simplify and integrate most of this configuration options into a single one.
Related issues: https://github.com/esp-rs/espflash/issues/504, https://github.com/esp-rs/espflash/issues/469

Relevant link: configuration file of esptool


Failed Building Wheel for llama-cpp-python   runing on Python 3.10.9  windows 10 visual studio 2022

``C:\Users\Lenovo>pip install llama-cpp-python
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting llama-cpp-python
Using cached http://mirrors.aliyun.com/pypi/packages/82/2c/9614ef76422168fde5326095559f271a22b1926185add8ae739901e113b9/llama_cpp_python-0.1.50.tar.gz (1.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: typing-extensions>=4.5.0 in e:\python\lib\site-packages (from llama-cpp-python) (4.5.0)
Building wheels for collected packages: llama-cpp-python
Building wheel for llama-cpp-python (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for llama-cpp-python (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [308 lines of output]
  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  -- The C compiler identification is unknown
  CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
    No CMAKE_C_COMPILER could be found.

    Tell CMake where to find the compiler by setting either the environment
    variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
    the compiler, or to the compiler name if it is in the PATH.

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'Visual Studio 17 2022 x64 v143' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator

      Visual Studio 17 2022

    could not find any instance of Visual Studio.

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Visual Studio 17 2022 x64 v143' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  -- The C compiler identification is unknown
  CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
    No CMAKE_C_COMPILER could be found.

    Tell CMake where to find the compiler by setting either the environment
    variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
    the compiler, or to the compiler name if it is in the PATH.

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'Visual Studio 16 2019 x64 v142' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator

      Visual Studio 16 2019

    could not find any instance of Visual Studio.

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Visual Studio 16 2019 x64 v142' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 15 2017 x64 v141)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  -- The C compiler identification is unknown
  CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
    No CMAKE_C_COMPILER could be found.

    Tell CMake where to find the compiler by setting either the environment
    variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
    the compiler, or to the compiler name if it is in the PATH.

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 15 2017 x64 v141)' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'Visual Studio 15 2017 x64 v141' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator

      Visual Studio 15 2017

    could not find any instance of Visual Studio.

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Visual Studio 15 2017 x64 v141' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'NMake Makefiles (Visual Studio 17 2022 x64 v143)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Running

     'nmake' '-?'

    failed with:

     绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆\x82

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'NMake Makefiles (Visual Studio 17 2022 x64 v143)' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'NMake Makefiles (Visual Studio 16 2019 x64 v142)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Running

     'nmake' '-?'

    failed with:

     绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆\x82

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'NMake Makefiles (Visual Studio 16 2019 x64 v142)' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'NMake Makefiles (Visual Studio 15 2017 x64 v141)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Running

     'nmake' '-?'

    failed with:

     绯荤粺鎵句笉鍒版寚瀹氱殑鏂囦欢銆\x82

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'NMake Makefiles (Visual Studio 15 2017 x64 v141)' generator - failure
  --------------------------------------------------------------------------------

                  ********************************************************************************
                  scikit-build could not get a working generator for your system. Aborting build.

                  Building windows wheels for Python 3.10 requires Microsoft Visual Studio 2022.
  Get it with "Visual Studio 2017":

    https://visualstudio.microsoft.com/vs/

  Or with "Visual Studio 2019":

      https://visualstudio.microsoft.com/vs/

  Or with "Visual Studio 2022":

      https://visualstudio.microsoft.com/vs/

                  ********************************************************************************
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
ERROR: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects

Have you installed "C++-CMake-Tools for Windows" in Visual Studio installer?

I just installed "C++-CMake-Tools for Windows" , it can run. tanks

can I ask you another question？
After installing llama-cpp-python successfully,I want to install hnswlib, then a similar problem has arisen: error: subprocess-exited-with-error
× Building wheel for hnswlib (pyproject.toml) did not run successfully.
Do you know what’s wrong with it and how to solve it?

This coping comment is for me
https://postgresweb.com/python-error-which-is-required-to-install-pyproject-toml-based-projects
https://visualstudio.microsoft.com/en/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16
I solved it by following the link above
However, is it strange that it has been working without installing a build tool until now?

It is not strange. I have no cmake.exe on my PC (except in other git repos, which are not on path), but pip install runs cmake.

I run it again in PC , run successfully. Thank you.

Hi, I'm running into the same type of error on Ubuntu Linux. I've installed Visual Studio Build Essentials on linux, updated GCC and Cmake and still get the ERROR: "Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects."
Is there a similar solution on Ubuntu Linux that will resolve this. Really need it fixed. Thanks in advance.

Sorry, I'm  a newbie ,didn't know how to slove it on Ubuntu Linux.

as a side note
VS was VS2019 not VS2022
Doesn't work on VS2022 but compiled fine on VS2019
The important thing is
MSVC v142 vs2019 c++ x64/x86 build tool
windows 10 SDK
windows C++ CMake tool
I think it's these 3
Be careful matching your VS version lol

Good info, thanks.
It would be great if we can collect all the different Windows compilation notes and tips in one place and add them to the README.md as a pull request.
Windows is always going to be difficult to support as llama.cpp and python are really built around Gnu build chains. I've been tagging all Windows issues with the windows tag so that we don't lose them.

Thank you to everyone involved in the development
It's probably he who caused the problem, llama_cpp_python-0.1.51
So delete it once with "pip uninstall llama-cpp-python"
It is better to newly "pip install llama-cpp-python"
Otherwise, it may not be changed to llama_cpp_python-0.1.52 in the Python folder Especially be careful of downstream applications

Then i investigated.
I tried with llama cpp python 0.1.55
Downloaded the VS2022 installer.
Uncheck all workloads and select the following in individual components
Windows10 SDK(10.0.20348.0)
MSVC v142 vs2019 c++ x64/x86 build tool(v14.29-16.11)
MSVC v143 vs2022 c++ x64/x86 build tool(new version) ←Absolutely in
windows C++ CMake tool
C++ core functionality
It worked if I just choose this one.
Even if VS2019 installer is removed from the site, it's ok.
If you're on Windows 11, the SDK could be the 11 version.


[5.5] [Security] Close remember_me Timing Attack Vector

The current remember_me token verification process leaves the application open to a timing attack.
Since the default is for the token to be stored as a cookie and for cookies to be encrypted, an attacker would have to know the application secret to exploit this. However, should a custom guard be used or cookies not be encrypted, it becomes possible to tease this value out.
The proposed change switches to comparing the token using a constant-time comparison. This makes it impossible to learn the value of the token by timing responses, independently of guard or encryption settings.

After upgrading I get this error:
hash_equals(): Expected known_string to be a string, null given (View: /home/vagrant/Code/the-gate/resources/views/welcome.blade.php)
In this line:
return $model && hash_equals($model->getRememberToken(), $token) ? $model : null;

A recent PR change the way remember token updated on logout, now during logout it will reset to null which would cause the issue

#21328

@crynobone can you please link me to this change? it seems like the remember_me token is renewed on logout, but never set to null!

@taylorotwell
How about previous versions like 5.2?  was it fixed?

@at-phucnguyen I don't think 5.2 is getting any more updates, even security ones. If you're worried about security, upgrade as soon as you're able. You're missing out on far more than just this one issue.

A similar fix should be applied to 5.1 given it's LTS for security fixes exists until June 2018?

Has the (possible, not reproduced by me) introduced bug reported by @Naxon being addressed?

Is #21323 the fix?

How about 5.4?

Security updates stopped in January for 5.4.
https://laravel.com/docs/5.6/releases#support-policy


us-api.i.posthog.com Error while using PraisonAI (--agents)

I am getting the errors below when using the --agents switch with fabric. I think this is probably because the tool is reaching some sort of limit while doing Internet Search or similar. How to avoid it? The tool comes back with the answers but I am guessing with limited information since we run into limitations. I am using Deepseek v2 for OpenAI and the usual Google Keys for YT and Google API,
2024-05-23 12:07:37,907 -<PHONE_NUMBER>29152 - _common.py-_common:120 - ERROR: Giving up send_request(...) after 4 tries (requests.exceptions.ConnectionError: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f198c61d550>: Failed to establish a new connection: [Errno 111] Connection refused')))
2024-05-23 12:07:38,170 -<PHONE_NUMBER>36352 - _common.py-_common:120 - ERROR: Giving up send_request(...) after 4 tries (requests.exceptions.ConnectionError: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f198c563c10>: Failed to establish a new connection: [Errno 111] Connection refused')))
2024-05-23 12:07:38,841 -<PHONE_NUMBER>58240 - _common.py-_common:120 - ERROR: Giving up send_request(...) after 4 tries (requests.exceptions.ConnectionError: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f198c503d50>: Failed to establish a new connection: [Errno 111] Connection refused')))
2024-05-23 12:07:39,284 -<PHONE_NUMBER>43648 - _common.py-_common:120 - ERROR: Giving up send_request(...) after 4 tries (requests.exceptions.ConnectionError: HTTPSConnectionPool(host='us-api.i.posthog.com', port=443): Max retries exceeded with url: /batch/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f198c502250>: Failed to establish a new connection: [Errno 111] Connection refused'))

Yes. Fabric folder shows a test.yaml file that has all the PraisonAI agents needed for the request to work.

You can set the environment variable EC_TELEMETRY to false or some other non true boolean value to disable the anonymous embed chain telemetry collection.

Let me try and get back to you.

You can set the environment variable EC_TELEMETRY to false or some other non true boolean value to disable the anonymous embed chain telemetry collection.

Canyou tell me where is that EC_TELEMETRY located? Thanks

I tried creating a System Env with a value of False but it failed. Same error messages.

https://github.com/embedchain/embedchain/blob/9544c69c55618b9ff0e3d413b9a246647a0338c3/embedchain/telemetry/posthog.py#L21


support for include() macro

The include macro allow to renders another page inside the same page as part of the same page:
example:
Page1.md
## this is the page 1

loren ipsum etc etc

include(page2.md)

PAge2.md
### this is page 2

lorem ipsum etc

Result will be when invokes "page1" (and page2 is also another page apart of) :

this is the page 1
loren ipsum etc etc
this is page 2
lorem ipsum etc

I have no need for this currently, and little time, so I will not implement this any time soon.
I am open to pull requests though!

I will try to explain exactly why you need this, based on your own words.
This project takes time from you that you don't have, and we can appreciate that collaboration is a breath of fresh air for that time that doesn't exist since you are just one man
Other wiki systems are smaller and offer much more, like raito which includes this feature that is requested... as well as many others that it doesn't have... by example git integration is implicit if you just put raito file in your git root and that's all!
With this statement of yours of "I don't need" and adding "I don't have time" it is clear that you make it seem like it is not an option but rather to play around a bit or use it as a base for new wiki systems
But if you manage to include this feature I could include another one, if I ask for it it is because I know more about how to make a permission system than how to render pages within pages, which is something very necessary to avoid duplicates in a wiki
i clone this git and check the code.. some pieces are too advanced for me cos i am not coder but i try to make an effor but if you dont have time i guess i can ask to no one else.. right ? cos i cant see other here ...
i hope you help.. i will try it


Bump version

I'll put this back in draft because it's still very messy and I think requires a build step for the icon components before they can begin to be useful


TLS configuration for Slack service for Mattermost compatibility

Hi,
Mattermost is compatible with slack messages json format so I've patched the slack services to add TLS configuration parameters.
Now alerts can be sent to self hosted Mattermost with custom certificates.
Required for all non-trivial PRs

[X] Rebased/mergable
[x] Tests pass
[x] CHANGELOG.md updated
[x] Sign CLA (if not already signed)

I've updated the pr to add all your requested changes. Is it good to you ?

done

@seuf Thanks! :tada:


Several updates due to Fluo moving to Apache

Muchos now downloads Fluo from Apache mirror
Updated copyright headers
Updated fluo.properties to match serveral new changes in Fluo
Cleaned up muchos.props by removing maven config
Updated metrics settings in InfluxDB config
Remove fluo-env.sh file as muchos should no longer set this
Added fetch.sh command to get Fluo dependencies

Did you intend this to go into apache-prep branch?

@keith-turner, yes i did

Ok, I didn't notice it was not going to master until right after I merged.


Location of models is ambiguous

Personally I like to know where external files are stored on my system and even though I'm trying bark within a VENV it is not clear where the models are downloaded to.
It would be "nice" to have models stored inside a models/ folder within the root of the project, rather than some black hole location that is created from the S3 download.
I see there is an option to set ENV variables for the paths to the models, but that is not documented in your README, and one has to be dissecting your code to find their references.

Thanks - added to readme.
https://github.com/suno-ai/bark/blob/main/README.md#how-do-i-specify-where-models-are-downloaded-and-cached


[typetraits.inl] msvc __is_aggregate error

I noticed a little compiler issue with msvc and the __is_aggregate function.
For some reason it generates a C2760 Error
syntax error: '__is_aggregate' was unexpected here; expected 'expression'   typetraits.inl   165
I am not sure what happens here, maybe not supported, may be a compiler bug.
Anyway, I am not using any typetraits, but since it is included by bx.h the compiler complains.
For now I fixed it by removing the entire function.
I am using VS2022 with C++20. I you need any other information please let me know.

A little testing reveals a simple fix:
template<typename Ty>
inline constexpr bool isAggregate()
{
	return !!__is_aggregate(Ty);
}

Not sure why, but that seems to fix it. I guess it is bug after all.
A few quick tests confirm that the function can detect aggregate types correctly.
That being said, I am not very well versed with this typetrait stuff..

I noticed a little compiler issue with msvc and the __is_aggregate function.

You get this compiler error without instantiating template?

Can you reproduce the issue on compiler explorer?
https://godbolt.org/z/986fraTdj
I just tried it and not getting any issue with different versions of MSVC compiler.

So i can reproduce it from msvc v19.30 onwards (i am on latest).
Interestingly only with C++20 enabled.
https://godbolt.org/z/KWYh9888W
Perhaps it got deprecated?
Also, Instantiation is not necessary just code generation in general.
Apparently the compiler will generate template functions, even if not in use...

Yeah, your fix with !! is fine, no need to change, I just want to understand the issue, and then do fix.
I also noticed __is_aggregate changes behavior depending on C++ standard set. For example I tested between 14 vs 17.

Works like charm now. Thanks :)


TokenProviders allow for loops

Describe the bug
container.registerType(<token>, <the same token>); works, leading to a stack overflow error when you try to resolve the token.
To Reproduce
Just try it.
Expected behavior
This should probably throw an error as it's unlikely to be a useful thing. That does not make it impossible to create larger resolution loops, which we might consider checking for.

Good catch. We should probably walk token provider graphs and check for cycles when registering this way. I'll work on a PR for this


🐛 [firebase_messaging] onRefreshToken doesn't invoke when the app opens for the first time.

Bug report
When the app is opened for the first time, the onRefreshToken callback doesn't get called.
Steps to reproduce
Uninstall the app (if it is already installed) and run the following code.
The print statement doesn't print the token.
void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await Firebase.initializeApp(
    options: DefaultFirebaseOptions.currentPlatform,
  );

  FirebaseMessaging.instance.onTokenRefresh.listen((token) {
    print('token = $token'); // Doesn't print
  });

  runApp(...);
}

Expected behavior
The onRefreshToken should fire when the app opens (launches) for the first time.
Version:
firebase_messaging: ^14.0.3

Additional context:
I have this code in a java file and this does print the new token:
public class MessagingService extends FirebaseMessagingService {
    @Override
    public void onNewToken(@NonNull String s) {
        super.onNewToken(s);
        Log.i("Tag", "New FCM token = " + s);
    }
}

@iLoveDocs
On what platform are you seeing this behavior ?
Can you also provide flutter doctor -v and verify the same using latest plugin version ?

Thanks for the update. Keeping this issue open and labeling based on the report.

Also seeing this on firebase_messaging: ^14.5.0 platform web. I have to use getToken on each run and update the token in my db as it is different than the previous.


custom interfaces from 2018 to 2017

@L-Leite Hi Compertum est, quod ego potest mutare dapibus 2017, et in veteri 2018 dapibus est an bene ut reponat

Interface New 2018 Old Interface 2017 Old Game 2017 New Interface 2018

you can try replacing the files in ui_gfx

Yes only 1 function does not work

I do not know how to do this so that the cases are displayed
or remove this function and return a new one

cases aren't implemented in master server yet

I play on the EU/RU server and this function doesn't work here


osx arm64 support

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe:

It looks like the 'papilo' output doesn't have any tests.
License is not an SPDX identifier (or a custom LicenseRef) nor an SPDX license expression.

Documentation on acceptable licenses can be found here.

@conda-forge-admin, please rerender

@conda-forge-admin, please rerender

I think arm64 fails at the moment because of ZIMPL. ZIMPL’s cmake uses the executables of bison and flex to output their versions but due to croos-compilation the executables cannot run. Is it possible to skip arm64 for ZIMPL so we can investigate even further what needs to be fixed @AntoinePrv ? Maybe with
build:
      # zimpl is not built in Windows since gmp is not available on
      # conda-forge so this test is skipped. Details were left for
      # the path to zimpl if we find a solution in the future.
      skip: True  # [win and arm64]

?

I can see that this would not work, we could try to install brew and see if it works then. otherwise just deactivating zimpl should be fine. i will check this for the next release also

@conda-forge-admin, please rerender

I can see that this would not work, we could try to install brew and see if it works then. otherwise just deactivating zimpl should be fine. i will check this for the next release also

I will try some changes out to see what we need to improve until the next release 👍

@conda-forge-admin, please rerender

Is it possible to re-enable ZIMPL?


Remove punctuation from corpora

Evaluate if removing the punctuation from the corpora leads to better results.

I'll do it with SpaCy

Done with the new tokenizer


Search by Language Family - listed language for a chosen family ends with " ( societies)". Correct?

@Bibiko - it is intentional that the language families are listed as "Abhaz-Adyge (2 societies)", "Afro-asiatic (104 societies)" -- we wanted to give people an indication of how many societies are in D-PLACE for each language family

@Bibiko @stefelisabeth Oh, I see what you mean Hans. There should either be an integer before "societies", or we should cut the society count at the language level (less useful, I think, then at the Language family level).

Done in #303


fs: Add fchstat and chstat callback into mountpt_operations

Summary
and implement all status related change function. the individual
file system change will provide in other upcoming patchset.
Impact
Support the new API(chmod, chown, utimes...)
Testing
Please ignore these case warning:
Error: /home/runner/work/incubator-nuttx/incubator-nuttx/nuttx/fs/nfs/nfs_vfsops.c:850:12: error: Mixed case identifier found
Error: /home/runner/work/incubator-nuttx/incubator-nuttx/nuttx/fs/nfs/nfs_vfsops.c:1022:16: error: Mixed case identifier found
Error: /home/runner/work/incubator-nuttx/incubator-nuttx/nuttx/fs/nfs/nfs_vfsops.c:1422:13: error: Mixed case identifier found
Error: /home/runner/work/incubator-nuttx/incubator-nuttx/nuttx/fs/nfs/nfs_vfsops.c:1820:11: error: Mixed case identifier found
Error: /home/runner/work/incubator-nuttx/incubator-nuttx/nuttx/fs/nfs/nfs_vfsops.c:1821:11: error: Mixed case identifier found
Error: /home/runner/work/incubator-nuttx/incubator-nuttx/nuttx/fs/nfs/nfs_vfsops.c:1832:8: error: Mixed case identifier found
Error: /home/runner/work/incubator-nuttx/incubator-nuttx/nuttx/fs/nfs/nfs_vfsops.c:1853:42: error: Mixed case identifier found

CI fail due to libstdc++ call utimensat wrongly:
https://github.com/llvm/llvm-project/blob/main/libcxx/src/filesystem/filesystem_common.h#L30-L36
Let's wait @Donny9 ' xxxat patch to fix this issue first.

CI fail due to libstdc++ call utimensat wrongly:
https://github.com/llvm/llvm-project/blob/main/libcxx/src/filesystem/filesystem_common.h#L30-L36
Let's wait @Donny9 ' xxxat patch to fix this issue first.

Since utimensat need more time to support, I add a new patch to temporarily undefine UTIME_OMIT in C++ to avoid libc++ compiler error. The CI should pass and the PR is ready to merge, @acassis and @gustavonihei please take a look.

It pass CI except "Mix case" warning, @gustavonihei please take a look.


Export function fix

Hi, I've made some few changes to the 3 export functions.
First, I changed "tempArr" arrays to "listItem" objects, The reason for this is that javascript arrays are not like PHP arrays, you shouldn't use them to store Key/Value pairs. Arrays should be used only for flat lists, Objects should be used for Key/Value maps.
One of the problem in using Arrays instead of objects is that your output isn't serializable, which is a real problem for an export function.
console.log(JSON.stringify($('#sTree2').sortableListsToArray()));

// Before
[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]]

// Now
[{"id":"item_a","order":0},{"id":"item_b","order":1},{"id":"item_b1","parentId":"item_b","order":0},{"id":"item_b2","parentId":"item_b","order":1},{"id":"item_b3","parentId":"item_b","order":2},{"id":"item_b4","parentId":"item_b","order":3},{"id":"item_b5","parentId":"item_b","order":4},{"id":"item_c","order":2},{"id":"item_c1","parentId":"item_c","order":0},{"id":"item_c2","parentId":"item_c","order":1},{"id":"item_c3","parentId":"item_c","order":2},{"id":"item_c4","parentId":"item_c","order":3},{"id":"item_c5","parentId":"item_c","order":4},{"id":"item_d","order":3},{"id":"item_d1","parentId":"item_d","order":0},{"id":"item_d2","parentId":"item_d","order":1},{"id":"item_d3","parentId":"item_d","order":2},{"id":"item_d4","parentId":"item_d","order":3},{"id":"item_d5","parentId":"item_d","order":4},{"id":"item_e","order":4},{"id":"item_f","order":5}]

All other changes are pretty self explanatoring

Use 0 indexed counter for order to prevent having an undefined first
child at index 0
Changed "branchOrder" to "order" for coherency between Array and
Hierarchy export
Removed unnecessary variable declarations that shadowed arguments
ToString export was not properly escaping component and ampersand separator didn't need to be encoded

The problem with order = 1 was in fonction toHierarchy when you had arr[order++] = listItem it was generating child lists with a null items at index 0.
If you revert those two lines you'll have this.
console.log(JSON.stringify($('#sTree2').sortableListsToHierarchy()));

[
   null,
   {
      "id":"item_a",
      "order":1,
      "children":[

      ]
   },
   {
      "id":"item_b",
      "order":2,
      "children":[
         null,
         {
            "id":"item_b1",
            "order":1,
            "children":[

            ]
         },
         {
            "id":"item_b2",
            "order":2,
            "children":[

            ]
         },
         {
            "id":"item_b3",
            "order":3,
            "children":[

            ]
         },
         {
            "id":"item_b4",
            "order":4,
            "children":[

            ]
         },
         {
            "id":"item_b5",
            "order":5,
            "children":[

            ]
         }
      ]
   },
   {
      "id":"item_c",
      "order":3,
      "children":[
         null,
         {
            "id":"item_c1",
            "order":1,
            "children":[

            ]
         },
         {
            "id":"item_c2",
            "order":2,
            "children":[

            ]
         },
         {
            "id":"item_c3",
            "order":3,
            "children":[

            ]
         },
         {
            "id":"item_c4",
            "order":4,
            "children":[

            ]
         },
         {
            "id":"item_c5",
            "order":5,
            "children":[

            ]
         }
      ]
   },
   {
      "id":"item_d",
      "order":4,
      "children":[
         null,
         {
            "id":"item_d1",
            "order":1,
            "children":[

            ]
         },
         {
            "id":"item_d2",
            "order":2,
            "children":[

            ]
         },
         {
            "id":"item_d3",
            "order":3,
            "children":[

            ]
         },
         {
            "id":"item_d4",
            "order":4,
            "children":[

            ]
         },
         {
            "id":"item_d5",
            "order":5,
            "children":[

            ]
         }
      ]
   },
   {
      "id":"item_e",
      "order":5,
      "children":[

      ]
   },
   {
      "id":"item_f",
      "order":6,
      "children":[

      ]
   }
]

Ok thanks, any new idea?

The baseElement trick worked like a charm.
However, I had to do some other changes to successfully integrate your library in my project

I added an option "ignoreClasses" because my list items contained buttons, and I needed to be able to click thoses without entering drag mode
I missed an "onDragStart" callback
There is a problem with the "complete" callback. It fires before the drop animation being completed, when the placeholder and the hint are still appended on the list and the dragged item isn't.
I modified the "dragging" function so if it has an isAllowed callback it made smarter choices about insertion point
I added special css classes like "no-nesting" and "force-rooting" so that most simple trees can be implemented without using "isAllowed" callback.

I'll try to take some time this week-end to put that in different branches and send you pull requests.

I would like to see that. It sounds good.


Swapping speakers for two talks (MaaS... and Anatomy...)

Signed-off-by: bwplotka<EMAIL_ADDRESS>

:+1:


Cleanup ares_library_init from Envoy ProcessWide::ProcessWide()

Title: Cleanup ares_library_init from Envoy ProcessWide::ProcessWide()
Description: With Envoy DNS as an extension now(https://github.com/envoyproxy/envoy/pull/17479/), c-ares DNS library may not be needed in some cases. Thus, we should not call ares_library_init(ARES_LIB_INIT_ALL) in ProcessWide::ProcessWide().
Same for call ares_library_cleanup() in ProcessWide::~ProcessWide()
https://source.corp.google.com/piper///depot/google3/third_party/envoy/src/source/exe/process_wide.cc;rcl=404246718;l=20
https://source.corp.google.com/piper///depot/google3/third_party/envoy/src/source/exe/process_wide.cc;rcl=404246718;l=46

Just an initial thought. This ares_library_init() can be moved to the c-ares DNS resolver object creation time, like here:
https://github.com/envoyproxy/envoy/blob/f76ae0223ac78ff54b1d57ae88b41758a6494e9d/source/extensions/network/dns_resolver/cares/dns_impl.cc#L26
And ares_library_cleanup() can be called in the e c-ares DNS resolver object destruction time, like here:
https://github.com/envoyproxy/envoy/blob/f76ae0223ac78ff54b1d57ae88b41758a6494e9d/source/extensions/network/dns_resolver/cares/dns_impl.cc#L38

Closed by: https://github.com/envoyproxy/envoy/pull/21884


SFU Optimal Course Picker

Description:

Contains degree requirements and guesses the best classes to take that fill these requirements and predicts future classes that may be offered.
Takes into account pre-reqs, grades, courses offered only in specific terms, course time conflicts]

Other comments:

SFU calendar has this data available
Could be difficult to predict future classes due to randomness
Maybe have a blank elective feature to combat randomness

Questions:

How do we get the data reliably?
How can we ensure that our recommendations are good/valid?

API Link: http://www.sfu.ca/data-hub/api.html

API Link: http://www.sfu.ca/data-hub/api.html


impl IntoFuture for IntoIterator?

By analogy to the JoinN implementations, does it make sense for IntoIterator to be IntoFuture via join_all?

An interesting idea! I don't think this can be done, however, due to coherence :(

I'm not sure what "coherence" means in this context. Can you direct me to a reference?

Updated: Ilya directed me to
https://aturon.github.io/blog/2017/02/06/specialization-and-coherence/

Would an implementation for Vec or &[IntoFuture] work, then?

As an alternative, might it be possible to allow for iter().collect::<JoinAll<_>> by adding impl FromIterator for JoinAll?

I looked into this, and was initially optimistic, because the following passes all of the tests:
+impl<I> FromIterator<I::Item> for JoinAll<I>
+    where I: IntoIterator,
+          I::Item: IntoFuture,
+{
+    fn from_iter<X: IntoIterator<Item=I::Item>>(iter: X) -> Self {
+        let elems = iter.into_iter().map(|f| {
+            ElemState::Pending(f.into_future())
+        }).collect();
+        JoinAll { elems: elems }
+    }
+}
+
 pub fn join_all<I>(i: I) -> JoinAll<I>
     where I: IntoIterator,
           I::Item: IntoFuture,
 {
-    let elems = i.into_iter().map(|f| {
-        ElemState::Pending(f.into_future())
-    }).collect();
-    JoinAll { elems: elems }
+    i.into_iter().collect()
 }

...ie, join_all can easily be implemented in terms of FromIterator for JoinAll.
But in practice, actually using into_iter().collect::<JoinAll<_>>() is challenging, because inference fails in seemingly simple cases, such as:
// Fails with "error[E0283]: type annotations required: cannot resolve `_: std::cmp::Eq`":
assert_done(|| vec![f_ok(1), f_ok(2)].into_iter().collect::<JoinAll<_>>(), Ok(vec![1, 2]));
// Succeeds:
assert_done(|| join_all(vec![f_ok(1), f_ok(2)]), Ok(vec![1, 2]));

Part of the complexity of the inference would seem to stem from the fact that JoinAll places unnecessary bounds on its type parameters. The body of the definition of JoinAll does not actually refer to IntoIterator at all:
pub struct JoinAll<I>
    where I: IntoIterator,
          I::Item: IntoFuture,
{
    elems: Vec<ElemState<<I::Item as IntoFuture>::Future>>,
}

...so it would seem that it could be simplified to:
pub struct JoinAll<I>
    where I: IntoFuture,
{
    elems: Vec<ElemState<<I as IntoFuture>::Future>>,
}

In that case, the inference for into_iter().collect::<JoinAll<_>> would be much simpler, because the underscore would represent the iterated type, rather than the IntoIterator type.
Certainly a "major version bump" type change, but maybe interesting to explore?

Mm... I guess my previous comment re-discovers #285. After re-implementing/applying #286, I was able to confirm that:
assert_done(|| vec![f_ok(1), f_ok(2)].into_iter().collect::<JoinAll<_>>(), Ok(vec![1, 2]));

is inferred correctly.
So perhaps once #286 lands this can be re-opened? I've found that using combinators is more legible than using static methods, as static methods require indentation rather than chaining.

@nyarly ah yes it is indeed possible to do this for concrete types like Vec and slices, but I actually think @stuhood's idea is a great one and could fit very nicely here!
It's a bit of a bummer though that this may be blocked on https://github.com/alexcrichton/futures-rs/pull/286, but thanks for the investigation @stuhood!

@alexcrichton : Thanks! Worth re-titling and re-opening, or shall we open a new issue with regard to impl FromIterator for JoinAll?

Makes sense to me to retitle, @nyarly do you agree that such an impl would solve your original use case?

Honestly, I'm not sure. I'm looking at:
// I'm eliding a bunch of "and_then" into a pretend url2future! macro
future::join_all(urls.iter().map(|url| url2future!(url)).collect::<Vec<_>>())

I'm not sure if
urls.iter().map(|url| url2future!(url)).collect::<JoinAll<_>>()

is preferable?
If Vec<IntoFuture> were InfoFuture I could
urls.iter().map(|url| url2future!(url))

Is there another benefit to FromIterator for JoinAll?

@nyarly : If you're executing in a position that is expecting an (Into)Future, it's possible (unconfirmed) that inference would make the explicit parameter to collect unnecessary: so it would be (imaginary left hand side):
let f: impl Future<_> = urls.iter().map(|url| url2future!(url)).collect();
// vs
let f: impl Future<_> = urls.iter().map(|url| url2future!(url));


Convert to Swift 3

Shall we?

My apologies, I missed this pull request. Thank you very much for taking the time to update this project. All help is much appreciated.


Remove redundant G.Element == D.CodeUnit check

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Jellyfin update failing

Please verify that you have read and understood the guidelines.
Yes
A clear and concise description of the issue.
Jellyfin has recently updated the ffmpeg codec, however, the helper script still uses an older version. This causes updating to fail.
What settings are you currently utilizing?
Default Settings
Which Linux distribution are you employing?
Ubuntu 24.04
If relevant, including screenshots or a code block can be helpful in clarifying the issue.
No response
Please provide detailed steps to reproduce the issue.
No response

I thought this issue was fixed
https://github.com/community-scripts/ProxmoxVE/issues/216

@TheFlyingBanshee please confirm you used the correct script from this repository. Otherwise will close this issue.


Extra spaces are not applied same way as jsbeautifier.org

From previous editors I always got a space before and after > in css.
This works on http://jsbeautifier.org/ :
.main.row > .column.segment {
  width: 100 % ;
  flex: 1;
  overflow: auto;
  margin - bottom: 0!important;
}

but not with beautifier in vscode:
.main.row>.column .segment {
  width: 100%;
  flex: 1;
  overflow: auto;
  margin-bottom: 0 !important;
}

I tried with only the "indent_size": 2, and also all default settings from js-beautify git hub instruction.

Hi @PD75, http://jsbeautifier.org/ beautifies javascript and HTML in the editor. What you are seeing is the result of beautifying your css as javascript. You can see on line 5 that it has created an invalid rule by putting spaces around the hyphen (which it is interpreting as a minus) as well.
http://jsbeautifier.org/ will beautify your css in the edit window only when it is enclosed in a <style> tag. We use the same code in the back end to beautify code. (As noted at the bottom of http://jsbeautifier.org/)
In order to (hopefully) support your request however, I have created a pull request (beautify-web/js-beautify#902) that will add an option to put spaces around the separator(s).

@HookyQR, thanks, missed that completely. Appreciate the extra effort :+1:

@PD75 you'll be happy to know that the PR I submitted for this in js-beautify has been rolled into the latest version. The setting is space_around_selector_separator and defaults to false. When set to true it will put spaces around >, +, and -.

@HookyQR Thanks, I will have look ASAP to see if I have the update yet.


Production mode

Hi,
The production mode doesn't seem implement yet.
Best

How did you manage to use production mode? It seems I can only use that lib in homologation mode!

Alright, I figured out I needed an additional argument to the Payline constructor (see Readme) and to provide my own wsdl, see https://support.payline.com/hc/fr/articles/115009551688-Récupération-des-fichiers-WSDL


Sprite unscaled width and height

Phaser gives us the scale, width and height properties. But it doesn't give us access to the original dimensions of the Sprite/Button, etc.
If I have a 30x30 Sprite and I'm currently animating its scale (let's say it's 0.5 at the moment), its width and height are 15. If I want to position a second element below it in this moment, after the first element's animation is finished, the second one is not below it. It's 15px above its bottom since it was put there while the animation was going.
To avoid that, I need to do the following
var s = firstElem.scale;
firstElem.scale.setTo(1);
var w = firstElem.width,
    h = firstElem.height;
firstElem.scale = s;

secondElem.x = firstElem.x + w;
secondElem.y = firstElem.y + h;

That is pretty annoying. It would be nice if visible objects with scale had originalWidth and originalHeight or maybe unscaledWidth and unscaledHeight properties.
Thanks for your attention!

The the way width / height / scale works is directly influenced by Pixi. However, you can get the values you need from the texture, which will always return the original dimensions, regardless of the transforms: sprite.texture.width and sprite.texture.height.


[Feedback] az survey: New command for CLI survey

Related command

az survey
Description

Here's the Intercept survey spec
To be simple:

We will present a message inviting users to fill in the intercept survey. Once the invitation has been displayed, it will not be displayed again in 180 days.
We offer customers the possibility to opt-out and not receive the message anymore with AZURE_CORE_SURVEY_MESSAGE=false or az config set core.survey_message=false
We provide a new command az survey for customer to open and fill in the survey

History Notes

[Core] Add CLI survey invitation
[Feedback] az survey: New command for CLI survey

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

az survey

/azp run

Let's not forget the amazing coloring. 😉

Elegant and nice-looking implementation!


rc.1 blog post

Signed-off-by: Kent Rancourt<EMAIL_ADDRESS>

@radu-matei thanks for the feedback -- I incorporated it into f3f933cc7ee3dde73748a82a7b41d98ba1c7e9d6.


[framework] make hit slop based on device pointer kind for drag/pan/scale gestures

Description
Currently the framework uses fairly large "hit slop" values to disambiguate taps from drags/pans. This makes sense on touch devices where the interaction is not very precise, on mice however it can feel as if the UI is lagging. This is immediately noticeable on our infra dashboard, where it takes almost half of a grid square of drag before the actual drag kicks in.
One potential solution is to always use smaller constants depending on whether the interaction is mouse or touch based. The only reasonable choice is to use the pointer device kind and not target platform - same platform can have different input sources. This requires exposing the pointer device kind in a few new places in several of the gesture detectors, and using the enum to compute the correct hit slop from an expanded set of constants.
This almost works, however there are a few places (notably ListViews) which uses the touch hit slop as a default value in scroll physics. It does not seem like it will be easy to disambiguate a user provided scroll physics constant from the default and/or adjust it somehow - this might require significant changes to scroll physics which I have left out of this PR.
This PR does not adjust:
kTouchSlop used in scroll_physics.dart's minFlingDistance
kTouchSlop used in PrimaryPointerGestureRecognizer/LongPressGestureRecognizer
Before:

After:

/cc @gspencergoog @dkwingsmt for desktop and gesture stuff.

Of course the other question is should the mouse slop be smaller? We could always file an issue and ask for feedback

Friendly ping @gspencergoog @dkwingsmt

Hello @jonahwilliams. I am using VelocityTracker for a package and this is a breaking change for me.
Looking at the code it looks like VelocityTracker doesn't depend in PointerDeviceKind to calculate the velocity no?
Could I use VelocityTracker(PointerDeviceKind.unknown) directly?

The pointer device type is used to configure the amount of touch/drag/pan slop. If you use unknown you will always have touch level low precision.

This change broke builds involving any library that used VelocityTracker() without the required parameter.
Any chance this can be modified to take an optional parameter defaulting to PointerDeviceKind.touch?
Here's an example of a popular plugin that broke when building against beta channel: https://github.com/akshathjain/sliding_up_panel/issues/193

This change broke another popular plugin https://github.com/jamesblasco/modal_bottom_sheet/issues/69

To avoid being broken by changes in Flutter, consider adding the tests of your packages to https://github.com/flutter/tests as per policy here: https://flutter.dev/docs/resources/compatibility.

I am using flutter with the mp_chart library and this is the error I am getting
/opt/hostedtoolcache/flutter/1.22.0-12.1.pre-beta/x64/.pub-cache/hosted/pub.dartlang.org/optimized_gesture_detector-0.0.5/lib/scale.dart:229:55: Error: Too few positional arguments: 1 required, 0 given.
_velocityTrackers[event.pointer] = VelocityTracker();


[cinder-csi-pugin] Support reconcile volume attachements

The binaries affected:

[ ] openstack-cloud-controller-manager
[x] cinder-csi-plugin
[ ] k8s-keystone-auth
[ ] client-keystone-auth
[ ] octavia-ingress-controller
[ ] manila-csi-plugin
[ ] manila-provisioner
[ ] magnum-auto-healer
[ ] barbican-kms-plugin

What this PR does / why we need it:
For supporting VolumeAttachment reconcile, adding capability.
Related: https://github.com/kubernetes-csi/external-attacher/pull/184
Release note:

[cinder-csi-pugin] Support LIST_VOLUMES_PUBLISHED_NODES capability.

This change is

/ok-to-test

Does this require a minimal version of external-attacher in order to support this capability?

good point,
we are using 1.4.0
https://github.com/kubernetes/cloud-provider-openstack/pull/974/files#diff-b50205da73c11460aff7f62130649d99R50
and the feature is after that, maybe 2.0.0 or later, so we should incresae the attacher version
I have a https://github.com/kubernetes/cloud-provider-openstack/pull/974
which do the snapshot version increase, maybe create a new one for provisioner or combine those 2 together

@jichenjc so could we hold this one until yours are merged?

/hold

@lingxiankong thanks ,did so just now

@jichenjc it's ok to remove hold now?

/hold cancel

/lgtm

/approve

/test pull-cloud-provider-openstack-test

@takmatsu pls rebase on latest master

/test cloud-provider-openstack-multinode-csi-migration-test

/lgtm


Code help

Hi Dr. Ding, can you provide the code for the safe reinforcement learning method in the comparative experiment? (CPO, CUP, safety laye any of them is OK, about OPF with Battery Energy Storage environment), if you are willing to provide it. Thank you very much!

Of course, OK! However, I didn't clean up that part of the code and it could be a little confusing for you. So I am not going to present them in github. If you insist, please send me your email address and I will email it to you.

E-mail<EMAIL_ADDRESS>It would be better to provide a simple readme for the code.
Thank you very much for your help. Best wishes!

sent


Add methods to OwnedResource

hasReadAccess()
hasWriteAccess()
Document these in the article written in https://github.com/freme-project/FREMECommon/issues/15

Implement this in the new architecture only.

TODO: document

done


Security Access to uploaded files & choice of folder to keep & manage files after OF restart

Hello,
httpupload is uploading file in a public area. If link to file is found, anyone can access it. Ideally we should have an option to restrict file access to signed OF users only to provide a better security with uploaded files. This option could be activated or not as we need a public access in some cases.
For storage location if a specific folder could be specify it would be helpfull. No erase on restart and ideally possible file management : no erase ; erase when max is reached, erase daily, weekly...
I understand that it is not an issue but rather enhancement suggestions. If it could be added it would be Great :)
Claude-

This is ok to post feature requests here. Although it is preferable one per ticket 😊 i suggest keeping this ticket for the secure url and move stuff about file and folder management to a new one.
For secure link to work users would have to somehow login to the server on the web besides the regular login in a client. Maybe http bind can be used for it. Not sure if this can be automated or at least do only one login first time.
Btw, that would go against the standard's requirement:
Do not provide any kind of access control or security for file retrieval beyond Transport Layer Security in form of HTTPS and long random paths that are impossible to guess. That means everyone who knows the URL SHOULD be able to access it.
https://xmpp.org/extensions/xep-0363.html

@wrooot Thanks a lot for yr detailed & precise answer. I fully understand limits of security suggestion as it goes against xep-0363. Any improvement for uploaded file enhaced security would be an asset. thanks a lot for considering the point.
Thanks also for considering a better storage management improvement for uploaded file, purge & specific no tmp folder.

Although I've not tested this myself yet, it should be possible to use another folder than a tmp folder by setting the property plugin.httpfileupload.fileRepo to a location on disk.

@guusdk : Thanks a lot this change/enhancement, it will be very helpful. I will investigate ASAP and test but probably a very nice way to fix attachement files that get purged into /tmp when docker instances are restarted :+1: COOL !!!
:)

@guusdk : Just to confirm that i manage to configure the plugin to keep my files on a docker volume for each openfire instances using variable plugin.httpfileupload.fileRepo. Attachement files are now manageables and it cope with docker technology. Files are located in a safer place outside each docker instances. Such a solution is much more safer and better than usual sqllite database on each client phone as whatsapp telegram does. Local sqllite storage for sensitive attachement and files is a stupidity that bring many possible security exploits and overflows
Thanks for your efforts and changes made !

@ClaudeStabile Can you please share your configuration for plugin.httpfileupload.fileRepo for docker setup? When I add a value of "/var/lib/openfire/files" I got 403 on PUT.
Note /var/lib/openfire is already shared with the docker host.

@fais3000
Hello, to awswer your questions : What i am doing is
-Create an openfire with a "docker run" instruction with -v to specifify an outside volume/mount to store attachements so something like :
docker run --name www  -v /data/ATTACHEMENTS/WWW:docker run --name www  -v /data/ATTACHEMENTS/WWW:/attachements/WWW
In this case data are stores into /data/ATTACHEMENTS/WWW on the main host
Then configure Openfire variables of your docker instance to target /attachements/WWW
Configure at least plugin.httpfileupload.fileRepo and plugin.httpfileupload.maxFileSize to modify max file size
See also attachement

You need to create a dedicated volume for it
Many thanks @guusdk for this hack, we can now manage & keep attachement for all openfire instances, it helps a lot.
Hope this helps your quest
Claude-


DRAFT: Add Elastic Textarea Example

This PR adds a new example from the elastic textarea component.
This test differs from the Menu example by injecting HTML directly.

Gonna close this in favor of the work-in-progress documentation site


TS 2.1.4 not compiling to JS

Expected behavior:
any and all *.ts files to transpile to Javascript ( and associated .js.map file
Actual behavior:
no .ts files are transpiled to javascript
Your gulpfile:
var typescript = require('gulp-typescript');
...
gulp.task('build-compile', function () {
  if (!typescriptCompiler) {
    typescriptCompiler = typescript.createProject('tsconfig.json', {
      "typescript": require('typescript')
    });
  }
  return gulp.src(paths.dtsSrc.concat(paths.source))
    .pipe(plumber({ errorHandler: notify.onError('Error: <%= error.message %>') }))
    .pipe(changed(paths.output, { extension: '.ts' }))
    .pipe(sourcemaps.init({ loadMaps: true }))
    .pipe(typescript(typescriptCompiler))
    .pipe(sourcemaps.write('.', { includeContent: false, sourceRoot: '/App' }))
    .pipe(gulp.dest(paths.output));
});

tsconfig.json
Include your tsconfig, if related to this issue.
{
  "compileOnSave": false,
  "compilerOptions": {
    "rootDir": "app",
    "outDir": "dist",
    "sourceMap": true,
    "target": "es5",
    "module": "amd",
    "declaration": false,
    "noImplicitAny": false,
    "removeComments": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "lib": ["es5", "dom"],
    "baseUrl": "./app"
  },
  "filesGlob": [
    "./app/**/*.ts",
    "./src/**/*.ts",
    "./specs/**/*.ts",
    "./test/**/*.ts",
    "./features/**/*.ts",
    "./typings/index.d.ts",
    "./custom_typings/**/*.d.ts",
    "./jspm_packages/**/*.d.ts",
    "./node_modules/**/*.d.ts"
  ],
  "atom": {
    "rewriteTsconfig": false
  },
  "formatCodeOptions": {
        "indentSize": 4,
        "tabSize": 4,
        "newLineCharacter": "\r\n",
        "convertTabsToSpaces": true,
        "insertSpaceAfterCommaDelimiter": true,
        "insertSpaceAfterSemicolonInForStatements": true,
        "insertSpaceBeforeAndAfterBinaryOperators": true,
        "insertSpaceAfterKeywordsInControlFlowStatements": true,
        "insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
        "insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
        "placeOpenBraceOnNewLineForFunctions": false,
        "placeOpenBraceOnNewLineForControlBlocks": false
    }
}

It would seem that a more recent update of TS from Microsfot ( 2.1.4 ) is no longer transpiling TS files into JS. No errors are thrown in the task runner - it just fails silently.
If I expelicitly downgrade to 2.1.1  ( last known stable version used on my project ) and re-run _gulp-build-compile- the javascript is generated.
any known issues with 2.1.4 ?

Are you using the latest version of gulp-typescript? I've tried to reproduce this using your gulpfile, but I couldn't reproduce your issue. Your configuration however seems to be using an older version of gulp-typescript, as typescript(typescriptCompiler) should be written as typescriptCompiler() in 3.x.

the code works for me.. thanks for the snippet ;)

@essuraj I advise to not use gulp-changed or something similar with gulp-typescript. You can get wrong JavaScript output and you might miss compile errors.

This is almost a year old, and I haven't heard of similar issues with newer versions of TypeScript. So I assume that this is not an issue anymore. If it is for someone, please let me know.


VPC Endpoint services are missing bedrock related endpoints

Attempting to call the describe_vpc_endpoint_services operation results in an error:
botocore.exceptions.ClientError: An error occurred (InvalidServiceName) when calling the DescribeVpcEndpointServices operation: The Vpc Endpoint Service 'com.amazonaws.us-east-1.bedrock-agent-runtime' does not exist
This is seemingly due to this list: https://github.com/getmoto/moto/blob/565442e23d642fc379cc1caf2dc0ce1280d6c919/moto/ec2/models/vpcs.py#L43 missing the service bedrock-egent-runtime.
Other services may be missing, specifically I know of bedrock, bedrock-runtime, and bedrock-agent in addition to bedrock-agent-runtime.

I'll mark it as an enhancement @jamesnixon-aws. Do you want to submit a PR for this yourself?

I have created a pr adding these and all other missing services to the const


DPDV-4163: Add playbooks to troubleshoot known problems

Add instructions how to solve the most common issues.

Codecov Report

Merging #28 (cc0f0e7) into main (8073339) will not change coverage.
Report is 3 commits behind head on main.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #28   +/-   ##
=======================================
  Coverage   97.01%   97.01%
=======================================
  Files           5        5
  Lines         469      469
=======================================
  Hits          455      455
  Misses         11       11
  Partials        3        3


traits: add to_degrees and to_radians on Float

To avoid a breaking change, these have crude default implementations as
well as better implementations for f32 and f64 in particular.  They
don't use the inherent methods though, because f32 didn't stabilize
those until Rust 1.7.
Fixes #211

Looks great, thanks! 🎊

@homu r+

:pushpin: Commit 0faeb31 has been approved by cuviper

:zap: Test exempted - status

@cuviper Great! Any chance a new release could get cut?

Sure - I just published num-traits-0.1.34.

Thanks a ton! ✨


Renovate: Dependency Lookup Warnings

Details
After its first run, the onboarding PR by Renovate "complains" about dependency adrienverge/yamllint.git.
See https://github.com/k8s-at-home/template-cluster-k3s/blob/main/.pre-commit-config.yaml#L3
Looks like the .git extension can be safely removed on line 3.
Works on my machine.
Additional Information:
Renovate warning in the PR:
---

### ⚠ Dependency Lookup Warnings ⚠

Please correct - or verify that you can safely ignore - these lookup failures before you merge this PR.

-   `Failed to look up dependency adrienverge/yamllint.git`

Files affected: `.pre-commit-config.yaml`

---

Oh interesting, I wonder if this is a new change in renovate.
Fixed in https://github.com/k8s-at-home/template-cluster-k3s/commit/8759c15800b9fd4d87a6b1095fa965a42528bf24


Create a timer, that when reach 0 send the user to the Save Inicials section.

User Story
AS A coding boot camp student
I WANT to take a timed quiz on JavaScript fundamentals that stores high scores
SO THAT I can gauge my progress compared to my peers

Acceptance Criteria
GIVEN I am taking a code quiz
WHEN all questions are answered or the timer reaches 0
THEN the game is over

Created a timer with setInterval() function that reduce the timer count by 1 every second. When the timer reach 0, it will send the user to the "Save Initial" section.
When the user click on the answer of the last question, I will send the user to the "Save Initial" section.


Does the library work in clustered mode?

Hi, sorry for opening an issue but I didn't see another way to contact the maintainers.
I would like to use this lib as part of a larger monolith that can also operate in clustered mode.
If that is the case, can the library  be configured to operate consistently across all nodes of the cluster
so that each node can both insert jobs and work on jobs without conflict?
Every node of the cluster is hooked up to the same SQL db.

Hi! We have at least 4 instances of each microservice. These 4 instances use the same database. Db-queue runs on all instances of a microservice, so we always use db-queue in clustered mode. Make sure your database use read committed transaction isolation level and everything will be fine.

Thanks for the quick reply. I will give the lib a try. Closing the issue.


The custom model did not update weight & bias

Describe the bug
My model neither backbone nor neck, it is a plugin like attention. It can not update weigth & bias, For example, the attention is mmdet/attention/senet.py. If I write the  forward() in the senet.py, it can not update the weigth & bias. but if i write definition in senet.py and write the forward() in mmdet/detectors/two_stage.py in detail, it works.
Environment
sys.platform: linux
Python: 3.7.7 (default, May  7 2020, 21:25:33) [GCC 7.3.0]
CUDA available: True
CUDA_HOME: /usr/local/cuda-9.0
NVCC: Cuda compilation tools, release 9.0, V9.0.176
GPU 0,1: TITAN V
GCC: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
PyTorch: 1.3.1
PyTorch compiling details: PyTorch built with:
  - GCC 7.3
  - Intel(R) Math Kernel Library Version 2019.0.4 Product Build 20190411 for Intel(R) 64 architecture applications
  - Intel(R) MKL-DNN v0.20.5 (Git Hash 0125f28c61c1f822fd48570b4c1066f96fcb9b2e)
  - OpenMP 201511 (a.k.a. OpenMP 4.5)
  - NNPACK is enabled
  - CUDA Runtime 10.1
  - NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_37,code=compute_37
  - CuDNN 7.6.3
  - Magma 2.5.1
  - Build settings: BLAS=MKL, BUILD_NAMEDTENSOR=OFF, BUILD_TYPE=Release, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Wno-stringop-overflow, DISABLE_NUMA=1, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=True, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_STATIC_DISPATCH=OFF,

TorchVision: 0.4.2
OpenCV: 4.2.0
MMCV: 0.5.6
MMDetection: 1.1.0+7fa5dd2
MMDetection Compiler: GCC 5.4
MMDetection CUDA Compiler: 9.0

The description is a little bit vague. The first few layers are indeed totally frozen. Which layer are you expecting to be updated?

The description is a little bit vague. The first few layers are indeed totally frozen. Which layer are you expecting to be updated?


Rename tuple field

Environment data
dotnet --info output:
.NET Command Line Tools (2.0.0-preview1-005977)

Product Information:
 Version:            2.0.0-preview1-005977
 Commit SHA-1 hash:  414cab8a0b

Runtime Environment:
 OS Name:     linuxmint
 OS Version:  18.1
 OS Platform: Linux
 RID:         linuxmint.18.1-x64
 Base Path:   /usr/share/dotnet/sdk/2.0.0-preview1-005977/

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.0-preview1-002111-00
  Build    : 1ff021936263d492539399688f46fd3827169983

VS Code version: 1.14.0-Insider
C# Extension version: 1.10.0
Steps to reproduce

Paste this code:

int f((int a, int b) tuple) =>
	tuple.a + tuple.b;

Try to rename a.

Expected  behavior
Successful rename:
int f((int x, int b) tuple) =>
	tuple.x + tuple.b;

Actual behavior
No result.
I can't get it to work by renaming the access either.

This is blocked by https://github.com/dotnet/roslyn/issues/14115

Right. I don't believe this works in VS either.

Closing as this is an external issue.


JDBC driver to implement DatabaseMetadata.getTypeInfo

The 0.137 JDBC driver currently does not implement DatabaseMetadata.getTypeInfo. A dynamic SQL application that attempts to harvest that information will not be able to do so. Is this on the roadmap of improvements for the JDBC driver?

@the6campbells Teradata is going to release a free enterprise ready JDBC driver at the end of March that will support DatabaseMetadata#getTypeInfo().

Will this mean that the driver downloaded with Presto builds will include this driver or only if persons download from teradata.com?

@the6campbells You will need to download it from www.teradata.com/presto

We will add this to the project JDBC driver as well. The Teradata driver is a fork/rewrite for Java 6, but the project one will always be for the version of Java used by Presto (and thus won't work with some legacy applications).

The driver available with the Presto 0.160 is still missing the method

@the6campbells: Have you looked at the Teradata driver that @cawallin linked? The Teradata driver is a totally different (closed-source) codebase, and so features in it are not necessarily implemented in the open-source driver.

Oh, and if you go to that site, you need to click on the part of the link that reads "Download Presto Drivers", if you click on the "»" link, it takes you to the wrong page. I notified our IT people, but it looks like they haven't gotten around to fixing it yet :-(
This direct link might also work: https://site.teradata.com/Microsite/Q216driverspresto/LP/.ashx, but it might also expire in the future. http://www.teradata.com/presto should remain valid for the foreseeable future.

@ebd2 - I'm aware of the TD driver. The "issue" is that persons who use Presto on AWS EMR or pull a copy from the Presto site are very likely to use the presto driver vs the one on the TD web site. So what is the plan for the TD contributions to roll into the driver from the Presto site?

The TD driver contains proprietary code licensed from a third party, so they can't contribute the code to Presto.
What I would like to have is a test suite that can verify any JDBC (or ODBC) driver for Presto, so that we can assure they all return consistent results for metadata (so people don't have to code to a particular implementation).

Teradata has contributed com.facebook.presto.tests.jdbc.JdbcTests to the community.  This test covers:
connection.getMetaData().getSchemas()
connection.getMetaData().getTables()
connection.getMetaData().getColumns()
connection.getMetaData().getTableTypes()
in a way that is intended to be driver independent.  We will be expanding this test over time, but would welcome contributions from the community as well.


File.FileOptions.Asynchronous purpose ?

The File.Create etc docs show some method signatures requiring FileOptions although the examples here make no such demands. So what is optional/mandatory significance of this flag setting, and what disaster would befall if it was not specified when you then invoke those async stream method calls ?

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

ID: 90c1b292-9f8a-d512-e780-24cb865a2da2
Version Independent ID: 731858ee-ae76-9477-2ddf-40277bf1bd71
Content: Asynchronous File I/O
Content Source: docs/standard/io/asynchronous-file-i-o.md
Product: dotnet
GitHub Login: @mairaw
Microsoft Alias: mairaw

The example is using the overload that accepts only a string parameter:
https://docs.microsoft.com/en-us/dotnet/api/system.io.file.create?view=netframework-4.7.2#System_IO_File_Create_System_String_
The remarks of that overload explain what's the behavior for that particular API.
I hope that helps clarify things.

@You may want to read this: https://stackoverflow.com/questions/13299705/fileoptions-asynchronous-causes-filestream-beginread-to-block

Thanks for that link. I will need to read thoroughly and probably review the source code too (now it is all OSS)
Dick
From: 谭九鼎<EMAIL_ADDRESS>Sent: 18 December 2018 13:02
To: dotnet/docs
Cc: Dick Baker; Author
Subject: Re: [dotnet/docs] File.FileOptions.Asynchronous purpose ? (#9636)
@you https://github.com/you  may want to read this: https://stackoverflow.com/questions/13299705/fileoptions-asynchronous-causes-filestream-beginread-to-block
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/dotnet/docs/issues/9636#issuecomment-448213016 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACpUrP8TrfCFYr24HUIiiyoQn2TpT0uuks5u6OcugaJpZM4ZXCmD .  https://github.com/notifications/beacon/ACpUrBkyR5mBTUESlMb5bIkf1r1U7O_Mks5u6OcugaJpZM4ZXCmD.gif


Alexa no longer responds to voice commands

Since the V4.1 (or earlier), Alexa does not respond to the voice commands.
She reports "The appliance with the name living room lamp does not respond".
The lamps can be switched on and off via "Test On / OFF".
Under Bridge Devices - Edit it looks very confusing. I found the old version much clearer. The input fields are also not completely readable.
Under Alexa "devices search"  all my devices are displayed

Try rebooting your Alexa device.( unplug and re-plug in)
Also try reinitializing the bridge
I agree the Add/edit screen is confusing but that happens when a program evolves with extra options

After you have done what tuicmen has recomended, in the Alexa control page, do a "forget all devices" and then do a discovery again.

Rebooting Alexa does not help.  "forget all devices" does the Trick.
Thank you.
Can you make the input fields completely readable again?

Great! To read the fields, use your mouse to grab that little corner in the lower right to drag and expand it.... Just not enough room on the on smaller monitors... Suggestion is 24" monitor :)


Unexpected token failure on raspberry pi 3

When running on raspberry pi 3, get the following error (node version 12.9.0, npm version 6.10.2):
$ npm start

><EMAIL_ADDRESS>start /home/pi/node-ecam-coffee
> npm run build && DEBUG=*,-noble node dist/index.js

><EMAIL_ADDRESS>build /home/pi/node-ecam-coffee
> tsc

/home/pi/node-ecam-coffee/dist/classes/App.js:26
            if (!this.machine?.characteristic) {
                              ^

SyntaxError: Unexpected token .
    at Module._compile (internal/modules/cjs/loader.js:872:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
    at Module.load (internal/modules/cjs/loader.js:790:32)
    at Function.Module._load (internal/modules/cjs/loader.js:703:12)
    at Module.require (internal/modules/cjs/loader.js:830:19)
    at require (internal/modules/cjs/helpers.js:68:18)
    at Object.<anonymous> (/home/pi/node-ecam-coffee/dist/index.js:3:15)
    at Module._compile (internal/modules/cjs/loader.js:936:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
    at Module.load (internal/modules/cjs/loader.js:790:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: `npm run build && DEBUG=*,-noble node dist/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2020-11-23T23_21_40_457Z-debug.log

Hey @eyalcha good to see you here. The error you have is because I am using TypeScript and generating code for ES2020. So you need to install Node.js 15, that can understand optional chaining (.?).
I just updated the project config and included the .nvmrc file in case you are using https://github.com/nvm-sh/nvm

After upgrading to node 15, issue solved.


[loc][Query][VSCODE] Localizability of string: file path of the workspace

Hi,
please help localization team to answer question from translator.
In case translator is not sure about context/meaning/localizability of string we raise a question to Core team.
Could you help please? Thanks!**
Source:
${rootPath}: file path of the workspace (e.g. /Users/Development/myWorkspace).
Query:
Is file path supposed to be localized or left in English?

It should be localized


feat: XCM transfers - updated XCM config on t0rn

Summary by OpenAI
New Feature:

Added new constants AssetHubLocationROC and AssetHubLocationUSDT for asset transacting.
Enhanced XCM configuration on the t0rn parachain with updated types and parameters.
Introduced support for known query responses and subscriptions from parent or sibling chains.
Updated the Barrier type to accommodate known query responses and subscriptions.

🎉 With new assets in our sight, 🚀
The t0rn parachain takes flight. 💫
Subscriptions flow, queries respond, 📡
In this digital bond we've fondly spawned. 💻🔗
Barriers adapt, as changes sweep, 🌊
In the codebase's mighty leap! 🦘💾

all changes will be moved to  feat/xcm-transfer-t0rn.


Fix debug mode

The operator will fail to deploy Cinder volume, backup, and scheduler containers when the Service is set to debug mode:
debug:
service: true
This is because the startup probe will be missing an execution command.
In this patch we simply add the same dummy check for the startup probe as we do in the liveness and readiness probes and make a small change in the different probe exec setting to use the same instance for all probes instead of creating different instances with the same contents for each probe.

/ok-to-test


Support credentials refreshing (PIP 55)

See apache/pulsar#6074
apache/pulsar#8410
See grpc/grpc-java#5335

I discovered this issue because it was referencing https://github.com/grpc/grpc-java/issues/5335 from here. I wanted to provide a solution which might be helpful. Hope it will be useful, see here for a detailed solution: https://github.com/eclipse-vertx/vert.x/issues/4452