Do I need to integrate the libusbcommunication library to read devices in the ntfs system

devices.forEachIndexed { index, usbMassStorageDevice ->
usbMassStorageDevice.init()
// Only uses the first partition on the device
LogUtils.d("", "index: $index ${usbMassStorageDevice.partitions?.size}")
if (usbMassStorageDevice.partitions.isNotEmpty()) {
val currentFs = usbMassStorageDevice.partitions[0].fileSystem
Log.d("", "Capacity: " + currentFs.capacity)
Log.d("", "Occupied Space: " + currentFs.occupiedSpace)
Log.d("", "Free Space: " + currentFs.freeSpace)
Log.d("***", "Chunk size: " + currentFs.chunkSize)
}
}
Occasionally, data is returned!
Here is my MainActivity code...
class MainActivity : AppCompatActivity(),ConsoleUtils.ConsoleMessageListener {
companion object {
    init {
        registerFileSystem(JavaFsFileSystemCreator())
    }
}

I have a question. I want to read the USB on the NTFS system. Do I need to add this code?
registerCommunication(LibusbCommunicationCreator())
underlyingUsbCommunication = UsbCommunicationFactory.UnderlyingUsbCommunication.OTHER

in addition:
An exception occurred while executing this line of code...
usbMassStorageDevice.init()
java.lang.IllegalArgumentExceptionkotlin.Unit
After multiple calls, throw
java.io.IOException: MAX_RECOVERY_ATTEMPTS Exceeded while trying to transfer command to device, please reattach device and try againkotlin.Unit

No the libusbcommunication module has nothing to do with the file system.
You will need to use java-fs. Note that it only has read only support for ntfs though.

Thank you, I have a question. Can NTFS achieve read and write functions? If possible, what should be done? If it can only be read-only, then why?

Hello, the system is FAT, but it still cannot be written. Do I have to go to the system file manager to authorize it? If so, how do I authorize it?

I dont know what that means (I only speak German and English).
Also I dont recognize that app. Please use the example app.
If you coded that app, I guess it is upon you to enable writing and remove that blue banner?!

Hello, which systems are supported in the current version with read and write functions; I tried the exfat system and found an exception when calling usbMassStorageDevice. init()
java.io.IOException: MAX_RECOVERY_ATTEMPTS Exceeded while trying to transfer command to device, please reattach device and try again


not compatible with let the be flight

hello your mod is not compatible with let there be flight, there are comments about this on your nexus mods page from long ago.
i want to use the hacks from let there be flight and your mod.
unless your take a 2 months vacation i don´t see the reason why you don´t solve this...
don´t take this as a rude comment because i had to choose between your mod or let be there flight. and i choose yours because its clearly an underrated, also funny quickhacks etc.

Hello, I am aware of the issue and here are the problems :
the script compiling order of the files of LTBF (pre 0.2 preview version) were compiled before my files, making possible for me to override some added functions that both my mod and LTBF have to use in order to add quickhacks into the game.
Since 0.2 preview (i believe?) and the recent changes to how LTBF is being deployed, this results in LTBF files being compiled at the most end of the compile order, making the modification of LTBF's functions not available at the time the files of VehicleSecurityRework are processed.
(TLDR) : my wrapped methods of his modifications (to add my modifications) cannot be wrapped because compiler doesn't know them beforehand, whereas before, it would due to the load order.
Now there are 2 (well 3 but I can't disclose the 3rd sadly) reasons as for why I am not fixing it :
1 - DLC will probably break everything (more than likely considering all the changes including possible unannounced changes)
2 - The fix is just way too annoying to setup, it would probably require to use the cmake project with an Red4EXT part to make sure the mods that need to be compiled after LTBF scripts are... compiled after, but although I set-up the cmake project, the Red4EXT part is nowhere to be done
3 - NDA + non-compete agreement (aka : can't publish anything mod-related unless I get a special extra rare permission)
it was pretty lengthy but at least it should cover all the topics


Updates to latest brave

much faster under load

@adriancole thanks! Just saw the new release last night (really good write up about the issue, too).


Figure out a better way to handle time types

I was originally using time.Time types to interface with the database but ran into some issues. The SQLite library was spitting a few different formats of time in a string form, and the driver was trying to convert them unsuccessfully to time.Time types for me. In the end, I went with an Int64 to speed things up, but this is clunky for various reasons as well.

The SQLite driver supports time.Time these days. It'll happen as it happens.


feat: Implements the requirer side of the ingress integration

Description

Adds the ingress integration
Fetches the lib
Adds integration test

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[x] I have added tests that validate the behaviour of the software
[x] I validated that new and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

This won't work if we merge it right away, it needs the tls integrations to be merged first, I'll make it a draft until then.


allow setting the cluster's k8s version

Add the ability to pass RANCHER_K8S_VERSION to downstream pipelines for clusters being provisioned.
Changes to the pipeline configuration have been done.
Tests are passed.

LGTM


fix: deprecated Website Shop Link in Footer

Description
This pull request addresses the issue of a deprecated website shop link in the footer section of the site. The current link is pointing to an outdated URL, leading to a irrelevant page. This PR updates the link to ensure users are directed to the correct and up-to-date shop page.
Related Issue
[website bug]: update the link to async api Shop in the footer section of website](https://github.com/asyncapi/modelina/issues/1666)
Changes Made

Updated the website shop link in the footer to the new, correct URL.
Ensured that the link now points to the relevant and active shop page.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
5865

Relevant Lines:
6193

💛  - Coveralls

Hey @ devansh-m12, @ anchalpanwar17 was already working on it. @anchalpanwar17 Have you started working on this issue (#1666)? If not would you like to transfer it to @devansh-m12? @devansh-m12 I would suggest you inform us that you would like to work on an issue before starting work on it.

@devilkiller-ag ohh my bad, I'll make sure to remember that.

@devilkiller-ag as there has been no specific response from the other two, and this PR is already up, I would vote to just merge/review this one 🙂
What matters is creating the PR, not so much saying you want to do it. However, @devansh-m12 it is good practice to let others have some days when they say they wanted to complete it before doing the issue yourself 😄 Just so no one is wasting time is the most important one 👍

Hi @devansh-m12 @jonaslagoni, This issue was previously solved by the PR #1705

Fixed #1666


error require redis

 lua entry thread aborted: runtime error: attempt to yield across C-call boundary

it seems caused by https://github.com/steve0511/resty-redis-cluster/blob/f765ec24040e79664ab27bdf49103509f3e056ff/lib/rediscluster.lua#L105


How to Add whitelist.txt to docker image

How can I add whitelist.txt or enable bridges via variables in docker settings?
I installed rss-bridge docker https://hub.docker.com/r/rssbridge/rss-bridge by searching inside plesk control panel and just ran it. It works great but I have no way to enable more bridges nor I have any setting to change the cache period. Is it possible to enable this via variables as shown in the screenshot.

You could add the whitelist outside the container and add a volume mapping for it. The path inside the container is /app/whitelist.txt. So you would add: /path/to/your/whitelist.txt:/app/whitelist.txt as a volume mapping.

You could add the whitelist outside the container and add a volume mapping for it. The path inside the container is /app/whitelist.txt. So you would add: /path/to/your/whitelist.txt:/app/whitelist.txt as a volume mapping.

Like this? It didn't work.

Like this? It didn't work.

I also tried the complete path (/var/www/vhosts/whitelist.txt:/app/whitelist.txt) with nothing on the Host and Plesk just removed the path while saving changes.

I also tried the complete path (/var/www/vhosts/whitelist.txt:/app/whitelist.txt) with nothing on the Host and Plesk just removed the path while saving changes.

Also anything for the cache issue?

Also anything for the cache issue?

This is definitely not correct way to map volume. On you previous screenshot - it is correct.
Anyway, have you restarted docker container after mapping volume?

This is definitely not correct way to map volume. On you previous screenshot - it is correct.
Anyway, have you restarted docker container after mapping volume?

I faced this same issue when I used rss-bridge on my raspberry pi. Docker volumes are supposed to be directories, into which you'll store file that you want to be permanent, NOT files. For this configuration to work, you must stop and remove the container entirely, and create beforehand the "whitelist.txt" file where the volume mapping is expecting to find it. Only then, this mapping will work. So, if you have command line access to your server, you'll be lucky. FWIW, I just tested my theory and if there is no "whitelist.txt" beforehand, docker will simply create a "whitelist.txt" directory, which is useless.

I faced this same issue when I used rss-bridge on my raspberry pi. Docker volumes are supposed to be directories, into which you'll store file that you want to be permanent, NOT files. For this configuration to work, you must stop and remove the container entirely, and create beforehand the "whitelist.txt" file where the volume mapping is expecting to find it. Only then, this mapping will work. So, if you have command line access to your server, you'll be lucky. FWIW, I just tested my theory and if there is no "whitelist.txt" beforehand, docker will simply create a "whitelist.txt" directory, which is useless.

I have SSH access. Can you please share commands/steps to create docker that way, please?

I have SSH access. Can you please share commands/steps to create docker that way, please?

@em92 it doesn't work any way either. Restarted docker as well.

@em92 it doesn't work any way either. Restarted docker as well.

I can give you general ideas on how to do it, mainly because I haven't used plesk and I don't know exactly what sort of permissions it requires.

Stop and remove completely the rss-bridge container via the plesk GUI.
SInce it seems to install everything on /var/www/vhosts, then we'll create the file there. use the follwing command sudo nano /var/www/vhosts/whitelist.txt
The text editor will open, and now type the bridges you want to enable (eg. Facebook), one bridge per line. Save and close from the text editor (ctrl+x, pres yes both times)
The file is ready, but the tricky part is to know which sort of permissions the file requires to be read by the docker container. Since it's being stored in the /var/www/ location, I'll guess that it needs to belongs to www-data, so we'll change the owner for the file: sudo chown www-data:www-data /var/www/vhosts/whitelist.txt
Launch the docker container using the volume mapping you've used before.
Now new bridges should be enabled.

If you want custom cache duration, you'll have to do a similar procedure with config.ini.php . To enable the corresponding option, follow the documentation. Hopefully that helps!

I can give you general ideas on how to do it, mainly because I haven't used plesk and I don't know exactly what sort of permissions it requires.

Stop and remove completely the rss-bridge container via the plesk GUI.
SInce it seems to install everything on /var/www/vhosts, then we'll create the file there. use the follwing command sudo nano /var/www/vhosts/whitelist.txt
The text editor will open, and now type the bridges you want to enable (eg. Facebook), one bridge per line. Save and close from the text editor (ctrl+x, pres yes both times)
The file is ready, but the tricky part is to know which sort of permissions the file requires to be read by the docker container. Since it's being stored in the /var/www/ location, I'll guess that it needs to belongs to www-data, so we'll change the owner for the file: sudo chown www-data:www-data /var/www/vhosts/whitelist.txt
Launch the docker container using the volume mapping you've used before.
Now new bridges should be enabled.

If you want custom cache duration, you'll have to do a similar procedure with config.ini.php . To enable the corresponding option, follow the documentation. Hopefully that helps!

Little off-topic, but I came to similar conclusions as @maguilara in terms of using Docker volume. Although as a workaround one can build their own image based on rss-bridge:
FROM rssbridge/rss-bridge:latest

RUN mkdir /config && \
    cp /app/whitelist.default.txt /config/whitelist.txt && \
    ln -s /config/whitelist.txt /app/whitelist.txt && \
    chown -h www-data:www-data /app/whitelist.txt && \
    chown -R www-data:www-data /config

It creates /config directory and symlinks /app/whitelist.txt into it. Now it's possible to mount /config as a volume.
Can somebody test if it works for them, so I can create PR? It seems to be backward compatible with current setup.

Yep, my idea was rather a stopgap solution.
A better way of solving this, would be a possibility to configure RSS-Bridge using environment variables – it's really easy to inject those into a Docker container and users with current setup would be unaffected. Unfortunately I don't know PHP either.
The problem would still exist for custom bridges, though. To fix it, RSS-Bridge should look for them in some other directory as well, let's say bridges.d.

@verahawk check my proposed solution PR. it should do exactly what is needed.

@Bockiii Apart from some small issues, it looks good to me. I have added some comments over there.

Hi i had same issue and this worked with me (https://github.com/RSS-Bridge/rss-bridge/issues/1955#issuecomment-766399765)

You could add the whitelist outside the container and add a volume mapping for it. The path inside the container is /app/whitelist.txt. So you would add: /path/to/your/whitelist.txt:/app/whitelist.txt as a volume mapping.

my docker conf is
version: '2'
services:
  rss-bridge:
    image: rssbridge/rss-bridge:latest
    volumes:
      - /etc/rss-bridge/config.ini.php:/config
      - /etc/rss-bridge/whitelist.txt:/app/whitelist.txt
    ports:
      - 3300:80
    restart: unless-stopped

You can just map the folder to /config in the container and it will pick up your whitelist, php config and additional bridges.
volumes:
  - /etc/rss-bridge:/config

@em92 can be closed

docker exec -it rss-bridge /bin/bash
vim /app/whitelist.txt

or
version: '2'
services:
  rss-bridge:
    image: rssbridge/rss-bridge:latest
    volumes:
      - ./config.ini.php:/config
      - ./whitelist.txt:/app/whitelist.txt
    ports:
      - 5050:80
    restart: unless-stopped


Optimizing sqlType actuator based on static factory pattern

Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #2476 into develop will decrease coverage by 0.16%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             develop    #2476      +/-   ##
=============================================
- Coverage      51.47%   51.30%   -0.17%
+ Complexity      2659     2657       -2
=============================================
  Files            523      523
  Lines          16938    16920      -18
  Branches        2052     2013      -39
=============================================
- Hits            8718     8681      -37
+ Misses          7391     7386       -5
- Partials         829      853      +24

Impacted Files
Coverage Δ
Complexity Δ

...a/io/seata/rm/datasource/exec/ExecuteTemplate.java
6.89% <0.00%> (-0.52%)
2.00 <0.00> (ø)

...obuf/convertor/BranchRegisterRequestConvertor.java
90.47% <0.00%> (-9.53%)
3.00% <0.00%> (ø%)

...otobuf/convertor/BranchReportRequestConvertor.java
90.90% <0.00%> (-9.10%)
3.00% <0.00%> (ø%)

...obuf/convertor/BranchRollbackRequestConvertor.java
92.00% <0.00%> (-8.00%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalBeginResponseConvertor.java
92.59% <0.00%> (-7.41%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalCommitRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

...otobuf/convertor/GlobalStatusRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

...obuf/convertor/GlobalRollbackRequestConvertor.java
93.75% <0.00%> (-6.25%)
3.00% <0.00%> (ø%)

...protobuf/convertor/RegisterTMRequestConvertor.java
94.73% <0.00%> (-5.27%)
3.00% <0.00%> (ø%)

...protobuf/convertor/RegisterRMRequestConvertor.java
90.47% <0.00%> (-4.77%)
3.00% <0.00%> (ø%)

... and 22 more


ADD: Luhn Algorithm in C,C++,Python and Java

The Luhn algorithm, also known as the mod 10 algorithm, is a simple checksum formula used to validate various identification numbers, such as credit card numbers, IMEI numbers etc.  It is mostly used as a simple method to distinguish valid numbers from mistyped or otherwise incorrect numbers. The Time Complexity of the algorithm is O(n).
It works in steps:

Doubling every second digit from right.
If doubled digit is greater than add their digits.
Take sum of all digits.
If total modulo 10 is 0 then number is valid.

Please assign this issue under SSOC'23.

Assigned!
@Ikshvaku24 : C, C++, Python & Java


html plugin unexpected output with outdir option

Here's my folder structure:

package.json
{
  "name": "esbuild-html",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "type": "module",
  "devDependencies": {
    "@chialab/esbuild-plugin-html": "^0.11.19",
    "esbuild": "^0.12.20"
  }
}

src/index.html
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Home</title>

Home

src/index.js
console.log('Home')
export {}

src/sub/index.html
<!DOCTYPE html>

    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Sub</title>

Sub

src/sub/index.js
console.log('Sub')
export {}

build.js
import esbuild from 'esbuild'
import htmlPlugin from '@chialab/esbuild-plugin-html'

esbuild.build({
  entryPoints: ['./src/index.html', './src/sub/index.html'],
  outdir: './dist/',
  plugins: [htmlPlugin({})]
})

When I run node build.js I expect the resulting dist directory to look something like this:
dist/
├─ index.html
├─ index.js
└─ sub/
   ├─ index.html
   └─ index.js

What I get instead is:
dist/
├─ index-[hash1].html
├─ index-[hash2].html
├─ index.js (Contents are `module.exports = './index-[hash1].html'`
├─ sub/
│  └─ index.js (Contents are `module.exports = '../index-[hash2].html'`
└─ esm/
   └─ index.js (Contents are the top level index.js, the sub/index.js contents are just gone, probably overridden)

I'm okay with the hashes (as long as it's consistent), but it looks like it's not doing things relative to the outdir per the "lowest common ancestor" rule outlined in the esbuild documentation. And them it seems to be just completely overriding some files.
Admittedly, I'm pretty new to esbuild. I could me misconfiguring things. Would love some direction if I'm missing something.

Hello @ksmithut, thanks for reaching out. I can confirm that it was an unhandled case, but with it should be fixed now with the v0.11.20 release!
Thank you and let me know if it fixed the bug!

It does appear to work when I have two html entrypoints, but now if I only have one, it puts the esm/ folder outside of my configured outdir option

Yes, it seems to be working as expected in the build :) Maybe this warrants a separate issue, but is there an example of how to use this plugin with esbuild.serve()? It appears that in the example above, it's serving the index.html with the link to the index.js without the esm/ prefix, so it's not finding the assets properly.

Hi @ksmithut, we (still) dont use esbuild as dev server, but I will give it a look!


Log version numbers of Micronaut and Camunda

Let's log out the version number of Micronaut and Camunda on start up

Micronaut: https://docs.micronaut.io/latest/api/io/micronaut/core/version/VersionUtils.html
Camunda: https://github.com/camunda/camunda-bpm-platform/blob/master/spring-boot-starter/starter/src/main/java/org/camunda/bpm/spring/boot/starter/util/CamundaBpmVersion.java (Let's create a simple class CamundaBpmVersion which only has the field "version" for now and provide it as a bean)

Note: this should be the version actually being used - not the ones which the integration uses by default.

Hello can I work on this?

Hello @Paty-Alonso ,
sure - we welcome contributions. This seems to be a good task to get started.
Please also have a look at https://github.com/NovatecConsulting/micronaut-camunda-bpm/blob/master/CONTRIBUTING.md
In case of questions feel free to reach out at https://gitter.im/NovaTecConsulting/micronaut-camunda-bpm


apigateway get_deployments fails in collect

I had previously created the api_endpoints  command in order to map out the APIs being used.  This required privileges to collect API data that isn't provided in the SecurityAudit and ViewOnlyAccess policies.  This now causes failures on collect.
Options:

Add custom policy to allow the collection of this data
Remove collection of this data (and also probably the api_endpoints command)

I think option 2 is best.

Resolved by #519


Unable to launch app: unknown flag --nolaunch_app

When I try to run the app from the Android Studio UI the flag --nolaunch_app at the end of the command. That is triggering the following error:
Waiting for target device...
Invoking mobile-install...
Command: /usr/local/bin/bazel mobile-install --tool_tag=ijwb:AndroidStudio --device 94PAY0RKQL:tcp:5037 "--adb_arg=-s " --adb_arg=94PAY0RKQL --adb /Users/jagoba/Library/Android/sdk/platform-tools/adb --curses=no --color=yes --progress_in_terminal_title=no --build_event_binary_file=/var/folders/0p/db4t1g1d2zxgd91vl02ff0fw0000gn/T/intellij-bep-a9ded8a1-4a1a-4aca-95f9-923c12f3b377 --nobuild_event_binary_file_path_conversion -- //example/MyApp/src/main:android --nolaunch_app

Loading:
Loading: 0 packages loaded
ERROR: Skipping '-nolaunch_app': couldn't determine target from filename '-nolaunch_app'
ERROR: couldn't determine target from filename '-nolaunch_app'
INFO: Elapsed time: 0.725s
INFO: 0 processes.

FAILED: Build did NOT complete successfully (0 packages loaded)

I haven't found any documentation about that flag in the bazel docs or in Google.
I managed to run the app by disabling the option "Use mobile-install". But I'm still curious about the --nolaunch_app flag that is failing.

I have the same problem with Android Studio 4.0.1 on Windows 10, using Bazel 3.7.1, plugin 2<IP_ADDRESS>.3. Can build and install apps using the terminal with no problems
ERROR: Skipping '-nolaunch_app': couldn't determine target from filename '-nolaunch_app'
ERROR: couldn't determine target from filename '-nolaunch_app'

I'm having the same problem on macos catalina 、Bazel3.4.0，
`Waiting for target device...
Invoking mobile-install...
Command: /Users/mac/bin/bazel mobile-install --tool_tag=ijwb:AndroidStudio --device 65f58306:tcp:5037 "--adb_arg=-s " --adb_arg=65f58306 --adb /Users/mac/Library/Android/sdk/platform-tools/adb --curses=no --color=yes --progress_in_terminal_title=no -c opt --config=android_arm64 --build_event_binary_file=/var/folders/81/zyx3b9z17jb880v9_w95tr140000gn/T/intellij-bep-f1fcbe48-e7f3-4ba6-bb17-70d204ab27de --nobuild_event_binary_file_path_conversion -- //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu --nolaunch_app
Loading:
Loading: 0 packages loaded
ERROR: Skipping '-nolaunch_app': no such target '//:-nolaunch_app': target '-nolaunch_app' not declared in package '' defined by /Users/mac/AndroidStudioProjects/mediapipe/BUILD.bazel
WARNING: Target pattern parsing failed.
ERROR: no such target '//:-nolaunch_app': target '-nolaunch_app' not declared in package '' defined by /Users/mac/AndroidStudioProjects/mediapipe/BUILD.bazel
INFO: Elapsed time: 0.071s
INFO: 0 processes.

FAILED: Build did NOT complete successfully (1 packages loaded)
`
Can anyone help me?You can add me at qq<PHONE_NUMBER>，thanks.

I'm having the same problem on macos catalina 、Bazel3.4.0，
Waiting for target device...
Invoking mobile-install...
Command: /Users/mac/bin/bazel mobile-install --tool_tag=ijwb:AndroidStudio --device 65f58306:tcp:5037 "--adb_arg=-s " --adb_arg=65f58306 --adb /Users/mac/Library/Android/sdk/platform-tools/adb --curses=no --color=yes --progress_in_terminal_title=no -c opt --config=android_arm64 --build_event_binary_file=/var/folders/81/zyx3b9z17jb880v9_w95tr140000gn/T/intellij-bep-f1fcbe48-e7f3-4ba6-bb17-70d204ab27de --nobuild_event_binary_file_path_conversion -- //mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu --nolaunch_app

Loading:
Loading: 0 packages loaded
ERROR: Skipping '-nolaunch_app': no such target '//:-nolaunch_app': target '-nolaunch_app' not declared in package '' defined by /Users/mac/AndroidStudioProjects/mediapipe/BUILD.bazel
WARNING: Target pattern parsing failed.
ERROR: no such target '//:-nolaunch_app': target '-nolaunch_app' not declared in package '' defined by /Users/mac/AndroidStudioProjects/mediapipe/BUILD.bazel
INFO: Elapsed time: 0.071s
INFO: 0 processes.

FAILED: Build did NOT complete successfully (1 packages loaded)

Can anyone help me?You can add me at qq<PHONE_NUMBER>，thanks.

Same issue on macOS Big Sur
Android Studio 4.2.1
Bazel 4.1
ERROR: Skipping '-nolaunch_app': no such target '//:-nolaunch_app': target '-nolaunch_app' not declared in package '' defined by

Plugin version 2<IP_ADDRESS>.1

Those who are stuck with this problem can use Build with Bazel in Command Line for deploying the apps.

did anyone find the solution for that problem

https://github.com/bazelbuild/intellij/issues/2328#issuecomment-1019746318

Deleting the line https://github.com/bazelbuild/intellij/blob/281e811fecee6a50e7a4bd2f80d4b6352ca22af2/aswb/src/com/google/idea/blaze/android/run/binary/mobileinstall/MobileInstallBuildStep.java#L200 ... and building a local version of the plugin has been the only solution I've found. I shared a bit more about it here https://github.com/bazelbuild/intellij/issues/2328#issuecomment-1019746318.


Quicklook preview

Does this app give a quicklook preview for excalidraw? If not would it be possible to?

Hello, @mayurankv.
Do you mean to perform a Quick Look preview operation on Excalidraw files?

Yep! As in when you press space on a file in finder. I tested this and I don't think the app currently does this, but I would have thought it would (hopefully) not be too much work to add this, and it would be extremely useful! For example, when using multiple diagrams, knowing which diagram is which without having to open them from finder would be handy!
I unfortunately don't have much experience with swift or mac apps in particular currently so I'm not sure I'd be able to contribute unfortunately, but I believe it would involve following this page: https://developer.apple.com/documentation/quicklook

@chocoford macOS Quicklook app demo https://www.ipreview.app. But for excalidraw files supported by your app


Add unit test for func in remotes/docker/pusher.go

Signed-off-by: Hu Shuai<EMAIL_ADDRESS>

@estesp PTAL
/ok-to-test

@estesp It is green now :)


neon-desktop/cli: investigate potential cluster deployment problems with invalid kubecontext or logins

I've just seen a few problems deploying a built-in cluster that seem to be related to remnants of previous cluster an potentially an invalid kubeconfig file.  I did a pass at fixing this this sort of thing months ago but it looks like more work is required.

[ ] neon-desktop says cluster remnants exist but doesn't offer to remove them.
[ ] kubeconfig file with top level-properties but otherwise empty causes NullRreferenceException

CLOSING: This has been active for over a year and I've been playing with all of this a lot recently and have not seen any problems.


fix: MenuItem override styles by classname

fix for #162
Removed "'& > li > *': " selector styles from MenuList.ts file and added those styles under baseStyleObject in MenuItem.ts

@Maruth51 I wanted to get our designers to review the chromatic for this so I re-published your branch to the repo and created a new PR at #182 - if that one is approved and merged I'll close this one too. Thanks for your contribution!!


ACR build fails in Jenkins with "'ascii' codec can't encode character"

Describe the bug
Command Name
az acr build
Errors:
'ascii' codec can't encode character '\u0151' in position 4068: ordinal not in range(128)
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
    raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
...
python3.6/site-packages/colorama/ansitowin32.py, ln 190, in write_and_convert
    self.write_plain_text(text, cursor, len(text))
python3.6/site-packages/colorama/ansitowin32.py, ln 195, in write_plain_text
    self.wrapped.write(text[start:end])
UnicodeEncodeError: 'ascii' codec can't encode character '\u0151' in position 4068: ordinal not in range(128)

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az acr build --registry {} --resource-group {} -t {} -t {} -f {} {}

Expected Behavior
This is the latest version of the AZ CLI, so I expected the old issue to be resolved
Environment Summary
Linux-3.10.0-1127.10.1.el7.x86_64-x86_64-with-centos-7.7.1908-Core
Python 3.6.8
Installer: RPM

azure-cli 2.10.1

Additional Context
When running the same az acr build command with same Docker context on my local device it works properly.
Local device versoins:
MacOs Catalina 10.15.5

azure-cli 2.10.1
Python 3.8.5

acr

@northtyphoon, this is on dealing with unicode file

@allianz-shay-katzir  can you try --no-format option in az acr build?

using --no-format I still got the same error.
using --no-logs went through build without any error. But of course I would like to have the logs in the output.

sent an email. Thanks!

@northtyphoon, any updates on this, or we have already resolved it?

Facing the same in here, any progress?

Hi all, by @northtyphoon we were able to find the issue.
The "locale" on the running pod was defined to "POSIX" and running Python 3.6.9.

It looks Python has a long-standing issue with POSIX locale.
The following article suggests reconfigure the system locale.
https://chriswarrick.com/blog/2017/06/18/unix-locales-vs-unicode/
The following article suggests that Python 3.7 has done some improvement for POSIX locale.
https://vstinner.github.io/python37-new-utf8-mode.html

I admit I did not have time to test that as we implemented a workaround .

I think this issue today. Here is a dockerfile which can be used as a reference.
FROM ubuntu:20.04

# these are mostly for dpkg.
ENV DEBIAN_FRONTEND "noninteractive"
ENV TZ "UTC"

# version list: https://github.com/rancher/cli/releases
ENV RANCHER_CLI_VERSION "v2.4.10"

# version list (stay on 3 for now): https://github.com/liquibase/liquibase/releases
ENV LIQUIBASE_VERSION "3.10.3"

# version list: https://github.com/vmware/govmomi/releases
ENV GOVC_VERSION "v0.24.0"

# version list: https://repo1.maven.org/maven2/org/postgresql/postgresql/
ENV LIQUIBASE_PG_DRIVER_VERSION "42.2.19"

# prep the base image
# do try and keep this in alphabetical order, for sanity.

In my case, I'm running the az acr build command inside a ubuntu docker image and I was missing the following commands inside the docker file:
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

This fixed my issue completely.
Also note that the locales must be installed by the dockerfile before running the command above

@allianz-shay-katzir Apologies for the late reply. I am glad that your issue is now resolved. This issue is open for quite sometime now. Please let us know if you need any further assistance on this issue. Awaiting your reply.

One of our Clients having the same issue

@MS-sraghuwanshi Does this solution work for you?

@MS-sraghuwanshi Does this solution work for you?

waiting for our client to try this


Normalize stream implementation

Stream implementation in this package is non-standard:
import XLSXWriteStream from 'xlsx-write-stream';
const xlsxWriter = new XLSXWriteStream();

xlsxWriter.setInputStream(inputStream);
const xlsxStream = xlsxWriter.getOutputStream();
const writeStream = fs.createWriteStream('file.xlsx');
xlsxStream.pipe(writeStream);

the correct way would be the implementation as ~XLSXWriteStream~ XLSXTransformStream (https://nodejs.org/api/stream.html#stream_implementing_a_transform_stream) with following API:
import XLSXTransformStream from 'xlsx-write-stream';

inputStream
    .pipe(new XLSXTransformStream())
    .pipe(fs.createWriteStream('file.xlsx'));

perhaps we should also rename the NPM package to xlsx-transform-stream.

@mtrunkat great work - I was not able to open the xlsx files in excel as all files unzipped (e.g. "_rels/.rels") except for "sheet1.xml" where empty. I was able to fix this problem by upgrading the archive package to "5.3.0"
package.json
{
  "name": "node-xls-stream-write",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "private": true,
  "dependencies": {
    "xlsx-write-stream": "git+ssh://git@github.com:jirimoravcik/xlsx-stream.git"
  },
  "resolutions": {
    "xlsx-write-stream/archiver": "git+ssh://git@github.com:archiverjs/node-archiver.git"
  }
}

index.js
import fs from 'fs'
import XLSXTransformStream from 'xlsx-write-stream';
import {Readable} from 'stream'

const inputStream = new Readable({objectMode: true})
// Input stream needs to implement Stream.Readable interface
// and each chunk should be an array of values (only string, date and number are supported value types)
inputStream
    .pipe(new XLSXTransformStream()) // This stream transforms the input into a xlsx format
    .pipe(fs.createWriteStream('file.xlsx'));

inputStream.push(['Hallo', 1])
inputStream.push(null)


Added A/A testing

For #6793

[x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
[x] Title summarizes what is changing
[x] Has a news entry file (remember to thank yourself!)
[x] Appropriate comments and documentation strings in the code
[x] Has sufficient logging.
[x] Has telemetry for enhancements.
[x] Unit tests & system/integration tests are added/updated
~[ ] Test plan is updated as appropriate~
~[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed)~
~[ ] The wiki is updated with any design decisions/details.~

Codecov Report

Merging #7173 into master will decrease coverage by 0.07%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #7173      +/-   ##
=========================================
- Coverage   57.78%   57.7%   -0.08%
=========================================
  Files         485     486       +1
  Lines       21098   21108      +10
  Branches     3457    3457
=========================================
- Hits        12191   12180      -11
- Misses       8126    8144      +18
- Partials      781     784       +3

Impacted Files
Coverage Δ

src/client/common/experimentGroups.ts
100% <100%> (ø)
:arrow_up:

src/client/activation/aaTesting.ts
100% <100%> (ø)

src/client/common/utils/platform.ts
64.7% <0%> (-23.53%)
:arrow_down:

src/client/common/platform/pathUtils.ts
66.66% <0%> (-5.56%)
:arrow_down:

src/client/linters/pydocstyle.ts
84.61% <0%> (-5.13%)
:arrow_down:

src/client/common/logger.ts
68.55% <0%> (-4.41%)
:arrow_down:

src/client/datascience/debugLocationTracker.ts
78% <0%> (-4%)
:arrow_down:

src/client/interpreter/locators/helpers.ts
70.73% <0%> (-2.44%)
:arrow_down:

src/client/common/process/proc.ts
13.28% <0%> (-1.57%)
:arrow_down:

src/client/common/installer/productInstaller.ts
76.71% <0%> (-0.53%)
:arrow_down:

... and 2 more

Continue to review full report at Codecov.

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


Build Benches & Bins On All Levels of Footpath

Originally, benches and bins were only getting placed on the lowest
level of footpath, and ignoring multiple levels of path. This change
fixes that issue, and allows benches/bins to be placed on all levels of
footpath for a given tile.
Fixes #9

Works fine!


Question: How does semver fit with the following workflow?

We have multiple react apps in a Nx Workspace which depend on multiple libs some libs are only app specific like features, state. And some are shared between app like auth, utils, common-ui.
Now our development workflow is

Develop branch to merge all the newly created features/hotfix/chore/fix. (Unstable version of your code). Whenever changes are merged, bump the version, create a changelog for the app we are releasing.

We create a release branch once features are completed from the developer. release/app-a/1.2.3. And deploy the code on QA.

Once the QA sings off and everything seems to be working fine, Now this release branch gets deployed on UAT and eventually promoted to the prod if everything went well on UAT too. If not you create hotfix branches fix things and merge to develop follow the step 2 onwards.

Now if I want to use semver to automatically update the version and create a changelog for our apps if something changes in dependent libs how should I set up this plugin in my workspace? How can I create releases from incremental release branches? I'm open to amend my current workflow but I should be able to isolate release from the develop branch so that we can promote features after QA sings off.
Can I create a release branch automatically as a --postTarget in step 2 for eg if tag is app-a-1.2.0.Then the release branch will be release/app-a/1.2.0?

@ak274 i am in the same boat as yours, were you able to figure out the answer?

Hi guys. The flow of ours is roughly the same. May I ask if you already have a workflow in place?


About runtime

hello！May I ask when I run the “python match.py”，it almost took 2 hours and the progess only stop in “semi-global matching for left image”. I wonder how long it takes to match at one time. It took me almost two hours to run the “Plants”.
I used the GPU Tesla K80.

Same as me, it took several hours on sgm step and it's normal because python is slower than others.
This is why the original code of mccnn is coded by lua.

Same as me，even i use double RTX3090 ,i do not work anyway.
it seems like only use CPU.


feat(risedev): generate docker-compose.yaml

Signed-off-by: Alex Chi<EMAIL_ADDRESS>What's changed and what's your intention?
./risedev compose <profile>

will generate a docker-compose.yaml
Currently, only compute, meta and frontend nodes are supported. We will add more in the future. For benchmarking, we should generate network: host so as to bypass docker network stack. There will be an option controlling generating behavior in the future.
Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)
close https://github.com/singularity-data/risingwave/issues/2285

An example of generated yaml:
---
version: "3"
services:
  meta-node-0:
    image: "ghcr.io/singularity-data/risingwave:latest"
    command:
      - "--host"
      - "<IP_ADDRESS>:5690"
      - "--dashboard-host"
      - "<IP_ADDRESS>:5691"
      - "--prometheus-host"
      - "<IP_ADDRESS>:1250"
      - "--backend"
      - mem
      - "--disable-recovery"
    expose:
      - "5690"
      - "1250"
      - "5691"
    ports: []
    depends_on: []
  compute-node-0:
    image: "ghcr.io/singularity-data/risingwave:latest"
    command:
      - "--host"
      - "<IP_ADDRESS>:5688"
      - "--prometheus-listener-addr"
      - "<IP_ADDRESS>:1222"
      - "--client-address"
      - "compute-node-0:5688"
      - "--metrics-level"
      - "1"
      - "--state-store"
      - hummock+memory
      - "--meta-address"
      - "http://meta-node-0:5690"
    expose:
      - "5688"
      - "1222"
    ports: []
    depends_on:
      - meta-node-0
  frontend-node-0:
    image: "ghcr.io/singularity-data/risingwave:latest"
    command:
      - "--host"
      - "<IP_ADDRESS>:4566"
      - "--meta-addr"
      - "http://meta-node-0:5690"
    expose:
      - "4566"
    ports:
      - "4566:4566"
    depends_on: []

Still testing...

Auto merge enabled 🤣 will fix in future PRs.


Update manifests/t/Tencent/QQ/<IP_ADDRESS>103/Tencent.QQ.locale.en-US.yaml

Fixes an issue where this package has multiple different monikers
Microsoft Reviewers: Open in CodeFlow

Needs Attention

@wingetbot run

[Policy] reset feedback

[Policy] Needs-Attention

@wingetbot run


Entity not found

Running cargo fuzz --fuzz-target fuzzer_script_1 results in a Error: Entity not found.
Discussed with @nagisa about this issue on IRC, the cause is

"since we started passing in the --target=xxx flag, it puts the executable in fuzz/target/<TARGET>/debug where cargo-fuzz looks for it in fuzz/target/debug"

After https://github.com/rust-fuzz/cargo-fuzz/pull/51 this should be fixed.


[Bug]: type 'Null' is not a subtype of type 'String' in MacOS

Platform
MacOS Sonoma 14.2
Plugin
device_info_plus
Version
9.1.1
Flutter SDK
3.16.5
Steps to reproduce
Just call macOsInfo function if (platform.isMacOS) { final info = await deviceInfo.macOsInfo; }
Code Sample
import 'package:platform/platform.dart';
import 'package:device_info_plus/device_info_plus.dart';
const LocalPlatform platform = LocalPlatform();
final deviceInfo = DeviceInfoPlugin();
if (platform.isMacOS) {
    final info = await deviceInfo.macOsInfo; MacOsDeviceInfo
    device.name = info.computerName;
    device.identifier = info.systemGUID ?? '';
    device.version = '${info.majorVersion}.${info.minorVersion}.${info.patchVersion}';
}

Logs
type 'Null' is not a subtype of type 'String'
package:device_info_plus/src/model/macos_device_info.dart 75:24  MacOsDeviceInfo.fromMap
package:device_info_plus/device_info_plus.dart 86:23             DeviceInfoPlugin.macOsInfo

Flutter Doctor
[✓] Flutter (Channel stable, 3.16.5, on macOS 14.2 23C64 darwin-x64, locale en-BR)
    • Flutter version 3.16.5 on channel stable at /Users/gustavo/apps/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 78666c8dc5 (11 days ago), 2023-12-19 16:14:14 -0800
    • Engine revision 3f3e560236
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/gustavo/Android/Sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/gustavo/Android/Sdk
    • ANDROID_SDK_ROOT = /Users/gustavo/Android/Sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.12.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.83.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.27.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 14.2 23C64 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 120.0.6099.129

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Checklist before submitting a bug

[X] I searched issues in this repository and couldn't find such bug/problem
[X] I Google'd a solution and I couldn't find it
[X] I searched on StackOverflow for a solution and I couldn't find it
[X] I read the README.md file of the plugin
[X] I'm using the latest version of the plugin
[X] All dependencies are up to date with flutter pub upgrade
[X] I did a flutter clean
[X] I tried running the example project

I tried with this code if (platform.isMacOS) { final info = await deviceInfo.macOsInfo; } but it doesn't give the respective exception you've mentioned. Are you getting this now? Anything else you want to add? @gustavohenrique


Usage with streams

Hi,
I have a situation of data coming as a readable stream to be validated against given xsd, how can i validate each object/node in the xml document?
Thanks,
Raja

Try asking on stack overflow, etc to get faster responses. We usually only deal with library issues and bugs here.


Obsolete function call -- always true

Assets/Standard Assets/Environment/Water/Water/Scripts/Water.cs(345,29): warning CS0618: UnityEngine.SystemInfo.supportsRenderTextures' is obsolete:supportsRenderTextures always returns true, no need to call it'

Found it, bug was just a semantic error, distilling to (!true || p). Replaced with p


Can you help me see it? Does not seem to work

I let it run for 12 hours, but look at the record in steam and didn't add any games.
log.txt

It doesn't work. I've determine you can not do this solely by listening to steam PICS. You'd need a steam database of apps and packages as well.


Podcast Playback Skipping

When listening to a podcast, the file skips ahead a little bit randomly.
This issues does not happen when I listen using Chrome, so that makes me think it might be an issue with Radiant Player.

Can you check if it's happening in Safari?  (Radiant uses embedded Safari under the hood)

I'm also seeing this issue in Radiant Player. I just tested in Safari and could not reproduce the issue there.

I tried it in Safari, and it might have done it. If it did, it was a very short skip, and happened only once.
Since my last post it has happened a few more times in radiant player.

👍 👍 👍
I've basically stopped using Radiant Player because of this. For me it only skips ahead when I pause, and then when I return to press play, the podcast starts much further ahead. The entire progress bar seems screwed up for podcasts, it seems the position in the bar does not actually represent the position in the podcast.

You're not seeing this with regular songs?  Just podcasts?

Yes, only with podcasts it seems.

I've been seeing this happen on Songs recently.  Have not tried in firefox to compare.


Add Nord flavor

CSSDeck demo
Adapted from the Nord color scheme.
There is a problem with the horizontal tables that I can't figure out, which causes cells to overlap each other. I changed nothing from the default flavor besides colors.

Thank you very much for the contribution. I will add your flavor to the next release (v2.1.1) and try to figure out why horizontal tables behave like this in your flavor. If they do not behave properly, I might disable horizontal tables until the issue has been resolved and then enable them again in a later patch. Is that ok with you?

Update
I did find the reason for this behavior. Turns out that the problem comes from an optimization in line 33 of the table module, where the background is not set if the color used is the same as the one used in the body. However, this causes the cells to not update properly, meaning they end up overlapping as your flavor file showcased. This can be very easily resolved on my end by updating the file to remove the condition. So, your flavor will display horizontal tables properly. If you want to see it work, just add the following:
table td {
  background: #ECEFF4;
}

I will merge the PR very soon and update the dev211 branch on which I am working to deal with this bug and make your flavor shine.
Releasing the flavor
I will move your demo to a codepen to keep with tradition (all the other demos are on codepen) and I will add a short description in the flavor file and the documentation pages.
I am willing to actively maintain it myself in the future (meaning mainly adding new features and keeping it compatible with changes in the codebase), if you don't want to.
If that's the case, just say the word, otherwise keep your fork alive, for me to open PRs before releases, so that you can update it.

Great! I already updated it to v2.1.1 which will be releasing this weekend. The only changes I made were adding a couple of variables that were added in for the latest release and calling a couple of mixins that were recently added for responsive hiding. Feel free to update your fork as soon as the update is released, so that you are up-to-date. Estimated release date is April, 21st, but it might be a day earlier or a day later.


Guidelines on local thread synchronization and async/await?

Hi, I'm looking for some guidance on thread safety and using async/await with the ICacheManager interface, I couldn't find any explicit mention of this topic in the existing docs.
These are my specific questions:

Are all ICacheManager methods considered thread-safe for local threads? Do I need to lock access to any methods such as Add(), Put(), GetOrAdd(), or are they all atomic? Obviously if I call multiple methods in sequence I will need a lock around them, but just wanted to check if it was required for single calls.

There is no use of async / await in the existing ICacheManager API, so from that can I assume that any ICacheManager calls are always synchronous for the executing thread, even if there are additional calls to a Redis backplane, etc.? I'm considering layering an async/await API on top of ICacheManager.

Thanks for the help.

This has been answered in some issues already.
Again, all cache handles / methods are thread safe.
Thread-safe just means that you'll never get concurrent modification exceptions or similar, for example. It does not mean that all methods are atomic.
Add is kind of atomic as you will not be able to call Add for the same key on two threads. Only one will win, the other one will return false. That's why GetOrAdd might loop 1-2 times in those situations.
Put will always execute. If two threads run Put on the same key at the same time, one of them will override the other's changes.
If you don't want that behavior, use the Update method, which ensures that you run the update code on the most recent version. If many threads try to Update the same key, the update command might be re-run several times with the "new version" of the stored value.
In case of Redis, Put will also be run with fire and forget, which is kind of async (implemented by the StackExchange.Redis client, see #89).
Add is always synchronous because we have to check if the operation was successful or, in case the key was already stored in the cache, we have to return false.
So, no, you do not need to add locks around any of those calls at all.
A lock on your current thread doesn't help you with distributed caches and multiple clients connected anyways, right? So in most scenarios, lock doesn't make sense.
As mentioned in #89, async/await didn't make much sense for CacheManager.
In-memory caches do not have any async IO or networking at all, and usually you always have an in-memory cache layer configured, meaning, it doesn't really help much
You also mentioned the backplane, the Pub/Sub stuff and the whole implementation is running on a separated task (message pooling etc...). So that's totally async for example.

Thanks for the info, that's very helpful - particularly the finer points on Put.


Cannot provision nodes on Amazon EC2 with RHEL 7 AMI

What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):

Create an Amazon EC2 node template referencing a RHEL 7 AMI
Create a cluster using the node template

Result:
The node provisioning process results in an error and the node fails to provision:
[INFO] [node-controller-rancher-machine] Waiting for machine to be running, this may take a few minutes...
[INFO] [node-controller-rancher-machine] Detecting operating system of created instance...
[INFO] [node-controller-rancher-machine] Waiting for SSH to be available...
[INFO] [node-controller-rancher-machine] Detecting the provisioner...
[INFO] [node-controller-rancher-machine] Provisioning with redhat...
[INFO] [node-controller-rancher-machine] The default lines below are for a sh/bash shell, you can specify the shell you're using, with the --shell flag.
[INFO] [node-controller-rancher-machine]
[INFO] Generating and uploading node config sandbox1
[ERROR] error syncing 'c-zdjxs/m-4r4xz': handler node-controller: Error creating machine: Error running provisioning: RHEL ssh command error: command: sudo -E yum install -y curl err: exit status 255 output: Loaded plugins: amazon-id, search-disabled-repos, versionlock, requeuing

The above happens using the default RHEL 7 AMI. Using our custom AMI we get a little further, the curl install works and it's able to install Docker, then fails here:
[INFO] [node-controller-rancher-machine] Copying certs to the local machine directory...
[INFO] [node-controller-rancher-machine] Copying certs to the remote machine...
[INFO] [node-controller-rancher-machine] The default lines below are for a sh/bash shell, you can specify the shell you're using, with the --shell flag.
[INFO] [node-controller-rancher-machine]
[INFO] Generating and uploading node config sandbox-1
[ERROR] [node] enqueing node pool c-6nwqd:np-mjb4r
[ERROR] error syncing 'c-6nwqd/m-xld52': handler node-controller: Error creating machine: Error running provisioning: RHEL ssh command error: command: printf '%!s(MISSING)' '-----BEGIN RSA PRIVATE KEY-----, requeuing

Other details that may be helpful:
Launching the same AMI manually and running the same command, "sudo -E yum install -y curl", executes successfully.
Environment information

Rancher version: 2.5.7, was also an issue in 2.4.x
Installation option (single install/HA): HA

Cluster information

Cluster type: Amazon EC2 provider
Machine type: cloud, t3a.medium (2 CPU, 4GB RAM)
Kubernetes version: any (doesn't get this far)
Docker version: 19.03

Still relevant

Please provide redacted trace or debug logs where the actual steps and outputs are supplied. It might be either a timeout issue (as it works after) or something else but the logs should be able to give us that direction.

Here's part of the trace-level logging from an attempted node provisioning. Debug didn't contain anything useful between the "Provisioning with redhat..." step and the error. This was using the latest base RHEL 7.9 AMI in us-gov-west-1. It's definitely starting the yum install command but seems to give up on it after 4 minutes, before it has the chance to complete. So maybe it is a timeout?
Our custom RHEL 7 AMI gets further (it successfully installs docker) but still dies while copying the certs. It successfully creates /etc/docker/ca.pem and server.pem, then hangs on creating server-key.pem (logs "About to run SSH command" for server-key.pem but never actually sends it, then errors out 4 minutes later).
The whole trace logs are pretty huge; I could redact and send it to you over Slack rather than trying to post it here?
2021/07/13 16:37:58 [INFO] [node-controller-rancher-machine] (rheltest1) Calling .GetSSHKeyPath
2021/07/13 16:37:58 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:37:58 [INFO] [node-controller-rancher-machine] (rheltest1) Calling .GetSSHUsername
2021/07/13 16:37:58 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:37:58 [INFO] [node-controller-rancher-machine] Using SSH client type: external
2021/07/13 16:37:58 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:37:58 [INFO] [node-controller-rancher-machine] Using SSH private key: /management-state/node/nodes/rheltest1/machines/rheltest1/id_rsa (-rw-------)
2021/07/13 16:37:58 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:37:58 [INFO] [node-controller-rancher-machine] &{[-F /dev/null -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none -o LogLevel=quiet -o PasswordAuthentication=no -o ServerAliveInterval=60 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ec2-user@REDACTED -o IdentitiesOnly=yes -i /management-state/node/nodes/rheltest1/machines/rheltest1/id_rsa -p 22] /usr/bin/ssh <nil>}
2021/07/13 16:37:58 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:37:58 [INFO] [node-controller-rancher-machine] About to run SSH command:
2021/07/13 16:37:58 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:37:58 [INFO] [node-controller-rancher-machine] sudo -E yum install -y curl
2021/07/13 16:37:58 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b

2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine] SSH cmd err, output: exit status 255: Loaded plugins: amazon-id, search-disabled-repos
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
rhel-7-server-rhui-rh-common-rpms                        | 2.1 kB     00:00
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
rhel-7-server-rhui-rpms                                  | 2.0 kB     00:00
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
rhui-client-config-server-7                              | 2.1 kB     00:00
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
(2/9): rhel-7-server-rhui- 0%! (BADINDEX) 0.0 B/s |    0 B   --:-- ETA

(1/9): rhel-7-server-rhui-rh-common-rpms/7Server/x86_64/gr |  124 B   00:00
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
(2/9): rhel-7-server-rhui-rh-common-rpms/7Server/x86_64/up |  34 kB   00:00
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
(3/9): rhel-7-server-rhui-rh-common-rpms/7Server/x86_64/pr |  68 kB   00:00
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
(5/9): rhel-7-server-rhui- 0%! (BADINDEX) 0.0 B/s | 103 kB   --:-- ETA

(4/9): rhel-7-server-rhui-rpms/7Server/x86_64/group        | 772 kB   00:00
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
(5/9): rhel-7-server-rhui-rpms/7Server/x86_64/updateinfo   | 4.1 MB   00:00
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
(7/9): rhui-client-config- 8%! (BADINDEX)6.8 MB/s | 5.0 MB   00:07 ETA

(6/9): rhui-client-config-server-7/x86_64/group            |  124 B   00:00
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
(7/9): rhui-client-config-server-7/x86_64/updateinfo       |   92 B   00:00
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
(8/9): rhui-client-config-server-7/x86_64/primary          | 2.6 kB   00:00
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
(9/9): rhel-7-server-rhui- 72%! (BADINDEX) 13 MB/s |  41 MB   00:01 ETA

(9/9): rhel-7-server-rhui-rpms/7Server/x86_64/primary      |  52 MB   00:01
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:00 [INFO] [node-controller-rancher-machine]
rhel-7-server-rhui-rh-common-rpms: [                                    ] 1/243
rhel-7-server-rhui-rh-common-rpms: [                                    ] 2/243
rhel-7-server-rhui-rh-common-rpms: [                                    ] 3/243
rhel-7-server-rhui-rh-common-rpms: [                                    ] 4/243
rhel-7-server-rhui-rh-common-rpms: [                                    ] 5/243
rhel-7-server-rhui-rh-common-rpms: [                                    ] 6/243
rhel-7-server-rhui-rh-common-rpms: [#                                   ] 7/243
rhel-7-server-rhui-rh-common-rpms: [#                                   ] 8/243
rhel-7-server-rhui-rh-common-rpms: [#                                   ] 9/243
rhel-7-server-rhui-rh-common-rpms: [#                                  ] 10/243
rhel-7-server-rhui-rh-common-rpms: [#                                  ] 11/243
rhel-7-server-rhui-rh-common-rpms: [#                                  ] 12/243
rhel-7-server-rhui-rh-common-rpms: [#                                  ] 13/243
rhel-7-server-rhui-rh-common-rpms: [##                                 ] 14/243
rhel-7-server-rhui-rh-common-rpms: [##                                 ] 15/243
rhel-7-server-rhui-rh-common-rpms: [##                                 ] 16/243
rhel-7-server-rhui-rh-common-rpms: [##                                 ] 17/243
2021/07/13 16:42:00 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:02 [INFO] [node-controller-rancher-machine] The default lines below are for a sh/bash shell, you can specify the shell you're using, with the --shell flag.
2021/07/13 16:42:02 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:02 [INFO] [node-controller-rancher-machine]
2021/07/13 16:42:02 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:02 [INFO] Generating and uploading node config rheltest1
2021/07/13 16:42:02 [DEBUG] getNodeTemplate parsed [cattle-global-nt:nt-7l2ks] to ns: [cattle-global-nt] and n: [nt-7l2ks]
2021/07/13 16:42:02 [TRACE] REST GET apis/management.cattle.io/v3/cattle-global-nt/nodetemplates/nt-7l2ks
2021/07/13 16:42:02 [DEBUG] Cleaning up [/opt/jail/c-vbr27/management-state/node/nodes/rheltest1]
2021/07/13 16:42:02 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:02 [TRACE] NodeController calling handler node-controller-sync c-vbr27/m-k9p9b
2021/07/13 16:42:02 [TRACE] REST UPDATE apis/management.cattle.io/v3/c-vbr27/nodes/m-k9p9b
2021/07/13 16:42:02 [TRACE] NodeController calling handler rke-worker-upgrader c-vbr27/m-k9p9b
2021/07/13 16:42:02 [ERROR] error syncing 'c-vbr27/m-k9p9b': handler node-controller: notifying bugsnag: [Error creating machine: RHEL ssh command error: command: sudo -E yum install -y curl err: exit status 255 output: Loaded plugins: amazon-id, search-disabled-repos, requeuing

For what it's worth, this appears to be resolved with Rancher 2.6.0.
Oddly in 2.5.9, it does occasionally succeed, just not consistently and often takes multiple attempts, cycling through nodes.

Tested again with 2.6.2 now that the FIPS node issue is resolved, and provisioning on RHEL 7 AMIs is working as expected. I'll go ahead and close this. Thanks.


Remove now-squashed company migrations

Also removes what was left of django-mptt.

Codecov Report

Merging #531 into develop will decrease coverage by <.01%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #531      +/-   ##
===========================================
- Coverage    96.49%   96.49%   -0.01%
===========================================
  Files          126      126
  Lines         3857     3855       -2
  Branches       352      352
===========================================
- Hits          3722     3720       -2
  Misses          92       92
  Partials        43       43

Impacted Files
Coverage Δ

datahub/company/models/company.py
96.9% <ø> (-0.07%)
:arrow_down:

Continue to review full report at Codecov.

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


Bug6999

fixed by applying scope qualifier to function type before doing type semantic

http://d.puremagic.com/issues/show_bug.cgi?id=6999

Looks good.


Added some more info on Bible Exhibit and People for Jehovah's Name

I hope this is useful!

Love all the links to articles for extra context. Thanks!


No validations done for toleration and affinity rules set for ComupteClass.

acorn version - acorn version v0.6.0-rc2+c6ffc99d
Steps to reproduce the problem:

Create a  projectcomputeclass/clustercomputeclass with following yaml which was invalid values :

kind: ClusterComputeClass
apiVersion: admin.acorn.io/v1
default: false
metadata:
  name: cwc2
description: Large compute for linux on arm64
cpuScaler: 0.25
memory:
  default: 30M
  values:
  - 10M
  - 20M
  - 30M
tolerations:
  - key: "key1"
    operator: "Equal"
    value: "value2"
    effect: "NoScheduler"   ==>(Invalid)
  - key: "key1"
    operator: "Equal"
    value: "value2"
    effect: "NoExecute"
affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: "tier"
            operator: "Equals"  ==>(Invalid)
            values:
            - "silver"

compute class gets created successfully.
App deployment with this computeclass fails with following error:

STATUS: ENDPOINTS[http://<Pending Ingress> => web1:80, http://<Pending Ingress> => web2:80, http://<Pending Ingress> => web3:80] HEALTHY[0] UPTODATE[0] [controller: failed to create myteste-76c71b61-400/web1 apps/v1, Kind=Deployment for acorn-controller p1/myteste: Deployment.apps "web1" is invalid: [spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operator: Invalid value: "Equals": not a valid selector operator, spec.template.spec.tolerations[0].effect: Unsupported value: "NoScheduler": supported values: "NoSchedule", "PreferNoSchedule", "NoExecute"], failed to create myteste-76c71b61-400/web2 apps/v1, Kind=Deployment for acorn-controller p1/myteste: Deployment.apps "web2" is invalid: [spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operator: Invalid value: "Equals": not a valid selector operator, spec.template.spec.tolerations[0].effect: Unsupported value: "NoScheduler": supported values: "NoSchedule", "PreferNoSchedule", "NoExecute"], failed to create myteste-76c71b61-400/web3 apps/v1, Kind=Deployment for acorn-controller p1/myteste: Deployment.apps "web3" is invalid: [spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operator: Invalid value: "Equals": not a valid selector operator, spec.template.spec.tolerations[0].effect: Unsupported value: "NoScheduler": supported values: "NoSchedule", "PreferNoSchedule", "NoExecute"]]

Expected Behavior:
Ideally we should be abe to validate the syntax of toleration and affinity rules set in the compute class and error out at the time of creating the computeclass.

I agree. We should have the same validation rules as kubernetes in this area.


Icon request: Linux Professional Institute (LPI)

URL for the brand / site / app
https://lpi.org
Logo resources for the icon
I found this one, but it should be converted and cropped to a circle. Removed by maintainer (raster image)
Proof of the Aegis-compatible 2FA
The 2FA is used here: https://discuss.lpi.org/. Here is a site that catalogs 2FA compatible websites and here is the link for the LPI entry: https://github.com/2factorauth/twofactorauth/blob/master/entries/l/lpi.org.json
Anything else?
I'm sending an email to LPI to check if they have any kind of press media kit.
Confirmation

[X] I have read and followed the issue guidelines & issue form.

Here is a site that catalogs 2FA compatible websites and here is the link for the LPI entry: https://github.com/2factorauth/twofactorauth/blob/master/entries/l/lpi.org.json

This entry doesn't state that this has TOTP, see example entry that has it (tfa).

That's true. Here is the screen where I type the OTP code:

Created forum account to see user amount.
We only make icons for really popular forums (at least over 250,000 total members and high posting activity). This forum only has 188 members. For forums under the requirements, forum software related icons are the prefer solution.
Use one of the Discourse icons or generic Talk icon instead.


[Bug] Zooming Y Axes controlled by one dataZoom component when using DataZoom Toolbox feature

Version
5.5.1
Link to Minimal Reproduction
https://codesandbox.io/s/9fdg8f
Steps to Reproduce

Open the link  to minimal reproduction;
Click on DataZoom feature at Toolbox;
Drag to zoom some chart area.

The gif bellow shows the steps

Current Behavior
The zoom not correspond the area selected. It happens only when multiple Y Axis is configured to be controlled by one DataZoom Component and when it's using the Toolbox DataZoom feature.
If the zoom is done using the DataZoom Component or the mouse scroll the behavior is as expected.
Expected Behavior
The zoom should correspond the area selected considering that the chart has multiple Y Axis and one DataZoom Component controls both y axes.
The behavior expected is equal to using the DataZoom Component to zoom or the mouse scroll. Both cases the zoom works on both y axes.
Environment
- OS: Windows 10
- Browser: Chrome 125.0.6422.142 (64-bit)
- Framework: JavaScript

Any additional comments?
No response

seems to work fine when last two dataZoom are set as yAxisIndex:0 instead of yAxisIndex:[0,1]
📌 please close issue if problem solved.

seems to work fine when last two dataZoom are set as yAxisIndex:0 instead of yAxisIndex:[0,1] 📌 please close issue if problem solved.

When the last two dataZoom are set as yAxisIndex: 0 the dataZoom component doesn't work fine. The bug is replaced.
Note that the green and the pink series are set yAxisIndex: 0 (Left Axis) and the red one is yAxisIndex: 1 (Right Axis).
My dataZoom component is set to control both y axes as yAxisIndex: [0, 1] (ref). And the axes have different max value.
So when the zoom is done, both y axes should change.
Compare the gifs bellow for futher information.
Zoom by Toolbox DataZoom feature (unexpected behavior - bug). Note that before the zoom the datazoom component max correspond the max of Left Axis (yAxisIndex: 0) and after the zoom both axes and the datazoom max are equals:

Zoom by DataZoom commponent and by mouse scroll (expected behavior). Note that before and after the zoom the datazoom  component max and the Left Axis max are equals and the zoom works fine.

Additional comment: if the last two dataZoom are set as suggested the behavior between the zoom mode changes. That is, the zoom by Toolbox DataZoom feature becomes expected behavior but the zoom by DataZoom component or by mouse scroll becomes unexpected behavior.

let see if you can find "unexpected behavior" with this example

let see if you can find "unexpected behavior" with this example

Yes. I found some. Compare the gifs:
Here the datazoom move affects only the axis controlled by it (note the axis min-max). That's correct - expected.

Here the datazoom move affects both axes (axes min-max) but the component was set to control only the left axis. That's unexpected.

ok, good examples, agree. Left zoom should act like right zoom - freezing one Y-axis and only zooming the other, but it doesn't.


Flush stdout prior to exiting child process

Flushing stdout prior to existing child processes will ensure all output from those child processes continues along any redirects. Otherwise data is output to screen, but otherwise lost. This was causing output to be lost upon redirection or when lint is run via ssh.

Automated message from Dropbox CLA bot
@christi3k, it looks like you've already signed the Dropbox CLA. Thanks!

@timabbott This looks good to me!

Squashed the two commits and merged, after updating the commit message of the actual commit to explain the problem it fixes.  Thanks @christi3k and @showell for tracking this down!


Invalid argument: Unsuccessful TensorSliceReader constructor: Failed to get matching files on

The error occurs when I have trained on one system and used tf.Saver to save a model and then I copied the saved model on  a second system and used the same code to restore the model. However, the absolute paths of the directories in which the code is executed are different. Hence I got this error:
2018-03-07 12:08:17.897739: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
2018-03-07 12:08:41.813649: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Unsuccessful TensorSliceReader constructor: Failed to get matching files on /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen/model.ckpt: Not found: /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen; No such file or directory
2018-03-07 12:08:41.813663: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Unsuccessful TensorSliceReader constructor: Failed to get matching files on /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen/model.ckpt: Not found: /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen; No such file or directory
2018-03-07 12:08:41.813680: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Unsuccessful TensorSliceReader constructor: Failed to get matching files on /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen/model.ckpt: Not found: /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen; No such file or directory
2018-03-07 12:08:41.813700: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Unsuccessful TensorSliceReader constructor: Failed to get matching files on /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen/model.ckpt: Not found: /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen; No such file or directory
2018-03-07 12:08:41.813724: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Unsuccessful TensorSliceReader constructor: Failed to get matching files on /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen/model.ckpt: Not found: /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen; No such file or directory
2018-03-07 12:08:41.813769: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Unsuccessful TensorSliceReader constructor: Failed to get matching files on /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen/model.ckpt: Not found: /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen; No such file or directory
2018-03-07 12:08:41.813784: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Unsuccessful TensorSliceReader constructor: Failed to get matching files on /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen/model.ckpt: Not found: /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen; No such file or directory
2018-03-07 12:08:41.813802: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Unsuccessful TensorSliceReader constructor: Failed to get matching files on /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen/model.ckpt: Not found: /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen; No such file or directory
2018-03-07 12:08:41.813819: W tensorflow/core/framework/op_kernel.cc:1192] Invalid argument: Unsuccessful TensorSliceReader constructor: Failed to get matching files on /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen/model.ckpt: Not found: /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen; No such file or directory
Traceback (most recent call last):
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1323, in _do_call
    return fn(*args)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1302, in _run_fn
    status, run_metadata)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 473, in __exit__
    c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Unsuccessful TensorSliceReader constructor: Failed to get matching files on /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen/model.ckpt: Not found: /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen; No such file or directory
	 [[Node: save/RestoreV2_1 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_1/tensor_names, save/RestoreV2_1/shape_and_slices)]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/pycharm-2017.3.3/helpers/pydev/pydevd.py", line 1668, in <module>
    main()
  File "/opt/pycharm-2017.3.3/helpers/pydev/pydevd.py", line 1662, in main
    globals = debugger.run(setup['file'], None, None, is_module)
  File "/opt/pycharm-2017.3.3/helpers/pydev/pydevd.py", line 1072, in run
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "/opt/pycharm-2017.3.3/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "/home/alex/work/python/bayes-test/bin/train.py", line 165, in <module>
    main(**vars(parser.parse_args()))
  File "/home/alex/work/python/bayes-test/bin/train.py", line 97, in main
    tu.load_parameters(saver, sess, data_folder)
  File "/home/alex/work/python/tensorflow_utils/tensorflow_utils/printing.py", line 13, in load_parameters
    saver.restore(session, ckpt.model_checkpoint_path)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1666, in restore
    {self.saver_def.filename_tensor_name: save_path})
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 889, in run
    run_metadata_ptr)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1120, in _run
    feed_dict_tensor, options, run_metadata)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1317, in _do_run
    options, run_metadata)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1336, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Unsuccessful TensorSliceReader constructor: Failed to get matching files on /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen/model.ckpt: Not found: /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen; No such file or directory
	 [[Node: save/RestoreV2_1 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_1/tensor_names, save/RestoreV2_1/shape_and_slices)]]

Caused by op 'save/RestoreV2_1', defined at:
  File "/opt/pycharm-2017.3.3/helpers/pydev/pydevd.py", line 1668, in <module>
    main()
  File "/opt/pycharm-2017.3.3/helpers/pydev/pydevd.py", line 1662, in main
    globals = debugger.run(setup['file'], None, None, is_module)
  File "/opt/pycharm-2017.3.3/helpers/pydev/pydevd.py", line 1072, in run
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "/opt/pycharm-2017.3.3/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "/home/alex/work/python/bayes-test/bin/train.py", line 165, in <module>
    main(**vars(parser.parse_args()))
  File "/home/alex/work/python/bayes-test/bin/train.py", line 87, in main
    saver = tf.train.Saver(params)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1218, in __init__
    self.build()
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1227, in build
    self._build(self._filename, build_save=True, build_restore=True)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1263, in _build
    build_save=build_save, build_restore=build_restore)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 751, in _build_internal
    restore_sequentially, reshape)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 427, in _AddRestoreOps
    tensors = self.restore_op(filename_tensor, saveable, preferred_shard)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 267, in restore_op
    [spec.tensor.dtype])[0])
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/ops/gen_io_ops.py", line 1021, in restore_v2
    shape_and_slices=shape_and_slices, dtypes=dtypes, name=name)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
    op_def=op_def)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2956, in create_op
    op_def=op_def)
  File "/opt/miniconda3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1470, in __init__
    self._traceback = self._graph._extract_stack()  # pylint: disable=protected-access

InvalidArgumentError (see above for traceback): Unsuccessful TensorSliceReader constructor: Failed to get matching files on /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen/model.ckpt: Not found: /mnt/workspace/work/python/bayes-test/bin//results/not_centered/gen; No such file or directory
	 [[Node: save/RestoreV2_1 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_1/tensor_names, save/RestoreV2_1/shape_and_slices)]]

Isn't the saver suppose to save a somewhat system agnostic version of the tensors? The fact that there is hardcoded absolute paths make me very suspicous?

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

Have I written custom code: No
OS Platform and distribution: Ubuntu 16.04 LTS
Tensorflow installed from Anaconda
Tensorflow version: 1.4
Bazel version: Don't have bazel installed
CUDA/cuDNN version: On the cluster - CUDA 9.0/cudnnv8, the other machine is CPU only
GPU model and memory: V100 (P3 AWS instance)
Exact command:
def load_parameters(saver, session, load_dir, force_delete=False):
    if tf.gfile.Exists(load_dir):
        ckpt = tf.train.get_checkpoint_state(load_dir)
        if ckpt and ckpt.model_checkpoint_path:
            saver.restore(session, ckpt.model_checkpoint_path)
        elif force_delete:
            shutil.rmtree(load_dir)
            tf.gfile.MakeDirs(load_dir)
    else:
        tf.gfile.MakeDirs(load_dir)

This is called with absolute paths for load_dir on the cluster machine and on the desktop machine.

Nagging Assignee @jart: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Have you tried passing these libraries a relative path?

It has been 14 days with no activity and the awaiting response label was assigned. Is this still an issue?

It has been 29 days with no activity and the awaiting response label was assigned. Is this still an issue?

It has been 45 days with no activity and the awaiting response label was assigned. Is this still an issue?

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

NotFoundError (see above for traceback): Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /home/deeplearning/projects/Google/tensorflow/models/research/object_detection/training/model.ckpt-98472
HI , anyone ,i met the same problem. the reason is that the program is stop and i restart, the problem is occur. but the files is all here:

please tell me why?thanks a lot


Using custom webpack.config.js getting Babel 5 errors

I've added copied the  webpack.config.js but getting this error:
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: [BABEL] /Users/rick/project/webpack.config.js: Using removed Babel 5 option: base.stage - Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets

Here is my webpack.config.js
import path from "path";
import webpack from "webpack";
import ExtractTextPlugin from "extract-text-webpack-plugin";

module.exports = (/* config: PhenomicConfig */) => ({
  entry: {
    "phenomic.main": [
      process.env.PHENOMIC_ENV !== "static" &&
        require.resolve("webpack-hot-middleware/client"),
      process.env.PHENOMIC_ENV !== "static" &&
        require.resolve("react-hot-loader/patch"),
      "./App.js"
    ].filter(item => item)
  },
  output: {
    publicPath: "/",
    path: path.join(process.cwd(), "dist"),
    filename: "[name].js"
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: require.resolve("babel-loader"),
        options: {
          babelrc: false,
          presets: [require.resolve("@phenomic/babel-preset")],
          plugins: [require.resolve("react-hot-loader/babel")]
        }
      },
      {
        test: /\.css$/,
        loader: ExtractTextPlugin.extract({
          fallback: require.resolve("style-loader"),
          use: require.resolve("css-loader")
        })
      }
    ]
  },
  plugins: [
    new ExtractTextPlugin({
      filename: "styles.css",
      disable: process.env.PHENOMIC_ENV !== "static"
    }),
    process.env.PHENOMIC_ENV !== "static" &&
      new webpack.HotModuleReplacementPlugin(),
    process.env.NODE_ENV === "production" &&
      new webpack.optimize.UglifyJsPlugin()
  ].filter(item => item),

  resolve: {
    // react-native(-web) | react-primitives
    extensions: [".web.js", ".js", ".json"],
    alias: {
      "react-native": "react-native-web",

      // to ensure a single module is used
      react: path.resolve(path.join(process.cwd(), "node_modules", "react")),
      "react-dom": path.resolve(
        path.join(process.cwd(), "node_modules", "react-dom")
      ),
      "react-router": path.resolve(
        path.join(process.cwd(), "node_modules", "react-router")
      )
    }
  },

  // eslint-disable-next-line max-len
  // https://github.com/facebookincubator/create-react-app/blob/fbdff9d722d6ce669a090138022c4d3536ae95bb/packages/react-scripts/config/webpack.config.prod.js#L279-L285
  node: {
    fs: "empty",
    net: "empty",
    tls: "empty"
  }
});

I then tried adding an empty .babelrc
{
  "presets": []
}

Which gets past that error, but then I get the error below, which I'm guessing is because I removed all the presets.
ERROR in ./App.js
Module build failed: Error: parseQuery should get a string as first argument
    at Object.parseQuery (/Users/rick/Documents/node_modules/babel-loader/node_modules/loader-utils/index.js:48:9)

Any ideas?

As soon as you create your own webpack configuration, you need to provide your own Babel configuration. Did you do that?

Closing due to the lack of response.

Feel free to use our chat if you need some help! https://gitter.im/phenomic/phenomic


Wrong field name in login() method

The method RocketChatClientCallBuilder.login in master branch is using username field to set the username value but the API is expecting user instead.
By using username the response is always 401 Unauthorized (other endpoints are already accepting username so my understanding is this field name should be standardised).

Could you please provide a sample case / test-case showing a scenario where the current login fails and subsequently works (using your modification)? I do currently use the tool as is for login, but it works with RocketChat 2.3!

It does not work with RocketChat 3.3
I could verify by changing paramer username to user to make it work

I just tested against 3.3 and it seems to work. What is your usage scenario? RocketChatClientCallBuilder.login is a private method you should not be required to directly use it?

I tried with rocket-chat-rest-client obtained via Maven and failed against Rocket.Chat V3.3.0 (using new RocketChatClient(<params>))
To make it work, I checked out the project and made the named change and again used new RocketChatClient(<params>).
I guess you agree, that the Rocket.Chat API https://docs.rocket.chat/api/rest-api/methods/authentication/login does require the parameter user rather than username?

so you tried the maven version, not the current master in this repository? The version distributed via maven is quite old.
It does not matter whether we agree on the documentation - first a test must fail - to this end I updated the build to test against 3.3.3 which does build correctly.
Please test your code using the current master as served in this repo, you could also share a snipped of what is not working for you, to include as additional test.

Well, I did not write clear enough. After failing with maven version, I cloned current master and debugged and verified the failure. Then I changed the parameter name to user and got things working.
my test code is a 2 liner:
rc = new RocketChatClient(<params>) rc.getGroupsApi()

I just tested this current code against my running productive 3.3.3 installation with
RocketChatClient rc = new RocketChatClient("https://rocketchat.mydomain.com", "user", "password");
Group[] list = rc.getGroupsApi().list();
for (Group group : list) {
	System.out.println(group);
}

and it works without a problem.

So the point might very well be on the other end. My Rocket.Chat installation is a new installation of Version 33.0 from Scratch using the official docker image.
I am going to update it to 3.3.3 for verification

After update to Rocket.Chat V3.3.3 I still observer the same.
I reduced the client part to a setup in PostMan, still the same. Using username does not work, using user does.

According to https://docs.rocket.chat/api/rest-api/methods/authentication/login the field must be user, not username. So please update the library.


Add extension for vim-localsearch

Hi,
I wrote a vim plugin and an extension to vim-airline to show its state.
Localsearch makes the searchterm @/ a window-local state so you can search different things in different windows/tabs/splits. When localsearch is activated (via a mapping), the airline extension will add a red segment saying "LS" to the statusline.
Please see the plugin readme for a description of localsearch and a use-case.
Could you please merge this pull request or let me know if there is anything I can improve?
Best regards,
mox

please squash

ping

Sorry, I did not have internet connectivity. I'll do it tomorrow.

Ok, turns out, rebasing an open pull request was no different than rebasing before creating a pull request. Done.
And thank you for your patience.

thanks!


[AutoPR sql/resource-manager] fix: Microsoft.Sql/stable/2014-04-01 model validation

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/6704

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/5404


Feature/ssr

Small modification over usage of window and document object to make the package working with SSR (Server Side Rendering)

@vchangal
Consider #6371 (and other referenced there issues).
And have you noticed failing tests?


Large package size when compiling for lambda

Bug description
Hi There,
I'm looking at using Prisma in a lambda environment and have noticed the package size is around 250Mb when using the following generator:
generator client {
    provider      = "prisma-client-js"
    binaryTargets = ["native", "rhel-openssl-1.0.x"]
}

I'm using the following package.json and am installing using npm ci --omit=dev (have also tried npm ci --production)
"devDependencies": {
    "prisma": "^4.1.0",
    "typescript": "~4.3.0"
  },
  "dependencies": {
    "@prisma/client": "^4.1.0"
  }

Wanted to check that this is the intended package size, and if it is, whether there are any files I can manually delete to minimise the package size.
I came across this article however we use AWS SAM and don't want to introduce webpack solely to support prisma.
Thanks in advance for your help
How to reproduce

Create an npm package with the above dependencies
Use the prisma generator config above
Run npm ci --omit=dev to install production dependencies
The node_modules package will be > 150Mb

Expected behavior
The node_modules package is small enough (preferably < 30Mb) to deploy in a lambda function without using layers
Prisma information

Environment & setup

OS: Mac OS
Database: PostgreSQL
Node.js version: 14.9
npm: 8.14

Prisma Version
^4.1.0

By defining two binaryTargets, unless you are already running the build step on rhel-openssl-1.0.x, you are already making sure that you get double the engine files than necessary to run your Lambda function. Frameworks like Serverless Framework and similar ensure that only the required engine files are bundled and uploaded.
Additionally, 250MB still sounds to large for production only dependencies. Can you list the files that are being included?

@janpio
Here's the output of ls -Ralh node_modules/ after running npm ci --production against a schema.prisma file of:
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["rhel-openssl-1.0.x"]
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

model User {
  id    Int     @id @default(autoincrement())
  email String  @unique
  name  String?
}

The total size of node_modules is 231.9MB
modules.txt

Ideally, if you only need the Prisma Client, you could generate to a custom location and just upload that. You can definitely discard @prisma/engines. The generated client will have a copy of the engine.

@cam-slyp  If you are using AWS Lambda only, you could do the following

Create a zip script that only zips what's needed, for example
https://github.com/prisma/ecosystem-tests/blob/dev/platforms-serverless/lambda/zip.sh
Then upload the zip

aws lambda update-function-code --function-name my-function --zip-file "fileb://lambda.zip"

Note: In our docs we mention how to remove these unneeded artifacts but only when using the serveless framework, I think we could improve that and mention how to do that when using AWS Lambda alone.

Today's release 4.8.0 has significantly (average 50%, on some platforms even more) decreased the size of our engine files:

Improved serverless experience — smaller engines size
In this release, we have decreased the size of our engine files by an average of 50%. The size of the Query Engine used on Debian, with OpenSSL 3.0.x, for example, went from 39MB to 14MB. We will also remove some smaller engines to decrease the total size in future versions.
Additionally, we have started optimizing how the Prisma schema is loaded in Prisma Client. You should notice a considerable improvement when executing the first query if you're working with a bigger schema with many models and relations.
We will continue investing in this direction in the next releases and further improve the experience with Prisma and serverless environments.

https://github.com/prisma/prisma/releases/tag/4.8.0
We know we still have duplicated engine files in multiple locations, and that we are including too many of our engine files - but this was the obvious place to start and we are happy how significantly we could improve the situation already. Expect more updated like this in the coming releases from us.

As written before, we have reduced the size of our engines a lot and as far as we know, this solved this problem for most our user and their use cases. Hence I am closing this issue for now.
If you and your project are still having problems because of the remaining size of our engines, please open a new issue and describe your situation - we are happy to take a look and hopefully fix that. Thanks!


[libs/movex-react] Add spec for useMovex hook

Linked Issue

#104
Description

Added spec and hooks folder to the movex-react;
Added a spec for useMovex hook;

Methodology

used renderHook from testing-library/react to test custom hooks;

Proof

Code of Conduct

By submitting this pull request, you agree to follow our Code of Conduct

Hey @Arol15 this is ready to merge, one last thing – can you please sign your commits as described here https://docs.github.com/articles/about-gpg/