Ukrainian translation added

Need a some review, I invite the Ukrainian community to a discussion for check and confirmation

Thank you.

Okay, look like there is no Ukrainian community here :D Just accept this PR, please

Ми тут, як це нема :). Great, waiting for Ukrainian project to use it.


Translation to Moodle XML

Modify the current implementation of the buildmoodlexml function to not output plain text but instead Moodle xml format

General template generation now done.


Feature. Change background based on the card selected

What is your opinion on a feature where the background will change based on the card selected ?
It will look something like this (I hope the pictures are pretty clear, couldn't upload a video for now)

and this

There is also a nice fade transition when changing the card.
I think it will give the app a  more immersive or personalised feel.For the  background images i used the same url that is for Thumbnails but changed the resolution so that the picture will not be cropped like in the thumbnails.

Yeah I really like the idea.
What is the resolution you're planing to use ?  The current screen resolution I suppose or fixed ?

Awesome
Well for the images i used this "https://ott.formula1.com/image-resizer/image/%s?w=1920&h=1080&o=L&q=HI" so that i get the highest resolution and later on when i load it the background i use Glide.
First i get the screen resolution , something like this requireActivity().windowManager.defaultDisplay.getMetrics(metrics) and then with glide i load in a custom drawable  .into<CustomTarget<Drawable>>(object : CustomTarget<Drawable>(metrics.widthPixels, metrics.heightPixels)
I have the initial code in a local branch , however i need to do some cleanup and cover some more cases and then i can make a PR .

Implemented, but I am keeping this issue alive as it needs more work for the archive browse.


Deploy Website

Deploy to PythonAnywhere

jquery, tailwind etc install
set up app password for email feature
set up secret key in environment variable
get env variables in controller
modify media file path & upload pictures, resume

Hotfix:

delete static/media photos from repo
add requirements.txt for virtual environment quick setup when deploying


Adding Tempo Dao

htttps
https://traderjoexyz.com/#/trade?inputCurrency=0x130966628846BFd36ff31a822705796e8cb8C18D&outputCurrency=0x88a425b738682f58C0FF9fcF2CceB47a361ef4cF

https://earn.tempodao.gg/#/stake


Added or link.startswith("tel:") in the condition to exclude tel: links from clean links.

Updated the get_domain_hyperlinks function to include handling of tel: links in addition to mailto: links, to exclude them from the clean links list.

Fantastic. Thanks for the contribution!


Version 2 release date ?

I don't currently have plans to complete version 2.
Started using GStreamer instead.


npm version

While trying out Deneb, the following warning was printed:
npm notice
npm notice New major version of npm available! 8.5.5 -> 9.8.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.8.0
npm notice Run npm install -g<EMAIL_ADDRESS>to update!
npm notice

I don't have npm installed. Is this an artifact that Deneb installs? If so, should the version be updated?

It is an artifact that Deneb.jl installs (NodeJS_16_jll). If I'm correct probably you will see similar outputs from nodejs the first time you generate plots and some nodejs dependencies get installed. Normally those messages should disappear later. However, the message that you are reporting is different than what I'm used to observe. I'll have a look and bump dependencies if necessary.

Fixed by https://github.com/brucala/Deneb.jl/pull/4


[H001041] Sen. Dean Heller

Sen. Dean Heller:
http://www.heller.senate.gov
Likely contact form URL to start with:
http://www.heller.senate.gov/public/index.cfm/contact-form

YAML file lost. I am working on it.


Are tables with SYSTEM VERSIONING (available in MariaDB v10.3+) supported?

I am aware SYSTEM VERSIONING is not entirely database agnostic across different databases.
I could not find any mention of it in your documentation. Nor could I find it in your source code. Is it possible to create tables with SYSTEM VERSIONING using your migrations? If not, is there any intention of including this over time? Thanks.

I dont think that is within the scope.


Update 103-great-week-for-lbry-developer-beta.md

Description
update links to newest version

Don't need to update these everywhere, that's what the permanent redirects are for. We'll eventually redirect the api docs too.


Udpdate Checkstyle

Checkstyle currently isn't run over any test files.  This should be changed so some/all of the checkstyle modules are run over the tests.

I have added the checkstyle checks for test files, however there are still some changes to be done.  If anyone wants to take this feel free, just comment here.  running mvn checkstyle:checkstyle

Merged into develop


axtooltip: Multiple tooltips are displayed when scrolling the page

Multiple tooltips are displayed when the user scrolls the page after activating the tooltips by clicking on the related elements.

Fixed on master-0.x (v0.24.0) and on release-0.23.x (0.23.1).


Anyone had luck getting videos to play on IOS??

I was wondering if anyone has had lucking getting this plugin to work on IOS??
I know it will not work on the simulator, but I still can't get videos to play when I test on a device. This has been a significant pain as the videos will load and look ready to play but won't play.
Any help would be much appreciated!

The same for me, still not work on IOS?

I can't see from IOS device too.

#79


Unable to get extra network buttons to load.

I installed the extension. I can add the buttons under the generate button.  But I get an error if I try to replace the tree with the folder buttons.

Should be fixed in the latest commit now

Working now.


ceres-solver 2.1.0 b1

Actions:

See the same recently approved version 2.1.0 but with static libraries https://github.com/AnacondaRecipes/ceres-solver-feedstock/pull/1
Bump the build number to 1
Enable shared libraries on win64

suitesparse 7.0.1 is now on defaults. You can re-enable the test on windows too.

Won't switching to shared library break stuff? I can't find where this package is being used. https://metayaml-conda.fly.dev/metayaml/reverse_dependencies?name=ceres-solver returns nothing...

https://metayaml-conda.fly.dev/metayaml/reverse_dependencies?name=ceres-solver

Switching to shared libraries on windows so that it doesn't link statically to suitesparse. (Linux already links to shared libraries.)
pdal depends on ceres-solver, but both are new feedstocks.


Make posix_user and creation_info optional in aws_efs_access_point

what

Currently, the EFS module can only accept a fully defined "access_point" with posix_user and creation_info, while those options are actually optional in AWS

why

Because those options are optional, and can actually break the functionality by restricting by user ids

/test all

Thanks for your contribution! This has been released as version 0.32.0.


Update repositories table (README change only)

This PR updates the repositories table in README.md to include the newly created repos cwa-ppa-server and cwa-log-upload.

@Ein-Tim Thank you for your PRs!

I'll update this PR like https://github.com/corona-warn-app/cwa-ppa-server/pull/169


Discord chat overlay enabling?

It doesn't work for me by default, although discord will detect the client and the overlay is enabled just fine. So i assume it's a feature that'll need something doing under the hood for that to happen

I dont think this is related to RuneLite at all.

Discord detects runelite perfectly fine for the rich presence stuff but for the life of me I can't figure out how to get the overlay to trigger.
The overlay is whitelisted and whatnot so i figure there's something that needs to happen within runelite for it to detect it as an "overlayable" thing?

Not really, there is no API for "intergrating" that. It either works or do not works, but its all on Discord side.


CI: Avoid docker containers in favor of prebuilt binaries

Reasoning: See https://github.com/jrottenberg/ffmpeg/issues/410 and the PR linked there. TL;DR: An update to the docker images (which was done from a PR branch, not documented and can't be found anywhere on main) broke our CI & the one response I have gotten has not been reassuring.
Since the problem is effectively a showstopper for this repo, let's switch to something that shouldn't break so easily, even if it's a bit more work to set up initially.
Changes:

Replace jrottenberg/ffmpeg docker container with prebuilt binaries from https://github.com/wang-bin/avbuild

This needs a bit of patching due to an issue in the pkgconfig files
otherwise, just extract to some directory and then set PKG_CONFIG_PATH for compile time and LD_LIBRARY_PATH for runtime

Remove 5.0 and 6.0 from CI as they are EOL upstream
Adjust a few tests that relied on the external libraries included in FFmpeg

Thankfully, this didn't uncover any bugs in the previous PRs :D


Added HMAC tests

Solves #62

@hillairet oh the JWT issue with validation? I realized that I hadn't properly generate the public/private keys so when I deployed it was failing on all of the tokens!


"kor all" aggregates the results, instead of displaying the results for their respective namespace

I just tested the latest version, and running "kor all" aggregates the results, i.e., the list is not cleared before the next namespace is checked, so the previous results get merged in the next namespace's results.

Good catch!
The fix will be out in the next release.


Using ManagerRegistry within commands

Feature Request
I would suggest to use the manager registry to get the entity manager within Commands.
For example: https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php#L44
What do you think about that? Would make the instantiation

Q
A

New Feature
yes

RFC
no

BC Break
yes/no (depends on implementation)

Summary

I'd probably rather deprecate the manager registry, tbh...


Crit damage calculation is correct ?

I want to say something about meteorite damage calculations, which are wrong
For example, crit rate is 64% and crit damage is 480%
According to the experiment, with each attack,
If crit, the damage is 1+480%, if not Critical strike, damage is 1
The 1+64%x480% data is incorrect

Why is that incorrect? You always do 100% base damage, and if you crit you deal extra 480%. It's the same thing.

为什么这不对？你总是会造成100％的基础伤害，如果你爆击，你会额外获得480％的伤害。这是同一件事。

I don't know. Maybe it's just a display problem.
some dot damage is 1+crit64%*extra480%
but Meteor crit dagame is 1+extra480%

Oh I think I see what you mean. The calculation is for average damage using your crit chance. You can see crit damage range above the formula line, it's quite a bit higher.


hotfix for #62

Failures are because of type piracy, a new check that was added recently.
We can consider an approach to address that later.


Sonic Adventure 2 graphical issues

Please describe your issue as accurately as possible. If you run into a problem with a binary release, make sure to test with latest master as well.
Important: When reporting an issue with a specific game or application, such as crashes or rendering issues, please include log files and a D3D11/D3D9 Apitrace (see https://github.com/apitrace/apitrace) so that the issue can be reproduced.
In order to create a trace for D3D11/D3D10: Run wine apitrace.exe trace -a dxgi YOURGAME.exe.
In order to create a trace for D3D9: Follow https://github.com/Joshua-Ashton/d9vk/wiki/Making-a-Trace.
DO NOT use DXVK together with apitrace!
Software information
Sonic Adventure 2 (Steam 213610)
System information

GPU: GeForce GTX 960
Driver: 430.34.0
Wine version: 4.13 TKG
DXVK version: https://github.com/Joshua-Ashton/d9vk/commit/b25eaf65e7731d42263b78d091de672cdc791e05

Apitrace file(s)
https://drive.google.com/file/d/1MhdrCxRYA1gGxRN0Wuxi0Ak7thHXOLXT/view?usp=sharing
Log files

d3d9.log: sonic2app_d3d9.log
d3d11.log: N/A
dxgi.log: N/A

Hello. Sonic Adventure 2 has a strange bug where the bottom of a train car appears above Sonic at various points in the first level.
The effect is pictured here:
D9VK:

Windows:

I renamed the exe to be able to run the game (also needed on Wine), so that's why the actual log says Launcher.exe. Thanks for all your hard work.
EDIT: changed the trace to a tar.xz.

Can you see if its corrected as of latest commit?

The bug is still reproducible for me with the current trace.

What's the name of the exe?

The actual game is sonic2app.exe. Steam usually calls Launcher.exe and then crashes, and I renamed Launcher.exe to sonic2app.exe to avoid the crash.

Oh, that makes this much more complex then

How do you mean?

Thank you! On a side note, do you know why the issue is fixed in-game but not in the trace?

Because I did a workaround

Ah, OK. I don't know what UB means, but thanks for taking the time to reply. I'm mainly curious whether I can trust a trace or if I have to check the actual game every time a new commit comes around. Thanks again!

Undefined behaviour yeah. It's putting NaNs in as float constant. We do the same as Intel drivers and -> 0 so we hit on the same bug.

I think I kind of get it. At least, I remember that floats are intended to hold numbers, and I assume putting...not-numbers is bad. I guess putting a 0 instead makes the bug show up in the trace but not in the game itself, since the trace is doing...something else. Or something. I appreciate all this, though. I'm definitely not a programming ace by any means, so I'm just trying to do my best.


[DUPLICATE] connecting ... (no incomming video) StreamingDirectxClient problem

When running StreamingDirectxClient and SpinningCubeServer i getting "connecting ... (no incomming video). Please help me solve the issue.

Closing as this is a duplicate of https://github.com/CatalystCode/3dtoolkit/issues/161 - please see existing thread/required information for helping debug from that issue. Thanks 👍


Minor fix in docs, using PickledGraphite instead of Graphite

Graphite and PickledGraphite are both subclasses of GraphiteSender, so the edited line in docs does not compile.

Travis failed for something unrelated to this PR.  I'm going to merge this in anyway since its just a documentation fix.


Install LE package on EL7, Ubuntu 16.04 and Debian 9+

A new $install_method parameter to letsencrypt allows selection between
a git/VCS based installation and a package based installation.  It
defaults to packages on newer OSes where they're available - in EPEL7,
and upcoming Debian and Ubuntu releases.
Installation has been moved into letsencrypt::install and the LE command
itself is determined by the installation method.

Thanks @domcleal, this is awesome!! Do you think we should manage EPEL in this? I'm just wondering if $install_method = 'package' is a sane default for EL if we're not expressing the dependency on EPEL. Also, what do you think about adding a default case for $::osfamily in letsencrypt::params with $install_method = 'vcs'?

Yeah, I share your concern about it not working out of the box on EL7, but I'm hesitant to manage EPEL as it could be quite an intrusive change for some users.
I updated the PR to add a soft dependency on the common stahnma/epel module, with correct ordering of the Yumrepo vs. Package resource, but disabled by default (so as not to require it in metadata.json).
I've also dropped the unsupported OS case and defaulted it to a VCS installation as you suggested.

This is excellent! Thank you @domcleal!


Refactor the build process

At moment, take a long time to test the tutorials build locally because of nb_execution_mode of myst-nb is on auto mode. This means it will run all the tutorials for the tutorials without cached outputs.
We should figure out a way to make it easy to test the tutorials locally, maybe just build the new tutorial instead of everything.

closed by  #63


Add a way to do fake reports offline

I know I have done this already but there’s a api for getting player sign data so it’s possible to do what to show the devs how bad by report one

What on earth are you talking about

About offline reporting with out the player being on like slicedlime


About the leader and remove table request when waiting

about the leader modal
cancel the table request when member is in the waiting state

closed because #98 is merged to the master successfully


Intercepting and modifying responses (playwright page.route)

Modifying responses
As a tester I need to intercept and modify response to a request,
so that I can mock various error states handling on UI.
(eg.: How will application frontend handle error state 500? - it should show specific message to user, but in fully working application it is not easy to cause backend to fail)
Solution: New Page Route keyword
Based on playwright documentation it should be possible to intercept and modify HTTP and HTTPS requests/responses.
Playwright-python:  page.route : Documentation
Playwright page.route for this.
This would be of great value for testing.
Thanks  a lot for considering this,
regards,
Jan.

Thank you for the issue!
I believe currently you can achieve this only by extending our library with a JS module.
async function error500route(page, args) {
  await page.route(args[0], route => {
  route.fulfill({
    status: 500,
    contentType: 'text/plain',
    body: 'Internal Server Error'
  });
});
}
exports.__esModule = true;
exports.error500route = error500route;

And using it in RF when you have an open page
*** Test Cases ***
Failing server
   New Page   someurl
   error500route   yoururlpattern
   Do actions to make a call to route

Thanks for the response and suggestion, I will try this next sprint :).

@mkorpela Is there any plan to integrate this to built in feature?
I would like to use this feature on staging serve.
But want DB there is intact after test script executed.

Just to raise up a discussion regarding this feature - https://www.scrapingbee.com/webscraping-questions/playwright/how-to-block-resources-in-playwright/ has python example of this. Dunno if this approach would work with browserlibrary thought "for reasons" ..


Add links to dockerhub and 64bit upstream issue

Added a couple of links for quicker navigation to the dockerhub and the upstream 64bit issue.
Readme preview with these changes: https://github.com/2m/docker-alpine-pigpiod/tree/patch-1

Makes sense. Thanks.


Clears change note history together with deletion

Change note history does not get regenerated when you delete a change note and represent it downstream to content store.
This has to be cleared manually.
For: https://trello.com/c/sOPRBrrT/63-2-remove-change-note-and-redirect-html-attachment-url

Thanks @thomasleese
I've gone with your suggestion and removed change notes entirely. And added a check for edition. You caught me before I could add it. :)


For a scene inherited from a model, when I change the root node's type, the scene loses its reference to ext_resource

And the mesh becomes a built-in resource.

Version?

What I used is calinou's build, I don't know the exactly version.
https://bintray.com/calinou/godot/editor/2017-09-08.519b933

Duplicate of #6215?

Closing as a duplicate of #6215.


Unable to run example 00_create_data

Hi, I tried to run the create_data.py file in examples/00_create_data and I got the following error :
  [OctreeCreateCpu] create octree structure
  [OctreeCreateCpu] update octree data structure
  [OctreeCreateCpu] fill data
  [OctreeCreateCpu] done
Traceback (most recent call last):
  File "./create_data.py", line 32, in <module>
    oc_from_dense2 = pyoctnet.Octree.create_from_dense2(dense, dense[np.newaxis,...], n_threads=n_threads)
  File "pyoctnet.pyx", line 644, in pyoctnet.Octree.create_from_dense2 (pyoctnet.cpp:8776)
    def create_from_dense2(cls, float[:,:,::1] occupancy, float[:,:,:,::1] features, bool fit=False, int fit_multiply=1, bool pack=False, int n_threads=1):
  File "stringsource", line 644, in View.MemoryView.memoryview_cwrapper (pyoctnet.cpp:23565)
  File "stringsource", line 345, in View.MemoryView.memoryview.__cinit__ (pyoctnet.cpp:19800)
ValueError: ndarray is not C-contiguous

Thanks for the help !

Just to complete this example, I commented out the statement that was causing the error and everything worked fine.
  [OctreeCreateCpu] create octree structure
  [OctreeCreateCpu] update octree data structure
  [OctreeCreateCpu] fill data
  [OctreeCreateCpu] done
pc - n_pts: 100, feature_size: 3
  [OctreeFromPC] normalize inplace
create octree
  [OctreeFromPC] determine block pts intersections for grid 8,8,8 - 100 pts
  [OctreeCreateCpu] create octree structure
  [OctreeCreateCpu] update octree data structure
  [OctreeCreateCpu] fill data
  [OctreeCreateCpu] done
pc - n_pts: 100, feature_size: 3
create octree
  [OctreeFromPC] determine block pts intersections for grid 8,8,8 - 100 pts
  [OctreeCreateCpu] create octree structure
  [OctreeCreateCpu] update octree data structure
  [OctreeCreateCpu] fill data
  [OctreeCreateCpu] done

There seems to be a problem with some versions of Python/Cython.  On my machine dense[np.newaxis,...] produces a contiguous array. However, using Anaconda it gives the error described above. I added a copy to the example to ensure a contiguous array.


redis: fix flake in QUIT test

The QUITRequestAndResponse test could sometimes be seen to fail like this:
[ RUN      ] IpVersions/RedisProxyIntegrationTest.QUITRequestAndResponse/IPv6
test/extensions/filters/network/redis_proxy/redis_proxy_integration_test.cc:606: Failure
Value of: redis_client->write(request)
  Actual: false (Failed to complete write or unexpected disconnect. disconnected_: true bytes_drained: 14 bytes_expected: 14)
Expected: true
Stack trace:
  0x28ab1de: Envoy::(anonymous namespace)::RedisProxyIntegrationTest::proxyResponseStep()
  0x28ab05d: Envoy::(anonymous namespace)::RedisProxyIntegrationTest::simpleProxyResponse()
  0x28aad6a: Envoy::(anonymous namespace)::RedisProxyIntegrationTest_QUITRequestAndResponse_Test::TestBody()
  0x695f34b: testing::internal::HandleSehExceptionsInMethodIfSupported<>()
  0x694f4aa: testing::internal::HandleExceptionsInMethodIfSupported<>()
  0x693b283: testing::Test::Run()
  0x693bc24: testing::TestInfo::Run()

Such a failure is not unexpected since the QUIT command closes the connection. The solution is to modify the test to expect a disconnect.

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

@weisisea can you please take a look at this.


"Exported to Sisu" in the course results table should be student specific, not grade specific

Expected behavior
The "exported to Sisu" column shows whether the currently shown final grade has been exported.
Actual behavior
It should show whether the student has had any final grade exported.
Additional context
See discussion in #495

I'm pretty sure this has been implemented. If the currently shown final grade has not been exported and some other grade has, it shows '⚠'.


allow date format to be set in app.config

Adding the date format to the app.config file will allow modification of packages like Laravel Passport that extend the Eloquent model, without modifying the actual Model class. Errors have come up mostly when using SqlSrv with dblib, whereby the query grammar is gives Y-m-d H:i:s.000 while the required is Y-m-d H:i:s.

Thanks, but we can't introduce coupling like that, sorry.


Add Shared Channels topic to LHS

Documentation ticket: https://mattermost.atlassian.net/browse/MM-37374
Updated:

Set Up, Manage, Onboard, and Comply > Onboard Users > All Mattermost Instances

Added new Shared Channels (Experimental) (E20) topic to the LHS

Set Up, Manage, Onboard, and Comply > Set Up Mattermost > Self-Managed Deployments > Enable Shared Channels (Experimental)

Corrected formatting issues that were hiding the config.json setting options on the page

@justinegeffen - Technical content reviews for Shared Channels are complete. This PR adds the approved content to the LHS.


Dlib install error with ubuntu&python3.8&cmake3.17

face_recognition version:1.3
Python version:3.8
Operating System: ubuntu 20

Description
When I install the dlib, it always failed and threw these errors. I have update de version to the latest and installed the python3.8-dev.

c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [CMakeFiles/dlib_python.dir/build.make:330: CMakeFiles/dlib_python.dir/src/face_recognition.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/dlib_python.dir/all] Error 2
make: *** [Makefile:104: all] Error 2
Traceback (most recent call last):
File "setup.py", line 223, in
setup(
File "/usr/lib/python3/dist-packages/setuptools/init.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 172, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 158, in call_command
self.run_command(cmdname)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 23, in run
self.build()
File "/usr/lib/python3.8/distutils/command/install_lib.py", line 109, in build
self.run_command('build_ext')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 135, in run
self.build_extension(ext)
File "setup.py", line 175, in build_extension
subprocess.check_call(cmake_build, cwd=build_folder)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j1']' returned non-zero exit status 2.

What I Did
I tried
pip3 install dlib
when it failed, tried to git clone and cd to the file then
python3 setup.py install

I git the clone and use the
python3 setup.py install
Use the newest vision is essential.


Fix wrong package name in linux x86_64 native loader file

While adding support for linux-s390x platform, I think commit 1324737a197d82d0ae9b126717c85ccb96dd7329 introduced an unwanted change to the linux-x86_64 NativeLoader source file.
I detected it while updating https://github.com/guardian/play-brotli-filter/pull/30 which uses Brotli4J under the hood so I would like to take this opportunity to thank you for this library.

Thanks a lot!


When using b b or b p it is not adding at the correct nested level

Indent should always match the selected block. It is not. Currently it is at the leftmost (top) indent level
New block should be adjacent to the selected block. It is not, it is adding to the first and last blocks on the page.
 It should be a block adjacent to nest 1 with the proper level of indentation.
If I use b b with block 1 selected it is inserting below block 2 when it should be inserting betwee block 1 and block 2 at the same level of indent.

I seem to recall there actually wasn't a way to accomplish what you're talking about (at least I couldn't find it). I haven't really done anything with Logseq plugins for 5-6 months so the details of the API aren't really fresh in my mind, also it's possible the plugin API has been extended.
Anyway, this is why I have it described as a "simple plugin to facilitate top-level block navigation" in the README.


DATA Languages Model

Closes #4
@Jarus95 Take a look bro.

Ok

Yengi issuelar qo'shaman @JohnnySenior


Primary IPv6 not set for dualstack VMware VM using SLAAC

Hi there,
This is my current environment:
Netbox: v3.7.6
Netbox-sync: Current master (3b361336d1fd8d63455f396b421b1ff4d564856f)
VMware: vCenter 8.0.2
These Netbox-sync settings seemed relevant:
set_primary_ip = when-undefined
permitted_subnets = <IP_ADDRESS>/0, ::/0

I'm running across a problem with my dual-stack VMs. They have one vNIC, which has one IPv4 address, and one SLAAC IPv6 address. These addresses are both picked up by Netbox-sync. However, while the IPv4 address is automatically set as Primary address for the VM, the Primary IPv6 field remains empty.
The funny thing I noticed is that 'staticly' configured IPv6 addresses seem to work normally (and are set as Primary IPv6), but SLAAC addresses don't.
Is this by design, or can it be fixed?
Thank you in advance

Hi,
this is intentional as you would have otherwise your NetBox instance filled with link local addresses:
https://github.com/bb-Ricardo/netbox-sync/blob/3b361336d1fd8d63455f396b421b1ff4d564856f/module/sources/common/permitted_subnets.py#L96-L102

I agree that most people wouldn't want their instance filled up with link local addresses, but there is a pretty significant difference between a link local address, and a (global unicast) SLAAC address right?
( Link local addresses are in the fe80::/10 prefix, SLAAC addresses are normal ::/128 publicly routable addresses, which are just automatically provisioned by the gateway, instead of manually configured on the host. In that way SLAAC serves a similar purpose to DHCP )

Would you be able to run netbox-sync with the -l DEBUG2 option and post the relevant part of  output here? A GUA is not a link local address and therefore should be included in the sync (as long as the address is part of a network defined in permitted_subnets)

Of course! I have redacted the addresses and names quite a bit, but the logs should still paint the correct picture.
2024-05-30 13:24:07,039 - DEBUG2: Found default IPv4 gateway <IP_ADDRESS>
2024-05-30 13:24:07,039 - DEBUG2: Found default IPv6 gateway fe80::111:1ff:fe11:11
2024-05-30 13:24:07,039 - DEBUG2: Parsing device VirtualVmxnet3: 22:22:22:22:22:22
2024-05-30 13:24:07,042 - DEBUG: IP address 'fe80::2022:22ff:fe22:2222/64' for vNIC 1 (my-vlan) is a link local address. Skipping.
2024-05-30 13:24:07,043 - DEBUG2: Trying to find a virtual machine based on the collected name, cluster, IP and MAC addresses
2024-05-30 13:24:07,080 - DEBUG2: Found a exact matching virtual machine object: my-vm (my-cluster)
2024-05-30 13:24:07,080 - DEBUG2: Found a matching virtual machine object: my-vm (my-cluster)
2024-05-30 13:24:07,080 - DEBUG2: Parsing 'virtual machine' data structure: my-vm
2024-05-30 13:24:07,080 - DEBUG2: Parsing 'site' data structure: My Site
2024-05-30 13:24:07,081 - DEBUG2: Parsing 'platform' data structure: Ubuntu Linux (64-bit)
2024-05-30 13:24:07,083 - DEBUG2: Parsing 'Virtual Disk' data structure: Hard disk 1
2024-05-30 13:24:07,083 - DEBUG2: Trying to match current object interfaces in NetBox with discovered interfaces
2024-05-30 13:24:07,086 - DEBUG2: Found '1' NICs in NetBox for 'my-vm'
2024-05-30 13:24:07,086 - DEBUG2: Found 1:1 name match for NIC 'vNIC 1 (my-vlan)'
2024-05-30 13:24:07,087 - DEBUG2: Parsing 'virtual machine interface' data structure: vNIC 1 (my-vlan) (my-vm)
2024-05-30 13:24:07,087 - DEBUG2: Trying to find prefix for IP: <IP_ADDRESS>/24
2024-05-30 13:24:07,089 - DEBUG2: Found IP '<IP_ADDRESS>/24' matches site 'My Site' prefix '<IP_ADDRESS>/24'
2024-05-30 13:24:07,097 - DEBUG2: Found existing NetBox IP address object: <IP_ADDRESS>/24
2024-05-30 13:24:07,097 - DEBUG2: Parsing 'IP address' data structure: <IP_ADDRESS>/24
2024-05-30 13:24:07,097 - DEBUG2: Trying to find prefix for IP: 2001:db8:1::2022:22ff:fe22:2222/64
2024-05-30 13:24:07,099 - DEBUG2: Found IP '2001:db8:1::2022:22ff:fe22:2222/64' matches site 'My Site' prefix '2001:db8:1::/64'
2024-05-30 13:24:07,109 - DEBUG2: Found existing NetBox IP address object: 2001:db8:1::2022:22ff:fe22:2222/64
2024-05-30 13:24:07,110 - DEBUG2: Parsing 'IP address' data structure: 2001:db8:1::2022:22ff:fe22:2222/64
2024-05-30 13:24:07,115 - DEBUG2: Found matching prefix VLAN 2 (My Site) for untagged interface VLAN.
2024-05-30 13:24:07,115 - DEBUG2: Parsing 'virtual machine interface' data structure: vNIC 1 (my-vlan) (my-vm)

One thing that didn't really realize before: Found default IPv6 gateway fe80::111:1ff:fe11:11.
This is accurate, sort of. In the IPv6 routing table on the host, the router's link-local address is the default gateway. I tried to find information about this online, but couldn't quickly find anything more authoritative than this stack-exchange comment:

Yes, all networks on a link have the gateway set to the router's link-local address. That is how IPv6 RAs (Router Advertisements) work, so all networks advertised on the link are in the RAs, and all use the router's link-local address as the gateway.

Reading this, I'm afraid it might be a matter of taste whether my  2001:db8:1::2022:22ff:fe22:2222 address should be regarded as a primary IP address.. I would like it to be though 😅

Great, thank you for the output.
This narrows down the issue. If you have more then one IPv6 GUA then there is no real way which one to pick as the primary one.
What do you think?

Hmm, I've just read through rfc6724 looking for a generic answer, but there isn't really one when you don't have a destination address.
I think the problem here is that there isn't always one primary address when talking about IPv6, because of it's design taking multiple addresses into account.
I think there are two easy options:

Don't pick a SLAAC GUA, because priority can be environment specific. (This is what happens now)
If there is just one IPv6 GUA, pick that one 😅. This would work great for me, but how do you feel about that in general?

I thought about your second suggestion already and think this would be an option. Just needs some special "IPv6" case changes.
Will probably do that.

Awesome, thank you for your time already 👍🏻

Hi @yaiqsa,
this took a while but I added the function to set primary IPv6 if only one candidate was found.
would you be able to test this?
Thank you

@bb-Ricardo Yes, it works!
Thank you ^^

Perfect, thanks for the confirmation


升级Airdropper

把 Replace 的 Airdrop Address 改成 Airdrop Receiving Address
让默认有一个地址，现在默认是 0 个

https://github.com/NonceGeek/Move-Airdropper-Based-On-Github/pull/26


forge test --gas-report not reporting certain contracts

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
forge 0.2.0 (a839414 2023-10-26T09:23:09.940495000Z)
What command(s) is the bug in?
forge test --gas-report
Operating System
Windows
Describe the bug
I am working on proof of concept custom bytecode contracts where all of the functions are stubbed out so that the contract can be compiled/verified on block explorers with a generated ABI but the runtime bytecode is assembled in the constructor based on constructor arguments.
Tests run successfully and report gas total gas consumption for the tests but when attempting to run the gas report there is no report generated for the contract.
I created an example project using the default Counters contract that follows the same design pattern being applied to the proof of concept contracts that I am working on. In the example the default Counters contract runs tests and generates a gas report as expected however the BytecodeCounters contract will run tests and not generate a gas report.
https://github.com/0xth0mas/foundry-bytecode-gas-report-example

thanks for the repro will investigate

@mattsse fyi some related issues:

https://github.com/foundry-rs/foundry/issues/6019
https://github.com/foundry-rs/foundry/issues/2287

I am working on proof of concept custom bytecode contracts where all of the functions are stubbed out so that the contract can be compiled/verified on block explorers with a generated ABI but the runtime bytecode is assembled in the constructor based on constructor arguments.

can you please explain what impact this has on the defined functions when used
because I think if you do this then everything is inlined, right? so there's no actual call happening that we can track and decode

Using the counter example as a reference...

Lines 8-10 store the bytecode that I wrote that implements number, setNumber and increment to memory.
Line 11 returns the memory area that the bytecode is stored in, telling the EVM that that bytecode is going to be the runtime bytecode for the contract that it needs to save and execute on each call.
Lines 15-17 exist for the compiler to generate the same ABI as the regular counters example.
That makes the deployed bytecode this:
59351559341117600D57601A565B5959FD5B6000526004601CFD5B593560E01C8063D09DE08A1460415780633FB5C1CB14604C5780638381F58A146055575959FD5B595460010159555959F35B60043559555959F35B59595459525990F3
The first portion<PHONE_NUMBER>1117600D57601A565B5959FD checks calldata and msg.value to ensure they are non-zero and zero respectively and reverts if either is not the case.
Next 5B6000526004601CFD is a little revert snippet for custom reverts.
Then the function selector...
5B593560E01C -- get the selector
8063D09DE08A14604157 -- jump if it's increment
80633FB5C1CB14604C57 -- jump if it's setNumber
80638381F58A14605557 -- jump if it's number
5959FD -- revert if we didn't match selector
5B595460010159555959F3 -- increment - load from storage, add one, store to storage, return nothing
5B60043559555959F3 -- setNumber - load from calldata, store to storage, return nothing
5B59595459525990F3 -- number - load from storage, store to memory, return 0x00,0x20
All calls should execute the deployed runtime bytecode in the VM the same as a call to a contract whose runtime bytecode was created by solc. This is like using a different compiler that wraps in Solidity.

Here's a deployed example with the functions called -
https://goerli.etherscan.io/address/0x69db6d03923b11d9c4391653b51526acb24c3ef4

I am running into the same issue of --gas-report not doing anything.
Component
Forge
Have you ensured that all of these are up to date?
Foundry
Foundryup
$npm run foundryup --version
> 8.5.1

What version of Foundry are you on?
foundryup: installing foundry (version nightly, tag nightly-7b452656f722fc560f0414db3ce24a1f2972a8b7)
foundryup: downloading latest forge, cast, anvil, and chisel
################################################################################################### 100.0%
foundryup: downloading manpages
################################################################################################### 100.0%
foundryup: installed - forge 0.2.0 (7b45265 2023-11-21T00:22:00.899582254Z)
foundryup: installed - cast 0.2.0 (7b45265 2023-11-21T00:22:00.519258276Z)
foundryup: installed - anvil 0.2.0 (7b45265 2023-11-21T00:22:00.520547511Z)
foundryup: installed - chisel 0.2.0 (7b45265 2023-11-21T00:22:00.525692023Z)

What command(s) is the bug in?
forge test --gas-report --match-test testNotGettingGasReport
Minimal Example
pragma solidity 0.8.17;

import { Test } from "forge-std/Test.sol";

contract DummyTest is Test {

    function testNotGettingGasReport () public {
        uint256 a;
        for (uint256 i; i < 10; i++) {
            a = i * 1e18;
        }

        assertTrue(a < 100e18);
    }
}

This passes but does not give a gas report
[PASS] testNotGettingGasReport() (gas: 2369)
Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 322.30µs

Running into the exact same issue as well.
This is a bit annoying when running benchmarks (i.e. comparing to similar implementations).
Right now, the two solutions are either to use Hardhat (which does indeed support "bytecode" contracts, or to log gas usage (with gasleft()).
A third solution is this forge-gas-metering library, but it would currently only support a single call per test.
It would be amazing to have this supported, especially as it seems to be one of the most efficient ways to optimize gas usage; hence my eagerness to be able to demonstrate it!
Thanks.

For reproduction:
src/BytecodeDrop.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

contract BytecodeDrop {
    constructor() {
        assembly {
            mstore(0x00, 0x59351559341117600D57601A565B5959FD5B6000526004601CFD5B593560E01C)
            mstore(0x20, 0x6382947ABE14602D575B3434FD5B602435600401604435600401808203813583)
            mstore(0x40, 0x3581036055576004357F23b872dd000000000000000000000000000000000000)
            mstore(0x60, 0x0000000000000000000034523360045230602452606435604452343460643434)
            mstore(0x80, 0x855AF1156055577Fa9059cbb0000000000000000000000000000000000000000)
            mstore(0xA0, 0x000000000000000034528160051B60200185018560015B906020018083031560)
            mstore(0xC0, 0xDC5790813560045285820335602452343460443434885AF11660B6565B156055)
            mstore(0xE0, 0x573434F300000000000000000000000000000000000000000000000000000000)
            return(0x00, 0xE4)
        }
    }

    /**
     * @notice Airdrop ERC20 tokens to a list of addresses
     * @param _token The address of the ERC20 contract
     * @param _addresses The addresses to airdrop to
     * @param _amounts The amounts to airdrop
     * @param _totalAmount The total amount to airdrop
     */
    function airdropERC20(
        address _token,
        address[] calldata _addresses,
        uint256[] calldata _amounts,
        uint256 _totalAmount
    ) external {}
}

test/mocks/Mock_ERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import {ERC20} from<EMAIL_ADDRESS>
contract Mock_ERC20 is ERC20 {
    constructor(uint256 _initialAmount) {
        _mint(msg.sender, _initialAmount);
    }

    function name() public pure override returns (string memory) {
        return "Mock_ERC20";
    }

    function symbol() public pure override returns (string memory) {
        return "M20";
    }
}

test/BytecodeDrop.t.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {BytecodeDrop} from "src/BytecodeDrop.sol";
import {Mock_ERC20} from "test/mocks/Mock_ERC20.sol";
import {Test} from "forge-std/Test.sol";

contract BytecodeDropTest is Test {
    BytecodeDrop bytecodeDrop;
    Mock_ERC20 erc20;

    uint256 constant NUM_RECIPIENTS = 2;
    uint256 constant AMOUNT = 10e18;
    uint256 constant TOTAL_AMOUNT = AMOUNT * NUM_RECIPIENTS;

    constructor() {
        bytecodeDrop = new BytecodeDrop();
        erc20 = new Mock_ERC20(AMOUNT * 2);
    }

    function test_BytecodeDrop() public {
        address[] memory addresses = new address[](NUM_RECIPIENTS);
        uint256[] memory amounts = new uint256[](NUM_RECIPIENTS);

        for (uint256 i = 0; i < NUM_RECIPIENTS; i++) {
            addresses[i] = vm.addr(i + 1);
            amounts[i] = AMOUNT;
        }

        erc20.approve(address(bytecodeDrop), TOTAL_AMOUNT);
        bytecodeDrop.airdropERC20(address(erc20), addresses, amounts, AMOUNT * 2);
    }
}

Run the test: forge test --mt test_BytecodeDrop  --gas-report
Output (only calls to the mock ERC20):

Test and setup functions are excluded from gas reports on purpose, see https://github.com/foundry-rs/foundry/blob/a2a6bcd18c89eb31347a64120b3aef1abc86840a/crates/forge/src/gas_report.rs#L94-L96
I guess this should be toggleable given the demand?

I have the similar problem: bytecode imported from a json file, deployed via create in a test file covering all functionality of an ERC20. Nothing generates as a result of forge test --gas-report.
This forces me to use gasSnapshots, which basically explicitly duplicates what the --gas-report should be able to do.
@mattsse , are there any estimates on when this is going to be supported. It is exactly a year since this was reported (interesting coincidence).

Re:

I guess this [test and setup functions] should be toggleable given the demand?

by @DaniPopes and #9232 by @grandizzy
I don't think the gas_reports_include_tests config parameter solution fully solves the issue. Indeed, it allows to report gas usage by test contracts instead of the contracts that are tested. However, the main issue still remains - inability to meter gas for contracts with logic created NOT by solc (example by @0xth0mas and mine).
@mattsse gave a hint in his comment:

because I think if you do this then everything is inlined, right? so there's no actual call happening that we can track and decode

However, I am not sure if this is true given that the test contract makes a call to the contract being tested...
Are there other problems involved? Could you clarify whether it would be possible to achieve gas metering in contracts NOT created with new MyContract(...)?


Cannot use League\Uri\Components\Exception as Exception because the name is already in use

Summary
Current version of thephpleague/uri-components:>=1.7.0 is in conflict with thephpleague/uri-parser. I have a php compile error:
Cannot use League\Uri\Components\Exception as Exception because the name is already in use
Both packages are using same namespace League\Uri and thephpleague/uri-parser already have class Exception in this namespace.
Workaround
Use fixed version 1.6.0 instead while this issue isn't fixed.

hi @jdme,
Thanks for using this library. Could you please provide more info like the OS and PHP version you are using. Of note, these classes while having the same name do not belong in the same namespace one is in
League\Uri while the other is in League\Uri\Components so they should not collide unless I'm missing something.

Hi @nyamsprod,

Could you please provide more info like the OS and PHP version you are using.

My system is macOS 10.12.6 and PHP 7.0.5

Of note, these classes while having the same name do not belong in the same namespace one is in
League\Uri while the other is in League\Uri\Components so they should not collide unless I'm missing something.

Oh, sure, they belong to different namespaces, but QueryParser.php has namespace League\Uri.
So, when you do use League\Uri\Components\Exception, it tries to use class Exception in QueryParser.php, which already has another class with the same name from it's namespace.
To fix it, you should add an alias in QueryParser.php:
use League\Uri\Components\Exception as Alias;


Generate static methods in nonstatic classes

Generate static methods in nonstatic classes
Description
This PR adds the Mapper configuration option GenerateStaticMethods which is a switch that generates static methods inside a non-static class.
Fixes #673
Checklist

[x] The existing code style is followed
[x] The commit message follows our guidelines
[x] Performed a self-review of my code
[x] Hard-to-understand areas of my code are commented
[x] The documentation is updated (as applicable)
[x] Unit tests are added/updated
[x] Integration tests are added/updated (as applicable, especially if feature/bug depends on roslyn or framework version in use)

Hi, @latonz, @TimothyMakkison,
can I ask you for your opinion about this functionality? And if so, can I ask for feedback on implementation?
Thank you,
Jan

The goal is to support this sode:
public interface IMyInterface
{
    static abstract CarDto ToDto(Car car);
}

[Mapper(GenerateStaticMethods = true)]
public partial class CarMapper : IMyInterface
{
    public static partial CarDto ToDto(Car car);
}

Sorry for my late feedback, I had the pleasure to enjoy some vacation days 🏝
Thank you for opening the corresponding issue and submitting this PR, I understand your use case.
On a first glance the current implementation has several not yet addressed problems:

Generated nested mapping methods are not static
(to reproduce simply add public static partial Riok.Mapperly.IntegrationTests.Dto.TestObjectDto Map(Riok.Mapperly.IntegrationTests.Models.TestObject value); to the TestMapperWithStaticMethods in your integration tests)
Non-Static user defined mappings are called from generated static mapping methods
Non-Static user implemented mappings are called from generated static mapping methods
Non-Static object factories are called from generated static mapping methods
Non-Static external mappers are called from generated static mapping methods (probably due to rebasing, only landed recently in main)

I will comment on the issue https://github.com/riok/mapperly/issues/673 with the concerns that I have for this feature.

Thanks, I will take a look at the missing parts

@trejjam before you are going to continue working on this PR we should probably agree on the design. I added my bits here.

Yes, for sure :)

Hi @latonz,
I finally found some time to finish this PR. I will be happy if you find some time for a review.

Hi, thank you for the review! I processed all recommendations.
I left changes as separate commits, so it's easier to navigate through changes. Please let me know for the final rebase/squash

I just checked my earlier comment https://github.com/riok/mapperly/pull/681#issuecomment-1697329056 and noticed that there is still a problem with object factories and external mappers. In pseudo-static mappers, instance object factories and external mappers are still beeing used without a diagnostic. These should be ignored and a diagnostic should be emitted. ExtractObjectFactories can probably be moved after ExtractUserMappings. Then _mapperDescriptor.Static can be used in ExtractUserMappings and ExtractObjectFactories.

I will take a look at the factories and external mappers

I dropped one test which I would say did not test what it was saying so: https://github.com/riok/mapperly/pull/681/commits/2b6db69caa8064ae9ad45da98566cf8e891f1707

I added tests for external mappers and object factories


package.json will always use 2 spaces indent

See https://github.com/npm/npm/issues/4718

This, shouldn't actually work according to https://github.com/npm/npm/issues/6600


ES6 circular dependencies

I have the following files
//test1.js
import {Test2} from 'test2';
export class Test1 {
    constructor() {
        console.log(new Test2());
    }
}

//test2.js
import {Test1} from 'test1';
export class Test2 {
    constructor() {
        console.log(new Test1());
    }
}

//main.js
import {Test1} from 'test1';
console.log(new Test1());

on compiling in Advanced mode I get this error:

test2.js:1: ERROR - required "module$test1" namespace not provided yet
import {Test1} from 'test1';

Is this a bug or am I doing something wrong? If I comment the import line in test2.js it compiles but not with the result I want:
function a() {
  console.log(new Test1); // !!!! who is Test1 ????
}
;console.log(new function() {
  console.log(new a);
});

I don't think we have a good answer for this right now. (We do for goog.module though)
If you can, move both classes into a single module? Lots of Google code has one class per file (like Java) and as modules become more common I've been encouraging people to move away from that where it makes sense.

Is this something that's going to be fixed in future versions?
I know I can put them in the same file, but I encounter this error in a much more complicated situation. I just minimized it to this simple example.
What's the solution for goog.module?

For goog.module, I believe you goog.require the module but then use goog.module.get before actually using anything from that module.

I ran into this issue as well.
Trying to make an example of using moment.js with closure dependency management, to resolve https://github.com/alexeagle/closure-compiler-angular-bundling/issues/22
https://github.com/moment/moment/blob/develop/src/lib/create/from-string.js
import { configFromStringAndFormat } from './from-string-and-format';
https://github.com/moment/moment/blob/develop/src/lib/create/from-string-and-format.js
import { configFromISO, configFromRFC2822 } from './from-string';

@ChadKillingsworth is this on your radar? Maybe I'll take a stab at it?

No not really. Have at it.

For goog.module, I believe you goog.require the module but then use goog.module.get before actually using anything from that module.

Contrived example, but here you go. https://github.com/MatrixFrog/closure-module-example

Running into this issue as well.
For my project this mainly happens with type annotations, so I've adopted the C-style solution of generating "header" interface files declaring the public API (using @interface), and then have the main class @implement it. I'm then using the @interface file for all type annotations. As long as there's no circular type reference among the interfaces themselves, it works.
But then there are a few places where there's a circular reference in type annotations on public methods as well, so I've had to pick one to remove the type checks from (replacing the @param annotation's type with ?).


Plotting functionality should be different

Don't automatically write to a file. It should write to the active axis or figure and the user can take care of the plotting outside of nussl.

We should copy the type of functionality that librosa has for plotting (see: https://librosa.github.io/librosa/generated/librosa.display.specshow.html). Right now nussl does too much

Fixed in py3-networks, will close when merged into master.

Plotting is now restricted to a few functions and follows what was suggested above.


added a styles folder

added just styles folder add kept the css file in it leaving app.css and index.css
as we are using VITE so i have done the needed changes to the folder structure
I have not added the index.html in public bcz in main structure of VITE the index.html file is at root only

Hey @rawani123 ! Before making a pull request, please ensure that you've created an issue and assigned it to yourself. This helps us keep track of tasks and ensures that everyone's efforts are coordinated effectively. Thank you for your cooperation!

you can ask if you have any doubt otherwise, I will be closing this.

No I don't have any issue you can close it


Remove spread operators

Spread operators is very slow when there are many fields (I have a 200+ fields huge form).
Compare using spread operators and not: http://jsbin.com/tibiji/edit?js,console

This makes me sad, since I love the spread operator so much, but I can't argue with the numbers.
Thank you for including the demo.


Adding platform retrieval based on tag and getting platform tags

Purpose
Adding support for retrieving platform based on tags and to load the tags based on the initial characters.

Please give details for the all the field in the template appropriately. If those does not apply mention as N/A and specify the reason(s).

This is for a feature branch. Do we need to still give all those for that type of PRs as well. Thought it would be enough, if we merge this feature with master branch.


Recursive header groups

@russell-miller,
This is some mighty fine and dandy code you got here.
Test comment.
James


Error running notebook launcher in google Colab

System Info
- `Accelerate` version: 0.35.0.dev0
- Platform: Linux-6.1.85+-x86_64-with-glibc2.35
- `accelerate` bash location: /usr/local/bin/accelerate
- Python version: 3.10.12
- Numpy version: 1.26.4
- PyTorch version (GPU?): 2.4.0+cpu (False)
- PyTorch XPU available: False
- PyTorch NPU available: False
- PyTorch MLU available: False
- PyTorch MUSA available: False
- System RAM: 334.56 GB
- `Accelerate` default config:
	Not found

Information

[X] The official example scripts
[X] My own modified scripts

Tasks

[ ] One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
[X] My own task or dataset (give details below)

Reproduction
Steps:

Open the notebook by the link https://colab.research.google.com/drive/1IfpvFhqwQdveKEzFraKzbTtQE1a0FEYs?usp=drive_link (it should be shared) in google colab TPU environment. Basically it contains the code of training causal model from the HF course https://huggingface.co/learn/nlp-course/chapter7/6?fw=pt but adopted for TPU.
Run it, It's better to run the cells one by one until reach the cell with notebook_launcher
Run the cell with notebook_launcher

Result:
The function starts working, shows some initial progress and crashes. I'm not sure if it's a bug or wrong configuration, I tried to set env variables like that:
#os.environ["TPU_NAME"] = "dummy"
#os.environ['PJRT_DEVICE'] = 'TPU'
##os.environ['TPU_NUM_DEVICES'] = '8'
#make the TPU available accelerator to torch-xla
#os.environ["XRT_TPU_CONFIG"]="localservice;0;localhost:51011"
However it doesn't seem to have effect.
The crash log:
WARNING:root:Unsupported nprocs (8), ignoring...
Launching a training on 8 TPU cores.
/usr/local/lib/python3.10/dist-packages/transformers/optimization.py:591: FutureWarning: This implementation of AdamW is deprecated and will be removed in a future version. Use the PyTorch implementation torch.optim.AdamW instead, or set no_deprecation_warning=True to disable this warning
warnings.warn(
/usr/local/lib/python3.10/dist-packages/transformers/optimization.py:591: FutureWarning: This implementation of AdamW is deprecated and will be removed in a future version. Use the PyTorch implementation torch.optim.AdamW instead, or set no_deprecation_warning=True to disable this warning
warnings.warn(
/usr/local/lib/python3.10/dist-packages/transformers/optimization.py:591: FutureWarning: This implementation of AdamW is deprecated and will be removed in a future version. Use the PyTorch implementation torch.optim.AdamW instead, or set no_deprecation_warning=True to disable this warning
warnings.warn(
/usr/local/lib/python3.10/dist-packages/transformers/optimization.py:591: FutureWarning: This implementation of AdamW is deprecated and will be removed in a future version. Use the PyTorch implementation torch.optim.AdamW instead, or set no_deprecation_warning=True to disable this warning
warnings.warn(
  0%
 1/205 [00:00<01:07,  3.03it/s]
  0%
 1/205 [00:00<01:05,  3.14it/s]
  1%
 2/205 [00:24<48:52, 14.44s/it]
  1%
 2/205 [00:23<46:08, 13.64s/it]
  0%
 1/205 [00:00<01:05,  3.14it/s]
  1%
 2/205 [00:25<50:14, 14.85s/it]
  0%
 1/205 [00:00<01:08,  2.96it/s]
  1%
 2/205 [00:23<46:45, 13.82s/it]
_RemoteTraceback                          Traceback (most recent call last)
_RemoteTraceback:
Traceback (most recent call last):
File "/usr/lib/python3.10/concurrent/futures/process.py", line 246, in _process_worker
r = call_item.fn(*call_item.args, **call_item.kwargs)
File "/usr/lib/python3.10/concurrent/futures/process.py", line 205, in _process_chunk
return [fn(*args) for args in chunk]
File "/usr/lib/python3.10/concurrent/futures/process.py", line 205, in
return [fn(*args) for args in chunk]
File "/usr/local/lib/python3.10/dist-packages/torch_xla/runtime.py", line 95, in wrapper
return fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch_xla/_internal/pjrt.py", line 78, in _run_thread_per_device
replica_results = list(
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 621, in result_iterator
yield _result_or_cancel(fs.pop())
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 319, in _result_or_cancel
return fut.result(timeout)
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch_xla/_internal/pjrt.py", line 71, in _thread_fn
return fn()
File "/usr/local/lib/python3.10/dist-packages/torch_xla/_internal/pjrt.py", line 190, in call
self.fn(runtime.global_ordinal(), *self.args, **self.kwargs)
File "/usr/local/lib/python3.10/dist-packages/accelerate/utils/launch.py", line 674, in call
self.launcher(*args)
File "/content/train_func_2.py", line 65, in training_function
accelerator.backward(loss)
File "/usr/local/lib/python3.10/dist-packages/accelerate/accelerator.py", line 2237, in backward
loss.backward(**kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/_tensor.py", line 521, in backward
torch.autograd.backward(
File "/usr/local/lib/python3.10/dist-packages/torch/autograd/init.py", line 289, in backward
_engine_run_backward(
File "/usr/local/lib/python3.10/dist-packages/torch/autograd/graph.py", line 768, in _engine_run_backward
return Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
RuntimeError: torch_xla/csrc/tensor.cpp:191 : Check failed: data()->tensor_data
Begin stack trace
tsl::CurrentStackTrace()
torch_xla::XLATensor::shape() const
torch_xla::XLATensorImpl::SetupSizeProperties()
torch_xla::XLATensorImpl::sym_sizes_custom() const
at::FunctionalTensorWrapper::sym_sizes_custom() const
at::_ops::add__Tensor::redispatch(c10::DispatchKeySet, at::Tensor&, at::Tensor const&, c10::Scalar const&)
at::_ops::add__Tensor::redispatch(c10::DispatchKeySet, at::Tensor&, at::Tensor const&, c10::Scalar const&)
at::_ops::add__Tensor::call(at::Tensor&, at::Tensor const&, c10::Scalar const&)
torch::autograd::AccumulateGrad::apply(std::vector<at::Tensor, std::allocatorat::Tensor >&&)
torch::autograd::Engine::evaluate_function(std::shared_ptrtorch::autograd::GraphTask&, torch::autograd::Node*, torch::autograd::InputBuffer&, std::shared_ptrtorch::autograd::ReadyQueue const&)
torch::autograd::Engine::thread_main(std::shared_ptrtorch::autograd::GraphTask const&)
torch::autograd::Engine::thread_init(int, std::shared_ptrtorch::autograd::ReadyQueue const&, bool)
torch::autograd::python::PythonEngine::thread_init(int, std::shared_ptrtorch::autograd::ReadyQueue const&, bool)
End stack trace
The above exception was the direct cause of the following exception:
RuntimeError                              Traceback (most recent call last)
 in <cell line: 13>()
11 #os.environ["XRT_TPU_CONFIG"]="localservice;0;localhost:51011"
12
---> 13 notebook_launcher(training_function, (model, tokenized_datasets), mixed_precision="bf16")
11 frames
/usr/lib/python3.10/concurrent/futures/_base.py in __get_result(self)
401         if self._exception:
402             try:
--> 403                 raise self._exception
404             finally:
405                 # Break a reference cycle with the exception in self._exception
RuntimeError: torch_xla/csrc/tensor.cpp:191 : Check failed: data()->tensor_data
Begin stack trace
tsl::CurrentStackTrace()
torch_xla::XLATensor::shape() const
torch_xla::XLATensorImpl::SetupSizeProperties()
torch_xla::XLATensorImpl::sym_sizes_custom() const
at::FunctionalTensorWrapper::sym_sizes_custom() const
at::_ops::add__Tensor::redispatch(c10::DispatchKeySet, at::Tensor&, at::Tensor const&, c10::Scalar const&)

at::_ops::add__Tensor::redispatch(c10::DispatchKeySet, at::Tensor&, at::Tensor const&, c10::Scalar const&)

at::_ops::add__Tensor::call(at::Tensor&, at::Tensor const&, c10::Scalar const&)

torch::autograd::AccumulateGrad::apply(std::vector<at::Tensor, std::allocator<at::Tensor> >&&)

torch::autograd::Engine::evaluate_function(std::shared_ptr<torch::autograd::GraphTask>&, torch::autograd::Node*, torch::autograd::InputBuffer&, std::shared_ptr<torch::autograd::ReadyQueue> const&)
torch::autograd::Engine::thread_main(std::shared_ptr<torch::autograd::GraphTask> const&)
torch::autograd::Engine::thread_init(int, std::shared_ptr<torch::autograd::ReadyQueue> const&, bool)
torch::autograd::python::PythonEngine::thread_init(int, std::shared_ptr<torch::autograd::ReadyQueue> const&, bool)

End stack trace
Expected behavior
The model is trained without a crash. Or accelerate shows more informative error messages about misconfiguration.

I have very little experience with google colab or XLA, but to me this looks like a PyTorch-XLA error and not something specific to accelerate notebook launcher or even accelerate in general. Probably you don't have an easy way to check this without accelerate? If yes, that would help to confirm it quickly. Otherwise, could you try a different model architecture than GPT2 and see if the same error occurs?

Hello, you're right, I don't have experience with PyTorch directly, so writing the same logic on it is out of my expertise. And, of course I don't have TPU at home.
I'll try another model, in the HF tutorials some BERT variation is also in use. I'll try it and let you know

Hi @BenjaminBossan
I tried another model (this is a notebook https://colab.research.google.com/drive/14_ylDC_0ptZhw8VQYFavhyazPR-Jx7CR?usp=sharing )
Tutorial I followed is https://github.com/huggingface/notebooks/blob/main/examples/accelerate_examples/simple_nlp_example.ipynb
This example isn't working either, however with multiple random errors.
Predominantly it fails with:

"A process in the process pool was terminated abruptly while the future was running or pending.".  (Also after few first successful steps).

Other errors:
2. torch_xla/csrc/tensor.cpp:191 : Check failed: data()->tensor_data (the same as in original example)
3. RuntimeError: torch_xla/csrc/runtime/pjrt_computation_client.cc:721 : Check failed: pjrt_device == pjrt_data->buffer->device()
4. RuntimeError: Function AddcmulBackward0 returned an invalid gradient at index 1 - expected device xla:1 but got xla:0
To sum up it seems to me that there is some synchronisation issue because of which I observe this kind of race condition. (either in accelerate or in torch, can't say for sure).
(Or the examples for TPU isn't up-to-date and it should be done or configured in another way)
Regards

Thanks for testing again. I agree that it's strange that the errors are random and that this could be caused by a race condition. I asked internally if there is anyone with XLA experience who could take a look, as I'm out of my depth here.

Hi
The TPUs in Colab are a bit out of date (TPUv2). Would you be able to try this on a Kaggle TPU (also available for free), which is a more modern "TPU VM v3-8" and report the results? I'm not saying it will work but it will provide more useful debug info.

Hi @martin-gorner , I'll try this weekend and let you know

@martin-gorner ,
The same behaviour in Kaggle. Here is the link to the notebook
https://www.kaggle.com/code/eugenemusiienko/notebook7bffa26536


DM-36302: Delete /etc/shadow and /etc/gshadow for labs

We no longer support PAM, sudo, or privilege escalation in labs, so nothing should be reading these files.  Simplify the config by removing the generated ConfigMaps and mounts.
Also delete obsolete settings for vault_secrets_path and pull-secret, which were migrated to use the injected global path.
The sciplat-lab build already deletes /etc/shadow and /etc/gshadow, so with this change those files simply won't exist.

I'll give it a shot and see if something breaks, and if so, I'll iterate a bit. Thanks!


[BUG] Ackley3 is not optimal at reported value.

Description
The docs report an optimal value of
-195.629028238419 @ (0.682584587365898, -0.36075325513719).
However:
>>> import numpy as np
>>> from opytimark.markers import two_dimensional
>>> Ackley3 = two_dimensional.Ackley3()
>>> Ackley3(np.array([0.682584587365898, -0.36075325513719]))
-170.07756299785044

If it helps, my optimization algorithm converges to
-186.4112127112689 @ (4.79108613e-11, -6.77345749e-03)
Steps to Reproduce
Run the python snippet from above
Expected behavior: The global minimum is where the docs report it.
Actual behavior: At the reported point, the function returns a larger value and there definitely exists better values, see above.
Reproduces how often: Every time

Hello @arthus701 ! I hope everything is all right with you.
Awesome, thank you very much for the feedback and the corrected values. I appreciate in you taking your time and coming here. I have just corrected Ackley3's tests and docs, it should be live in a few minutes.
I was wondering, which optimization algorithm did you use? Could you tell me, please?
Thank you again and best regards,
Gustavo.

Hi @gugarosa,
I am using the python API of dlib's LIPO-TR algorithm, wrapped in my own function to give it a scipy-like behavior.
I was testing it against scipy's Rosenbrock function, but wanted something else and google hinted me at your project, so I tried benchmarking against your Ackley3 implementation, which led to the issue...
Did you find out what went wrong with the reported optimum? I'm a little hesitant to try your other functions, as I don't see how reliable the reported optima are.
Cheers,
Arthus

Perfect, thank you!
The problem is actually with the function itself, as there is no established minimum points, they are just approximations found by optimization algorithms. Such a behavior also happens in the Forrester function.
Regarding the reported optima, despite Ackley3 and Forrester, there will not be any problems with them. They have been collected and assessed from a wide variety of benchmarking sources, such as http://benchmarkfcns.xyz/fcns, https://www.sfu.ca/~ssurjano/optimization.html, and https://arxiv.org/pdf/1308.4008.pdf.
Additionally, some of these functions, especially the n-dimensional ones, were evaluated and peer-reviewed in our following publication: https://www.sciencedirect.com/science/article/abs/pii/S1568494620303938. So they should be ready to go!
Nevertheless, if you any other problems or concerns arise, please let me know.
Best regards,
Gustavo.


Icons are not displaying (fonts not loading in CRA)

Steps
Trying to use <Icon name="search" />, but no icons are displaying.
https://codesandbox.io/s/8nzy51pk49
Expected Result
Icon should be displaying.
Actual Result
Icon are rendered as box.
Version
"semantic-ui-react": "^0.79.1"
"semantic-ui-css": "^2.3.1",
Testcase
created a codesandbox project here: https://codesandbox.io/s/8nzy51pk49

This is a codesandbox issue.  They are failing to decode the downloaded fonts for some reason.  Apparently, it is failing for both SUI CSS 2.2.14 and 2.3.1, so it is not a version issue or CSS update problem.
Note, our docs still work using the exact same CSS sheet loaded in a real browser scenario:
https://react.semantic-ui.com/elements/icon
Here's the codesandbox error:

:warning: Failed to decode downloaded font: https://98w7j7ymo4.codesandbox.io/themes/default/assets/fonts/icons.woff2

I think it's not just codesandbox issue. It's failing in my project too. I'm using create-react-app for the project.

We'd love to look at a minimal reproduction.  Please use a new issue.  At present, it is working in our doc build and other prod apps.

I'm having the same problem, also using create-react-app

Appears we have a trend.  What are the errors you are seeing @edgarlpassos and @tusharkhatiwada?

@levithomason I had done a silly mistake. I tried to reproduce the issue by creating a basic project with CRA that just displays the Icon. It worked though.
So I checked my project thoroughly. What I did was, in order to replace the default font with Open Sans, I had used in my css:
* {
font-family: 'Open Sans';
}

:)

Heh, nice! 😉 Codesandbox is still a mystery for now, so I'll leave this open for a bit.

Exactly the same was happening to me! Really a silly mistake.

Hi guys, this has come up again (came up a bit randomly where it was only affecting about half the icons I was using). Updating the css from 2.2.12 to 2.3.3 fixes most of them, but not all (at the expense of the modal positioning issue, which has workarounds).
Anyway, I've forked your Codesandbox @levithomason  to demonstrate this: https://codesandbox.io/s/x285o7l7kw
Related question (forgive me for the noobie questions) - the styling and css is working on that CodeSandbox, but unlike the one originally created by @tusharkhatiwada I cannot see where these css styles are getting loaded from? (I was trying to see what version of the css it was using).

@HemalR with the way SUIR is decoupled from the CSS almost entirely, we only support the latest version of SUI css, so updating to the latest version as you did is indeed the fix.

Cheers for taking the time and having alook @brianespinosa 👍
Any idea why that codeSandbox isn't working? - https://codesandbox.io/s/x285o7l7kw (which is forked from https://codesandbox.io/s/mzq3lvq7jj from @levithomason above - the only change being the icon name provided from 'user' to 'trash outline'

@HemalR you are trying to use an icon name that does not exist in the latest version of FontAwesome. That was an update in 2.3.x in SUI styles. Take a look at the Icon docs and do a search for "trash". You will not see "trash icon" as an available icon name in the set. However, it looks like the Icon you are looking for is "trash alternate outline", which I just tested in your codepen using the latest SUI styles and it works.

Ah I see it. Missed the name change, sorry for the silly qn but hopefully someone who reads this will double check to ensure an update hasn't done the same thing to them.
Thanks again 👍


find endpoint cloud/httpserver err%!(EXTRA string=endpoints "httpserver" not found)

I have finished deployment of  the APISIX ingress controller,  but when i use this demo i get following error:
demo:
kubectl apply -f - <<EOF
apiVersion: apisix.apache.org/v1
kind: ApisixRoute
metadata:
  name: httpserver-route
  namespace: cloud
spec:
  rules:
  - host: test.apisix.apache.org
    http:
      paths:
      - backend:
          serviceName: httpserver
          servicePort: 8080
        path: /hello*
EOF

ingress controller error log:
E0909 16:07:57.815863       1 ep.go:38] find endpoint cloud/httpserver err%!(EXTRA string=endpoints "httpserver" not found)
E0909 16:07:57.817280       1 builder.go:208] solver upstream failed, update upstream to etcd failed, err: http post failed, url: http://<IP_ADDRESS>:31700/apisix/admin/upstreams, err: status: 400, body: {"error_msg":"invalid configuration: property \"nodes\" validation failed: object matches none of the requireds"}

I'm sure, the k8s master node hava been saved cofiguration to etcd,i use kubectl get ApisixRoute httpserver-route -n cloud -o yaml got that.
[root@k8s-master eplat-yamls]# kubectl get ApisixRoute httpserver-route -n cloud -o yaml
apiVersion: apisix.apache.org/v1
kind: ApisixRoute
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"apisix.apache.org/v1","kind":"ApisixRoute","metadata":{"annotations":{},"name":"httpserver-route","namespace":"cloud"},"spec":{"rules":[{"host":"test.apisix.apache.org","http":{"paths":[{"backend":{"serviceName":"httpserver","servicePort":8080},"path":"/hello*"}]}}]}}
  creationTimestamp: "2020-09-09T08:07:49Z"
  generation: 1
  managedFields:
  - apiVersion: apisix.apache.org/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:kubectl.kubernetes.io/last-applied-configuration: {}
      f:spec:
        .: {}
        f:rules: {}
    manager: kubectl-client-side-apply
    operation: Update
    time: "2020-09-09T08:07:49Z"
  name: httpserver-route
  namespace: cloud
  resourceVersion: "600363"
  selfLink: /apis/apisix.apache.org/v1/namespaces/cloud/apisixroutes/httpserver-route
  uid: 737ca448-88c5-4b34-a80b-6f51d8f980c3
spec:
  rules:
  - host: test.apisix.apache.org
    http:
      paths:
      - backend:
          serviceName: httpserver
          servicePort: 8080
        path: /hello*

Because there is no corresponding service. So add the corresponding service to fix this.

yes, the httpserver is a demo,  There will be misunderstandings. need to point it out in the documentation.

I think need to change the demo, use a public backend image.

I think need to change the demo, use a public backend image.

We may create a demo by ourselves.

We have fixed the develop.md with the explicit installation guide about the backend http server (use httpbin).


Implements Time Series Forecast (TSF)

Expected Behavior
Lean support the Time Series Forecast (TSF) Indicator.
Actual Behavior
Not supported. See #83.
Potential Solution

The Time Series Forecast is a smoothing functions that works by preforming linear least squares regression over a moving window. It then uses the linear model to predict the value for the next bar.

Source: https://tulipindicators.org/tsf
Checklist

[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues
[x] I have provided detailed steps to reproduce the issue

@jaredbroad, I am interested in working on this issue.


MSID: 91398 Version: 2 DOI: 10.1101/2<IP_ADDRESS>4050

MSID: 91398
Version: 2
Preprint DOI: https://doi.org/10.1101/2<IP_ADDRESS>4050
Step 1. Awaiting reviews
Editorial to post reviews via hypothesis
Useful links:

DocMap: https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=91398
New model tracking: https://docs.google.com/spreadsheets/d/1_fHaoOy7hjyocptKtVJRijeNpUY4hBS7Ck_aVmx6ZJk/
Reviews on sciety: https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>4050

For trouble shooting (e.g. no Docmaps available):

DocMap issue addressing: https://miro.com/app/board/uXjVNCwK6EI=/
Explore DataHub DocMaps API: https://lookerstudio.google.com/reporting/4c2f0368-babb-4beb-b5b3-497e7e7b0f08/page/ejphD
Unmatched submissions and preprints: https://lookerstudio.google.com/u/0/reporting/9f86204f-3bf7-477c-9b18-5c5ef141bf69/page/p_gxi57ha93c
Unmatched manuscripts spreadsheet: https://docs.google.com/spreadsheets/d/15QcK8w-ssB7109RQEDtFpJPZ0J5HTGxoHa_2TtpMBbg/edit#gid=1336081641

Step 2. Preview reviewed preprint
Production QC content ahead of publication
Instructions:

QC preview: https://prod--epp.elifesciences.org/previews/91398v2
Update ticket with any problems (add blocked label)
When QC OK, add QC OK label to ticket and add publication date and time to https://docs.google.com/spreadsheets/d/1amAlKvdLcaDp5W8Z8g77NmkwbMF5n_u89ArSqPMO8jg
Move card to next column
(At end of the day post link in #enhanced-preprint and ask for PDF to be generated)

Useful links:

Preprint DOI :  https://doi.org/10.1101/2<IP_ADDRESS>4050
Confirm reviews returned by EPP: https://prod--epp.elifesciences.org/api/reviewed-preprints/91398/v2/reviews
To update the MECA path in the docmap: https://docs.google.com/spreadsheets/d/1mctCQuNFBjSn97Lihy7_vBO6z7-N-oqyLv4clyi6zHg

Step 3: Awaiting search reindex
This step adds the reviewed preprint to the homepage: https://elifesciences.org
The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.
Useful links:

Jenkins pipeline to reindex search can be triggered sooner or monitored here: https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 4: Published! PDF requested
Waiting for PDF to be generated
Useful links:

PDF tracking: https://docs.google.com/spreadsheets/d/106_XeDjmuBae7gexOTNzg60lapeqjl2aRn9DzupGyS8/

Step 5: Introduce PDF to data folder and git repo
Upload PDF to relevent folder in git repo https://github.com/elifesciences/enhanced-preprints-data/
Step 6: Done!

[ ] Kettle is on!

@fred-atherden @acollings We've loaded v3 of the preprint but I notice there's a v4 where Figure 3 is different and there's an additional Appendix 2—figure 3, should that be loaded instead?

Thanks @naushinthomson in this case we can proceed with preprint V3


The disabling user claims in the backend jwt feature is not working.

Description:
Can not disable adding user claims to the backend jwt.
Steps to reproduce:

Open the deployment.toml file and add the following lines to enable the backend jwt and disable the adding user claims to that.

[apim.jwt]
enable = true
encoding = "base64url" # base64,base64url
enable_user_claims = false

Restart the server.
Invoke a sample API and observe the backend jwt. ( decode it and observe the payload to find whether the user claims is included or not)

Affected Product Version:
3.2.0

Fixed with https://github.com/wso2/carbon-apimgt/pull/9227


Changing some code can speed up evaluating in test time.

What's the feature?
Hi, I've had the problems with long test time. So I changed some code to solve this problem. Hope this is useful to someone facing a same problem.
In mmrotate/datasets/sodaa.py at line 520 to line 522:
bboxes, scores = cls_dets[:, :-1], cls_dets[:, [-1]]
bboxes = torch.from_numpy(bboxes).to(torch.float32).contiguous()
scores = torch.from_numpy(np.squeeze(scores, 1)).to(torch.float32).contiguous()

I changed it to this:
bboxes = torch.from_numpy(bboxes).to(torch.float32).contiguous()
scores = torch.from_numpy(np.squeeze(scores, 1)).to(torch.float32).contiguous()
bboxes = bboxes.cuda()
scores = scores.cuda()
results, inds = nms_rotated(bboxes, scores, iou_thr)

This will use the gpu to speed up merging.
In mmrotate/datasets/sodda_eval/sodaa_eval.py at line 262 to line 265:
ious = box_iou_rotated(
    torch.from_numpy(np.array(d)).float(),
    torch.from_numpy(np.array(g)).float()).numpy()
return ious

I changed it to this:
ious = box_iou_rotated(
    torch.from_numpy(np.array(d)).float().cuda(),
    torch.from_numpy(np.array(g)).float().cuda()).cpu().numpy()
return ious

This will also use the gpu to speed up the iou computing.
And if you want to make it more faster, you can change the metric settings such as iouThrs and areRng to only evaluate the metrics that you want.
For example, if you set the areRng to [[0, 1000000]], which means all areas will be evaluated. At this time you can change the evaluateImg function to:
def evaluateImg(self, imgId, catId, aRng, maxDet):

    p = self.params
    if p.useCats:
        gt = self._gts[imgId, catId]
        dt = self._dts[imgId, catId]
    else:
        gt = [_ for cId in p.catIds for _ in self._gts[imgId, cId]]
        dt = [_ for cId in p.catIds for _ in self._dts[imgId, cId]]

    have_gt = False
    have_dt = False
    if len(gt) == 0 and len(dt) == 0:
        return None
    if len(gt) > 0:
        have_gt = True
    if len(dt) > 0:
        have_dt = True

    gt_df = pd.DataFrame(gt)
    dt_df = pd.DataFrame(dt).head(maxDet)
    if have_gt:
        gt_df['_ignore'] = (gt_df['ignore'] | ((gt_df['area'] < aRng[0]) | (gt_df['area'] > aRng[1]))).astype(int)

    ious = self.ious[imgId, catId][:maxDet, :].copy()

    T = len(p.iouThrs)
    G = len(gt_df)
    D = len(dt_df)
    gtm = np.zeros((T, G))
    dtm = np.zeros((T, D))
    gtIg = np.array(gt_df['_ignore']) if have_gt else np.array([], dtype=np.int64)
    dtIg = np.zeros((T, D))

    if not len(ious) == 0:
        for tind, t in enumerate(p.iouThrs):

            if have_dt and have_gt:
                iou_max, inx = np.max(ious, axis=1), np.argmax(ious, axis=1)
                iou_mask = (iou_max >= t).astype(int)
                dtm[tind, :] = gt_df['id'][inx] * iou_mask

                dt_len = len(dtm[tind, :])
                unique_elements, first_indices = np.unique(dtm[tind, :], return_index=True)
                positive_indices = first_indices[unique_elements > 0]
                first_mask = np.zeros(dt_len, dtype=int)
                first_mask[positive_indices] = 1
                dtm[tind, :] = dtm[tind, :] * first_mask

                matched_dt_inx = np.where(dtm[tind, :] > 0)[0]
                matches_gt_inx = inx[matched_dt_inx]
                gtm[tind, matches_gt_inx] = dt_df['id'][matched_dt_inx]

    dtIds = dt_df['id'].to_list() if have_dt else []
    gtIds = gt_df['id'].to_list() if have_gt else []
    dtScores = dt_df['score'].to_list() if have_dt else []

    return {
        'image_id': imgId,
        'category_id': catId,
        'aRng': aRng,
        'maxDet': maxDet,
        'dtIds': dtIds,
        'gtIds': gtIds,
        'dtMatches': dtm,
        'gtMatches': gtm,
        'dtScores': dtScores,
        'gtIgnore': gtIg,
        'dtIgnore': dtIg,
    }

Because at this time all the bboxes and gts can be used to evaluate, so you can discard the for loop and use numpy and pandas to speed up the evaluation.
I also find that using 1 nproc is the fastest to evaluate results. And when using 1 nproc, evaluating can be done in a very short amount of time like 10 seconds.
But if you want to use multiple nproc to evaluate results, considering that the source code does not implement multiple nproc for iou computation, you can make these changes.
In mmrotate/datasets/sodda_eval/sodaa_eval.py at line 179 to line 180:
self.ious = {(imgId, catId): computeIoU(imgId, catId)
             for imgId in p.imgIds for catId in catIds}

If you want to use mutiple nproc to evaluate, you can change it to this:
if self.nproc > 1:

    computeIoU = partial(self.computeIoU)

    img_cat_lst = [[imgId, catId] for imgId in p.imgIds for catId in catIds]
    imgId_lst, catId_lst = [], []
    for lst in img_cat_lst:
        imgId_lst.append(lst[0])
        catId_lst.append(lst[1])

    pool = Pool(self.nproc)
    iou_lst = pool.starmap(computeIoU, zip(imgId_lst, catId_lst))
    pool.close()

    for img_cat, iou in zip(img_cat_lst, iou_lst):

        tmp_dict = {tuple(img_cat): iou}
        self.ious.update(tmp_dict)
else:
    self.ious = {(imgId, catId): computeIoU(imgId, catId)
                 for imgId in p.imgIds for catId in catIds}

Hope this will be helpful for you :)
Any other context?
No response

We greatly appreciate your insightful recommendations for enhancing the project's code. We are committed to incorporating your valuable suggestions by making updates to the code to bolster the speed and stability of testing procedures. Again, we extend our heartfelt gratitude for your constructive insights.

@Songyeyaosong hello！Thanks for providing some codes for speed up the test phase. However, when I try to follow your codes about speed up the iou computing, some error report:
"File "/home/anaconda3/envs/openmmlab/lib/python3.9/site-packages/mmcv/ops/box_iou_rotated.py", line 144, in box_iou_rotated
ext_module.box_iou_rotated(
RuntimeError: CUDA error: invalid configuration argument"
Do you encouter this issue before?

@Songyeyaosong hello！Thanks for providing some codes for speed up the test phase. However, when I try to follow your codes about speed up the iou computing, some error report:
"File "/home/anaconda3/envs/openmmlab/lib/python3.9/site-packages/mmcv/ops/box_iou_rotated.py", line 144, in box_iou_rotated ext_module.box_iou_rotated( RuntimeError: CUDA error: invalid configuration argument"
Do you encouter this issue before?

This error happens after replacing
ious = box_iou_rotated( torch.from_numpy(np.array(d)).float(), torch.from_numpy(np.array(g)).float()).numpy() return ious
to
ious = box_iou_rotated( torch.from_numpy(np.array(d)).float().cuda(), torch.from_numpy(np.array(g)).float().cuda()).cpu().numpy() return ious

Hello! I did not encouter this issue before. Maybe you can try my pytorch and python version. My version is python3.8 and pytorch1.17.1+cu117 :). I'm sorry I can't provide some help on this issue.

@Songyeyaosong hello！Thanks for providing some codes for speed up the test phase. However, when I try to follow your codes about speed up the iou computing, some error report:
"File "/home/anaconda3/envs/openmmlab/lib/python3.9/site-packages/mmcv/ops/box_iou_rotated.py", line 144, in box_iou_rotated ext_module.box_iou_rotated( RuntimeError: CUDA error: invalid configuration argument"
Do you encouter this issue before?

This error happens after replacing
ious = box_iou_rotated( torch.from_numpy(np.array(d)).float(), torch.from_numpy(np.array(g)).float()).numpy() return ious
to
ious = box_iou_rotated( torch.from_numpy(np.array(d)).float().cuda(), torch.from_numpy(np.array(g)).float().cuda()).cpu().numpy() return ious

Hello! I did not encouter this issue before. Maybe you can try my pytorch and python version. My version is python3.8 and pytorch1.17.1+cu117 :). I'm sorry I can't provide some help on this issue.

Hello! I have searched the PyTorch official website(https://pytorch.org/get-started/previous-versions/) for the specific version you mentioned, but unfortunately, I couldn't find it. If you have any alternative suggestions or sources where I might locate this version, please let me know. Your assistance in this matter is greatly appreciated.
Thank you!

@Songyeyaosong hello！Thanks for providing some codes for speed up the test phase. However, when I try to follow your codes about speed up the iou computing, some error report:
"File "/home/anaconda3/envs/openmmlab/lib/python3.9/site-packages/mmcv/ops/box_iou_rotated.py", line 144, in box_iou_rotated ext_module.box_iou_rotated( RuntimeError: CUDA error: invalid configuration argument"
Do you encouter this issue before?

This error happens after replacing
ious = box_iou_rotated( torch.from_numpy(np.array(d)).float(), torch.from_numpy(np.array(g)).float()).numpy() return ious
to
ious = box_iou_rotated( torch.from_numpy(np.array(d)).float().cuda(), torch.from_numpy(np.array(g)).float().cuda()).cpu().numpy() return ious

Hello! I did not encouter this issue before. Maybe you can try my pytorch and python version. My version is python3.8 and pytorch1.17.1+cu117 :). I'm sorry I can't provide some help on this issue.

@Songyeyaosong Hello! I have searched the PyTorch official website(https://pytorch.org/get-started/previous-versions/) for the specific version you mentioned, but unfortunately, I couldn't find it. If you have any alternative suggestions or sources where I might locate this version, please let me know. Your assistance in this matter is greatly appreciated. Thank you!

try this:
pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1+cu117 -f https://download.pytorch.org/whl/torch_stable.html

Hello, thank you for your code! When I used it, I found that the evaluation results were quite different from those provided in the soda paper. Does this happen to you? for example, when i use oriented-rcnn, get Aps {'mAP_AP': 0.398, 'mAP_AP_50': 0.813, 'mAP_AP_75': 0.324, 'mAP_AP_eS': 0.635, 'mAP_AP_rS': 0.59, 'mAP_AP_gS': 0.555, 'mAP_AP_Normal': 0.636, 'mAP_mAP_copypaste': '0.398 0.813 0.324 0.635 0.590 0.555 0.636 '}, but in soda paper reports APs{34.4 70.7 28.6 12.5 28.6 44.5 36.7}

Hello, thank you for your code! When I used it, I found that the evaluation results were quite different from those provided in the soda paper. Does this happen to you? for example, when i use oriented-rcnn, get Aps {'mAP_AP': 0.398, 'mAP_AP_50': 0.813, 'mAP_AP_75': 0.324, 'mAP_AP_eS': 0.635, 'mAP_AP_rS': 0.59, 'mAP_AP_gS': 0.555, 'mAP_AP_Normal': 0.636, 'mAP_mAP_copypaste': '0.398 0.813 0.324 0.635 0.590 0.555 0.636 '}, but in soda paper reports APs{34.4 70.7 28.6 12.5 28.6 44.5 36.7}

Hi, did you apply any other tricks, such as multi-scale training/testing and data augmentation, to get a mAP of 39.8? And why did you get better performance for eS objects than gS objects?

Hello, thank you for your code! When I used it, I found that the evaluation results were quite different from those provided in the soda paper. Does this happen to you? for example, when i use oriented-rcnn, get Aps {'mAP_AP': 0.398, 'mAP_AP_50': 0.813, 'mAP_AP_75': 0.324, 'mAP_AP_eS': 0.635, 'mAP_AP_rS': 0.59, 'mAP_AP_gS': 0.555, 'mAP_AP_Normal': 0.636, 'mAP_mAP_copypaste': '0.398 0.813 0.324 0.635 0.590 0.555 0.636 '}, but in soda paper reports APs{34.4 70.7 28.6 12.5 28.6 44.5 36.7}

Hi, did you apply any other tricks, such as multi-scale training/testing and data augmentation, to get a mAP of 39.8? And why did you get better performance for eS objects than gS objects?

No, I just run orient-rcnn provided in SODA code, and change the evaluate code with  "Songyeyaosong"  provide (in this issue). I found the question and i asked for help.


Simulate FTMS BLE device (smart indoor bike)

Hi,
I have the following issue:

an "old" fitness machine (indoor bike) with adjustable power but NO BLE/FTMS interface
the request to connect to a smart trainer. e.g. ZWIFT, Wahoo SYSTM, bkool, .....

I would need the option of pycycling to simulate a smart bike like wahoo kickr or TACX etc.
e.g. I start pycycling (maybe as a service) and connect to systems via BLE like ZWIFT simulating a real "smart" indoor bike.
I need the option to change information such as power, cadence, heartrate with pycycling via console or some (web interface).
Furthermore with this interface to report power, cadence, heartrate and get the should values of power and cadence within pycycling I can create a interface (via the pi's GPIO pins or some shield) to the "old fitness machine" and set the values there.

Maybe have a look at this project here: https://ftmsemu.github.io/
Guess that's pretty much the same basic idea behind it.
This might act as a starter for your journey: https://github.com/OevreFlataeker/ftms_emu

@dfxh did you manage to simulate the FTMS device? Please could you update with your findings and then I will close the issue.


Is FOAAS compliant with GDPR?

I just want to make sure that my personal data is safely maintained.

I'll get a PIA done.

fuc koff


how do I make my H2 blue?

Challenge Use CSS Selectors to Style Elements has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
 The first line you put h2.
Sent from my LG G5

From: surferpilgrim<EMAIL_ADDRESS>Sent: Wednesday, January 18, 2017 6:34:48 PM
To: freeCodeCamp/freeCodeCamp
Cc: Subscribed
Subject: [freeCodeCamp/freeCodeCamp] how do I make my H2 blue? (#12604)
Challenge Use CSS Selectors to Style Elementshttps://www.freecodecamp.com/challenges/use-css-selectors-to-style-elements#?solution=
<style>
  h2{color%3A blue%3B }
<%2Fstyle>CatPhotoApp<%2Fh2>

<p>Kitty ipsum dolor sit amet%2C shed everywhere shed everywhere stretching attack your ankles chase the red dot%2C hairball run catnip eat the grass sniff.<%2Fp>
 has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/freeCodeCamp/freeCodeCamp/issues/12604, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AX0rSRnbDYQLI-D0g__-_iN1WypwcawMks5rTsvIgaJpZM4LnozE.

This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "Help" button on the challenge on freeCodeCamp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.
If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding.


Switch to LF AI & Data mailing lists

Replaces references to iree-discuss with iree-technical-discussion and introduces iree-announce.

We should send some initial messages to this lists to show that they work :P

Sent emails to the new technical discussion, new announce, and old discuss groups.


Can't add more than one 128 uuid to an BLEAdvertising

When I add more than one service id to a BLEAdvertising using the add_service_uuid() method, the program panics with the following error message:
thread 'main' panicked at 'called Result::unwrap() on an Err value: The provided buffer is too small.
This is the code I have:
`
let ble_advertising = ble_device_unlocked.get_advertising();
ble_advertising
.name("Torrot Kids");
ble_advertising.add_service_uuid(BleUuid::from_uuid128_string(SETTINGS_CHARACTERISTIC_UUID).unwrap());
ble_advertising.add_service_uuid(BleUuid::from_uuid128_string(BATTERY_SERVICE_UUID).unwrap());

ble_advertising.start().unwrap();

`
The panic occurs in the "ble_advertising.start().unwrap();"
If I add just one service id to a BLEAdvertising it works but when I try to add more than one, the program start to panic.
I'm using a ESP32C3 chip.
Is there any solution for this?
Thanks and I'm sorry for not be able to find the problem.

Thanks @taks. It make sense for me.
Do you know how can I override this variable at compile time or is mandatory to follow this restriction?
Thank you very much again and sorry for my ignorance.
regards

This restriction is determined by the BLE specification.
Therefore, even if you rewrite this variable, it seems that it will not work properly.

I did some additional research.
It appears that Advertising Extensions can be used to increase the amount of data.
reference: https://github.com/apache/mynewt-core/issues/1027
(The current implementation does not implement this feature.)

Got it, thank you very much.

It would be nice to have an example with advertising extensions

Is there any support for extended advertising yet?


[BUG] Dependencies Table: Sort stops working after clicking it several times

Is there an existing issue for this?

[X] I have searched the existing issues

Konveyor version
0.3.0.beta-1.2
Priority
Critical
Current Behavior
In the dependencies table, when you have dependencies for multiple applications, and you click the sort button several times, the sort stops working.

Also, sorting by name doesn't seem to actually sort the deps alphabetically.
Expected Behavior
Sorting behavior should be consistent no matter how many times I click it.
How Reproducible
Always (Default)
Steps To Reproduce

Add following apps to inventory:

https://github.com/konveyor/example-applications/tree/main/book-server
https://github.com/konveyor/tackle-testapp
https://github.com/konveyor/example-applications/tree/main/daytrader

Run analysis for all these apps using Source + Deps mode. The targets don't really matter, as no matter what targets, the dependencies for an app don't change.
Go to dependencies view, and click sort several times until it stops working eventually:

Environment
- OS:

Anything else?
No response

Having trouble reproducing this one locally @pranavgaikwad . Is it consistently failing to sort like this in your env?