Fix bug when daemon skips adding replica path on START command

This happens when START command is of the format:
START replica-id /root/of/path relative/subpath
which unison sends when Path= arguments are present in the
configuration.
I think this also fixes https://github.com/autozimu/unison-fsmonitor/issues/1
Thanks!

LGTM. Thanks for contributing.


Labeler test

Testing labeler V5 git action

PR was connected to wrong branch, sorry. Closing the pr


refactor: version 2

Closes #69 #70 #71

I will try this change in my local. Thanks @grikomsn

Ship it @grikomsn


Great job with this crate! 👍

Great ECS! I love the simplicity, and the way things are done. :smile:

Thanks!

:D


python3Packages.gcsfs: init

Motivation for this change
Add gcsfs, a useful tool for working with Google Cloud Storage. gcsfs implements the interfaces described in fsspec, which is in nixpkgs. I needed to bump the versions fsspec to work with the latest release of gcsfs. These packages are developed in unison, so usually need very similar versions.
I sometimes contribute to this project and am in contact with its primary author.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Make another commit for adding the maintainer maintainers: add nbren12

Result of nixpkgs-review pr 120173 at 023c823f run on x86_64-linux 1

7 packages marked as broken and skipped:

python38Packages.clifford
python38Packages.dask-jobqueue
python38Packages.dask-xgboost
python38Packages.rl-coach
python39Packages.dask-jobqueue
python39Packages.dask-xgboost
python39Packages.rl-coach

16 packages skipped due to time constraints:

python38Packages.caffe
python38Packages.dask-glm
python38Packages.dask-ml
python38Packages.datashader
python38Packages.imgaug
python38Packages.intake
python38Packages.mask-rcnn
python38Packages.spectral-cube
python38Packages.sunpy
python39Packages.caffe
...

54 packages built successfully:

python38Packages.aplpy
python38Packages.asdf
python38Packages.batchgenerators
python38Packages.dask
python38Packages.dask-gateway
python38Packages.dask-image
python38Packages.dask-mpi
python38Packages.datasets
python38Packages.distributed
python38Packages.fsspec
python38Packages.gcsfs
python38Packages.glymur
python38Packages.image-match
python38Packages.imagecorruptions
python38Packages.pims
python38Packages.pyfftw
python38Packages.pyregion
python38Packages.pytest-astropy
python38Packages.pytest-astropy-header
python38Packages.radio_beam
python38Packages.reproject
python38Packages.s3fs
python38Packages.scikitimage
python38Packages.slicedimage
python38Packages.sparse
python38Packages.streamz
python38Packages.stumpy
python38Packages.stytra
python38Packages.tensorly
python39Packages.aplpy
python39Packages.asdf
python39Packages.batchgenerators
python39Packages.dask
python39Packages.dask-gateway
python39Packages.dask-image
python39Packages.dask-mpi
python39Packages.datasets
python39Packages.distributed
python39Packages.fsspec
python39Packages.gcsfs
python39Packages.glymur
python39Packages.image-match
python39Packages.imagecorruptions
python39Packages.pims
python39Packages.pyfftw
python39Packages.pyregion
python39Packages.pytest-astropy
python39Packages.pytest-astropy-header
python39Packages.radio_beam
python39Packages.reproject
python39Packages.s3fs
python39Packages.scikitimage
python39Packages.slicedimage
python39Packages.streamz

Trying to build this has now frozen my computer twice, because of what I cannot tell.
But the build log before freezing has 2 errors.

Result of nixpkgs-review pr 120173 1

5 packages marked as broken and skipped:

python38Packages.clifford
python38Packages.dask-jobqueue
python38Packages.dask-xgboost
python39Packages.dask-jobqueue
python39Packages.dask-xgboost

11 packages failed to build:

python38Packages.dask-glm
python38Packages.dask-ml
python38Packages.datashader
python38Packages.intake
python38Packages.spectral-cube
python38Packages.streamz
python38Packages.stumpy
python39Packages.dask-glm
python39Packages.intake
python39Packages.spectral-cube
python39Packages.streamz

53 packages built:

python38Packages.aplpy
python38Packages.asdf
python38Packages.batchgenerators
python38Packages.dask
python38Packages.dask-gateway
python38Packages.dask-image
python38Packages.dask-mpi
python38Packages.datasets
python38Packages.distributed
python38Packages.fsspec
python38Packages.gcsfs
python38Packages.glymur
python38Packages.image-match
python38Packages.imagecorruptions
python38Packages.pims
python38Packages.pyfftw
python38Packages.pyregion
python38Packages.pytest-astropy
python38Packages.pytest-astropy-header
python38Packages.radio_beam
python38Packages.reproject
python38Packages.s3fs
python38Packages.scikitimage
python38Packages.slicedimage
python38Packages.sparse
python38Packages.stytra
python38Packages.sunpy
python38Packages.tensorly
python39Packages.aplpy
python39Packages.asdf
python39Packages.batchgenerators
python39Packages.dask
python39Packages.dask-gateway
python39Packages.dask-image
python39Packages.dask-mpi
python39Packages.datasets
python39Packages.distributed
python39Packages.fsspec
python39Packages.gcsfs
python39Packages.glymur
python39Packages.image-match
python39Packages.imagecorruptions
python39Packages.pims
python39Packages.pyfftw
python39Packages.pyregion
python39Packages.pytest-astropy
python39Packages.pytest-astropy-header
python39Packages.radio_beam
python39Packages.reproject
python39Packages.s3fs
python39Packages.scikitimage
python39Packages.slicedimage
python39Packages.sunpy

@legendofmiracles @SuperSandro2000
I force-pushed a new batch of commits, splitting the maintainer addition into a new commit, and addressing the other comments.


Navigation through core-toolbar on mobile devices not working (hash-routing)

Hello,
clicking on core-items in core-toolbar in my app does not trigger routing on mobile devices (URL does not get changed). Routing itself works (typing and surfing directly to /#/xyz).
I did not change any behaviour, just put some content into the sample app. Navigation in the sample https://erikringsmuth.github.io/app-router/#/ works, too!
Not sure if this is some kind of bug?
Tested on Chrome for G3, Nexus 9 and Safari on iPhone 6 and 4S.
You can test it on resume.shadysblog.com

Do either of you know if this is still an issue? If you have example code I could run that'd be great too.

Closing for now since I can't reproduce it. If you get an example of the bug open it back up. Sample code would be really helpful too.


Users can connect only once, if they reconnect they see "Authentication failure".

System information
Operating system (e.g. Ubuntu 22.04): Ubuntu 24.04.1 LTS
Do you use selinux? (check with e.g. sestatus): No
Steps to reproduce

Connect to 2FA VPN (LDAP + Google Auth) openvpn server first time - success.
Reconnect again - Authentication failure

What I expected would happen
Users should successfully connect to OpenVPN server every time, not only first time )
What actually happened
Authentication failure second time user connects. BUT if I remove "grace_period=18000" option in my PAM config - everything works like a charm ) Users successfully connect and reconnect as many times as they need.
PAM config
Paste the relevant parts of your PAM config
auth required pam_google_authenticator.so secret=/etc/openvpn/otp/${USER}.google_authenticator debug user=root grace_period=18000 forward_pass

auth required pam_ldap.so use_first_pass

account sufficient pam_permit.so

If SSH: SSH config
Paste the relevant parts of /etc/ssh/sshd_config or equivalent.
paste here

If not SSH: That program's config, and logs
Ive got configured OpenVPN server. Should I attach tons of its logs here?)

Contents of /var/log/auth.log or equivalent
#AVUser connects first time
2024-12-19T17:32:27.925822+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: start of google_authenticator for "AVUser"
2024-12-19T17:32:27.926606+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: Secret file permissions are 0400. Allowed permissions are 0600
2024-12-19T17:32:27.926834+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: "/etc/openvpn/otp/AVUser.google_authenticator" read
2024-12-19T17:32:27.927270+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: shared secret in "/etc/openvpn/otp/AVUser.google_authenticator" processed
2024-12-19T17:32:27.927332+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: google_authenticator for host "<IP_ADDRESS>"
2024-12-19T17:32:27.927372+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: no scratch code used from "/etc/openvpn/otp/AVUser.google_authenticator"
2024-12-19T17:32:27.927428+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: Accepted google_authenticator for AVUser
2024-12-19T17:32:27.927473+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: google_authenticator for host "<IP_ADDRESS>"
2024-12-19T17:32:27.927513+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: "/etc/openvpn/otp/AVUser.google_authenticator" written
2024-12-19T17:32:27.927551+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: end of google_authenticator for "AVUser". Result: Success

#Reconnects
2024-12-19T17:32:41.231236+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: start of google_authenticator for "AVUser"
2024-12-19T17:32:41.231427+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: Secret file permissions are 0400. Allowed permissions are 0600
2024-12-19T17:32:41.231501+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: "/etc/openvpn/otp/AVUser.google_authenticator" read
2024-12-19T17:32:41.231565+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: shared secret in "/etc/openvpn/otp/AVUser.google_authenticator" processed
2024-12-19T17:32:41.232199+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: google_authenticator for host "<IP_ADDRESS>"
2024-12-19T17:32:41.232371+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: within grace period: "AVUser"
2024-12-19T17:32:41.232524+03:00 srv-dcb-ovpn2fa openvpn(pam_google_authenticator)[944]: debug: end of google_authenticator for "AVUser". Result: Success
2024-12-19T17:32:41.233281+03:00 srv-dcb-ovpn2fa openvpn[944]: pam_ldap(openvpn:auth): failed to get password: Authentication failure

#Auth fails ((

You can check out a branch of the code with an experimental fix for what you need:
git clone https://github.com/google/google-authenticator-libpam
cd google-authenticator-libpam
git switch ask-anyway

Then compile as normal:
./bootstrap.sh
./configure
make

And maybe make install, if you want it installed in the default location. Note that if you didn't build the current version yourself, then you may have two versions installed. Which is fine, it's just that your PAM config may now need to give the full path to the new version.


quick start

0-'make image'  build docker image
1- 'make fashrun' can build docker image and run docker-compose.

commits 太多了，需要合并


Environment variable ID token detection

Description
I'd like to propose adding environment variable OIDC token detection for cosign.
Main use case is to support GitLab CI OIDC tokens - see https://github.com/sigstore/fulcio/pull/983 for more details.
Proposal
Today, users can already use arbitrary OIDC tokens by using the --identity-token flag.
cosign sign --identity-token=${TOKEN} ...

