iOS: WKWebView - Image URI could not open

Hello!
first i wanna thank you for your plugin!
but i have one problem with ios. if i receive the imageuri (file:///var/...) i cant open the file. i tried it directly with <image src... and also to get the stream buffer and generate a blob. andorid, no problem but ios will not work.
maybe you can help me. thank you!

Hey @webnologie
Thanks for raising an issue.
Could you please also provide the following information so I can look into this?

iOS version (eg 12.2.1)
Is it simulator or real device ?
iOS device (eg iPhone 6, iPad etc)
Cordova Version
Cordova ios version

Cheers and have a nice day!
Chris
Neutrinos

Hello Chris!
Thank you for your Reply!
Problem is on real device: ios 9.x and also ios 12
Iphone and also ipad
PS C:\Users\offic\OneDrive\4_Code\Phonegap\quickjob3> framework7 cordova platform ls
Installed platforms:
android 7.0.0
ios 4.5.5
thank you emanuel
Von: Christy Thomas Alex<EMAIL_ADDRESS>Gesendet: Montag, 8. Juli 2019 13:17
An: NeutrinosPlatform/cordova-plugin-document-scanner<EMAIL_ADDRESS>Cc: webnologie<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Betreff: Re: [NeutrinosPlatform/cordova-plugin-document-scanner] iOS: Imageuri could not open (#56)
Hey @webnologie https://github.com/webnologie
Thanks for raising an issue.
Could you please also provide the following information so I can look into this?

iOS version (eg 12.2.1)
Is it simulator or real device ?
iOS device (eg iPhone 6, iPad etc)
Cordova Version
Cordova ios version

Cheers and have a nice day!
Chris https://github.com/ChrisTomAlx
Neutrinos http://www.neutrinos.co/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/56?email_source=notifications&email_token=AFCCJS6WSD6EPUGY5IDBLHLP6MO2HA5CNFSM4H6YRMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZMYUEA#issuecomment-509184528 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFCCJSZZGDIUE6HQHNJZJA3P6MO2HANCNFSM4H6YRMUA .

Hey @webnologie
Would it be possible for you to zip a sample project with this issue and send it over so I can check it out on my side. You can use firefox send.
Cheers
Chris
Neutrinos

Hello i just made an sample project:
https://send.firefox.com/download/d4a36487a971dc8e/#j-Kk7-BjRMyNtIOfJytWgw
please open with xcode the xcworkspace project file…
thank you
Von: Christy Thomas Alex<EMAIL_ADDRESS>Gesendet: Montag, 8. Juli 2019 14:12
An: NeutrinosPlatform/cordova-plugin-document-scanner<EMAIL_ADDRESS>Cc: webnologie<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Betreff: Re: [NeutrinosPlatform/cordova-plugin-document-scanner] iOS: Imageuri could not open (#56)
Hey @webnologie https://github.com/webnologie
Would it be possible for you to zip a sample project with this issue and send it over so I can check it out on my side. You can use firefox send https://send.firefox.com/ .
Cheers
Chris https://github.com/ChrisTomAlx
Neutrinos http://www.neutrinos.co/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/56?email_source=notifications&email_token=AFCCJS7NJGCX7NPNQ7YTU63P6MVH3A5CNFSM4H6YRMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZM4MAY#issuecomment-509199875 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFCCJS4Z3OG7473L5QDYRR3P6MVH3ANCNFSM4H6YRMUA .

Thanks for the share @webnologie.
I will see what I can find and get back to you as soon as I can.
Cheers
Chris
Neutrinos

You are great. Did you see the problem. Greetings from Austria
Mit freundlichen Grüßen, Emanuel Hölzl
On Mon, Jul 8, 2019 at 8:21 PM +0200, "Christy Thomas Alex"<EMAIL_ADDRESS>wrote:
Thanks for the share @webnologie.
I will see what I can find and get back to you as soon as I can.
Cheers
Chris
Neutrinos
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

So I figured out what the problem is,
This is being caused by wkwebview.. Sigh..
So the issue is that wkwebview doesn't allow you to load images the traditional way. I was playing around with some fixes that did not pan out. There is one more thing that I am going to try. If you get the time you could try it on your end as well (It is a JavaScript only solution so there is no native code involved). Here you go :- https://www.construct.net/en/blogs/ashleys-blog-2/hacking-something-useful-932
Cheers
Chris
Neutrinos

Hello Chris!
Thank you for your reply.
I already tried to load the image-data via XHR (AJAX) to get the Array Buffer.
Then I converted this stream to a Image-Blob… On Android it will work but also not on ios.
Hmm, I cant find a solution.
Br, emanuel
Von: Christy Thomas Alex<EMAIL_ADDRESS>Gesendet: Dienstag, 9. Juli 2019 19:53
An: NeutrinosPlatform/cordova-plugin-document-scanner<EMAIL_ADDRESS>Cc: webnologie<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Betreff: Re: [NeutrinosPlatform/cordova-plugin-document-scanner] iOS: Imageuri could not open (#56)
So I figured out what the problem is,
This is being caused by wkwebview.. Sigh..
So the issue is that wkwebview doesn't allow you to load images the traditional way. I was playing around with some fixes that did not pan out. There is one more thing that I am going to try. If you get the time you could try it on your end as well (It is a JavaScript only solution so there is no native code involved). Here you go :- https://www.construct.net/en/blogs/ashleys-blog-2/hacking-something-useful-932
Cheers
Chris https://github.com/ChrisTomAlx
Neutrinos http://www.neutrinos.co/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/56?email_source=notifications&email_token=AFCCJS2S6FTTGZSWSVNEXCTP6TF7TA5CNFSM4H6YRMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZRAWTA#issuecomment-509741900 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFCCJS5FVYWGHKLY2XPFV33P6TF7TANCNFSM4H6YRMUA .

So I have a workaround for you. Until WkWebView has fixed these issues we will have to do as below.

Firstly add cordova-plugin-file to your project as shown below (for cordova projects) :-

  cordova plugin add cordova-plugin-file

Then you can use the scanner plugin in this way :-

scan.scanDoc(onSuccess, onFail, { sourceType: 1, fileName: "image" });

function onSuccess(imageURI) {
   console.log(imageURI);
   // Convert the uri to base 64 using cordova-plugin-file
   getFileContentAsBase64(imageURI, function (base64Image) {
       // Use base 64 to set the src
       document.getElementById("myImage").src = base64Image;
   });
}

function onFail(message) {
   alert('Failed because: ' + message);
}

function getFileContentAsBase64(path, callback) {
   window.resolveLocalFileSystemURL(path, gotFile, fail);

   function fail(e) {
       alert('Cannot found requested file');
   }

   function gotFile(fileEntry) {
       fileEntry.file(function (file) {
           var reader = new FileReader();
           reader.onloadend = function (e) {
               var content = this.result;
               callback(content);
           };
           reader.readAsDataURL(file);
       });
   }
}

Note :- Basically what we are doing is natively converting the file URI to base64 then getting this base64 back to set the img src. This might cause your app to take a small performance hit. Also you might have to use progress spinners so that the user knows to wait for a response.
PS :- I have tested this code only with iOS. Also this is only required for iOS. So you could improve performance in Android devices by running this code only if platform is iOS. But if you choose to test this code on Android as well, please let me know if it works out correctly as I haven't tested on Android.
Let me know if you are running into any other troubles. Also do close the issue if this solved your problem
Thanks and Cheers from India :)
Chris
Neutrinos

Hello Chris!
Thank you very much!! It will work on ios and android. Performance is still good.
Please send me your paypal-address.
This was great support. Maybe you can also send me your contact-infos – maybe I have something for you in future – if you are interested.
Greetings from austria!
Von: Christy Thomas Alex<EMAIL_ADDRESS>Gesendet: Mittwoch, 10. Juli 2019 10:00
An: NeutrinosPlatform/cordova-plugin-document-scanner<EMAIL_ADDRESS>Cc: webnologie<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Betreff: Re: [NeutrinosPlatform/cordova-plugin-document-scanner] iOS: WKWebView - Image URI could not open (#56)
So I have a workaround for you. Until WkWebView has fixed these issues we will have to do as below.

Firstly add cordova-plugin-file to your project as shown below (for cordova projects) :-

cordova plugin add cordova-plugin-file

Then you can use the scanner plugin in this way :-

scan.scanDoc(onSuccess, onFail, { sourceType: 1, fileName: "image" });
function onSuccess(imageURI) {
console.log(imageURI);
// Convert the uri to base 64 using cordova-plugin-file
getFileContentAsBase64(imageURI, function (base64Image) {
// Use base 64 to set the src
document.getElementById("myImage").src = base64Image;
});
}
function onFail(message) {
alert('Failed because: ' + message);
}
function getFileContentAsBase64(path, callback) {
window.resolveLocalFileSystemURL(path, gotFile, fail);
function fail(e) {
alert('Cannot found requested file');
}
function gotFile(fileEntry) {
fileEntry.file(function (file) {
var reader = new FileReader();
reader.onloadend = function (e) {
var content = this.result;
callback(content);
};
reader.readAsDataURL(file);
});
}
}
Note :- Basically what we are doing is natively converting the file URI to base64 then getting this base64 back to set the img src. This might cause your app to take a small performance hit. Also you might have to use progress spinners so that the user knows to wait for a response.
PS :- I have tested this code only with iOS. Also this is only required for iOS. So you could improve performance in Android devices by running this code only if platform is iOS. But if you choose to test this code on Android as well, please let me know if it works out correctly as I haven't tested on Android.
Let me know if you are running into any other troubles. Also do close the issue if this solved your problem
Thanks and Cheers from India :)
Chris https://github.com/ChrisTomAlx
Neutrinos http://www.neutrinos.co/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/56?email_source=notifications&email_token=AFCCJS4UZRW6UGIY6ZEGQULP6WJG7A5CNFSM4H6YRMUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZSUTRI#issuecomment-509954501 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFCCJS5D2WH5LYUIJUVJRVLP6WJG7ANCNFSM4H6YRMUA .

Hey @webnologie

Please send me your paypal-address.

Thanks a ton for the offer but for now your gratitude and your perseverance to stick with this issue till it was fixed is all that is required. Future users that run into this issue now have access to an easy workaround, thanks to you :)

This was great support. Maybe you can also send me your contact-infos – maybe I have something for you in future – if you are interested.

Definitely, you can get in touch with me using the following E-mail ID's
Work (Neutrinos) :-<EMAIL_ADDRESS>Company (Neutrinos) :-<EMAIL_ADDRESS>Personal :-<EMAIL_ADDRESS>Closing this issue. Please feel free to open another if you need help.
Cheers
Chris
Neutrinos


Crosshair Esp

can someone implement this to osiris
https://www.unknowncheats.me/forum/counterstrike-global-offensive/377174-crosshair-esp.html

+1 would definitely like this to be a feature

+REP MEN would be a good feature plz add


Add option for progress visualization

I was recently working on some documentation of the DBSCAN algorithm, and on several occasions was running a test on datasets of varying lengths. Even with some very small changes in the parameters, the execution time could jump from under one second to several minutes. While checking progress is not possible for all algorithms, there are at least a few where displaying a progress indicator could be helpful to users for estimating remaining execution time or at least understanding how far along their run is. Obviously, not all users might be interested in this, so making this feature optional with a feature flag might make sense as well.
Options for this could potentially be the indicatif or pb libraries.

It looks like the initial issue with long unbounded execution times for DBSCAN was fixed in #100, so I'm putting this on the backburner for the time being


FRP Comparison

For developers coming from other FRP libraries, it would be nice to have a comparison table of the common API methods.
For example...

most
Bacon
Kefir

most.fromEvent
Bacon.fromEvent
Kefir.fromEvent

While Kefir has an API almost identical to Bacon, it's not always clear how to achieve the same result in most.

This would be great. For example most does not have a sampledBy method, but you can simulate it by passing the trigger stream as the first of two input stream.
sampledBy -> stream
most: sampler.sample(f, sampler, streams)
Bacon: property.sampledBy(streamOrProperty, f)
Kefir: obs.sampledBy(otherObs, [combinator])

I can see the value in helping folks learn most.js if they have experience with other libs.
We're not necessarily experts in using the other libs :)  It'd be great if folks who have experience (like you!) could help us build up a "porting guide" like this.  For example, I could see working on it incrementally: as you encounter situations you're not sure how to solve using most.js, open an issue and we can work together to find a solution, and then we can add that to the "porting" guide.  What do you think?
@benawhite Have a look at sampleWith:
let sampled = values.sampleWith(sampler)

You can also sample multiple streams at once using sample, like you suggested:
let sampled = sampler.sample(f, stream1, stream2, stream3, ...);

I wouldn't expect you to be an expert, but a comparison/porting guide would certainly help your library gain adoption. Here is the API Comparison Doc that Kefir has posted for comparing Bacon and Kefir. Maybe you could use that as a template for most vs Bacon vs Kefir. I can't promise that I would be contributing, but putting something out there would give the community a starting point.

Old issue, but I still think it is relevant to compare most and kefir. I'm new to FRP and I'm currently trying to pick a simple/performant/well documented library and both seem to correspond.

@pierreio what will help you swing over to the most side?

I was mainly looking into a better way to organise the redux side effects, and found redux-observable which seems to solve that in a very elegant way. I know I can use most as a backend for it but I'm currently exploring if I can use FRP for more than the async side effects.
The only difference I have seen so far is that kefir is a bit easier to use when dealing with imperative aspects (pool, emit, property). But most has an extension for that so it's not a deciding factor.
I think I just have to find out what I want to do with FRP before deciding on the library.

I'm using riot and rethindb. So I use a gist for dispatcher partner. very well and clean. but now I see that usea FRP is neccesary. So start to learning. I discard bacon because  use a lot of dependencies and and cycle.js too. so far most.js and kefir are the winners. I think we need some guide for begginer for where start. because is difficult chosse with out experiences. Any advice?

@phtoussaint see https://github.com/ivan-kleshnin/reactive-polyglot and feel free to contribute :)


Cmake fails on Raspberry Pi because Vulkan not found.

Is there an elegant way to compile of Raspberry PI?
In the end I was able to get glfw to compile (and it runs fine on
Raspberry Pi!), but only after commenting out and removing all
references to VULKAN, vulkan, Vulkan and vk from source files
and CMake files.
Screen shot over here:
https://www.raspberrypi.org/forums/viewtopic.php?f=68&t=222264&p=1363513#p1363513

My error in building incorrectly.


Missing quotation marks in setup.js

I think there are missing quotation marks somewhere in this line. After this line, everything is registering as a string.

I can't reproduce this


add delay between seeing player and entering attack

When npc notices player there should be a little delay before entering attack.
It is too abrupt.
Add a big ! symbol above their heads.
Do a little jump (is gravity applied to NPCs?).
Start a timer in _attack_enter(), set alarm icon, and do a little jump.
In _attack(delta) check if alarm timer is > alarm time, and then enable the movement  block after rotate_toward_target(delta), here:
https://github.com/ioxu/key/blob/6e6985241c98e9ad406f4656f885995e3f22b99f/data/enemies/Enemy.gd#L200

Should probably generalise to add delay whenever a communication signal is received, too.


Build failure

Hi! I'm trying to use this to get IntelliJ's Java management to be functional on NixOS, but the Flake fails to build. Not sure if this is a bug or user error but let's see!
I followed the steps in #32 by adding this to my system Flake, then adding pkgs.intellij-idea-community to my system packages. Upon rebuilding, it errors with:
error: builder for '/nix/store/12arkfd3ssla8wqn6vqwz0b152a7nz5z-jetbrainsruntime-21.0.5-b631.28.drv' failed with exit code 1;
       last 8 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/232igh8sry2p92y331zimqil8lxdg0r5-source
       > source root is source
       > Running phase: patchPhase
       > applying patch /nix/store/881pcwinv35z9f6c5max2m7il0sxvg3n-fix-java-home-jdk10.patch
       > patching file src/hotspot/os/linux/os_linux.cpp
       > Hunk #1 FAILED at 2270.
       > 1 out of 1 hunk FAILED -- saving rejects to file src/hotspot/os/linux/os_linux.cpp.rej
       For full logs, run 'nix log /nix/store/12arkfd3ssla8wqn6vqwz0b152a7nz5z-jetbrainsruntime-21.0.5-b631.28.drv'.
error: 1 dependencies of derivation '/nix/store/hxpr9md84j5v94cvg4922vwh5saa3ml4-intellij-idea-community-2024.3.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7y4rlh2r74xwsrrn7nxfz0bf94a1884r-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pyhaffhzbna4gss6glrdxv0r7asmcr81-nixos-system-z-pc-24.11.20241203.b681065.drv' failed to build

With the log command it asks for outputting:
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/12arkfd3ssla8wqn6vqwz0b152a7nz5z-jetbrainsruntime-21.0.5-b631.28.drv^*'
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/232igh8sry2p92y331zimqil8lxdg0r5-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/881pcwinv35z9f6c5max2m7il0sxvg3n-fix-java-home-jdk10.patch
patching file src/hotspot/os/linux/os_linux.cpp
Hunk #1 FAILED at 2270.
1 out of 1 hunk FAILED -- saving rejects to file src/hotspot/os/linux/os_linux.cpp.rej

Sorry, I have not been using this flake for a while myself, so it appears to have rotted a bit. I think one of the issues is that the JBR patches should be updated for the new Java 21 -based release.
That said, I don’t currently have plans to work on this.

I see. Would you know of any way to bundle Java installs with IntelliJ on NixOS so that the the JDK manager doesn’t break on every rebuild? That is what I was trying to achieve with this flake

I was thinking of using Nix to get the path of all the Java installs packaged with IntelliJ and then put their paths in an environment variable that you can read in IntelliJ.
Regarding packaging, I’ve never done anything regarding that so I’m not sure how achievable it is. Maybe this would be better suited for home manager? I’d assume there’s a config file for Java installs in IntelliJ that it could write to

There is a config file, ~/.config/JetBrains/IntelliJIdea2024.3/options/jdk.table.xml, which you could manage with home-manager, but it’s not trivial to generate.
Alternative solution might be to add some known fixed locations for the JDKs, that you can use when adding the JDKs to IDEA:
NixOS
{
  environment.etc = {
    "jdks/openjdk21".source = pkgs.openjdk21.home;
    "jdks/openjdk23".source = pkgs.openjdk23.home;
  };
}

You can then add JDKs
home-manager
{
  xdg.dataFile = {
    "jdks/openjdk21".source = pkgs.openjdk21.home;
    "jdks/openjdk23".source = pkgs.openjdk23.home;
  };
}


TODO list

[x] #2
https://docs.google.com/document/d/1wLdZBj2-cqEvSIfLAPJUS5Q1Vy2s5jAEilK6Wso8PQc/edit

[x] 2. Choose a topic for your software package - Done

[ ] 3. Create project structure for the software package - In Progress

[x] 3.1. Create the project structure for your software package appropriate for the language you have chosen, and push it as a public repository in the UBC-MDS organization on Github.com.
If you are choosing to work in the Python programming language, there is a quickstart guide for setting up the structure for Python project, you can find it here. This time when you are prompted as whether to include GitHub Actions, say yes! In particular, choose option 3 (build + deploy).
If you are choosing to work in the R programming language use the devtools and usethis package for setting up the structure for R project.

[x] 3.2. The name of the repository should be relevant to the package/project topics.

[x] 3.3. During project creation, you will be prompted to pick a license and for now choose the MIT license. You may change it later when you learn more about licenses.

[x] 3.4. Once the projects have been created, edit CONTRIBUTORS.md to add the contributor names (the students on the teams).

[x] 3.5. Edit CONDUCT.md to include the code of conduct for contributing to your project. The intention behind creating this file is fostering a healthy and positive work dynamic. Recall that you already have done something similar in DSCI 522, and you can start with that document and adapt it for your new team. Note that when you create the project structure with the methods above, a default version of this file will be created. You may choose to use it or adapt it with appropriate attributions.

[ ] 3.6. Agree upon a collaboration strategy that describes how you will work together on this project (e.g., GitHub flow and edit CONTRIBUTING.md to reflect your strategy. Again, there will be a default version of this file. You can use it as is or adapt it with appropriate attribution. Here are some example CONTRIBUTING.md files for your reference.

Software Carpentry CONTRIBUTING.md
factory_bot_rails CONTRIBUTING.md
moby CONTRIBUTING.md

[ ] #3

a summary paragraph that describes the project at a high level
a bulleted list of the functions (and datasets if applicable) that will be included in the package (this should be a 1-2 sentence description for each function/dataset)
a paragraph describing where your packages fit into the Python ecosystem (are there any other Python packages that have the same/similar functionality? Provide links to any that do. If none exist, then clearly state this as well).

[ ] 4. Write function specifications and documentation
For this milestone you will write function documentation that will serve as specifications, but you will NOT write any code for your package functions. Specifically, set-up empty functions (with appropriate function names) containing no code in the files where you will eventually write code. Write function documentation (e.g., complete docstrings). These are the functions you wrote about in your proposal.

[ ] 5. Manage issues professionally
Manage issues effectively through project boards and milestones, make it clear who is responsible for what and what project milestone each task is associated with. In particular, create an issue for each function in the package. Each of these issues must be assigned to a single person on the team. We want all of you to get coding experience in the project and each team member should be responsible for a package function. So if you are a team of four, you’ll be writing four functions for your package and if you are a team of three, you will be writing three functions for your package.

meeting agenda today (2023-01-10):

[ ] create github issues for each task
[ ] create project board
[ ] create milestone 1
[ ] assign tasks

Moving the TDL to issues

This week's tasks are completed. Good work everyone!


Improve output generation

closes #13
In this PR:

two new output formats are implemented: gzip-jsonl and gzip-json (gzip-jsonl becomes the new default format)
when the output is a file, its path is printed to the stout at the end
better handle (unlikely) errors when closing the output file

The CI was broken by golangci-lint because of https://github.com/golangci/golangci-lint-action/issues/244
I followed the recommendation in the issue and move the linting into a distinct job.


Getting Error In application preferences within Cordova

I have downloaded from the repo the plugin and it has installed successfully via the command line, however when I copy the test code they suggest into my .js file called by Cordova in my project, it says 'plugins' is undefined. The js code can be as simple as follows and result in this error:
var appp = plugins.appPreferences;
Same issue from another link
http://stackoverflow.com/questions/27968367/getting-application-preferences-within-cordova

Cordova plugins relies on deviceready event. window.plugins is not available until this event is fired. If you're getting this error after deviceready, code and environment can help to understand what's going on.


Now waiting for 10 mins instead of 5 to fetch credentials from STS

STS throttle when the new instance is spin up causing CredentialRetrievalError.
As a symptomatic fix, we are now waiting 10 mins instead of 5 mins earlier.

LGTM


Remove unnecessary executable permissions

These have no value on non-script files (those without a “#!” “shebang” line to specify an interpreter).

Thanks!


Create Base Template and CSS

Codecov Report

Merging #8 (c0b8304) into dev (4093b13) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               dev        #8   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         4
  Lines           53        53
  Branches        11        11
=========================================
  Hits            53        53

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Wrong capitalization of API in timestamp project

Describe the bug
In this line, we use "api", while it should be "API".

If the input date string is invalid, the api returns an object having the structure { error : "Invalid Date" }

Here is the file
https://github.com/freeCodeCamp/freeCodeCamp/blob/8b5838ef233ca1d6056ad650bb73e34843499a35/curriculum/challenges/english/05-back-end-development-and-apis/back-end-development-and-apis-projects/timestamp-microservice.md#L109?plain=1
Here how it should look.

If the input date string is invalid, the API returns an object having the structure { error : "Invalid Date" }

If you would like to fix this issue, please make sure you read our guidelines for contributing, we prioritize contributors following the instructions in our guides. Join us in our chat room or the forum if you need help contributing, our moderators will guide you through this.

hi can you assign this to me .

You can open PR directly after reading the docs.

I have created a PR for the issue, here is the link : https://github.com/freeCodeCamp/freeCodeCamp/pull/48959


Multi-resource CRUD operation actions

Right now, operations across resources require one distinct updates to the store (one per resource) since the action creators only affect one slice. There should be a bulk actions extension that would let you do bulk ops across many resources. Just one idea, but something like:
{
  type: 'MULTI_READ_RESOURCES_PENDING',
  resources: {
    books: [ ... ],
    people: [ ... ]
  }
}

This would be very useful for the JSON API extension (#38), where you can do things like recieve back compound documents (and also for non-JSON API apis that just throw together a bunch of arbitrary data from all over the place in responses 😛 )

I'm going to merge this into the JSON API extension (#38)

This will prob be separate from the JSON API lib actually, since JSON API still operates on one resource at a time. The difference is this:
// JSON API
{
  type: 'READ_RESOURCES_SUCCEEDED',
  resourceName: 'books',
  resources: [{ ... }, { ... }],
  // other stuff in here
  included: [{ ... }, { ... }]
}

// Multi resources
{
  type: 'MULTI_READ_RESOURCES_SUCCEEDED',
  resources: {
    books: [{ ... }, { ... }],
    people: [{ ... }, { ... }]
  }
}

For the most part, JSON API has a format I'd recommend using on the client even when your backend doesn't send messages in the JSON API format. This is one the exception, though, because the included array is awkward (the JSON API authors now agree it should have been an object key'd off by type).
Maybe one day we'll see an updated JSON API, but for now I'll keep these separate.

People prob be like, "wat's up with this guy with his opening and closing of issues."
Well, I'm closing this one again. I have an idea for this, but it's a ways off.
tl;dr,
type: REQUEST_PENDING,
crudAction: 'read'

^ this separates the action type from the thing that is happening, which is the request. This naturally paves the way for bulk operation support.


Update the README.

Hello
I took the liberty to clean up the README and remove some of the things that were still listed as 'not working'. All of these things should now be working (or are bugged if they are not ;-).
Feel free to change things that you don't agree with or post feedback and I will update the pull request. If you know how or are up for it, it may also be a good idea to add an animated gif of the autocompletion on top of the file as an example. (It seems to be popular with most Atom packages.)

Better :+1:


[Request] install app without dependencies.

Since I find some dependencies useless, I wish there was an option to install the application without dependencies.

no problem with -i


[HW] Omer Saeed

Name: Omer Saeed
Email<EMAIL_ADDRESS>Linkedin Profile: https://www.linkedin.com/in/omermsaeed/
Attach the homework screenshots below for both step II and step III:
Step 2

Step 3

Hey Omer Saeed, great job! Congrats! Here is your badge! https://api.badgr.io/public/assertions/Cc7UgYStSBeJDb9lLZtBRg


fix: use filter queries in form controls

fixes #20

Type checking for tests is breaking for some reason. I'd love some help on how to fix it.


Updated 6.8[6.8.3]

new version based on 6.8.2 that includes the following fixes:

OOM
HPE hardware wdog
Azure download speed

Is there some additional commit to get the code into vendor missing?
(Did each PR have only one commit?)

Seems, we also need https://github.com/lf-edge/eve/pull/2163, https://github.com/lf-edge/eve/pull/2170 and https://github.com/lf-edge/eve/pull/2232


change modification_info format

As per https://github.com/yeastrc/limelight-import-conga/issues/2
Change modification format 1[mass1, mass2] where mass1 and mass2 are associated to modifications no the n-terminal and the aa at the n-terminal to 0[mass1],1[mass2]

This has been done, closing now.


https and wss support

Is there a way we can use https and wss today using the config?
I don't think so, but maybe you can correct me :-)

@janek26 Can you elaborate more on what you are trying to achieve? Thanks!


Documentation for models should include all fields

The documentation for a submission seems to be missing a number of fields that are present on the object. A quick comparison between that page and a vars() call shows these missing fields.

is_self
link_flair_text
selftext_html
gilded
url
saved
over_18
suggested_sort
visited
downs
author
spoiler
edited
media_embed
domain
clicked
secure_media_embed
thumbnail
contest_mode
num_comments
report_reasons
archived
secure_media
mod_reports
post_hint
created
link_flair_css_class
approved_by
quarantine
hidden
preview
id
hide_score
permalink
author_flair_css_class
created_utc
subreddit_id
likes
name
stickied
banned_by
author_flair_text
title
ups
subreddit
user_reports
selftext
media
locked
distinguished
removal_reason
score
comment_limit
num_reports

A few of them, author_flair_css_class and secure_media_embed, probably aren't worth mentioning, but many of the others should at least be listed. As a developer just getting into the api, I feel frustrated having to google or guess the field names that I'm sure must exist.

Could you please open a pull request to add them?

It looks like the docs are built from the code comments. I'm guessing these fields are populated directly from the json response and there would be no easy way to auto-generate the docs. It would be a bit redundant to just manually add them at the top of the doc file since there would be a lot of duplication between this, the comment model and probably several more.
I can't seem to figure out the doc building code, would it be possible to add overrides somewhere that obey the same inheritance rules as the rest of the comments?

Yes the documentation is built from the code comments. And yes, these fields are dynamic from Reddit's response, which in itself is not documented -- otherwise that documentation would be linked to already.
I'm not sure what you mean by overrides. Aside from writing a script that dynamically generates the string to manually update in the documentation, I don't think there will be an easy way to automate the update process. Which is why I suspect these attributes have yet to be documented in PRAW.
Also, it's important to note that depending on how an object is fetched, it has different attributes. For instance, comments as part of a submission have more attributes than comments from the inbox, and comments retrieved via reddit.comment.

By overrides I meant some way to attach more documentation to say, the EditableMixin class that could be displayed in the documents for classes that inherit that, but without actually dumping a massive amount of text in the comments of the code. Unless you think that's the way to go.
I'm willing to do some coding and documentation writing here, but this is the first time I've touched the project, so I'm leery of just brute forcing it in without knowing what it might break.

I'm okay if the code comments get really long. Having the documentation along with the code is useful.

This is still on my list of things to do, but I might not get to it for a while. Feel free to close this task.

Close. Please reopen, or simply make a PR when you get around to it. Thanks!


'default' is not exported by, even with namedExports

I have defined a custom named export like that in my rollup config
    commonjs({
      namedExports: {
        'node_modules/global/document.js': [ 'document' ]
      }
    }),

in the hope it fixed the following error but it doesn't:
~/c/videomail-client ❯❯❯ yarn test
yarn test v0.24.5
$ rollup -c env/test/rollup.config.js && cat tmp/test.js | tape-run
100% (80): src/wrappers/visuals/replay.js⚠   'default' is not exported by 'node_modules/global/document.js'
https://github.com/rollup/rollup/wiki/Troubleshooting#name-is-not-exported-by-module
commonjs-proxy:/home/michael-heuberger/code/videomail-client/node_modules/global/document.js (1:145)
1: import * as document from "/home/michael-heuberger/code/videomail-client/node_modules/global/document.js"; export default ( document && document['default'] ) || document;

Am I missing something or is this a bug?

anyone?

Duplicate of either https://github.com/rollup/rollup/issues/1408 or https://github.com/rollup/rollup-plugin-commonjs/issues/193 😅 Sorry about that

I found that sometimes it's a matter of listing it in the includes part of the config.
ran into this issue when importing React (import React from 'react') :
^@commonjs-proxy:/home/yuvilio/ws/apps/node/metalsmith/es6-scratch-notebook/node_modules/create-react-class/factory.js
default is not exported by node_modules/create-react-class/factory.js
1: import * as factory from "/home/yuvilio/ws/apps/node/metalsmith/es6-scratch-notebook/node_modules/create-react-class/factory.js"; export default ( factory && factory['default'] ) || factory;

I attempted to use the namedExports clause in a few ways but the warning kept showing. But when i added the module having the problem create-react-class into includes. the
// ...
import commonjs from 'rollup-plugin-commonjs'
// ...

// rollup props
export let baseProps = {
  format: 'iife',
  plugins: [
    commonjs({
      exclude: 'node_modules/process-es6/**',
      include: [
        'node_modules/fbjs/**',
        'node_modules/object-assign/**',
        'node_modules/react/**',
        'node_modules/react-dom/**',
        'node_modules/prop-types/**',
        'node_modules/create-react-class/**' // made that "default not exported by" error go away
      ]
    }),

  ],
};

@yuvilio  does not seem to work anymore :( seems like include does not take an array 🤔


Same variable name with 2 armas

I made a model from the HERON storage test. I changed the capacities and then added an arma for the electrical grid. I had 2 armas (one for lmp, and the other for the eletrical grid load) and trained them with the same variable name "Signal". When I ran raven inner.xml it gave me issues with a GRO_dispatch_in_Time. When I made the variable names different the model ran fine in raven.
This review should occur before any development is performed as a response to this issue.

[ ] 1. Is it tagged with a type: defect or task?
[ ] 2. Is it tagged with a priority: critical, normal or minor?
[ ] 3. If it will impact requirements or requirements tests, is it tagged with requirements?
[ ] 4. If it is a defect, can it cause wrong results for users? If so an email needs to be sent to the users.
[ ] 5. Is a rationale provided? (Such as explaining why the improvement is needed or why current code is wrong.)

For Change Control Board: Issue Closure
This review should occur when the issue is imminently going to be closed.

[ ] 1. If the issue is a defect, is the defect fixed?
[ ] 2. If the issue is a defect, is the defect tested for in the regression test system?  (If not explain why not.)
[ ] 3. If the issue can impact users, has an email to the users group been written (the email should specify if the defect impacts stable or master)?
[ ] 4. If the issue is a defect, does it impact the latest release branch? If yes, is there any issue tagged with release (create if needed)?
[ ] 5. If the issue is being closed without a pull request, has an explanation of why it is being closed been provided?

I'm of the mindset that this should be the expected behavior when using two ARMAs trained on different signals. I might need more information though.
@PaulTalbot-INL what are your thoughts on this?

The only change I would make is erroring out intelligently. The error you get is quite obscure crashes way down in inner, with Variable Groups.


++VIRAL Manahil Malik Tiktok Video Full Original Sex Video  Pakistani TikTok Star Minahil Malik Nazeba Leaked Video Viral On Social Media X TikTok Trending

17 seconds ago-L𝚎aked Video Minahil Malik Original Video Viral Video L𝚎aked on X Twitter Telegram
Watch 🟢 ➤ ➤ ➤ 🌐 Click Here To link (Full Viral Video Link)
🔴 ➤►DOWNLOAD👉👉 (Full Viral Video Link)
Watch 🟢 ➤ ➤ ➤ 🌐 Click Here To link (Full Viral Video Link)
🔴 ➤►DOWNLOAD👉👉 (Full Viral Video Link)
Minahil Malik Original Video video took the internet by storm and amazed viewers on various social media platforms. Minahil Malik, a young and talented digital creator, recently became famous thanks to this interesting video.


Electrical.Machines.SpacePhasors.Components.Rotator: wrong current balance

Reported by AHaumer on 24 Nov 2008 11:10 UTC
In Electrical.Machines.SpacePhasors.Components.Rotator current balance is wrong (sign of one of the two currents)

Migrated-From: https://trac.modelica.org/Modelica/ticket/126

Comment by AHaumer on 24 Nov 2008 11:19 UTC
fixed by 44730bb938b7a1f2bae5f2b9836d7f8fba684723, 9684b743d5221135cf10c48ef969bc973dfac8f0, d1ed03c9454a8ce7da993e0b336b6e331b82c932 (maintenance) and 7b2e44562866b5d9f47a94e876238fb46a668260 (trunk)

Comment by dietmarw on 25 May 2009 09:19 UTC
Assigned to the correct milestone (so it shows up nicely).


Remove duplicate code in workspace_svg

Gets rid of more duplicated code from bad merges, and explicitly defines lastSound_ (which disappeared during a merge a year ago).

LG


[Feature Request] Firefox Addon (Unread Counter)

I just discovered Newsblur a few weeks ago and I immediately got the premium version because I really like it. However, I am missing a Firefox addon. Just a counter that indicates if there are any unread stories would already be enough. Maybe this could be added in the long run?
Thanks for considering my suggestion!

Problem is that there are two unread counts: grey and green (unread and focus). Having that much is too wide for a plugin. Other users have made things like this for Chrome, but there's nothing official. I'll leave it to others to create this plugin, as it's a bit too niche for me to work on now unless there's significant interest.
I suggest putting feature requests like this on getsatisfaction.com/newsblur, where it can get voted on.


Fix the endianness detection

The current BYTE_ORDER check is not detecting big endian correctly and test failures were observed because of this.
With this fix, all tests pass on s390x(big endian). Also this does not affect amd64 results.
Will fix https://github.com/esl/fast_pbkdf2/issues/11

@big-r81 Could you please have a look? Thank you.

Hey @namrata-ibm,
that looks promising. Now running the fast_pbkdf2 test suite successfully on s390x too.
$ ../rebar3/rebar3 as test ct
===> Verifying dependencies...
===> Analyzing applications...
===> Compiling fast_pbkdf2
===> Running Common Test suites...
%%% pbkdf2_SUITE: ................
All 16 tests passed.

@big-r81 can this be merged?

It could be merged, but I’m not the owner of the repository …

@NelsonVides ^^

Hi guys! Thanks for pinging, this looks great. Let me have a careful look in a few hours.
One comment for the moment I'd like to add is added test for the new platform, currently github actions are already running for windows and macos as support for them was added recently. Do you think you can help me out with this? :)

One comment for the moment I'd like to add is added test for the new platform, currently github actions are already running for windows and macos as support for them was added recently. Do you think you can help me out with this? :)

Sure, I (we) can try. I don't think GitHub is supporting their actions on a s390x system yet, but I'm not sure. What exactly are you thinking about?

One comment for the moment I'd like to add is added test for the new platform, currently github actions are already running for windows and macos as support for them was added recently. Do you think you can help me out with this? :)

Sure, I (we) can try. I don't think GitHub is supporting their actions on a s390x system yet, but I'm not sure. What exactly are you thinking about?

What about using something like this: https://github.com/marketplace/actions/run-on-architecture? The idea would be to run tests in this architecture too in the same way that they run for MacOS and Windows, they can be slow, this repo is for the most part pretty stable so code changes are so infrequent CI can take a bit of time :)

Hi @NelsonVides @big-r81  Yes, we can enable s390x builds to run similar steps as windows/macos using run-on-arch. Also a local run completed in 7mins, which is not very high as compared to macos build here which shows 6 mins. Please let me know if I can contribute these changes via another PR.

Hi @namrata-ibm,

Please let me know if I can contribute these changes via another PR.

yes, if you already have this in your pipeline please do 👍

Hi @NelsonVides @big-r81 Yes, we can enable s390x builds to run similar steps as windows/macos using run-on-arch. Also a local run completed in 7mins, which is not very high as compared to macos build here which shows 6 mins. Please let me know if I can contribute these changes via another PR.

That sounds just fine, exactly what we need! However I'd prefer these changes come together with this PR, as a proof that the suggested change does fix the addressed issue, to keep the repo history complete and consistent :)

@NelsonVides @big-r81 I have added s390x in GitHub Actions, Could you please check and share your thoughts?

@NelsonVides Apologies, but I am not able to see the changes requested here.. Could you please point what changes need to be done?

@NelsonVides Apologies, but I am not able to see the changes requested here.. Could you please point what changes need to be done?

Oh, sorry, misclicked something and that one wasn't published together with the review, published now 😅


[ConstraintSystem] Fix keyPath diagnostic error for value convert to contextual types

This fixes flipped types for diagnostic errors for when keyPath capabilities do not match contextual type capabilities. The fixed diagnostic will now read as:
struct S {
  var s: String
}

let kp: ReferenceWritableKeyPath<S, String>
kp = \.s   // error: key path value type 'WritableKeyPath<S, String>' cannot be converted to contextual type 'ReferenceWritableKeyPath<S, String>'

Resolves #65965.

@amritpan Great! Could you please add a test and we'd be good to go here.

@swift-ci please test


module 'pyrealsense2' has no attribute 'pipeline'

I apologize, I wasn't active here for a long time. I tested my code (Python, https://github.com/neilyoung/t265-realsense-poc-application) against the latest 2.39.0. I found some issues, for instance "context" and "pipeline" seem to be no longer attributes of pyrealsense2.
I stepped back to 2.36.0 and found everything OK as with the version 2.34.0, I tested with.
Would you mind to point me to the change here? When did it happen? How to deal with it?

Here some more information:
My OS is MacOS Catalina 10.15.7.
With 2.36.0 I get this:
Python 3.8.5 (default, Jul 21 2020, 10:48:26)
[Clang 11.0.3 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyrealsense2 as rs
>>> rs.pipeline()
<pyrealsense2.pipeline object at 0x1044ec4b0>
>>> rs.context()
<pyrealsense2.context object at 0x1044c35f0>
>>>

With 2.39.0 this:
Python 3.8.5 (default, Jul 21 2020, 10:48:26)
[Clang 11.0.3 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyrealsense2 as rs
>>> rs.pipeline()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'pyrealsense2' has no attribute 'pipeline'
>>> rs.context()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'pyrealsense2' has no attribute 'context'
>>>

Does also not work with 2.38. Has maybe to do with a changed install directory for the libs...
2.38/39 is installing to /usr/local/lib/python3.8/site-packages/pyrealsense2/
2.36 is installing to /usr/local/lib

The change happened between 2.36.0 and 2.37.0

Looks like #6820

... and definitely the "fix" proposed in #6820 does it:

Replace wrappers/python/CMakeList.txt with an older version, here 2.34.0

I don't have a good feeling with this fix, because there are a couple of changes between these two files, not just one line... Anyway, after reverting the CMakeList.txt to the 2.34.0 version everything is fine again...
The question now is: How can such a problem be unknown since month? In fact since 2.36.0 Python is dysfunctional...

Alternative approach: Use the right CMakeList.txt and change the PYTHONPATH. For instance:
Path in older versions:
export PYTHONPATH=$PYTHONPATH:/usr/local/lib

Path from 2.37.0 on (for instance):
export<EMAIL_ADDRESS>

Hey nei, I have came across an issue exactly as you did, under SDK2.38,python_version=3.8, but camera works from the source code. Besides that, I use conda to create an env,python==3.6(it only support 3.5-3.7), install it from PYPI, it can also work, see if you would have a try.

@lancetee In the end it was just a changed install directory for the libs. I reported a solution here https://github.com/IntelRealSense/librealsense/issues/7540#issuecomment-706737724.
For me that works. The PYPI is not a solution for me, because there is no package for macOS.

For me, I hade to do
import pyrealsense2.pyrealsense2 as rs

sudo make install have a wrong place for libs. Current it in dist-packages/pyrealsense2 folder, but python search in dist-packages.
Finded workaround:
/usr/lib/python3/dist-packages/pyrealsense2$ sudo cp pybackend2* ..
/usr/lib/python3/dist-packages/pyrealsense2$ sudo cp pyrealsense2* ..
For developers - I stronlgy ask to fix this.

For me, I hade to do
import pyrealsense2.pyrealsense2 as rs

I have build pyrealsense version 2.40 with Python 3.8 on a Jetson Xavier AGX and also ran into the module 'pyrealsense2' has no attribute 'pipeline' issue. The quoted hint from @MinaGabriel works for me, too. However I would like it to behave as any other module with a 'simple' import.
The following shows where everything was installed. Since I created a virtual environment it is also copying the files to the respective directory, too.
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/librealsense2.so.2.40.0
-- Installing: /usr/local/lib/librealsense2.so.2.40
-- Installing: /usr/local/lib/librealsense2.so
-- Up-to-date: /usr/local/include/librealsense2
-- Up-to-date: /usr/local/include/librealsense2/hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_options.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_context.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_serializable_device.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_pipeline.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_internal.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_types.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_sensor.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_record_playback.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_device.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_frame.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_processing.hpp
-- Up-to-date: /usr/local/include/librealsense2/hpp/rs_export.hpp
-- Up-to-date: /usr/local/include/librealsense2/rs_advanced_mode.hpp
-- Up-to-date: /usr/local/include/librealsense2/rs.hpp
-- Up-to-date: /usr/local/include/librealsense2/rsutil.h
-- Up-to-date: /usr/local/include/librealsense2/h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_record_playback.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_types.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_processing.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_config.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_sensor.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_advanced_mode_command.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_internal.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_device.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_option.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_frame.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_context.h
-- Up-to-date: /usr/local/include/librealsense2/h/rs_pipeline.h
-- Up-to-date: /usr/local/include/librealsense2/rs.h
-- Up-to-date: /usr/local/include/librealsense2/rs_advanced_mode.h
-- Installing: /usr/local/lib/cmake/realsense2/realsense2Targets.cmake
-- Installing: /usr/local/lib/cmake/realsense2/realsense2Targets-noconfig.cmake
-- Installing: /usr/local/lib/cmake/realsense2/realsense2Config.cmake
-- Installing: /usr/local/lib/cmake/realsense2/realsense2ConfigVersion.cmake
-- Installing: /usr/local/lib/pkgconfig/realsense2.pc
-- Installing: /usr/local/lib/librealsense-file.a
-- Installing: /home/xavier/venv-python38/road-detection/lib/python3.8/site-packages/pyrealsense2/pybackend2.cpython-38-aarch64-linux-gnu.so.2.40.0
-- Installing: /home/xavier/venv-python38/road-detection/lib/python3.8/site-packages/pyrealsense2/pybackend2.cpython-38-aarch64-linux-gnu.so.2
-- Installing: /home/xavier/venv-python38/road-detection/lib/python3.8/site-packages/pyrealsense2/pybackend2.cpython-38-aarch64-linux-gnu.so
-- Installing: /home/xavier/venv-python38/road-detection/lib/python3.8/site-packages/pyrealsense2/pyrealsense2.cpython-38-aarch64-linux-gnu.so.2.40.0
-- Installing: /home/xavier/venv-python38/road-detection/lib/python3.8/site-packages/pyrealsense2/pyrealsense2.cpython-38-aarch64-linux-gnu.so.2.40
-- Set runtime path of "/home/xavier/venv-python38/road-detection/lib/python3.8/site-packages/pyrealsense2/pyrealsense2.cpython-38-aarch64-linux-gnu.so.2.40.0" to ""
-- Installing: /home/xavier/venv-python38/road-detection/lib/python3.8/site-packages/pyrealsense2/pyrealsense2.cpython-38-aarch64-linux-gnu.so
-- Installing: /usr/local/lib/cmake/pyrealsense2/pyrealsense2Targets.cmake
-- Installing: /usr/local/lib/cmake/pyrealsense2/pyrealsense2Targets-noconfig.cmake
-- Installing: /usr/local/lib/cmake/pyrealsense2/pyrealsense2Config.cmake
-- Installing: /usr/local/lib/cmake/pyrealsense2/pyrealsense2ConfigVersion.cmake
-- Installing: /usr/local/lib/librealsense2-gl.so.2.40.0
-- Installing: /usr/local/lib/librealsense2-gl.so.2.40
-- Set runtime path of "/usr/local/lib/librealsense2-gl.so.2.40.0" to ""
-- Installing: /usr/local/lib/librealsense2-gl.so
-- Up-to-date: /usr/local/include/librealsense2-gl/rs_processing_gl.h
-- Up-to-date: /usr/local/include/librealsense2-gl/rs_processing_gl.hpp
-- Installing: /usr/local/lib/cmake/realsense2-gl/realsense2-glTargets.cmake
-- Installing: /usr/local/lib/cmake/realsense2-gl/realsense2-glTargets-noconfig.cmake
-- Installing: /usr/local/lib/cmake/realsense2-gl/realsense2-glConfig.cmake
-- Installing: /usr/local/lib/cmake/realsense2-gl/realsense2-glConfigVersion.cmake
-- Installing: /usr/local/lib/pkgconfig/realsense2-gl.pc
-- Installing: /usr/local/bin/rs-hello-realsense
-- Set runtime path of "/usr/local/bin/rs-hello-realsense" to ""
-- Installing: /usr/local/bin/rs-software-device
-- Set runtime path of "/usr/local/bin/rs-software-device" to ""
-- Installing: /usr/local/bin/rs-capture
-- Set runtime path of "/usr/local/bin/rs-capture" to ""
-- Installing: /usr/local/bin/rs-callback
-- Set runtime path of "/usr/local/bin/rs-callback" to ""
-- Installing: /usr/local/bin/rs-save-to-disk
-- Set runtime path of "/usr/local/bin/rs-save-to-disk" to ""
-- Installing: /usr/local/bin/rs-multicam
-- Set runtime path of "/usr/local/bin/rs-multicam" to ""
-- Installing: /usr/local/bin/rs-pointcloud
-- Set runtime path of "/usr/local/bin/rs-pointcloud" to ""
-- Installing: /usr/local/bin/rs-align
-- Set runtime path of "/usr/local/bin/rs-align" to ""
-- Installing: /usr/local/bin/rs-align-advanced
-- Set runtime path of "/usr/local/bin/rs-align-advanced" to ""
-- Installing: /usr/local/bin/rs-sensor-control
-- Set runtime path of "/usr/local/bin/rs-sensor-control" to ""
-- Installing: /usr/local/bin/rs-measure
-- Set runtime path of "/usr/local/bin/rs-measure" to ""
-- Installing: /usr/local/bin/rs-depth
-- Set runtime path of "/usr/local/bin/rs-depth" to ""
-- Installing: /usr/local/bin/rs-color
-- Set runtime path of "/usr/local/bin/rs-color" to ""
-- Installing: /usr/local/bin/rs-distance
-- Set runtime path of "/usr/local/bin/rs-distance" to ""
-- Installing: /usr/local/bin/rs-post-processing
-- Set runtime path of "/usr/local/bin/rs-post-processing" to ""
-- Installing: /usr/local/bin/rs-record-playback
-- Set runtime path of "/usr/local/bin/rs-record-playback" to ""
-- Installing: /usr/local/bin/rs-motion
-- Set runtime path of "/usr/local/bin/rs-motion" to ""
-- Installing: /usr/local/bin/rs-gl
-- Set runtime path of "/usr/local/bin/rs-gl" to ""
-- Installing: /usr/local/bin/rs-pose
-- Set runtime path of "/usr/local/bin/rs-pose" to ""
-- Installing: /usr/local/bin/rs-pose-predict
-- Set runtime path of "/usr/local/bin/rs-pose-predict" to ""
-- Installing: /usr/local/bin/rs-pose-and-image
-- Set runtime path of "/usr/local/bin/rs-pose-and-image" to ""
-- Installing: /usr/local/bin/rs-trajectory
-- Set runtime path of "/usr/local/bin/rs-trajectory" to ""
-- Installing: /usr/local/bin/rs-ar-basic
-- Set runtime path of "/usr/local/bin/rs-ar-basic" to ""
-- Installing: /usr/local/bin/rs-ar-advanced
-- Set runtime path of "/usr/local/bin/rs-ar-advanced" to ""
-- Installing: /usr/local/bin/rs-tracking-and-depth
-- Set runtime path of "/usr/local/bin/rs-tracking-and-depth" to ""
-- Installing: /usr/local/bin/rs-hdr
-- Set runtime path of "/usr/local/bin/rs-hdr" to ""
-- Installing: /usr/local/bin/rs-convert
-- Set runtime path of "/usr/local/bin/rs-convert" to ""
-- Installing: /usr/local/bin/rs-enumerate-devices
-- Set runtime path of "/usr/local/bin/rs-enumerate-devices" to ""
-- Installing: /usr/local/bin/rs-fw-logger
-- Set runtime path of "/usr/local/bin/rs-fw-logger" to ""
-- Installing: /usr/local/bin/rs-terminal
-- Set runtime path of "/usr/local/bin/rs-terminal" to ""
-- Installing: /usr/local/bin/rs-record
-- Set runtime path of "/usr/local/bin/rs-record" to ""
-- Installing: /usr/local/bin/rs-fw-update
-- Set runtime path of "/usr/local/bin/rs-fw-update" to ""
-- Installing: /usr/local/bin/rs-data-collect
-- Set runtime path of "/usr/local/bin/rs-data-collect" to ""
-- Installing: /usr/local/bin/realsense-viewer
-- Set runtime path of "/usr/local/bin/realsense-viewer" to ""
-- Installing: /usr/local/bin/rs-depth-quality
-- Set runtime path of "/usr/local/bin/rs-depth-quality" to ""
-- Installing: /usr/local/bin/rs-rosbag-inspector
-- Set runtime path of "/usr/local/bin/rs-rosbag-inspector" to ""
-- Installing: /usr/local/bin/rs-benchmark
-- Set runtime path of "/usr/local/bin/rs-benchmark" to ""
-- Installing: /usr/local/lib/libfw.a

I keep you updated once I figure it out.

In my case also the following is an option:
export PYTHONPATH=$PYTHONPATH:/home/xavier/venv-python38/road-detection/lib/python3.8/site-packages/pyrealsense2/

Please note that I have installed it within a virtual environment.

Same problem here.

For me, I hade to do
import pyrealsense2.pyrealsense2 as rs

This worked for me. I am using RPi3+ with Realsense d435i. Thanks.

For me, I hade to do
import pyrealsense2.pyrealsense2 as rs

This worked for me . But i worked on it a bit on why we had to do this. Like @TDHster  mentioned, python looks  in dist-packages/pyrealsense2.  this pyrealsense2 folder has the .so objects. But to be able to treat this as a library package,  copy the init.py file from librealsense wrapper.
sudo cp librealsense/wrappers/python/pyrealsense2/__init__.py     /usr/local/lib/python3.6/dist-packages/pyrealsense/ . After doing this one can directly do import pyrealsense2 as rs
Note: I had pyrealsense2 folder present at /usr/local/lib/python3.6/dist-packages after its been built

@07hokage 's solution worked for me.
It would be great if __init__.py file also gets copied to the target directory when make install is executed.

For me, I hade to do
import pyrealsense2.pyrealsense2 as rs

Worked for me too, as of this date. Same issue with the dist-packages/pyrealsense2/*.so
For those who are having difficulty in finding the location of their pyrealsense2*.so, here's a simple shell one-liner
find / -name "*pyrealsense2*"
Few locaitons are bound to be inaccessible if executed without sudo, and that's completely fine,

I encountered the same situation.
However,  I have a problem that I do not have the file __init__.py in librealsense/wrappers/python/pyrealsense2/
So,  what should I do?

For me, I hade to do
import pyrealsense2.pyrealsense2 as rs

This worked for me . But i worked on it a bit on why we had to do this. Like @TDHster mentioned, python looks in dist-packages/pyrealsense2. this pyrealsense2 folder has the .so objects. But to be able to treat this as a library package, copy the init.py file from librealsense wrapper.
sudo cp librealsense/wrappers/python/pyrealsense2/__init__.py /usr/local/lib/python3.6/dist-packages/pyrealsense/ . After doing this one can directly do import pyrealsense2 as rs
Note: I had pyrealsense2 folder present at after its been built/usr/local/lib/python3.6/dist-packages


Issues When Using Compiled Binaries

After compiling TRTorch on an x86 machine, and copying the outputted binaries to another machine, then using them in an include directory, I get the following error when compiling my code:
/usr/bin/ld: warning: libnvinfer.so.7, needed by /home/caelin/Github/br-core/ros2_ws/src/br-detection/include/trtorch/lib/libtrtorch.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libopencv_imgcodecs.so.3.2, needed by /opt/ros/eloquent/lib/libcv_bridge.so, may conflict with libopencv_imgcodecs.so.4.2
/usr/bin/ld: warning: libopencv_imgproc.so.3.2, needed by /opt/ros/eloquent/lib/libcv_bridge.so, may conflict with libopencv_imgproc.so.4.2
/usr/bin/ld: warning: libopencv_core.so.3.2, needed by /opt/ros/eloquent/lib/libcv_bridge.so, may conflict with libopencv_core.so.4.2
/usr/bin/ld: warning: libopencv_calib3d.so.3.2, needed by /opt/ros/eloquent/lib/libimage_geometry.so, may conflict with libopencv_calib3d.so.4.2
/home/caelin/Github/br-core/ros2_ws/src/br-detection/include/trtorch/lib/libtrtorch.so: undefined reference to `createInferBuilder_INTERNAL'
/home/caelin/Github/br-core/ros2_ws/src/br-detection/include/trtorch/lib/libtrtorch.so: undefined reference to `createInferRuntime_INTERNAL'

Do you have TensorRT installed on your target machine and the library path is an argument to the compiler? TRTorch doesn't statically link TensorRT so you will need that installed and available as well. The opencv issues aren't TRTorch issues but they probably have something to do with multiple opencv versions being installed/used and in the library path for the compiler.

TensorRT is installed already. I'm guessing it's something to do with opencv versions as well

It says libnvinfer.so is not found -- this is the error. Make sure it's in your LD_LIBRARY_PATH


Bug fix 107 undo redo

Undo/Redo command bugfix, should now affect all valid commands
Update UG and DG to reflect current implementation of Undo/redo
Closes #154, closes #142, closes #138, closes #135, closes #133, closes #107
Big thanks to Vansh for coming up with the main idea and also finding the flaw in my draft

The undo/redo seems almost complete. But it seems #142 still causes problems. A delsc with a single parameter is undone properly, but delsc with multiple parameters didn't seem to be undone when I tested it.
Maybe @alvinlim277 do you have any ideas what could be causing this? Since the behaviour seems unique to deleting multiple shortcuts.

The undo/redo seems almost complete. But it seems #142 still causes problems. A delsc with a single parameter is undone properly, but delsc with multiple parameters didn't seem to be undone when I tested it. Maybe @alvinlim277 do you have any ideas what could be causing this? Since the behaviour seems unique to deleting multiple shortcuts.

@vansh284 I tested it locally at my side, and it works as intended (if I am not mistaken by the intended behaviour). Can you elaborate more on the test you conducted, and the issue faced?

The undo/redo seems almost complete. But it seems #142 still causes problems. A delsc with a single parameter is undone properly, but delsc with multiple parameters didn't seem to be undone when I tested it.
Maybe @alvinlim277 do you have any ideas what could be causing this? Since the behaviour seems unique to deleting multiple shortcuts.

From my knowledge moving model.commit() out of the loop in DeleteShortcutCommand::execute should have fixed the problem, not sure what's still causing it...

I tested the bug more extensively and found out the problem was not with multiple shortcuts, it was when I tried to delete a shortcut immediately after doing an undo command. I've identified the problem. @Kokseng1 could you make the changes?

I tested the bug more extensively and found out the problem was not with multiple shortcuts, it was when I tried to delete a shortcut immediately after doing an undo command.

I can't seem to recreate the bug, maybe you can provide the steps to encounter the bug?

I can't seem to recreate the bug, maybe you can provide the steps to encounter the bug?

Yes sure, the bug occurs if for example.

addsc sc/del kw/delete
del 1
undo
delsc sc/del
undo
del 1 -> Expected behaviour: del works since we undoed delsc, however, del is an "unknown command"

The fix I mentioned earlier should resolve the problem.


Update device.py

Changes "import distutils" to "import distutils.util" to overcome error below in python 3.5
File "/skybellpy/device.py", line 206, in do_not_disturb
return bool(distutils.util.strtobool(str(self._settings_json.get(
AttributeError: module 'distutils' has no attribute 'util'
Discussed at https://github.com/home-assistant/home-assistant/issues/13133

Coverage remained the same at 100.0% when pulling ffd6fa2d856bc314983f7d9858a5c39b6faa836b on austinmroczek:patch-1 into a0f63d92307e68224bacf4f4bf44524a9ebf94e7 on MisterWil:master.

This failed the Travis CI build for Python 3.4.2. Would keeping line 2 as it was and adding this line help?
from distutils import utils

Closing as I have now fixed this issue along with the test and tox failures. Thanks!


Change mime type of .wasm files served from the preview CDN

To avoid warnings in the browser console log, we should serve .wasm files as application/wasm instead of application/octet-stream.

This was done and already working:

It seems it's not a global setting of the server:

It might take some time to propagate, but this is the result I am getting:

Can you try clearing your disk cache and see if it works?

Yes, a cache clear did it!


remove safari pinned tab

👷 Deploy Preview for peaceful-meerkat-940447 processing.

Name
Link

🔨 Latest commit
e68cc08d0f285a73250a00a1b5e124f28aad79c6

🔍 Latest deploy log
https://app.netlify.com/sites/peaceful-meerkat-940447/deploys/633d7f623109680009f12df4


Add a retry with backoff

In high concurrency setups ECR logins will often be rate limited. This adds a few retries with incrementing sleep in between them.
Closes #7.

👍

Forgot about this. Merging!


Further TCK updates

I have redone the TCK harness to come up with one approach to have the TCK run the required tests with a container profile that delegates to an arquillian based tck extension artifact a vendor must provide, for example:
mvn -Pcontainer -Dtck.container.groupId=org.wildfly.swarm -Dtck.container.artifactId=jwt-auth-tck -Dtck.container.version=1.0-SNAPSHOT test

I'm merging as is, knowing that there's still work to do as far as dependencies go, e.g. no web.xml


fix: ensure setting operator to None (#16371)

SUMMARY
This Pull request fixes issue #16371
TESTING INSTRUCTIONS
Retry replicate bug in issue #16371 and check that bug is not appearing anymore
ADDITIONAL INFORMATION

[X] Has associated issue: #16371
[X] Required feature flags: ENABLE_TEMPLATE_PROCESSING
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

thanks for the contribution! @villebro can you take a quick look? 🙏


Deployment Considerations Clarifications

In Deployment Considerations section > Secure Time Source > Changes to all ECUs  - states the following: At build time, ECUs will receive an attestation of the current time as downloaded from the Time Server..
Two points.

What is the definition of build time -- build code, ECU assembly, vehicle assembly, port, dealer?
If ECUs must receive an attestation of the current time, then this seems to conflict with the Standard Section <IP_ADDRESS>, which allows for a Secondary to not receive the latest attested time due to not [having] the capacity to verify a time message.

Proposals:

Clarify the definition of build time to an assumed state of the ECU / Vehicle -- e.g., after the vehicle has been assembled
Modify the Deployment Considerations to the following: After the vehicle has been assembled, ECUs **may** receive an attestation of the current time as downloaded from the Time Server.

Closed via merging of PR #52


Document

Codecov Report

Merging #4 (1b85d33) into main (3604bf0) will increase coverage by 1.10%.
The diff coverage is 77.41%.

@@             Coverage Diff              @@
##               main       #4      +/-   ##
============================================
+ Coverage     78.94%   80.05%   +1.10%
+ Complexity      316      306      -10
============================================
  Files            22       22
  Lines           741      732       -9
============================================
+ Hits            585      586       +1
+ Misses          156      146      -10

Impacted Files
Coverage Δ
Complexity Δ

src/Bridge/Doctrine/ESQL.php
92.66% <66.66%> (ø)
55.00 <6.00> (ø)

.../Bridge/ApiPlatform/DataProvider/DataPaginator.php
75.70% <75.00%> (+5.61%)
40.00 <29.00> (-10.00)
:arrow_up:

...piPlatform/DataProvider/CollectionDataProvider.php
84.00% <100.00%> (ø)
8.00 <0.00> (ø)

src/ESQL.php
79.31% <100.00%> (ø)
14.00 <5.00> (ø)

...idge/ApiPlatform/DataProvider/ItemDataProvider.php
94.44% <0.00%> (+0.32%)
5.00% <0.00%> (ø%)

...dge/ApiPlatform/Metadata/FilterMetadataFactory.php
100.00% <0.00%> (+9.09%)
6.00% <0.00%> (ø%)

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 7849410...1b85d33. Read the comment docs.


fixed regression component control destructor

This fixes a regression introduced in #1803 where the component's
control destroy method isn't called anymore when the component is
removed from the DOM.

Thank you. I don't know how I missed that. I will get a 2.2.8 out shortly.

That would be great. I just updated my build scenario to grab npm packages during build, instead of checking them into source control, so I'm tied to release packages at the moment.


SQL Server v2019 issues

This proc is awesome as I've used it in the past; however, seems to have issues with SQL Server v2019. (I am using an unaltered version of sp_generate_merge).  Any assistance is greatly appreciated.
Output from sp_generate_merge
I have 16 rows in the table (see Table Definition section below) and the output of the script does not have data from the table in the USING (VALUES... section.  The script does however perform an output in the grid that does represent the data.
--MERGE generated by 'sp_generate_merge' stored procedure, Version 0.9
--Originally by Vyas (http://vyaskn.tripod.com): sp_generate_inserts (build 22)
--Adapted for SQL Server 2008 by Daniel Nolan (http://danere.com)

SET NOCOUNT ON

SET IDENTITY_INSERT [Status] ON

MERGE INTO [Status] AS Target
USING (VALUES
) AS Source ([Id],[Name])
ON (Target.[Id] = Source.[Id])
WHEN MATCHED AND (Target.[Name] <> Source.[Name]) THEN
 UPDATE SET
 [Name] = Source.[Name]
WHEN NOT MATCHED BY TARGET THEN
 INSERT([Id],[Name])
 VALUES(Source.[Id],Source.[Name])
WHEN NOT MATCHED BY SOURCE THEN
 DELETE;

GO
DECLARE @mergeError int
 , @mergeCount int
SELECT @mergeError = @@ERROR, @mergeCount = @@ROWCOUNT
IF @mergeError != 0
 BEGIN
 PRINT 'ERROR OCCURRED IN MERGE FOR [Status]. Rows affected: ' + CAST(@mergeCount AS VARCHAR(100)); -- SQL should always return zero rows affected
 END
ELSE
 BEGIN
 PRINT '[Status] rows affected by MERGE: ' + CAST(@mergeCount AS VARCHAR(100));
 END
GO

SET IDENTITY_INSERT [Status] OFF
GO
SET NOCOUNT OFF
GO

Table definition
CREATE TABLE [dbo].[Status](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Name] [varchar](255) NOT NULL,
 CONSTRAINT [PK_Status] PRIMARY KEY CLUSTERED
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY],
 CONSTRAINT [UK_Status_Name] UNIQUE NONCLUSTERED
(
	[Name] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO

Sample Data in Status Table
The sample data below is the actual data and it appeared in the Results tab of SSMS, but I thought it should appear in the output script in the VALUES section.
  (-1,'a')
 ,(0,'b')
 ,(1,'c')
 ,(2,'d')
 ,(3,'e')
 ,(4,'f')
 ,(5,'g')
 ,(6,'h')
 ,(7,'i')
 ,(8,'j')
 ,(9,'k')
 ,(10,'l')
 ,(11,'m')
 ,(12,'n')
 ,(13,'o')
 ,(14,'p')

@include_values not a parameter?
I thought that @include_values  would be needed, but its default is 1.  I was surprised to see that when I tried to use:
sp_generate_merge @table_name = 'Status', @include_values = 1 that the following error occurred: @include_values is not a parameter for procedure sp_generate_merge.
Version
Microsoft SQL Server 2019 (RTM-CU15) (KB5008996) - 15.0.4198.2 (X64)   Jan 12 2022 22:30:08   Copyright (C) 2019 Microsoft Corporation  Developer Edition (64-bit) on Windows 10 Pro for Workstations 10.0  (Build 19044: ) (Hypervisor)

UPDATE
I removed the procedure from master into my user database and the issues went away.

I tried reproducing this with your table/data on SQL 15.0.4236.7 but was unable to do so.
The @include_values param was added before SQL 2019, so it may be worth installing the latest version to rule that out.
Other possibilities I can think of: a bug associated with the default value for QUOTED_IDENTIFIER, ANSI_NULLS and ANSI_PADDING. If you could script out the CREATE DATABASE statement for your master DB (e.g. using SSMS), I'll to reproducing it again.

Closing as I was unable to reproduce and a workaround is available


total_size is not the number of nodes

total_size returns the hashcons size, but that's not always the same as the number of nodes. This can be verified with replacing total_size with the following:
pub fn total_size(&self) -> usize {
    // self.memo.len()
    let mut cnt = 0;
    for c in self.classes() {
        for _n in &c.nodes {
            cnt += 1;
        }
    }

    assert_eq!(cnt, self.memo.len());

    return cnt;
}

I suspect this is because we don't remove pruned nodes from the hashcons.

I think this is the intended behavior, since you can always calculated the "pruned" size as you did above, but there's no other way to get the memo size.
Do you think we should change that?

At least the doc should be changed. Besides that, removing pruned nodes from the hash cons could have benefits. I've seen the hash cons holding at least 2X actual nodes.

Slightly off-topic: I've been wondering whether pruning without actually deleting nodes might be more efficient? Otherwise on multiple iterations the same node might be added and then pruned back over and over again? What if some nodes/classes are just tagged as being pruned and ignored by most operations -- except adding the pruned node again would simply change its tag?

Closing, this is now reflected in the docs.


Checkpoint {input} contains wrong data

Snakemake version
5.32.0
Describe the bug
When accessing the same checkpoint from multiple rules, the pseudo input is not reliably replaced with the output of the checkpoint function.
This happens only with run: rules, not with shell: rules. I was only able to trace this to the allowed_rules option being created for run: rules because is_updated appears to be not set for the run: rule. I did manage to get a decent MWE ready though:
Minimal example
The below should produce
Bin bins/B.fasta contains:
s1.B.fasta s2.B.fasta

Bin bins/A.fasta contains:
s1.A.fasta s2.A.fasta

instead it produces
Bin bins/B.fasta contains:
s1.bins.txt

Bin bins/A.fasta contains:
s1.bins.txt

(swap out shell and run to see it change)
samples = ['s1', 's2']

rule all:
    input:
        "done"

checkpoint bin_sample:
    "Creates a list of bins and files with bin data"
    output:
        "{sample}.bins.txt"
        # also {sample}.{bin}.fasta for each bin
    shell:
        "echo -e 'A\nB' > {output};"
        "mkdir -p bins;"
        "touch {wildcards.sample}.A.fasta;"
        "touch {wildcards.sample}.B.fasta;"

def get_bins(**wildcards):
    "Reads the bins from one sample"
    with checkpoints.bin_sample.get(**wildcards).output[0].open() as f:
        return [line.strip() for line in f]

def get_all_bins(samples):
    "Merges the bins from multiple samples"
    return list(set([
        bin
        for sample in samples
        for bin in get_bins(sample=sample)
    ]))

rule make_bin:
    output:
        "bins/{bin}.fasta"
    input:
        lambda wc: ["{sample}.{bin}.fasta".format(bin=wc.bin, sample=sample)
                    for sample in samples
                    if wc.bin in get_bins(sample=sample)]
    run:
        with open(output[0], "w") as outf:
            outf.write(" ".join(input))
#    shell:
#        "echo {input} > {output}"

rule make_bins:
    output:
        touch("done")
    input:
        lambda wc: ["bins/{}.fasta".format(bin) for bin in get_all_bins(samples)]
    shell:
        "for bin in {input}; do echo Bin $bin contains:; cat $bin; echo; done;"

Additional context
Add any other context about the problem here.

@jmeppley Do you have an idea what might be different between shell: and run: that causes this?

@jmeppley Do you have an idea what might be different between shell: and run: that causes this?

Possibly related #55

Possibly related #55

Ok, so the difference is that run: is executed in a subprocess, for which Snakemake is launched again. That's also why run: unexpectedly is a lot slower than shell: for simple localrules. In both cases, the intermediate job's is_update flag is false. The code launching the sub-snakemake for run: rules thinks that this means it will not need any other rule, so the checkpoint will be missing when it's looking for dependencies and the checkpoint proxy file is not resolved into the real files.

Ok, so the difference is that run: is executed in a subprocess, for which Snakemake is launched again. That's also why run: unexpectedly is a lot slower than shell: for simple localrules. In both cases, the intermediate job's is_update flag is false. The code launching the sub-snakemake for run: rules thinks that this means it will not need any other rule, so the checkpoint will be missing when it's looking for dependencies and the checkpoint proxy file is not resolved into the real files.

I also seem to be getting a similar error when running a workflow that evaluates the same checkpoint repeatedly when using script or notebook. But I only get the error when running the Snakefile on a slurm cluster! When I run it all on one node (without farming out to the slurm cluster), it works fine.

I think I'm also affected by this, and like @jbloom , this problem appears to me when running on a PBS Pro cluster.
My example looks like this:

checkpoint get_file_associations:
    output: "results/file_associations.txt"
    shell:
        """
        echo a.txt b.txt c.txt > {output}
        echo d.txt e.txt f.txt >> {output}
        """

def parse_file_associations(wildcards):
    with checkpoints.get_file_associations.get().output[0].open() as f:
        # read until you get the matching wildcard.stage
        for line in f:
            src1, src2, datfile = line.rstrip().split()
            if datfile == wildcards.datfile:
                return [src1, src2]
    return None

def get_all_datfiles(wildcards):
    datfiles = []
    with checkpoints.get_file_associations.get().output[0].open() as f:
        for line in f:
            src1, src2, datfile = line.rstrip().split()
            datfiles.append(f"results/{datfile}")
    return datfiles

rule produce_one_dat:
    input: parse_file_associations
    output: "results/{datfile}"
    shell:
        """
        echo {input} > {output}
        """

rule produce_all_dats:
    input: get_all_datfiles

echo "this is a" > a.txt
echo "this is b" > b.txt
echo "this is d" > d.txt
echo "this is e" > e.txt

snakemake --profile ./pbs_pro produce_all_dats

Results in the contents of c.txt of
results/file_associations.txt

But if I run it locally:
snakemake --cores=1 produce_all_dats

I get the contents of c.txt correctly, ie
a.txt b.txt

Perhaps I'm not understanding the checkpoints correctly, but I'm struggling of finding a way to  re-write this correctly.

I think I'm having a similar issue, if not the same. When using run: (it doesn't happen with shell:), the input variable contains the checkpoint output filename which I use to form the path to the input files instead of the actual input files (exactly the same which is described in the issue). I mean (it is a MWE very similar to the one provided by @epruesse and very also based on my pipeline):
rule all:
  input: ["/tmp/C.output"]

checkpoint A:
  input: "/tmp/A"
  output: f="/tmp/A.output"
  shell: "for i in $(seq 1 3); do echo 'content' > /tmp/file$i; done; echo -e 'file_1\nfile_2\nfile_3' > {output}"

def get_n_from_A():
    n = []
    with checkpoints.A.get().output.f.open() as f:
        for line in f:
            n.append(line.strip().split("_")[-1])  # obtain just the number
    return n

rule B:
  input: lambda wildcards: [f"/tmp/file{n}" for n in get_n_from_A()]
  output: "/tmp/B.output.{n}"
#  shell: "echo {input}; touch {output}" # It works as expected: prints "/path/to/file1 /path/to/file2 /path/to/file3"
  run:
    print(input) # It prints "A.output" instead of "/path/to/file1 /path/to/file2 /path/to/file3"

    with open(output[0], "w") as outf:
        outf.write("content")

rule C:
  input: lambda wildcards: [f"/tmp/B.output.{n}" for n in get_n_from_A()]
  output: "/tmp/C.output"
  run:
    print(f"input: {input}")
    shell(f"touch {output}")

Tested on version 6.13.1. Is this issue going to be solved?

samples = ['s1', 's2']

rule all:
    input:
        "done"

checkpoint bin_sample:
    "Creates a list of bins and files with bin data"
    output:
        "{sample}.bins.txt"
        # also {sample}.{bin}.fasta for each bin
    shell:
        "echo -e 'A\nB' > {output};"
        "mkdir -p bins;"
        "touch {wildcards.sample}.A.fasta;"
        "touch {wildcards.sample}.B.fasta;"

def get_bins(**wildcards):
    "Reads the bins from one sample"
    with checkpoints.bin_sample.get(**wildcards).output[0].open() as f:
        return [line.strip() for line in f]

def get_all_bins(samples):
    "Merges the bins from multiple samples"
    return list(set([
        bin
        for sample in samples
        for bin in get_bins(sample=sample)
    ]))

rule make_bin:
    output:
        "bins/{bin}.fasta"
    input:
        lambda wc: ["{sample}.{bin}.fasta".format(bin=wc.bin, sample=sample)
                    for sample in samples
                    if wc.bin in get_bins(sample=sample)]
    run:
        with open(output[0], "w") as outf:
            outf.write(" ".join(input))
#    shell:
#        "echo {input} > {output}"

rule make_bins:
    output:
        touch("done")
    input:
        lambda wc: ["bins/{}.fasta".format(bin) for bin in get_all_bins(samples)]
    shell:
        "for bin in {input}; do echo Bin $bin contains:; cat $bin; echo; done;"

I ran this on both 5.32.0 and 7.1.1.
Can confirm I get the problematic output the author said, but the problem seems to be fixed in 7.1.1.
Close?

I also tested my example above and can confirm that it also works now in 7.2.0. I'm happy if this is closed too.


Dehydrated doesn't work in pfSense 2.4 branch?

Hi,
I've recently updated my pfSense 2.3 to the new branch. And as with all good things something MUST break down, LetsEncrypt/Dehydrated seems to be the Darwin victim... :)
See error below. This is a brand new git clone.
[2.4.1-RELEASE][admin@pfSense]/usr/local/src/dehydrated: ./dehydrated -c -d mydomain.com -d webmail.mydomain.com -d fw.mydomain.com -d autodiscover.mydomain.com -d domoticz.mydomain.com
INFO: Using main config file /etc/dehydrated/config
Processing mydomain.com with alternative names: webmail.mydomain.com fw.mydomain.com autodiscover.mydomain.com domoticz.mydomain.com

Signing domains...
Creating new directory /etc/dehydrated/certs/mydomain.com ...
Creating chain cache directory /etc/dehydrated/chains
Generating private key...
Generating signing request...
problems making Certificate Request
34380751816:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:/builder/ce-241/tmp/FreeBSD-src/crypto/openssl/crypto/asn1/a_mbstr.c:158:maxsize=2

If you need any testing or additional logs let me know.
Cheers!
VN

could you  tell your openssl version

Hi @widder
It's the default version of pfSense 2.4.1:
OpenSSL 1.0.2k-freebsd  26 Jan 2017

ok thanks. i try to reproduce it asap. i also plan using dehydated on my freebsd machines soon

Sorry, but you might want to take a look at this too. (redmine I've filed for this issue @ pfsense).
https://redmine.pfsense.org/issues/8059
It was the openssl.cnf file which got broken, however check out the number two comment from Jim.

Having read the comment indicated on redmine... it seems like the issue causing concern isn't the certificate or CSR generated by dehydrated (via OpenSSL), but the potential for other OpenSSL commands to return errors when being run from the command line.
But the reason for this is that they set prompt=no in openssl.cnf. Otherwise, OpenSSL would prompt for valid information to fill out the fields in the certificate. I don't know why they've set prompt=no in their version of openssl.cnf (they probably have their reasons), but that isn't required for dehydrated's sake.
(For reference, my openssl.cnf doesn't contain the prompt field at all [which defaults to prompt=yes], and it works perfectly well with dehydrated.)

So I see this issue has been resolved, great :)
I've looked into that bug, and the only way to prevent this from happening in the future would be to use a completely new openssl config file instead of basing it on the system one... since it also varies from release to release this seems like a bad idea.
There is a config option to set a custom openssl config, so if this should happen again you could easily copy the config, make the changes manually, place it in a new path and tell dehydrated where to find it.


when can we expect the open-sourcing of the AnyText code?

Hi, expected in early December, please stay tuned.

And how about the text-ocr dataset? Will they be open-sourced with the code? Or can we get the dataset earlier?

Cool work! Looking forward the release of the code. Thank you!

Hi team, thank you for your awesome work !! But still looking for your open source implementation.

waiting for datasets and training code. :eyes:


Agent does not start properly

Describe the bug
Hi,I'm new to k8s and crane,and when I tried to install crane, the following error was reported. It seems that some components are not installed correctly,.Would you please help me to find out what the problem is?
Reproduce steps
helm repo add crane https://gocrane.github.io/helm-charts
helm install crane -n crane-system --create-namespace crane/crane
helm install fadvisor -n crane-system --create-namespace crane/fadvisor
Expected behavior

Screenshots

Environment (please complete the following information):

K8S Version: 1.20.2

Crane Version: latest
Browser [e.g. chrome, safari]

There was something wrong with the "service craned".
Please show "service craned" in detail.
kubectl logs -n crane-system -p craned-xxx-xxx

kubectl get svc -n crane-system

Fail: crane-agent == webhook ==> craned

How about joining the WeChat group? It is easy for us to exchange information.

There was something wrong with the "service craned". Please show "service craned" in detail.
kubectl logs -n crane-system -p craned-xxx-xxx

kubectl get svc -n crane-system

Fail: crane-agent == webhook ==> craned
How about joining the WeChat group? It is easy for us to exchange information.
Thank you a log for your help,i have tried by your command and find out the reason is that i didn't deploy prometheus and grafana by the way the doc show,but i have deploy them before in other ns. I will try Customize Installation again,thank you.

ref issues https://github.com/gocrane/crane/pull/312


File contents are "ascii text" on first hover

What system are you running Yazi on?
macOS
What terminal are you running Yazi in?
wezterm
yazi --debug output
Yazi
    Version: 0.3.1 (4fa37cb 2024-08-22)
    Debug  : false
    OS     : macos-aarch64 (unix)

Ya
    Version: 0.3.1 (4fa37cb 2024-08-22)

Emulator
    Emulator.via_env: ("xterm-256color", "WezTerm")
    Emulator.via_csi: Ok(WezTerm)
    Emulator.detect : WezTerm

Adapter
    Adapter.matches: Iterm2

Desktop
    XDG_SESSION_TYPE: None
    WAYLAND_DISPLAY : None
    DISPLAY         : Some("/private/tmp/com.apple.launchd.NW0SneB39e/org.xquartz:0")

SSH
    shared.in_ssh_connection: false

WSL
    /proc/sys/fs/binfmt_misc/WSLInterop: false

Variables
    SHELL              : Some("/bin/zsh")
    EDITOR             : Some("nvim")
    VISUAL             : Some("nvr --remote-wait")
    YAZI_FILE_ONE      : None
    YAZI_CONFIG_HOME   : None

Text Opener
    default: Some(Opener { run: "${EDITOR:=vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })
    block  : Some(Opener { run: "${EDITOR:=vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true })

Multiplexers
    TMUX               : false
    tmux version       : tmux 3.3a
    ZELLIJ_SESSION_NAME: None
    Zellij version     : 0.39.2

Dependencies
    file             : 5.41
    ueberzugpp       : 2.9.2
    ffmpegthumbnailer: 2.2.2
    magick           : 7.1.1-33
    fzf              : 0.46.1
    fd               : 9.0.0
    rg               : 14.1.0
    chafa            : 1.14.0
    zoxide           : 0.9.4
    7z               : No such file or directory (os error 2)
    7zz              : No such file or directory (os error 2)
    jq               : 1.7.1

--------------------------------------------------
When reporting a bug, please also upload the `yazi.log` log file - only upload the most recent content by time.
You can find it in the "/Users/mikavilpas/.local/state/yazi" directory.

### Did you try the latest nightly build to see if the problem got fixed?

Yes, and I updated the debug information above (`yazi --debug`) to the nightly that I tried

### Describe the bug

Using the following directory structure:

```text
.
└── routes
    └── posts.$postId
        ├── adjacent-file.txt
        └── should-be-excluded-file.txt

3 directories, 2 files

When I start yazi and enter the directory, and hover the file, it's displayed as "ascii text". But if I hover another file and then hover it again, the contents can be seen.
https://github.com/user-attachments/assets/920fcd1c-8971-4dc7-897d-c5446bd49842
Minimal reproducer
see above
Anything else?
No response

I discovered this in the yazi.nvim integration test setup after compiling the latest version above. That setup uses no plugins and the issue is also reproducible there.

This bug does not occur on v0.3.1, but right now I don't have time to bisect further. Hopefully this helps narrow it down a bit.

cause by this commit

Please try https://github.com/sxyazi/yazi/pull/1542

Yep, that fixes it. Thanks again, and enjoy your weekend!


memory_pool_budgets.csv never affected performance and thus is redundant

Removed the memory_pool_budgets.csv file. which was not connected with the final version of the game and had no influence on it (it was a leftover file used during the development to estimate memory usage. It had no effect on how much memory was actually allocated). Perceived performance increase after editing the file may have been related to restarting the game.

Changing the cpu and gpu pool memory should be removed since it doesn't do anything and the .csv file is going to be removed once patch 1.05 comes to PC.

#139


XSS Bypassing ModSecurity

I could inject XSS payload ,
this link includes demo video , vulnerable code and payloads :
https://drive.google.com/file/d/0B8Cfu7lkKSERZ0x2NDd0RmtaNlk/view?usp=sharing
Youtube Demo : https://www.youtube.com/watch?v=yvU3jEM2AVA

Hey @sohaibunix,
For future individuals looking at this topic, any security related information should be sent to<EMAIL_ADDRESS>Additionally, this would likely be a problem with OWASP CRS not modsecurity which has its own github https://github.com/SpiderLabs/owasp-modsecurity-crs/
On that note it appears you're testing with old versions of rules
I tested your findings and each of them was detected by at least one rule. Most often
[Tue Dec 15 10:44:52.475103 2015] [:error] [pid 5694:tid<PHONE_NUMBER>50048] [client <IP_ADDRESS>] ModSecurity: Access denied with code 404 (phase 2). detected XSS using libinjection. [file "/usr/local/apache2/modsecurity-crs/rules/REQUEST-41-APPLICATION-ATTACK-XSS.conf"] [line "44"] [id "973343"] [rev "2"] [msg "XSS Attack Detected via Libinjection"] [data "Matched Data: dd found within ARGS:x: 5.htaccess.aspx-->\x22>'>'\x22<img src=\x22dd\x22 onerror=\x22prompt('XSS')\x22>"] [severity "CRITICAL"] [ver "OWASP_CRS/3.0.0"] [maturity "1"] [accuracy "9"] [tag "Host: localhost"] [tag "OWASP_CRS/WEB_ATTACK/XSS"] [tag "WASCTC/WASC-8"] [tag "WASCTC/WASC-22"] [tag "OWASP_TOP_10/A3"] [tag "OWASP_AppSensor/IE1"] [tag "CAPEC-242"] [tag "https://libinjection.client9.com/"] [hostname "localhost"] [uri "/testsite.php"] [unique_id "VnA1dH8AAAEAABY@OpAAAABB"]
Please make sure you are using the 3.x ruleset (https://github.com/SpiderLabs/owasp-modsecurity-crs/tree/v3.0.0-dev/). Thank you.


!high priority! When I use  to create two tabs, my ts file cannot find the element in tab page which created by HTML

Detailed description

Describe in detail the issue you're having.

Is this a feature request (new component, new icon), a bug, or a general issue?

Is this issue related to a specific component?

What did you expect to happen? What happened instead? What would you like to see changed?

What browser are you working in?

What version of the Carbon Design System are you using?

What offering/product do you work on? Any pressing ship or release dates we should be aware of?

Steps to reproduce the issue

Step one
Step two
Step three
etc.

Additional information
In main html:
<ibm-tabs [followFocus]="followFocus" [isNavigation]="isNavigation">

in HTML of "app-export-list"

{{ _messageService.getBundle('label_deFaultData') | translate }}

...
in ts of "app-export-list",
ngOnInit() {
    this.domCheckBoxServer = document.getElementById("checkboxServer");
...
}
it will show null....however, this code could work well if use "ngSwitch" for these two tabs.

Screenshots or code
Notes

Please look at our storybook demo examples and documentation to help you get started with our components

I’d read them...however, it not work well when I use it to my project....

what I need import if I want to use ""?
I'd import "Settings16Module,
Delete16Module,
Save16Module,
Download16Module,".
Where could I found the ibm tag, such as , reference which module?

what I need import if I want to use "<ibm-icon-chevron-right16>"?
I'd import "Settings16Module,
Delete16Module,
Save16Module,
Download16Module,".
2 Where could I found the ibm tag, such as "<ibm-icon-chevron-right16>", reference which module?

You can find the icon library here and how to use icons-angular here


Remove possible compiler warnings

These two variables cause compiler warnings when compiled with -Wunused-variables. This change will squash those warnings.

If I'm not mistaken, that would make the library incompatible with VC++ (and any standard compiler).

Test failed with
The command "sudo apt-get -qq update" failed and exited with 100 during .

can you please restart?

You are right, I'll fix the code to something more compatible.

Thanks


Syntac Error in CLAS Z2UI5_CL_APP_DEMO_53

Hi,
it is a syntac error in the clas Z2UI5_CL_APP_DEMO_53.

synchronized demos and main repo. should be fixed now.

It works.


Add docs for deploying files to the persistent data partition

Signed-off-by: Drew Moseley<EMAIL_ADDRESS>

@estenberg @kacf please review.

This corresponds to the changes in https://github.com/mendersoftware/meta-mender/pull/300

Awesome!