Tweaks and vscode specific features

Hello @sallar,
I've made some small tweaks for a personal version of the theme. (mostly the UNO5 was just to close to the background color for my liking) but i've also added some properties for handling the multi select features the way viscose works with them (I have no clue how text mate works with this as i've never used that)
Are you at all interested in contributions that deviate from the original theme (possibly as alternate version in the same package) or would you prefer I changed the name and make this a new package on the marketplace?

Hi @cometeer,
I'd appreciate the changes. Yes we can put that in the same package if you wouldn't mind. Send a PR and I will merge it. Also if there's vscode-specific changes that you can make to theme.xml file to make it better, that would be welcome too :)

Hi @cometeer, I missed your PR 😱 Really sorry. Will check it out ASAP.

Sure thing, i've got my version as seen in the PR running locally so no rush :)

@cometeer It would be nice if we could make screenshots of the new changes... but even if we don't i think it's still fine. Or maybe a better name than "Alt"?

Agreed on the name, though im not really inspired atm for something else.
Im thinking about doing another round of tweaks this weekend maybe, ill see if i can generate pictures after im done with that.


Cannot find module ../app/router/middleware

Error: Cannot find module './app/router/middleware'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/Users/jima/projects/reactjs/isomorphic-tutorial/index.js:6:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
It seems like you have forgotten to commit the file.

Fixed by ea83adeab84fd67f8ae34e9fe95cd9666367abe1

This file seems to still be missing on the marked and moment branches


Crash right after starting

Describtion
Hey, I don't know if there already is an issue for this or whatsoever, so I figured I'll create one!
I tried starting OpenNoteBlockStudio for the first time. I installed the latest version (to this date).
However, after starting it, It closes itself right afterwards. I only see a white screen flashing for a second.
Reproduce
Steps to reproduce the behavior:

Go to Releases on GitHub (or on the Hompage) and download the installer.
Install using default preferences.
Keep check mark for starting the program after installation.
See error (aka nothing).
Try again using created Shortcut.
See error again (aka nothing/your desktop).

Expected behavior
Obviously I'd like to try it out without crashing... ^^'
Screenshots
I mean, I could send a screenshot of my desktop if it helps. ^^'
Additional context
I am running Windows 11. I have a Intel CPU and a Nvidia graphics card.

Hi! I'm sorry you're having issues opening the program. Could you please attach the log.txt file that's located at %appdata%/Minecraft_Note_Block_Studio so we can figure out what's going on?

Sure thing, here you go: log.txt


API JSON Commenting

Requirement
As a Guardian User I would like to see in the API definition information on mandatory (or 'required') parameters and for optional parameters for API calls.
Definition of Done

Updated swager and postman API documentation
Updated JSON file

https://github.com/hashgraph/guardian/pull/394

Closing this Ticket. The Swagger and Postman API Documentation and JSON File were updated.


VCPKG_CMAKE_CONFIGURE_OPTIONS in triplets not work in manifest mode?

Describe the bug
I need set a CMake variable (-DTARGET=ARMV8)  by VCPKG_CMAKE_CONFIGURE_OPTIONS in triplet file.
...
if(PORT MATCHES "openblas")
set(VCPKG_CMAKE_CONFIGURE_OPTIONS "-DTARGET=ARMV8")
endif()
....

It works when I execute vcpkg install vcpkg install openblas:arm64-linux , but failed in manifest mode

well, in manifest, it based on baseline    "builtin-baseline": "cbc22a396c88d098247fe7f79f0913a952e1f77d"  while I use command line under latest commit.  I believe that if use the latest commit, it will work. I will try it later.

You shouldn't use -DTARGET=ARMV8 to select the triplet. Please use VCPKG_TARGET_TRIPLET instead of this. See documentation.
The judgment if(PORT MATCHES "openblas") shouldn't be used since we can NOT call binaries of different architectures from each other.

@JackBoosY  It is a make variable of openblas itself rather than the triplet.  Cause I use it on a arm64 docker on qemu kvm which based on x86_64 host, it fail to get cpu target then I need to set this variable TARGET=ARMV8

@JackBoosY It is a make variable of openblas itself rather than the triplet. Cause I use it on a arm64 docker on qemu kvm which based on x86_64 host, it fail to get cpu target then I need to set this variable TARGET=ARMV8

The function vcpkg_configure_make will choose the correct TARGET based on the triple you choose, so you don't need to pass it in.

The function vcpkg_configure_make will choose the correct TARGET based on the triple you choose, so you don't need to pass it in.
I've used triplet arm64-linux but openblas complains that
CMake Error at CMakeLists.txt:139 (message):
Detecting CPU failed.  Please set TARGET explicitly, e.g.  make
TARGET=your_cpu_target.  Please read README for details.
so should I create a new triplets and set VCPKG_TARGET_ARCHITECTURE as armv8 ?

so should I create a new triplet and set VCPKG_TARGET_ARCHITECTURE as ARMV8 ?

Correct.

Note that the TARGET here is defined in openblas itself, I don't understand it will have something with vcpkg triplet

triplet file -> toolchain file -> vcpkg_configure_cmake -> CMakeLists.txt

For cmake, I think you should set -DCORE=ARMV8 right?

For cmake, I think you should set -DCORE=ARMV8 right?
Almost like this, I should set -DTARGET=ARMV8.

For cmake, I think you should set -DCORE=ARMV8 right?

Yes, almost like this, I should set -DTARGET=ARMV8.

https://github.com/xianyi/OpenBLAS/blob/f4d1f0333b98334745f7b61d8f6362c0d09f58f4/cmake/system.cmake#L33-L48
if (DEFINED BINARY AND DEFINED TARGET AND BINARY EQUAL 32)
  message(STATUS "Compiling a ${BINARY}-bit binary.")
  set(NO_AVX 1)
  if (${TARGET} STREQUAL "HASWELL" OR ${TARGET} STREQUAL "SANDYBRIDGE" OR ${TARGET} STREQUAL "SKYLAKEX" OR ${TARGET} STREQUAL "COOPERLAKE" OR ${TARGET} STREQUAL "SAPPHIRERAPIDS")
    set(TARGET "NEHALEM")
  endif ()
  if (${TARGET} STREQUAL "BULLDOZER" OR ${TARGET} STREQUAL "PILEDRIVER" OR ${TARGET} STREQUAL "ZEN")
    set(TARGET "BARCELONA")
  endif ()
  if (${TARGET} STREQUAL "ARMV8" OR ${TARGET} STREQUAL "CORTEXA57" OR ${TARGET} STREQUAL "CORTEXA53" OR ${TARGET} STREQUAL "CORTEXA55")
    set(TARGET "ARMV7")
  endif ()
  if (${TARGET} STREQUAL "POWER8" OR ${TARGET} STREQUAL "POWER9" OR ${TARGET} STREQUAL "POWER10")
    set(TARGET "POWER6")
  endif ()
endif ()

You can use overlay-ports to build (copy ports/openblas and add -DTARGET=ARMV8 to vcpkg_cmake_configure ), see https://github.com/microsoft/vcpkg/blob/master/docs/specifications/ports-overlay.md

@JackBoosY Thanks a lot. I think your advice could help a lot.
btw, VCPKG_CMAKE_CONFIGURE_OPTIONS in a triplet file like arm64-linux.cmake mentioned above also worked to build openblas successfully, is there any side-effect in this way?

@charles-sun0v0 I checked our document, it shows that you also can use VCPKG_CMAKE_CONFIGURE_OPTIONS: add the following code to your custom triplet files:
if(PORT MATCHES "openblas")
   set(VCPKG_CMAKE_CONFIGURE_OPTIONS "-DTARGET=ARMV8")
endif()

btw, VCPKG_CMAKE_CONFIGURE_OPTIONS in a triplet file like arm64-linux.cmake mentioned above also worked to build openblas successfully, is there any side-effect in this way?

The triplet file content affects ABI hashing, so any change needs rebuilding the cached artifacts.

Thank you!


Replace ABA primitives with LL/SC emulation?

CHERI builds primarily on RISC platforms, specifically MIPS and RISC V, which have native LL/SC support.  AFAICT, MIPS R4K promises relatively strong LL/SC operation (permitting loads and stores from the core having done the LL); RISC V promises little but presumably real implementations will also be relatively strong.  Anyway, on these platforms, I think ds/aba.h is more of a hindrance than a help; the sole user, ds/mpmcstack.h is forced to phrase its operations in terms of CAS and so will always require ABA protection.  While the existing non-X86 paths in ds/aba.h optimistically fall back to just a pointer-sized CAS, this fails to deliver effective ABA protection
I am unsure what the correct answer is, but I think, at least broadly, that mpmcstack should be rewritten in terms of a LL/SC primitive that can be provided by some platform-specific code.  I haven't come up with a better answer than something like this, tho', which isn't great, so other thoughts are more than welcome.  Notably, this approach, I think, relies very, very heavily on the compiler's ability to inline to produce good code.
  template<typename T, Construction c = RequiresInit>
  class LLSC
  {
    /* Cmp defined as in existing ds/aba */
  private:
   Cmp value;

  public:
    inline bool llsc(std::function<bool, T*> f, bool* out)
    {
      T t;
      // Load link t from this, or load t and the generation counter
      *out = f(&t);
      if (*out)
      {
        // Store conditional or CAS2 with incremented generation counter
      }
      else
      {
        return true; // will cause exit from calling loop, which can look at *out
      }
    }
  }

We really require the only way to make a Cmp is Cmp read(), then I think the current interface may be fine for LL/SC.  I.e. the
using Cmp = T*;

Is not good enough.  But the idea is that you can only compare exchange with a previously read value.  The previously read value would be LL, and then the compare exchange would be a SC.
I am unsure on the semantics of LL/SC around multiple LL operations, i.e. what would happen if a thread has multiple ABA operations in progress, then I am not sure this API would protect enough.

Most implementations permit only a single LL/SC in flight at once, which is a bit of a travesty, but is what we have.  That said, I have been hacking up a LL/SC implementation of ds/aba.h following your suggestion that read() is LL and will let you know how it goes.

Great thanks.
We probably want the Debug version to store the address read from in the Cmp.  So that we can check the exchange is on the right location.
In fact, it might be interesting to change the API a little
    struct Cmp
    {
      T* ptr;
      uintptr_t aba;  // For X86
      T** addr;  // ABA protected location read from

      bool compare_exchange(T* t) { ... }
    };

Then compare_exchange is guaranteed to be on the same location.
So effectively would do something like
    ABA a = ...;
    Cmp c = a.read();
    do
    {
       ....
    } while (c.exchange(new_v));

in the mpmcstack.

@nwf Did you ever get any further on this?  I realised the ARM implementation does not actually do the load-link/store-conditional, so is broken.  I am about to work on this, but if you have thoughts please let me know.

No, I think whatever I did down this path I long-since abandoned.  The work for Cornucopia used some rather hackish inline assembler, as found in bb81acc4c83d09ce24256be7f9efcc1dc0f35b0f from https://github.com/CTSRD-CHERI/snmalloc .

@nwf, Thanks Wes,  I think the new API I have implemented is roughly what we agreed here, so hopefully will match LL/SC semantics for ARM/MIPS/RISC V.  I have a back up implementation using a lock, so any platform should work, and then we can make it non-blocking with custom implementations later.

Done in #161


Makefile target to generate .vscode/c_cpp_properties.json

Summary
What is the feature all about? Is it a game, a utility, an enhancement, or something else?
This will generate a file that helps VS Code find elements of the IDF toolchain, and helps both with and without the extension.
Discussion at this slack thread.
Technical Spec
How will this be implemented?
What peripherals will be used, and how?
My current idea is to implement this with a Makefile target that takes a .json.in file and replaces some text with the path to the user's home folder, producing the .json file. Using ${userHome} directly in the .json file on a Windows machine results in Unix-like paths (/home/gelak/) as opposed to Windows-like paths (C:\Users\gelak\). This doesn't work, as the redirection seems to be limited to some other software (IDF itself, MSYS2 terminals, something else) and does not extend to VS Code's reading of the paths.
Bonus points if we can get the exact version numbers to be found in the filesystem and text-replaced in this file without needing to update the file manually after an IDF update.
How to Test
How can we verify the feature is working?
The generated .json file on @AEFeinstein's computer should look like this:
{
    "configurations": [
        {
            "name": "esp32s2",
            "includePath": [
                "${workspaceFolder}/main/**",
                "${workspaceFolder}/components/**",
                "C:/Users/gelak/esp/esp-idf/components/**"
            ],
            "compilerPath": "C:/Users/gelak/.espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc.exe",
            "cStandard": "c17",
            "cppStandard": "c++17",
            "intelliSenseMode": "gcc-x86",
            "compileCommands": "${workspaceFolder}/build/compile_commands.json"
        }
    ],
    "version": 4
}

PROPERTIES_FILE=./.vscode/c_cpp_properties.json

gen-vs-properties:
	@echo "{" >> $(PROPERTIES_FILE)
	@echo "    \"configurations\": [" >> $(PROPERTIES_FILE)
	@echo "        {" >> $(PROPERTIES_FILE)
	@echo "            \"name\": \"esp32s2\"," >> $(PROPERTIES_FILE)
	@echo "            \"includePath\": [" >> $(PROPERTIES_FILE)
	@echo "                \"\$${workspaceFolder}/main/**\"," >> $(PROPERTIES_FILE)
	@echo "                \"\$${workspaceFolder}/components/**\"" >> $(PROPERTIES_FILE)
	@echo "            ]," >> $(PROPERTIES_FILE)
	@echo "            \"defines\": []," >> $(PROPERTIES_FILE)
	@echo "            \"compilerPath\": \"$(shell which xtensa-esp32s2-elf-gcc)\"," >> $(PROPERTIES_FILE)
	@echo "            \"compileCommands\": \"\$${workspaceFolder}/build/compile_commands.json\"," >> $(PROPERTIES_FILE)
	@echo "            \"cStandard\": \"c17\"," >> $(PROPERTIES_FILE)
	@echo "            \"cppStandard\": \"c++17\"," >> $(PROPERTIES_FILE)
	@echo "            \"intelliSenseMode\": \"gcc-x86\"," >> $(PROPERTIES_FILE)
	@echo "            \"configurationProvider\": \"ms-vscode.makefile-tools\"" >> $(PROPERTIES_FILE)
	@echo "        }" >> $(PROPERTIES_FILE)
	@echo "    ]," >> $(PROPERTIES_FILE)
	@echo "    \"version\": 4" >> $(PROPERTIES_FILE)
	@echo "}" >> $(PROPERTIES_FILE)

At some point this got checked in: https://github.com/AEFeinstein/Super-2024-Swadge-FW/blob/main/.vscode/c_cpp_properties.json
The Linux config does require /usr/bin/gcc, which I think is reasonable. The ESP-IDF does have a kinda ugly path to the compiler, but it should be consistent if the setup instructions are followed. There isn't a Windows config, but if someone wants it, we can add it.


Feature/libdoc for pageobjects

This updates our robot_libdoc task to handle page object files. The main goal is for the product teams to be able to generate documentation for their own page object libraries.
I've fixed the issue with not being able to generate documentation for the PageObjects.py library. This includes a commit of a new Keywords.html file which contains the documentation for that library.
This code will not generate documentation for our base classes. For one, they don't actually have any keywords in them yet, and for another I haven't figured out the best way to do that since the base libraries themselves aren't directly usable from robot tests. I've created a separate work item #W-033984 related to generating documentation for the base classes.
Critical Changes
Changes
Issues Closed

@boakley I tried using this to generate documentation for the page objects included in CumulusCI, and I must be missing something.
If I add cumulusci/robotframework/pageobjects/baseobjects.py to the path for the robot_libdoc task, I get an empty section in the output. If I add cumulusci/robotframework/pageobjects/PageObjects.py, I get robot.errors.DataError: Importing test library '/Users/dglick/Work/CumulusCI/cumulusci/robotframework/pageobjects/PageObjects.py' failed: ImportError: attempted relative import with no known parent package

@boakley I tried using this to generate documentation for the page objects included in CumulusCI, and I must be missing something.

You shouldn't be calling libdoc on baseobjects.py (and by "shouldn't" I mean, "I never thought anybody would try to do that"). Those are base classes designed to be used by actual page object classes. Even though they aren't implemented as such, they are effectively abstract base classes.
The reason yo ugot a blank section is that none of those classes use the @pageobject decorator, which is the clue that robot_libdoc uses to know which classes to document.
When I add a keyword and use the decorator, I end up getting the same import error that you reported on using PageObjects.py. It looks like I need to fix the imports to handle this case, and/or make sure the script handles the error more gracefully.

If I add cumulusci/robotframework/pageobjects/baseobjects.py to the path for the robot_libdoc task, I get an empty section in the output.

If I add cumulusci/robotframework/pageobjects/PageObjects.py, I get robot.errors.DataError: Importing test library '/Users/dglick/Work/CumulusCI/cumulusci/robotframework/pageobjects/PageObjects.py' failed: ImportError: attempted relative import with no known parent package

That's a bug. I'll fix it.

Those are base classes designed to be used by actual page object classes. Even though they aren't implemented as such, they are effectively abstract base classes.

Aren't they also used non-abstractly as a fallback if a specific page object wasn't found for the (page_type, object_name) combo that was requested? That's what made me think it might work, but it makes sense that it doesn't due to the lack of the @pageobject decorator.

Those are base classes designed to be used by actual page object classes. Even though they aren't implemented as such, they are effectively abstract base classes.

Aren't they also used non-abstractly as a fallback if a specific page object wasn't found for the (page_type, object_name) combo that was requested? That's what made me think it might work, but it makes sense that it doesn't due to the lack of the @pageobject decorator.

Yes, they are. I need to think a bit more about how to document these base classes. Once I solve the import error I might be able to get away with using the decorator without an object name. I'll fiddle around with it some.
Thanks for bringing this to my attention.

@boakley I tried using this to generate documentation for the page objects included in CumulusCI, and I must be missing something.

You shouldn't be calling libdoc on baseobjects.py (and by "shouldn't" I mean, "I never thought anybody would try to do that"). Those are base classes designed to be used by actual page object classes. Even though they aren't implemented as such, they are effectively abstract base classes.
The reason yo ugot a blank section is that none of those classes use the @pageobject decorator, which is the clue that robot_libdoc uses to know which classes to document.
When I add a keyword and use the decorator, I end up getting the same import error that you reported on using PageObjects.py. It looks like I need to fix the imports to handle this case, and/or make sure the script handles the error more gracefully.

If I add cumulusci/robotframework/pageobjects/baseobjects.py to the path for the robot_libdoc task, I get an empty section in the output.

If I add cumulusci/robotframework/pageobjects/PageObjects.py, I get robot.errors.DataError: Importing test library '/Users/dglick/Work/CumulusCI/cumulusci/robotframework/pageobjects/PageObjects.py' failed: ImportError: attempted relative import with no known parent package

That's a bug. I'll fix it.

I pushed changes to allow the robot_libdoc task to work with PageObjects.py. I've also created a work item to separately tackle the issue of documenting out base classes (#W-033984)


Uncaught ReferenceError: DeviceMotionEvent is not defined

When orientationOnByDefault is on, but the browser doesn't support device motion, pannellum throws an exception and movement breaks.
"function" === typeof DeviceMotionEvent.requestPermission ? DeviceOrientationEvent.requestPermission().then(function(a) {...
Checking for DeviceMotionEvent fixes the problem:
DeviceMotionEvent && "function" === typeof DeviceMotionEvent.requestPermission ? DeviceOrientationEvent.requestPermission().then(function(a) {...

This is a duplicate of #846, which has already been fixed (although I just fixed a typo in the original fix).


fixed sass compile error

should use @include not @extend inside a mixin

Can you paste your error? I don't see a syntax problem here. Extend works with include:

also mi local compilation works fine :/

Sure thing I will show you on Tuesday. Left my macbook at work.
On Friday, 27 May 2016, Kiko Beats<EMAIL_ADDRESS>wrote:

also mi local compilation works fine :/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Kikobeats/uno-zen/pull/196#issuecomment-222247913,
or mute the thread
https://github.com/notifications/unsubscribe/AGPvahCPCcYhJzvxMDIdml7tDs9PqSvgks5qF1aZgaJpZM4Ioom6
.

[10:26:31] { [Error: assets/scss/modules/_utils.scss
Error: ".navigation.left .links > li.expanded" failed to @extend "btn-cover".
       The selector "btn-cover" was not found.
       Use "@extend btn-cover !optional" if the extend should be able to fail.
        on line 56 of assets/scss/modules/_utils.scss
>>   @extend btn-cover;
   --^
]
  formatted: 'Error: ".navigation.left .links > li.expanded" failed to @extend "btn-cover".\n       The selector "btn-cover" was not found.\n       Use "@extend btn-cover !optional" if the extend should be able to fail.\n        on line 56 of assets/scss/modules/_utils.scss\n>>   @extend btn-cover;\n   --^\n',
  message: 'assets/scss/modules/_utils.scss\nError: ".navigation.left .links > li.expanded" failed to @extend "btn-cover".\n       The selector "btn-cover" was not found.\n       Use "@extend btn-cover !optional" if the extend should be able to fail.\n        on line 56 of assets/scss/modules/_utils.scss\n>>   @extend btn-cover;\n   --^\n',
  column: 3,
  line: 56,
  file: '/Users/huanzhang/bitbucket/mystuff/ghostblog/content/themes/uno-zen/assets/scss/modules/_utils.scss',
  status: 1,
  messageFormatted: '\u001b[4massets/scss/modules/_utils.scss\u001b[24m\nError: ".navigation.left .links > li.expanded" failed to @extend "btn-cover".\n       The selector "btn-cover" was not found.\n       Use "@extend btn-cover !optional" if the extend should be able to fail.\n        on line 56 of assets/scss/modules/_utils.scss\n>>   @extend btn-cover;\n   --^\n',
  messageOriginal: '".navigation.left .links > li.expanded" failed to @extend "btn-cover".\nThe selector "btn-cover" was not found.\nUse "@extend btn-cover !optional" if the extend should be able to fail.',
  relativePath: 'assets/scss/modules/_utils.scss',
  name: 'Error',
  stack: 'Error: assets/scss/modules/_utils.scss\nError: ".navigation.left .links > li.expanded" failed to @extend "btn-cover".\n       The selector "btn-cover" was not found.\n       Use "@extend btn-cover !optional" if the extend should be able to fail.\n        on line 56 of assets/scss/modules/_utils.scss\n>>   @extend btn-cover;\n   --^\n\n  at options.error (/Users/huanzhang/bitbucket/mystuff/ghostblog/content/themes/uno-zen/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:271:32)\n',
  showStack: false,
  showProperties: true,
  plugin: 'gulp-sass' }

as you can see @extend is looking for a selector, but btn-cover is a mixin not a selector. Therefore the compile fails.
Using @include solves this problem.

@Huanzhang89 But the point is that %btn-cover is not a mixin, it's a extend!
can you try do rm -rf node_modules && npm install?
For me is working perfectly:
❯ gulp css
[12:03:01] Requiring external module coffee-script/register
[12:03:04] Using gulpfile ~/Uno/gulpfile.coffee
[12:03:04] Starting 'css'...
[12:03:04] Finished 'css' after 23 ms

Pretty sure btn-cover is defined as a mixin
@mixin btn-cover {
  position: relative;

  display: block;

  font-size: .9em;
  -webkit-font-smoothing: antialiased;
  font-weight: bold;

  letter-spacing: 1px;

  opacity: .8;
  color: $gray-lightest;
  border-radius: 20px;
  text-shadow: none;

  &:hover {
    opacity: 1;
  }
}

@mixin btn-cover-with-border {
  @include btn-cover;
  border: 1px solid $gray-lightest;
}

maybe you made some changes to your local branch and didn't push?

check this: https://github.com/Kikobeats/uno-zen/blob/master/assets/scss/modules/_utils.scss#L34

ah I see, you updated this 8 days ago :)
I'll pull latest and try again

The update.sh script doesn't seem to work
 _   _  _   _  _____    ______ _____  _   _
| | | || \ | ||  _  |  |___  /|  ___|| \ | |
| | | ||  \| || | | |     / / | |__  |  \| |
| | | || . ` || | | |    / /  |  __| | . ` |
| |_| || |\  |\ \_/ /  ./ /___| |___ | |\  |
 \___/ \_| \_/ \___/   \_____/\____/ \_| \_/

usage: git rev-list [OPTION] <commit-id>... [ -- paths... ]
  limiting output:
    --max-count=<n>
    --max-age=<epoch>
    --min-age=<epoch>
    --sparse
    --no-merges
    --min-parents=<n>
    --no-min-parents
    --max-parents=<n>
    --no-max-parents
    --remove-empty
    --all
    --branches
    --tags
    --remotes
    --stdin
    --quiet
  ordering output:
    --topo-order
    --date-order
    --reverse
  formatting output:
    --parents
    --children
    --objects | --objects-edge
    --unpacked
    --header | --pretty
    --abbrev=<n> | --no-abbrev
    --abbrev-commit
    --left-right
    --count
  special purpose:
    --bisect
    --bisect-vars
    --bisect-all
fatal: No names found, cannot describe anything.
Current version: .
Searching for updates...
usage: git rev-list [OPTION] <commit-id>... [ -- paths... ]
  limiting output:
    --max-count=<n>
    --max-age=<epoch>
    --min-age=<epoch>
    --sparse
    --no-merges
    --min-parents=<n>
    --no-min-parents
    --max-parents=<n>
    --no-max-parents
    --remove-empty
    --all
    --branches
    --tags
    --remotes
    --stdin
    --quiet
  ordering output:
    --topo-order
    --date-order
    --reverse
  formatting output:
    --parents
    --children
    --objects | --objects-edge
    --unpacked
    --header | --pretty
    --abbrev=<n> | --no-abbrev
    --abbrev-commit
    --left-right
    --count
  special purpose:
    --bisect
    --bisect-vars
    --bisect-all
fatal: No names found, cannot describe anything.

You already have the latest version.

Ok, then we can check update script. But it's a different problem 😄


Remove python and related packages

Remove python and related packages from the stack to reduce the CVE surface area of the image. Work has been done in the PHP Buildpack to remove reliance on a stack-provided Python installation.
Packages removed:

bzr
dh-python
libjson-glib-1.0-0
libmagickwand-dev
libpango1.0-0
mercurial
ubuntu-minimal

Packages added:

netbase - needed, otherwise the package is omitted
tzdata - needed to prevent the following error during build:#9 275.1 Generation complete.
#9 275.1 dpkg-query: package 'tzdata' is not installed and no information is available
#9 275.1 Use dpkg --info (= dpkg-deb --info) to examine archive files.
#9 275.1 /usr/sbin/dpkg-reconfigure: tzdata is not installed

Packages in the final receipt that were removed as a result of these changes:

apt-utils
automake
autotools-dev
brz
bzr
console-setup
console-setup-linux
debconf-i18n
dh-python
distro-info
distro-info-data
eject
gir1.2-freedesktop:amd64
gir1.2-gdkpixbuf-2.0:amd64
gir1.2-glib-2.0:amd64
gir1.2-rsvg-2.0:amd64
init
iputils-ping
isc-dhcp-client
kbd
keyboard-configuration
kmod
less
libapparmor1:amd64
libblkid-dev:amd64
libbz2-dev:amd64
libcairo-script-interpreter2:amd64
libcairo2-dev:amd64
libcryptsetup12:amd64
libdevmapper1.02.1:amd64
libdjvulibre-dev:amd64
libdjvulibre-text
libdjvulibre21:amd64
libdns-export1110
libexif-dev:amd64
libexif12:amd64
libgdk-pixbuf-2.0-dev:amd64
libgdk-pixbuf2.0-bin
libgirepository-1.0-1:amd64
libglib2.0-bin
libglib2.0-data
libglib2.0-dev-bin
libglib2.0-dev:amd64
libilmbase-dev:amd64
libilmbase25:amd64
libip4tc2:amd64
libisc-export1105:amd64
libjson-glib-1.0-0:amd64
libjson-glib-1.0-common
libkmod2:amd64
liblcms2-dev:amd64
liblqr-1-0-dev:amd64
libltdl-dev:amd64
liblzo2-2:amd64
libmagickcore-6-arch-config:amd64
libmagickcore-6-headers
libmagickcore-6.q16-6-extra:amd64
libmagickcore-6.q16-dev:amd64
libmagickwand-6-headers
libmagickwand-6.q16-dev:amd64
libmagickwand-dev
libmount-dev:amd64
libnetplan0:amd64
libnewt0.52:amd64
libopenexr-dev
libopenexr25:amd64
libopenjp2-7-dev:amd64
libpango1.0-0:amd64
libpangoxft-1.0-0:amd64
libpcre16-3:amd64
libpcre3-dev:amd64
libpcre32-3:amd64
libpcrecpp0v5:amd64
libpixman-1-dev:amd64
libpython3-stdlib:amd64
librsvg2-common:amd64
librsvg2-dev:amd64
libslang2:amd64
libtext-charwidth-perl
libtext-iconv-perl
libtext-wrapi18n-perl
libwmf-0.2-7:amd64
libwmf-dev
libwmflite-0.2-7:amd64
libxcb-render0-dev:amd64
libxcb-shm0-dev:amd64
libxext-dev:amd64
libxft2:amd64
libxrender-dev:amd64
lsb-release
mercurial
mercurial-common
netcat-openbsd
netplan.io
python-apt-common
python3
python3-apt
python3-breezy
python3-certifi
python3-configobj
python3-distutils
python3-dulwich
python3-fastbencode
python3-lib2to3
python3-minimal
python3-netifaces:amd64
python3-patiencediff
python3-pkg-resources
python3-six
python3-urllib3
python3-yaml
python3.10
python3.10-minimal
sudo
systemd
systemd-sysv
ubuntu-advantage-tools
ubuntu-minimal
udev
vim-common
vim-tiny
whiptail
xkb-data
xxd

Also requesting @robdimsdale

Scanning through this list of packages I think it looks ok. I'm a little unsure about some packages (e.g. the various glib and libpcre packages) but I think they're all ok.
I'm happy to start with this and see if it causes any integration test failures in the buildpacks.

I guess, @ryanmoran , that depends on whether our goal is to minimize the difference between bionic and jammy, or minimize the surface area of the jammy stack before we lock in the list of packages. Both are valid outcomes - I think it just depends on what our priorities are.
Using the example you gave, I'm not sure why apt-utils would be desired on a stack. I believe that the Cloudfoundry buildpacks don't use it to install or interrogate the system, and I don't know if we support end users / applications doing the same.
It might be safer in terms of customer experience to minimize the difference between the bionic and jammy stacks, but it would lock us into a larger surface area for the lifetime of the stack

@ryanmoran @robdimsdale I'm open to adding as much back to the stack as we can.
I see your point Rob, but we've been shipping the stack with these packages present up until now, and would be removing them (~120 packages) with little to no explanation that could have downstream side effects. I think I'd rather err on the side of caution and add back whatever we can.
If we later wanted to do a bigger investigation into all of the things we can safely take out in order to reduce the surface areas of the stack I'd be open to that - but I'd rather do the research and be more intentional with it if we can

ubuntu-advantage-tools
ubuntu-advantage-tools Depends python3-apt
ubuntu-advantage-tools Depends python3-pkg-resources
netplan.io
netplan.io Depends python3
python3    PreDepends python3-minimal
netplan.io Depends python3-netifaces
netplan.io Depends python3-yaml
python3    Depends python3.10
python3.10 Depends python3.10-minimal
brz
brz Depends python3-breezy (<= 3.2.1+bzr7585-1build1.1~)
python3-breezy  Depends python3-dulwich
python3-dulwich Depends python3-certifi
python3-breezy Depends python3-configobj
python3-breezy Depends python3-fastbencode
python3-breezy Depends python3-patiencediff
python3-breezy Depends python3-six
python3-dulwich Depends python3-urllib3
libmagickwand-6.q16-dev
libmagickwand-6.q16-dev Depends libmagickcore-6.q16-dev
libmagickcore-6.q16-dev Depends librsvg2-dev
librsvg2-dev Depends libglib2.0-dev
libglib2.0-dev Depends libglib2.0-dev-bin
libglib2.0-dev-bin Depends python3-distutils
python3-distutils  Depends python3-lib2to3

@robdimsdale @ryanmoran
This is the final set of packages removed from the package receipt

brz
bzr
dh-python
gir1.2-gdkpixbuf-2.0:amd64
libboost-iostreams1.74.0:amd64
libboost-regex1.74.0:amd64
libcairo-script-interpreter2:amd64
libcairo2-dev:amd64
libcurl4-openssl-dev:amd64
libgdk-pixbuf-2.0-dev:amd64
libgdk-pixbuf2.0-bin
libgirepository-1.0-1:amd64
libglib2.0-bin
libglib2.0-data
libglib2.0-dev-bin
libglib2.0-dev:amd64
libjson-glib-1.0-0:amd64
libjson-glib-1.0-common
liblog-message-simple-perl
libmagickcore-6-arch-config:amd64
libmagickcore-6-headers
libmagickcore-6.q16-6-extra:amd64
libmagickcore-6.q16-6:amd64
libmagickcore-6.q16-dev:amd64
libmagickwand-6-headers
libmagickwand-6.q16-6:amd64
libmagickwand-6.q16-dev:amd64
libmagickwand-dev
libmariadb-dev-compat:amd64
libopenblas-pthread-dev:amd64
libopenblas0-pthread:amd64
libpango1.0-0:amd64
libpangoxft-1.0-0:amd64
libpthread-stubs0-dev:amd64
libpython3.10-minimal:amd64
libpython3.10-stdlib:amd64
librsvg2-common:amd64
librsvg2-dev:amd64
libsasl2-modules-gssapi-mit:amd64
libsource-highlight-common
lsb-release
mercurial
mercurial-common
netplan.io
python-apt-common
python3
python3-apt
python3-breezy
python3-certifi
python3-configobj
python3-distutils
python3-dulwich
python3-fastbencode
python3-lib2to3
python3-minimal
python3-netifaces:amd64
python3-patiencediff
python3-pkg-resources
python3-six
python3-urllib3
python3-yaml
python3.10
python3.10-minimal
ubuntu-advantage-tools
ubuntu-minimal


Startup error 'sshd.yml does not exist'

Site seems to be fine, but I get this every time I start up.
TASK [include] *****************************************************************
fatal: [yalecore]: FAILED! => {"failed": true, "reason": "the file_name '/Users/kevinquillen/Servers/yalecore/tools/drupalvm/provisioning/tasks/sshd.yml' does not exist, or is not readable"}

Hmm... is that file present in your filesystem? It should be part of Drupal VM (for some time now):
https://github.com/geerlingguy/drupal-vm/blob/master/provisioning/tasks/sshd.yml

Oddly enough it isn't there. I might have fudged the upgrade.

Yep. The directory doesn't have all the files. Weird.

(Assuming the problem is fixed :)


Trusting in Firefox and macOS keychain at the same time fails if Firefox is not installed

@mholt, the developer of Caddy Server sent me here.
Caddy tries to make a root CA trusted in all applicable trust stores. On my Mac with macOS Catalina 10.15.4, those are Firefox (NSS) and the macOS keychain.
However in this case, I didn't have Firefox installed, so trusting the CA failed with ERROR pki failed to install root certificate {"error": "not NSS security databases found", "certificate_file": "storage:pki/authorities/local/root.crt"}.
The effect is: The CA is not trusted, neither in Firefox (which is to be expected), but also not in the macOS keychain. It seems like mkcert fails hard once one of the targeted trust stores is unavailable or once there is an error. Instead it should still try the remaining trust stores.
You can find further details (full logs, more information) in the Caddy issue https://github.com/caddyserver/caddy/issues/3205 as well as in my Caddy forum topic at https://caddy.community/t/v2-local-root-cert-is-not-automatically-trusted-by-macos/7368?u=lukas.
If you need further information, please let me know.

I believe that a "not found" error in the case of a particular trust store not being installed could return a sentinel value: https://github.com/FiloSottile/mkcert/blob/d58feefc73e728e2abcf84656a0a93d41cb9b167/truststore_nss.go#L93
And then that error could be logged while other trust stores continue to be installed.

To be clear, Caddy uses a fork of this repo that makes it usable as a library, but I wanted to make sure any design improvements could make their way back into the original.

I think mkcert will only try to install in the NSS database (and hard fail on an error) if it finds one or if Firefox is installed, so this sounds like an issue with the library fork. If I'm wrong and it can be reproduced with mkcert let me know!
I'll definitely keep this in mind when making a proper library.


fix: upgrade rebar.config deps to newer format

Writing the deps in this way saves considerable recompilation in kivra_core, speeding up a simple rebar3 compile from 90 seconds to 4 (on my machine).

Writing the deps in this way saves considerable recompilation in kivra_core, speeding up a simple rebar3 compile from 90 seconds to 4 (on my machine).

Interesting! Do you know why this is the case?

Writing the deps in this way saves considerable recompilation in kivra_core, speeding up a simple rebar3 compile from 90 seconds to 4 (on my machine).

Interesting! Do you know why this is the case?


test

Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)

Does it affect the original behavior:

[ ] Yes
[ ] No
[ ] I don't know

Has unit tests been added:

[ ] Yes
[ ] No
[ ] No Need

Has document been added or modified:

[ ] Yes
[ ] No
[ ] No Need

Does it need to update dependencies:

[ ] Yes
[ ] No

Are there any changes that cannot be rolled back:

[ ] Yes (If Yes, please explain WHY)
[ ] No

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

TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 36.09 seconds
load time: 487 seconds
storage size:<PHONE_NUMBER>8 Bytes
https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221203051502_clickbench_pr_57095.html


[BUG] Sampler's recv tensor shape incorrect

the recv tensor is allocated as shape={num_elements()}, while the correct shape should be {num_tokens(), token_hidden_size()}

Will be fixed in #35

Fixed in #35


Dynamic css loading based on user agent condition

Hey,
I have two large css theme files installed as npm module, one per light / dark mode.
Is it possible to load -one of them- based on user agent condition?
Webpack conditions works only on dev mode,  so I came up with this (in top component):
useEffect(() => {
    if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
      document
        .getElementsByTagName("head")[0]
        .insertAdjacentHTML(
          "beforeend",
          `<link rel="stylesheet" href="${process.env.PUBLIC_URL}/dark.min.css" />`
        );
    }
  }, []);

but my theme files are installed as npm mode so I would have to copy the files into PUBLIC_URL manually, which doesn't go through webpack build lifecycle and complicates build process.
Is there more an elegant solution than that?
Thanks.

I haven't tried it, but I'm curious if we support a dynamic import for this case?
if (...) {
  await import("./dark.css")
}

great idea to leverage dynamic import here, thanks!
this would work fine:
(async () => {
  if (x) {
    await import("y.css");
  }
})();


[VL] Quick fix for commit conflicts

It's like:

Commit https://github.com/apache/incubator-gluten/commit/2f35c63488b3449bd4c4f2d024c46fb1e519a2f0 and https://github.com/apache/incubator-gluten/commit/86e5f9d84a73da4c46f6221e42abf52eb4f499ac has conflict that causes build failure
Commit https://github.com/apache/incubator-gluten/commit/86e5f9d84a73da4c46f6221e42abf52eb4f499ac and https://github.com/apache/incubator-gluten/commit/1cc4ef43e325fe62436fc86a332454d629e55b18 has conflict that causes UT failure

The patch is a quick fix for the issues.

@PHILO-HE Thanks

Merging in advance to avoid blocking other PRs.


Regarding attention

Sir the explanation is awesome. Thanks Can you tell please more about attention-

What type of attention it is ? Is it self attention (giving the weighted sum of attention vector at every time step)
What is the reason for applying it just after CNN not apply it after RNN
Sir in code you have done the following steps regarding attention -
a) Permute
b) Dense layer
c) Mean (dimensionality reduction)
d) Repeat vector
4) Layers multiply