To make this easier, I want to allow cosign to detect a token from environment variables.
To help avoid collisions with existing token variables, we should use a prefixed value such as SIGSTORE_ID_TOKEN.
This could also be used to allow other CI providers to hook in without needing additional changes to cosign (though I'm still in support for allowing custom providers per host).
Example: GitLab
build:
  stage: build
  id_tokens:
    SIGSTORE_ID_TOKEN:
      aud: sigstore
  script:
     - cosign sign registry.gitlab.com/my-image

I'm happy to implement this.
Previous GitLab related issues:

https://github.com/sigstore/cosign/issues/2697
https://github.com/sigstore/cosign/issues/1254

I believe this has been implemented, prefixing the variable with COSIGN_ currently - https://github.com/sigstore/cosign/pull/2346

How would this be different from setting COSIGN_IDENTITY_TOKEN?

I didn't know about COSIGN_IDENTITY_TOKEN! (it wasn't implemented as a provider so I didn't see it)
I'd like to standardize on a SIGSTORE_ prefix so that we can have a consistent environment variable across clients, and implement this as a provider so it's easier to pull into other clients like Gitsign (until sigstore-go takes over providers).

I wonder if it's worth trying to solve the COSIGN_ / SIGSTORE_ env var issue once and for all by accepting them both for every env var.


Added Insertion Sort Algorithm using C

Description

Implemented Insertion Sort Algorithm using C
Programming Language Used: C

Type of change

[ ] New Project
[x] New Feature
[ ] Bug fix

Issue number: #29

Checklist:

[X] I have included a README.md file for my project clearly explaining its purpose, functionality, and usage instructions (applicable for new projects, not bug fixes).
[X] My code adheres to the style guidelines outlined by this project.
[X] I have thoroughly reviewed my code to identify and address any potential errors or inconsistencies.
[X] I have added clear and concise comments to my code, especially in sections that might be challenging to understand at first glance.
[X] I have reviewed and followed the project's Contributing Guidelines to ensure my contribution aligns with the project's requirements.

thank you @mdfarmansayeed


feat: added a hover card

ISSUE #3 Component Cards
Features

Initial: A card with an image
Hover Effect: The Image gets blurred and the text appears
CSS only implementation

Screenshots

Usage
The CSS file has to be imported and by using card class the desired design can be obtained on the div.

Thanks @hackos123!


Make routing and navigation easier to find from the website

We have solid API docs (with snippets!) at https://docs.flutter.io/flutter/widgets/Navigator-class.html
We'd like to make it very obvious from the website that Flutter has an opinion about how to do multi-screen apps.
Suggestion: create a short page under How-Tos titled "Routing and multi-screen apps" and generally just link over to https://docs.flutter.io/flutter/widgets/Navigator-class.html and related concepts.

+1 is is hard to find it

See also https://github.com/flutter/flutter/pull/9287

See also https://github.com/flutter/flutter/issues/9345

See also https://github.com/flutter/flutter/issues/9577#issuecomment-296915073

See also https://github.com/flutter/flutter/issues/9645

See also http://stackoverflow.com/questions/43683216/flutter-routing-between-different-views

See also http://stackoverflow.com/questions/43680902/replace-initial-route-in-materialapp-without-animation

Helped a little here: https://github.com/flutter/flutter/pull/9843


feat: Add support for onOpenStart, onOpenEnd, onCloseStart and onCloseEnd

closes #81

Exposed onOpenStart, onOpenEnd, onCloseStart, onCloseEnd callbacks.
Exposed callbackThreshold so we can control when to call those callbacks.
Fixed typos.

I have a question about usability:
When you have a different initialSnap, let's say your bottom sheet starts opened, what do you expect? The onOpenStart method called when you start moving or you expect that it should be called only when the bottom sheet is closed and then opened again?
If the second one is the chosen option, it should be a simple fix. I could do the following on the constructor:
if(props.snapPoints[props.initialSnap] !== Math.min(...props.snapPoints)){
     this.onOpenStartValue.setValue(1)
}

Same for the case when the bottom-sheet starts fully opened. In this case the onOpenEnd won't be called until the onCloseStart has been called. The following is a good solution:
if(props.snapPoints[props.initialSnap] === Math.max(...props.snapPoints)){
     this.onCloseStartValue.setValue(0)
     this.onOpenEndValue.setValue(1)
}

In my opinion this should be the default behaviour. If you guys agree I'm gonna commit those changes.
Let me know your opinions. Thanks.

Thank you very much, this is what I was looking for! Should I use your fork or can I expect this to be merge and released soon?
Thanks for your awesome work guys!

If you wan't to be an early adopter, test if the behaviour is what you expected and give your feedback, you're more than welcome to clone from this branch. But I do not encourage you to run this branch in production. It might have some edge cases where I did not see for myself. I would wait until @osdnk give his review and thoughts to merge it into master and release a stable version.
Thank you for your feedback.

Ok I will give it a try as soon as I can, maybe next week.

I just tested onOpenStart and onCloseEnd, it works perfectly for me on both Android, iOS simulators and iPhone 7 device.

Hey,
Is there any possibility to call onCloseEnd/onCloseStart on a different snapPoint than the last one?
I want that my SearchBar disappears on Opening the BS, and reappears when the BS is minimized on any snapPoint other than fully open.
Thanks in advance, and besides this question, I love your Component :D


some feature is not work

not work features

,y Yank to OS clipboard ( Misc
,p Paste from OS clipboard ( Misc
unicode symbols
highlight DSLs

hint:

Everthing is ok when i first install. In recent days, i have install again and some features is not work example above.I think there exist some other thing is also not work, but i haven't found them.
, Clear search highlights is work ( Misc
https://github.com/begriffs/haskell-vim-now/issues/206, when i second install.

env
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct 13 2016 21:22:16)
Included patches: 1-898
Compiled by<EMAIL_ADDRESS>Normal version without GUI.  Features included (+) or not (-):
+acl             -farsi           -mouse_netterm   +syntax
-arabic          +file_in_path    -mouse_sgr       +tag_binary
+autocmd         +find_in_path    -mouse_sysmouse  +tag_old_static
-balloon_eval    +float           -mouse_urxvt     -tag_any_white
-browse          +folding         +mouse_xterm     -tcl
+builtin_terms   -footer          +multi_byte      +terminfo
+byte_offset     +fork()          +multi_lang      +termresponse
+cindent         -gettext         -mzscheme        +textobjects
-clientserver    -hangul_input    +netbeans_intg   +title
-clipboard       +iconv           +path_extra      -toolbar
+cmdline_compl   +insert_expand   -perl            +user_commands
+cmdline_hist    +jumplist        +persistent_undo +vertsplit
+cmdline_info    -keymap          +postscript      +virtualedit
+comments        -langmap         +printer         +visual
-conceal         +libcall         -profile         +visualextra
+cryptv          +linebreak       +python/dyn      +viminfo
+cscope          +lispindent      -python3         +vreplace
+cursorbind      +listcmds        +quickfix        +wildignore
+cursorshape     +localmap        +reltime         +wildmenu
+dialog_con      -lua             -rightleft       +windows
+diff            +menu            +ruby/dyn        +writebackup
+digraphs        +mksession       +scrollbind      -X11
-dnd             +modify_fname    +signs           -xfontset
-ebcdic          +mouse           +smartindent     -xim
-emacs_tags      -mouseshape      -sniff           -xsmp
+eval            -mouse_dec       +startuptime     -xterm_clipboard
+ex_extra        -mouse_gpm       +statusline      -xterm_save
+extra_search    -mouse_jsbterm   -sun_workshop    -xpm
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -L/usr/local/lib -o vim        -lm -lncurses  -liconv

macOs Sierra

Everything is all right after i do the following work.

reinstall brew
reinstall vim
xcode-select --install
reinstall haskell-vim-now
I guess the third step is usefull.


[improve][broker][PIP-149]make getBacklogQuotaMap method async in Namespaces

Motivation
See #14365
Verifying this change
Make sure that the change passes the CI checks.
Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: (no)
The default values of configurations: (no)
The wire protocol: (no)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)

Documentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?


Rewrite ch09

This PR is not quite done yet it's still missing magnitutde and calibration. However there is a thing that is confusing me. Both take 1 and 2 work perfectly on the micro:bit v2. On my micro:bit v1 however the X value of the magnetometer always stays negative...is this a mistake from my side or do I have to calibrate it?

:warning: Warning :warning:

Pull requests are usually filed against the master branch for this repo, but this one is against rewrite. Please double check that you specified the right target!

I don't think its related to orientation or something...I turned 360 degrees around with the micro:bit v1 and the x values kept staying always negative which does not make sense at all...something weird is going on with the chip here.

I don't think its related to orientation or something...I turned 360 degrees around with the micro:bit v1 and the x values kept staying always negative which does not make sense at all...something weird is going on with the chip here.

Depending on the version of v1 you are using you might have a different magnetometer, although most likely your program shouldn't work at all in that case.
But since V1.3 is using a Freescale MAG3110 ( https://tech.microbit.org/hardware/1-3-revision/#magnetometer ), we should maybe make it clear that only v1.5 and v2 are supported here or that another feature needs to be enabled to use the mag3110 lib instead?

The main issue here is with the calibration of the magnetometer on the micro:bit, depending on how its configured per default the values it outputs can wildly differ from other once which is why it should be properly calibrated in your current location before using it. I did that in MicroPython with the default micro:bit stuff and that got me quite accurate results so next step is to port that to Rust which is what I'm on at the moment.

The code is now in a working state (along with the calibration)
There is one thing I am not quite sure yet, the magnitude of the magnetig field. The docs of the lsm303 crate as well as its datasheet agree that the data being outputted is in milli gauss so so the magnitude of the field vector should be in milli gauss as well. However the values are too large by that by the factor of 100 (which is exactly the conversion factor from nano tesla to milli gauss). The micro:bit original driver code notes that they calculate the magnitude in nano tesla and trying it out on my microbit they produce almost identical values so it would seem the values are being measured in nano tesla?
Since I more or less blindly took over the micro:bit calibration code maybe the conversion is coded somehwere in there as well, I am not 100% certain about that yet.
It would be very nice if someone could verify I translated the calibration code correctly and also clear up the unit question regarding nano tesla or milli gauss.
Apart from that (minus the merge conflicts) this should be ready to review and then merge.

Is this ready for merge now, then?

We'd have to update the link to the lsm303agr docs that I use to justify the nT since its still saying mG but we can do that after your new minor release as well so basically yeah ready to merge and then I'll just have to clean it up once the release is there.

Now its mergable.


[WIP] Implement Async Plugins Server

This is a draft PR for the async plugin API.
It already implements async processing, progress tracking, and the result endpoint.
Another significant change is the refactoring of the plugin dataclass, which is now an abstract class that handles progress tracking, error handling, and result storage. This way, a new Plugin only needs to implement the rf_function itself.
Some open points:

[x] support custom params
[ ] support for object storage
[x] better handling of results (e.g., don't return IQ result as JSON) => its not possible to return file + json, so for now keep binary data as base64 encoded string in result
[x] integration with the frontend

made some progress on the plugins. also added example to simply mount custom plugins in to plugin api docker container.  any chance we can make the plugin stuff as an pypi and npm package to use it outside of the repo?

made some progress on the plugins. also added example to simply mount custom plugins in to plugin api docker container. any chance we can make the plugin stuff as an pypi and npm package to use it outside of the repo? @777arc

Mmm good idea, which one would you say is better to tackle first?  I can add the GitHub action

made some progress on the plugins. also added example to simply mount custom plugins in to plugin api docker container. any chance we can make the plugin stuff as an pypi and npm package to use it outside of the repo? @777arc

Mmm good idea, which one would you say is better to tackle first? I can add the GitHub action

i think the python plugin stuff is more important, so people can build plugins based on the new plugin class. The have the react stuff would be nice to easily integrate the plugin api into IQDMs viewer, but for now i can just copy the code.
But with the python plugin available, we can serve our ml stuff as a plugin. The docker image can be for the plugin server can be hosted on github like the current base image?

Sorry for taking so long to dive into this!!

I love the new code structure!  Don't worry about the straight-from-cloud functionality, better we get this PR finished and merged in, then I can add it back in.

Between GNU Radio and SatDump and future large deps we add to the plugins base-image, at some point I'll add a way to choose which deps are included in the build, like with flags, but until then are you OK with just leaving it as 1 base-image (that includes all) in order to reduce complexity?  Or did you need the smaller gnuradio-free image for your own stuff?

I'm OK merging as long as we make an Issue or something to remember what is left to add

Between GNU Radio and SatDump and future large deps we add to the plugins base-image, at some point I'll add a way to choose which deps are included in the build, like with flags, but until then are you OK with just leaving it as 1 base-image (that includes all) in order to reduce complexity? Or did you need the smaller gnuradio-free image for your own stuff?

Yes Lets just keep one base image, i only Needed it for testing.

I'm OK merging as long as we make an Issue or something to remember what is left to add

Ok i will create an issue


Change STOP and CROSSWALK segmentation color

Hi, i want to get "road lane only" semantic segmentation of carla. But i fount out that road marking and road lines are in the same color, e.g STOP and Crosswalk. Is there a way for me to change the color of STOP and Crosswalk? So in the end, the semantic segmentation has different color between road lanes and road markings.

@Axel1092 Did u find any solution to this problem? If so please let me know i have a similar problem too. Would be really helpful. Thanks

@Axel1092 @protanjung Did u find any solution to this problem? If so please let me know i have a similar problem too. Would be really helpful. Thanks

Sorry, but I don't find any workaround yet. Perhaps we have to modify and build carla from source (?)

Is there anyone with this same issue? Hmm, i am still wondering around to solve this. Hahaha.

You can use this tuto https://carla.readthedocs.io/en/latest/tuto_D_create_semantic_tags/


EKAttributes+PositionConstraints initializer typo?

Describe the bug
The currently provided default initializer does not actually use the passed in max size, ignoring it during initialization.
To Reproduce
Steps to reproduce the behavior:

Go to 'EKAttributes+PositionConstraints.swift'
Scroll down to 'public init(verticalOffset:size:maxSize:)'
See error:
self.maxSize = .intrinsic

Expected behavior
I would have expected the third line to read:
self.maxSize = maxSize
iPhone (please complete the following information):

Device: iPhoneX
iOS Version: iOS12
Xcode Version 10.0
Dependency Manager Version: CocoaPods 1.5.3
SwiftEntryKit Release # 0.8.2

Hi @Sndrsn! My bad, thanks for letting me know!
You are always welcome to fork and pull request fixes for bugs.
Since I intend on releasing a new patch version in the next few days, let me know if you wish to pull-request a hotfix for it today or tomorrow.


SPIKE: Research the AWS SEA vs Testing technologies

Describe the issue
What are the most appropriate technologies for the BC Gov AWS SEA Test and Prod environments?
Additional context
Add any other context, attachments or screenshots
Definition of done

Review the BrowserStack video the other team made.
Track down the autotests already in the SEA (Julian thinks these are likely not the approach we want to take - confirm or deny)
Look at the SEA code base
Help make the next set of tickets

Using geb/spock with BrowserStack
https://github.com/browserstack/geb-browserstack

Existing test in the SEA repository
aws-secure-environment-accelerator/src/core/runtime/test/
https://github.com/aws-samples/aws-secure-environment-accelerator/tree/main/src/core/runtime/test
aws-secure-environment-accelerator/src/deployments/cdk/test/
https://github.com/aws-samples/aws-secure-environment-accelerator/tree/main/src/deployments/cdk/test

SEA testing: outline of test plan
Objective
The goal of this plan is to raise the confidence that SEA will be operative after any upgrade/update of any of its components.
Approach
There are two supplementary approaches, with the second one dependent on the first
a) Verify  a project-set can be created both before and after an SEA upgrade/update
Possible test cases:

Existing license plate/project set is reused after the upgrade/update
Create a new license plate/project set after the upgrade/update
In both cases the expected result would be project set can be created.

Tools/Approach
At this moment not sure it is possible to create a single bash script that will run all the process
-> Not sure how to transfer the AWS team token to environment so aws cli can run
Output will scan for error messages and expected messages.  Presence of error and absence of expected message will make the test fail
This test should be triggered manually
Question: if there is an AWS api that can be queried for service accounts? If yes, the approach of querying AWS is they have been created, is a valid one? (the hope is that will be simpler and less prone to false positives than parsing the logs)
b) Verify that selected apps can be installed before and after the SEA upgrade/update
Possible test cases:

Apps work as expected before and after upgrade/update

Tools/Approach
This test will have two components:
- Apps deployment in the SEA
Probably a batch file. As before, I am not certain how the different tokens can be safely retrieved from AWS and transferred to a batch file
	- The second (probably based on Selenium) will verify the apps show the expected behaviour.
	Here there is the possibility of using BrowserStack to verify the web based Apps are accessible through different browsers: Will require information about what browsers and platforms are expected.

This test should be triggered manually. The test themselves would run automatically. it is the triggering of these process that will be manual

Related tickets
#1445 (1st spike)
#1442, #1480 (installing sample apps)
#1456, #1478, #1479 (automated test for user end point -GUI-)
#1459 (Integrate automated test in CI/CD pipelina with github actions)


12/03 Publishing

Docs Build status updates of commit 5d56f5a:
:clock10: Pending: waiting for processors (13 builds ahead of you)
:warning: Docs Build is busy, currently there are 13 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 5d56f5a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

DocsLegal/TOC.md
:white_check_mark:Succeeded

DocsLegal/learntv/codeofconduct.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


[WFCORE-6448] Upgrade Eclipse Parsson from 1.1.3 to 1.1.4

Jira issue: https://issues.redhat.com/browse/WFCORE-6448

Thanks @jamezp


Out of memory scraping

Describe the bug
During the scraping on the staging server the scraping process get's killed due to missing memory.
To Reproduce
Steps to reproduce the behavior:

Log in to the staging server
Execute the run_etl.sh script

Expected behavior
You should never use the full memory.
Screenshots
None
Additional context
The staging server has only 4GB of RAM. The default usage is 2GB. At about 4-5 tousands posts in the memory, the maximal memory is exceeded.

I have requested more memory for those machines.
However, you should inspect your code. 4-5 thousands posts should only take megabytes, not gigabytes.
Von: JanF<EMAIL_ADDRESS>Gesendet: Donnerstag, 3. Dezember 2020 23:45
An: hochschule-darmstadt/einander-helfen<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Betreff: [hochschule-darmstadt/einander-helfen] Out of memory scraping (#205)
Describe the bug
During the scraping on the staging server the scraping process get's killed due to missing memory.
To Reproduce
Steps to reproduce the behavior:

Log in to the staging server
Execute the run_etl.sh script

Expected behavior
You should never use the full memory.
Screenshots
None
Additional context
The staging server has only 4GB of RAM. The default usage is 2GB. At about 4-5 tousands posts in the memory, the maximal memory is exceeded.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/hochschule-darmstadt/einander-helfen/issues/205 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYWHS5GSZ3CHGPVGDWLMATSTAIFZANCNFSM4UMUNQPA .  https://github.com/notifications/beacon/ABYWHS5D2XY6P42PLGUYUI3STAIFZA5CNFSM4UMUNQPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LIZSPHA.gif

Reduced maximum memory usage for about 9000 posts from 2GB+ to 335 MB. Elapsed time of the process was 2 hours and 50 minutes.
        Command being timed: "python main.py"
        User time (seconds): 3420.14
        System time (seconds): 357.25
        Percent of CPU this job got: 36%
        Elapsed (wall clock) time (h:mm:ss or m:ss): 2:50:17
        Average shared text size (kbytes): 0
        Average unshared data size (kbytes): 0
        Average stack size (kbytes): 0
        Average total size (kbytes): 0
        Maximum resident set size (kbytes): 344692
        Average resident set size (kbytes): 0
        Major (requiring I/O) page faults: 0
        Minor (reclaiming a frame) page faults: 120562508
        Voluntary context switches: 840170
        Involuntary context switches: 91432
        Swaps: 0
        File system inputs: 16
        File system outputs: 198319328
        Socket messages sent: 0
        Socket messages received: 0
        Signals delivered: 0
        Page size (bytes): 4096
        Exit status: 0


Adding fixer for R

A linter for the R language is already available (lint):
https://github.com/w0rp/ale/blob/f9ae58849a8b465e367ed311f0506bae2a537a62/ale_linters/r/lintr.vim#L3
let g:ale_fixers = {'r': ['lintr']}

and issuing <Plug>(ale_fix) told me  there is no fixer named 'lintr'.
I assume a separate fixer is needed and was wondering if this can be somehow added?

Yeah, some separate VimL code is needed to fix files. If lintr has a --fix argument or something, the command would use that.

I don't believe lintr has that functionality, but there is styler. It will format files with a call to the R function style_file("path").

Thanks for the feedback. Just found that the main developer of lintr seems to be aware of this issue: (https://github.com/jimhester/lintr/issues/227)
I suppose it would be best to have lintr support fixing for compatibility rather than having yet another bit of software (also I didn't get styler work with ale, did you get it to work @aenda ?). In any case, I'll follow up on this in the above thread.

I looked a bit more into styler, lintr and ale fixing integration.
From ale's documentation, it wasn't clear to me how add a Fixer myself or which format the command line call and output should have.
The code for testing is in test.r with a styling error on line 2 (missing space):
a <- 1
b <-2

From running the R linter lintr on a test.r (with filetype=r) and debugging using :ALEInfo
(finished - exit code 0) ['/bin/bash', '-c', 'cd ''/home/user'' && Rscript -e ''suppressPackageStartupMessages(library(lintr));lint(cache = FALSE, commandArgs(TRUE), with_defaults())'' ''/tmp/user/1000/nvimpAuu0l/35/test.r''']
<<<OUTPUT STARTS>>>
/tmp/user/1000/nvimpAuu0l/35/test.r:2:3: style: Put spaces around all infix operators.
b <-2
  ^~~
<<<OUTPUT ENDS>>>

Which picked up the error correctly and suggesting this would be the call on the command line:
Rscript -e "suppressPackageStartupMessages(library(lintr));lint(cache = FALSE, commandArgs(TRUE), with_defaults())" test.r

I'd therefore say the following is the analogous fixer command. Maybe someone knows how to integrate this in ale?:
Rscript -e "suppressPackageStartupMessages(library(styler));style_file(commandArgs(TRUE))" test.r

which overwrites test.r with the fixed content and gives the following output:
Styling  1  files:
 test.r ℹ
────────────────────────────────────────
Status  Count   Legend
✔       0       File unchanged.
ℹ       1       File changed.
✖       0       Styling threw an eror.
────────────────────────────────────────
Please review the changes carefully!

To this:
cat test.r
a <- 1
b <- 2

Maybe someone can try? If there was a minimum example on how to add a fixer I'd give it a go!

Thanks. I'd have to brush up vim VimL skills a bit to make this happen which might take some time, so if anyone wants to do implement this, please do.
In the meanwhile, I've come up little workaround to fix chunks at a time in my ".vimrc":
vmap <leader>f !cat > /tmp/tmp.r; Rscript -e 'styler::style_file("/tmp/tmp.r")' > /tmp/tmp.r.error; cat /tmp/tmp.r<CR>

Which fixes selected chunks of R code by hitting f

@w0rp would you consider a PR integrating styler as a new fixer?


ubuntu20.04/apollo7.0 build ERROR: Config value 'gpu' is not defined in any .rc file

ubuntu20.04/apollo7.0 build ERROR: Config value 'gpu' is not defined in any .rc file

what your build command looks like？

bazel use .rc file to define some behavior of config.
The following files shall be provided in Apollo:
.bazelrc
.apollo.bazelrc
tools/bazel.rc
if you haven't seen these files, i suggest you download Apollo again or clone again


zha: Update to bellows 0.3.4

Description:
Related issue (if applicable): fixes #7473 , fixes #8532
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>
Example entry for configuration.yaml (if applicable):

Checklist:
If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

I'd like to request this for 0.49.1, if one is planned. I don't know how to do that.

Hrm - there's a log message I keep getting reports about. Let me build 0.3.4 to drop the level of that.

I'll prepare a release tomorrow 👍


Jacobi elliptic function for u = 0

The Jacobi elliptic functions should satisfy
sn(0,m) == 0
cn(0,m) == 1
dn(0,m) == 1

for any m, see Abramowitz&Stegun, "Handbook of Mathematical Functions", Sec 16.5. This is not the case, however:
mpmath.ellipfun("sn", 0.0, 1.5)   # mpc(real='-1.0052557183770872e-22', imag='8.5907335570440845e-23')
mpmath.ellipfun("cn", 0.0, 1.5)   # mpc(real='1.0', imag='7.0322008877396214e-20')
mpmath.ellipfun("dn", 0.0, 1.5)   # mpc(real='1.0', imag='7.0322008877396214e-20')

Not sure whether this breaks any real code, but it breaks my tests comparing my own code to mpmath. So feel free to leave unanswered.

@ettersi "e-20" is very small, the code is working as desired. When comparing floats you should probably compare the difference within some tolerance.


urlopen_error

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like this: [x])
Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.02.22. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2018.02.22

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[ ] Searched the bugtracker for similar issues including closed ones
[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=0gosur3db5I']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.22
[debug] Python version 2.7.12 (CPython) - Linux-4.4.0-112-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.11-0ubuntu<IP_ADDRESS>, ffprobe 2.8.11-0ubuntu<IP_ADDRESS>
[debug] Proxy map: {}
[youtube] 0gosur3db5I: Downloading webpage
[youtube] 0gosur3db5I: Downloading video info webpage
[youtube] 0gosur3db5I: Extracting video information
[debug] Default format spec: bestvideo+bestaudio/best
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[debug] Invoking downloader on u'https://r3---sn-gxap5ojx-qxae.googlevideo.com/videoplayback?sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&expire=1519354028&key=yt6&c=WEB&gir=yes&ipbits=0&initcwndbps=418750&mime=video%2Fmp4&itag=137&fvip=9&requiressl=yes&clen=46126439&signature=4D2C63CC413EE984095764D5F637F2EA6F0F3D8F.2752FF4FBFF876ECE8F3915A7003BBF1C63E9DFA&mt=1519332308&mn=sn-gxap5ojx-qxae%2Csn-h557snel&mm=31%2C29&id=o-ALFq2VZ_aJIwfIDWuzna1CqgYkkAxiPF010Feo10PhFT&lmt=1512099536959839&ip=<IP_ADDRESS>&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&pl=24&dur=260.720&mv=m&source=youtube&ms=au%2Crdu&keepalive=yes&ei=SyyPWpu1NriJ1wLnp7bABw&ratebypass=yes'
ERROR: unable to download video data: <urlopen error [Errno 113] No route to host>
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1890, in process_info
    partial_success = dl(fname, new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1835, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 364, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 340, in real_download
    establish_connection()
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/http.py", line 109, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2199, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1101, in https_open
    req, **kwargs)
  File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 113] No route to host>
---

### If the purpose of this *issue* is a *site support request* please provide all kinds of example URLs support for which should be included (replace following example URLs by **yours**):
- Single video: https://www.youtube.com/watch?v=BaW_jenozKc
- Single video: https://youtu.be/BaW_jenozKc
- Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Note that **youtube-dl does not support sites dedicated to [copyright infringement](https://github.com/rg3/youtube-dl#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free)**. In order for site support request to be accepted all provided example URLs should not violate any copyrights.

---

### Description of your *issue*, suggested solution and other information

Explanation of your *issue* in arbitrary form goes here. Please make sure the [description is worded well enough to be understood](https://github.com/rg3/youtube-dl#is-the-description-of-the-issue-itself-sufficient). Provide as much context and examples as possible.
If work on your *issue* requires account credentials please provide them or explain how one can obtain them.

Most likely a network issue on your side.


checkov: 2.0.528 -> 2.0.549

Motivation for this change
Update to latest upstream release 2.0.549
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 144793 run on x86_64-linux 1

1 package built:

checkov


Element.scrollIntoView extern does not match MDN documentation.

MDN documents the Element.prototype.scrollIntoView function as accepting an optional boolean or an object.  The extern in wc3_css.js only accepts a boolean.  It appears that Chrome ignores the input object and Firefox has actually put in a little work to implement the spec on the MDN page.
It seems that the extern should be changed to:
/**
 * @param {(boolean|{behavior: string, block: string})=} opt_top
 * @see http://www.w3.org/TR/cssom-view/#dom-element-scrollintoview
 */
Element.prototype.scrollIntoView = function(opt_top) {};

to support the Firefox case.
For more background on this, see the following StackOverflow post:  http://stackoverflow.com/q/33131516/748858

Fixed by #1212


Build from source directions are out of date

Build from source is for 1.6. We need directions for 1.8. Might also consider fixing 1.7 build directions on the 1.7 branch.
┆Issue is synchronized with this Asana task by Unito

In particular "Install OnDemand Infrastructure" and Install OnDemand Core Applications" should just be merged into "Install OnDemand" and use the monorepo. Can consult the rpm spec file in the root of OnDemand to see specific steps we might need to do. One thing that would be nice would be to install gems system wide though each app could have its gem dependencies installed in the app directories. I think we would provide directions for each path and let them decide. The npm dependencies of course get installed in the app root directories.

And of course https://osc.github.io/ood-documentation/latest/installation/from-source/system-dependencies.html needs fixed.

This is out of date:
https://osc.github.io/ood-documentation/develop/installation/from-source/core-apps.html

OnDemand’s core applications are stored in their own Github repositories and should each be cloned to /var/www/ood/apps/sys/$APP:
   ood-activejobs: /var/www/ood/apps/sys/activejobs
   ood-dashboard: /var/www/ood/apps/sys/dashboard
   ood-fileeditor: /var/www/ood/apps/sys/file-editor
   ood-fileexplorer: /var/www/ood/apps/sys/files
   ood-myjobs : /var/www/ood/apps/sys/myjobs
   ood-shell: /var/www/ood/apps/sys/shell

These directions have now been removed as per #721.


Rfink/qos

All of this has been individually reviewed in separate PRs. Want to merge this into develop now.

+1. The individual PRs were fine. I'm not going to look at the whole because it's too much code.

anything in particular you want another look at?

I don't think so, @ellisjoe .

Cool. merge away


fix(custom-file-in-bucket): Custom file names are also support for S3 output.

Context
Custom file names were not applied to S3 bucket uploads. (flag -F was not applicable to -D/B)
Description
Include custom file names as well when exporting prowler reports to S3.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check comments and inspect the following:
copyToS3() {
  # Prowler will copy each format to its own folder in S3, that is for better handling
  # and processing by Quicksight or others.

  # Also, check if -F was introduced
  if [ -n "${OUTPUT_FILE_NAME+x}" ]; then
    OUTPUT_PATH="${OUTPUT_FILE_NAME}"
  else
    OUTPUT_PATH="$OUTPUT_DIR/prowler-output-${ACCOUNT_NUM}-${OUTPUT_DATE}"
  fi

  for output_format in "${MODES[@]}";
  do
    case ${output_format} in
      csv)
        s3cp "${OUTPUT_PATH}" "${EXTENSION_CSV}"
      ;;
      html)
        s3cp "${OUTPUT_PATH}" "${EXTENSION_HTML}"
      ;;
      json)
        s3cp "${OUTPUT_PATH}" "${EXTENSION_JSON}"
      ;;
      json-asff)
        s3cp "${OUTPUT_PATH}" "${EXTENSION_ASFF}"
      ;;
      *)
        echo "$OPTRED ERROR!$OPTNORMAL - Invalid output format copying to S3. Use -h for help."
        exit 1
      ;;
    esac
  done
}

s3cp(){
  OUTPUT_PATH="${1}"
  EXTENSION="${2}"
  "${AWSCLI}" ${PROFILE_OPT} s3 cp "${OUTPUT_PATH}.${EXTENSION}" s3://"${OUTPUT_BUCKET}"/${EXTENSION}/ --acl bucket-owner-full-control
}

I love it! Thank you @jfagoagas


Better way of dealing of threads

I believe this is a better way of dealing with the threads that read the output from the long running csharpier process.
closes #568

I dug through some other plugins + documentation, and this seemed to be the proper way to deal with them. I have been using the beta with this thread handling for a couple days and it hasn't caused any issues.


New package: Nlitesoftd.o.o.NTLite version 2024.4.9880.0

Checklist for Pull Requests

[ ] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

Manifests

[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Verify:

Is this different from:
https://github.com/microsoft/winget-pkgs/tree/master/manifests/n/Nlitesoft/NTLite/2024.4.9880.0 ?


openConnection and openConnectionSSL leak file descriptors on connect failures

When attempting to open a connection to an address which can be successfully resolved but not connected to openConnection and openConnectionSSL leave the file descriptor belonging to the socket open.
Test-case:
module Main where

import Control.Exception
import Network.Http.Client
import qualified System.IO.Streams as S

main :: IO ()
main = sequence_
     . take 2048
     . repeat $ handle (\e -> print (e :: IOException))
         (get "http://localhost:60000" (\_ i -> S.connect i S.stdout))

One has to handle exceptions within openConnection* to ensure the socket is closed, e.g.

diff --git a/src/Network/Http/Connection.hs b/src/Network/Http/Connection.hs
index d2eb1a4..d1078ce 100644
--- a/src/Network/Http/Connection.hs
+++ b/src/Network/Http/Connection.hs
@@ -39,7 +39,7 @@ import Blaze.ByteString.Builder (Builder)
 import qualified Blaze.ByteString.Builder as Builder (flush, fromByteString,
                                                       toByteString)
 import qualified Blaze.ByteString.Builder.HTTP as Builder (chunkedTransferEncoding, chunkedTransferTerminator)
-import Control.Exception (bracket)
+import Control.Exception (bracket, bracketOnError, onException)
 import Data.ByteString (ByteString)
 import qualified Data.ByteString.Char8 as S
 import Data.Monoid (mappend, mempty)
@@ -176,19 +176,18 @@ openConnection h1' p = do
     is <- getAddrInfo (Just hints) (Just h1) (Just $ show p)
     let addr = head is
     let a = addrAddress addr
-    s <- socket (addrFamily addr) Stream defaultProtocol
-
-    connect s a
-    (i,o1) <- Streams.socketToStreams s
-
-    o2 <- Streams.builderStream o1
-
-    return Connection {
-        cHost  = h2',
-        cClose = close s,
-        cOut   = o2,
-        cIn    = i
-    }
+    bracketOnError (socket (addrFamily addr) Stream defaultProtocol) close $ \s -> do
+        connect s a
+
+        (i, o1) <- Streams.socketToStreams s
+        o2      <- Streams.builderStream o1
+
+        return Connection {
+            cHost  = h2',
+            cClose = close s,
+            cOut   = o2,
+            cIn    = i
+        }
   where
     hints = defaultHints {addrFlags = [AI_ADDRCONFIG, AI_NUMERICSERV]}
     h2' = if p == 80
@@ -234,21 +233,20 @@ openConnectionSSL ctx h1' p = do
         f = addrFamily $ head is
     s <- socket f Stream defaultProtocol

-    connect s a
-
-    ssl <- SSL.connection ctx s
-    SSL.connect ssl
+    connect s a `onException` (close s)

-    (i,o1) <- Streams.sslToStreams ssl
+    bracketOnError (SSL.connection ctx s) (closeSSL s) $ \ssl -> do
+        SSL.connect ssl

-    o2 <- Streams.builderStream o1
+        (i, o1) <- Streams.sslToStreams ssl
+        o2      <- Streams.builderStream o1

-    return Connection {
-        cHost  = h2',
-        cClose = closeSSL s ssl,
-        cOut   = o2,
-        cIn    = i
-    }
+        return Connection {
+            cHost  = h2',
+            cClose = closeSSL s ssl,
+            cOut   = o2,
+            cIn    = i
+        }
   where
     h2' :: ByteString
     h2' = if p == 443

Maybe relevant to #105


network Bandwidth Charges applicable when exporting data from Azure to On-premises using import and export service

Team,
Thanks in advance, Just wanted to know if i would be paying for storage transaction charges as well as network egress charges when i export data from Azure storage to On premises by shipping the drive. As per the statement "The standard egress charges are applicable when data is exported from Blob storage."
Egress charges are network outbound charges right?
While importing the data to Azure we only pay standard transaction charges but if we export the data to hdd and use import and export service are we paying for standard network outbound (Egress charges) which is not suitable as we are paying for HDD charges but we are not using network to copy the data outside. Please clarify

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

ID: 8101ceee-eb49-ec7c-dc15-0d9ca1dad85f
Version Independent ID: 22ff579e-38f7-800e-d83f-a079a714a8fd
Content: Using Azure Import/Export to transfer data to and from Azure Storage
Content Source: articles/storage/common/storage-import-export-service.md
Service: storage
GitHub Login: @alkohli
Microsoft Alias: alkohli

@aquibqureshi26 Thank you for the valuable feedback,we are investigating the issue.

@aquibqureshi26 I assigned the issue to @muralikk for help.

By design, data exported out of Azure storage incurs network egress charges . The customer gets the benefit of not paying for the network from their premises to Azure by using import/export.

Hi Muralikk,
If you are saying we would not be charged for egress if we are using Import/Export Service then why there is mentioned about the Egress Charges in this article? Also the link which is mentioned in the transaction cost is of network egress pricing link. Below is the highlighted content from this article which is confusing.
"Transaction costs
The standard egress charges are applicable when data is exported from Blob storage. "

Hi Aquibqureshi26,
The online documenation article is correct. There will be egress charges if you use import/export service to export data out of Azure. Sorry if my response was not clear.

Thanks Muralikk. if We're not using network and using HDD to transfer the data then we shouldn't get the cost of egress. If that is the answer then thanks for clarifying the same. Please close the thread.

#please-close


CI/CD: add action for container build

add action for container build
rename and add path filter for python license check

LGTM

A minor comment: Next time, suggest split PR into different PRs if it covers multiple, different & independent feature or bug fixing. One PR is to complete one task.

Got it.

LGTM


DS Tailwind Theme Preset [Draft] - Mobile

We need to investigate the feasibility of using Tailwind CSS for our external component library. This includes figuring out how the configuration will work at the design system level and ensuring that the classnames can still be used when the component library is installed in other projects.
Tasks:

Research how to integrate Tailwind CSS into our design system.
Determine the best approach for configuring Tailwind CSS at the design system level.
Investigate how to ensure that Tailwind CSS classnames are preserved and functional when the component library is installed in other projects.
Document the setup process and any necessary configuration steps.
Create a proof of concept demonstrating Tailwind CSS usage in a component library.

Acceptance Criteria:

Research Documentation:

Detailed documentation on how Tailwind CSS can be integrated into our design system.
Overview of any potential challenges and solutions.

Configuration Setup:

A clear, step-by-step guide on how to configure Tailwind CSS at the design system level.
Explanation of how to manage Tailwind CSS configuration files.
Can the configuration be exported and installed like a package to the Tailwind config of product repo

Classname Preservation:

A documented strategy for ensuring Tailwind CSS classnames are preserved and functional in projects that install the component library.
A proof of concept demonstrating that the classnames work as expected when the library is used in an external project.

Proof of Concept:

A sample component library using Tailwind CSS, showing proper configuration and classname usage.
Example project demonstrating the installation and usage of the component library with preserved Tailwind CSS classnames.

Documentation:

Comprehensive documentation for developers on how to set up and use Tailwind CSS in the component library.
Instructions on how to install and use the component library in external projects.

Additional Information:

Ensure the approach is scalable and maintainable.
Consider potential impact on build times and bundle sizes.
Collaborate with the design team to align on design tokens and styles.

This ticket aims to ensure that we have a robust and scalable approach to using Tailwind CSS in our external component library, with clear documentation and a proof of concept to guide future development.

Findings here


Remove session[:adv_search_on]

There are only setters in the code and no getters.
$ git grep adv_search on
app/controllers/application_controller.rb:    session[:adv_search_on] = false
app/controllers/application_controller.rb:    session[:adv_search_on] = false if action_name[0..3] != "adv_" # Turn off advanced search flag if not an adv search action

@Fryguy @martinpovolny @dclarizio @h-kataria Please review.

@chessbyte looks good.


TestCase External ID

Hi,
I am trying to use the function:
Execution e = API.getLastExecutionResult(testPlanId, testCaseId, testCaseExternalId);
in order to get Execution information. I am confused regarding the third parameter, testCaseExternalId, because the method TestCase.getFullExternalId(); returns a String so I dont know what to use as a testCaseExternalId. Can you help me with this ?

Oh, good question @vherasme . Let me check what's going on...

@vherasme I think this confusion is a historical issue. Looking at the PHP code, I can see externalId and fullExternalId.
There's also some code checking if external ID is numeric: https://github.com/TestLinkOpenSourceTRMS/testlink-code/blob/130dbb6a050f3311df09f37630e9389d0dfcbb42/lib/functions/testcase.class.php#L2947
The code doesn't look much different than what I saw some years ago. I still cannot confirm from looking at the code in GitHub UI (not using IDE right now) whether that's an int or string. Might need more time to confirm, and see why we have what we have in Java, and how we could improve it.
If you have any suggestions, feel free to update this issue or raise a pull request and I'll take a look.
Thanks!
Bruno

Ok, found out that full external ID is the prefix + - + external ID. Turns out we had the external ID in some methods, as external_id... but in other methods it was returned as tc_external_id.
Now we are collecting both (if the first is null, we just try the other one). Added a externalId property to TestCase too, so you should be able to use the new method now.
Thanks!


add mailhog in docker-compose (suggestion)

add mailhog in docker-compose for test email 👍
 mailhog:
    image: mailhog/mailhog
    container_name: mailhog
    logging:
      driver: 'none'  # disable saving logs
    ports:
      - 1025:1025 # smtp server
      - 8025:8025 # web ui
    networks:
      - laravel

This is already in the docker-compose.yml file
  mailhog:
    image: mailhog/mailhog:latest
    container_name: mailhog
    ports:
      - 1025:1025
      - 8025:8025
    networks:
      - laravel

Perfect I had not seen :)


Cannot compile: Neither 0.11.0 or 0.11.1 available via cocoapods

Currently a cocoa pod integrated HanekeSwift does not compile on Xcode (Version 9.4.1 (9F2000)) because I can only access 0.10.1.
pod 'HanekeSwift' results in:
Using HanekeSwift (0.10.1)
pod 'HanekeSwift', '=0.11.1' results in:
[!] CocoaPods could not find compatible versions for pod "HanekeSwift":
In Podfile:
HanekeSwift (= 0.11.1)

I have the same problem. @hpique @joanromano @Lascorbe @oriolblanc

I face the same question! how solve it

final I use pod 'HanekeSwift', :git => 'https://github.com/Haneke/HanekeSwift.git', :tag => 'v0.11.1'

@koala99 lifesaver!  thank you!

@dvaldivia no solution for swift 4.2? :(

Can't build in Swift 4.2

Change the pod's swift version 4 rather than 4.2 and it should compile although it will complain.

I have the same problem, I can't validate my podspec file as it has a Haneke dependency.


java.lang.IndexOutOfBoundsException: index=0, limit=0

Hi guys. I downloaded latest version of your library from maven central as gradle dependency.
I trying to merge multiple videos into one, and got an exception from library
My code
try {
                Movie movie = new Movie();
                Log.e("PATH", Integer.toString(filePaths.size()));
                for(String path : filePaths) {
                    Log.e("PATH", path);
                    H264TrackImpl track = new H264TrackImpl(new FileDataSourceImpl(path));
                    movie.addTrack(track);

                }
                Container out = new DefaultMp4Builder().build(movie);
                FileOutputStream fos = new FileOutputStream(new File("h264_output.mp4"));
                FileChannel fc = fos.getChannel();
                out.writeContainer(fc);
                fos.close();
            } catch (IOException e) {
                e.printStackTrace();
            }

And got exception:
 Caused by: java.lang.IndexOutOfBoundsException: index=0, limit=0
            at java.nio.Buffer.checkIndex(Buffer.java:150)
            at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:158)
            at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.readSamples(H264TrackImpl.java:341)
            at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.parse(H264TrackImpl.java:112)
            at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.<init>(H264TrackImpl.java:103)
            at com.myapp.activity.TestCompilationActivity.onCreate(TestCompilationActivity.java:51)
            at android.app.Activity.performCreate(Activity.java:5280)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2322)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2410)
            at android.app.ActivityThread.access$800(ActivityThread.java:155)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1331)
            at android.os.Handler.dispatchMessage(Handler.java:110)
            at android.os.Looper.loop(Looper.java:193)
            at android.app.ActivityThread.main(ActivityThread.java:5388)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:655)
            at dalvik.system.NativeStart.main(Native Method)