It would be great help sir . I can understand dense layer is implementing tanH function but unable to understand the reason behind  other operations
May I mail you sir .. Thank you in advance . I was unable to understand the reasons behind the code from quite few time

First, I don't know much about the attention, but I'll try to explain to you what I understand
This is the source code of attention that I used. It's in Vietnamese so pls use google translate: https://pbcquoc.github.io/vietnamese-ocr/

Yes it's self-attention. The weights are updated parallelly with CRNN
Attention: https://lilianweng.github.io/lil-log/2018/06/24/attention-attention.html
As in seq-2-seq project, you can see that without attention the path encoder connected to decoder is one path. which means information standing far away from each other (the model or LSTM can not remember the information so far away). In my project, CNN is like encoder and RNN is like decoder. It doesn't make sense to use attention after RNN
for a,c and d I guess it's because of tensorflow (the code is not important). For e) multiply is a x h
You can mail me directly through<EMAIL_ADDRESS>

Thanks again brother sorry for posting at two places I am closing the issue now thanks again


double-beep: Watch trendysupplement.com

double-beep requests the watch of the watch_keyword trendysupplement\.com. See the MS search here and the Stack Exchange search here.

trendysupplement\.com has been seen in 2 true positives, 0 false positives, and 0 NAAs.

Already watched by way of pattern-matching website. Above blacklisting threshold now so taking it all the way.


Fix snowflake required fields

The Snowflake JSON connector allows for missing password, database and warehouse. However, the creation of the URL fails if we do not pass those values.
Fix in 0.10.1

Let's double check the Role as well


Add interactive "prompt for format" option

Checklist

[X] I'm reporting a feature request
[X] I've verified that I'm running yt-dlp version 2021.12.01. (update instructions)
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Description
A lot of the time I find myself running yt-dlp twice in succession:
yt-dlp <url> -F
# Manually check format options
yt-dlp <url> -f <format-spec>

Though yt-dlp has various automatic format selection options, there are frequently cases where manually inspecting format information is needed to avoid a poor-quality downloaded video.
For example, I usually prefer VP9 video over AVC, but sometimes the former has been far too-heavily compressed (anything significantly below about 2/3 of the size of the latter) and as a result the quality is noticeably worse.
So to handle cases like this, I usually manually check for some sites.
An option like --prompt-for-format would be great in this case, that did something similar to:
yt-dlp <url> -F && read -rp 'Format? ' && yt-dlp <url> -f "$REPLY"

I don't think this is in scope of dlp.
This should be handled by external scripts.

Is there a reason it would be specifically out of scope?

Additionally, implementing the feature properly as an external wrapper script would require codifying all of yt-dlp's flags in the wrapper script, to be able to pick out the video URL and correctly pass all of the remaining flags through to yt-dlp on the second pass. For example: yt-dlp-prompt --no-mtime <url> --exec foo would need to know --no-mtime is a boolean flag, --exec takes a value, etc., to parse the flags/vals and robustly find the param. that isn't a value for a flag, i.e. the URL.