Any suggestions ?

have the same issue

Has anyone figured this out ?

Plz Send me example file.
pranay<EMAIL_ADDRESS>schrieb am So., 24. Mai 2015 20:51:

Has anyone figured this out ?
—
Reply to this email directly or view it on GitHub
https://github.com/sannies/mp4parser/issues/19#issuecomment-105047482.

This is my code to combine audio and video. Could this issue be due to the encoding of my video file ? Any pointers would be helpful.
        H264TrackImpl h264Track = new H264TrackImpl(new MemoryDataSourceImpl(videoData));
        AACTrackImpl aacTrack = new AACTrackImpl(new FileDataSourceImpl(audioFile));
        Movie movie = new Movie();
        movie.addTrack(h264Track);
        movie.addTrack(aacTrack);
        Container mp4file = new DefaultMp4Builder().build(movie);
        FileChannel fc = new FileOutputStream(new File(resultFile)).getChannel();
        mp4file.writeContainer(fc);
        fc.close();

05-24 14:55:22.810  19006-19006/com.andromeda.vidsmash W/System.err﹕ Unknown NAL unit type: 16
05-24 14:55:22.812  19006-19006/com.andromeda.vidsmash W/System.err﹕ java.lang.IndexOutOfBoundsException: index=0, limit=0
05-24 14:55:22.823  19006-19006/com.andromeda.vidsmash W/System.err﹕ at java.nio.Buffer.checkIndex(Buffer.java:150)
05-24 14:55:22.823  19006-19006/com.andromeda.vidsmash W/System.err﹕ at java.nio.ByteArrayBuffer.get(ByteArrayBuffer.java:158)
05-24 14:55:22.824  19006-19006/com.andromeda.vidsmash W/System.err﹕ at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.readSamples(H264TrackImpl.java:297)
05-24 14:55:22.824  19006-19006/com.andromeda.vidsmash W/System.err﹕ at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.parse(H264TrackImpl.java:108)
05-24 14:55:22.824  19006-19006/com.andromeda.vidsmash W/System.err﹕ at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.<init>(H264TrackImpl.java:90)
05-24 14:55:22.824  19006-19006/com.andromeda.vidsmash W/System.err﹕ at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.<init>(H264TrackImpl.java:96)
05-24 14:55:22.824  19006-19006/com.andromeda.vidsmash W/System.err﹕ at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.<init>(H264TrackImpl.java:100)