add nuxt plugin

The plan was to wait for Vue 3, but I didn't. This plugin has the following features:

App schematic for generating a Nuxt app
Linter builder for linting with ESLint
Test builder for running unit tests with Jest
E2E builder for running e2e tests with Cypress
Dev server builder for development
Browser builder for generating a production build
Prod server builder for serving the output of nx build <app>

Todo:

[x]  Add tests
[x]  Add documentation
[x]  Add package metadata

🥳 Great work. Thanks.
Question: Wouldn't be possible to leverage the power of https://github.com/nuxt/create-nuxt-app to generate a new app?

What do you think of changing the Logo.spec.js to Logo.spec.ts (requires adding the shims-vue.d.ts)? There is a related issue for create-nuxt-app.

I'm aware of the issue. I think a few small changes may be inspired by it, but I don't think those changes are required for this initial work.

Rebase and LGTM!

Hi, is there any docs or links where I can learn how to use nuxt with vue plugin ?
Sorry asking this here


Missing ISK conversion support

We have a use case where we need to convert ISK to another currency.
I checked the central bank rates that are downloaded by saving the rates locally "eu_bank.save_rates(cache)".
It turns out that the ISK currency is included in the xml, but not supported by the gem. Could you add this as a supported currency?

https://github.com/RubyMoney/eu_central_bank/pull/80

A new version (1.3.0) should now be available with ISK support

Thanks for the fast fix!


Apple watch support

What are the plans for Apple watch support?
In the meantime are there any workarounds or ports that will make this UI object work for Apple Watch?
Thank you!

Stephen

Hi @stephenhsklarew! No plans to add Apple Watch support yet, but if you figure out the way to use the control on the watch, feel free to submit a pull request ;)

Thanks @maxkonovalov! I can try doing it, but it's a bit beyond my skill level - it will take me much longer. Would this be something someone would be interested in doing for some money?

@stephenhsklarew actually there's currently no simple way to create a custom view on watchOS. But I would suggest two options to try:

Use the native WKInterfaceActivityRing, it is the original progress rings from Apple Watch.
Pre-generate a set of images and use them as an animated progress with WKInterfaceImage, the images can be generated here - http://hmaidasani.github.io/RadialChartImageGenerator/