Encoding could be an issue. But it's not very likely in my eyes.
Did you compile my code on your own?  If yes: Did you use the aspectJ
compiler to add the aspects?
pranay<EMAIL_ADDRESS>schrieb am Mo., 25. Mai 2015 00:00:

This is my code to combine audio and video. Could this issue be due to the
encoding of my video file ? Any pointers would be helpful.
    H264TrackImpl h264Track = new H264TrackImpl(new MemoryDataSourceImpl(videoData));
    AACTrackImpl aacTrack = new AACTrackImpl(new FileDataSourceImpl(audioFile));
    Movie movie = new Movie();
    movie.addTrack(h264Track);
    movie.addTrack(aacTrack);
    Container mp4file = new DefaultMp4Builder().build(movie);
    FileChannel fc = new FileOutputStream(new File(resultFile)).getChannel();
    mp4file.writeContainer(fc);
    fc.close();

05-24 14:55:22.810  19006-19006/com.andromeda.vidsmash W/System.err﹕ Unknown NAL unit type: 16
05-24 14:55:22.812  19006-19006/com.andromeda.vidsmash W/System.err﹕ java.lang.IndexOutOfBoundsException: index=0, limit=0
05-24 14:55:22.823  19006-19006/com.andromeda.vidsmash W/System.err﹕ at java.nio.Buffer.checkIndex(Buffer.java:150)
05-24 14:55:22.823  19006-19006/com.andromeda.vidsmash W/System.err﹕ at java.nio.ByteArrayBuffer.get(ByteArrayBuffer.java:158)
05-24 14:55:22.824  19006-19006/com.andromeda.vidsmash W/System.err﹕ at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.readSamples(H264TrackImpl.java:297)
05-24 14:55:22.824  19006-19006/com.andromeda.vidsmash W/System.err﹕ at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.parse(H264TrackImpl.java:108)
05-24 14:55:22.824  19006-19006/com.andromeda.vidsmash W/System.err﹕ at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.(H264TrackImpl.java:90)
05-24 14:55:22.824  19006-19006/com.andromeda.vidsmash W/System.err﹕ at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.(H264TrackImpl.java:96)
05-24 14:55:22.824  19006-19006/com.andromeda.vidsmash W/System.err﹕ at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.(H264TrackImpl.java:100)
—
Reply to this email directly or view it on GitHub
https://github.com/sannies/mp4parser/issues/19#issuecomment-105064955.

I didn't compile the code. I included it as a maven dependency. Reg. the origin of my video source, I used the below command on a mp4 video i had and i used that as input to the above code. Any pointers would be helpful to resolve this issue.
ffmpeg -i video.mp4 -c:a copy -c:v libx264 -profile:v baseline -level 1 video.mp4

Hmm - ok, then it's definitively the video. I don't want to chase ghosts -
so please send me an example file! My ffmpeg might be a different revision
than your ffmpeg. I'm running ffmpeg on windows, you might run it on Mac
(or linux or or or) . The input video might cause ffmpeg to produce
different output as well.
2015-05-25 8:17 GMT+02:00 pranay<EMAIL_ADDRESS>
I didn't compile the code. I included it as a maven dependency. Reg. the
origin of my video source, I used the below command on a mp4 video i had
and i used that as input to the above code. Any pointers would be helpful
to resolve this issue.
ffmpeg -i video.mp4 -c:a copy -c:v libx264 -profile:v baseline -level 1
video.mp4
—
Reply to this email directly or view it on GitHub
https://github.com/sannies/mp4parser/issues/19#issuecomment-105138456.

This is the video.. https://www.dropbox.com/s/7uye009cuz3kuaf/darkknightnoaudio.mp4?dl=0

Hi Pranay,
the video you sent me is already an MP4 that contains audio and video. So
basically it's the result of the code you were psoting 8 hours ago.
The H264TrackImpl is used to parse raw H264 Annex B stream, the
AACTrackIMpl is used for raw AAC streams.
Use MovieCreator to create a Movie object from the MP4 and then select the
video track by calling getTracks().get(0) if you have a video-only MP4
file!
I'm not 100% sure what you are trying to do!
2015-05-25 8:28 GMT+02:00 pranay<EMAIL_ADDRESS>
This is the video..
https://www.dropbox.com/s/7uye009cuz3kuaf/darkknightnoaudio.mp4?dl=0
—
Reply to this email directly or view it on GitHub
https://github.com/sannies/mp4parser/issues/19#issuecomment-105139484.