excellent, thank you!
Stephen Sklarew
Chief Executive Officer
<EMAIL_ADDRESS>949.413.8306
Schedule a meeting https://calendly.com/stephen-sklarew
https://twitter.com/synaptiqai https://www.facebook.com/synaptiq
http://www.linkedin.com/
https://www.youtube.com/channel/UCydh4GkLsV8M14x-HRZVI9w
http://www.synaptiq.ai/

On Wed, Feb 13, 2019 at 12:10 AM Max Konovalov<EMAIL_ADDRESS>wrote:

@stephenhsklarew https://github.com/stephenhsklarew actually there's
currently no simple way to create a custom view on watchOS. But I would
suggest two options to try:

Use the native WKInterfaceActivityRing, it is the original progress
rings from Apple Watch.
Pre-generate a set of images and use them as an animated progress
with WKInterfaceImage, the images can be generated here -
http://hmaidasani.github.io/RadialChartImageGenerator/

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/maxkonovalov/MKRingProgressView/issues/47#issuecomment-463100149,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXnCDcqvCpSkpWZBEzbS204nxEupjNtjks5vM8iPgaJpZM4a1TFS
.


can't get the font size

when i try to get the font size from one paragraph, it just returns none.

it comes out that the code can't detect the font size which in Chinese is “5号”.

Hello. If it returns None, the font size is being set to the default value of Word. That value is 11 on my Word.
If you change font size and run again, you must divide it by 12700 to get the correct value


SMS as second factor with Azure AD Free

Hi.
According to this tabe SMS should not be available as a second factor in Azure AD Free. But it does indeed work. I tried it with a brand new Azure AD Free Tenant without any licence and security defaults on. The account is not in any admin role. Why does it work? Is this only a licencing limitation? Am I not allowed to use it even though I can set it up? Can please someone verify and clarify this.
Best regards
Andreas

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

ID: feb03e63-f543-d85b-9daf-16b4d1e13a60
Version Independent ID: da9dcdd2-70d4-e08e-18f2-6e6a1489937a
Content: Azure AD Multi-Factor Authentication versions and consumption plans
Content Source: articles/active-directory/authentication/concept-mfa-licensing.md
Service: active-directory
Sub-service: authentication
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@andreasmarx Thank you for your feedback! We will review and update as appropriate.

@andreasmarx
When it comes to AzureAD Free and MFA, you can use security defaults to enable multi-factor authentication for all users. You don't have granular control of enabled users or scenarios, but it does provide that additional security step.
For more info - Available versions of Azure AD Multi-Factor Authentication
If you're using Conditional Access Policies or MFA settings (outside of your security defaults) you'll need AzureAD Premium.

I was also able to replicate this using my AzureAD Free tenant without any license and logging in with a user that didn't have any assigned roles.
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue!

Hi @JamesTran-MSFT .
Thank you for the feedback. Unfortunately this does not answer my question regarding using sms with azure ad free/security defaults. Could you please provide details about hat? Best regards Andreas

@andreasmarx and @OMSRocks
Thank you for the quick follow up! I completely missed the SMS portion of your question. I was able to test this out and will post my findings below.
If you enabled security defaults and have a phone number listed under "Authentication Methods".

You'll be able to authenticate with SMS or Call:

However, if you remove your phone number or don't have a number listed to begin with, you'll receive this prompt:

-Selecting "Next" will walk you through setting up the MS Authenticator App.
Once that's set up, if you add/re-add a phone number, the MS Authenticator App, will be the primary means of MFA, and you can "choose another way" to authenticate with - SMS or call.

Due to the below prompt, I've reached out to our product team to see if this is a bug or a by design feature for AzureAD Free MFA with security defaults. Additionally, I'll reach out to the author of this doc to see if the table needs to be updated once I get confirmation.

If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.

@andreasmarx and @OMSRocks
Thank you both for your time and patience throughout this issue! I just wanted to check in and let you know that we're still working on this issue with our engineering team and will update as soon as possible.
Due to the holidays, please allow some time for our product team to look into this and provide me with an update.
Thank you again for your time and patience.

@andreasmarx and @OMSRocks
Thank you both for your time and patience throughout this issue. I just wanted to reach out and let you know that I received an update from our engineering team regarding this issue.
PG Update:
This does look like a documentation issue with Security Defaults, but it gets to deeper questions beyond just docs.
Next Steps:
Our PG team will continue working internally on this issue and will update the docs as needed. As of right now, you can continue to leverage SMS as a second factor.
Since our PG team will continue working on this issue, I'll go ahead and close this out. If you have any other questions or require additional support, please let me know.
Thank you both again for your time and patience throughout this issue!

@andreasmarx and @OMSRocks
Thank you both for your time and patience throughout this issue. I just wanted to reach out and let you know that I received an update from our engineering team regarding this issue.
PG Update:
This does look like a documentation issue with Security Defaults, but it gets to deeper questions beyond just docs.
Next Steps:
Our PG team will continue working internally on this issue and will update the docs as needed. As of right now, you can continue to leverage SMS as a second factor.
Since our PG team will continue working on this issue, I'll go ahead and close this out. If you have any other questions or require additional support, please let me know.
Thank you both again for your time and patience throughout this issue!


error

RuntimeError                              Traceback (most recent call last)
 in <cell line: 45>()
43 fragments = []
44
---> 45 for segment in segments:
46   print(f"[{seconds_to_time_format(segment.start)} --> {seconds_to_time_format(segment.end)}] {segment.text}")
47   if word_level_timestamps:
1 frames
/usr/local/lib/python3.10/dist-packages/faster_whisper/transcribe.py in encode(self, features)
627         features = get_ctranslate2_storage(features)
628
--> 629         return self.model.encode(features, to_cpu=to_cpu)
630
631     def generate_with_fallback(
RuntimeError: Library libcublas.so.11 is not found or cannot be loaded

GPU
GPU execution requires the following NVIDIA libraries to be installed:

cuBLAS for CUDA 11
cuDNN 8 for CUDA 11

There are multiple ways to install these libraries. The recommended way is described in the official NVIDIA documentation, but we also suggest other installation methods below.

Other installation methods (click to expand)
Use Docker
The libraries are installed in this official NVIDIA Docker image: nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04.
Install with pip (Linux only)
On Linux these libraries can be installed with pip. Note that LD_LIBRARY_PATH must be set before launching Python.
pip install nvidia-cublas-cu11 nvidia-cudnn-cu11

export LD_LIBRARY_PATH=`python3 -c 'import os; import nvidia.cublas.lib; import nvidia.cudnn.lib; print(os.path.dirname(nvidia.cublas.lib.__file__) + ":" + os.path.dirname(nvidia.cudnn.lib.__file__))'`

Download the libraries from Purfview's repository (Windows & Linux)
Purfview's whisper-standalone-win provides the required NVIDIA libraries for Windows & Linux in a single archive. Decompress the archive and place the libraries in a directory included in the PATH.

Thank you for your reply, but I don’t know how to operate it. When I used it today, I found that the program became like this. Maybe you need to update the project code to adapt to colab?

Your reply to me is that I need to download this resource package and put it in the colab folder by myself? Is there an easier way that can be solved by just entering the program code and running it? This convenience is one of the reasons why I use colab as a tool.....

In addition, is it possible to support the translation function of gpt4?

Bad news, colab has upgraded their environment's CUDA version to 12.2, and CUDA 11 needs to be installed by yourself. I'll see if I can upgrade it when I have time.

I am currently using this project for work and I pray that you can fix it as soon as possible. If you fix it, can you please reply to me in the comment area?

Ok.

I tried, but failed. I'll think of another way. Because it's the weekend and I have to be with my child, I don't have time.

I understand very well, and I will wait patiently for you to fix the project.🥹

Fixed at 1dcfc4c94fa9e6c4026ea8f1a63509775b547438


Allow for Caption/Headers

As a user, I want to know what I am actually selecting. Would be good to have a bar at the top indicating whether it's a day, hour or year.
See example:

As opposed to:

@dejanvasic85 Thank you for your feedback.Do you have any good interface design Suggestions for it?

Yes my first screenshot. Just use the header row instead of one of the row values.

@dejanvasic85 I have added this feature in<EMAIL_ADDRESS>It's used like this：
const dateConfig = {
    'hour': {
        format: 'hh',
        caption: 'Hour',
        step: 1,
    },
    'minute': {
        format: 'mm',
        caption: 'Min',
        step: 1,
    },
    'second': {
        format: 'hh',
        caption: 'Sec',
        step: 1,
    },
}

<DatePicker
	showCaption={true}
	dateConfig={dateConfig}
/>


Create & agree on team contract

Task
Discuss, agree on, and sign a team contract as described here:
https://oss.cs.fau.de/teaching/course-resources/student-team-contract/
Online, you don’t have to sign physically, but you must ensure that your name is listed as an signee.

Team contract created and signed


Conda executable not found

I would be happy to test your software to see how it can be used for segmentation and training on OMERO-stored image data.
I have tried to build your docker images using docker-compose.
I do run into an issue with building the seg-serve image.
The issue appears to occur from this line from the respective Dockerfile
https://github.com/hip-satomi/SegServe/blob/883b626a41fd696e0adf7bf944dad418a490f879/Dockerfile#L29
ERROR [seg-serve  9/14] RUN mlflow run https://github.com/hip-satomi/Cellpose-Executor.git -e info -v main
------
 > [seg-serve  9/14] RUN mlflow run https://github.com/hip-satomi/Cellpose-Executor.git -e info -v main:
1.684 2024/12/16 09:09:55 INFO mlflow.projects.utils: === Fetching project from https://github.com/hip-satomi/Cellpose-Executor.git into /tmp/tmpvi_qruv4 ===
2.347 2024/12/16 09:09:56 ERROR mlflow.cli: === Could not find Conda executable at conda. Ensure Conda is installed as per the instructions at https://conda.io/projects/conda/en/latest/user-guide/install/index.html. You can also configure MLflow to look for a specific Conda executable by setting the MLFLOW_CONDA_HOME environment variable to the path of the Conda executable ===
------
failed to solve: process "/usr/local/bin/_dockerfile_shell.sh mlflow run https://github.com/hip-satomi/Cellpose-Executor.git -e info -v main" did not complete successfully: exit code: 1

Possibly something has changed in the dependencies of the Dockerfile? Do you maybe have a suggestion of a different branch of the repository that works?
Best, Maarten

Hey Maarten,
thanks for making us aware of the issue. Seems to be an problem of using micromamba instead of conda for efficient environment management :thinking: I will investigate further


Yo/npm error on update

Hi,
I end up with the following error on auto-update. I'm believe the cause is clearly explained in the error message itself, but the solution is what concerns me.
Well, its the generic solution given by Yo. But adding the node_modules of the current version of atom manually should never be the solution here, since its version could change. I guess it whatever environment variables are missing has to be added dynamically by Omni-Sharp, if its not a bug elsewhere in atom (This only happens with this package though).
><EMAIL_ADDRESS>postinstall C:\Users\Prasanna\AppData\Local\Temp\apm-install-dir-115425-10172-hvql48\node_modules\omnisharp-atom\node_modules\omnisharp-client
> gulp npm-postinstall

><EMAIL_ADDRESS>postinstall C:\Users\Prasanna\AppData\Local\Temp\apm-install-dir-115425-10172-hvql48\node_modules\omnisharp-atom\node_modules\yo
> yodoctor

Yeoman Doctor
Running sanity checks on your system

√ Global configuration file is valid
√ No .bowerrc file in home directory
√ No .yo-rc.json file in home directory
×
npm root value is not in your NODE_PATH

[Info]
  NODE_PATH = C:\Users\Prasanna\AppData\Local\atom\app-0.201.0\resources\app.asar\exports
  npm root  = C:\Users\Prasanna\AppData\Local\atom\app-0.201.0\resources\app\apm\bin\node_modules

[Fix] Append the npm root value to your NODE_PATH variable
  If you're using cmd.exe, run this command to fix the issue:
    setx NODE_PATH "%NODE_PATH%;C:\Users\Prasanna\AppData\Local\atom\app-0.201.0\resources\app\apm\bin\node_modules"
  Then restart your command-line. Otherwise, you can setup NODE_PATH manually:
    https://github.com/sindresorhus/guides/blob/master/set-environment-variables.md#windows

Found potential issues on your machine :(

npm WARN engine<EMAIL_ADDRESS>wanted: {"node":">=0.12.0","iojs":">=1.0.0","atom":">=0.194.0"} (current: {"node":"0.10.35","npm":"2.5.1"})
'gulp' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\\Users\\Prasanna\\AppData\\Local\\atom\\app-0.201.0\\resources\\app\\apm\\bin\\\\node.exe" "C:\\Users\\Prasanna\\AppData\\Local\\atom\\app-0.201.0\\resources\\app\\apm\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "C:\\Users\\Prasanna\\.atom\\.apm\\.apmrc" "--userconfig" "C:\\Users\\Prasanna\\.atom\\.apmrc" "install" "C:\\Users\\Prasanna\\AppData\\Local\\Temp\\d-115425-10172-fuk1nt\\package.tgz" "--target=0.22.0" "--arch=ia32" "--msvs_version=2013"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>postinstall: `gulp npm-postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script 'gulp npm-postinstall'.
npm ERR! This is most likely a problem with the omnisharp-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     gulp npm-postinstall
npm ERR! You can get their info via:
npm ERR!     npm owner ls omnisharp-client
npm ERR! There is likely additional logging output above.

I've removed the dependency on "yo" it didn't need to be there anyway.
Let us know if this is fixed for you in the latest version!

Seems to be updating properly now. Closing issue.


Docker:  select2 doesn't make it into static

Not sure why, but select2 exists in InvenTree/InvenTree/static, but isn't copied over to /home/inventree/static.
This appears to prevent submitting via form, and makes various errors in the developers console.
Manually copying it over seems to make it work okay.

The entire /select2 directory?

I just tried this on a "fresh" docker build (had to clean out the docker image cache a few times to get it to work properly).
Running from inside the docker image:

Yeah.  Collectstatic doesn't appear to be working.... Not sure why.
On Thu, Jul 8, 2021, 8:41 AM Oliver @.***> wrote:

I just tried this on a "fresh" docker build (had to clean out the docker
image cache a few times to get it to work properly).
Running from inside the docker image:
[image: image]
https://user-images.githubusercontent.com/10080325/124941679-56026300-e04e-11eb-8c52-6110e6f30470.png
[image: image]
https://user-images.githubusercontent.com/10080325/124941791-6a466000-e04e-11eb-8c23-df615b0e7343.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/inventree/InvenTree/issues/1767#issuecomment-876498098,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAL67I2C75VJWLW7MVG3XILTWW2K5ANCNFSM477U2POQ
.

What do you get in the "collected" static directory?

Ahhh..... my fault.  Thanks for helping anyway.  It's working as expected.


langsmith.client: Failed to batch ingest runs: LangSmithError('Failed to POST https://api.smith.langchain.com/runs/batch in LangSmith API. HTTPError('400 Client Error: Bad Request for url: https://api.smith.langchain.com/runs/batch', '{"detail":"dotted_order must contain a single part for root runs for run_id:...

Issue you'd like to raise.
[2024-05-31 12:01:10,642: WARNING] langsmith.client: Failed to batch ingest runs: LangSmithError('Failed to POST https://api.smith.langchain.com/runs/batch in LangSmith API. HTTPError('400 Client Error: Bad Request for url: https://api.smith.langchain.com/runs/batch', '{"detail":"dotted_order must contain a single part for root runs for run_id:0ba586ea-a9c0-45d5-a1f3-711121ee97c2 trace_id:bbc2d4c6-cf3a-41e5-89b5-2cfcbda67958 dotted_order:20240531T095804831161Zbbc2d4c6-cf3a-41e5-89b5-2cfcbda67958.20240531T100019272195Zc8912efb-69e3-4f67-844c-bbd2efe5ece3.20240531T100100540304Z0ba586ea-a9c0-45d5-a1f3-711121ee97c2 parent_run_id:None"}')')
I think it's related to https://github.com/langchain-ai/langchain/issues/22353 - I manually fixed that issue by modifying Langchain's code to initialize RunTree.events to [] in case it was None, but I think I only masked the root issue - now I get the error above.
Suggestion:
No response

okay can you please share the code of your chain where you are using this tracer?

Thanks for raising this issue - definitely something going on - will try to get to the bottom. Any code example could help speed things along


Add BitOrAssign etc. to PrimInt

PrimInt already has bounds for BitOr etc. Is it an oversight that the ...Assign variants are missing?
Currently, I can do:
container = container | t;

...but not:
container |= t;

...when t has a PrimInt bound and container is initialized with T::zero().

I think it's because Primint is simply older -- all of the OpAssign traits were "only" stabilized in Rust 1.8.0, and it's a breaking change to add more requirements to PrimInt since it's not a sealed trait. But you could make your own extended trait that requires more, something like:
trait MyPrimInt: PrimInt + BitOrAssign + ... {}
impl<T: PrimInt + BitOrAssign + ...> MyPrimInt for T {}

Don't you gather breaking changes to perform them one day?

In theory, yes, but in practice I'm afraid that a breaking semver bump will fracture the ecosystem, since these traits are often used in others' public APIs.

Hm, I guess I'll close this then.


Add ability to hide "Enabled"/"Disabled" text on toggle checkbox

The text is unnecessary in some cases and hiding it through CSS requires beating the specificity of SLDS styles or using !important, neither of which are great solutions. Unless the text is needed for accessibility (doesn't seem to be the case for screen readers), I think that it should be hideable through code.

@jimmydief thanks for your input!  We welcome pull requests and we have a clear and detailed contribution guide. Want to try sending us a PR for your idea?


Scene objects do not receive rpc events in scenes loaded additively

Describe the bug
Scene objects do not receive rpc events in scenes loaded additively
Repro project
SceneObjectsIssue.zip
To Reproduce
Steps to reproduce the behavior:

Open the attached project 'SceneObjectIssue'
Launch "OfflineScene"
Host Lan
Fly the camera (WASD) to a cube and look at it. A sphere will appear on top of it if looked at (RpcEvent).
5 Load Scene 1 additively
6 Look at sphere and nothing happens

Expected behavior
RpcEvents should be received by clients
Desktop (please complete the following information):

OS: \Windows
Build target: \Windows, UWP
Unity version: \2019.1.0f2
Mirror branch: \master

Seems it might be an issue with observers ?
SpawnObserversForConnection(conn); is not called when scene is loaded additively.

can you reproduce it with our built in scene loading examples?

I think I have this fixed.  @tomkrikorian could you please find me in Mirror's Discord to review?

Hi sorry i was on vacations and i'm little tied at work. Will be able to test at the end of the week.

:tada: This issue has been resolved in version 3.14.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Sync security contact keys with security.md

The security contacts listed on the website differed from the SECURITY.md file in the bitcoin/bitcoin repo, they should be in sync.

tested ACK


Examples:
"The rest of this document addresses non-mechanical style points."
"Initialisms"
"Indent Error Flow"
"Variable Names"
So we should either remove the "not a style guide" disclaimer or stop dictating style.

I changed it to "not a comprehensive style guide."


thiamine pyrophosphate transmembrane transporter

From SGD:
You are correct that TPC1 was misannotated to “thiamine transmembrane transporter activity” and should have been annotated to “thiamine pyrophosphate transmembrane transporter”. However, this term does not currently exist in the ontology. Although, not as granular, there is a term “thiamine pyrophosphate transporter activity” (GO:0090422) and we could transfer the annotation to this term. Of course, if you would prefer the more granular term you could request it and then let us know when it has been created and we could transfer the annotation to this more granular term.
Action, please move
“thiamine pyrophosphate transporter activity” (GO:0090422)
to
thiamine pyrophosphate transmembrane transporter”
thanks
Val

Renamed 'GO:0090422 thiamine pyrophosphate transporter activity' (checked all EXP annotations; all are TM transporters).


[elasticsearch] Service type doesn't get set using helm chart available at elastic/elasticsearch but works with cloned chart.

Chart version:
7.1.1
Kubernetes version:
Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.0"
Server Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.4"
Kubernetes provider: E.g. GKE (Google Kubernetes Engine)
Azure
Helm Version:
Client: &version.Version{SemVer:"v2.12.0"
Server: &version.Version{SemVer:"v2.13.1"
helm get release output
REVISION: 13
RELEASED: Mon Jun 24 08:24:21 2019
CHART: elasticsearch-7.1.1
USER-SUPPLIED VALUES:
clusterName: customers-integration-tests-elasticsearch
minimumMasterNodes: 1
replicas: 1
service:
  type: LoadBalancer

COMPUTED VALUES:
antiAffinity: hard
antiAffinityTopologyKey: kubernetes.io/hostname
clusterHealthCheckParams: wait_for_status=green&timeout=1s
clusterName: customers-integration-tests-elasticsearch
esConfig: {}
esJavaOpts: -Xmx1g -Xms1g
esMajorVersion: 7
extraEnvs: []
extraInitContainers: []
extraVolumeMounts: []
extraVolumes: []
fsGroup: 1000
fullnameOverride: ""
httpPort: 9200
image: docker.elastic.co/elasticsearch/elasticsearch
imagePullPolicy: IfNotPresent
imagePullSecrets: []
imageTag: 7.1.1
ingress:
  annotations: {}
  enabled: false
  hosts:
  - chart-example.local
  path: /
  tls: []
initResources: {}
masterService: ""
maxUnavailable: 1
minimumMasterNodes: 1
nameOverride: ""
networkHost: <IP_ADDRESS>
nodeAffinity: {}
nodeGroup: master
nodeSelector: {}
persistence:
  annotations: {}
  enabled: true
podAnnotations: {}
podManagementPolicy: Parallel
priorityClassName: ""
protocol: http
readinessProbe:
  failureThreshold: 3
  initialDelaySeconds: 10
  periodSeconds: 10
  successThreshold: 3
  timeoutSeconds: 5
replicas: 1
resources:
  limits:
    cpu: 1000m
    memory: 2Gi
  requests:
    cpu: 100m
    memory: 2Gi
roles:
  data: "true"
  ingest: "true"
  master: "true"
secretMounts: []
service:
  type: LoadBalancer
sysctlVmMaxMapCount: 262144
terminationGracePeriod: 120
tolerations: []
transportPort: 9300
updateStrategy: RollingUpdate
volumeClaimTemplate:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 30Gi

HOOKS:
---
# customers-integration-tests-elasticsearch-znpuz-test
apiVersion: v1
kind: Pod
metadata:
  name: "customers-integration-tests-elasticsearch-znpuz-test"
  annotations:
    "helm.sh/hook": test-success
spec:
  containers:
  - name: "customers-integration-tests-elasticsearch-tdabf-test"
    image: "docker.elastic.co/elasticsearch/elasticsearch:7.1.1"
    command:
      - "sh"
      - "-c"
      - |
        #!/usr/bin/env bash -e
        curl -XGET --fail 'customers-integration-tests-elasticsearch-master:9200/_cluster/health?wait_for_status=green&timeout=1s'
  restartPolicy: Never
MANIFEST:

---
# Source: elasticsearch/templates/poddisruptionbudget.yaml
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
  name: "customers-integration-tests-elasticsearch-master-pdb"
spec:
  maxUnavailable: 1
  selector:
    matchLabels:
      app: "customers-integration-tests-elasticsearch-master"
---
# Source: elasticsearch/templates/service.yaml
kind: Service
apiVersion: v1
metadata:
  name: customers-integration-tests-elasticsearch-master
spec:
  selector:
    heritage: "Tiller"
    release: "customers-integration-tests-elasticsearch"
    chart: "elasticsearch-7.1.1"
    app: "customers-integration-tests-elasticsearch-master"
  ports:
  - name: http
    protocol: TCP
    port: 9200
  - name: transport
    protocol: TCP
    port: 9300
---
# Source: elasticsearch/templates/service.yaml
kind: Service
apiVersion: v1
metadata:
  name: customers-integration-tests-elasticsearch-master-headless
  labels:
    heritage: "Tiller"
    release: "customers-integration-tests-elasticsearch"
    chart: "elasticsearch-7.1.1"
    app: "customers-integration-tests-elasticsearch-master"
  annotations:
    # Create endpoints also if the related pod isn't ready
    service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
  clusterIP: None # This is needed for statefulset hostnames like elasticsearch-0 to resolve
  selector:
    app: "customers-integration-tests-elasticsearch-master"
  ports:
  - name: http
    port: 9200
  - name: transport
    port: 9300
---
# Source: elasticsearch/templates/statefulset.yaml
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
  name: customers-integration-tests-elasticsearch-master
  labels:
    heritage: "Tiller"
    release: "customers-integration-tests-elasticsearch"
    chart: "elasticsearch-7.1.1"
    app: "customers-integration-tests-elasticsearch-master"
spec:
  serviceName: customers-integration-tests-elasticsearch-master-headless
  selector:
    matchLabels:
      app: "customers-integration-tests-elasticsearch-master"
  replicas: 1
  podManagementPolicy: Parallel
  updateStrategy:
    type: RollingUpdate
  volumeClaimTemplates:
  - metadata:
      name: customers-integration-tests-elasticsearch-master
    spec:
      accessModes:
      - ReadWriteOnce
      resources:
        requests:
          storage: 30Gi

  template:
    metadata:
      name: "customers-integration-tests-elasticsearch-master"
      labels:
        heritage: "Tiller"
        release: "customers-integration-tests-elasticsearch"
        chart: "elasticsearch-7.1.1"
        app: "customers-integration-tests-elasticsearch-master"
      annotations:

    spec:
      securityContext:
        fsGroup: 1000
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchExpressions:
              - key: app
                operator: In
                values:
                - "customers-integration-tests-elasticsearch-master"
            topologyKey: kubernetes.io/hostname
      terminationGracePeriodSeconds: 120
      volumes:
      initContainers:
      - name: configure-sysctl
        securityContext:
          runAsUser: 0
          privileged: true
        image: "docker.elastic.co/elasticsearch/elasticsearch:7.1.1"
        command: ["sysctl", "-w", "vm.max_map_count=262144"]
        resources:
          {}

      containers:
      - name: "elasticsearch"
        image: "docker.elastic.co/elasticsearch/elasticsearch:7.1.1"
        imagePullPolicy: "IfNotPresent"
        readinessProbe:
          failureThreshold: 3
          initialDelaySeconds: 10
          periodSeconds: 10
          successThreshold: 3
          timeoutSeconds: 5

          exec:
            command:
              - sh
              - -c
              - |
                #!/usr/bin/env bash -e
                # If the node is starting up wait for the cluster to be ready (request params: 'wait_for_status=green&timeout=1s' )
                # Once it has started only check that the node itself is responding
                START_FILE=/tmp/.es_start_file

                http () {
                    local path="${1}"
                    if [ -n "${ELASTIC_USERNAME}" ] && [ -n "${ELASTIC_PASSWORD}" ]; then
                      BASIC_AUTH="-u ${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}"
                    else
                      BASIC_AUTH=''
                    fi
                    curl -XGET -s -k --fail ${BASIC_AUTH} http://<IP_ADDRESS>:9200${path}
                }

                if [ -f "${START_FILE}" ]; then
                    echo 'Elasticsearch is already running, lets check the node is healthy'
                    http "/"
                else
                    echo 'Waiting for elasticsearch cluster to become cluster to be ready (request params: "wait_for_status=green&timeout=1s" )'
                    if http "/_cluster/health?wait_for_status=green&timeout=1s" ; then
                        touch ${START_FILE}
                        exit 0
                    else
                        echo 'Cluster is not yet ready (request params: "wait_for_status=green&timeout=1s" )'
                        exit 1
                    fi
                fi
        ports:
        - name: http
          containerPort: 9200
        - name: transport
          containerPort: 9300
        resources:
          limits:
            cpu: 1000m
            memory: 2Gi
          requests:
            cpu: 100m
            memory: 2Gi

        env:
          - name: node.name
            valueFrom:
              fieldRef:
                fieldPath: metadata.name
          - name: cluster.initial_master_nodes
            value: "customers-integration-tests-elasticsearch-master-0,"
          - name: discovery.seed_hosts
            value: "customers-integration-tests-elasticsearch-master-headless"
          - name: cluster.name
            value: "customers-integration-tests-elasticsearch"
          - name: network.host
            value: "<IP_ADDRESS>"
          - name: ES_JAVA_OPTS
            value: "-Xmx1g -Xms1g"
          - name: node.data
            value: "true"
          - name: node.ingest
            value: "true"
          - name: node.master
            value: "true"
        volumeMounts:
          - name: "customers-integration-tests-elasticsearch-master"
            mountPath: /usr/share/elasticsearch/data
      # This sidecar will prevent slow master re-election
      # https://github.com/elastic/helm-charts/issues/63
      - name: elasticsearch-master-graceful-termination-handler
        image: "docker.elastic.co/elasticsearch/elasticsearch:7.1.1"
        imagePullPolicy: "IfNotPresent"
        command:
        - "sh"
        - -c
        - |
          #!/usr/bin/env bash
          set -eo pipefail

          http () {
              local path="${1}"
              if [ -n "${ELASTIC_USERNAME}" ] && [ -n "${ELASTIC_PASSWORD}" ]; then
                BASIC_AUTH="-u ${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}"
              else
                BASIC_AUTH=''
              fi
              curl -XGET -s -k --fail ${BASIC_AUTH} http://customers-integration-tests-elasticsearch-master:9200${path}
          }

          cleanup () {
            while true ; do
              local master="$(http "/_cat/master?h=node")"
              if [[ $master == "customers-integration-tests-elasticsearch-master"* && $master != "${NODE_NAME}" ]]; then
                echo "This node is not master."
                break
              fi
              echo "This node is still master, waiting gracefully for it to step down"
              sleep 1
            done

            exit 0
          }

          trap cleanup SIGTERM

          sleep infinity &
          wait $!
        env:
          - name: NODE_NAME
            valueFrom:
              fieldRef:
                fieldPath: metadata.name

Describe the bug:
When using the helm chart available at  elastic/elasticsearch the service.type doesn't get set.
Command used:
helm upgrade --install --force --set clusterName=customers-integration-tests-elasticsearch,replicas=1,minimumMasterNodes=1,service.type=LoadBalancer customers-integration-tests-elasticsearch elastic/elasticsearch
Output from command:
Release "customers-integration-tests-elasticsearch" has been upgraded. Happy Helming!
LAST DEPLOYED: Mon Jun 24 08:37:07 2019
NAMESPACE: vinci
STATUS: DEPLOYED

RESOURCES:
==> v1/Pod(related)
NAME                                                READY  STATUS   RESTARTS  AGE
customers-integration-tests-elasticsearch-master-0  3/3    Running  0         13m

==> v1/Service
NAME                                                       TYPE       CLUSTER-IP  EXTERNAL-IP  PORT(S)            AGE
customers-integration-tests-elasticsearch-master           ClusterIP  <IP_ADDRESS>  <none>       9200/TCP,9300/TCP  14m
customers-integration-tests-elasticsearch-master-headless  ClusterIP  None        <none>       9200/TCP,9300/TCP  54m

==> v1beta1/PodDisruptionBudget
NAME                                                  MIN AVAILABLE  MAX UNAVAILABLE  ALLOWED DISRUPTIONS  AGE
customers-integration-tests-elasticsearch-master-pdb  N/A            1                1                    54m

==> v1beta1/StatefulSet
NAME                                              READY  AGE
customers-integration-tests-elasticsearch-master  1/1    54m

NOTES:
1. Watch all cluster members come up.
  $ kubectl get pods --namespace=vinci -l app=customers-integration-tests-elasticsearch-master -w
2. Test cluster health using Helm test.
  $ helm test customers-integration-tests-elasticsearch

When using the same chart but cloned locally with exactly the same values it does get set.
Command used: (in chart folder)
helm upgrade --install --force --set clusterName=customers-integration-tests-elasticsearch,replicas=1,minimumMasterNodes=1,service.type=LoadBalancer customers-integration-tests-elasticsearch .
Output from command:
Release "customers-integration-tests-elasticsearch" has been upgraded. Happy Helming!
LAST DEPLOYED: Mon Jun 24 08:37:51 2019
NAMESPACE: vinci
STATUS: DEPLOYED

RESOURCES:
==> v1/Pod(related)
NAME                                                READY  STATUS       RESTARTS  AGE
customers-integration-tests-elasticsearch-master-0  3/3    Terminating  0         13m

==> v1/Service
NAME                                                       TYPE          CLUSTER-IP  EXTERNAL-IP  PORT(S)                        AGE
customers-integration-tests-elasticsearch-master           LoadBalancer  <IP_ADDRESS>  <pending>    9200:30184/TCP,9300:32622/TCP  15m
customers-integration-tests-elasticsearch-master-headless  ClusterIP     None        <none>       9200/TCP,9300/TCP              54m

==> v1beta1/PodDisruptionBudget
NAME                                                  MIN AVAILABLE  MAX UNAVAILABLE  ALLOWED DISRUPTIONS  AGE
customers-integration-tests-elasticsearch-master-pdb  N/A            1                0                    54m

==> v1beta1/StatefulSet
NAME                                              READY  AGE
customers-integration-tests-elasticsearch-master  1/1    54m`

**Steps to reproduce:**

1. Deploy helm chart elastic/elasticsearch and set value `service
.type=LoadBalancer

Steps to reproduce:

Deploy chart form elastic/elasticsearch and use --set service.type=LoadBalancer

Expected behavior:
Service type should be set to LoadBalancer
Any additional context:
This is really wierd behaviour and I haven't seen anything similar previously. Looking through the helm chart I can't understand the reason for these different behaviours between using the repository and local versions.
I'm not a helm master so maybe I'm missing something obvious here. If anyone has any ideas they would be helpful.
For now I will include the chart in our repository for our deployments.

Just had a similar issue, what I found out is this:
The change you are missing was merged after release 7.1.1:
Merge pull request #123 from kimxogus/elasticsearch/fix-master-check
https://github.com/elastic/helm-charts/pull/123
Seems your "cloned chart" is just the master branch...
Guess I will give this a try now, too.
When the next release is planned? ;-)

Yikes, I'm so used to always having master as the latest release that I din't even consider that. That explains everything. Thanks for your help. I'll keep my eyes on upcoming releases then.

When the next release is planned? ;-)

Will be later this week. Most likely on Wednesday.

Yikes, I'm so used to always having master as the latest release that I din't even consider that.

Couple of reasons that makes this tricky:

We release all of the charts together at the same time with the same version in sync with the stack. In theory we could have a script that dynamically adds an extra version number on the end like 7.1.1-1 and release on every change to master. However:
We don't currently have a merge bot setup. This means that pull requests are not tested against a rebased version of master. So a passing pull request build might fail in master once it has actually been re-based.
Because the charts are designed to work together there are sometimes multiple PRs that might end up depending on each other.

All of these things are very fixable and automatable but require time and effort. So this is the situation for now, but one day we might be able to move to a "release on every merge to master" model.

I am also interested in changing service type, @Crazybus any update about next release?

I am also interested in changing service type, @Crazybus any update about next release?

I think you already saw it, but this was released yesterday in the 7.2.0 release. https://github.com/elastic/helm-charts/releases/tag/7.2.0


Suggestion Box

Suggestions from Community Members

Auto-compounding staking rewards
Staking dashboard (expected annual return in OSMO given user's stake/total staked, or at the very least, total staked amount of OSMO)
List of recent transactions (Keplr)
Pin OSMO price on telegram
$YAX-like meta-aggregator token where users stake a single token in a vault, which is running multiple vault strategies in the background... lessens tax burden, simpler farming, etc.

An on-chain suggestion box where voting has a 10 OSMO fee

Osmosis Zone UI banner that shows a link to governance proposals with proposal metrics (deposit or vote stage, % votes, etc etc).  Intended to remind me to go vote!

Adding some stuff from telegram community discussions:

Support for creating governance proposals, and depositing on existing proposals, in Keplr or Osmosis Zone.
LP richlist / overview of which addresses are large contributors to different pools / pool ownership breakdowns.
Tracker to see which accounts make lots of trades (Arbitrage bots, algorithmic traders, etc)


Proposal: Relax new() constraint on TResponse

Is the new() constraint really needed? Wouldn't NoContent if response is null suffice?
It feels weird having to implement a public (of all things) default constructor seemingly only because one line of code needs new() as guard against null.

With the newly added required keyword, I believe this request will come a far amount, so I vouch for this.

try v4.5.0-beta7 and report back pls...

A few quick test seemed to work, only passing null directly into SendOkAsync() resulted in a NRE, which, in my opinion, is probably okay (since one could easily check if they are passing null and then just abort early or handle it differently).
Here the stacktrace:
System.NullReferenceException: Object reference not set to an instance of an object.
         at FastEndpoints.Config.<>c.<.cctor>b__67_2(HttpResponse rsp, Object dto, String contentType, JsonSerializerContext jCtx, CancellationToken cancellation)
         at FastEndpoints.HttpResponseExtensions.SendOkAsync[TResponse](HttpResponse rsp, TResponse response, JsonSerializerContext jsonSerializerContext, CancellationToken cancellation)
         at FastEndpoints.Endpoint`2.SendOkAsync(TResponse response, CancellationToken cancellation)
         at TestFastEndpoints.TestEndpoint2.HandleAsync(TestRequest req, CancellationToken ct) in C:\source\repos\TestFastEndpoints\TestRequest.cs:line 38
         at FastEndpoints.Endpoint`2.ExecAsync(HttpContext ctx, EndpointDefinition epDef, CancellationToken cancellation)
         at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

I think throwing an NRE there is probably a good thing. It makes no sense to return null and then calling that ok. What does null in this context refer to?

What does null in this context refer to?

True - any scenario I imagined null being passed is probably a very bad practice (like creating the response somewhere else from where it could be null)

since TResponse has a notnull constraint, the ide should display a warning anyway.


Should Model.reload() be called when initializing an application with an existing database?

I'm using linvodb3 with medea.  If I run this script:
MyModel.insert({ _id: "foo" }, function(err, doc) {
	console.log(err, doc);
});
MyModel.insert({ _id: "foo" }, function(err, doc) {
	console.log(err, doc);
});

The first call succeeds and inserts the document.  The second call generates an error, as expected.  But then if I re-run the script, after the database already exists on disk, the exact same sequence occurs.
When running the script a second time, I'd expect the first call to fail, since a document with _id: "foo" had been inserted on the previous run.  But that doesn't happen.
If I call MyModel.reload(function() { }) at the beginning of this test script, then the first insert does fail, as expected.
The reload() method isn't mentioned anywhere in the documentation.  I only happened to see it being used in db.test.js.
Is the app expected to call reload() every time it's launched?  I would've expected the index to be saved to disk and automatically reloaded when the model is created.

You shouldn't use reload() at all, but the fact it wipes your data might be related to the back-end store not being persisted "peacefully". What back-end store are you using?

I'm using MedeaDown.  The database is initiated like this:
LinvoDB.defaults.store = { db: require("medeadown") };

Do I need to notify Medea or LinvoDB in some way when the app is shutting down so the data is written out cleanly?  Currently, I'm just writing some scripts for testing, so they run and then exit, rather than starting up a full server.  I'd assumed LinvoDB would detect the app ending and then close down the store cleanly, but maybe that's not the case.

Here's a complete script that demonstrates the issue.  If I run this script twice:
var LinvoDB = require("linvodb3");

LinvoDB.defaults.store = { db: require("medeadown") };
LinvoDB.dbPath = "db";

var MyModel = new LinvoDB("myModel", {});

MyModel.insert({ _id: "foo" }, function(err, doc) {
	console.log("1st:", err, doc);
});
MyModel.insert({ _id: "foo" }, function(err, doc) {
	console.log("2nd:", err, doc);
});

The console shows:
> node test.js
1st: null { _id: 'foo' }
2nd: { message: 'Can\'t insert key foo, it violates the unique constraint',
  key: 'foo',
  errorType: 'uniqueViolated' } undefined
> node test.js
1st: null { _id: 'foo' }
2nd: { message: 'Can\'t insert key foo, it violates the unique constraint',
  key: 'foo',
  errorType: 'uniqueViolated' } undefined

So the first call succeeds on both runs, even though the document should already exist on the second run.
However, if I wrap the insert() calls in a reload() callback:
MyModel.reload(function() {
	console.log("reloaded");

	MyModel.insert({ _id: "foo" }, function(err, doc) {
		console.log("1st:", err, doc);
	});
	MyModel.insert({ _id: "foo" }, function(err, doc) {
		console.log("2nd:", err, doc);
	});
});

Then the second run of the script shows errors for both insert() calls, which is how I initially expected it to work:
> node test.js
reloaded
1st: null { _id: 'foo' }
2nd: { message: 'Can\'t insert key foo, it violates the unique constraint',
  key: 'foo',
  errorType: 'uniqueViolated' } undefined
> node test.js
reloaded
1st: { message: 'Can\'t insert key foo, it violates the unique constraint',
  key: 'foo',
  errorType: 'uniqueViolated' } undefined
2nd: { message: 'Can\'t insert key foo, it violates the unique constraint',
  key: 'foo',
  errorType: 'uniqueViolated' } undefined

same issue with level-js

Very interesting. Definitely looks like a bug. Can you try with some other method? E.g. try .save, but use some other key that will be defined as unique in the schema (because saving on an existing _id would just override that doc) so as to induce an error.

Ok, i think I found the root cause.
All methods that touch the index go through this._pipe.push(, which is OK, because this is the bagpipe instance (async control) used for building the indexes. However, we have to initiate that index building, and this is done only if cursor.js is used, i.e. on methods like find, findOne, update. Not on insert.
Will fix it ASAP

👍


Drop references to (defunct/renamed) subset branch

See https://github.com/docker-library/meta-scripts/pull/85
This isn't strictly necessary (given the conditionals in question were already accounting for this move), but it's a good follow-up cleanup (and opening it now makes me feel better about having a record of checking for dependencies in this repository on the subset branch name).

Yet this is being merged into the subset branch?

If it wasn't, then it would include the other ~3k commits on subset that aren't on main. I think the plan would be to delete the current main and rename subset to main right when merging https://github.com/docker-library/meta-scripts/pull/85. Then this PR will auto update to target the new "main" and can then be merged.

Yep, that's exactly right.

Your members will have to manually update their local environments. We'll let them know when they visit the repository, or you can share the following commands.
git branch -m subset main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a


Support for HTML links inside comments

I am using protoc-gen-doc to generate HTML documentation. I would like to add HTML links in the comments that appear as clickable links in the documentation.
Example:
required int64 myValue = 1;  /// More info on http://www.google.com

Unfortunately the link is not clickable in the resulting documentation. So I tried to add HTML code in the comment like
required int64 myValue = 1;  /// More info on Google

but that gets escaped and also does not work.
Is there any other way in order to get clickable links?

In the mustache documentation at  //mustache.github.io/mustache.5.html.

In the mustache documentation at //mustache.github.io/mustache.5.html.
All variables are HTML escaped by default. If you want to return unescaped HTML, use the triple mustache: {{{name}}}.
You can also use & to unescape a variable: {{& name}}. This may be useful when changing delimiters (see "Set Delimiter" below).

From the mustache documentation at //mustache.github.io/mustache.5.html
All variables are HTML escaped by default. If you want to return unescaped HTML, use the triple mustache: {{{name}}}.
You can also use & to unescape a variable: {{& name}}. This may be useful when changing delimiters (see "Set Delimiter" below).

Thanks for the answer. But I think using this method I can only switch off escaping for the whole comment, not only for links. Is there a way to detect that a part of the comment is an HTML link and switch off escaping just for that part?

I'm afraid this is not really possible, short of the tool automatically detecting links in the comment text and doing the link-ification of them. But this can't really work, since the tool can't know if the output is HTML or not (a custom template may be used) :/
I'm afraid you'll have to use {{{ }}} in your custom template, to turn off automatic escaping, and then make sure you do any escaping needed manually.


how to test the performence in the test dataset

why the training process so slow

In my experience, u need a GPU. Tested on 2080ti, 20s for 1 epoch while without GPU, it took 800s 1 epoch.

why did i often occur "loss is nan"

You can try the following code to modify the BPR loss, in order to avoid NAN:
loss = tf.reduce_sum(tf.nn.softplus(-(pos_result - neg_result)))

you mean reduce mean?

why did i can only use 149M GPU memory, which has a full memory of 10GB

I have no idea... Have you installed the tensorflow-gpu successfully?

I have no idea... Have you installed the tensorflow-gpu successfully?
i fix it . because  install tensorflow-gpu 1.14.0,when i change it to tensorflow 1.8.0, it works


Upgrade aiokafka

Upgrade aiokafka from 0.8.0 to 0.10.0 in order to align with the V3 branch and simplify merging.
However, as in the V3 branch, we still use kafka-python separately, and require it explicitly now, since neither aiokafka nor the latest testcontainers[kafka] has it as subdependency any more. We should eventually remove it as dependency, because it hinders us from supporting Python 3.12.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1574

Relevant Lines:
1725

💛  - Coveralls