Thank you so much for helping me out. I'll correct my code.
I'm just trying to merge a given video file (after removing the original audio) and add my custom audio to it.

Hello sir,
I am using MP4Parser for my project.I have one video file  (audio+video) in .mp4 format and another audio file in .mp3 format . I have to merge two files (.mp4 and .mp3)such that audio of that video file should be muted and new audio should be there in place of that.
Please help in this issue....I will be very thankful to you...

Sir can't we use .mp3 file directly for audio merging

Mp3 in MP4  containers doesn't work very well.  Please try to use AAC
instead.
What is your actual problem. What did you already try?
udit<EMAIL_ADDRESS>schrieb am Do., 28. Mai 2015 16:31:

Sir can't we use .mp3 file directly for audio merging
—
Reply to this email directly or view it on GitHub
https://github.com/sannies/mp4parser/issues/19#issuecomment-106356108.

Sir I have merge both .mp4 files but now I have to merge
audio.mp3 and video.mp4 file... please suggest me the solution
On Thu, May 28, 2015 at 8:42 PM, Sebastian Annies<EMAIL_ADDRESS>wrote:

Mp3 in MP4 containers doesn't work very well. Please try to use AAC
instead.
What is your actual problem. What did you already try?
udit<EMAIL_ADDRESS>schrieb am Do., 28. Mai 2015 16:31:

Sir can't we use .mp3 file directly for audio merging
—
Reply to this email directly or view it on GitHub
https://github.com/sannies/mp4parser/issues/19#issuecomment-106356108.

—
Reply to this email directly or view it on GitHub
https://github.com/sannies/mp4parser/issues/19#issuecomment-106393689.

--
With Regards,
Udit Kumawat
Fourth year Graduate Student (B. Tech In IT + MTech)Department of
Integrated Post Graduation (IPG)Indian Institute of Information Technology
and Management, GwaliorMobile: +91-8989826236
in.linkedin.com/in/uditkumawat94/
http://in.linkedin.com/in/uditkumawat94/

Hi,
MP3 in MP4 containers is not working well.  Don't do it is my advice. You
might want to send the mp3  through Android's MediaCodec to get an AAC.
Grüße,
Sebastian
udit<EMAIL_ADDRESS>schrieb am Fr., 29. Mai 2015 07:49:

Sir I have merge both .mp4 files but now I have to merge
audio.mp3 and video.mp4 file... please suggest me the solution
On Thu, May 28, 2015 at 8:42 PM, Sebastian Annies <
<EMAIL_ADDRESS>wrote:

Mp3 in MP4 containers doesn't work very well. Please try to use AAC
instead.
What is your actual problem. What did you already try?
udit<EMAIL_ADDRESS>schrieb am Do., 28. Mai 2015 16:31:

Sir can't we use .mp3 file directly for audio merging
—
Reply to this email directly or view it on GitHub
<https://github.com/sannies/mp4parser/issues/19#issuecomment-106356108
.

—
Reply to this email directly or view it on GitHub
https://github.com/sannies/mp4parser/issues/19#issuecomment-106393689.

--
With Regards,
Udit Kumawat
Fourth year Graduate Student (B. Tech In IT + MTech)Department of
Integrated Post Graduation (IPG)Indian Institute of Information Technology
and Management, GwaliorMobile: +91-8989826236
in.linkedin.com/in/uditkumawat94/
http://in.linkedin.com/in/uditkumawat94/
—
Reply to this email directly or view it on GitHub
https://github.com/sannies/mp4parser/issues/19#issuecomment-106697341.

Hi! I need to merge video (mp4) and audio (aac), into 1 file (mp4). I did like this:
public boolean mux(String videoFile, String audioFile, String outputFile) throws IOException {
    H264TrackImpl h264Track = new H264TrackImpl(new FileDataSourceImpl(videoFile));
    AACTrackImpl aacTrack = new AACTrackImpl(new FileDataSourceImpl(audioFile));

    Movie movie = new Movie();
    movie.addTrack(h264Track);
    movie.addTrack(aacTrack);

    Container mp4file = new DefaultMp4Builder().build(movie);

    FileChannel fc = new FileOutputStream(new File(outputFile)).getChannel();
    mp4file.writeContainer(fc);
    fc.close();

    return true;

my multimedia files:
http://dropmefiles.com/fT3Wr
where videoFile, audioFile and outputFile are paths like "/storage/emulated/0/DCIM/derzkayaaac.aac" etc.
I got an error during execution :
Caused by: java.lang.IndexOutOfBoundsException: index=0, limit=0
at java.nio.Buffer.checkIndex(Buffer.java:150)
at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:171)
at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.readSamples(H264TrackImpl.java:297)
at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.parse(H264TrackImpl.java:108)
at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.(H264TrackImpl.java:90)
at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.(H264TrackImpl.java:96)
at com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.(H264TrackImpl.java:100)
at com.dev.illiakaliuzhnyi.derzkaya.Mp4ParserAudioMuxer.mux(Mp4ParserAudioMuxer.java:33)
please help me out! Thank you, have a nice day!

Hi,
the H264TrackImpl is used to read raw h264 files. If the h264 is already in
a MP4 container you should use the MovieCreator class to build a Movie
object.You can then add the AACTrackImpl to the existing tracks and write
the result to disk.
BR,
Sebastian
2015-06-10 17:29 GMT+02:00 illiaKalu<EMAIL_ADDRESS>
Hi! I need to merge video (mp4) and audio (aac), into 1 file (mp4). I did
like this:
public boolean mux(String videoFile, String audioFile, String outputFile)
throws IOException {
H264TrackImpl h264Track = new H264TrackImpl(new FileDataSourceImpl(videoFile));
AACTrackImpl aacTrack = new AACTrackImpl(new FileDataSourceImpl(audioFile));

Movie movie = new Movie();
movie.addTrack(h264Track);
movie.addTrack(aacTrack);

Container mp4file = new DefaultMp4Builder().build(movie);

FileChannel fc = new FileOutputStream(new File(outputFile)).getChannel();
mp4file.writeContainer(fc);
fc.close();

return true;

my multimedia files:
http://dropmefiles.com/fT3Wr
where videoFile, audioFile and outputFile are paths like
"/storage/emulated/0/DCIM/derzkayaaac.aac" etc.
I got an error during execution :
Caused by: java.lang.IndexOutOfBoundsException: index=0, limit=0
at java.nio.Buffer.checkIndex(Buffer.java:150)
at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:171)
at
com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.readSamples(H264TrackImpl.java:297)
at
com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.parse(H264TrackImpl.java:108)
at
com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.(H264TrackImpl.java:90)
at
com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.(H264TrackImpl.java:96)
at
com.googlecode.mp4parser.authoring.tracks.H264TrackImpl.(H264TrackImpl.java:100)
at
com.dev.illiakaliuzhnyi.derzkaya.Mp4ParserAudioMuxer.mux(Mp4ParserAudioMuxer.java:33)
please help me out! Thank you, have a nice day!
—
Reply to this email directly or view it on GitHub
https://github.com/sannies/mp4parser/issues/19#issuecomment-110796472.

can you show it with an example ? actually i am also facing the same issue with same code, i understand that H264TrackImpl requires .h264 file format and we have mp4, still i am unable to figure out how can i remove the earlier audio from mp4 and then add my own mp3 or aac audio to that video.

Movie originalAudioAndVideo = MovieCreator.build("videoAndAudio.mp4");
Track nuAudio = new AACTrackImpl( new FileDataSourceImpl("nuAudio.aac"));
List nuTracks = new ArrayList();
for (Track track : originalAudioAndVideo.getTracks() ) {
if (track.getHandler().equals("vide")) {
nuTracks.add(track);
}
}
nuTracks.add(nuAudio);
Movie nuMovie = new Movie();
nuMovie.setTracks(nuTracks);
FragmentedMp4Builder mp4builder = new FragmentedMp4Builder();
Container c = mp4builder.build(nuMovie);
c.writeContainer(Channels.newChannel(new FileOutputStream("out.mp4")));
2015-07-13 9:28 GMT+02:00 amit-bst<EMAIL_ADDRESS>
can you show it with an example ? actually i am also facing the same issue
with same code, i understand that H264TrackImpl requires .h264 file format
and we have mp4, still i am unable to figure out how can i remove the
earlier audio from mp4 and then add my own mp3 or aac audio to that video.
—
Reply to this email directly or view it on GitHub
https://github.com/sannies/mp4parser/issues/19#issuecomment-120837391.

Thanks sannies, I tried this sample with the following files but the out video is not functional it sticks sometimes and no sound is there in this video. Here is the link to file
https://www.dropbox.com/sh/n7r8jn7lfxf4zzw/AADpthlihBc630x61NimejoEa?dl=0

Hi,
I am merging mp3 into mp4. It works fine on small length mp3 like 10 seconds, 20 seconds but when length exceeded like 53 seconds or 1:03 seconds, it gives IndexOutOfBound Exception.
I think its on get(location). Can you please provide me the solution.
Track audioTrack = audio.getTracks().get(0);
video.addTrack(audioTrack);

So there is a list of tracks and when you try to access the first element
you get an IndexOutOfBoundsException. What does that tell you? Perhaps that
the list doesn't contain any element?
2015-08-09 23:54 GMT+02:00 Asphanyaar<EMAIL_ADDRESS>
Hi,
I am merging mp3 into mp4. It works fine on small length mp3 like 10
seconds, 20 seconds but when length exceeded like 53 seconds or 1:03
seconds, it gives IndexOutOfBound Exception.
I think its on get(location). Can you please provide me the solution.
Track audioTrack = audio.getTracks().get(0);
video.addTrack(audioTrack);
—
Reply to this email directly or view it on GitHub
https://github.com/sannies/mp4parser/issues/19#issuecomment-129250827.

@sannies I tried to follow your instructions in the comment from August 13, 2015. But I get an NoSuchMethod error at this line: Movie originalAudioAndVideo = MovieCreator.build("videoAndAudio.mp4");

Same issue here

Hi. I'm having the same issue. While trying to convert from h264 to mp4 I get the IndexOutOfBoundsException. I know it does have something to do with the file and it's encoding, but still, ffmpeg is able to converti it succesfully (throwing some errors along the way).
Is there a chance I can provide an h264 file so that you can take a look at it?
Thanks in advance.
Best regards


Example uart_loopback does not compile.   TX buffer managment in Uart is broken sending garbage characters.

The example https://github.com/esp-rs/esp-idf-hal/blob/master/examples/uart_loopback.rs  fails to compile due to a missing import.   I adapted it to my needs and fixed a couple errors  so it both compiles and provides proper response when tested with linux screen.
As shown below the two commented lines to uart.write() and uart_wait_tx_done() end up causing 1 character  followed by 10 garbage characters.  When the write is replaced with write_nb() which does not use the uart tx buffer it works correctly.
I would greatly appreciate the proper esp_idf_hal example code to reset the watchdog timer at the bottom of the loop so I can remove the sleep_ms(15).  I know that we can do this with async or threads but what I really want here is a demonstration of a fast polling loop. I find they scale better and provide more predictable timing than spawning a bunch of threads.
### Results working copied from linux screen correctly echoing keys hit from linux screen connected as uart device on other end

abcdefghijklmnopaewwabcdefghijklmnopabcdefg

### Results copied from linux screen when the write() is used instead of write_nb()

�������������b����������c�555555555�MMMMMMMMMM���555555555�����������e�555555555�����������e������������d����������f�55555555��55555555555555�������i����������j����������k����������l����������m����������n�55555555��SSSSSSSSSSSSSS����������������aSSSSSSSSSSSSSS
                    ��555555555쪪��������c�555555555�����������a�55555555��555555555������������a����������b�55555555��MMMMMMMMMMMMMm��555555555�����������a�555555555�SSSSSSSSSSSS������������d����������e55555555555555�����������g�555555555�������iSSSSSSSSSSSS�����������k�555555555�55555555555������������n����������o�555555555����������

Source that works correctly
//! Non Blocking fast poll Uart RS485 1/2 duplex echo for RS485 style transciever
//! test
//!
//! Folowing pins are used:
//! TX    GPIO43
//! RX    GPIO44
//!//!
//! This example transfers data via UART.
//! Connect TX and RX pins to see the outgoing data is read as incoming data.
//! Echo characters sent from terminal such as linux screen.
#![allow(unused_imports)]
#![allow(dead_code)]

use anyhow::Result;
use esp_idf_hal::delay::NON_BLOCK;
use esp_idf_hal::gpio;
use esp_idf_hal::gpio::PinDriver;
use esp_idf_hal::delay::Delay;
use esp_idf_hal::peripherals::Peripherals;
use esp_idf_hal::prelude::*;
use esp_idf_hal::uart::*;
use esp_idf_sys;
// TODO:  Figure out how to make WDT work esp_idf_hal https://github.com/esp-rs/esp-hal/blob/main/examples/src/bin/watchdog.rs
// Until then disable WDT in menu config

fn main() -> anyhow::Result<()> {
    esp_idf_hal::sys::link_patches();
    let peripherals = Peripherals::take()?;

    let tx = peripherals.pins.gpio43;
    let rx = peripherals.pins.gpio44;
    let led_pin = peripherals.pins.gpio11;
    let rs_48_en_pin = peripherals.pins.gpio21;
    let delay: Delay = Default::default();
    let mut led = PinDriver::output(led_pin)?;
    let mut rs48_enable = PinDriver::output(rs_48_en_pin)?;

    println!("Starting UART loopback test");
    let config = config::Config::new().baudrate(Hertz(115_200));
    let uart = UartDriver::new(
        peripherals.uart1,
        tx,
        rx,
        Option::<gpio::Gpio0>::None,
        Option::<gpio::Gpio1>::None,
        &config,
    )?;

    loop {
        let mut buf = [0_u8; 1];
        uart.read(&mut buf, NON_BLOCK)?;
        // we know read will return a 0 in buf
        // when nothing is available so we ignore
        if buf[0] != 0 {
          println!("Written 0xaa, read {:?} {:?} 0x{:02x}", buf[0] as char, buf[0],buf[0]);
          rs48_enable.set_high()?;
          delay.delay_us(150); // need to allow transceiver time to enter active mode

          // Calling Write directly causes mutliple garbage characters to
          // be sent.  I think the uart is not properly managing it's buffer.
          //uart.write(&buf)?;
          //uart.wait_tx_done(150);

          uart.write_nb(&mut buf)?;
          delay.delay_ms(1);
          //buf[0] = 0;
          rs48_enable.set_low()?;
          led.toggle()?;
        }
        // Only need this delay because watchdog fires otherwise
        delay.delay_ms(18); // TODO: TO RESET WATCHDOG IN TIGHT LOOP LIKE THIS USING esp_idf_hal

        // TODO: DO SOME OTHER WORK SINCE WE ARE NO LONGER BLOCKING
        // ON DATA IN UART AVAILABILITY

    }
}

### Cargo for this file

[package]
name = "ex-uart-non-block-rs485"
version = "0.1.0"
authors = ["joe ellsworth<EMAIL_ADDRESS>edition = "2021"
resolver = "2"
rust-version = "1.71"
[profile.release]
opt-level = "s"
[profile.dev]
debug = true    # Symbols are nice and they don't increase the size on Flash
opt-level = "z"
[features]
default = ["std", "embassy", "esp-idf-svc/native"]
pio = ["esp-idf-svc/pio"]
std = ["alloc", "esp-idf-svc/binstart", "esp-idf-svc/std"]
alloc = ["esp-idf-svc/alloc"]
nightly = ["esp-idf-svc/nightly"]
experimental = ["esp-idf-svc/experimental"]
embassy = ["esp-idf-svc/embassy-sync", "esp-idf-svc/critical-section", "esp-idf-svc/embassy-time-driver"]
[dependencies]
log = { version = "0.4", default-features = false }
esp-idf-svc = { version = "0.48", default-features = false }
esp-idf-hal = "0.43.1"
anyhow = "1.0.82"
esp-idf-sys = "0.34.1"
[build-dependencies]
embuild = "0.31.3"

jesse how do I tell what should be filed here or over in esp-rs.  This is the second one of my issues you had to move.


Recursively import packages if desired

Added a flag "-recursive" that will recursive import packages passed with the pkg flag.
This probably shouldn't be merged in this state, I wanted it in the moment so hacked it together. Putting up this PR to see if there is interest from @motemen and what you would want the feature to look like. Happy to rework the change if its something you would like to add. I found it very useful since the project I'm working on has 145 packages under it.

Failing build is not due to this PR same error seems to be happening on some other PRs

Thank you.
By includePackage gore includes files to the session's main package, so recursive including may cause unwanted behaviors e.g. name collision, and may not be very useful.
I think it would be nicer to add import declarations recursively rather than including files.
For example if we invoke gore like
gore -pkg=path/to/pkg/...

Creating a repl session like:
import . "path/to/pkg"
import "path/to/pkg/a"
import "path/to/pkg/b"
...

func main() {
  // session code goes here
}

How about that?

Ah I did not realize that when I hacked it together. I like your solution much better, thanks for taking a look and thinking about it. I'll get that implemented sometime this weekend (most likely)

Closing as I (obviously) have not found time to integrate feedback. Soon still I hope


Unit-tests and refCounter corrections

The ref-countes for load-balancers required an overhaul.
Unit-test added for configuration updates added.

Fixes #12


Add tests for com.vladsch.flexmark.util.Utils and describe bugs

Hi,
I've analysed your codebase and seen some parts of com.vladsch.flexmark.util.Utils are not yet tested.
I've written the tests for the functions in Utils.java with the help of Diffblue Cover.
While working on producing these tests, I noticed some current behaviours in these functions that appear to be incorrect. Tests which describe such behaviour have been clearly marked with comments explaining why they appear to be incorrect, and what output we should expect if the function was behaving as intended. Please let me know whether you would like an additional PR to fix these behaviours.
Hopefully these tests will help you to increase the quality of flexmark's test suite. If you have any other classes you'd like help writing tests for, please let me know.

@James-Adam, much appreciated. I simply have not had time to address all tests. I wish I could focus on this and a few other projects without having to distract myself with earning a living. ;)
I will merge your tests and take a look at the incorrect behaviour which is most likely bugs.

@vsch Not a problem! If you have any questions regarding the tests or the behaviours I have flagged as potentially being bugs, feel free to get in touch!

@James-Adam, can confirm the bugs. I fixed all the detected bugs and updated the tests to reflect correct operation.
The wrapWith was completely screwed up. Prefix was being added as suffix.
Thank you very much. The fixes and test will be part of the next release.

@James-Adam, thank you and your comments were succinct and clear. I also changed some tests for wrapWith because the implementation was off the wall wrong. I threw it in for completeness but lucky for me did not use it anywhere.
I will be refactoring the code to eliminate a lot of the duplicate Utils String implementation into a reusable String/CharSequence that can be shared with BasedSequence so all these extra functions have a common tested implementation.
BasedSequence morphed over time to include a lot of untested methods which I need to address and would like to do it in a re-usable interface with default implementations to allow including implements RichCharSequence for example, adding most of the functionality with minimal implementation, if any, by the class.

BTW, I pushed the changed Utils and  UtilsTest to the master branch.


Is it possible to have 2 icons switch back and forth when expanding or collapsing?

Right now we see a button whose text changes.
I was wondering if there is a way to use svg icons or anything else instead of the button. For e.g. ↑ or ↓

Yes, the content of the collapse and toggles are completely up to the implementation. Check out the examples within this repo to see the source code of the demos to give you an idea.


Kotlin SDK error when deleting an endpoint

It looks like the Kotlin SDK has same endpoints that aren't working well because it tries to use Unit (I assume as a no-content?) which fails with the below error. Maybe we need a way to (de?)serialize Unit, or alternatively fix the generator not to use Unit at all.
Code
fun main() {
    val svix = Svix("key")
    runBlocking {
        svix.endpoint.delete("appId", "endpointId") // <-- this throws the exception
    }
}

Exception
Exception in thread "main" java.lang.IllegalArgumentException: Platform class kotlin.Unit requires explicit JsonAdapter to be registered
                at com.squareup.moshi.ClassJsonAdapter$1.create(ClassJsonAdapter.java:75)
                at com.squareup.moshi.Moshi.adapter(Moshi.java:145)
                at com.squareup.moshi.Moshi.adapter(Moshi.java:105)
                at com.squareup.moshi.Moshi.adapter(Moshi.java:79)
                at com.svix.kotlin.internal.apis.EndpointApi.v1EndpointDelete(EndpointApi.kt:1506)

I'm still looking into this. Hope to have a resolution in place by end of day.


Execution failed for task ':app:mergeReleaseNativeLibs'.

Description
Hello,
When I trying to build Android I always receive this error
I am using Expo 47

React Native Version
0.70.5
Output of npx react-native info
System:
OS: macOS 11.4
CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
Memory: 96.59 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 18.14.0 - /usr/local/bin/node
Yarn: Not Found
npm: 9.5.1 - ~/hrichi/seven-mobile.fr/node_modules/.bin/npm
Watchman: 2<IP_ADDRESS> - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 13.0/13A233 - /usr/bin/xcodebuild
Languages:
Java: 11.0.15 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: ^18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-macos: Not Found
Steps to reproduce
.
Snack, code example, screenshot, or link to a repository

Hi @hrichi-kabil
Thanks for reporting this issue.
As you said you're using Expo, please open this issue against this other repository:
https://github.com/expo/expo/issues
I'll be closing this but feel free to reopen if the other repo points back to us as a issue in the core of React Native.

Hi @hrichi-kabil Thanks for reporting this issue.
As you said you're using Expo, please open this issue against this other repository:
https://github.com/expo/expo/issues
I'll be closing this but feel free to reopen if the other repo points back to us as a issue in the core of React Native.

done


Maya: Change namespace for references

Brief description
Change namespace for references in Maya for a better readability. Proposed format: {asset}:{subset}_GRP

This is quite a fundamental change, so it'll need at least a setting that is off by default.

For this case, it would be great if the users can set their own format for the namespace in the setting instead of hard-coding the format

If reviewable pls put some testing notes for user based testing, thx!

Hi, I see you closed this PR without merging it. Will it be merged some day or do we need to modify things ?